cosmetics

This commit is contained in:
Jean-Christian 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
[![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 ?
"tweakStores" is a plugin for the open-source
web publishing software called Dotclear.
It help devs to manage dcstore.xml file.
It helps devs to manage dcstore.xml file.
## REQUIREMENTS
tweakStores requires:
_tweakStores_ requires:
* superadmin permissions
* Dotclear 2.19
## 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)
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.
tweakStores can interact with plugin pacKman to create .xml file at
_tweakStores_ can interact with plugin pacKman to create .xml file at
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)
* 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
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of tweakStores, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief tweakStores, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_MODULE')) {
return null;
@ -41,8 +41,7 @@ if (!empty($_POST['save'])) {
__('Configuration has been successfully updated.')
);
http::redirect(
$list->getURL('module=tweakStores&conf=1&redir=' .
$list->getRedir())
$list->getURL('module=tweakStores&conf=1&redir=' . $list->getRedir())
);
} catch (Exception $e) {
$core->error->add($e->getMessage());
@ -54,12 +53,12 @@ echo '
<div class="fieldset">
<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) . ' ' .
__('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><label class="classic" for="tweakStores_packman">'.
<p><label class="classic" for="tweakStores_packman">' .
form::checkbox('tweakStores_packman', 1, $tweakStores_packman) . ' ' .
__('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>

View file

@ -1,15 +1,15 @@
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of tweakStores, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief tweakStores, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')) {
return null;
@ -21,9 +21,9 @@ $this->registerModule(
'Jean-Christian Denis and Contributors',
'0.1.0',
[
'requires' => [['core', '2.19']],
'permissions' => null,
'type' => 'plugin',
'dc_min' => '2.19',
'support' => 'https://github.com/JcDenis/tweakStores',
'details' => 'https://plugins.dotaddict.org/dc2/details/tweakStores',
'repository' => 'https://raw.githubusercontent.com/JcDenis/tweakStores/master/'

View file

@ -1,15 +1,15 @@
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of tweakStores, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief tweakStores, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')) {
return null;

View file

@ -7,7 +7,6 @@
<file>https://github.com/JcDenis/tweakStores/releases/download/v0.1.0/plugin-tweakStores.zip</file>
<da:dcmin>2.19</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/tweakStores</da:details>
<da:section></da:section>
<da:support>https://github.com/JcDenis/tweakStores</da:support>
</module>
</modules>