sorti de la fabrique

This commit is contained in:
Christophe 2021-03-11 12:20:02 +01:00
parent 332db88d12
commit 8763de3b1a
11 changed files with 300 additions and 0 deletions

110
fabrique_gamucontact.php Normal file
View file

@ -0,0 +1,110 @@
<?php
/**
* Fichier généré par la Fabrique de plugin v7
* le 2021-03-11 12:19:16
*
* 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' => 'gamucontact',
'nom' => 'Gamu Contact',
'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' => 'communication',
'etat' => 'dev',
'compatibilite' => '[3.3.0-dev;3.3.*]',
'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"><:gamucontact: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="gamucontact" />
<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 Gamu Contact
*
* @plugin Gamu Contact
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamucontact\Installation
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Fonction d'installation et de mise à jour du plugin Gamu Contact.
*
* @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 gamucontact_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 Gamu Contact.
*
* @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 gamucontact_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 Gamu Contact
*
* @plugin Gamu Contact
* @copyright 2021
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamucontact\Autorisations
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Fonction d'appel pour le pipeline
* @pipeline autoriser */
function gamucontact_autoriser() {
}

14
gamucontact_fonctions.php Normal file
View file

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

14
gamucontact_options.php Normal file
View file

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

14
gamucontact_pipelines.php Normal file
View file

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

20
lang/gamucontact_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
'gamucontact_titre' => 'Gamu Contact',
// C
'cfg_exemple' => 'Exemple',
'cfg_exemple_explication' => 'Explication de cet exemple',
'cfg_titre_parametrages' => 'Paramétrages',
// T
'titre_page_configurer_gamucontact' => 'Gamu Contact',
);

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
'gamucontact_description' => '',
'gamucontact_nom' => 'Gamu Contact',
'gamucontact_slogan' => '',
);

25
paquet.xml Normal file
View file

@ -0,0 +1,25 @@
<paquet
prefix="gamucontact"
categorie="communication"
version="1.0.0"
etat="dev"
compatibilite="[3.3.0-dev;3.3.*]"
logo=""
documentation=""
schema="1.0.0"
>
<!--
Paquet généré le 2021-03-11 12:19:16
-->
<nom>Gamu Contact</nom>
<auteur lien='https://gamuza.fr'>tofulm</auteur>
<licence>GNU/GPL</licence>
<pipeline nom="autoriser" inclure="gamucontact_autorisations.php" />
</paquet>

View file

@ -0,0 +1,7 @@
[(#AUTORISER{configurer,_gamucontact}|sinon_interdire_acces)]
<h1 class="grostitre"><:gamucontact:titre_page_configurer_gamucontact:/></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_GAMUCONTACT
</div>