', 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']); $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']); } // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], ' '; // the routine for the info center upshrink echo ' '; echo '
'; if (empty($settings['header_logo_url'])) echo ' ', $context['forum_name'], ''; else echo ' ', $context['forum_name'], ''; echo '
'; // display user name echo ' '; if($context['user']['is_logged']) echo ' '; // display the time echo '
', $txt['hello_member_ndt'], ' ', $context['user']['name'] , ' ' , $context['current_time'], ''; // this is the upshrink button for the user info section echo ' *
'; echo ' '; // Show a random news item? (or you could pick one from news_lines...) if (!empty($settings['enable_news'])) echo ' '; echo '
'; // Show the menu here, according to the menu sub template. template_menu(); // The main content should go here. echo '
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt; echo '
'; // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere! echo '
', $txt['powered_by_mysql'], ' ', $txt['powered_by_php'], ' ', theme_copyright(), ' ', $txt['valid_xhtml'], ' ', $txt['valid_css'], '
'; // Show the load time? if ($context['show_load_time']) echo ' ', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], ''; // This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough. if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox']) { // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself. echo ' '; } echo '
'; // The following will be used to let the user know that some AJAX process is running echo ' '; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { global $context, $settings, $options; echo ''; } // 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'; 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('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'))) $current_action = $context['current_action']; if ($context['current_action'] == 'search2') $current_action = 'search'; 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'; } // Show the start of the tab section. echo ' '; // Show the [home] button. echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'home' ? '' : ''; // Show the [help] button. echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'help' ? '' : ''; // How about the [search] button? if ($context['allow_search']) echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'search' ? '' : ''; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'admin' ? '' : ''; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'profile' ? '' : ''; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'pm' ? '' : ''; // The [calendar]! if ($context['allow_calendar']) echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'calendar' ? '' : ''; // the [member] list button if ($context['allow_memberlist']) echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'mlist' ? '' : ''; // If the user is a guest, show [login] button. if ($context['user']['is_guest']) echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'login' ? '' : ''; // If the user is a guest, also show [register] button. if ($context['user']['is_guest']) echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'register' ? '' : ''; // Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '' : '' , ' ' , $current_action == 'logout' ? '' : ''; // The end of tab section. echo '
   ' , $txt[103] , '    ' , $txt[119] , '    ' , $txt[182] , '    ' , $txt[2] , '    ' , $txt[79] , '    ' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '    ' , $txt['calendar24'] , '    ' , $txt[331] , '    ' , $txt[34] , '    ' , $txt[97] , '    ' , $txt[108] , '   
'; } // 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) , '  '; } ?>