'' . $txt['pages'] . '', 'previous_page' => '', 'current_page' => '%1$d ', 'page' => '%2$s ', 'expand_pages' => ' ... ', 'next_page' => '', 'extra_after' => '', ); // Allow css/js files to be disabled for this specific theme. // Add the identifier as an array key. IE array('smf_script'); Some external files might not add identifiers, on those cases SMF uses its filename as reference. if (!isset($settings['disable_files'])) $settings['disable_files'] = array(); } /** * The main sub template above the content. */ function template_html_above() { global $context, $scripturl, $txt, $modSettings; // Show right to left, the language code, and the character set for ease of translating. echo ' '; /* You don't need to manually load index.css, this will be set up for you. Note that RTL will also be loaded for you. To load other CSS and JS files you should use the functions loadCSSFile() and loadJavaScriptFile() respectively. This approach will let you take advantage of SMF's automatic CSS minimization and other benefits. You can, of course, manually add any other files you want after template_css() has been run. * Short example: - CSS: loadCSSFile('filename.css', array('minimize' => true)); - JS: loadJavaScriptFile('filename.js', array('minimize' => true)); You can also read more detailed usages of the parameters for these functions on the SMF wiki. * Themes: The most efficient way of writing multi themes is to use a master index.css plus variant.css files. If you've set them up properly (through $settings['theme_variants']), the variant files will be loaded for you automatically. Additionally, tweaking the CSS for the editor requires you to include a custom 'jquery.sceditor.theme.css' file in the css folder if you need it. * MODs: If you want to load CSS or JS files in here, the best way is to use the 'integrate_load_theme' hook for adding multiple files, or using 'integrate_pre_css_output', 'integrate_pre_javascript_output' for a single file. */ // load in any css from mods or themes so they can overwrite if wanted template_css(); // load in any javascript files from mods and themes template_javascript(); echo ' ', $context['page_title_html_safe'], ' '; // Content related meta tags, like description, keywords, Open Graph stuff, etc... foreach ($context['meta_tags'] as $meta_tag) { echo ' $meta_value) echo ' ', $meta_key, '="', $meta_value, '"'; echo '>'; } /* What is your Lollipop's color? Theme Authors, you can change the color here to make sure your theme's main color gets visible on tab */ 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 ' ', ($context['allow_search'] ? ' ' : ''); // 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['links']['next'])) echo ' '; if (!empty($context['links']['prev'])) 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 ' '; } /** * The upper part of the main template layer. This is the stuff that shows above the main forum content. */ function template_body_above() { global $context, $settings, $scripturl, $txt, $modSettings, $maintenance; // Liens pour accessibilité, invisible sans utiliser la navigation au clavier // menu du forum echo ''. $txt['khbb_link_main_menu'] .' '; // contenu du forum echo '' . $txt['khbb_link_content_section'] . ' '; // recherche du forum echo '' . $txt['khbb_link_search'] . ' '; echo '
'; // Wrapper div now echoes permanently for better layout options. h1 a is now target for "Go up" links. echo '
'; echo '
'; // début menu du haut. On reconstruit sauce maison. echo '
', $txt['mobile_user_menu'], '
'; echo ' '; // Fin menu theme_linktree(); // The main content should go here. echo '
'; } /** * The stuff shown immediately below the main content, including the footer */ function template_body_below() { global $context, $txt, $scripturl, $modSettings; echo '
'; // Show the footer with copyright, terms and help links. echo '
'; // There is now a global "Go to top" link at the right. echo ' '; echo '
'; echo '
'; } /** * This shows any deferred JavaScript and closes out the HTML */ function template_html_below() { // Load in any javascipt that could be deferred to the end of the page template_javascript(true); echo ' '; } /** * Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. * * @param bool $force_show Whether to force showing it even if settings say otherwise */ function theme_linktree($force_show = false) { global $context, $shown_linktree, $scripturl, $txt; // 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; echo '