source: spip-zone/_plugins_/encarts/encarts_fonctions.php @ 44027

Last change on this file since 44027 was 44027, checked in by cyril@…, 9 years ago

on transforme les codes <encart> et </encart> en <span class="encart"> et </span>; merci marcimat ;-);

File size: 312 bytes
Line 
1<?php
2/*
3 * Plugin Encarts
4 * (c) 2011 Camille Lafitte, Cyril Marion
5 * Distribue sous licence GPL
6 *
7 */
8
9
10function style_encarts($letexte) {
11        $letexte = str_replace('<encart>', '<span class="encart">', $letexte);
12        $letexte = str_replace('</encart>', '</span>', $letexte);
13        return $letexte;
14}
15
16?>
Note: See TracBrowser for help on using the repository browser.