Changeset 296 in t29-www for lib/template.php
- Timestamp:
- Sep 12, 2012, 6:43:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/template.php
r291 r296 14 14 15 15 class t29Template { 16 public $conf, $menu, $msg ;16 public $conf, $menu, $msg, $host; 17 17 public $body_classes = array(); 18 18 public $javascript_config = array(); … … 31 31 $this->menu = new t29Menu($this->conf); 32 32 33 // create a host instance: 34 require_once $this->conf['lib'].'/host.php'; 35 $this->host = t29Host::detect($this->conf); 36 33 37 // create localisation class: 34 38 require_once $this->conf['lib'].'/messages.php'; … … 36 40 37 41 // fill up configuration 42 // optional configuration which can be filled by hooks or parts 43 if(!isset($this->conf['header_prepend'])) 44 $this->conf['header_prepend'] = array(); // list 45 38 46 // Path names in messages 39 47 foreach(array('footer-legal-file', 'topnav-search-page') as $msg_id) … … 132 140 <meta name="generator" content="t29v6"> 133 141 <meta name="t29.cachedate" content="<?php print date('r'); ?>"> 134 <meta name="t29.localfile" content="<?php print $_SERVER['SCRIPT_FILENAME']; ?>" id="localFileSource"> 135 <?php 142 <?php 143 foreach($this->conf['header_prepend'] as $h) print $h; 144 136 145 if(isset($this->conf['version'])) printf('<meta name="t29.version" content="%s">', $this->conf['version']); 137 146 if(isset($_GET['debug']))
Note: See TracChangeset
for help on using the changeset viewer.