示例#1
0
// Default CSS styling which applies to all themes but can be overriden
echo "<link href='" . THEMES . "templates/default.css' rel='stylesheet' type='text/css' media='screen' />";
// Admin Panel Theme CSS
echo "<link href='" . THEMES . "admin_themes/" . $settings['admin_theme'] . "/acp_styles.css' rel='stylesheet' type='text/css' media='screen' />";
// jQuery related includes
echo "<script type='text/javascript' src='" . INCLUDES . "jquery/jquery.js'></script>";
echo "<script type='text/javascript' src='" . INCLUDES . "jscript.js'></script>";
echo render_favicons(IMAGES);
if (function_exists("get_head_tags")) {
    echo get_head_tags();
}
echo "</head><body>";
// Check if the user is logged in
if (!check_admin_pass('')) {
    render_admin_login();
} else {
    render_admin_panel();
}
if ($footerError) {
    echo "<div class='p-15 m-t-10 error-message'>" . $footerError . "</div>";
}
echo "<script type='text/javascript' src='" . INCLUDES . "jquery/admin-msg.js'></script>\n";
echo "<script src='" . INCLUDES . "jscripts/html-inspector.js'></script>\n<script> HTMLInspector.inspect() </script>\n";
// Output lines added with add_to_footer()
echo $fusion_page_footer_tags;
// Output lines added with add_to_jquery()
if (!empty($fusion_jquery_tags)) {
    $fusion_jquery_tags = \PHPFusion\Minifier::minify($fusion_jquery_tags, array('flaggedComments' => false));
    echo "<script type='text/javascript'>\n\t\t\$(function() { {$fusion_jquery_tags}; });\n\t\t</script>\n";
}
echo "</body>\n</html>\n";
示例#2
0
        addNotice("warning", str_replace(array("[LINK]", "[/LINK]"), array("<a href='edit_profile.php'>", "</a>"), fusion_get_locale("global_199")), 'all');
    }
}
if (function_exists("render_page")) {
    render_page();
    // by here, header and footer already closed
}
// Output lines added with add_to_footer()
echo $fusion_page_footer_tags;
if (!empty($footerError)) {
    echo "<div class='admin-message container'>" . $footerError . "</div>";
}
// Output lines added with add_to_jquery()
$jquery_tags = "\$('[data-submenu]').submenupicker();";
if (!empty($fusion_jquery_tags)) {
    $jquery_tags .= $fusion_jquery_tags;
}
$jquery_tags = \PHPFusion\Minifier::minify($jquery_tags, array('flaggedComments' => FALSE));
echo "<script type='text/javascript'>\$(function() { {$jquery_tags} });</script>\n";
// Load bootstrap javascript
if (fusion_get_settings("bootstrap")) {
    echo "<script type='text/javascript' src='" . INCLUDES . "bootstrap/bootstrap.min.js'></script>\n";
    echo "<script type='text/javascript' src='" . INCLUDES . "bootstrap/bootstrap-submenu.min.js'></script>\n";
    echo "<script type='text/javascript' src='" . INCLUDES . "bootstrap/holder.js'></script>\n";
}
/**
 * Uncomment to guide your theme development
 * echo "<script src='".INCLUDES."jscripts/html-inspector.js'></script>\n<script> HTMLInspector.inspect() </script>\n";
 */
echo "</body>\n";
echo "</html>\n";