";
echo "";
echo "
";
echo "".$settings['sitename']."";
echo "";
echo "";
echo "";
if ($settings['bootstrap'] || defined('BOOTSTRAP')) {
echo "\n";
echo "\n";
echo "\n";
echo "\n";
if ($locale['text-direction'] == 'rtl') {
echo "\n";
}
}
if ($settings['entypo'] || defined('ENTYPO')) {
echo "\n";
}
if ($settings['fontawesome'] || defined('FONTAWESOME')) {
echo "\n";
echo "\n";
}
if (!defined('NO_DEFAULT_CSS')) {
echo "\n";
echo "\n";
}
// Admin Panel Theme CSS
$admin_theme_css = file_exists(THEMES.'admin_themes/'.$settings['admin_theme'].'/acp_styles.min.css') ? THEMES.'admin_themes/'.$settings['admin_theme'].'/acp_styles.min.css' : THEMES.'admin_themes/'.$settings['admin_theme'].'/acp_styles.css';
echo "\n";
echo render_favicons(defined('THEME_ICON') ? THEME_ICON : IMAGES.'favicons/');
if (function_exists("get_head_tags")) {
echo get_head_tags();
}
echo "\n";
echo "";
echo "\n";
echo "";
/**
* Constant - THEME_BODY;
* replace tags with your own theme definition body tags. Some body tags require additional params
* for the theme purposes.
*/
if (!defined("THEME_BODY")) {
echo "\n";
} else {
echo THEME_BODY;
}
// Check if the user is logged in
if (!check_admin_pass('')) {
if (empty(fusion_get_userdata("user_admin_password"))) {
redirect(BASEDIR."edit_profile.php");
} else {
render_admin_login();
}
} else {
render_admin_panel();
}
// Load Bootstrap javascript
if ($settings['bootstrap'] || defined('BOOTSTRAP')) {
echo "\n";
}
echo "\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)) {
if ($settings['devmode'] == 0) {
$minifier = new PHPFusion\Minify\JS($fusion_jquery_tags);
$js = $minifier->minify();
} else {
$js = $fusion_jquery_tags;
}
echo "\n";
}
// Uncomment to guide your theme development
//echo "\n\n";
echo "\n";
echo "";