'; } } // The main sub template above the content. function template_html_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Show right to left and the character set for ease of translating. echo ' '; // The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly. echo ' '; // Some browsers need an extra stylesheet due to bugs/compatibility issues. foreach (array('ie7', 'ie6', 'webkit') as $cssfix) if ($context['browser']['is_' . $cssfix]) echo ' '; // RTL languages require an additional stylesheet. if ($context['right_to_left']) echo ' '; // Here comes the JavaScript bits! echo ' '; echo ' ', !empty($context['meta_keywords']) ? ' ' : '', ' ', $context['page_title_html_safe'], ''; if(!empty($modSettings['favicon'])) echo ' '; // 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 ' '; // 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 ' '; // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers']; echo ' '; } function template_body_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Barre générale Khaganat include_once("/var/www/khanav/khnav.php"); // Fin Barre générale Khaganat--> echo !empty($settings['forum_width']) ? '
' :''; // La barre de connexion en haut echo '
'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) { echo '
'; // le bloc de titre echo ' '; // The main content should go here. echo '
'; // Custom banners and shoutboxes should be placed here, before the linktree. // Show the navigation tree. theme_linktree(); } function template_body_below() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere! echo ' ', !empty($settings['forum_width']) ? '
' : ''; } 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_linktree($force_show = false) { global $context, $settings, $options, $shown_linktree; // If linktree is empty, just return - also allow an override. if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show)) return; echo ' '; $shown_linktree = true; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt; echo ' '; } // Generate a strip of buttons. function template_button_strip($button_strip, $direction = 'top', $strip_options = array()) { global $settings, $context, $txt, $scripturl; if (!is_array($strip_options)) $strip_options = array(); // List the buttons in reverse order for RTL languages. if ($context['right_to_left']) $button_strip = array_reverse($button_strip, true); // Create the buttons... $buttons = array(); foreach ($button_strip as $key => $value) { if (!isset($value['test']) || !empty($context[$value['test']])) $buttons[] = '
  • ' . $txt[$value['text']] . '
  • '; } // No buttons? No button strip either. if (empty($buttons)) return; // Make the last one, as easy as possible. $buttons[count($buttons) - 1] = str_replace('', '', $buttons[count($buttons) - 1]); echo ' '; } ?>