'); $menu_options = [ 'id' => 'main-menu', 'nav_class' => 'nav navbar-nav navbar-right primary', 'container_fluid' => TRUE, 'show_header' => ''.$settings['sitename'].'', 'grouping' => TRUE, 'links_per_page' => 10, 'html_pre_content' => $this->UserMenu() ]; echo SiteLinks::setSubLinks($menu_options)->showSubLinks(); if ($this->GetParam('container') == TRUE) { echo '
'; } echo defined('AU_CENTER') && AU_CENTER ? AU_CENTER : ''; echo showbanners(1); echo '
'; $content = ['sm' => 12, 'md' => 12, 'lg' => 12]; $left = ['sm' => 3, 'md' => 2, 'lg' => 2]; $right = ['sm' => 3, 'md' => 2, 'lg' => 2]; if (defined('LEFT') && LEFT && $this->GetParam('left') == TRUE) { $content['sm'] = $content['sm'] - $left['sm']; $content['md'] = $content['md'] - $left['md']; $content['lg'] = $content['lg'] - $left['lg']; } if (defined('RIGHT') && RIGHT && $this->GetParam('right') == TRUE || $this->GetParam('right_content')) { $content['sm'] = $content['sm'] - $right['sm']; $content['md'] = $content['md'] - $right['md']; $content['lg'] = $content['lg'] - $right['lg']; } if (defined('LEFT') && LEFT && $this->GetParam('left') == TRUE) { echo '
'; echo LEFT; echo '
'; } echo '
'; if ($this->GetParam('notices')) { echo renderNotices(getNotices(['all', FUSION_SELF])); } echo defined('U_CENTER') && U_CENTER ? U_CENTER : ''; echo CONTENT; echo defined('L_CENTER') && L_CENTER ? L_CENTER : ''; echo showbanners(2); echo '
'; if (defined('RIGHT') && RIGHT && $this->GetParam('right') == TRUE || $this->GetParam('right_content')) { echo '
'; echo $this->GetParam('right_content'); echo ($this->GetParam('right') == TRUE && defined('RIGHT') && RIGHT) ? RIGHT : ''; echo '
'; } echo '
'; echo defined('BL_CENTER') && BL_CENTER ? BL_CENTER : ''; if ($this->GetParam('container') == TRUE) { echo '
'; } $this->Footer(); } private function Footer() { $locale = fusion_get_locale('', MG_LOCALE); $settings = fusion_get_settings(); $theme_settings = get_theme_settings('Magazine'); echo ''; } private function UserMenu() { $locale = fusion_get_locale('', MG_LOCALE); $settings = fusion_get_settings(); $userdata = fusion_get_userdata(); $languages = fusion_get_enabled_languages(); if (iMEMBER) { $name = $locale['MG_001'].$userdata['user_name']; } else { $name = $locale['login'].($settings['enable_registration'] ? '/'.$locale['register'] : ''); } ob_start(); echo ''; $html = ob_get_contents(); ob_end_clean(); return $html; } }