rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language; ?>" xml:lang="<?php print $language; ?>">
<head>
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<?php print $scripts; ?>
<script type="text/javascript" src="<?php print base_path().path_to_theme(); ?>/helpdisplay.js" language="javascript"></script>
</head>
<body>
<!-- Shadowing -->
<center>
<div id="main_shadow">
<table id="main_stuff" cellspacing="0" cellpadding="0">
<tr>
<!-- Top user bar -->
<td id="main_userbar">
<table cellspacing="0" cellpadding="0" id="main_userbar_table">
<tr>
<td id="main_userbar_left">
NEWS: eAthena Version 1.0 Released! (Episode 11.3 Fully Supported)
</td>
<td id="main_userbar_right">
<?php
if(in_array("authenticated user", $GLOBALS["user"]->roles)){
echo "<a href=\"{$base_path}logout\">Logout</a>";
} else {
echo "<a href=\"{$base_path}user\">Login</a> | <a href=\"{$base_path}user/register\">Register</a>";
}
?> | Site Map |
<?php
echo "<a href=\"{$base_path}contact\">Feedback</a>";
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<!-- Header image -->
<td id="main_header" onclick="javascript:location.href='<?php $base_path; ?>';">
<!-- <img src="images/main_header.jpg" alt="Welcome to eAthena!" /> -->
</td>
</tr>
<tr>
<!-- Main menu -->
<td id="main_menu">
<table id="main_menu_table" cellspacing="0" cellpadding="0">
<tr>
<?php
foreach($primary_links as $primary_link){
echo "<td class=\"main_menu_item\"";
foreach($primary_link["attributes"] as $attribute_name => $attribute_value){
echo " ";
echo $attribute_name;
echo "=\"{$attribute_value}\"";
}
if($primary_link["href"] == "<front>"){
$primary_link["href"] = "";
}
if(substr($primary_link["href"], 0, 4) == "http"){
echo " onclick=\"location.href='{$primary_link["href"]}';\"";
} else {
echo " onclick=\"location.href='{$base_path}{$primary_link["href"]}';\"";
}
echo ">";
echo $primary_link["title"];
echo "</td>\n";
}
// Check whether administrator.
if($GLOBALS["user"]->uid == 1 || in_array("administrator", $GLOBALS["user"]->roles) == true){
echo "<td class=\"main_menu_item\" title=\"Administer the web site\" onclick=\"location.href='{$base_path}admin';\">";
echo "Administration";
echo "</td>\n";
}
?>
</tr>
</table>
<br />
</td>
</tr>
<tr>
<!-- Main content -->
<td id="main_content">
<table id="main_content_table">
<tr>
<!-- The submenu -->
<td id="content_submenu">
<div id="content_submenu_heading">
Page Menu
</div>
<div id="content_submenu_content">
<?php
if(is_array($secondary_links) == true && empty($secondary_links) == false){
echo "<div class=\"block\">";
echo "<ul class=\"menu\">";
foreach($secondary_links as $secondary_link){
echo "<li class=\"leaf\"><a";
foreach($secondary_link["attributes"] as $attribute_name => $attribute_value){
echo " ";
echo $attribute_name;
echo "=\"{$attribute_value}\"";
}
if($secondary_link["href"] == "<front>"){
$secondary_link["href"] = "";
}
echo " href=\"{$base_path}{$secondary_link["href"]}\"";
echo ">";
echo $secondary_link["title"];
echo "</a></li>\n";
}
echo "</ul>";
echo "</div>";
} else {
echo "Nothing to be displayed. <br /> ";
}
/**
// Otherwise print the main menu.
foreach($GLOBALS["_menu"]["items"] as $navigation_item){
if($navigation_item["type"] == 22 && $navigation_item["access"] == true){
echo "· <a href=\"{$base_path}{$navigation_item["path"]}\">{$navigation_item["title"]}</a>\n<br />";
}
}
*/
echo "<br />";
echo $sidebar_left;
?>
</div>
<br />
</td>
<!-- The "real" main content -->
<td id="content_main">
<?php print $breadcrumb; ?>
<?php
list($node_name, $node_id) = explode("/", $_GET["q"]);
if(!is_numeric($node_id)){
echo '<div class="content_title">';
echo $title;
echo '</div>';
}
echo $tabs;
?>
<br />
<?php
if(strlen($help) > 32){
print $help;
echo '<a onclick="togglehelp();" href="#">Toggle Help Display</a>';
echo "<br />";
}
?>
<?php print $messages; ?>
<?php print $content; ?>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<table cellspacing="0" cellpadding="0">
<tr>
<td id="main_footer">
<?php print $footer_message; ?>
</td>
</tr>
</table>
</center>
</body>
</html>