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