'; // Please don't index these Mr Robot. if (!empty($context['robot_no_index'])) echo ' '; // Present a canonical url for search engines to prevent duplicate content in their indices. if (!empty($context['canonical_url'])) echo ' '; // The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly. 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']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged'])) 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']); } // Some browsers need an extra stylesheet due to bugs/compatibility issues. foreach (array('ie7', 'ie6', 'firefox', 'webkit') as $cssfix) if ($context['browser']['is_' . $cssfix]) echo ' '; // RTL languages require an additional stylesheet. if ($context['right_to_left']) echo ' '; echo ' '; // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers']; echo ' '; } function template_body_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
',template_menu(),'
'; theme_linktree2(); } function template_body_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 ' '; } function template_html_below() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree2() { global $context, $settings, $options; 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. 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 ' » '; } echo '
'; } function theme_linktree() { return; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt; // Show the start of the tab section. echo ' '; } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $custom_td = '') { global $settings, $context, $txt, $scripturl; // Create the buttons... $buttons = array(); foreach ($button_strip as $key => $value) if (!isset($value['test']) || !empty($context[$value['test']])) $buttons[] = '' . $txt[$value['text']] . ''; if (empty($buttons)) return ''; // Make the last one, as easy as possible. $buttons[count($buttons) - 1] = str_replace('', '', $buttons[count($buttons) - 1]); echo '
  • ', implode('
  • ', $buttons), '
'; } ?>