Browse Source

Mise en place du paramétrage du plugin

master v0.0.7
Fa_b 1 year ago
parent
commit
fc724b8325
4 changed files with 61 additions and 1 deletions
  1. +34
    -0
      formulaires/configurer_microedition.html
  2. +16
    -0
      microedition_pipelines.php
  3. +5
    -1
      paquet.xml
  4. +6
    -0
      prive/squelettes/contenu/configurer_microedition.html

+ 34
- 0
formulaires/configurer_microedition.html View File

@ -0,0 +1,34 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:microedition: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{#ENV{action}}
<div class="editer-groupe">
<div class="editer editer_rubrique editer_text">
<h2 class="legend"><:microedition:cfg_label_rubrique:></h2>
<p class="explication"><:microedition:cfg_explication_rubrique:></p>
<div class="choix">
<input type="text" name="rubrique" class="text" value="#ENV{rubrique}" id="microedition_rubrique" />
<label for='microedition_rubrique'>
<:microedition:cfg_label_rubrique:>
</label>
</div>
</div>
</div>
<input type="hidden" name="_meta_casier" value="microedition" />
<p class="boutons">
<span class="image_loading">&nbsp;</span>
<input type="submit" class="submit" value="<:bouton_enregistrer:>" />
</p>
</div>
</form>
</div>

+ 16
- 0
microedition_pipelines.php View File

@ -0,0 +1,16 @@
<?php
/**
* Plugin Microedtion
* 2019 Fa_b
* Licence GNU/GPL
*/
if (!defined('_ECRIRE_INC_VERSION')) return;
function microedition_ieconfig_metas($table){
$table['microedition']['titre'] = _T('microedition:cfg_titre_page_configurer_microedition');
$table['microedition']['icone'] = 'prive/themes/spip/images/microedition-32.png';
$table['microedition']['metas_serialize'] = 'microedition';
return $table;
}

+ 5
- 1
paquet.xml View File

@ -1,7 +1,7 @@
<paquet
prefix="microedition"
categorie="squelette"
version="0.0.4"
version="0.0.7"
etat="dev"
schema="0.0.3"
compatibilite="[3.2.0;3.2.*]"
@ -29,4 +29,8 @@
<style source="lib/v7.1.1/knacss.css" type="public" />
<pipeline nom="ieconfig_metas" inclure="microedition_pipelines.php"/>
<menu nom="microedition" parent="menu_squelette" titre="Micro-édition" icone="prive/spip/images/microedition-32.png" action="configurer_microedition" />
</paquet>

+ 6
- 0
prive/squelettes/contenu/configurer_microedition.html View File

@ -0,0 +1,6 @@
#CACHE{0}
<h1 class="grostitre"><:microedition:configurer_microedition:></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_MICROEDITION
</div>

Loading…
Cancel
Save