includes/render.php
changeset 142 ca9118d9c0f2
parent 136 f2ee42f026f7
child 158 f7e83b6db3be
equal deleted inserted replaced
141:13a43f08ffe1 142:ca9118d9c0f2
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.0.1 (Loch Ness)
     5  * Version 1.0.2 (Coblynau)
     6  * Copyright (C) 2006-2007 Dan Fuhry
     6  * Copyright (C) 2006-2007 Dan Fuhry
     7  * render.php - handles fetching pages and parsing them into HTML
     7  * render.php - handles fetching pages and parsing them into HTML
     8  *
     8  *
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
   249     }
   249     }
   250     
   250     
   251     if ( !$plaintext )
   251     if ( !$plaintext )
   252     {
   252     {
   253       // Process images
   253       // Process images
   254       $text   = RenderMan::process_image_tags($text, $taglist);
   254       $text = RenderMan::process_image_tags($text, $taglist);
   255       $text = RenderMan::process_imgtags_stage2($text, $taglist);
   255       $text = RenderMan::process_imgtags_stage2($text, $taglist);
   256     }
   256     }
   257     
   257     
   258     if($do_params)
   258     if($do_params)
   259     {
   259     {
   273         break;
   273         break;
   274       $text = RenderMan::include_templates($text);
   274       $text = RenderMan::include_templates($text);
   275     }
   275     }
   276     
   276     
   277     $text = process_tables($text);
   277     $text = process_tables($text);
       
   278     $text = RenderMan::parse_internal_links($text);
   278     
   279     
   279     $wiki =& Text_Wiki::singleton('Mediawiki');
   280     $wiki =& Text_Wiki::singleton('Mediawiki');
   280     if($plaintext)
   281     if($plaintext)
   281     {
   282     {
   282       $wiki->setRenderConf('Plain', 'wikilink', 'view_url', contentPath);
   283       $wiki->setRenderConf('Plain', 'wikilink', 'view_url', contentPath);