sorti de la fabrique

This commit is contained in:
Christophe 2021-10-12 15:05:36 +02:00
parent 2210ec5f06
commit 9c7811768b
11 changed files with 300 additions and 0 deletions

110
fabrique_gamuconfig.php Normal file
View file

@ -0,0 +1,110 @@
<?php
/**
* Fichier généré par la Fabrique de plugin v7
* le 2021-10-12 13:04:37
*
* Ce fichier de sauvegarde peut servir à recréer
* votre plugin avec le plugin «Fabrique» qui a servi à le créer.
*
* Bien évidemment, les modifications apportées ultérieurement
* par vos soins dans le code de ce plugin généré
* NE SERONT PAS connues du plugin «Fabrique» et ne pourront pas
* être recréées par lui !
*
* La «Fabrique» ne pourra que régénerer le code de base du plugin
* avec les informations dont il dispose.
*
**/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$data = array (
'fabrique' =>
array (
'version' => 7,
),
'paquet' =>
array (
'prefixe' => 'gamuconfig',
'nom' => 'gamuConfig',
'slogan' => '',
'description' => '',
'logo' =>
array (
0 => '',
),
'credits' =>
array (
'logo' =>
array (
'texte' => '',
'url' => '',
),
),
'version' => '1.0.0',
'auteur' => 'tofulm',
'auteur_lien' => 'https://gamuza.fr',
'licence' => 'GNU/GPL',
'categorie' => 'outil',
'etat' => 'dev',
'compatibilite' => '[4.0.0;4.0.*]',
'documentation' => '',
'administrations' => 'on',
'schema' => '1.0.0',
'formulaire_config' => 'on',
'formulaire_config_titre' => '',
'fichiers' =>
array (
0 => 'autorisations',
1 => 'fonctions',
2 => 'options',
3 => 'pipelines',
),
'inserer' =>
array (
'paquet' => '',
'administrations' =>
array (
'maj' => '',
'desinstallation' => '',
'fin' => '',
),
'base' =>
array (
'tables' =>
array (
'fin' => '',
),
),
),
'scripts' =>
array (
'pre_copie' => '',
'post_creation' => '',
),
'exemples' => '',
),
'objets' =>
array (
),
'images' =>
array (
'paquet' =>
array (
'logo' =>
array (
0 =>
array (
'extension' => '',
'contenu' => '',
),
),
),
'objets' =>
array (
),
),
);

View file

@ -0,0 +1,16 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:gamuconfig:cfg_titre_parametrages:/></h3>
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
<form method="post" action="#ENV{action}">
<div>
#ACTION_FORMULAIRE
<input type="hidden" name="_meta_casier" value="gamuconfig" />
<p class="boutons"><span class="image_loading">&nbsp;</span><input type="submit" class="submit" value="<:bouton_enregistrer|attribut_html:/>" /></p>
</div>
</form>
</div>

View file

@ -0,0 +1,45 @@
<?php
/**
* Fichier gérant l'installation et désinstallation du plugin gamuConfig
*
* @plugin gamuConfig
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamuconfig\Installation
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Fonction d'installation et de mise à jour du plugin gamuConfig.
*
* @param string $nom_meta_base_version
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
* @param string $version_cible
* Version du schéma de données dans ce plugin (déclaré dans paquet.xml)
* @return void
**/
function gamuconfig_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}
/**
* Fonction de désinstallation du plugin gamuConfig.
*
* @param string $nom_meta_base_version
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
* @return void
**/
function gamuconfig_vider_tables($nom_meta_base_version) {
effacer_meta($nom_meta_base_version);
}

View file

@ -0,0 +1,21 @@
<?php
/**
* Définit les autorisations du plugin gamuConfig
*
* @plugin gamuConfig
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamuconfig\Autorisations
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Fonction d'appel pour le pipeline
* @pipeline autoriser */
function gamuconfig_autoriser() {
}

14
gamuconfig_fonctions.php Normal file
View file

@ -0,0 +1,14 @@
<?php
/**
* Fonctions utiles au plugin gamuConfig
*
* @plugin gamuConfig
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamuconfig\Fonctions
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}

14
gamuconfig_options.php Normal file
View file

@ -0,0 +1,14 @@
<?php
/**
* Options au chargement du plugin gamuConfig
*
* @plugin gamuConfig
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamuconfig\Options
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}

14
gamuconfig_pipelines.php Normal file
View file

@ -0,0 +1,14 @@
<?php
/**
* Utilisations de pipelines par gamuConfig
*
* @plugin gamuConfig
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamuconfig\Pipelines
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}

20
lang/gamuconfig_fr.php Normal file
View file

@ -0,0 +1,20 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
// G
'gamuconfig_titre' => 'gamuConfig',
// C
'cfg_exemple' => 'Exemple',
'cfg_exemple_explication' => 'Explication de cet exemple',
'cfg_titre_parametrages' => 'Paramétrages',
// T
'titre_page_configurer_gamuconfig' => 'gamuConfig',
);

View file

@ -0,0 +1,14 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
// G
'gamuconfig_description' => '',
'gamuconfig_nom' => 'gamuConfig',
'gamuconfig_slogan' => '',
);

25
paquet.xml Normal file
View file

@ -0,0 +1,25 @@
<paquet
prefix="gamuconfig"
categorie="outil"
version="1.0.0"
etat="dev"
compatibilite="[4.0.0;4.0.*]"
logo=""
documentation=""
schema="1.0.0"
>
<!--
Paquet généré le 2021-10-12 13:04:37
-->
<nom>gamuConfig</nom>
<auteur lien='https://gamuza.fr'>tofulm</auteur>
<licence>GNU/GPL</licence>
<pipeline nom="autoriser" inclure="gamuconfig_autorisations.php" />
</paquet>

View file

@ -0,0 +1,7 @@
[(#AUTORISER{configurer,_gamuconfig}|sinon_interdire_acces)]
<h1 class="grostitre"><:gamuconfig:titre_page_configurer_gamuconfig:/></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_GAMUCONFIG
</div>