changed armory name to nexus

included basic menu func
This commit is contained in:
Tobi 2014-11-30 15:02:40 +01:00
parent 51214beb03
commit f71b87dea4
8 changed files with 51 additions and 2 deletions

View File

@ -18,6 +18,7 @@
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_character','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_menu','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_shop_menu','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_nexus_menu','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievements_menu','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievements_menu_sub','');
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_achievements_content','');

View File

@ -50,6 +50,10 @@ class page_mojotrollz extends \SYSTEM\API\api_default {
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
throw new ERROR("You need to be logged in to view this ressource.");}
return new user_database();}
public static function page_user_nexus_menu(){
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
throw new ERROR("You need to be logged in to view this ressource.");}
return new user_nexus_menu();}
public static function page_user_shop_menu(){
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
throw new ERROR("You need to be logged in to view this ressource.");}

View File

@ -9,6 +9,9 @@ function init_user_menu(){
$("#btn_achieve").click(function(){
sys.load('user_achievements_menu');
});
$("#btn_nexus").click(function(){
sys.load('user_nexus_menu');
});
$("#btn_shop").click(function(){
sys.load('user_shop_menu');
});

View File

@ -1,8 +1,8 @@
<div style="width: 180px; float: left">
<button class="btn btn_blue no_deco" id="btn_news" href="#user_start">Overview</button>
<button class="btn btn_blue no_deco" id="btn_nexus" href="#">Nexus</button>
<button class="btn btn_blue no_deco" id="btn_achieve" href="#user_achievements_menu">Compendium</button>
<button class="btn btn_blue no_deco" id="btn_shop" href="user_shop_menu">Shop</button>
<button class="btn btn_blue no_deco" id="btn_arm" href="#">Armory</button>
<button class="btn btn_blue no_deco" id="btn_logout" href="#">Logout</button>
</div>
<div style=" float: right; margin-top: 2px;">

View File

@ -0,0 +1,3 @@
function init_user_nexus_menu(){
}

View File

@ -0,0 +1,15 @@
<div style="width: 25%; height: 100%; float: left; padding: 20px;" class="">
<button class="btn btn_blue no_deco" id="btn_shop_menu_vendor" href="#user_shop_vendor">Start</button>
<div style="width: 100%;" id="nexus_content_start"></div>
</div>
<div class="window_bg2" style="float: left; padding: 20px; width: 70%;" id="nexus_list">
<div style="float: left; width: 50%;">
<img width="400" src="http://www.mojotrollz.eu/web/mojotrollz/api.php?call=files&cat=wizard_start&id=help_gnome.png"/>
</div>
<div style="float: left; width: 50%;">
<H3>Shop Section</H3>
<p>Welcome to the shopping Section. It's currently under construction,so gtfo. Thanks.</p>
</div>
</div>

View File

@ -0,0 +1,23 @@
<?php
class user_nexus_menu extends SYSTEM\PAGE\Page {
public static function js(){
return array( \SYSTEM\WEBPATH(new PPAGE(),'user_nexus_menu/js/user_nexus_menu.js'));}
public static function css (){
return array();}
public function html(){
$vars = array();
$vars['PICPATH'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=default_page&id=';
$vars['PIC'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=race&id=';
$vars['PI'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=class&id=';
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_WOW_SERVERINFO),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_BASIC));
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu/tpl/user_nexus_menu.tpl'), $vars);
}
}

2
system

@ -1 +1 @@
Subproject commit 1c02883a3eacb7fa9e50787597b5aff1f6add490
Subproject commit b3bf40d17d3c707d7af17943b1f6ff147c0e71a6