Changeset 275 in t29-www for lib/template.php
- Timestamp:
- Jul 7, 2012, 6:25:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/template.php
r273 r275 12 12 13 13 require dirname(__FILE__) . "/ressourceloader.php"; 14 14 15 15 class t29Template { 16 16 public $conf, $menu, $msg; … … 18 18 public $javascript_config = array(); 19 19 public $page_relations, $interlang_links; 20 public $log; // lightweight logging system 20 21 21 22 function __construct($conf_array) { 22 23 $this->conf = $conf_array; 24 25 // create a lightweight logging object: 26 require_once $this->conf['lib'].'/logging.php'; 27 $this->log = new t29Log(); 23 28 24 29 // create a menu: … … 126 131 <meta name="viewport" content="width=device-width,initial-scale=1"> 127 132 <?php 128 $csslinktmpl = ' <link rel="stylesheet" href="%s">'.PHP_EOL;133 $csslinktmpl = PHP_EOL.' <link rel="stylesheet" href="%s">'; 129 134 foreach($this->get_ressourceloader_links('css') as $css) 130 135 printf($csslinktmpl, $css); … … 143 148 <div id="background-color-container"><!-- helper --> 144 149 <section class="main content" role="main" id="content"> 150 <?php 151 if(!$this->log->is_empty()) { 152 print '<div class="errorpane">'; 153 $this->log->print_all(); 154 print '</div>'; 155 } 156 ?> 145 157 <!--<header class="teaser"> 146 158 <h2 id="pdp8L">Wissenschaftliche Rechner und Minicomputer</h2> … … 253 265 function get_ressourceloader_links($type) { 254 266 $rl = t29RessourceLoader::create_from_type($type, $this->conf); 255 return $rl->get_urls( );267 return $rl->get_urls( isset($_GET['rl_debug']) ); 256 268 } 257 269
Note: See TracChangeset
for help on using the changeset viewer.