[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/ -> select_template_content.php (source)

   1  <?php
   2    /* BTSv1.4 */   
   3     if (isset($content_template) && file_exists(DIR_WS_CONTENT . basename($content_template))) { 
   4      // load special dynamic template from "templates/yourtemplatedir/content/" or else from "templates/fallback/content/"
   5      if(is_file(DIR_WS_CONTENT . $content_template)) { require(DIR_WS_CONTENT . basename($content_template)); } else { require(DIR_WS_CONTENT_FALLBACK . basename($content_template)); }
   6    } else {
   7      // load default/static template from "templates/yourtemplatedir/content/" or else from "templates/fallback/content/"
   8      if(is_file(DIR_WS_CONTENT . $content . '.tpl.php')) { require(DIR_WS_CONTENT . $content . '.tpl.php'); } else { require(DIR_WS_CONTENT_FALLBACK . $content . '.tpl.php'); }
   9    } 
  10  
  11  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7