| 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 |
| 7 | Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e', |
| 8 | 'PreserveText("=", \'<a href="'.$globals->baseurl |
| 9 | .'/fiche.php?user=$1" class="popup2">$2</a>\', "")'); |
| 10 | |
| 11 | ## [[#anchor]] in standard XHTML |
| 12 | Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e', |
| 13 | "Keep(\"<a id='$1'></a>\",'L')"); |
| 14 | |
| 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'); |
| 19 | |
| 20 | Markup('div', '<links', '/\(:div([^:]*):([^\)]*):\)/i', '<div$1>$2</div>'); |
| 21 | |
| 22 | function doBicol($column=false) |
| 23 | { |
| 24 | global $TableRowIndexMax, $TableRowAttrFmt, $TableCellAttrFmt; |
| 25 | $TableRowAttrFmt = "class='pair_pmwiki_\$TableRowCount'"; |
| 26 | if ($column) { |
| 27 | $TableCellAttrFmt = "class='$column'"; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | ?> |