示例#1
0
 /**
  * Displays Septenary Footer
  */
 protected function displayFooter()
 {
     $locale = self::$locale;
     $settings = fusion_get_settings();
     $this->open_grid('footer', true);
     echo "<div class='footer-row row'>\n";
     echo "<div class='hidden-xs col-sm-3 col-md-3 col-lg-3'>\n";
     echo "<img style='width:80%;' alt='" . $locale['sept_011'] . "' class='img-responsive' src='" . THEME . "images/htmlcss.jpg' />";
     echo "</div>\n";
     echo "<div class='col-xs-12 col-sm-9 col-md-9 col-lg-9 footer-right-col'>\n";
     echo "<div class='pull-right'>\n";
     echo "<a href='#top'><i style='font-size:50px;' class='entypo mid-opacity up-circled'></i></a>\n";
     echo "</div>\n";
     echo "<p class='text-left'>" . stripslashes(strip_tags($settings['footer'])) . "</p>\n\t    <p>" . showcopyright() . "</p>\n\t    <p>Septenary Theme by <a href='https://www.php-fusion.co.uk/profile.php?lookup=3674' target='_blank'>Craig</a> and <a href='https://www.php-fusion.co.uk/profile.php?lookup=16331' target='_blank'>Chan</a></p>\n\t    <p>";
     if ($settings['visitorcounter_enabled']) {
         echo "<p>" . showcounter() . "</p>\n";
     }
     if ($settings['rendertime_enabled'] == '1' || $settings['rendertime_enabled'] == '2') {
         // Make showing of queries and memory usage separate settings
         echo showrendertime();
         echo showMemoryUsage();
     }
     $footer_errors = showFooterErrors();
     if (!empty($footer_errors)) {
         echo "<div>\n" . showFooterErrors() . "</div>\n";
     }
     echo "</p>\n";
     echo "</div>\n";
     echo "</div>\n";
     $this->close_grid(1);
 }
