diff --git a/mojotrollz/page/character_wizard/wizard_frame.html b/mojotrollz/page/character_wizard/wizard_frame.html deleted file mode 100644 index a8dade1..0000000 --- a/mojotrollz/page/character_wizard/wizard_frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - -
- -
- - - \ No newline at end of file diff --git a/mojotrollz/page/character_wizard/wizard_frame.php b/mojotrollz/page/character_wizard/wizard_frame.php deleted file mode 100644 index c4d7818..0000000 --- a/mojotrollz/page/character_wizard/wizard_frame.php +++ /dev/null @@ -1,29 +0,0 @@ -'. - ''. - ''. - ''; - - - } - - - public function getregisterform(){ - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/registerform.tpl'),array());} - - public function getloggedinform(){ - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/loggedinform.tpl'),array());} - - public function html(){ - $vars = array(); - $vars['js'] = $this->js(); - $vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->getregisterform(); - $vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE)); - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'character_wizard/wizard_frame.html'), $vars); - - } -} \ No newline at end of file diff --git a/mojotrollz/page/character_wizard/wizard_frame.tpl b/mojotrollz/page/character_wizard/wizard_frame.tpl deleted file mode 100644 index 1edb6f9..0000000 --- a/mojotrollz/page/character_wizard/wizard_frame.tpl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - -
- -
- - - \ No newline at end of file diff --git a/mojotrollz/page/default_page/default_page.php b/mojotrollz/page/default_page/default_page.php index 2168ba6..0248093 100644 --- a/mojotrollz/page/default_page/default_page.php +++ b/mojotrollz/page/default_page/default_page.php @@ -6,26 +6,23 @@ class default_page extends SYSTEM\PAGE\Page { return ''. ''. ''. - ''; + ''. + ''; } - public function getwizard(){ - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'character_wizard/wizard_frame.tpl'),array());} - - public function getregisterform(){ - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/registerform.tpl'),array());} - - public function getloggedinform(){ - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/loggedinform.tpl'),array());} + + private function css (){ + return ''; + } public function html(){ $vars = array(); $vars['js'] = $this->js(); - $vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->getregisterform(); - $vars['wizard'] = $this->getwizard(); + $vars['css'] = $this->css(); + $vars['logo_path'] = \SYSTEM\WEBPATH(new PPAGE(), 'default_page/img/World-Of-Warcraft-Logo.png'); $vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE)); - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/lounge.html'), $vars); + return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page.tpl'), $vars); } } \ No newline at end of file diff --git a/mojotrollz/page/default_page/default_page.tpl b/mojotrollz/page/default_page/default_page.tpl new file mode 100644 index 0000000..1b3cf10 --- /dev/null +++ b/mojotrollz/page/default_page/default_page.tpl @@ -0,0 +1,32 @@ + + + + ${mojotrollz_page_title} + + ${css} + ${js} + + + + +
+ +
+ welcome +
+
+ + + diff --git a/mojotrollz/page/default_page/img/World-Of-Warcraft-Logo.png b/mojotrollz/page/default_page/img/World-Of-Warcraft-Logo.png new file mode 100644 index 0000000..0c2a7f4 Binary files /dev/null and b/mojotrollz/page/default_page/img/World-Of-Warcraft-Logo.png differ diff --git a/mojotrollz/page/default_page/js/wizard.js b/mojotrollz/page/default_page/js/wizard.js new file mode 100644 index 0000000..96c2720 --- /dev/null +++ b/mojotrollz/page/default_page/js/wizard.js @@ -0,0 +1,15 @@ +$(document).ready(function() { + +$('#wizard_navbar a').click(function () { + var url = $(this).attr("url"); + $('#wizard_navbar li').each(function(){ + $(this).removeClass('active');}); + $(this).parent().addClass('active'); + load_wizard_page (url); + +}); + +}); + function load_wizard_page (url){ + $('#content').load(url); + }; diff --git a/mojotrollz/page/default_page/js/wizard_nav.js b/mojotrollz/page/default_page/js/wizard_nav.js deleted file mode 100644 index dbc1758..0000000 --- a/mojotrollz/page/default_page/js/wizard_nav.js +++ /dev/null @@ -1,24 +0,0 @@ -$(document).ready(function() { - -$('.dropdown-toggle_details').click(function () { - load_opendetails; - }); - -}); - -function load_opendetails (){ - var wizard_content; - $.get('./index.php?action=wizard_details', function (data) { - wizard_content = data; - bodyelem = $(""); - bodyelem.animate(); - }).complete(function() { - $('#opendetails').slideUp({duration: 'slow', - complete: function(){ - $('#wizard_frame').tpl(wizard_content); - $('#wizard_content').slideDown('slow'); - site_content_is_visible = true; - }}); - }); - -} \ No newline at end of file diff --git a/mojotrollz/page/default_page/lounge.html b/mojotrollz/page/default_page/lounge.html deleted file mode 100644 index 816f7b7..0000000 --- a/mojotrollz/page/default_page/lounge.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - ${css} - - ${js} - - - - -
-
- - -
- -
- ${registerform} -
- -
-
- ${wizard} -
- - diff --git a/mojotrollz/page/default_page/registerform.tpl b/mojotrollz/page/default_page/registerform.tpl deleted file mode 100644 index f6a11a6..0000000 --- a/mojotrollz/page/default_page/registerform.tpl +++ /dev/null @@ -1,52 +0,0 @@ -
- - - - -
-
- -
- -
- -
-
-
-
- - -
- -
- - - - -
- - -
- - - - - \ No newline at end of file diff --git a/mojotrollz/page/page_mojotrollz.php b/mojotrollz/page/page_mojotrollz.php index b36c6cd..1c41a52 100644 --- a/mojotrollz/page/page_mojotrollz.php +++ b/mojotrollz/page/page_mojotrollz.php @@ -5,44 +5,21 @@ class page_mojotrollz extends \SYSTEM\API\api_default { public static function default_page(){ return new default_page();} - public static function action_wizard(){ - return new wizard_frame();} + public static function action_wizard_details(){ + return new wizard_details();} - public static function action_media(){ - throw new ERROR("test"); - } + public static function action_wizard_visuals(){ + return new wizard_visuals();} - public static function action_googlemaps(){ - return new googlemaps(); - } + public static function action_wizard_friend(){ + return new wizard_friend();} - public static function action_osm(){ - return new osm(); - } + public static function action_wizard_spawn(){ + return new wizard_spawn();} - public static function action_test(){ - return new default_page(); - } + public static function action_wizard_summ(){ + return new wizard_summ();} - public static function action_prices(){ - return new default_prices();} - - public static function action_contact(){ - return new default_contact();} - - public static function action_certificates(){ - return new default_certificates();} - - public static function action_partners(){ - return new default_partners(); - } - - public static function action_developer(){ - require_once '../system/sai/autoload.inc.php'; - //require_once 'dasense/sai/autoload.inc.php'; - //require_once 'dasense/sai/register_modules.php'; - return new \SYSTEM\SAI\saigui();} - - - -} \ No newline at end of file + public static function action_wizard_reg(){ + return new wizard_reg();} +} diff --git a/mojotrollz/page/register_page_classes.php b/mojotrollz/page/register_page_classes.php index 0ff6c88..2f66118 100644 --- a/mojotrollz/page/register_page_classes.php +++ b/mojotrollz/page/register_page_classes.php @@ -1,6 +1,11 @@ js(); + $vars['css'] = $this->css(); + $vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE)); + return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'wizard_details/details.tpl'), $vars); + + } +} \ No newline at end of file