Changeset 91352 in spip-zone
- Timestamp:
- Aug 14, 2015, 2:16:18 PM (6 years ago)
- Location:
- _plugins_/porte_plume_extras/enluminures_typographiques_v3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/porte_plume_extras/enluminures_typographiques_v3/paquet.xml
r91090 r91352 2 2 prefix="typoenluminee" 3 3 categorie="edition" 4 version="3.5. 2"4 version="3.5.3" 5 5 etat="stable" 6 6 compatibilite="[2.0.3;3.1.*]" -
_plugins_/porte_plume_extras/enluminures_typographiques_v3/plugin.xml
r91090 r91352 5 5 <licence>© 2007 GNU/GPL</licence> 6 6 <lien>http://contrib.spip.net/Enluminures-typographiques-V3-pour-SPIP-2-avec</lien> 7 <version>3.5. 2</version>7 <version>3.5.3</version> 8 8 <version_base>0.1.0</version_base> 9 9 <install>base/typoenluminee_upgrade.php</install> -
_plugins_/porte_plume_extras/enluminures_typographiques_v3/typoenluminee.php
r88075 r91352 217 217 $texte = str_replace('...','…',$texte); 218 218 219 global $ class_spip;219 global $debut_italique, $fin_italique,$class_spip; 220 220 /* 221 221 Cas particulier pour le gras … … 234 234 } 235 235 236 237 /** 238 * Remplacer les { ... } par <i> </i> 239 * On passe après les gras pour que la regexp ne matche pas {{ ... }} 240 */ 241 tester_variable('debut_italique', "<i$class_spip>"); 242 tester_variable('fin_italique', '</i>'); 243 $chercher_raccourcis = array( 244 /* 9 */ "/[{]/S", 245 /* 10 */ "/[}]/S", 246 ); 247 $remplacer_raccourcis = array( 248 /* 9 */ $debut_italique, 249 /* 10 */ $fin_italique, 250 ); 251 $texte = preg_replace($chercher_raccourcis, $remplacer_raccourcis, $texte); 252 236 253 return $texte; 237 254 }
Note: See TracChangeset
for help on using the changeset viewer.