Difference between revisions of "Expandable.php"
From Organic Design wiki
m |
m |
||
| Line 1: | Line 1: | ||
<? | <? | ||
if ($GLOBALS['action'] == 'view') $article = preg_replace( | if ($GLOBALS['action'] == 'view') $article = preg_replace( | ||
| − | '/EXPANDABLE\\((.+?)\\)(.*?<table.+?<\\/table>)/s', | + | '/EXPANDABLE\\((.+?)\\)(.*?<table.+?<\\/table.*?>)/s', |
'<table cellpadding=0 cellspacing=0 border=0> | '<table cellpadding=0 cellspacing=0 border=0> | ||
<tr><td class=expandable-heading>$1</td><td class=expandable-heading align=right> | <tr><td class=expandable-heading>$1</td><td class=expandable-heading align=right> | ||
Revision as of 21:48, 1 October 2006
<? if ($GLOBALS['action'] == 'view') $article = preg_replace(
'/EXPANDABLE\\((.+?)\\)(.*?<table.+?<\\/table.*?>)/s',
'
| $1 |
<script type="text/javascript">showTocToggle("show","hide")</script>
|
| $2 | |
',
$article );
?>



