|
@@ -40,7 +40,9 @@
|
|
|
*/
|
|
|
function template_init()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt;
|
|
|
+ global $settings;
|
|
|
+
|
|
|
+ /* $context, $options and $txt may be available for use, but may not be fully populated yet. */
|
|
|
|
|
|
/* Use images from default theme when using templates from the default theme?
|
|
|
if this is 'always', images from the default theme will be used.
|
|
@@ -54,7 +56,7 @@ function template_init()
|
|
|
$settings['doctype'] = 'xhtml';
|
|
|
|
|
|
// The version this template/theme is for. This should probably be the version of SMF it was created for.
|
|
|
- $settings['theme_version'] = '2.0';
|
|
|
+ $settings['theme_version'] = '2.1';
|
|
|
|
|
|
// Use plain buttons - as opposed to text buttons?
|
|
|
$settings['use_buttons'] = true;
|
|
@@ -77,7 +79,7 @@ function template_init()
|
|
|
*/
|
|
|
function template_html_above()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $settings, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
// Show right to left and the character set for ease of translating.
|
|
|
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
@@ -176,7 +178,7 @@ function template_html_above()
|
|
|
|
|
|
function template_body_above()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $settings, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
// Wrapper div now echoes permanently for better layout options. h1 a is now target for "Go up" links.
|
|
|
echo '
|
|
@@ -354,7 +356,7 @@ function template_body_above()
|
|
|
|
|
|
function template_body_below()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $txt;
|
|
|
|
|
|
echo '
|
|
|
</div>
|
|
@@ -387,8 +389,6 @@ function template_body_below()
|
|
|
|
|
|
function template_html_below()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
-
|
|
|
// load in any javascipt that could be defered to the end of the page
|
|
|
template_javascript(true);
|
|
|
|
|
@@ -403,7 +403,7 @@ function template_html_below()
|
|
|
*/
|
|
|
function theme_linktree($force_show = false)
|
|
|
{
|
|
|
- global $context, $settings, $options, $shown_linktree, $scripturl, $txt;
|
|
|
+ global $context, $settings, $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))
|
|
@@ -461,7 +461,7 @@ function theme_linktree($force_show = false)
|
|
|
*/
|
|
|
function template_menu()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context;
|
|
|
|
|
|
echo '
|
|
|
<div id="main_menu">
|
|
@@ -528,7 +528,7 @@ function template_menu()
|
|
|
*/
|
|
|
function template_button_strip($button_strip, $direction = '', $strip_options = array())
|
|
|
{
|
|
|
- global $context, $txt, $scripturl;
|
|
|
+ global $context, $txt;
|
|
|
|
|
|
if (!is_array($strip_options))
|
|
|
$strip_options = array();
|