Difference between revisions of "Expandable.php"
From Organic Design wiki
m |
m |
||
| Line 6: | Line 6: | ||
<script type="text/javascript">showTocToggle("show","hide")</script> | <script type="text/javascript">showTocToggle("show","hide")</script> | ||
</td></tr> | </td></tr> | ||
| − | <tr id="tocinside"><td>$2</td></tr></table>', | + | <tr id="tocinside"><td colspan=2>$2</td></tr></table>', |
$article | $article | ||
); | ); | ||
?> | ?> | ||
Revision as of 21:45, 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 );
?>



