diff --git a/mojotrollz/page/character_wizard/wizard_details.tpl b/mojotrollz/page/character_wizard/wizard_details.tpl new file mode 100644 index 0000000..f2ba8f8 --- /dev/null +++ b/mojotrollz/page/character_wizard/wizard_details.tpl @@ -0,0 +1 @@ +abc \ No newline at end of file diff --git a/mojotrollz/page/character_wizard/wizard_frame.html b/mojotrollz/page/character_wizard/wizard_frame.html new file mode 100644 index 0000000..a8dade1 --- /dev/null +++ b/mojotrollz/page/character_wizard/wizard_frame.html @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + +
+ +
+ + + \ No newline at end of file diff --git a/mojotrollz/page/character_wizard/wizard_frame.php b/mojotrollz/page/character_wizard/wizard_frame.php new file mode 100644 index 0000000..c4d7818 --- /dev/null +++ b/mojotrollz/page/character_wizard/wizard_frame.php @@ -0,0 +1,29 @@ +'. + ''. + ''. + ''; + + + } + + + 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 new file mode 100644 index 0000000..1edb6f9 --- /dev/null +++ b/mojotrollz/page/character_wizard/wizard_frame.tpl @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + +
+ +
+ + + \ 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 29211f8..2168ba6 100644 --- a/mojotrollz/page/default_page/default_page.php +++ b/mojotrollz/page/default_page/default_page.php @@ -10,7 +10,9 @@ class default_page extends SYSTEM\PAGE\Page { } - + 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());} @@ -21,6 +23,7 @@ class default_page extends SYSTEM\PAGE\Page { $vars = array(); $vars['js'] = $this->js(); $vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->getregisterform(); + $vars['wizard'] = $this->getwizard(); $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); diff --git a/mojotrollz/page/default_page/js/wizard_nav.js b/mojotrollz/page/default_page/js/wizard_nav.js new file mode 100644 index 0000000..dbc1758 --- /dev/null +++ b/mojotrollz/page/default_page/js/wizard_nav.js @@ -0,0 +1,24 @@ +$(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 index be0dc6e..816f7b7 100644 --- a/mojotrollz/page/default_page/lounge.html +++ b/mojotrollz/page/default_page/lounge.html @@ -28,7 +28,7 @@ and open the template in the editor.