social basic menu makeover
This commit is contained in:
parent
4fe9e80a81
commit
8f22003a91
@ -19,6 +19,7 @@
|
||||
\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_nexus_menu_sub','');
|
||||
\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','');
|
||||
|
||||
@ -54,6 +54,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_nexus_menu();}
|
||||
public static function page_user_nexus_menu_sub($menu){
|
||||
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
|
||||
throw new ERROR("You need to be logged in to view this ressource.");}
|
||||
return new user_nexus_menu_sub($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.");}
|
||||
|
||||
38
mojotrollz/page/user_nexus_menu/js/user_nexus_menu.js
Normal file
38
mojotrollz/page/user_nexus_menu/js/user_nexus_menu.js
Normal file
@ -0,0 +1,38 @@
|
||||
function init_user_nexus_menu(){
|
||||
$("#btn_nexus_menu_start").click(function(){
|
||||
if($('#nexus_content_start').html() === ''){
|
||||
sys.load('user_nexus_menu_sub_1');
|
||||
} else {
|
||||
$('#nexus_content_start').html('');
|
||||
}
|
||||
});
|
||||
$("#btn_nexus_menu_characters").click(function(){
|
||||
if($('#nexus_content_characters').html() === ''){
|
||||
sys.load('user_nexus_menu_sub_2');
|
||||
} else {
|
||||
$('#nexus_content_characters').html('');
|
||||
}
|
||||
});
|
||||
$("#btn_nexus_menu_friendlist").click(function(){
|
||||
if($('#nexus_content_friendlist').html() === ''){
|
||||
sys.load('user_nexus_menu_sub_3');
|
||||
} else {
|
||||
$('#nexus_content_friendlist').html('');
|
||||
}
|
||||
});
|
||||
$("#btn_nexus_menu_guilds").click(function(){
|
||||
if($('#nexus_content_guilds').html() === ''){
|
||||
sys.load('user_nexus_menu_sub_4');
|
||||
} else {
|
||||
$('#nexus_content_guilds').html('');
|
||||
}
|
||||
});
|
||||
$("#btn_nexus_menu_topics").click(function(){
|
||||
if($('#nexus_content_topics').html() === ''){
|
||||
sys.load('user_nexus_menu_sub_5');
|
||||
} else {
|
||||
$('#nexus_content_topics').html('');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
function init_user_nexus_menu(){
|
||||
|
||||
}
|
||||
@ -1,6 +1,8 @@
|
||||
<div style="width: 25%; height: 100%; float: left; padding: 20px;" class="">
|
||||
<button class="btn btn_blue no_deco" id="btn_nexus_menu_start" href="#user_nexus_start">Start</button>
|
||||
<div style="width: 100%;" id="nexus_content_start"></div>
|
||||
<button class="btn btn_blue no_deco" id="btn_nexus_menu_characters" href="#user_nexus_characters">Characters</button>
|
||||
<div style="width: 100%;" id="nexus_content_characters"></div>
|
||||
<button class="btn btn_blue no_deco" id="btn_nexus_menu_friendlist" href="#user_nexus_friendlist">Friendlist</button>
|
||||
<div style="width: 100%;" id="nexus_content_friendlist"></div>
|
||||
<button class="btn btn_blue no_deco" id="btn_nexus_menu_guilds" href="#user_nexus_guilds">Guilds</button>
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
function init_user_nexus_menu_sub(){
|
||||
$(".btn_nexus_menu").click(function(){
|
||||
$('#nexus_list').load('./?page=user_nexus_content&menu=' + $(this).attr('menu') + '&filter=' + $(this).attr('filter'), function(){
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<li><a class="btn_nexus_menu_start" href="#">Start</a></li>
|
||||
@ -0,0 +1,21 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
<p> Type in your wanted Name.</p>
|
||||
<input type="text" style="color: black" id="search_char_by_name"/><br><br>
|
||||
<button class="btn btn_submenu no_deco" href="#">Search Character</button>
|
||||
</td>
|
||||
<td style="text-align: center; padding-left: 35px;">
|
||||
<p> Search Character by Guildname.</p>
|
||||
<input type="text" style="color: black" id="search_char_by_guild"/><br><br>
|
||||
<button class="btn btn_submenu no_deco" href="#">Search Character</button>
|
||||
</td>
|
||||
<td style="text-align: center;padding-left: 35px;">
|
||||
<p> Search Character by Twink.</p>
|
||||
<input type="text" style="color: black" id="search_char_by_guild"/><br><br>
|
||||
<button class="btn btn_submenu no_deco" href="#">Search Character</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@ -0,0 +1 @@
|
||||
<button class="btn btn_nexus_menu btn_submenu no_deco" menu="3" filter="3" href="#">Friendlist</button>
|
||||
@ -0,0 +1 @@
|
||||
<button class="btn btn_nexus_menu btn_submenu no_deco" menu="4" filter="4" href="#">Guilds</button>
|
||||
@ -0,0 +1 @@
|
||||
<button class="btn btn_nexus_menu btn_submenu no_deco" menu="1" filter="1" href="#">Start</button>
|
||||
@ -0,0 +1 @@
|
||||
<button class="btn btn_nexus_menu btn_submenu no_deco" menu="5" filter="5" href="#">Topics</button>
|
||||
30
mojotrollz/page/user_nexus_menu_sub/user_nexus_menu_sub.php
Normal file
30
mojotrollz/page/user_nexus_menu_sub/user_nexus_menu_sub.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
class user_nexus_menu_sub extends SYSTEM\PAGE\Page {
|
||||
var $menu = NULL;
|
||||
public function __construct($menu) {
|
||||
$this->menu = $menu;
|
||||
}
|
||||
|
||||
public static function js(){
|
||||
return array( \SYSTEM\WEBPATH(new PPAGE(),'user_nexus_menu_sub/js/user_nexus_menu_sub.js'),
|
||||
\SYSTEM\WEBPATH(new PAPI(),'database/js/wow.js'));}
|
||||
|
||||
public static function css (){
|
||||
return array();}
|
||||
|
||||
public function html(){
|
||||
switch ($this->menu){
|
||||
case 1:
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu_sub/tpl/user_nexus_menu_sub_start.tpl'), array());
|
||||
case 2:
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu_sub/tpl/user_nexus_menu_sub_characters.tpl'), array());
|
||||
case 3:
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu_sub/tpl/user_nexus_menu_sub_friendlist.tpl'), array());
|
||||
case 4:
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu_sub/tpl/user_nexus_menu_sub_guilds.tpl'), array());
|
||||
case 5:
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_nexus_menu_sub/tpl/user_nexus_menu_sub_topics.tpl'), array());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user