Compare commits
No commits in common. "master" and "main" have entirely different histories.
|
@ -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
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-2.5.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.23-c44d58.svg)
|
||||
[![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.13-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/moreCSS)
|
||||
[![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
|
||||
* PHP 8.1+
|
||||
* Dotclear content admin permissions to manage CSS
|
||||
* content admin permissions to manage CSS
|
||||
|
||||
## USAGE
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ $this->registerModule(
|
|||
'Style sheet',
|
||||
'Another CSS stylesheet for the active theme',
|
||||
'Osku and contributors',
|
||||
'2.5.2',
|
||||
'2.5.1',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="moreCSS">
|
||||
<name>Style sheet</name>
|
||||
<version>2.5.2</version>
|
||||
<version>2.5.1</version>
|
||||
<author>Osku and contributors</author>
|
||||
<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: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>
|
||||
|
|
|
@ -19,8 +19,8 @@ use Dotclear\Core\Process;
|
|||
use Dotclear\Core\Backend\Favorites;
|
||||
|
||||
/**
|
||||
* @brief moreCSS manage class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS manage class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
|
@ -8,8 +8,8 @@ use Dotclear\App;
|
|||
use Dotclear\Core\Process;
|
||||
|
||||
/**
|
||||
* @brief moreCSS frontend class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS frontend class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
|
@ -9,8 +9,8 @@ use Dotclear\Core\Process;
|
|||
use Exception;
|
||||
|
||||
/**
|
||||
* @brief moreCSS install class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS install class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
|
@ -23,8 +23,8 @@ use Dotclear\Helper\Html\Html;
|
|||
use Exception;
|
||||
|
||||
/**
|
||||
* @brief moreCSS manage class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS manage class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
|
@ -8,8 +8,8 @@ use Dotclear\App;
|
|||
use Dotclear\Module\MyPlugin;
|
||||
|
||||
/**
|
||||
* @brief moreCSS My helper.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS My helper.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
@ -20,8 +20,9 @@ class My extends MyPlugin
|
|||
protected static function checkCustomContext(int $context): ?bool
|
||||
{
|
||||
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')
|
||||
&& App::blog()->isDefined()
|
||||
&& App::auth()->check(App::auth()->makePermissions([
|
||||
App::auth()::PERMISSION_ADMIN,
|
||||
App::auth()::PERMISSION_CONTENT_ADMIN,
|
||||
|
|
|
@ -8,8 +8,8 @@ use Dotclear\App;
|
|||
use Dotclear\Core\Process;
|
||||
|
||||
/**
|
||||
* @brief moreCSS prepend class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS prepend class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
|
@ -8,8 +8,8 @@ use Dotclear\Core\Process;
|
|||
use Dotclear\Plugin\Uninstaller\Uninstaller;
|
||||
|
||||
/**
|
||||
* @brief moreCSS uninstall class.
|
||||
* @ingroup moreCSS
|
||||
* @brief moreCSS uninstall class.
|
||||
* @ingroup moreCSS
|
||||
*
|
||||
* @author Osku (author)
|
||||
* @author Jean-Christian Denis (latest)
|
||||
|
|
Loading…
Reference in New Issue