\n"; echo "\n"; echo "\n"; echo "".$settings['sitename']."\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $languages = fusion_get_enabled_languages(); if (count($languages) > 1) { foreach ($languages as $language_folder => $language_name) { include LOCALE.$language_folder.'/global.php'; echo ''; } echo "\n"; } 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"; } if (!defined('PF_FONT') || (defined('PF_FONT') && PF_FONT == TRUE)) { echo "\n"; } $theme_css = file_exists(THEME.'styles.min.css') ? THEME.'styles.min.css' : THEME.'styles.css'; echo "\n"; if ($settings['bootstrap'] == TRUE || defined('BOOTSTRAP')) { $user_theme = fusion_get_userdata('user_theme'); $theme_name = $user_theme !== 'Default' ? $user_theme : $settings['theme']; $theme_data = dbarray(dbquery("SELECT theme_file FROM ".DB_THEME." WHERE theme_name='".$theme_name."' AND theme_active='1'")); if (!empty($theme_data)) { 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 "\n"; /** * 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; } if (iADMIN) { if (iSUPERADMIN && file_exists(BASEDIR.'install.php') && $settings['devmode'] == 0 && !defined("DEVMODE")) { addNotice('danger', $locale['global_198'], 'all'); } if ($settings['maintenance']) { addNotice('warning maintenance-alert', $locale['global_190'], 'all'); } if (!fusion_get_userdata('user_admin_password')) { addNotice('warning', str_replace(["[LINK]", "[/LINK]"], ["", ""], $locale['global_199']), 'all'); } } if (function_exists("render_page")) { render_page(); // by here, header and footer already closed } // Load Bootstrap javascript if ($settings['bootstrap'] || defined('BOOTSTRAP')) { echo "\n"; echo "\n"; } echo "\n"; // Output lines added with add_to_footer() echo $fusion_page_footer_tags; $jquery_tags = ''; if ($settings['bootstrap'] || defined('BOOTSTRAP')) { $jquery_tags .= "$('[data-submenu]').submenupicker();"; // Fix select2 on modal - http://stackoverflow.com/questions/13649459/twitter-bootstrap-multiple-modal-error/15856139#15856139 $jquery_tags .= "$.fn.modal.Constructor.prototype.enforceFocus = function () {};"; } // Output lines added with add_to_jquery() if (!empty($fusion_jquery_tags)) { $jquery_tags .= $fusion_jquery_tags; if ($settings['devmode'] == 0) { $minifier = new PHPFusion\Minify\JS($jquery_tags); $js = $minifier->minify(); } else { $js = $jquery_tags; } echo "\n"; } // Uncomment to guide your theme development //echo "\n\n"; echo "\n"; echo ""; PHPFusion\OpenGraph::ogDefault();