Compare commits

..

No commits in common. "39510449d1575b5678f6af8955da75f3e3f2d198" and "aa8963901a74414cad14c010a734511304faadc0" have entirely different histories.

7 changed files with 45 additions and 49 deletions

View File

@ -1,29 +1,17 @@
checkStoreVersion 0.4 - 2023.08.06
===========================================================
* Require Dotclear 2.25
* Require PHP 7.4+
* Check versions > 2.26.1
* Move third party repository
* Use Dotclear style for changelog
0.3.1 - 2003.03.19
- fix init check
- fix missing closing div
- fix tab methods names
checkStoreVersion 0.3.1 - 2003.03.19
===========================================================
* fix init check
* fix missing closing div
* fix tab methods names
0.3 - 2023.03.11
- required Dotclear 2.25, up to 2.25.3
- use php namespace
- fix translation
checkStoreVersion 0.3 - 2023.03.11
===========================================================
* required Dotclear 2.25, up to 2.25.3
* use php namespace
* fix translation
0.2 - 2022.12.03
- Fix direct link to repository (thanks @Gvx- )
- Add Dotclear maximum version compatibility (thanks @Gvx- )
checkStoreVersion 0.2 - 2022.12.03
===========================================================
* Fix direct link to repository (thanks @Gvx- )
* 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
0.1.1 - 2022.12.03
- Required Dotclear 2.19, up to 2.23.1
- First release

View File

@ -1,15 +1,15 @@
# README
[![Release](https://img.shields.io/github/v/release/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/issues)
[![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://github.com/JcDenis/checkStoreVersion/releases)
[![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)
[![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 ?
_checkStoreVersion_ is a plugin for the open-source
_CheckStoreVersion_ is a plugin for the open-source
web publishing software called Dotclear.
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
_checkStoreVersion_ requires:
_CheckStoreVersion_ requires:
* superadmin permissions
* Dotclear 2.25 to 2.26.1
* PHP 7.4+
Current release check plugins and themes Dotclear minimum versions > 2.26.1.
* superadmin permissions
* Dotclear 2.25
## 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)
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
* 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)
* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/checkStoreVersion)
* Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
## CONTRIBUTORS

View File

@ -18,13 +18,13 @@ $this->registerModule(
'Check store version',
'Check plugins and themes available version before update',
'Jean-Christian Denis and Contributors',
'0.4',
'0.3.1',
[
'requires' => [['core', '2.25']],
'permissions' => null,
'type' => 'plugin',
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
'support' => 'https://github.com/JcDenis/checkStoreVersion',
'details' => 'https://plugins.dotaddict.org/dc2/details/checkStoreVersion',
'repository' => 'https://raw.githubusercontent.com/JcDenis/checkStoreVersion/master/dcstore.xml',
]
);

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="checkStoreVersion">
<name>Check store version</name>
<version>0.4</version>
<version>0.3.1</version>
<author>Jean-Christian Denis and Contributors</author>
<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:details>https://git.dotclear.watch/JcDenis/checkStoreVersion/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/checkStoreVersion/issues</da:support>
<da:details>https://plugins.dotaddict.org/dc2/details/checkStoreVersion</da:details>
<da:support>https://github.com/JcDenis/checkStoreVersion</da:support>
</module>
</modules>

View File

@ -22,6 +22,7 @@ class Backend extends dcNsProcess
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN')
&& !is_null(dcCore::app()->auth) // nullsafe PHP < 8.0
&& dcCore::app()->auth->isSuperAdmin();
return static::$init;

View File

@ -26,12 +26,22 @@ class BackendBehaviors
# admin plugins page tab
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'));
}
# admin themes page tab
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'));
}

View File

@ -16,5 +16,5 @@ namespace Dotclear\Plugin\checkStoreVersion;
class My
{
public const DC_MAX = '2.26.1';
public const DC_MAX = '2.26';
}