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 / Anchor.php next >
Encoding:
PHP Script  |  2008-07-02  |  587 b   |  34 lines

  1. <?php
  2.  
  3. /**
  4. * This class renders an anchor target name in LaTeX.
  5. *
  6. * $Id: Anchor.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
  7. * @author Jeremy Cowgar <jeremy@cowgar.com>
  8. *
  9. * @package Text_Wiki
  10. *
  11. */
  12.  
  13. class Text_Wiki_Render_Latex_Anchor extends Text_Wiki_Render {
  14.     
  15.     function token($options)
  16.     {
  17.         extract($options); // $type, $name
  18.         
  19.         if ($type == 'start') {
  20.             //return sprintf('<a id="%s">',$name);
  21.             return '';
  22.         }
  23.         
  24.         if ($type == 'end') {
  25.             //return '</a>';
  26.             return '';
  27.         }
  28.     }
  29. }
  30.  
  31. ?>
  32.