function render_page($license = FALSE) { global $settings, $main_style, $locale, $mysql_queries_time; //Header echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='full-header'>\n" . showbanners() . "</td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='sub-header-left'></td>\n"; echo "<td class='sub-header'>" . showsublinks(" " . THEME_BULLET . " ", "white") . "</td>\n"; echo "<td align='right' class='sub-header'><div class='hidden-xs'>" . showsubdate() . "</div>\n</td>\n"; echo "<td class='sub-header-right'></td>\n"; echo "</tr>\n</table>\n"; if ($main_style == "") { $colspan = ""; } elseif ($main_style == "side-both") { $colspan = "colspan='3'"; } else { $colspan = "colspan='2'"; } //Content echo renderNotices(getNotices(array('all', FUSION_SELF))); echo "<table cellpadding='0' cellspacing='0' width='100%' class='{$main_style}'>\n"; echo AU_CENTER ? "<tr><td class='main-bg' " . $colspan . " valign='top'>" . AU_CENTER . "</td>\n</tr>\n<tr>\n" : "<tr>\n"; if (LEFT) { echo "<td class='side-border-left' valign='top'>" . LEFT . "</td>"; } echo "<td class='main-bg' valign='top'>" . U_CENTER . CONTENT . L_CENTER . "</td>"; if (RIGHT) { echo "<td class='side-border-right' valign='top'>" . RIGHT . "</td>"; } echo BL_CENTER ? "</tr>\n<tr><td class='main-bg' " . $colspan . " valign='top'>" . BL_CENTER . "</td>\n</tr>\n<tr>\n" : ""; echo "</tr>\n</table>\n"; //Footer echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='sub-header-left'></td>\n"; echo "<td align='left' class='sub-header'>" . showrendertime() . "</td>\n"; echo "<td align='right' class='sub-header'>" . showcounter() . "</td>\n"; echo "<td class='sub-header-right'></td>\n"; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td align='center' class='main-footer'>" . stripslashes($settings['footer']); if (!$license) { echo "<br /><br />\n" . showcopyright(); } echo "</td>\n"; echo "</tr>\n</table>\n"; /*foreach ($mysql_queries_time as $query) { echo $query[0]." QUERY: ".$query[1]."<br />"; }*/ }
function render_page($license = FALSE) { //add_handler("theme_output"); global $settings, $main_style, $locale, $userdata, $aidlink, $mysql_queries_time; // set variables $brand = $settings['sitebanner'] ? "<img title='" . $settings['sitename'] . "' style='margin-left:-20px; width:100%; margin-top:-35px;' src='" . BASEDIR . $settings['sitebanner'] . "' />" : $settings['sitename']; // set size - max of 12 min of 0 $side_grid_settings = array('desktop_size' => 2, 'laptop_size' => 3, 'tablet_size' => 3, 'phone_size' => 12); // Render Theme echo "<div class='container p-t-20 p-b-20'>\n"; echo "<div class='display-inline-block m-t-20 m-l-20' style='max-width: 280px;'>"; echo $brand; echo "</div>\n"; echo showsublinks('', '', array('logo' => $brand)) . "\n"; // row 1 - go for max width if (defined('AU_CENTER') && AU_CENTER) { echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . AU_CENTER . "</div>\n</div>"; } // row 2 - fluid setitngs depending on panel appearances echo "<div class='row main-body'>\n"; if (defined('LEFT') && LEFT) { echo "<div class='" . html_prefix($side_grid_settings) . " hidden-xs'>\n" . LEFT . "</div>\n"; } // column left echo "<div class='" . html_prefix(center_grid_settings($side_grid_settings)) . "'>\n"; $notices = getNotices(); if ($notices) { echo renderNotices($notices); } echo U_CENTER . CONTENT . L_CENTER . "</div>\n"; // column center if (defined('RIGHT') && RIGHT) { echo "<div class='" . html_prefix($side_grid_settings) . "'>\n" . RIGHT . "</div>\n"; } // column right if (defined('LEFT') && LEFT) { echo "<div class='" . html_prefix($side_grid_settings) . " hidden-sm hidden-md hidden-lg'>\n" . LEFT . "</div>\n"; } // column left echo "</div>\n"; // row 3 if (defined('BL_CENTER') && BL_CENTER) { echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . BL_CENTER . "</div>\n</div>"; } // footer echo "<hr>\n"; echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>"; echo "<span>" . stripslashes(strip_tags($settings['footer'])) . "</span><br/>\n"; echo "<span>" . showcopyright() . "</span><br/>\n"; echo "<span>Bootstrap Theme by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion Inc</a></span><br/>\n"; echo "<span>"; if ($settings['visitorcounter_enabled']) { echo showcounter(); } if ($settings['rendertime_enabled'] == '1' || $settings['rendertime_enabled'] == '2') { if ($settings['visitorcounter_enabled']) { echo " | "; } echo showrendertime(); } echo "</span>\n"; echo "</div>\n</div>\n"; echo "</div>\n"; }
/** * Render the theme content */ public function displayContent() { // Septenary Theme Functions add_handler("theme_output"); $this->setHeader(); $this->open_grid('section-3', 1); echo !empty(AU_CENTER) || $this->top_html ? "<div class='au-content'>" . $this->top_html . AU_CENTER . "</div>\n" : ''; echo "<div class='row'>\n"; if (!empty(LEFT) || !empty(RIGHT) || !empty($this->left_html)) { echo "<div class='hidden-xs col-sm-3 col-md-3 col-lg-3 leftbar'>\n"; echo RIGHT . LEFT . $this->left_html; echo "</div>\n"; } echo "<div class='" . self::col_span() . " main-content'>\n"; // Get all notices, we also include notices that are meant to be displayed on all pages echo renderNotices(getNotices(array('all', FUSION_SELF))); echo $this->upper_html . U_CENTER; echo CONTENT; echo $this->lower_html . L_CENTER; echo "</div>\n"; echo !empty(BL_CENTER) || $this->bottom_html ? "<div class='bl-content'>" . $this->bottom_html . BL_CENTER . "</div>\n" : ''; echo "</div>\n"; $this->close_grid(1); }
function render_admin_panel() { global $locale, $userdata, $defender, $pages, $aidlink, $admin; $languages = fusion_get_enabled_languages(); // Admin panel page echo "<div id='admin-panel' class='clearfix in'>\n"; // Top header section echo "<section id='acp-header' class='pull-left affix clearfix' data-offset-top='0' data-offset-bottom='0'>\n"; // Top left logo echo "<div class='brand'>\n"; echo "<div class='pull-right'>\n"; echo "</div>\n</div>\n"; // Top navigation echo "<nav>\n"; // Top side panel toggler echo "<ul class='venus-toggler'>\n"; echo "<li><a id='toggle-canvas' class='pointer' style='border-left:none;'><i class='fa fa-bars fa-lg'></i></a></li>\n"; echo "</ul>\n"; echo $admin->horiziontal_admin_nav(true); // Top right menu links echo "<ul class='top-right-menu pull-right m-r-15'>\n"; echo "<li class='dropdown'>\n"; echo "<a class='dropdown-toggle pointer' data-toggle='dropdown'>" . display_avatar($userdata, '25px', '', '', '') . " " . $locale['logged'] . "<strong>" . $userdata['user_name'] . "</strong> <span class='caret'></span>\n</a>\n"; echo "<ul class='dropdown-menu' role='menu'>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "edit_profile.php'>" . $locale['edit'] . " " . $locale['profile'] . "</a></li>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "profile.php?lookup=" . $userdata['user_id'] . "'>" . $locale['view'] . " " . $locale['profile'] . "</a></li>\n"; echo "<li class='divider'> </li>\n"; echo "<li><a class='display-block' href='" . FUSION_REQUEST . "&logout'>" . $locale['admin-logout'] . "</a></li>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "index.php?logout=yes'>" . $locale['logout'] . "</a></li>\n"; echo "</ul>\n"; echo "</li>\n"; echo "<li><a title='" . $locale['settings'] . "' href='" . ADMIN . "settings_main.php" . $aidlink . "'><i class='fa fa-cog fa-lg'></i></a></li>\n"; echo "<li><a title='" . fusion_get_settings('sitename') . "' href='" . BASEDIR . "index.php'><i class='fa fa-home fa-lg'></i></a>\n</li>\n"; echo "<li><a title='" . $locale['message'] . "' href='" . BASEDIR . "messages.php'><i class='fa fa-envelope-o fa-lg'></i></a>\n</li>\n"; if (count($languages) > 1) { echo "<li class='dropdown'><a class='dropdown-toggle pointer' data-toggle='dropdown' title='" . $locale['282'] . "'><i class='fa fa-globe fa-lg fa-fw'></i> " . translate_lang_names(LANGUAGE) . "<span class='caret'></span></a>\n"; echo "<ul class='dropdown-menu'>\n"; foreach ($languages as $language_folder => $language_name) { echo "<li><a class='display-block' href='" . clean_request("lang=" . $language_folder, array("lang"), FALSE) . "'><img class='m-r-5' src='" . BASEDIR . "locale/{$language_folder}/{$language_folder}-s.png'> {$language_name}</a></li>\n"; } echo "</ul>\n"; echo "</li>\n"; } echo "</ul>\n"; // .top-right-menu echo "</nav>\n"; echo "</section>\n"; // Content section echo "<div class='content-wrapper display-table pull-left'>\n"; // Left side panel echo "<div id='acp-left' class='pull-left affix' data-offset-top='0' data-offset-bottom='0'>\n"; // collapse to top menu on sm and xs echo "<div class='panel panel-default admin'><div class='panel-body clearfix'>\n"; echo "<div class='pull-left m-r-10'>\n" . display_avatar($userdata, '50px', '', '', '') . "</div>\n"; echo "<span class='overflow-hide m-t-10'><h4 class='m-b-0 text-stronger'>\n" . $userdata['user_name'] . "</h4>\n" . getuserlevel($userdata['user_level']) . "</span></div>\n"; echo "</div>\n"; echo $admin->vertical_admin_nav(); echo "</div>\n"; // #acp-left // Control panel content wrapper echo "<div id='acp-main' class='clearfix' style='vertical-align:top;'>\n"; // Main content wrapper echo "<div id='acp-content' class='m-t-20 col-xs-12 col-sm-12 col-md-12 col-lg-12'>\n"; // Render breadcrumbs echo render_breadcrumbs(); // Get and render notices $notices = getNotices(); echo renderNotices($notices); // Render the content echo CONTENT; echo "</div>\n"; // #acp-content // Footer section echo "<footer class='m-l-20 display-inline-block m-t-20 m-b-20'>\n"; // Copyright echo "Venus Admin © " . date("Y") . " created by <a href='https://www.php-fusion.co.uk'><strong>PHP-Fusion Inc.</strong></a>\n"; echo showcopyright(); // Render time if (fusion_get_settings('rendertime_enabled')) { echo "<br /><br />"; // Make showing of queries and memory usage separate settings echo showrendertime(); echo showMemoryUsage(); } echo "</footer>\n"; echo "</div>\n"; // .acp-main echo "</div>\n"; // .content-wrapper echo "</div>\n"; // #admin-panel add_to_footer("<script src='" . THEMES . "admin_themes/Venus/includes/jquery.slimscroll.min.js'></script>"); if (!isset($_COOKIE['acp_sidemenu'])) { setcookie("acp_sidemenu", 1, 64800); } add_to_jquery("\n\t// Initialize slimscroll\n\t\$('#adl').slimScroll({\n\t\theight: null\n\t});\n\n\t// Function to toggle side menu\n\tfunction toggleSideMenu(state) {\n\t\tvar panel_state = null;\n\t\tif (state == 'show') {\n\t\t\t\$('#admin-panel').addClass('in');\n\t\t\tvar panel_state = 1;\n\t\t} else if (state == 'hide') {\n\t\t\t\$('#admin-panel').removeClass('in');\n\t\t\tvar panel_state = 0;\n\t\t} else {\n\t\t\t\$('#admin-panel').toggleClass('in');\n\t\t\tvar panel_state = \$('#admin-panel').hasClass('in');\n\t\t}\n\t\tif (panel_state) {\n\t\t\t\$.cookie('" . COOKIE_PREFIX . "acp_sidemenu', '1', {expires: 164800});\n\t\t} else {\n\t\t\t\$.cookie('" . COOKIE_PREFIX . "acp_sidemenu', '0', {expires: 164800});\n\t\t}\n\t}\n\n\t// Adjust side menu height on page load, resize or orientation change\n\t\$(window).on('load resize orientationchange', function(event) {\n\t\tvar init_hgt = \$(window).height();\n\t\tvar small = \$('.brand-text').is(':visible');\n\t\tvar panel_height = (small ? init_hgt-125 : init_hgt-80);\n\t\tvar hgt = \$(this).height();\n\t\t\$('#acp-left').css('height', hgt);\n\t\t\$('.admin-vertical-link').css('height', panel_height);\n\t\t// Hide side menu on orientation change\n\t\t//if (event.type === 'orientationchange') {\n\t\t//\ttoggleSideMenu('show');\n\t\t//}\n\t});\n\t// Side menu toggler\n\t\$('#toggle-canvas').on('click', toggleSideMenu);\n\t"); }
function render_admin_panel() { global $locale, $userdata, $defender, $pages, $aidlink, $admin; $languages = fusion_get_enabled_languages(); // Admin panel page echo "<div id='admin-panel' class='clearfix in'>\n"; // Top header section echo "<section id='acp-header' class='pull-left affix clearfix' data-offset-top='0' data-offset-bottom='0'>\n"; // Top content sections navigation echo "<nav>\n"; echo "<ul class='top-left-menu pull-left m-l-15'>\n"; echo "<li><a title='" . $locale['ac00'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=0'>" . $locale['ac00'] . "</a></li>\n"; echo "<li><a title='" . $locale['ac01'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=1'>" . $locale['ac01'] . "</a></li>\n"; echo "<li><a title='" . $locale['ac02'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=2'>" . $locale['ac02'] . "</a></li>\n"; echo "<li><a title='" . $locale['ac03'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=3'>" . $locale['ac03'] . "</a></li>\n"; echo "<li><a title='" . $locale['ac04'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=4'>" . $locale['ac04'] . "</a></li>\n"; echo "<li><a title='" . $locale['ac05'] . "' href='" . ADMIN . "index.php" . $aidlink . "&pagenum=5'>" . $locale['ac05'] . "</a></li>\n"; echo "</ul>\n"; echo "</nav>\n"; // Top navigation echo "<nav>\n"; // Top right menu links echo "<ul class='top-right-menu pull-right m-r-15'>\n"; echo "<li class='dropdown'>\n"; echo "<a class='dropdown-toggle pointer' data-toggle='dropdown'>" . display_avatar($userdata, '25px', '', '', '') . " " . $locale['logged'] . "<strong>" . $userdata['user_name'] . "</strong> <span class='caret'></span>\n</a>\n"; echo "<ul class='dropdown-menu' role='menu'>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "edit_profile.php'>" . $locale['edit'] . " " . $locale['profile'] . "</a></li>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "profile.php?lookup=" . $userdata['user_id'] . "'>" . $locale['view'] . " " . $locale['profile'] . "</a></li>\n"; echo "<li class='divider'> </li>\n"; echo "<li><a class='display-block' href='" . FUSION_REQUEST . "&logout'>" . $locale['admin-logout'] . "</a></li>\n"; echo "<li><a class='display-block' href='" . BASEDIR . "index.php?logout=yes'>" . $locale['logout'] . "</a></li>\n"; echo "</ul>\n"; echo "</li>\n"; if (count($languages) > 1) { echo "<li class='dropdown'><a class='dropdown-toggle pointer' data-toggle='dropdown' title='" . $locale['282'] . "'><i class='fa fa-globe fa-lg fa-fw'></i> " . translate_lang_names(LANGUAGE) . "<span class='caret'></span></a>\n"; echo "<ul class='dropdown-menu'>\n"; foreach ($languages as $language_folder => $language_name) { echo "<li><a class='display-block' href='" . clean_request("lang=" . $language_folder, array("lang"), FALSE) . "'><img class='m-r-5' src='" . BASEDIR . "locale/{$language_folder}/{$language_folder}-s.png'> {$language_name}</a></li>\n"; } echo "</ul>\n"; echo "</li>\n"; } echo "</ul>\n"; // .top-right-menu echo "</nav>\n"; echo "</section>\n"; // Content section echo "<div class='content-wrapper display-table pull-left'>\n"; // Main content wrapper echo "<div id='acp-content' class='m-t-20 col-xs-12 col-sm-12 col-md-12 col-lg-12'>\n"; // Render breadcrumbs echo render_breadcrumbs(); // Get and render notices $notices = getNotices(); echo renderNotices($notices); // Render the content echo CONTENT; echo "</div>\n"; // #acp-content // Footer section echo "<footer class='m-l-20 display-inline-block m-t-20 m-b-20'>\n"; // Copyright echo "Old_School Admin © " . date("Y") . " created by <a href='https://www.php-fusion.co.uk'><strong>PHP-Fusion Inc.</strong></a>\n"; echo showcopyright(); // Render time if (fusion_get_settings('rendertime_enabled')) { echo "<br /><br />"; // Make showing of queries and memory usage separate settings echo showrendertime(); echo showMemoryUsage(); } echo "<hr />\n"; echo showFooterErrors(); echo "</footer>\n"; echo "</div>\n"; // .acp-main echo "</div>\n"; // #admin-panel // Wrappers echo "</div></div></div></div>\n"; add_to_footer("<script src='" . THEMES . "admin_themes/Old_School/includes/jquery.slimscroll.min.js'></script>"); add_to_jquery("\n// Initialize slimscroll\n\$('#adl').slimScroll({\n\theight: null\n});\n"); }
function display_maintenance(array $info) { ?> <section class="maintenance container"> <?php $notices = getNotices(); if ($notices) { echo renderNotices($notices); } ?> <div class="m-t-20 jumbotron text-center"> <img src='<?php echo fusion_get_settings("sitebanner"); ?> ' alt='<?php echo fusion_get_settings("sitename"); ?> ' /> <?php echo "<h1><strong>" . fusion_get_settings("sitename") . "</strong></h1>\n"; $message = fusion_get_settings("maintenance_message"); if (!empty($message)) { echo "<h1 class='m-b-20'>" . stripslashes(nl2br(fusion_get_settings("maintenance_message"))) . "</h1>\n"; } if (!empty($info)) { ?> <hr/> <div class="well clearfix m-t-20 p-20 p-b-0"> <?php echo $info['open_form']; ?> <div class="col-xs-12 col-sm-4"> <?php echo $info['user_name']; ?> </div> <div class="col-xs-12 col-sm-4"> <?php echo $info['user_pass']; ?> </div> <div class="col-xs-12 col-sm-4"> <?php echo $info['login_button']; ?> </div> </div> <?php echo $info['close_form']; } ?> </div> <div class="text-center"> <?php echo showcopyright(); ?> <?php echo showcounter(); ?> <?php echo showMemoryUsage(); ?> </div> </section> <?php }
function render_page($license = FALSE) { global $locale, $data, $aidlink; include THEME . "/locale/" . LOCALESET . "locale.php"; add_to_head(' <!--[if lt IE 7]> <script type="text/javascript" src="' . THEME . 'js/ie-png.js"></script> <script type="text/javascript" src="' . THEME . 'js/supersleight.js"></script> <link rel="stylesheet" type="text/css" href="' . THEME . 'css/lt7.css" /> <![endif]--> <!--[if IE]> <link rel="stylesheet" type="text/css" href="' . THEME . 'css/ie.css" /> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="' . THEME . 'css/ie7.css" /> <![endif]--> <script type="text/javascript" src="' . THEME . 'js/jquery.cycle.all.min.js"></script> <script type="text/javascript" src="' . THEME . 'js/cufon-yui.js"></script> <script type="text/javascript" src="' . THEME . 'js/Debonair-Calibri.js"></script> <script type="text/javascript" src="' . THEME . 'js/Cufon-Settings.js"></script> <script type="text/javascript" src="' . THEME . 'js/slider-settings.js"></script> <script type="text/javascript" src="' . THEME . 'js/subnavie6.js"></script> '); add_to_head("<link rel='stylesheet' href='" . THEME . "css/bootstrap_rewrite.css' type='text/css'/>"); include THEME . "theme_db.php"; $theme_settings = get_theme_settings("debonair"); echo "<div id='wrapper'>\n"; echo "<div class='container'>\n"; echo "<div class='body-wrap'>\n"; echo "<div class='body-inner-wrap'>\n"; // start header ---- $banner_path = fusion_get_settings("sitebanner"); echo "<header class='clearfix m-t-10'>\n\t\t<a class='logo' href='" . BASEDIR . "index.php'><img src='" . ($banner_path !== "" ? BASEDIR . $banner_path : IMAGES . "php-fusion-logo.png") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n\t\t<div class='tagline'>Super Clean Web 2.0 Business Template</div>\n"; echo "<div class='call-tag'>\n"; if (iADMIN) { echo "<span class='display-inline-block m-r-10'><a href='" . ADMIN . $aidlink . "'>" . $locale['global_123'] . "</a></span>\n"; } echo $locale['global_ML102'] . "\n"; foreach (fusion_get_enabled_languages() as $lang => $lang_name) { echo "<a href='" . clean_request("lang=" . $lang, array(), FALSE) . "'>{$lang_name}</a>\n"; } echo "<i id='theme_search' class='fa fa-search fa-fw'></i>"; echo "</div>\n</header>\n"; // end header ---- // start nav --- echo showsublinks(); // end nav -- // Header Banner $banner_inclusion_url = explode(",", $theme_settings['main_banner_url']); if (in_array(START_PAGE, $banner_inclusion_url)) { // get the results of the banner $result = dbquery("SELECT * FROM " . DB_DEBONAIR . " where banner_language='" . LANGUAGE . "' order by banner_order ASC"); // show banner echo "<aside class='banner'>\n"; echo "<div id='slider-container'>\n"; echo "<ul id='slider-box'>\n"; if (dbrows($result)) { while ($data = dbarray($result)) { echo "<!--Slide " . $data['banner_id'] . "-->\n"; echo "<li>\n"; echo "<div class='inner-banner'>\n"; echo "<div class='slider-corner'></div>\n"; if ($data['banner_image']) { echo "<div class='screen'><img src='" . THEME . "upload/" . $data['banner_image'] . "' alt='" . $data['banner_subject'] . "'/></div>\n"; } if ($data['banner_description'] !== "") { echo "<h2>" . $data['banner_subject'] . "</h2>\n"; echo "<p>" . parseubb(parsesmileys($data['banner_description'])) . "</p>\n"; } else { echo "<h1>" . $data['banner_subject'] . "</h1>\n"; } if ($data['banner_link'] !== "") { echo "<div class='button-position'>\n"; echo "<div class='btn-group'><a class='btn btn-success btn-sm' href='" . BASEDIR . $data['banner_link'] . "'>Learn more</a></div>\n"; echo "</div>\n"; } echo "</div>\n</li>\n"; echo "<!--End slide " . $data['banner_id'] . "-->\n"; } } else { echo "<!--Slide Welcome-->\n\t\t\t <li>\n\t\t\t <div class='welcome-banner'><div class='slider-corner'></div>\n\t\t\t <h1>" . $locale['debonair_0500'] . "</h1>\n\t\t\t <h2>" . $locale['debonair_0501'] . "</h2>\n\t\t\t </div>\n\t\t\t </li>\n\t\t\t <!-- End Slide Welcome-->\n\t\t \t"; echo "<!--Slide Customize-->\n\t\t\t <li>\n\t\t\t <div class='welcome-banner-2'><div class='slider-corner'></div>\n\t\t\t <h1>" . $locale['debonair_0502'] . "</h1>\n\t\t\t <h2>" . $locale['debonair_0502a'] . "</h2>\n\t\t\t <div class='button-position'>\n\t\t\t <p>" . $locale['debonair_0502c'] . "</p>\n\t\t\t </div></div>\n\t\t\t </li>\n\t\t\t <!-- End Slide Customize-->\n\t\t \t"; } echo "</ul>\n"; echo "<!-- Start Slider Nav-->\n<div class='slide-pager-container'>\n<div id='slide-pager'></div>\n</div>\n<!-- End Slider Nav-->\n</div>\n"; echo "</aside>\n"; // upperbanner echo "<div class='lower-banner'>\n<div class='row holder'>\n"; // 3 columns for ($i = 1; $i <= 3; $i++) { echo "<div class='col-xs-12 col-sm-4 col'>\n"; if ($theme_settings['ubanner_col_' . $i] !== "") { $data = uncomposeSelection($theme_settings['ubanner_col_' . $i]); if (!empty($data['selected']) && multilang_table("NS") ? !empty($data['options'][LANGUAGE]) : "") { switch ($data['selected']) { case "news": if (db_exists(DB_NEWS) && isset($data['options'][LANGUAGE])) { $result = dbquery("select * from " . DB_NEWS . "\n\t\t\t\t\t\t\t\t\t\t\t" . (multilang_table("NS") ? "WHERE news_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('news_visibility') . "\n\t\t\t\t\t\t\t\t\t\t\tAND (news_start='0'||news_start<=" . time() . ")\n\t\t\t\t\t\t\t\t\t\t\tAND (news_end='0'||news_end>=" . time() . ") AND news_draft='0'\n\t\t\t\t\t\t\t\t\t\t\tAND news_id='" . $data['options'][LANGUAGE] . "'\n\t\t\t\t\t\t\t\t\t\t\t"); if (dbrows($result) > 0) { $data = dbarray($result); echo "<h2 class='icon1'>" . $data['news_subject'] . "</h2>\n"; echo "<p>" . fusion_first_words(parse_textarea($data['news_news']), 50) . "</p>\n"; echo "<div class='link-holder'><a href='" . INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n"; } else { echo "<p>" . $locale['debonair_0600'] . "</p>\n"; } } else { echo "<p>" . $locale['debonair_0408'] . "</p>\n"; } break; case "blog": if (db_exists(DB_BLOG) && isset($data['options'][LANGUAGE])) { $result = dbquery("select * from " . DB_BLOG . "\n\t\t\t\t\t\t\t\t\t\t\t" . (multilang_table("BL") ? "WHERE blog_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('blog_visibility') . "\n\t\t\t\t\t\t\t\t\t\t\tAND (blog_start='0'||blog_start<=" . time() . ")\n\t\t\t\t\t\t\t\t\t\t\tAND (blog_end='0'||blog_end>=" . time() . ") AND blog_draft='0'\n\t\t\t\t\t\t\t\t\t\t\tAND blog_id='" . $data['options'][LANGUAGE] . "'\n\t\t\t\t\t\t\t\t\t\t\t"); if (dbrows($result) > 0) { $data = dbarray($result); echo "<h2 class='icon2'>" . $data['blog_subject'] . "</h2>\n"; echo "<p>" . fusion_first_words(parse_textarea($data['blog_blog']), 50) . "</p>\n"; echo "<div class='link-holder'><a href='" . INFUSIONS . "blog/blog.php?readmore=" . $data['blog_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n"; } else { echo "<p>" . $locale['debonair_0600'] . "</p>\n"; } } else { echo "<p>" . $locale['debonair_0405'] . "</p>\n"; } break; case "articles": if (db_exists(DB_ARTICLES) && isset($data['options'][LANGUAGE])) { $result = dbquery("SELECT ta.article_id, ta.article_subject, ta.article_snippet, ta.article_article, ta.article_keywords, ta.article_breaks,\n\t\t\t\t\t\t\t\tta.article_datestamp, ta.article_reads, ta.article_allow_comments, ta.article_allow_ratings,\n\t\t\t\t\t\t\t\ttac.article_cat_id, tac.article_cat_name\n\t\t\t\t\t\t\t\tFROM " . DB_ARTICLES . " ta\n\t\t\t\t\t\t\t\tINNER JOIN " . DB_ARTICLE_CATS . " tac ON ta.article_cat=tac.article_cat_id\n\t\t\t\t\t\t\t\t" . (multilang_table("AR") ? "WHERE tac.article_cat_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('article_visibility') . " AND article_id='" . $data['options'][LANGUAGE] . "' AND article_draft='0'"); if (dbrows($result) > 0) { $data = dbarray($result); echo "<h2 class='icon2'>" . $data['article_subject'] . "</h2>\n"; echo "<p>" . fusion_first_words(parse_textarea($data['article_subject']), 50) . "</p>\n"; echo "<div class='link-holder'><a href='" . INFUSIONS . "articles/articles.php?article_id=" . $data['article_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n"; } else { echo "<p>" . $locale['debonair_0600'] . "</p>\n"; } } else { echo "<p>" . $locale['debonair_0415'] . "</p>\n"; } break; case "cp": $result = dbquery("SELECT page_id, page_title, page_content\n\t\t\t\t\t\t\t\t\t\tfrom " . DB_CUSTOM_PAGES . "\n\t\t\t\t\t\t\t\t\t\tWHERE " . groupaccess('page_access') . "\n\t\t\t\t\t\t\t\t\t\tAND page_id='" . $data['options'][LANGUAGE] . "'"); if (dbrows($result) > 0) { $data = dbarray($result); echo "<h2 class='icon3'>" . $data['page_title'] . "</h2>\n"; echo "<p>" . fusion_first_words(parse_textarea($data['page_content']), 50) . "</p>\n"; echo "<div class='link-holder'><a href='" . BASEDIR . "viewpage.php?page_id=" . $data['page_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n"; } else { echo "<p>" . $locale['debonair_0600'] . "</p>\n"; } break; } } } else { echo "<h2 class='icon3'>" . $locale['debonair_0601'] . "</h2>\n"; echo "<p>" . $locale['debonair_0602'] . "</p>\n"; } echo "</div>\n"; } echo "</div>\n</div>\n"; } else { // show simple header echo "<aside class='banner m-b-15'>\n"; echo "<div class='page-header'>\n"; if (!iMEMBER) { echo "<a href='" . BASEDIR . "login.php' class='btn btn-sm btn-success pull-right'><span>" . $locale['register'] . "/" . $locale['login'] . "</span></a>"; } else { echo "<a href='" . fusion_get_settings("opening_page") . "?logout=yes' class='btn btn-sm btn-success pull-right'><span>" . $locale['logout'] . "</span></a>"; } echo "<div class='holder p-b-20 p-r-10'>\n"; echo "<div class='clearfix'>\n"; echo "<div class='pull-left m-r-5'><span class='fa fa-map-marker fa-fw'></i>\n</span></div>"; echo "<div class='overflow-hide'>\n"; echo render_breadcrumbs(); echo "</div>\n</div>\n"; $title_instance = \PHPFusion\BreadCrumbs::getInstance(); $reference = $title_instance->toArray(); // this will give you the whole breadcrumb array $debonAirTitle = !empty($reference) ? end($reference) : array('title' => $locale['home']); echo "<h1>" . $debonAirTitle['title'] . "</h1>\n"; echo "</div>\n</div>\n"; echo "</aside>\n"; } // end of banner // Start of Inner page structure for Bootstrap $side_grid_settings = array('desktop_size' => 2, 'laptop_size' => 3, 'tablet_size' => 3, 'phone_size' => 4); $notices = getNotices(); if ($notices) { echo renderNotices($notices); } echo "<section class='main-content'>\n<div class='main-content-inner'>\n"; // now have to do bootstrap calculation // row 1 - go for max width if (defined('AU_CENTER') && AU_CENTER) { echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . AU_CENTER . "</div>\n</div>"; } // row 2 - fluid setitngs depending on panel appearances echo "<div class='row'>\n"; if (defined('LEFT') && LEFT) { echo "<div class='" . html_prefix($side_grid_settings) . "'>\n" . LEFT . "</div>\n"; } // column left echo "<div class='" . html_prefix(center_grid_settings($side_grid_settings)) . "'>\n"; echo U_CENTER . CONTENT . L_CENTER . "</div>\n"; // column center if (defined('RIGHT') && RIGHT) { echo "<div class='" . html_prefix($side_grid_settings) . "'>\n" . RIGHT . "</div>\n"; } // column right echo "</div>\n"; // row 3 if (defined('BL_CENTER') && BL_CENTER) { echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . BL_CENTER . "</div>\n</div>"; } echo "</div>\n</section>\n"; echo "</div>\n"; // end body-inner-wrap // Begin Footer echo "<section class='lower-section'>\n"; echo "<div class='row col-holder'>\n"; // column 1 echo "<div class='col-xs-12 col-sm-3'>\n"; if ($theme_settings['lbanner_col_1'] !== "") { include "include/" . $theme_settings['lbanner_col_1']; } // column 2 echo "</div>\n<div class='col-xs-12 col-sm-3'>\n"; if ($theme_settings['lbanner_col_2'] !== "") { include "include/" . $theme_settings['lbanner_col_2']; } // column 3 echo "</div>\n<div class='col-xs-12 col-sm-3'>\n"; if ($theme_settings['lbanner_col_3'] !== "") { include "include/" . $theme_settings['lbanner_col_3']; } // column 4 echo "</div>\n<div class='col-xs-12 col-sm-3'>\n"; if ($theme_settings['lbanner_col_4'] !== "") { include "include/" . $theme_settings['lbanner_col_4']; } echo "</div>\n"; echo "</div>\n"; // start bottom echo "<div class='bottom'>\n"; if ($theme_settings['facebook_url'] || $theme_settings['twitter_url']) { echo "<!-- Start Follow Us Links -->\n<div class='follow-box'> <strong>" . $locale['debonair_0510'] . "</strong><ul>\n"; if ($theme_settings['facebook_url']) { echo "<li><a href='" . $theme_settings['facebook_url'] . "' class='facebook'>" . $locale['debonair_0511'] . "</a></li>\n"; } if ($theme_settings['twitter_url']) { echo "<li><a href='" . $theme_settings['twitter_url'] . "' class='twitter'>" . $locale['debonair_0512'] . "</a></li>\n"; } echo "</ul></div><!-- End Follow Us Links -->\n"; } echo "<div class='txt-holder'><p><small>" . str_replace("<br />", "", showcopyright()) . "</small></p></div>\n\t</div>\n</div>"; echo "</section>\n"; echo "</div>\n <!--End Wrapper Sub Elements -->"; echo "\n\t<div id='footer'>\n <!--Start Footer Nav -->\n <div class='footer-nav'>\n <div class='w1'>\n <div class='w2'>\n <ul>\n <li><a href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . $locale['debonair_0505'] . "</a></li>\n\t\t\t\t <li><a href='" . BASEDIR . "contact.php'>" . $locale['debonair_0506'] . "</a></li>\n"; if (db_exists(DB_ARTICLES)) { echo "<li><a href='" . INFUSIONS . "articles/articles.php'>" . $locale['debonair_0507'] . "</a></li>\n"; } if (db_exists(DB_NEWS)) { echo "<li><a href='" . INFUSIONS . "news/news.php'>" . $locale['debonair_0508'] . "</a></li>\n"; } if (db_exists(DB_BLOG)) { echo "<li><a href='" . INFUSIONS . "blog/blog.php'>" . $locale['debonair_0509'] . "</a></li>\n"; } echo "</ul>\n </div>\n </div>\n </div>\n <!--End Footer Nav -->\n </div>\n\t"; echo '<script type="text/javascript">Cufon.now();</script>'; }
| written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } open_grid('section-3', 1); echo AU_CENTER ? "<div class='au-content'>" . AU_CENTER . "</div>\n" : ''; echo "<div class='row'>\n"; if (LEFT !== '' or RIGHT !== '') { echo "<div class='hidden-xs col-sm-3 col-md-3 col-lg-3 leftbar'>\n"; echo RIGHT . LEFT; echo "</div>\n"; } echo "<div class='" . how_to_calculate_bootstrap_span() . "main-content'>\n"; // Get all notices, we also include notices that are meant to be displayed on all pages echo renderNotices(getNotices(array('all', FUSION_SELF))); echo U_CENTER; echo CONTENT; echo L_CENTER; echo "</div>\n"; echo BL_CENTER ? "<div class='bl-content'>" . BL_CENTER . "</div>\n" : ''; echo "</div>\n"; close_grid(1); /** * You can have many formula to it.. * @return string */ function how_to_calculate_bootstrap_span() { $default_side_span_sm = 3; // <---- change this to change the sidebar width on tablet