'' . $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 '