Difference between revisions of "Expandable.php"

From Organic Design wiki
m
m
Line 2: Line 2:
 
if ($GLOBALS['action'] == 'view') $article = preg_replace(
 
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><td class=expandable-heading align=right><script type="text/javascript">showTocToggle("show","hide")</script></td></tr><tr id="tocinside">',
<tr id="tocinside"><td colspan=2 width=100%>',
 
 
     $article
 
     $article
 
     );
 
     );
 
?>
 
?>

Revision as of 21:31, 1 October 2006

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

   '/EXPANDABLE(.+?)/',

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

   $article
   );

?>