Changeset 80076 in spip-zone
- Timestamp:
- Jan 16, 2014, 2:47:51 PM (7 years ago)
- Location:
- _plugins_/doc_tech/trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/doc_tech/trunk/doc_tech_autorisations.php
r78893 r80076 15 15 /** 16 16 * Fonction d'appel pour le pipeline 17 * @pipeline autoriser 18 */ 17 * @pipeline autoriser */ 19 18 function doc_tech_autoriser(){} 20 19 21 /** 22 * Le lien vers la page de documentation technique ne s'affiche 23 * que si on est webmestre 24 * 25 * @param string $faire 26 * L'action à faire 27 * @param string $type 28 * Le type d'objet sur lequel porte l'action 29 * @param int $id 30 * L'identifiant numérique de l'objet 31 * @param array $qui 32 * Les éléments de session de l'utilisateur en cours 33 * @param array $opt 34 * Les options 35 * @return boolean true/false 36 * true si autorisé, false sinon 37 */ 38 function autoriser_doc_tech_menu_dist($faire, $type, $id, $qui, $opt) { 39 if(($qui['webmestre'] == 'oui') && $qui['statut'] == '0minirezo') 40 return true; 41 } 20 21 42 22 43 23 ?> -
_plugins_/doc_tech/trunk/doc_tech_pipelines.php
r78892 r80076 13 13 14 14 15 function doc_tech_header_prive($flux){16 $flux .= '<link rel="stylesheet" href="' . _DIR_PLUGIN_DOC_TECH .'css/style_prive_doc_tech.css" type="text/css" media="all" />';17 return $flux;18 }19 15 20 16 ?> -
_plugins_/doc_tech/trunk/lang/doc_tech_fr.php
r78892 r80076 6 6 $GLOBALS[$GLOBALS['idx_lang']] = array( 7 7 8 // A 9 'aide_a_la_saisie' => 'Aide à la saisie :', 8 10 // C 9 11 'chaines_a_placer_dans' => 'Chaînes de langue à placer dans', … … 14 16 'doc_tech_lang_titre' => 'Générer les chaînes de langue', 15 17 'doc_tech_lang_explication' => 'Cette page va vous permettre de générer les chaînes de langue pour votre plugin. Il ne crée pas les fichiers actuellement. Il vous faudra faire un <strong>copier-coller</strong> du texte généré ci-dessous dans votre fichier de langue et de le compléter le cas échéant.', 18 'documentation' => 'Documentation :', 16 19 'documentations' => 'Documentations', 17 20 … … 22 25 'nom_du_champ' => 'Nom du champ', 23 26 24 // P25 27 'pas_de_tables_nom'=> 'Il n\'y a pas de tables correspondantes', 26 28 27 // S28 'sommaire' => 'Sommaire',29 29 ); 30 30 -
_plugins_/doc_tech/trunk/modeles/doc_tech.html
r78893 r80076 5 5 <table> 6 6 <BOUCLE_info_table(DATA) {source table, #EVAL{$GLOBALS['tables_principales'][#GET{spip_table}]}}{cle==field}> 7 <caption id="[(#_tables:GET{spip_table}|attribut_html)]">#_tables:GET{spip_table}</caption>7 <caption>#_tables:GET{spip_table}</caption> 8 8 <thead> 9 9 <th><:doc_tech:nom_du_champ:></th> … … 14 14 <B_label> 15 15 <tbody> 16 <BOUCLE_label(DATA) {source table, #VALEUR} {par cle}>17 <tr id="[(#_tables:GET{spip_table}|attribut_html)_][(#CLE|attribut_html)]">16 <BOUCLE_label(DATA) {source table, #VALEUR}> 17 <tr> 18 18 <td><strong>#CLE</strong></td> 19 19 <td><em>#VALEUR</em></td> 20 20 <td>[(#VAL{#_tables:VALEUR}|concat{':label_',#CLE}|_T)]</td> 21 <td>[(#VAL{#_tables:VALEUR}|concat{':label_',#CLE,'_documentation'}|_T)]</td> 21 <td>[<strong><:doc_tech:aide_a_la_saisie:></strong><br/> 22 (#VAL{#_tables:VALEUR}|concat{':explication_',#CLE}|_T)<br/>] 23 [<strong><:doc_tech:documentation:></strong><br/> 24 (#VAL{#_tables:VALEUR}|concat{':documentation_',#CLE}|_T)]</td> 22 25 </tr> 23 26 </BOUCLE_label> -
_plugins_/doc_tech/trunk/modeles/doc_tech_lang.html
r78893 r80076 2 2 <BOUCLE_tables(DATA) {source table, #ENV{tables}} {si #SESSION{webmestre}|=={oui}}> 3 3 #SET{spip_table,#VAL{'spip_'}|concat{#VALEUR,'s'}} 4 <B_info_table_label> 5 <textarea> 6 <BOUCLE_info_table_label(DATA) {source table, #EVAL{$GLOBALS['tables_principales'][#GET{spip_table}]}}{cle==field}> 4 #SET{prefixe_lang,#LISTE{label,documentation,explication}} 5 #SET{prefixe_lang,#GET{prefixe_lang}|array_merge{#ENV{label_perso}|explode{','}}} 6 <B_info_table> 7 <textarea rows="20" cols="40" class="doc_tech_lang"> 8 <BOUCLE_info_table(DATA) {source table, #EVAL{$GLOBALS['tables_principales'][#GET{spip_table}]}}{cle==field}> 7 9 // ---------- 8 10 // [Objet : (#_tables:GET{spip_table})] 9 // <:doc_tech:chaines_a_placer_dans:> [(#_tables:VALEUR|concat{'s'})]/lang/[(#_tables:VALEUR|concat{'_',#LANG,'.php'})]<B_label_label> 11 // <:doc_tech:chaines_a_placer_dans:> [(#_tables:VALEUR|concat{'s'})]/lang/[(#_tables:VALEUR|concat{'_',#LANG,'.php'})] 12 // La chaine de langue 'explication' peut être utile sur les # SAISIES des pages d'édition de l'objet. 10 13 // ---------- 11 <BOUCLE_label_label(DATA) {source table, #VALEUR}{par cle}>['(#VAL{'label_'}|concat{#CLE})'] => ['(#VAL{#_tables:VALEUR}|concat{':label_',#CLE}|_T|texte_script)'], 12 </BOUCLE_label_label></B_label_label></BOUCLE_info_table_label> 13 <BOUCLE_info_table_documentation(DATA) {source table, #EVAL{$GLOBALS['tables_principales'][#GET{spip_table}]}}{cle==field}><B_label_documentation> 14 <BOUCLE_label_documentation(DATA) {source table, #VALEUR}{par cle}>['(#VAL{'label_'}|concat{#CLE,'_documentation'})'] => ['(#VAL{#_tables:VALEUR}|concat{':label_',#CLE,'_documentation'}|_T|texte_script)'], 15 </BOUCLE_label_documentation></B_label_documentation></BOUCLE_info_table_documentation> 16 // La chaine de langue 'explication' peut être utile sur les # SAISIES des pages d'édition de l'objet. 17 <BOUCLE_info_table_explication(DATA) {source table, #EVAL{$GLOBALS['tables_principales'][#GET{spip_table}]}}{cle==field}><B_label_explication> 18 <BOUCLE_label_explication(DATA) {source table, #VALEUR}{par cle}>['(#VAL{'label_'}|concat{#CLE,'_explication'})'] => ['(#VAL{#_tables:VALEUR}|concat{':label_',#CLE,'_explication'}|_T|texte_script)'], 19 </BOUCLE_label_explication></B_label_explication></BOUCLE_info_table_explication> 20 </textarea> 21 </B_info_table_label> 14 <BOUCLE_prefixe_lang(DATA) {source table, #GET{prefixe_lang}} {par valeur}><B_champs><BOUCLE_champs(DATA) {source table, #_info_table:VALEUR} {par cle}> 15 ['(#VAL{#_prefixe_lang:VALEUR}|concat{'_',#_champs:CLE})'] => ['(#VAL{#_tables:VALEUR}|concat{':',#_prefixe_lang:VALEUR,'_',#_champs:CLE}|_T|texte_script)'], </BOUCLE_champs></B_champs> 16 </BOUCLE_prefixe_lang> 17 </BOUCLE_info_table> 18 // ---------- 19 // ----------</textarea> 20 </B_info_table> 22 21 [(#BOITE_OUVRIR{'','notice'})] 23 22 <:doc_tech:pas_de_tables_nom:> 24 23 [(#BOITE_FERMER)] 25 <//B_info_table _label>24 <//B_info_table> 26 25 </BOUCLE_tables> 27 26 </B_tables> -
_plugins_/doc_tech/trunk/paquet.xml
r78893 r80076 2 2 prefix="doc_tech" 3 3 categorie="outil" 4 version="0. 3.3"4 version="0.4.0" 5 5 etat="dev" 6 6 compatibilite="[3.0.9;3.0.*]" 7 logo="prive/themes/spip/images/doc_tech- 24.png"7 logo="prive/themes/spip/images/doc_tech-32.png" 8 8 documentation="" 9 9 > … … 18 18 <licence>GNU/GPL</licence> 19 19 <pipeline nom="autoriser" inclure="doc_tech_autorisations.php" /> 20 <pipeline nom="header_prive" inclure="doc_tech_pipelines.php" />21 20 22 21 <menu parent="menu_administration" icone="images/doc_tech-16.png" titre="doc_tech:doc_tech_titre" nom="doc_tech" action="doc_tech" /> -
_plugins_/doc_tech/trunk/prive/squelettes/contenu/doc_tech.html
r78893 r80076 9 9 #SET{tables, #LISTE{#ENV{objets}}} 10 10 ] 11 <form action='#SELF' method='get' class="formulaire_spip">11 <form action='#SELF' method='get'> 12 12 [(#SELF|parametre_url{objets,''}|form_hidden)] 13 13 <label>Vos objets :</label> … … 15 15 <input type='submit' value='ok' /> 16 16 </form> 17 <div class="nettoyeur"></div> 17 18 18 [(#MODELE{doc_tech,tables=#GET{tables}})] -
_plugins_/doc_tech/trunk/prive/squelettes/contenu/doc_tech_lang.html
r78893 r80076 9 9 #SET{tables, #LISTE{#ENV{objets}}} 10 10 ] 11 <form action='#SELF' method='get' class="formulaire_spip"> 12 [(#SELF|parametre_url{objets,''}|form_hidden)] 13 <label>Vos objets :</label> 14 <input type='text' name='objets' value='#ENV{objets}' /> 15 <input type='submit' value='ok' /> 11 <div class="formulaire_spip"> 12 <form action='#SELF' method='get'> 13 [(#SELF|parametre_url{objets,''}|parametre_url{regroupe,''}|form_hidden)] 14 <ul> 15 <li class="editer editer_objets"> 16 <label for="objets">Vos objets :</label> 17 <input class="text" type='text' name='objets' value='#ENV{objets}' /> 18 <div class="nettoyeur"> </div> 19 </li> 20 <li class="editer editer_label_perso"> 21 <label for="label_perso">Des préfixes de chaînes de langue personnalisés :</label> 22 <textarea name='label_perso' rows="5" cols="40">#ENV{label_perso}</textarea> 23 <div class="nettoyeur"> </div> 24 </li> 25 <li class="editer editer_regroupe"> 26 <label for="regroupe">Regrouper les champs ?</label> 27 <select name="regroupe"> 28 <option value="" [(#ENV{regroupe}|=={'oui'}|non)selected="selected"]>Non</option> 29 <option value="oui" [(#ENV{regroupe}|=={'oui'}|oui)selected="selected"]>Oui</option> 30 </select> 31 <div class="nettoyeur"> </div> 32 </li> 33 </ul> 34 <p class="boutons"> 35 <input class="submit" type='submit' value='Générer' /> 36 </p> 16 37 </form> 17 18 [(#MODELE{doc_tech_lang,tables=#GET{tables}})] 38 <div class="nettoyeur"> </div> 39 [(#ENV{regroupe}|=={'oui'}|oui) 40 [(#MODELE{doc_tech_lang_regroupe,tables=#GET{tables},label_perso=#ENV{label_perso},env})] 41 ] 42 [(#ENV{regroupe}|=={'oui'}|non) 43 [(#MODELE{doc_tech_lang,tables=#GET{tables},label_perso=#ENV{label_perso},env})] 44 ] 45 </div>
Note: See TracChangeset
for help on using the changeset viewer.