conf = $conf_array; // create a menu: require_once $this->conf['lib'].'/menu.php'; $this->menu = new t29Menu($this->conf); // create localisation class: require_once $this->conf['lib'].'/messages.php'; $this->msg = new t29Messages($this->conf['lang']); // fill up configuration $this->conf['legal_pagename'] = $this->conf['lang_path'] . $this->msg->_('footer-legal-file'); // setup body classes: $this->body_classes[] = "lang-" . $this->conf['lang']; $this->body_classes[] = "page-" . $this->conf['seiten_id']; // setup javascript configuration $this->javascript_config['lang'] = $this->conf['lang']; $this->javascript_config['seiten_id'] = $this->conf['seiten_id']; // get all kind of relations $this->page_relations = $this->menu->get_page_relations(); $this->interlang_links = $this->menu->get_interlanguage_link(); // check and load additional css $this->conf['pagecss'] = '/shared/css-v6/pagestyles/'.$this->conf['seiten_id'].'.css'; $this->conf['has_pagecss'] = file_exists($this->conf['webroot'].$this->conf['pagecss']); // FIXME: There is no caching check yet for this setting // (new pagecss file won't be detected and wont purge the tmpl cache) } /** * Main caching and output system. * Parameters (global configuration): * skip_cache - if true, skips writing output to cache file * purge_cache - if true, forces creation of new cache file * (does not change behaviour of this file's code) **/ function create_cache($cache_object) { $cache_object->start_cache(array($this, 'print_footer')); $this->print_header(); } function print_header() { $p = $this->msg->get_shorthand_printer(); $_ = $this->msg->get_shorthand_returner(); ?>