Compare commits

..

No commits in common. "2b5a860be1504e7304e7ff178ef729e8dd5a80d6" and "a0de48bf4a2158622854d13a82f186ca026392c5" have entirely different histories.

8 changed files with 90 additions and 76 deletions

View File

@ -1,57 +1,40 @@
CategoriesPage 1.2 - 2023.08.06 1.1 - 2023.05.13
=========================================================== - require Dotclear 2.26
* Require Dotclear 2.27 - fix nullsafe warnings
* Require PHP 7.4+
* Upgrade to Dotclear 2.27
* Move third party repository
CategoriesPage 1.1 - 2023.05.13 1.0 - 2023.04.11
=========================================================== - require Dotclear 2.26
* require Dotclear 2.26 - use namespace
* fix nullsafe warnings
CategoriesPage 1.0 - 2023.04.11 0.7.1 - 2022.12.20
=========================================================== - remove currywurst template
* require Dotclear 2.26 - use dotclear method for widget
* use namespace
CategoriesPage 0.7.1 - 2022.12.20 0.7 - 2022.12.08
=========================================================== - update to dotclear 2.24
* remove currywurst template - review code
* use dotclear method for widget
CategoriesPage 0.7 - 2022.12.08 0.6 - 2017.11.05 : Pierre Van Glabeke
=========================================================== - modifs html
* update to dotclear 2.24 - ajout dotty
* review code
CategoriesPage 0.6 - 2017.11.05 : Pierre Van Glabeke 0.5 - 2015.07.19 : Pierre Van Glabeke
=========================================================== - modif breadcrumb
* modifs html - héritage de thème mustek
* ajout dotty - dc2.8 requis
CategoriesPage 0.5 - 2015.07.19 : Pierre Van Glabeke 0.4 - 2015.03.16 : Pierre Van Glabeke
=========================================================== - ajout div
* modif breadcrumb - modif identification widget
* héritage de thème mustek
* dc2.8 requis
CategoriesPage 0.4 - 2015.03.16 : Pierre Van Glabeke 0.3 - 2015.03.09 : Pierre Van Glabeke
=========================================================== - html5
* ajout div
* modif identification widget
CategoriesPage 0.3 - 2015.03.09 : Pierre Van Glabeke 0.2 - 2014.12.14 : Pierre Van Glabeke
=========================================================== - Ajout case hors ligne
* html5 - Ajout tpl pour currywurst
- Compatibilité dc2.7
CategoriesPage 0.2 - 2014.12.14 : Pierre Van Glabeke 0.1 - 2013.12.28 : Pierre Van Glabeke, Bernard Le Roux
=========================================================== - Refonte du code depuis CategoriesMode
* Ajout case hors ligne - Compatibilité dc2.5 et 2.6
* 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

View File

@ -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.27-blue.svg)](https://fr.dotclear.org/download) [![Dotclear](https://img.shields.io/badge/dotclear-v2.26-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.27 * Dotclear 2.26
## 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 : [Gitea Page](https://git.dotclear.watch/JcDenis/CategoriesPage) or [GitHub Page](https://github.com/JcDenis/CategoriesPage) * Source & contribution : [GitHub Page](https://github.com/JcDenis/CategoriesPage)
* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/CategoriesPage/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/CategoriesPage) * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/CategoriesPage)
## CONTRIBUTORS ## CONTRIBUTORS

View File

@ -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.2', '1.1',
[ [
'requires' => [['core', '2.27']], 'requires' => [['core', '2.26']],
'permissions' => dcCore::app()->auth->makePermissions([ 'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN, dcAuth::PERMISSION_ADMIN,
]), ]),
'type' => 'plugin', 'type' => 'plugin',
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', 'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
] ]
); );

View File

@ -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.2</version> <version>1.1</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://gitea.dotclear.watch/JcDenis/CategoriesPage/releases/download/v1.2/plugin-CategoriesPage.zip</file> <file>https://github.com/JcDenis/CategoriesPage/releases/download/v1.1/plugin-CategoriesPage.zip</file>
<da:dcmin>2.27</da:dcmin> <da:dcmin>2.26</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/CategoriesPage/src/branch/master/README.md</da:details> <da:details>https://plugins.dotaddict.org/dc2/details/CategoriesPage</da:details>
<da:support>https://git.dotclear.watch/JcDenis/CategoriesPage/issues</da:support> <da:support>https://github.com/JcDenis/CategoriesPage</da:support>
</module> </module>
</modules> </modules>

View File

@ -15,18 +15,20 @@ declare(strict_types=1);
namespace Dotclear\Plugin\CategoriesPage; namespace Dotclear\Plugin\CategoriesPage;
use dcCore; use dcCore;
use Dotclear\Core\Process; use dcNsProcess;
class Backend extends Process class Backend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
return self::status(My::checkContext(My::BACKEND)); static::$init = defined('DC_CONTEXT_ADMIN');
return static::$init;
} }
public static function process(): bool public static function process(): bool
{ {
if (!self::status()) { if (!static::$init) {
return false; return false;
} }

View File

@ -16,18 +16,20 @@ namespace Dotclear\Plugin\CategoriesPage;
use ArrayObject; use ArrayObject;
use dcCore; use dcCore;
use Dotclear\Core\Process; use dcNsProcess;
class Frontend extends Process class Frontend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
return self::status(My::checkContext(My::FRONTEND)); static::$init = defined('DC_RC_PATH');
return static::$init;
} }
public static function process(): bool public static function process(): bool
{ {
if (!self::status()) { if (!static::$init) {
return false; return false;
} }

View File

@ -14,11 +14,36 @@ declare(strict_types=1);
namespace Dotclear\Plugin\CategoriesPage; namespace Dotclear\Plugin\CategoriesPage;
use Dotclear\Module\MyPlugin; use dcCore;
/** /**
* This module definitions. * This module definitions.
*/ */
class My extends MyPlugin class My
{ {
/**
* 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__);
}
} }

View File

@ -15,18 +15,20 @@ declare(strict_types=1);
namespace Dotclear\Plugin\CategoriesPage; namespace Dotclear\Plugin\CategoriesPage;
use dcCore; use dcCore;
use Dotclear\Core\Process; use dcNsProcess;
class Prepend extends Process class Prepend extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool
{ {
return self::status(My::checkContext(My::PREPEND)); static::$init = defined('DC_RC_PATH');
return static::$init;
} }
public static function process(): bool public static function process(): bool
{ {
if (!self::status()) { if (!static::$init) {
return false; return false;
} }