cosmetics
This commit is contained in:
parent
a942a126d5
commit
32dee637a0
6 changed files with 62 additions and 51 deletions
27
README.md
27
README.md
|
@ -1,31 +1,44 @@
|
||||||
# README
|
# README
|
||||||
|
|
||||||
|
[![Release](https://img.shields.io/github/v/release/JcDenis/tweakStores)](https://github.com/JcDenis/tweakStores/releases)
|
||||||
|
[![Date](https://img.shields.io/github/release-date/JcDenis/tweakStores)](https://github.com/JcDenis/tweakStores/releases)
|
||||||
|
[![Issues](https://img.shields.io/github/issues/JcDenis/tweakStores)](https://github.com/JcDenis/tweakStores/issues)
|
||||||
|
[![Dotclear](https://img.shields.io/badge/dotclear-v2.19-blue.svg)](https://fr.dotclear.org/download)
|
||||||
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/tweakStores)
|
||||||
|
[![License](https://img.shields.io/github/license/JcDenis/tweakStores)](https://github.com/JcDenis/tweakStores/blob/master/LICENSE)
|
||||||
|
|
||||||
## WHAT IS TWEAKSTORES ?
|
## WHAT IS TWEAKSTORES ?
|
||||||
|
|
||||||
"tweakStores" is a plugin for the open-source
|
"tweakStores" is a plugin for the open-source
|
||||||
web publishing software called Dotclear.
|
web publishing software called Dotclear.
|
||||||
|
|
||||||
It help devs to manage dcstore.xml file.
|
It helps devs to manage dcstore.xml file.
|
||||||
|
|
||||||
## REQUIREMENTS
|
## REQUIREMENTS
|
||||||
|
|
||||||
tweakStores requires:
|
_tweakStores_ requires:
|
||||||
|
|
||||||
* superadmin permissions
|
* superadmin permissions
|
||||||
* Dotclear 2.19
|
* Dotclear 2.19
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
First install tweakStores, manualy from a zip package or from
|
First install _tweakStores_, 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)
|
||||||
|
|
||||||
Manage manual installation or overwriting from tab "store tools" on plugins page.
|
Manage plugins/themes dcstore.xml file from tab "store tools" on plugins/themes page.
|
||||||
Manage settings from plugins configuration page.
|
Manage settings from plugins configuration page.
|
||||||
tweakStores can interact with plugin pacKman to create .xml file at
|
_tweakStores_ can interact with plugin pacKman to create .xml file at
|
||||||
package creation.
|
package creation.
|
||||||
|
|
||||||
## MORE
|
## LINKS
|
||||||
|
|
||||||
* License : GNU GPL v2
|
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
|
||||||
* Source & contribution : [GitHub Page](https://github.com/JcDenis/tweakStores)
|
* Source & contribution : [GitHub Page](https://github.com/JcDenis/tweakStores)
|
||||||
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/tweakStores)
|
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/tweakStores)
|
||||||
|
|
||||||
|
## CONTRIBUTORS
|
||||||
|
|
||||||
|
* Jean-Christian Denis
|
||||||
|
|
||||||
|
You are welcome to contribute to this code.
|
29
_config.php
29
_config.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief tweakStores, a plugin for Dotclear 2
|
||||||
# This file is part of tweakStores, a plugin for Dotclear 2.
|
*
|
||||||
#
|
* @package Dotclear
|
||||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
* @subpackage Plugin
|
||||||
#
|
*
|
||||||
# Licensed under the GPL version 2.0 license.
|
* @author Jean-Christian Denis and Contributors
|
||||||
# A copy of this license is available in LICENSE file or at
|
*
|
||||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
* @copyright Jean-Christian Denis
|
||||||
#
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
# -- END LICENSE BLOCK ------------------------------------
|
*/
|
||||||
|
|
||||||
if (!defined('DC_CONTEXT_MODULE')) {
|
if (!defined('DC_CONTEXT_MODULE')) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -41,8 +41,7 @@ if (!empty($_POST['save'])) {
|
||||||
__('Configuration has been successfully updated.')
|
__('Configuration has been successfully updated.')
|
||||||
);
|
);
|
||||||
http::redirect(
|
http::redirect(
|
||||||
$list->getURL('module=tweakStores&conf=1&redir=' .
|
$list->getURL('module=tweakStores&conf=1&redir=' . $list->getRedir())
|
||||||
$list->getRedir())
|
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$core->error->add($e->getMessage());
|
$core->error->add($e->getMessage());
|
||||||
|
@ -54,12 +53,12 @@ echo '
|
||||||
<div class="fieldset">
|
<div class="fieldset">
|
||||||
<h4>' . __('Tweak store') . '</h4>
|
<h4>' . __('Tweak store') . '</h4>
|
||||||
|
|
||||||
<p><label class="classic" for="tweakStores_active">'.
|
<p><label class="classic" for="tweakStores_active">' .
|
||||||
form::checkbox('tweakStores_active', 1, $tweakStores_active) . ' ' .
|
form::checkbox('tweakStores_active', 1, $tweakStores_active) . ' ' .
|
||||||
__('Enable plugin') . '</label></p>
|
__('Enable plugin') . '</label></p>
|
||||||
<p class="form-note">' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') .'</p>
|
<p class="form-note">' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') .'</p>
|
||||||
|
|
||||||
<p><label class="classic" for="tweakStores_packman">'.
|
<p><label class="classic" for="tweakStores_packman">' .
|
||||||
form::checkbox('tweakStores_packman', 1, $tweakStores_packman) . ' ' .
|
form::checkbox('tweakStores_packman', 1, $tweakStores_packman) . ' ' .
|
||||||
__('Enable packman behaviors') . '</label></p>
|
__('Enable packman behaviors') . '</label></p>
|
||||||
<p class="form-note">' . __('If enabled, plugin pacKman (re)generate on the fly dcstore.xml file at root directory of the module.') .'</p>
|
<p class="form-note">' . __('If enabled, plugin pacKman (re)generate on the fly dcstore.xml file at root directory of the module.') .'</p>
|
||||||
|
|
32
_define.php
32
_define.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief tweakStores, a plugin for Dotclear 2
|
||||||
# This file is part of tweakStores, a plugin for Dotclear 2.
|
*
|
||||||
#
|
* @package Dotclear
|
||||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
* @subpackage Plugin
|
||||||
#
|
*
|
||||||
# Licensed under the GPL version 2.0 license.
|
* @author Jean-Christian Denis and Contributors
|
||||||
# A copy of this license is available in LICENSE file or at
|
*
|
||||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
* @copyright Jean-Christian Denis
|
||||||
#
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
# -- END LICENSE BLOCK ------------------------------------
|
*/
|
||||||
|
|
||||||
if (!defined('DC_RC_PATH')) {
|
if (!defined('DC_RC_PATH')) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -21,11 +21,11 @@ $this->registerModule(
|
||||||
'Jean-Christian Denis and Contributors',
|
'Jean-Christian Denis and Contributors',
|
||||||
'0.1.0',
|
'0.1.0',
|
||||||
[
|
[
|
||||||
|
'requires' => [['core', '2.19']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'dc_min' => '2.19',
|
'support' => 'https://github.com/JcDenis/tweakStores',
|
||||||
'support' => 'https://github.com/JcDenis/tweakStores',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/tweakStores',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/tweakStores',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/tweakStores/master/'
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/tweakStores/master/'
|
|
||||||
]
|
]
|
||||||
);
|
);
|
22
_prepend.php
22
_prepend.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief tweakStores, a plugin for Dotclear 2
|
||||||
# This file is part of tweakStores, a plugin for Dotclear 2.
|
*
|
||||||
#
|
* @package Dotclear
|
||||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
* @subpackage Plugin
|
||||||
#
|
*
|
||||||
# Licensed under the GPL version 2.0 license.
|
* @author Jean-Christian Denis and Contributors
|
||||||
# A copy of this license is available in LICENSE file or at
|
*
|
||||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
* @copyright Jean-Christian Denis
|
||||||
#
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
# -- END LICENSE BLOCK ------------------------------------
|
*/
|
||||||
|
|
||||||
if (!defined('DC_RC_PATH')) {
|
if (!defined('DC_RC_PATH')) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<file>https://github.com/JcDenis/tweakStores/releases/download/v0.1.0/plugin-tweakStores.zip</file>
|
<file>https://github.com/JcDenis/tweakStores/releases/download/v0.1.0/plugin-tweakStores.zip</file>
|
||||||
<da:dcmin>2.19</da:dcmin>
|
<da:dcmin>2.19</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/tweakStores</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/tweakStores</da:details>
|
||||||
<da:section></da:section>
|
|
||||||
<da:support>https://github.com/JcDenis/tweakStores</da:support>
|
<da:support>https://github.com/JcDenis/tweakStores</da:support>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</modules>
|
|
@ -95,7 +95,7 @@ class tweakStores
|
||||||
}
|
}
|
||||||
$module = self::sanitizeModule($id, $module);
|
$module = self::sanitizeModule($id, $module);
|
||||||
$rsp = new xmlTag('module');
|
$rsp = new xmlTag('module');
|
||||||
|
|
||||||
self::$notice = [];
|
self::$notice = [];
|
||||||
self::$failed = [];
|
self::$failed = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue