Compare commits
2 Commits
a0de48bf4a
...
2b5a860be1
Author | SHA1 | Date |
---|---|---|
Jean-Christian Paul Denis | 2b5a860be1 | |
Jean-Christian Paul Denis | 5c55eaa503 |
79
CHANGELOG.md
79
CHANGELOG.md
|
@ -1,40 +1,57 @@
|
||||||
1.1 - 2023.05.13
|
CategoriesPage 1.2 - 2023.08.06
|
||||||
- require Dotclear 2.26
|
===========================================================
|
||||||
- fix nullsafe warnings
|
* Require Dotclear 2.27
|
||||||
|
* Require PHP 7.4+
|
||||||
|
* Upgrade to Dotclear 2.27
|
||||||
|
* Move third party repository
|
||||||
|
|
||||||
1.0 - 2023.04.11
|
CategoriesPage 1.1 - 2023.05.13
|
||||||
- require Dotclear 2.26
|
===========================================================
|
||||||
- use namespace
|
* require Dotclear 2.26
|
||||||
|
* fix nullsafe warnings
|
||||||
|
|
||||||
0.7.1 - 2022.12.20
|
CategoriesPage 1.0 - 2023.04.11
|
||||||
- remove currywurst template
|
===========================================================
|
||||||
- use dotclear method for widget
|
* require Dotclear 2.26
|
||||||
|
* use namespace
|
||||||
|
|
||||||
0.7 - 2022.12.08
|
CategoriesPage 0.7.1 - 2022.12.20
|
||||||
- update to dotclear 2.24
|
===========================================================
|
||||||
- review code
|
* remove currywurst template
|
||||||
|
* use dotclear method for widget
|
||||||
|
|
||||||
0.6 - 2017.11.05 : Pierre Van Glabeke
|
CategoriesPage 0.7 - 2022.12.08
|
||||||
- modifs html
|
===========================================================
|
||||||
- ajout dotty
|
* update to dotclear 2.24
|
||||||
|
* review code
|
||||||
|
|
||||||
0.5 - 2015.07.19 : Pierre Van Glabeke
|
CategoriesPage 0.6 - 2017.11.05 : Pierre Van Glabeke
|
||||||
- modif breadcrumb
|
===========================================================
|
||||||
- héritage de thème mustek
|
* modifs html
|
||||||
- dc2.8 requis
|
* ajout dotty
|
||||||
|
|
||||||
0.4 - 2015.03.16 : Pierre Van Glabeke
|
CategoriesPage 0.5 - 2015.07.19 : Pierre Van Glabeke
|
||||||
- ajout div
|
===========================================================
|
||||||
- modif identification widget
|
* modif breadcrumb
|
||||||
|
* héritage de thème mustek
|
||||||
|
* dc2.8 requis
|
||||||
|
|
||||||
0.3 - 2015.03.09 : Pierre Van Glabeke
|
CategoriesPage 0.4 - 2015.03.16 : Pierre Van Glabeke
|
||||||
- html5
|
===========================================================
|
||||||
|
* ajout div
|
||||||
|
* modif identification widget
|
||||||
|
|
||||||
0.2 - 2014.12.14 : Pierre Van Glabeke
|
CategoriesPage 0.3 - 2015.03.09 : Pierre Van Glabeke
|
||||||
- Ajout case hors ligne
|
===========================================================
|
||||||
- Ajout tpl pour currywurst
|
* html5
|
||||||
- Compatibilité dc2.7
|
|
||||||
|
|
||||||
0.1 - 2013.12.28 : Pierre Van Glabeke, Bernard Le Roux
|
CategoriesPage 0.2 - 2014.12.14 : Pierre Van Glabeke
|
||||||
- Refonte du code depuis CategoriesMode
|
===========================================================
|
||||||
- Compatibilité dc2.5 et 2.6
|
* Ajout case hors ligne
|
||||||
|
* Ajout tpl pour currywurst
|
||||||
|
* Compatibilité dc2.7
|
||||||
|
|
||||||
|
CategoriesPage 0.1 - 2013.12.28 : Pierre Van Glabeke, Bernard Le Roux
|
||||||
|
===========================================================
|
||||||
|
* Refonte du code depuis CategoriesMode
|
||||||
|
* Compatibilité dc2.5 et 2.6
|
|
@ -3,7 +3,7 @@
|
||||||
[![Release](https://img.shields.io/github/v/release/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/releases)
|
[![Release](https://img.shields.io/github/v/release/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/releases)
|
||||||
[![Date](https://img.shields.io/github/release-date/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/releases)
|
[![Date](https://img.shields.io/github/release-date/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/releases)
|
||||||
[![Issues](https://img.shields.io/github/issues/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/issues)
|
[![Issues](https://img.shields.io/github/issues/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/issues)
|
||||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download)
|
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download)
|
||||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/CategoriesPage)
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/CategoriesPage)
|
||||||
[![License](https://img.shields.io/github/license/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/blob/master/LICENSE)
|
[![License](https://img.shields.io/github/license/JcDenis/CategoriesPage)](https://github.com/JcDenis/CategoriesPage/blob/master/LICENSE)
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ A widget is also available.
|
||||||
_CategoriesPage_ requires:
|
_CategoriesPage_ requires:
|
||||||
|
|
||||||
* admin permissions
|
* admin permissions
|
||||||
* Dotclear 2.26
|
* Dotclear 2.27
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ default templates are on plugin directory CategoriesPage/default-templates/
|
||||||
## LINKS
|
## LINKS
|
||||||
|
|
||||||
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
|
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
|
||||||
* Source & contribution : [GitHub Page](https://github.com/JcDenis/CategoriesPage)
|
* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/CategoriesPage) or [GitHub Page](https://github.com/JcDenis/CategoriesPage)
|
||||||
* Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/CategoriesPage)
|
* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/CategoriesPage/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/CategoriesPage)
|
||||||
|
|
||||||
## CONTRIBUTORS
|
## CONTRIBUTORS
|
||||||
|
|
||||||
|
|
10
_define.php
10
_define.php
|
@ -18,16 +18,16 @@ $this->registerModule(
|
||||||
'Categories Page',
|
'Categories Page',
|
||||||
'Add a public page for categories list',
|
'Add a public page for categories list',
|
||||||
'Pierre Van Glabeke, Bernard Le Roux and Contributors',
|
'Pierre Van Glabeke, Bernard Le Roux and Contributors',
|
||||||
'1.1',
|
'1.2',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.26']],
|
'requires' => [['core', '2.27']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcAuth::PERMISSION_ADMIN,
|
dcAuth::PERMISSION_ADMIN,
|
||||||
]),
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
|
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
|
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
|
||||||
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
10
dcstore.xml
10
dcstore.xml
|
@ -2,12 +2,12 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="CategoriesPage">
|
<module id="CategoriesPage">
|
||||||
<name>Categories Page</name>
|
<name>Categories Page</name>
|
||||||
<version>1.1</version>
|
<version>1.2</version>
|
||||||
<author>Pierre Van Glabeke, Bernard Le Roux and Contributors</author>
|
<author>Pierre Van Glabeke, Bernard Le Roux and Contributors</author>
|
||||||
<desc>Add a public page for categories list</desc>
|
<desc>Add a public page for categories list</desc>
|
||||||
<file>https://github.com/JcDenis/CategoriesPage/releases/download/v1.1/plugin-CategoriesPage.zip</file>
|
<file>https://gitea.dotclear.watch/JcDenis/CategoriesPage/releases/download/v1.2/plugin-CategoriesPage.zip</file>
|
||||||
<da:dcmin>2.26</da:dcmin>
|
<da:dcmin>2.27</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/CategoriesPage</da:details>
|
<da:details>https://git.dotclear.watch/JcDenis/CategoriesPage/src/branch/master/README.md</da:details>
|
||||||
<da:support>https://github.com/JcDenis/CategoriesPage</da:support>
|
<da:support>https://git.dotclear.watch/JcDenis/CategoriesPage/issues</da:support>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
|
@ -15,20 +15,18 @@ declare(strict_types=1);
|
||||||
namespace Dotclear\Plugin\CategoriesPage;
|
namespace Dotclear\Plugin\CategoriesPage;
|
||||||
|
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use Dotclear\Core\Process;
|
||||||
|
|
||||||
class Backend extends dcNsProcess
|
class Backend extends Process
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
public static function init(): bool
|
||||||
{
|
{
|
||||||
static::$init = defined('DC_CONTEXT_ADMIN');
|
return self::status(My::checkContext(My::BACKEND));
|
||||||
|
|
||||||
return static::$init;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function process(): bool
|
public static function process(): bool
|
||||||
{
|
{
|
||||||
if (!static::$init) {
|
if (!self::status()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,20 +16,18 @@ namespace Dotclear\Plugin\CategoriesPage;
|
||||||
|
|
||||||
use ArrayObject;
|
use ArrayObject;
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use Dotclear\Core\Process;
|
||||||
|
|
||||||
class Frontend extends dcNsProcess
|
class Frontend extends Process
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
public static function init(): bool
|
||||||
{
|
{
|
||||||
static::$init = defined('DC_RC_PATH');
|
return self::status(My::checkContext(My::FRONTEND));
|
||||||
|
|
||||||
return static::$init;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function process(): bool
|
public static function process(): bool
|
||||||
{
|
{
|
||||||
if (!static::$init) {
|
if (!self::status()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
29
src/My.php
29
src/My.php
|
@ -14,36 +14,11 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Dotclear\Plugin\CategoriesPage;
|
namespace Dotclear\Plugin\CategoriesPage;
|
||||||
|
|
||||||
use dcCore;
|
use Dotclear\Module\MyPlugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This module definitions.
|
* This module definitions.
|
||||||
*/
|
*/
|
||||||
class My
|
class My extends MyPlugin
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* This module id.
|
|
||||||
*/
|
|
||||||
public static function id(): string
|
|
||||||
{
|
|
||||||
return basename(dirname(__DIR__));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This module name.
|
|
||||||
*/
|
|
||||||
public static function name(): string
|
|
||||||
{
|
|
||||||
$name = dcCore::app()->plugins->moduleInfo(self::id(), 'name');
|
|
||||||
|
|
||||||
return __(is_string($name) ? $name : self::id());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This module path.
|
|
||||||
*/
|
|
||||||
public static function path(): string
|
|
||||||
{
|
|
||||||
return dirname(__DIR__);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,20 +15,18 @@ declare(strict_types=1);
|
||||||
namespace Dotclear\Plugin\CategoriesPage;
|
namespace Dotclear\Plugin\CategoriesPage;
|
||||||
|
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use Dotclear\Core\Process;
|
||||||
|
|
||||||
class Prepend extends dcNsProcess
|
class Prepend extends Process
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
public static function init(): bool
|
||||||
{
|
{
|
||||||
static::$init = defined('DC_RC_PATH');
|
return self::status(My::checkContext(My::PREPEND));
|
||||||
|
|
||||||
return static::$init;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function process(): bool
|
public static function process(): bool
|
||||||
{
|
{
|
||||||
if (!static::$init) {
|
if (!self::status()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue