Changeset 44078 in spip-zone
- Timestamp:
- Feb 2, 2011, 5:41:18 PM (9 years ago)
- Location:
- _plugins_/encarts
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/encarts/encarts_pipelines.php
r44077 r44078 25 25 } 26 26 27 27 /** 28 * Traiter les textes contenant des <encart> .... </encart> 29 * en les remplaçant par un span... 30 * 31 * @param string $texte à analyser 32 * @return texte modifié 33 **/ 28 34 function encarts_pre_propre($texte) { 29 35 if (false !== strpos($texte, '<')) { … … 37 43 } 38 44 45 /** 46 * Mettre les vu=oui lorsque l'on met un modèle 47 * d'encart dans un texte. 48 * 49 **/ 50 function encarts_post_edition($flux) { 51 if (!in_array($flux['args']['type'], array('forum','signature'))) { 52 $marquer_doublons_encart = charger_fonction('marquer_doublons_encart', 'inc'); 53 $marquer_doublons_encart($flux['data'],$flux['args']['id_objet'],$flux['args']['type'],id_table_objet($flux['args']['type'], $flux['args']['serveur']),$flux['args']['table_objet'],$flux['args']['spip_table_objet'], '', $flux['args']['serveur']); 54 } 55 return $flux; 56 } 39 57 ?> -
_plugins_/encarts/plugin.xml
r44077 r44078 18 18 19 19 <prefix>encarts</prefix> 20 20 21 21 22 … … 41 42 <inclure>encarts_pipelines.php</inclure> 42 43 </pipeline> 44 45 <pipeline> 46 <nom>post_edition</nom> 47 <inclure>encarts_pipelines.php</inclure> 48 </pipeline> 43 49 44 50 <pipeline>
Note: See TracChangeset
for help on using the changeset viewer.