[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Text/Wiki/Render/Latex/ -> Freelink.php (source)

   1  <?php
   2  
   3  class Text_Wiki_Render_Latex_Freelink extends Text_Wiki_Render {
   4      
   5      var $conf = array(
   6          'pages' => array(),
   7          'view_url' => 'http://example.com/index.php?page=%s',
   8          'new_url'  => 'http://example.com/new.php?page=%s',
   9          'new_text' => '?'
  10      );
  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          // get nice variable names (page, text, anchor)
  29          extract($options);
  30          
  31          return "$text\\footnote\{$anchor} ";
  32      }
  33  }
  34  ?>


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics