Last change
on this file since 681 was
30,
checked in by sebas, 17 years ago
|
nueva importacion del codigo del esqueleto de redcta con los plugins
|
File size:
858 bytes
|
Line | |
---|
1 | <?php |
---|
2 | function balise_ARTICLE_PDF_dist($p) { |
---|
3 | if (!is_array($p->param)) |
---|
4 | $p->param=array(); |
---|
5 | |
---|
6 | // Produire le premier argument {article_pdf} |
---|
7 | $texte = new Texte; |
---|
8 | $texte->type='texte'; |
---|
9 | $texte->texte='article_pdf'; |
---|
10 | $param = array(0=>NULL, 1=>array(0=>$texte)); |
---|
11 | array_unshift($p->param, $param); |
---|
12 | |
---|
13 | // Transformer les filtres en arguments |
---|
14 | for ($i=1; $i<count($p->param); $i++) { |
---|
15 | if ($p->param[$i][0]) { |
---|
16 | if (!strstr($p->param[$i][0], '=')) |
---|
17 | break;# on a rencontre un vrai filtre, c'est fini |
---|
18 | $texte = new Texte; |
---|
19 | $texte->type='texte'; |
---|
20 | $texte->texte=$p->param[$i][0]; |
---|
21 | $param = array(0=>$texte); |
---|
22 | $p->param[$i][1] = $param; |
---|
23 | $p->param[$i][0] = NULL; |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | // Appeler la balise #MODELE{article_pdf}{arguments} |
---|
28 | if (!function_exists($f = 'balise_modele')) |
---|
29 | $f = 'balise_modele_dist'; |
---|
30 | return $f($p); |
---|
31 | } |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.