private function display_page(View $body_template)
 {
     $template = new FileTemplate('admin/frame.tpl');
     $customization_config = CustomizationConfig::load();
     $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' => new FileTemplate('js_top.tpl'), 'JS_BOTTOM' => new FileTemplate('js_bottom.tpl'), 'L_XML_LANGUAGE' => self::$lang['xml_lang'], 'BODY' => $body_template));
     $template->display();
 }
 function display_page(View $body_template)
 {
     $template = new FileTemplate('frame.tpl');
     $customization_config = CustomizationConfig::load();
     $seo_meta_data = $this->get_seo_meta_data();
     $description = $seo_meta_data->get_full_description();
     $template->put_all(array('C_CSS_CACHE_ENABLED' => CSSCacheConfig::load()->is_enabled(), 'C_FAVICON' => $customization_config->favicon_exists(), 'C_CANONICAL_URL' => $seo_meta_data->canonical_link_exists(), 'C_DESCRIPTION' => !empty($description), 'FAVICON' => Url::to_rel($customization_config->get_favicon_path()), 'FAVICON_TYPE' => $customization_config->favicon_type(), 'TITLE' => $seo_meta_data->get_full_title(), 'SITE_DESCRIPTION' => $description, 'U_CANONICAL' => $seo_meta_data->get_canonical_link(), 'L_XML_LANGUAGE' => self::$main_lang['xml_lang'], 'PHPBOOST_VERSION' => GeneralConfig::load()->get_phpboost_major_version(), 'MODULES_CSS' => $this->get_modules_css_files_html_code(), 'JS_TOP' => new FileTemplate('js_top.tpl'), 'JS_BOTTOM' => new FileTemplate('js_bottom.tpl'), 'BODY' => $body_template));
     $template->display(true);
 }
 private function save($favicon)
 {
     $save_destination = new File(PATH_TO_ROOT . '/' . $favicon->get_name());
     $favicon->save($save_destination);
     $this->delete_older();
     $this->config->set_favicon_path($save_destination->get_path_from_root());
     CustomizationConfig::save();
 }
 private function delete_pictures_saved($theme_selected)
 {
     $this->delete_older($theme_selected);
     if ($theme_selected !== 'all') {
         $theme = ThemesManager::get_theme($theme_selected);
         $customize_interface = $theme->get_customize_interface();
         $customize_interface->remove_header_logo_path();
         ThemesManager::change_customize_interface($theme_selected, $customize_interface);
     } else {
         foreach (ThemesManager::get_activated_themes_map() as $id => $theme) {
             $customize_interface = $theme->get_customize_interface();
             $customize_interface->remove_header_logo_path();
             ThemesManager::change_customize_interface($id, $customize_interface);
         }
         $this->config->remove_header_logo_path_all_themes();
         CustomizationConfig::save();
     }
 }