', 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 ' '; //Conditional browser specific CSS. Throw it in their face so they see how stupid their browsers are :mad: if ($context['browser']['is_ie6']) echo' '; if ($context['browser']['is_ie7']) echo''; if ($context['browser']['is_opera']) echo''; if ($context['browser']['is_safari']) echo''; 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 ' ',template_menu(),' '; // The main content should go here. echo'
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt; echo '
hi
'; echo ''; // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere! echo ' '; // 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, and to sneakily halve the real page generation time =P 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'; } echo '
'; // Show the [site] button. echo 'Home'; // Show the [forum] button. echo 'Forum'; // Show the [help] button. //echo '' , $txt[119] , ''; // How about the [search] button? if ($context['allow_search']) echo '' , $txt[182] , ''; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo '' , $txt[2] , ''; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo '' , $txt[79] , ''; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' : '' , '' , $txt['pm_short'] , '', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '' , $current_action == 'pm' ? '' : ''; // The [calendar]! if ($context['allow_calendar']) //echo '' , $txt['calendar24'] , ''; // the [member] list button if ($context['allow_memberlist']) //echo '' , $txt[331] , ''; // If the user is a guest, show [login] button. if ($context['user']['is_guest']) echo '' , $txt[34] , ''; // If the user is a guest, also show [register] button. if ($context['user']['is_guest']) echo '' , $txt[97] , ''; // Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo '' , $txt[108] , ''; echo '
'; //sidebar toggle echo ' '; 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) , '  '; } ?>