示例#2
0
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 />";
    	}*/
}
示例#3
0
function render_page($license = false)
{
    add_handler("theme_output");
    global $settings, $main_style, $locale, $colour_switcher, $mysql_queries_time;
    //Wrapper
    echo "<div class='wrapper' style='width:" . THEME_WIDTH . ";'>\n";
    //Header
    echo "<div class='main-header'>\n" . showbanners() . "</div>\n";
    echo "<div class='sub-header clearfix floatfix'>" . showsublinks("", "") . "</div>\n";
    // Content
    echo "<div class='main-bg'>\n";
    if (LEFT) {
        echo "<div id='side-left'>" . LEFT . "</div>\n";
    }
    if (RIGHT) {
        echo "<div id='side-right'>" . RIGHT . "</div>\n";
    }
    echo "<div id='side-center' class='" . $main_style . "'>";
    echo "<div class='upper'>" . U_CENTER . "</div>\n";
    echo "<div class='content'>" . CONTENT . "</div>\n";
    echo "<div class='lower'>" . L_CENTER . "</div>\n";
    echo "</div>\n";
    echo "<div class='clear'></div>\n";
    echo "</div>\n";
    //Footer
    echo "<div class='sub-footer-top'></div>\n";
    echo "<div class='sub-footer clearfix'>\n";
    if ($settings['rendertime_enabled'] == 1 || $settings['rendertime_enabled'] == 2 && iADMIN) {
        echo "<div class='flleft' style='padding-top: 8px;'>" . showrendertime() . "<br />" . showcounter() . "</div>\n";
    } else {
        echo "<div class='flleft' style='padding: 15px 0 6px 0;'>" . showcounter() . "</div>\n";
    }
    //echo "<div class='flright' style='padding: 15px 0 6px 0;'>".showsubdate()."</div>\n";
    echo "<div style='padding: 15px 0 6px 0;'>" . $colour_switcher->makeForm("flright") . "</div>\n";
    echo "</div>\n";
    echo "<div class='main-footer clearfix'>\n";
    echo "<div class='flleft'>\n";
    if (!$license) {
        echo showcopyright();
    }
    echo "<br />Theme designed by <a href='http://www.agxthemes.com'>Falcon</a></div>\n";
    echo "<div class='flright' style='width: 50%; text-align: right;'>" . stripslashes($settings['footer']) . "</div>\n";
    echo "</div>\n";
    echo "</div>\n";
}
示例#4
0
function render_page($license = false)
{
    global $settings, $main_style, $locale, $mysql_queries_time;
    // Container Start
    echo "<div id='container'>\n";
    // Top Nav
    echo "<div id='top-nav'>" . showsublinks("") . "</div>\n";
    // Header
    echo "<div id='header'><a href='" . BASEDIR . "index.php'>" . $settings['sitename'] . "</a></div>\n";
    // Search
    echo "<div id='search'>\n";
    echo "<form action='" . BASEDIR . "search.php' method='get'>\n";
    echo "<input type='text' class='search' name='stext' />";
    echo "<input type='submit' class='submit' name='search' value='' />";
    echo "</form>\n";
    echo "</div>\n";
    echo "<div class='clear'></div>\n";
    // Content
    echo "<div id='conent'>\n";
    if (LEFT) {
        echo "<div id='side-left'>" . LEFT . "</div>\n";
    }
    if (RIGHT) {
        echo "<div id='side-right'>" . RIGHT . "</div>\n";
    }
    echo "<div id='side-center' class='" . $main_style . "'>";
    echo "<div class='upper'>" . U_CENTER . "</div>\n";
    echo "<div class='content'>" . CONTENT . "</div>\n";
    echo "<div class='lower'>" . L_CENTER . "</div>\n";
    echo "</div>\n";
    echo "<div class='clear'></div>\n";
    echo "</div>\n";
    //Footer
    echo "<div id='footer' class='" . $main_style . "'>\n";
    echo "<div id='copyright-site'>" . stripslashes($settings['footer']) . "</div>\n";
    if (!$license) {
        echo "<div id='copyright-fusion'>" . showcopyright() . "</div>\n";
    }
    echo "</div>\n";
    echo "<!-- " . showrendertime() . " -->";
    // Container End
    echo "</div>\n";
}
示例#5
0
文件: theme.php 项目: dioda/phpfusion
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'>" . showsubdate() . "</td>\n";
    echo "<td class='sub-header-right'></td>\n";
    echo "</tr>\n</table>\n";
    //Content
    echo "<table cellpadding='0' cellspacing='0' width='100%' class='{$main_style}'>\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 "</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 />";
    	}*/
}
示例#6
0
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";
}
示例#7
0
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 . "&amp;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 &copy; " . 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");
}
示例#8
0
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 . "&amp;pagenum=0'>" . $locale['ac00'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac01'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=1'>" . $locale['ac01'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac02'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=2'>" . $locale['ac02'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac03'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=3'>" . $locale['ac03'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac04'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=4'>" . $locale['ac04'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac05'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;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 . "&amp;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 &copy; " . 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");
}
示例#9
0
}
if (file_exists(THEME . "locale/" . $settings['locale'] . ".php")) {
    include THEME . "locale/" . $settings['locale'] . ".php";
} else {
    include THEME . "locale/English.php";
}
global $aidlink, $locale;
echo open_grid('footer', 1);
echo "<div class='footer-row row'>\n";
echo "<div class='col-xs-12 col-sm-3 col-md-3 col-lg-3'>\n";
echo "<img style='width:80%;' class='img-responsive' src='" . THEME . "images/htmlcss.jpg'>";
echo "</div>\n";
echo "<div class='col-xs-12 col-sm-9 col-md-9 col-lg-9 footer-right-col'>\n";
echo "<div class='pull-right'>\n";
echo "<h1><a href='#top'><i style='font-size:50px;' class='entypo mid-opacity up-circled'></i></a></h1>\n";
echo "</div>\n";
echo "<p class='text-left'>" . stripslashes(strip_tags($settings['footer'])) . "</p>\r\n\t<p>" . showcopyright() . "</p>\r\n\t<p>Septenary Theme by <a href='http://www.phpfusionmods.co.uk' target='_blank'>Craig</a> and <a href='http://www.guildsquare.com' target='_blank'>Hien</a></p>\r\n\t<p>";
if ($settings['visitorcounter_enabled']) {
    echo "" . showcounter();
}
if ($settings['rendertime_enabled'] == '1' || $settings['rendertime_enabled'] == '2') {
    if ($settings['visitorcounter_enabled']) {
        echo " | ";
    }
    echo showrendertime();
}
echo "</p>\n";
echo "</div>\n";
echo "</div>\n";
echo close_grid(1);
add_to_footer("<script type='text/javascript'>\r\nfunction ValidateForm(frm) {\r\n\tif(frm.stext.value=='') {\r\n\t\talert('You Must Enter Something In The Search!');\r\n\treturn false;\r\n\t}\r\n\tif(frm.stext.value.length < 3){\r\n\t\talert('Search text must be at least 3 characters long!');\r\n\treturn false;\r\n\t}\r\n}\r\n</script>");
示例#10
0
function render_page()
{
    global $aidlink, $locale, $settings, $userdata;
    add_handler("theme_head_output");
    ?>
<div id="content" class="container_24">
	<div id="header">
		<div id="logo" class="grid_6">
		<?php 
    echo showbanners();
    ?>
		</div><!-- /logo -->
		<div id="nav" class="grid_16 push_1">
			<?php 
    navigation();
    ?>
		</div><!-- /nav -->
		<div class="grid_9 hinfo">
			<h4>National Support Network</h4>
			<p id="profile"></p>
		</div><!-- /nss -->
		<div class="grid_6 push_1 hinfo">
			<h4>Search the site</h4>
			<form action="/search.php" id="search" method="get" role="search">
				<div>
					<label for="s" class="screen-reader-text">Search for:</label>
					<input type="text" id="s" name="stext" value="">
					<input type="submit" value="Search" id="searchsubmit">
				</div>
			</form>
		</div><!-- /search -->
		<div class="grid_6 push_2 userinfo hinfo">
			<?php 
    userinfo();
    ?>
		</div><!-- /userinfo --> 
	</div><!-- /header -->
	<div id="main" class="grid_24">
	<?php 
    echo U_CENTER;
    ?>
 <?php 
    echo CONTENT;
    ?>
 <?php 
    echo L_CENTER;
    ?>
	</div><!-- /main --> 
</div>
<!-- /content -->
<div id="footer">
	<div class="container_24" style="padding-bottom:20px;">
		<?php 
    navigation(false);
    ?>
		<div class="grid_6 push_1">
			<?php 
    include INFUSIONS . "admin_attention_panel/admin_attention_bifrost.php";
    ?>
		</div>
		<div id="subfooter" class="grid_24">
			<small style="padding:10px 0">Powered by PHP-Fusion copyright &copy; 2002 - <?php 
    echo date("Y");
    ?>
 by Nick Jones. Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html' target="_blank" rel="nofollow">GNU Affero GPL</a> v3.</small>
		</div><!-- /subfooter --> 
		<div class="clearfix"></div>
	</div>
</div><!-- /footer -->
<?php 
    if (iGUEST) {
        ?>
<div id="modal-content" style="display:none">
	<div id="modal-title">Welcome! Please login below.</div>
	<div class="close"><a href="#" class="simplemodal-close">x</a></div>
	<div id="modal-data">
		<form action="<?php 
        echo FUSION_SELF;
        ?>
" method="post" name="loginform">
			<fieldset>
				<legend>Your Login details</legend>
				<label for="user_name"><strong>Username:</strong></label>
				<input type="text" name="user_name" id="user_name" size="30" /><br />
				<label for="user_pass"><strong>Password:</strong></label>
				<input type="password" name="user_pass" id="user_pass" size="30" /><br />
				<label for="remember_me"><strong>Remember Me:</strong></label>
				<input type="checkbox" value="y" name="remember_me" id="remember_me" /><br />
			</fieldset>
			<h3>Forgotten your password?</h3>
			<p>Request a new one <a href="/lostpassword.php">here</a>.</p>
			<p><button type="submit" name="login" class="button"><span>Login</span></button> <a href="#" class="simplemodal-close" style="margin-left:10px">Cancel</a> <span>(or press ESC)</span></p>
		</form>
	</div>
</div>
<?php 
    }
    get_footer_tags();
    echo (DEBUG ? "<div id='debug'><strong>Debug is on </strong>" : "<!-- ") . showrendertime() . (DEBUG ? "</div><!-- /debug -->" : " -->") . "\n";
}