Compare commits
No commits in common. "ce1fe633ca06085fc75a6e2ce7e9016dfafadebe" and "9d681dfee10becc49ba28104aa516c95b184b332" have entirely different histories.
ce1fe633ca
...
9d681dfee1
|
@ -1,9 +1,3 @@
|
|||
lastBlogUpdate 2023.10.19
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Code review (callable)
|
||||
|
||||
lastBlogUpdate 2023.10.11
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-2023.10.19-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.19-c44d58.svg)
|
||||
[![Release](https://img.shields.io/badge/release-2023.10.11-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.11-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/lastBlogUpdate)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/src/branch/master/LICENSE)
|
||||
|
@ -14,9 +14,9 @@ _lastBlogUpdate_ is a plugin for the open-source web publishing software called
|
|||
|
||||
## REQUIREMENTS
|
||||
|
||||
* permissions to manage widgets
|
||||
* Dotclear 2.28
|
||||
* PHP 8.1+
|
||||
* Dotclear permissions to manage widgets
|
||||
|
||||
## USAGE
|
||||
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
* Show the dates of last updates of your blog in a widget.
|
||||
*
|
||||
* @author Jean-Christian Denis
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
$this->registerModule(
|
||||
'Last blog update',
|
||||
'Show the dates of last updates of your blog in a widget',
|
||||
'Jean-Christian Denis, Pierre Van Glabeke',
|
||||
'2023.10.19',
|
||||
'2023.10.11',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="lastBlogUpdate">
|
||||
<name>Last blog update</name>
|
||||
<version>2023.10.19</version>
|
||||
<version>2023.10.11</version>
|
||||
<author>Jean-Christian Denis, Pierre Van Glabeke</author>
|
||||
<desc>Show the dates of last updates of your blog in a widget</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases/download/v2023.10.19/plugin-lastBlogUpdate.zip</file>
|
||||
<file>https://github.com/JcDenis/lastBlogUpdate/releases/download/v2023.10.11/plugin-lastBlogUpdate.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/lastBlogUpdate/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/lastBlogUpdate/issues</da:support>
|
||||
|
|
|
@ -12,6 +12,7 @@ use Dotclear\Core\Process;
|
|||
* @ingroup lastBlogUpdate
|
||||
*
|
||||
* @author Jean-Christian Denis
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
class Backend extends Process
|
||||
|
@ -27,7 +28,9 @@ class Backend extends Process
|
|||
return false;
|
||||
}
|
||||
|
||||
App::behavior()->addBehavior('initWidgets', Widgets::initWidgets(...));
|
||||
App::behavior()->addBehaviors([
|
||||
'initWidgets' => [Widgets::class, 'initWidgets'],
|
||||
]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ use Dotclear\Core\Process;
|
|||
* @ingroup lastBlogUpdate
|
||||
*
|
||||
* @author Jean-Christian Denis
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
class Frontend extends Process
|
||||
|
@ -27,7 +28,9 @@ class Frontend extends Process
|
|||
return false;
|
||||
}
|
||||
|
||||
App::behavior()->addBehavior('initWidgets', Widgets::initWidgets(...));
|
||||
App::behavior()->addBehaviors([
|
||||
'initWidgets' => [Widgets::class, 'initWidgets'],
|
||||
]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ use Dotclear\Module\MyPlugin;
|
|||
* @ingroup lastBlogUpdate
|
||||
*
|
||||
* @author Jean-Christian Denis
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
class My extends MyPlugin
|
||||
|
|
|
@ -16,6 +16,7 @@ use Dotclear\Plugin\widgets\WidgetsElement;
|
|||
* @ingroup lastBlogUpdate
|
||||
*
|
||||
* @author Jean-Christian Denis
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
class Widgets
|
||||
|
@ -26,7 +27,7 @@ class Widgets
|
|||
->create(
|
||||
'lastblogupdate',
|
||||
__('Last blog update'),
|
||||
self::parseWidget(...),
|
||||
[self::class, 'parseWidget'],
|
||||
null,
|
||||
'Show the dates of last updates of your blog in a widget'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue