1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56:
<?php
class AdminDisplayFrameGraphicalEnvironment extends AbstractDisplayGraphicalEnvironment
{
public function __construct()
{
parent::__construct();
}
public function display($content)
{
$template = new FileTemplate('admin/frame.tpl');
$customization_config = CustomizationConfig::load();
$cookiebar_config = CookieBarConfig::load();
$maintenance_config = MaintenanceConfig::load();
$js_top_tpl = new FileTemplate('js_top.tpl');
$js_top_tpl->put_all(array(
'C_COOKIEBAR_ENABLED' => false
));
$js_bottom_tpl = new FileTemplate('js_bottom.tpl');
$js_bottom_tpl->put_all(array(
'C_COOKIEBAR_ENABLED' => false
));
$template->put_all(array(
'C_FAVICON' => $customization_config->favicon_exists(),
'C_CSS_CACHE_ENABLED' => CSSCacheConfig::load()->is_enabled(),
'FAVICON' => Url::to_rel($customization_config->get_favicon_path()),
'FAVICON_TYPE' => $customization_config->favicon_type(),
'TITLE' => $this->get_seo_meta_data()->get_full_title(),
'MODULES_CSS' => $this->get_modules_css_files_html_code(),
'JS_TOP' => $js_top_tpl,
'JS_BOTTOM' => $js_bottom_tpl,
'L_XML_LANGUAGE' => LangLoader::get_message('xml_lang', 'main'),
'BODY' => new StringTemplate($content)
));
$template->display();
}
}
?>