parent
a497583379
commit
267eeca9d1
|
@ -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
|
noodles 1.2.1 - 2023.10.13
|
||||||
===========================================================
|
===========================================================
|
||||||
* Require Dotclear 2.28
|
* Require Dotclear 2.28
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,10 +1,10 @@
|
||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/badge/release-1.2.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/noodles/releases)
|
[![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.13-c44d58.svg)
|
![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)
|
[![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)
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/noodles)
|
||||||
[![License](https://img.shields.io/github/license/JcDenis/noodles)](https://git.dotclear.watch/JcDenis/noodles/blob/master/LICENSE)
|
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/noodles/src/branch/master/LICENSE)
|
||||||
|
|
||||||
## ABOUT
|
## ABOUT
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ _noodles_ is a plugin for the open-source web publishing software called [Dotcle
|
||||||
|
|
||||||
* Dotclear 2.28
|
* Dotclear 2.28
|
||||||
* PHP 8.1+
|
* PHP 8.1+
|
||||||
* Permissions admin
|
* Dotclear admin permissions
|
||||||
|
|
||||||
## USAGE
|
## 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))
|
* [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))
|
* [Issues & security](https://git.dotclear.watch/JcDenis/noodles/issues) (or on [GitHub](https://github.com/JcDenis/noodles/issues))
|
||||||
|
|
||||||
|
|
||||||
## CONTRIBUTORS
|
## CONTRIBUTORS
|
||||||
|
|
||||||
* Jean-Christian Denis (author)
|
* Jean-Christian Denis (author)
|
||||||
|
|
|
@ -17,7 +17,7 @@ $this->registerModule(
|
||||||
'Noodles',
|
'Noodles',
|
||||||
'Add users gravatars everywhere',
|
'Add users gravatars everywhere',
|
||||||
'Jean-Christian Denis and contributors',
|
'Jean-Christian Denis and contributors',
|
||||||
'1.2.1',
|
'1.2.2',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.28']],
|
'requires' => [['core', '2.28']],
|
||||||
'permissions' => 'My',
|
'permissions' => 'My',
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="noodles">
|
<module id="noodles">
|
||||||
<name>Noodles</name>
|
<name>Noodles</name>
|
||||||
<version>1.2.1</version>
|
<version>1.2.2</version>
|
||||||
<author>Jean-Christian Denis and contributors</author>
|
<author>Jean-Christian Denis and contributors</author>
|
||||||
<desc>Add users gravatars everywhere</desc>
|
<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:dcmin>2.28</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/noodles/src/branch/master/README.md</da:details>
|
<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>
|
<da:support>https://git.dotclear.watch/JcDenis/noodles/issues</da:support>
|
||||||
|
|
|
@ -51,14 +51,13 @@ class AuthorMode
|
||||||
$target = $targets->get('author');
|
$target = $targets->get('author');
|
||||||
|
|
||||||
if (is_null($target)
|
if (is_null($target)
|
||||||
|| !isset(App::frontend()->ctx)
|
|
||||||
|| !App::blog()->isDefined()
|
|| !App::blog()->isDefined()
|
||||||
|| App::frontend()->ctx->__get('current_tpl') != 'author.html'
|
|| App::frontend()->context()->__get('current_tpl') != 'author.html'
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$u = App::frontend()->ctx->__get('users');
|
$u = App::frontend()->context()->__get('users');
|
||||||
if (!($u instanceof MetaRecord)) {
|
if (!($u instanceof MetaRecord)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,14 +39,13 @@ class Other
|
||||||
$target = $targets->get('posts');
|
$target = $targets->get('posts');
|
||||||
|
|
||||||
if (is_null($target)
|
if (is_null($target)
|
||||||
|| !isset(App::frontend()->ctx)
|
|
||||||
|| !App::blog()->isDefined()
|
|| !App::blog()->isDefined()
|
||||||
|| App::frontend()->ctx->__get('current_tpl') != 'post.html'
|
|| App::frontend()->context()->__get('current_tpl') != 'post.html'
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$m = App::frontend()->ctx->__get('posts');
|
$m = App::frontend()->context()->__get('posts');
|
||||||
if (!($m instanceof MetaRecord)) {
|
if (!($m instanceof MetaRecord)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -79,14 +78,13 @@ class Other
|
||||||
$target = $targets->get('comments');
|
$target = $targets->get('comments');
|
||||||
|
|
||||||
if (is_null($target)
|
if (is_null($target)
|
||||||
|| !isset(App::frontend()->ctx)
|
|
||||||
|| !App::blog()->isDefined()
|
|| !App::blog()->isDefined()
|
||||||
|| App::frontend()->ctx->__get('current_tpl') != 'post.html'
|
|| App::frontend()->context()->__get('current_tpl') != 'post.html'
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$m = App::frontend()->ctx->__get('comments');
|
$m = App::frontend()->context()->__get('comments');
|
||||||
if (!($m instanceof MetaRecord)) {
|
if (!($m instanceof MetaRecord)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue