Skip to content

Commit aa7ec2d

Browse files
committed
upgrade to dotclear 2.28
1 parent a411106 commit aa7ec2d

File tree

8 files changed

+125
-146
lines changed

8 files changed

+125
-146
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
postInfoWidget 1.2 - 2023.10.20
2+
===========================================================
3+
* Require Dotclear 2.28
4+
* Require PHP 8.1
5+
* Upgrade to Dotclear 2.28
6+
17
postInfoWidget 1.1 - 2023.08.13
28
===========================================================
39
* Require Dotclear 2.27

README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
# README
22

3-
[![Release](https://img.shields.io/badge/release-1.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/postInfoWidget/releases)
4-
[![Date](https://img.shields.io/badge/date-2023.08.13-c44d58.svg)](https://git.dotclear.watch/JcDenis/postInfoWidget/releases)
5-
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download)
3+
[![Release](https://img.shields.io/badge/release-1.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/postInfoWidget/releases)
4+
![Date](https://img.shields.io/badge/date-2023.10.20-c44d58.svg)
5+
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
66
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/postInfoWidget)
7-
[![License](https://img.shields.io/github/license/JcDenis/postInfoWidget)](https://git.dotclear.watch/JcDenis/postInfoWidget/blob/master/LICENSE)
7+
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/postInfoWidget/src/branch/master/LICENSE)
88

9-
## WHAT IS POSTINFOWIDGET ?
9+
## ABOUT
1010

11-
_postInfoWidget_ "Entry information list" is a plugin for the open-source
12-
web publishing software called Dotclear.
11+
_postInfoWidget_ is a plugin for the open-source web publishing software called [Dotclear](https://www.dotclear.org).
1312

14-
Show entry details in a widget.
13+
> Show entry details in a widget.
1514
1615
## REQUIREMENTS
1716

18-
_postInfoWidget_ requires:
19-
20-
* permissions to manage widgets
21-
* Dotclear 2.26
22-
* PHP 7.4
17+
* Dotclear 2.28
18+
* PHP 8.1
19+
* Dotclear permissions to manage widgets
2320

2421
## USAGE
2522

@@ -30,14 +27,15 @@ Add and configure "Entry information list" from widgets manager.
3027

3128
## LINKS
3229

33-
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
34-
* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/postInfoWidget) or [GitHub Page](https://github.com/JcDenis/postInfoWidget)
35-
* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/postInfoWidget/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postInfoWidget)
36-
* Discuss and help : [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=332974#p332974)
30+
* [License](https://git.dotclear.watch/JcDenis/postInfoWidget/src/branch/master/LICENSE)
31+
* [Packages & details](https://git.dotclear.watch/JcDenis/postInfoWidget/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/details/postInfoWidget))
32+
* [Sources & contributions](https://git.dotclear.watch/JcDenis/postInfoWidget) (or on [GitHub](https://github.com/JcDenis/postInfoWidget))
33+
* [Issues & security](https://git.dotclear.watch/JcDenis/postInfoWidget/issues) (or on [GitHub](https://github.com/JcDenis/postInfoWidget/issues))
34+
* [Discuss & help](http://forum.dotclear.org/viewtopic.php?pid=332974#p332974)
3735

3836
## CONTRIBUTORS
3937

40-
* Jean-Christian Denis
38+
* Jean-Christian Denis (author)
4139
* Pierre Van Glabeke
4240

4341
You are welcome to contribute to this code.

_define.php

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
<?php
22
/**
3-
* @brief postInfoWidget, a plugin for Dotclear 2
3+
* @file
4+
* @brief The plugin postInfoWidget definition
5+
* @ingroup postInfoWidget
46
*
5-
* @package Dotclear
6-
* @subpackage Plugin
7+
* @defgroup postInfoWidget Plugin postInfoWidget.
78
*
8-
* @author Jean-Christian Denis, Pierre Van Glabeke
9+
* Show Entry informations on a widget.
910
*
10-
* @copyright Jean-Christian Denis
11-
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
11+
* @author Jean-Christian Denis
12+
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
1213
*/
13-
if (!defined('DC_RC_PATH')) {
14-
return null;
15-
}
14+
declare(strict_types=1);
1615

1716
$this->registerModule(
1817
'Entry information list',
1918
'Show Entry informations on a widget',
2019
'Jean-Christian Denis, Pierre Van Glabeke',
21-
'1.1',
20+
'1.2',
2221
[
23-
'requires' => [['core', '2.27']],
24-
'permissions' => dcCore::app()->auth->makePermissions([
25-
dcAuth::PERMISSION_USAGE,
26-
dcAuth::PERMISSION_CONTENT_ADMIN,
27-
]),
28-
'type' => 'plugin',
29-
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
30-
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
31-
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
22+
'requires' => [['core', '2.28']],
23+
'permissions' => 'My',
24+
'type' => 'plugin',
25+
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
26+
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
27+
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
3228
]
3329
);

dcstore.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<modules xmlns:da="http://dotaddict.org/da/">
33
<module id="postInfoWidget">
44
<name>Entry information list</name>
5-
<version>1.1</version>
5+
<version>1.2</version>
66
<author>Jean-Christian Denis, Pierre Van Glabeke</author>
77
<desc>Show Entry informations on a widget</desc>
8-
<file>https://git.dotclear.watch/JcDenis/postInfoWidget/releases/download/v1.1/plugin-postInfoWidget.zip</file>
9-
<da:dcmin>2.27</da:dcmin>
8+
<file>https://git.dotclear.watch/JcDenis/postInfoWidget/releases/download/v1.2/plugin-postInfoWidget.zip</file>
9+
<da:dcmin>2.28</da:dcmin>
1010
<da:details>https://git.dotclear.watch/JcDenis/postInfoWidget/src/branch/master/README.md</da:details>
1111
<da:support>https://git.dotclear.watch/JcDenis/postInfoWidget/issues</da:support>
1212
</module>

src/Backend.php

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<?php
2-
/**
3-
* @brief postInfoWidget, a plugin for Dotclear 2
4-
*
5-
* @package Dotclear
6-
* @subpackage Plugin
7-
*
8-
* @author Jean-Christian Denis, Pierre Van Glabeke
9-
*
10-
* @copyright Jean-Christian Denis
11-
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
12-
*/
2+
133
declare(strict_types=1);
144

155
namespace Dotclear\Plugin\postInfoWidget;
166

17-
use dcCore;
7+
use Dotclear\App;
188
use Dotclear\Core\Process;
199

10+
/**
11+
* @brief postInfoWidget backend class.
12+
* @ingroup postInfoWidget
13+
*
14+
* @author Jean-Christian Denis
15+
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
16+
*/
2017
class Backend extends Process
2118
{
2219
public static function init(): bool
@@ -30,9 +27,7 @@ public static function process(): bool
3027
return false;
3128
}
3229

33-
dcCore::app()->addBehaviors([
34-
'initWidgets' => [Widgets::class, 'initWidgets'],
35-
]);
30+
App::behavior()->addBehavior('initWidgets', Widgets::initWidgets(...));
3631

3732
return true;
3833
}

src/Frontend.php

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<?php
2-
/**
3-
* @brief postInfoWidget, a plugin for Dotclear 2
4-
*
5-
* @package Dotclear
6-
* @subpackage Plugin
7-
*
8-
* @author Jean-Christian Denis, Pierre Van Glabeke
9-
*
10-
* @copyright Jean-Christian Denis
11-
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
12-
*/
2+
133
declare(strict_types=1);
144

155
namespace Dotclear\Plugin\postInfoWidget;
166

17-
use dcCore;
7+
use Dotclear\App;
188
use Dotclear\Core\Process;
199

10+
/**
11+
* @brief postInfoWidget frontend class.
12+
* @ingroup postInfoWidget
13+
*
14+
* @author Jean-Christian Denis
15+
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
16+
*/
2017
class Frontend extends Process
2118
{
2219
public static function init(): bool
@@ -30,9 +27,7 @@ public static function process(): bool
3027
return false;
3128
}
3229

33-
dcCore::app()->addBehaviors([
34-
'initWidgets' => [Widgets::class, 'initWidgets'],
35-
]);
30+
App::behavior()->addBehavior('initWidgets', Widgets::initWidgets(...));
3631

3732
return true;
3833
}

src/My.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<?php
2-
/**
3-
* @brief postInfoWidget, a plugin for Dotclear 2
4-
*
5-
* @package Dotclear
6-
* @subpackage Plugin
7-
*
8-
* @author Jean-Christian Denis, Pierre Van Glabeke
9-
*
10-
* @copyright Jean-Christian Denis
11-
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
12-
*/
2+
133
declare(strict_types=1);
144

155
namespace Dotclear\Plugin\postInfoWidget;
166

177
use Dotclear\Module\MyPlugin;
188

9+
/**
10+
* @brief postInfoWidget My helper.
11+
* @ingroup postInfoWidget
12+
*
13+
* @author Jean-Christian Denis
14+
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
15+
*/
1916
class My extends MyPlugin
2017
{
18+
// Use default permissions
2119
}

0 commit comments

Comments
 (0)