121cdae0 |
1 | <?php |
2 | |
3 | // set default author |
4 | $Author = $_SESSION['forlife']."|".$_SESSION['prenom']." ".$_SESSION['nom']; |
5 | |
6 | // set profiles to point to plat/al fiche |
8ac323de |
7 | Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e', |
8 | 'PreserveText("=", \'<a href="'.$globals->baseurl |
9 | .'/fiche.php?user=$1" class="popup2">$2</a>\', "")'); |
121cdae0 |
10 | |
f64e3566 |
11 | ## [[#anchor]] in standard XHTML |
12 | Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e', |
13 | "Keep(\"<a id='$1'></a>\",'L')"); |
14 | |
8ac323de |
15 | Markup('tablebicol', '<block', '/\(:tablebicol ?([a-z_]+)?:\)/e', 'doBicol("$1")'); |
16 | Markup('pairrows', '_end', '/class=\'pair\_pmwiki\_([0-9]+)\'/e', |
17 | "($1 == 1)?'':('class=\"'.(($1 % 2 == 0)?'impair':'pair').'\"')"); |
18 | Markup('noclassth', '_end', '/<th class=\'[a-z_]+\'/', '<th'); |
121cdae0 |
19 | |
8ac323de |
20 | Markup('div', '<links', '/\(:div([^:]*):([^\)]*):\)/i', '<div$1>$2</div>'); |
121cdae0 |
21 | |
22 | function doBicol($column=false) |
23 | { |
8ac323de |
24 | global $TableRowIndexMax, $TableRowAttrFmt, $TableCellAttrFmt; |
25 | $TableRowAttrFmt = "class='pair_pmwiki_\$TableRowCount'"; |
26 | if ($column) { |
27 | $TableCellAttrFmt = "class='$column'"; |
28 | } |
121cdae0 |
29 | } |
30 | |
8ac323de |
31 | ?> |