コード例 #1
0
ファイル: index_fs.inc.php プロジェクト: Blu2z/implsk
        $template_settings = $nc_a2f->get_values_as_array();
    }
    if ($nc_core->template->get_current("CustomSettings") && $nc_core->subdivision->get_current('Template_ID') != $template) {
        require_once $nc_core->ADMIN_FOLDER . "array_to_form.inc.php";
        $nc_a2f = new nc_a2f($nc_core->template->get_current("CustomSettings"), array());
        $template_settings = $nc_a2f->get_values_as_array();
    }
    if (!$templatePreview) {
        $array_settings_path = $template_view->get_all_settings_path_in_array();
        foreach ($array_settings_path as $path) {
            include $path;
        }
    }
    $template_view->fill_fields();
    if ($templatePreview) {
        eval('?>' . $template_view->get_settings());
    }
    $template_env['Header'] = $template_view->get_header();
    $template_env['Footer'] = $template_view->get_footer();
    // %FIELD replace with inherited template field value
    $template_env = $nc_core->template->convert_subvariables($template_env);
}
$template_header = "";
$template_footer = "";
if (!$isNaked && $nc_core->get_page_type() != 'rss' && $nc_core->get_page_type() != 'xml') {
    $template_header = $template_env['Header'];
    $template_footer = $template_env['Footer'];
    if ($nc_core->subdivision->get_current("UseMultiSubClass") == 2 && !$nc_core->get_variable("inside_admin")) {
        $template_header_code = '';
        $array_headers_path = $template_view->get_all_header_path_in_array();
        foreach ($array_headers_path as $path) {