', empty($context['robot_no_index']) ? '' : ' ', ' ', $context['page_title'], ''; // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly. echo ' '; /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) echo ' '; // Show all the relative links, such as help, search, contents, and the like. echo ' '; // If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' '; // If we're viewing a topic, these should be the previous and next topics, respectively. if (!empty($context['current_topic'])) echo ' '; // If we're in a board, or a topic for that matter, the index will be the board's index. if (!empty($context['current_board'])) echo ' '; // We'll have to use the cookie to remember the header... if ($context['user']['is_guest']) $options['collapse_header'] = !empty($_COOKIE['upshrink']); // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], ' '; // the routine for the info center upshrink echo ' '; echo ' '; echo '
', site_menu() ,'
H *'; // TinyPortal if($context['TPortal']['leftbar']) echo ' L*'; if($context['TPortal']['rightbar']) echo ' R*'; // TinyPortal end echo '
' , member_bar() , ' ', template_menu(),'
' , theme_linktree2() , ' '; // TinyPortal integrated bars if($context['TPortal']['leftbar']) { echo ''; } echo ''; // TinyPortal integrated bars if($context['TPortal']['rightbar']){ echo ''; } echo '
'; if($context['TPortal']['centerbar']) echo '
' , TPortal_sidebar('center') , '
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt, $user_info; echo '
'; echo '
'; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree2() { global $context, $settings, $options; if(isset($context['TPortal']['boardnews']) && !isset($context['TPortal']['boardnews'][0]['options']['linktree'])) return; echo '
'; // Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { // Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before']; // Show the link, including a URL if it should have one. if ($link_num != count($context['linktree']) - 1) $bold=false; else $bold=true; echo $bold ? '' : '' , $settings['linktree_link'] && isset($tree['url']) ? '' . $tree['name'] . '' : $tree['name'] , $bold ? '' : '' ; // Show something after the link...? if (isset($tree['extra_after'])) echo $tree['extra_after']; // Don't show a separator for the last one. if ($link_num != count($context['linktree']) - 1) echo ' | '; } echo '
'; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { return; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt; // Work out where we currently are. $current_action = 'home'; $is_forum=true; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))){ $current_action = 'admin'; } if (in_array($context['current_action'], array('bugtracker','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin'))){ $current_action = $context['current_action']; } if ($context['current_action'] == 'search2'){ $current_action = 'search'; } if (isset($_GET['dl'])) $current_action = 'dlmanager'; if (isset($_GET['board']) || isset($_GET['topic'])){ $current_action = 'forum'; } if ($context['current_action'] == 'theme'){ $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin'; } // Are we using right-to-left orientation? if ($context['right_to_left']) { $first = 'last'; $last = 'first'; } else { $first = 'first'; $last = 'last'; } // check if the no-forum general variable is set if(isset($context['TPortal']['not_forum']) && $context['TPortal']['not_forum']) $is_forum=false; if($is_forum){ // Show the start of the tab section. echo ''; } } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (isset($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = '' . $txt[$value['text']] . ''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo '   ', implode('  |  ', $button_strip) , '  '; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function site_menu() { global $context, $settings, $options, $scripturl, $txt, $board; // Work out where we currently are. $current_action = 'home'; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))) $current_action = 'forum'; if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin'))) $current_action = 'forum'; if ($context['current_action'] == 'search2') $current_action = 'forum'; if (isset($_GET['dl'])) $current_action = 'dlmanager'; if (isset($_GET['board'])) $current_action = 'forum'; if ($context['current_action'] == 'theme') $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'forum' : 'forum'; echo ''; } function member_bar(){ global $context, $settings, $options, $scripturl, $txt; $ext='logo'; if($context['TPortal']['ca']=='home') $ext='logo.jpg'; elseif($context['TPortal']['ca']=='forum') $ext='logo.jpg'; elseif($context['TPortal']['ca']=='dlmanager') $ext='downloads.jpg'; echo ''; } // Generate a strip of buttons. function template_button_strip_mill($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (issaet($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = ''. ($custom_td!='' ? '<'.$custom_td.'>' : '') . $txt[$value['text']] . ($custom_td!='' ? '' : '') .''; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return ' '; echo implode('  |  ', $button_strip); } ?>