Changeset 5903 in spip-zone
- Timestamp:
- Oct 5, 2006, 9:12:54 AM (15 years ago)
- Location:
- _plugins_/_stable_/marqueur_stats
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/marqueur_stats/marqstat_fonctions.php
r5548 r5903 25 25 return $boutons_admin; 26 26 } 27 28 function marqstat_get_code(){ 29 $code = isset($GLOBALS['meta']['marqueur_stats'])?$GLOBALS['meta']['marqueur_stats']:''; 27 30 28 function marqstat_affichage_final($texte){ 29 global $html; 30 if ($html){ 31 $code = isset($GLOBALS['meta']['marqueur_stats'])?$GLOBALS['meta']['marqueur_stats']:''; 32 33 // quelles verifications mettre sur le contenu du marqueur ? ... 34 if (strlen($code)) 35 $texte=str_replace("</body>","$code\n</body>",$texte); 31 // quelles verifications mettre sur le contenu du marqueur ? ... 32 return trim($code); 33 } 34 35 function marqstat_insert_body($texte){ 36 if (!isset($GLOBALS['meta']['marqstat_flag_insert_body'])){ 37 include_spip("inc/meta"); 38 ecrire_meta('marqstat_flag_insert_body','oui'); 39 ecrire_metas(); 36 40 } 37 return $texte ;41 return $texte.marqstat_get_code(); 38 42 } 39 43 ?> -
_plugins_/_stable_/marqueur_stats/plugin.xml
r5548 r5903 19 19 marqstat 20 20 </prefix> 21 <options>marqstat_options.php</options> 21 22 <pipeline> 22 23 <nom>ajouter_boutons</nom> … … 24 25 </pipeline> 25 26 <pipeline> 26 <nom>affichage_final</nom> 27 <action>affichage_final</action> 27 <nom>insert_body</nom> 28 28 <inclure>marqstat_fonctions.php</inclure> 29 29 </pipeline> 30 <pipeline> 31 <nom>affichage_final</nom> 32 </pipeline> 30 33 </plugin>
Note: See TracChangeset
for help on using the changeset viewer.