Changeset 44027 in spip-zone for _plugins_/encarts/encarts_fonctions.php


Ignore:
Timestamp:
Jan 31, 2011, 6:47:07 PM (9 years ago)
Author:
cyril@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/encarts/encarts_fonctions.php

    r43875 r44027  
    88
    99
     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
    1016?>
Note: See TracChangeset for help on using the changeset viewer.