source: spip-zone/_plugins_/recommander/balise/recommander.php @ 118399

Last change on this file since 118399 was 40008, checked in by cedric@…, 10 years ago

modernisation du plugin recommander (CVT)

File size: 661 bytes
Line 
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;    #securite
3
4/**
5 * #RECOMMANDER{titre,url,texte,subject}
6 * @param <type> $p
7 * @return <type>
8 */
9function balise_RECOMMANDER_dist ($p) {
10        $_titre = interprete_argument_balise(1,$p);
11
12        $_url = interprete_argument_balise(2,$p);
13        $_url = ($_url ? $_url:"''");
14
15        $_texte = interprete_argument_balise(3,$p);
16        $_texte = ($_texte ? $_texte:"''");
17
18        $_subject = interprete_argument_balise(4,$p);
19        $_subject = ($_subject?$_subject:"''");
20
21        $p->code = "recuperer_fond('modeles/recommander',array('titre'=>$_titre,'url'=>$_url,'texte'=>$_texte,'subject'=>$_subject))";
22        $p->interdire_scripts = false;
23        return $p;
24}
25
26
27?>
Note: See TracBrowser for help on using the repository browser.