Difference between revisions of "Expandable.php"

From Organic Design wiki
m
m
Line 3: Line 3:
 
     '/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>
<tr id="tocinside"><td colspan=2 width=100%>'
+
<tr id="tocinside"><td colspan=2 width=100%>',
 +
    $article
 
     );
 
     );
 
?>
 
?>

Revision as of 21:28, 1 October 2006

<? if ($GLOBALS['action'] == 'view') $article = preg_replace(

   '/EXPANDABLE(.+?)/',

'$1<script type="text/javascript">showTocToggle("show","hide")</script> ',

   $article
   );

?>