Compare commits

..

No commits in common. "master" and "main" have entirely different histories.
master ... main

11 changed files with 22 additions and 27 deletions

View File

@ -1,9 +1,3 @@
moreCSS 2.5.2 - 2023.10.23
===========================================================
* Require Dotclear 2.28
* Require PHP 8.1
* Fix repository branch
moreCSS 2.5.1 - 2023.10.13 moreCSS 2.5.1 - 2023.10.13
=========================================================== ===========================================================
* Require Dotclear 2.28 * Require Dotclear 2.28

View File

@ -1,7 +1,7 @@
# README # README
[![Release](https://img.shields.io/badge/release-2.5.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases) [![Release](https://img.shields.io/badge/release-2.5.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases)
![Date](https://img.shields.io/badge/date-2023.10.23-c44d58.svg) ![Date](https://img.shields.io/badge/date-2023.10.13-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/moreCSS) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/moreCSS)
[![License](https://img.shields.io/github/license/JcDenis/moreCSS)](https://git.dotclear.watch/JcDenis/moreCSS/blob/master/LICENSE) [![License](https://img.shields.io/github/license/JcDenis/moreCSS)](https://git.dotclear.watch/JcDenis/moreCSS/blob/master/LICENSE)
@ -16,7 +16,7 @@ _moreCSS_ is a plugin for the open-source web publishing software called [Dotcle
* Dotclear 2.28 * Dotclear 2.28
* PHP 8.1+ * PHP 8.1+
* Dotclear content admin permissions to manage CSS * content admin permissions to manage CSS
## USAGE ## USAGE

View File

@ -17,7 +17,7 @@ $this->registerModule(
'Style sheet', 'Style sheet',
'Another CSS stylesheet for the active theme', 'Another CSS stylesheet for the active theme',
'Osku and contributors', 'Osku and contributors',
'2.5.2', '2.5.1',
[ [
'requires' => [['core', '2.28']], 'requires' => [['core', '2.28']],
'permissions' => 'My', 'permissions' => 'My',

View File

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="moreCSS"> <module id="moreCSS">
<name>Style sheet</name> <name>Style sheet</name>
<version>2.5.2</version> <version>2.5.1</version>
<author>Osku and contributors</author> <author>Osku and contributors</author>
<desc>Another CSS stylesheet for the active theme</desc> <desc>Another CSS stylesheet for the active theme</desc>
<file>https://git.dotclear.watch/JcDenis/moreCSS/releases/download/v2.5.2/plugin-moreCSS.zip</file> <file>https://git.dotclear.watch/JcDenis/moreCSS/releases/download/v2.5.1/plugin-moreCSS.zip</file>
<da:dcmin>2.28</da:dcmin> <da:dcmin>2.28</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/moreCSS/src/branch/master/README.md</da:details> <da:details>https://git.dotclear.watch/JcDenis/moreCSS/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/moreCSS/issues</da:support> <da:support>https://git.dotclear.watch/JcDenis/moreCSS/issues</da:support>

View File

@ -19,8 +19,8 @@ use Dotclear\Core\Process;
use Dotclear\Core\Backend\Favorites; use Dotclear\Core\Backend\Favorites;
/** /**
* @brief moreCSS manage class. * @brief moreCSS manage class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -8,8 +8,8 @@ use Dotclear\App;
use Dotclear\Core\Process; use Dotclear\Core\Process;
/** /**
* @brief moreCSS frontend class. * @brief moreCSS frontend class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -9,8 +9,8 @@ use Dotclear\Core\Process;
use Exception; use Exception;
/** /**
* @brief moreCSS install class. * @brief moreCSS install class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -23,8 +23,8 @@ use Dotclear\Helper\Html\Html;
use Exception; use Exception;
/** /**
* @brief moreCSS manage class. * @brief moreCSS manage class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -8,8 +8,8 @@ use Dotclear\App;
use Dotclear\Module\MyPlugin; use Dotclear\Module\MyPlugin;
/** /**
* @brief moreCSS My helper. * @brief moreCSS My helper.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)
@ -20,8 +20,9 @@ class My extends MyPlugin
protected static function checkCustomContext(int $context): ?bool protected static function checkCustomContext(int $context): ?bool
{ {
return match ($context) { return match ($context) {
// Add content admin perm to backend // Allow BACKEND and MANAGE and MENU to also content admin
self::MANAGE, self::MENU => App::task()->checkContext('BACKEND') self::MANAGE, self::MENU => App::task()->checkContext('BACKEND')
&& App::blog()->isDefined()
&& App::auth()->check(App::auth()->makePermissions([ && App::auth()->check(App::auth()->makePermissions([
App::auth()::PERMISSION_ADMIN, App::auth()::PERMISSION_ADMIN,
App::auth()::PERMISSION_CONTENT_ADMIN, App::auth()::PERMISSION_CONTENT_ADMIN,

View File

@ -8,8 +8,8 @@ use Dotclear\App;
use Dotclear\Core\Process; use Dotclear\Core\Process;
/** /**
* @brief moreCSS prepend class. * @brief moreCSS prepend class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -8,8 +8,8 @@ use Dotclear\Core\Process;
use Dotclear\Plugin\Uninstaller\Uninstaller; use Dotclear\Plugin\Uninstaller\Uninstaller;
/** /**
* @brief moreCSS uninstall class. * @brief moreCSS uninstall class.
* @ingroup moreCSS * @ingroup moreCSS
* *
* @author Osku (author) * @author Osku (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)