Changeset 61719 in spip-zone
- Timestamp:
- May 26, 2012, 4:21:07 PM (9 years ago)
- Location:
- _plugins_/mots_sur_mots
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/mots_sur_mots/formulaires/attache_momo.html
r58097 r61719 37 37 [(#REM) Pour éviter les liens circulaires, on ne peut pas associer un mot à un de ses enfants] 38 38 [(#SET{mots_interdits,#MODELE{doublons_enfants_mot}{id_mot}|explode{','}})] 39 <BOUCLE_Groupes_Mots(GROUPES_MOTS){par titre}> 39 [(#REM) LIKE car tables_liees peut contenir plusieurs objets] 40 <BOUCLE_Groupes_Mots(GROUPES_MOTS){tables_liees LIKE mots%}{par titre}> 40 41 <B_Mots_candidats_parents> 41 42 <div> -
_plugins_/mots_sur_mots/lang/momo_fr.php
r58097 r61719 20 20 'hierarchies_mot' => 'Différentes hiérarchies d\'un mot-clé passé en paramètre', 21 21 //I 22 'item_mots_cles_association_mots' => 'aux mots-clés', 23 'objet_mots' => 'Mots-clés', 22 24 //J 23 25 //K -
_plugins_/mots_sur_mots/momo_pipelines.php
r56760 r61719 19 19 } 20 20 21 // ajouter la checkbox sur les mots 22 function momo_editer_contenu_objet($flux){ 23 if ($flux['args']['type']=='groupe_mot'){ 24 $checked = in_array('mots',$flux['args']['contexte']['tables_liees']); 25 $checked = $checked?" checked='checked'":''; 26 $input = "<div class='choix'><input type='checkbox' class='checkbox' name='tables_liees[]' value='mots'$checked id='mots' /><label for='mots'>"._T('momo:item_mots_cles_association_mots')."</label></div>"; 27 $flux['data'] = str_replace('<!--choix_tables-->',"$input\n<!--choix_tables-->",$flux['data']); 28 } 29 return $flux; 30 } 31 32 function momo_libelle_association_mots($flux){ 33 $flux['mots'] = 'momo:objet_mots'; 34 return $flux; 35 } 36 21 37 ?> -
_plugins_/mots_sur_mots/plugin.xml
r58097 r61719 6 6 <auteur>[Bertrand Marne->http://www.spip-contrib.net/Beurt]</auteur> 7 7 <licence>GNU/GPL</licence> 8 <version>0. 1.1</version>8 <version>0.2.0</version> 9 9 <version_base>0.1</version_base> 10 10 <etat>test</etat> … … 44 44 <inclure>momo_pipelines.php</inclure> 45 45 </pipeline> 46 <pipeline> 47 <nom>editer_contenu_objet</nom> 48 <inclure>momo_pipelines.php</inclure> 49 </pipeline> 50 <pipeline> 51 <nom>libelle_association_mots</nom> 52 <inclure>momo_pipelines.php</inclure> 53 </pipeline> 46 54 <fonctions>momo_fonctions.php</fonctions> 47 55 <necessite id="SPIP" version="[2.1.0;2.1.99]" />
Note: See TracChangeset
for help on using the changeset viewer.