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.     
  4.     var $conf = array(
  5.         'css_h1' => null,
  6.         'css_h2' => null,
  7.         'css_h3' => null,
  8.         'css_h4' => null,
  9.         'css_h5' => null,
  10.         'css_h6' => null
  11.     );
  12.     
  13.     function token($options)
  14.     {
  15.         // get nice variable names (id, type, level)
  16.         extract($options);
  17.         
  18.         if ($type == 'start'{
  19.             $css $this->formatConf(' class="%s"'"css_h$level");
  20.             return "<h$level$css id=\"$id\">";
  21.         }
  22.         
  23.         if ($type == 'end'{
  24.             return "</h$level>\n";
  25.         }
  26.     }
  27. }
  28. ?>

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