cosmetics

master
Jean-Christian Paul Denis 2021-09-28 00:46:41 +02:00
parent a942a126d5
commit 32dee637a0
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
6 changed files with 62 additions and 51 deletions

View File

@ -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.

View File

@ -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());

View File

@ -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,9 +21,9 @@ $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/'

View File

@ -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;

View File

@ -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>