', 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'], ' '; echo '
'; template_menu(); echo '

'; // user stuff echo '
'; if (!empty($context['user']['avatar'])) echo '
' . $context['user']['avatar']['image'].'
'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) { echo ' ', $txt['hello_member'], ' ', $context['user']['name'], ''; // Only tell them about their messages if they can read their messages! if ($context['allow_pm']) echo '
', $txt[152], ' ', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']; echo '.
'; // Is the forum in maintenance mode? if ($context['in_maintenance'] && $context['user']['is_admin']) echo ' ', $txt[616], '
'; // Are there any members waiting for approval? if (!empty($context['unapproved_members'])) echo ' ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' ', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], ' ', $txt['approve_members_waiting'], '
'; // Show the total time logged in? if (!empty($context['user']['total_time_logged_in'])) { echo ' ', $txt['totalTimeLogged1']; // If days is just zero, don't bother to show it. if ($context['user']['total_time_logged_in']['days'] > 0) echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2']; // Same with hours - only show it if it's above zero. if ($context['user']['total_time_logged_in']['hours'] > 0) echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3']; // But, let's always show minutes - Time wasted here: 0 minutes ;). echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
'; } echo ' ', $txt['unread_since_visit'], '
', $txt['show_unread_replies'], '
', $context['current_time']; } // Otherwise they're a guest - so politely ask them to register or login. else { echo ' ', $txt['welcome_guest'], '
', $context['current_time'], '

', $txt['smf52'], '
'; } echo '
', $txt[182], '
    ', $txt['smf298'], ' '; // Search within current topic? if (!empty($context['current_topic'])) echo ' '; // If we're on a certain board, limit it to this board ;). elseif (!empty($context['current_board'])) echo ' '; echo '
'; // Show a random news item? (or you could pick one from news_lines...) if (!empty($settings['my_sidebar_title']) && !empty($settings['my_sidebar'])) echo '
'.$settings['my_sidebar_title'].'
', $settings['my_sidebar'] , '
'; // Show a random news item? (or you could pick one from news_lines...) if (!empty($settings['enable_news'])) echo '
News
', $context['random_news_line'], '
'; // The "key stats" box. echo '
Stats
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '
', $txt[656], ': ', $context['common_stats']['latest_member']['link'], '
'; echo '
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt , $user_info , $modSettings; // 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 '
'; // bottom stuff theme_copyright(); // Show the load time? if ($context['show_load_time']) echo ' ', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], ''; echo '
Amber design by Bloc | XHTML | CSS
'; echo '
'; echo ' '; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { global $context, $settings, $options; // Folder style or inline? Inline has a smaller font. 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 the | | |-[] Folders. if (!$settings['linktree_inline']) { if ($link_num > 0) echo str_repeat('| ', $link_num - 1), '|-'; echo '+  '; } // 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. echo $settings['linktree_link'] && isset($tree['url']) ? '' . $tree['name'] . '' : $tree['name']; // 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 $settings['linktree_inline'] ? '  |  ' : '
'; } echo '
'; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt; $ca = 'home'; // find the action if(isset($_GET['action'])) { if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help'))) $ca = $_GET['action']; else $ca = ''; // admin section.... if (in_array($_GET['action'],array('admin','modifyModSettings','modsettings','maintain','reports','viewErrorLog'))) $ca = 'admin'; } // messageindex/display then? // if(isset($_GET['topic']) || isset($_GET['board'])) // $ca = ''; echo ''; $tab1 = ''; echo $tab1, $ca== 'help' ? '1' : '2' , '">'.$txt[119]. ''; // How about the [search] button? if ($context['allow_search']) echo $tab1, $ca== 'search' ? '1' : '2' , '">'.$txt[182]. ''; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo $tab1, $ca== 'admin' ? '1' : '2' , '">'.$txt[2]. ''; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo $tab1, $ca== 'profile' ? '1' : '2' , '">'.$txt[467]. ''; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo $tab1, $ca== 'pm' ? '1' : '2' , '">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , ''; // The [calendar]! if ($context['allow_calendar']) echo $tab1, $ca== 'calendar' ? '1' : '2' , '">'.$txt['calendar24']. ''; // If the user is a guest, show [login] and [register] buttons. if ($context['user']['is_guest']) { echo $tab1, $ca== 'login' ? '1' : '2' , '">'.$txt[34]. ''; echo $tab1, $ca== 'register' ? '1' : '2' , '">'.$txt[97]. ''; } // Otherwise, they might want to [logout]... else echo $tab1, $ca== 'logout' ? '1' : '2' , '">'.$txt[108]. ''; echo '
'.$txt[103]. '
'; } // Generate a strip of buttons, out of buttons. function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '') { global $settings, $buttons, $context, $txt, $scripturl; if (empty($button_strip)) return ''; // 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] = '' . ($settings['use_image_buttons'] ? '' . $txt[$value['text']] . '' : $txt[$value['text']]) . ''; $button_strip[$key] = $buttons[$key]; } echo ' ', implode($context['menu_separator'], $button_strip) , ''; } ?>