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 '
';
// The following will be used to let the user know that some AJAX process is running echo '
', $txt['ajax_in_progress'], '
'; echo '
'; }
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. function theme_linktree() { global $context, $settings, $options;
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 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 ' | '; }
echo '
'; }
// Show the menu up top. Something like [home] [help] [profile] [logout]... function template_menu() { global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are. $current_action = 'home'; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))) $current_action = 'admin'; if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'))) $current_action = $context['current_action']; if ($context['current_action'] == 'search2') $current_action = 'search'; if ($context['current_action'] == 'theme') $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Are we using right-to-left orientation? if ($context['right_to_left']) { $first = 'last'; $last = 'first'; } else { $first = 'first'; $last = 'last'; }
// Show the start of the tab section. echo '
';
// Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo '