Compare commits
No commits in common. "39510449d1575b5678f6af8955da75f3e3f2d198" and "aa8963901a74414cad14c010a734511304faadc0" have entirely different histories.
39510449d1
...
aa8963901a
40
CHANGELOG.md
40
CHANGELOG.md
|
@ -1,29 +1,17 @@
|
||||||
checkStoreVersion 0.4 - 2023.08.06
|
0.3.1 - 2003.03.19
|
||||||
===========================================================
|
- fix init check
|
||||||
* Require Dotclear 2.25
|
- fix missing closing div
|
||||||
* Require PHP 7.4+
|
- fix tab methods names
|
||||||
* Check versions > 2.26.1
|
|
||||||
* Move third party repository
|
|
||||||
* Use Dotclear style for changelog
|
|
||||||
|
|
||||||
checkStoreVersion 0.3.1 - 2003.03.19
|
0.3 - 2023.03.11
|
||||||
===========================================================
|
- required Dotclear 2.25, up to 2.25.3
|
||||||
* fix init check
|
- use php namespace
|
||||||
* fix missing closing div
|
- fix translation
|
||||||
* fix tab methods names
|
|
||||||
|
|
||||||
checkStoreVersion 0.3 - 2023.03.11
|
0.2 - 2022.12.03
|
||||||
===========================================================
|
- Fix direct link to repository (thanks @Gvx- )
|
||||||
* required Dotclear 2.25, up to 2.25.3
|
- Add Dotclear maximum version compatibility (thanks @Gvx- )
|
||||||
* use php namespace
|
|
||||||
* fix translation
|
|
||||||
|
|
||||||
checkStoreVersion 0.2 - 2022.12.03
|
0.1.1 - 2022.12.03
|
||||||
===========================================================
|
- Required Dotclear 2.19, up to 2.23.1
|
||||||
* Fix direct link to repository (thanks @Gvx- )
|
- First release
|
||||||
* Add Dotclear maximum version compatibility (thanks @Gvx- )
|
|
||||||
|
|
||||||
checkStoreVersion 0.1.1 - 2022.12.03
|
|
||||||
===========================================================
|
|
||||||
* Required Dotclear 2.19, up to 2.23.1
|
|
||||||
* First release
|
|
23
README.md
23
README.md
|
@ -1,15 +1,15 @@
|
||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/github/v/release/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
|
[![Release](https://img.shields.io/github/v/release/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/releases)
|
||||||
[![Date](https://img.shields.io/github/release-date/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
|
[![Date](https://img.shields.io/github/release-date/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/releases)
|
||||||
[![Issues](https://img.shields.io/github/issues/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/issues)
|
[![Issues](https://img.shields.io/github/issues/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/issues)
|
||||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.25-blue.svg)](https://fr.dotclear.org/download)
|
[![Dotclear](https://img.shields.io/badge/dotclear-v2.25-blue.svg)](https://fr.dotclear.org/download)
|
||||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
|
||||||
[![License](https://img.shields.io/github/license/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/blob/master/LICENSE)
|
[![License](https://img.shields.io/github/license/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/blob/master/LICENSE)
|
||||||
|
|
||||||
## WHAT IS CHECKSTOREVERSION ?
|
## WHAT IS CHECKSTOREVERSION ?
|
||||||
|
|
||||||
_checkStoreVersion_ is a plugin for the open-source
|
_CheckStoreVersion_ is a plugin for the open-source
|
||||||
web publishing software called Dotclear.
|
web publishing software called Dotclear.
|
||||||
|
|
||||||
This plugin check official or third-party repositories of installed plugins or themes
|
This plugin check official or third-party repositories of installed plugins or themes
|
||||||
|
@ -17,17 +17,14 @@ This plugin check official or third-party repositories of installed plugins or t
|
||||||
|
|
||||||
## REQUIREMENTS
|
## REQUIREMENTS
|
||||||
|
|
||||||
_checkStoreVersion_ requires:
|
_CheckStoreVersion_ requires:
|
||||||
|
|
||||||
* superadmin permissions
|
* superadmin permissions
|
||||||
* Dotclear 2.25 to 2.26.1
|
* Dotclear 2.25
|
||||||
* PHP 7.4+
|
|
||||||
|
|
||||||
Current release check plugins and themes Dotclear minimum versions > 2.26.1.
|
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
First install _checkStoreVersion_, manualy from a zip package or from
|
First install _CheckStoreVersion_, manualy from a zip package or from
|
||||||
Dotaddict repository. (See Dotclear's documentation to know how do this)
|
Dotaddict repository. (See Dotclear's documentation to know how do this)
|
||||||
|
|
||||||
Check installed plugins or themes from tab "store version" on plugins/themes page.
|
Check installed plugins or themes from tab "store version" on plugins/themes page.
|
||||||
|
@ -35,8 +32,8 @@ Check installed plugins or themes from tab "store version" on plugins/themes pag
|
||||||
## 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/checkStoreVersion) or [GitHub Page](https://github.com/JcDenis/checkStoreVersion)
|
* Source & contribution : [GitHub Page](https://github.com/JcDenis/checkStoreVersion)
|
||||||
* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
|
* Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
|
||||||
|
|
||||||
## CONTRIBUTORS
|
## CONTRIBUTORS
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,13 @@ $this->registerModule(
|
||||||
'Check store version',
|
'Check store version',
|
||||||
'Check plugins and themes available version before update',
|
'Check plugins and themes available version before update',
|
||||||
'Jean-Christian Denis and Contributors',
|
'Jean-Christian Denis and Contributors',
|
||||||
'0.4',
|
'0.3.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.25']],
|
'requires' => [['core', '2.25']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
'support' => 'https://github.com/JcDenis/checkStoreVersion',
|
||||||
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/checkStoreVersion',
|
||||||
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/checkStoreVersion/master/dcstore.xml',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="checkStoreVersion">
|
<module id="checkStoreVersion">
|
||||||
<name>Check store version</name>
|
<name>Check store version</name>
|
||||||
<version>0.4</version>
|
<version>0.3.1</version>
|
||||||
<author>Jean-Christian Denis and Contributors</author>
|
<author>Jean-Christian Denis and Contributors</author>
|
||||||
<desc>Check plugins and themes available version before update</desc>
|
<desc>Check plugins and themes available version before update</desc>
|
||||||
<file>https://gitea.dotclear.watch/JcDenis/checkStoreVersion/releases/download/v0.4/plugin-checkStoreVersion.zip</file>
|
<file>https://github.com/JcDenis/checkStoreVersion/releases/download/v0.3.1/plugin-checkStoreVersion.zip</file>
|
||||||
<da:dcmin>2.25</da:dcmin>
|
<da:dcmin>2.25</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/checkStoreVersion/src/branch/master/README.md</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/checkStoreVersion</da:details>
|
||||||
<da:support>https://git.dotclear.watch/JcDenis/checkStoreVersion/issues</da:support>
|
<da:support>https://github.com/JcDenis/checkStoreVersion</da:support>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
|
@ -22,6 +22,7 @@ class Backend extends dcNsProcess
|
||||||
public static function init(): bool
|
public static function init(): bool
|
||||||
{
|
{
|
||||||
static::$init = defined('DC_CONTEXT_ADMIN')
|
static::$init = defined('DC_CONTEXT_ADMIN')
|
||||||
|
&& !is_null(dcCore::app()->auth) // nullsafe PHP < 8.0
|
||||||
&& dcCore::app()->auth->isSuperAdmin();
|
&& dcCore::app()->auth->isSuperAdmin();
|
||||||
|
|
||||||
return static::$init;
|
return static::$init;
|
||||||
|
|
|
@ -26,12 +26,22 @@ class BackendBehaviors
|
||||||
# admin plugins page tab
|
# admin plugins page tab
|
||||||
public static function pluginsTabs(): void
|
public static function pluginsTabs(): void
|
||||||
{
|
{
|
||||||
|
// nullsafe PHP < 8.0
|
||||||
|
if (is_null(dcCore::app()->adminurl)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self::modulesToolsTabs(dcCore::app()->plugins, explode(',', DC_DISTRIB_PLUGINS), dcCore::app()->adminurl->get('admin.plugins'));
|
self::modulesToolsTabs(dcCore::app()->plugins, explode(',', DC_DISTRIB_PLUGINS), dcCore::app()->adminurl->get('admin.plugins'));
|
||||||
}
|
}
|
||||||
|
|
||||||
# admin themes page tab
|
# admin themes page tab
|
||||||
public static function themesTabs(): void
|
public static function themesTabs(): void
|
||||||
{
|
{
|
||||||
|
// nullsafe PHP < 8.0
|
||||||
|
if (is_null(dcCore::app()->adminurl)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self::modulesToolsTabs(dcCore::app()->themes, explode(',', DC_DISTRIB_THEMES), dcCore::app()->adminurl->get('admin.blog.theme'));
|
self::modulesToolsTabs(dcCore::app()->themes, explode(',', DC_DISTRIB_THEMES), dcCore::app()->adminurl->get('admin.blog.theme'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,5 @@ namespace Dotclear\Plugin\checkStoreVersion;
|
||||||
|
|
||||||
class My
|
class My
|
||||||
{
|
{
|
||||||
public const DC_MAX = '2.26.1';
|
public const DC_MAX = '2.26';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue