Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Source for file Heading.php

Documentation is available at Heading.php

  1. <?php
  2.  
  3. class Text_Wiki_Render_Xhtml_Heading extends Text_Wiki_Render {
  4.     
  5.     function token($options)
  6.     {
  7.         // get nice variable names (type, level)
  8.         extract($options);
  9.         
  10.         if ($type == 'start'{
  11.             return "<h$level>";
  12.         }
  13.         
  14.         if ($type == 'end'{
  15.             return "</h$level>\n";
  16.         }
  17.     }
  18. }
  19. ?>

Documentation generated on Mon, 11 Mar 2019 13:51:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.