home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Text / Wiki / Render / Latex / Url.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  894 b   |  42 lines

  1. <?php
  2.  
  3.  
  4. class Text_Wiki_Render_Latex_Url extends Text_Wiki_Render {
  5.  
  6.  
  7.     var $conf = array(
  8.         'target' => false,
  9.         'images' => true,
  10.         'img_ext' => array('jpg', 'jpeg', 'gif', 'png')
  11.     );
  12.  
  13.     /**
  14.     *
  15.     * Renders a token into text matching the requested format.
  16.     *
  17.     * @access public
  18.     *
  19.     * @param array $options The "options" portion of the token (second
  20.     * element).
  21.     *
  22.     * @return string The text rendered from the token options.
  23.     *
  24.     */
  25.  
  26.     function token($options)
  27.     {
  28.         // create local variables from the options array (text,
  29.         // href, type)
  30.         extract($options);
  31.  
  32.         if ($options['type'] == 'start') {
  33.             return '';
  34.         } else if ($options['type'] == 'end') {
  35.             return '\footnote{' . $href . '}';
  36.         } else {
  37.             return $text . '\footnote{' . $href . '}';
  38.         }
  39.     }
  40. }
  41. ?>
  42.