update latest dc2.28 changes
This commit is contained in:
parent
a497583379
commit
267eeca9d1
6 changed files with 20 additions and 18 deletions
|
@ -1,3 +1,9 @@
|
|||
noodles 1.2.2 - 2023.10.19
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Upgrade to last minute change to Dotclear 2.28
|
||||
|
||||
noodles 1.2.1 - 2023.10.13
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
11
README.md
11
README.md
|
@ -1,10 +1,10 @@
|
|||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-1.2.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/noodles/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg)
|
||||
[![Release](https://img.shields.io/badge/release-1.2.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/noodles/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.19-c44d58.svg)
|
||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
|
||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/oodles)
|
||||
[![License](https://img.shields.io/github/license/JcDenis/noodles)](https://git.dotclear.watch/JcDenis/noodles/blob/master/LICENSE)
|
||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/noodles)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/noodles/src/branch/master/LICENSE)
|
||||
|
||||
## ABOUT
|
||||
|
||||
|
@ -16,7 +16,7 @@ _noodles_ is a plugin for the open-source web publishing software called [Dotcle
|
|||
|
||||
* Dotclear 2.28
|
||||
* PHP 8.1+
|
||||
* Permissions admin
|
||||
* Dotclear admin permissions
|
||||
|
||||
## USAGE
|
||||
|
||||
|
@ -33,7 +33,6 @@ go to ''configure plugin'', fill in form.
|
|||
* [Sources & contributions](https://git.dotclear.watch/JcDenis/noodles) (or on [GitHub](https://github.com/JcDenis/noodles))
|
||||
* [Issues & security](https://git.dotclear.watch/JcDenis/noodles/issues) (or on [GitHub](https://github.com/JcDenis/noodles/issues))
|
||||
|
||||
|
||||
## CONTRIBUTORS
|
||||
|
||||
* Jean-Christian Denis (author)
|
||||
|
|
|
@ -17,7 +17,7 @@ $this->registerModule(
|
|||
'Noodles',
|
||||
'Add users gravatars everywhere',
|
||||
'Jean-Christian Denis and contributors',
|
||||
'1.2.1',
|
||||
'1.2.2',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="noodles">
|
||||
<name>Noodles</name>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.2</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<desc>Add users gravatars everywhere</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/noodles/releases/download/v1.2.1/plugin-noodles.zip</file>
|
||||
<file>https://git.dotclear.watch/JcDenis/noodles/releases/download/v1.2.2/plugin-noodles.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/noodles/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/noodles/issues</da:support>
|
||||
|
|
|
@ -51,14 +51,13 @@ class AuthorMode
|
|||
$target = $targets->get('author');
|
||||
|
||||
if (is_null($target)
|
||||
|| !isset(App::frontend()->ctx)
|
||||
|| !App::blog()->isDefined()
|
||||
|| App::frontend()->ctx->__get('current_tpl') != 'author.html'
|
||||
|| App::frontend()->context()->__get('current_tpl') != 'author.html'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
$u = App::frontend()->ctx->__get('users');
|
||||
$u = App::frontend()->context()->__get('users');
|
||||
if (!($u instanceof MetaRecord)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -39,14 +39,13 @@ class Other
|
|||
$target = $targets->get('posts');
|
||||
|
||||
if (is_null($target)
|
||||
|| !isset(App::frontend()->ctx)
|
||||
|| !App::blog()->isDefined()
|
||||
|| App::frontend()->ctx->__get('current_tpl') != 'post.html'
|
||||
|| App::frontend()->context()->__get('current_tpl') != 'post.html'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
$m = App::frontend()->ctx->__get('posts');
|
||||
$m = App::frontend()->context()->__get('posts');
|
||||
if (!($m instanceof MetaRecord)) {
|
||||
return;
|
||||
}
|
||||
|
@ -79,14 +78,13 @@ class Other
|
|||
$target = $targets->get('comments');
|
||||
|
||||
if (is_null($target)
|
||||
|| !isset(App::frontend()->ctx)
|
||||
|| !App::blog()->isDefined()
|
||||
|| App::frontend()->ctx->__get('current_tpl') != 'post.html'
|
||||
|| App::frontend()->context()->__get('current_tpl') != 'post.html'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
$m = App::frontend()->ctx->__get('comments');
|
||||
$m = App::frontend()->context()->__get('comments');
|
||||
if (!($m instanceof MetaRecord)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue