HAKLAYAN HAKKI

// Initialize the template... mainly little settings. function template_init() { global $context, $settings, $options, $txt; /* Use images from default theme when using templates from the default theme? if this is 'always', images from the default theme will be used. if this is 'defaults', images from the default theme will only be used with default templates. if this is 'never' or isn't set at all, images from the default theme will not be used. */ $settings['use_default_images'] = 'never'; /* What document type definition is being used? (for font size and other issues.) 'xhtml' for an XHTML 1.0 document type definition. 'html' for an HTML 4.01 document type definition. */ $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'] = '1.1 RC3'; /* Set a setting that tells the theme that it can render the tabs. */ $settings['use_tabs'] = false; /* Use plain buttons - as oppossed to text buttons? */ $settings['use_buttons'] = true; /* Show sticky and lock status seperate from topic icons? */ $settings['seperate_sticky_lock'] = false; } // The main sub template above the content. function template_main_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Show right to left and the character set for ease of translating. echo ' ', $context['page_title'], ''; // The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly. echo ' '; /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) 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'])) 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']); // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], ' '; // Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!) echo '
'; // This part is the logo and forum name. You should be able to change this to whatever you want... if (empty($settings['your_logo'])) { echo '
'; } else { echo '
'; } echo ' ', $context['forum_name'], '


'; // Show the menu here, according to the menu sub template. template_menu(); echo '
'; // The main content should go here. A table is used because IE 6 just can't handle a div. echo '
'; } function template_main_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 '
', $txt['powered_by_mysql'], ' ', $txt['powered_by_php'], ' ', theme_copyright(), '
SMFone design by A.M.A, ported to SMF 1.1 RC3 by Aäron.
', $txt['valid_xhtml'], ' ', $txt['valid_css'], '
'; // Show the load time? if ($context['show_load_time']) echo ' ', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], ''; echo '
'; // This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough. if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari']) { // The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself. echo ' '; } echo ' '; // The following will be used to let the user know that some AJAX process is running echo ' '; } // Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { global $context, $settings, $options; // Folder style or inline? Inline has a smaller font. 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 the | | |-[] Folders. if (!$settings['linktree_inline']) { if ($link_num > 0) echo str_repeat('| ', $link_num - 1), '|-'; echo '+  '; } // 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 $settings['linktree_inline'] ? ' ' : '
'; } echo '
'; } // Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt; // Show the [home] and [help] buttons. echo ' ' . $txt[103] . '' , $txt[103], '', $context['menu_separator'], ' ' . $txt[119] . '' , $txt[119], '', $context['menu_separator']; // How about the [search] button? if ($context['allow_search']) echo ' ' . $txt[182] . '' , $txt[182], '', $context['menu_separator']; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo ' ' . $txt[2] . '' , $txt[2], '', $context['menu_separator']; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo ' ' . $txt[79] . '' , $txt[467], '', $context['menu_separator']; // The [calendar]! if ($context['allow_calendar']) echo ' ' . $txt['calendar24'] . '' , $txt['calendar24'], '', $context['menu_separator']; // If the user is a guest, show [login] and [register] buttons. if ($context['user']['is_guest']) { echo ' ' . $txt[34] . '' , $txt[34], '', $context['menu_separator'], ' ' . $txt[97] . '' , $txt[97], ''; } // Otherwise, they might want to [logout]... else echo ' ' . $txt[108] . '' , $txt[108], ''; } ?>Unable to load the 'main_above' template.