Select automatically if it should load with no_visible_elements on or off + minor updates

This commit is contained in:
Quitta 2013-06-17 16:29:20 +02:00
parent 8e100fd011
commit 37b93d3099
4 changed files with 12 additions and 11 deletions

View file

@ -12,12 +12,16 @@ function loadpage ( $page ){
require_once( 'autoload/' . $page . '.php' ); require_once( 'autoload/' . $page . '.php' );
} }
$page = 'home'; $page = 'login';
if ( isset( $_GET["page"] ) ){ if ( isset( $_GET["page"] ) ){
$page = $_GET["page"]; $page = $_GET["page"];
} }
// temporary set permission to 1 which = admin mode //Page Handling
$return = array( 'permission' => 1, 'no_visible_elements' => 'FALSE' ); if($page == 'login' || $page == 'register'){
$no_visible_elements = 'TRUE';
}
// temporary set permission to 2 which = admin mode
$return = array( 'permission' => 1, 'no_visible_elements' => $no_visible_elements );
helpers :: loadTemplate( $page , $return ); helpers :: loadTemplate( $page , $return );

View file

@ -1,13 +1,13 @@
function show_help(help_tip) function show_help(help_tip)
{ {
if(help_tip =='test') if(help_tip =='intro')
{ {
var tour = new Tour(); var tour = new Tour();
tour.addStep({ tour.addStep({
element: ".brand:first", /* html element next to which the step popover should be shown */ element: ".brand:first", /* html element next to which the step popover should be shown */
placement: "bottom", placement: "bottom",
title: "Custom Tour", /* title of the popover */ title: "Account Management System", /* title of the popover */
content: "You can create tour like this. Click Next." /* content of the popover */ content: "Welcome to the Ryzom Core Account Management System! Let's explore it together... Click next!" /* content of the popover */
}); });
tour.addStep({ tour.addStep({
element: ".theme-container", element: ".theme-container",

View file

@ -36,16 +36,14 @@
<div class="box-header well"> <div class="box-header well">
<h2><i class="icon-info-sign"></i> Introduction</h2> <h2><i class="icon-info-sign"></i> Introduction</h2>
<div class="box-icon"> <div class="box-icon">
<a href="#" class="btn btn-round" onclick="javascript:show_help('test');return false;"><i class="icon-info-sign"></i></a> <a href="#" class="btn btn-round" onclick="javascript:show_help('intro');return false;"><i class="icon-info-sign"></i></a>
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a> <a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a> <a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div> </div>
</div> </div>
<div class="box-content"> <div class="box-content">
<h1>Charisma <small>free, premium quality, responsive, multiple skin admin template.</small></h1> <p><strong>Welcome to the Ryzom Core - Account Management System</strong></p>
<p>Its a live demo of the template. I have created Charisma to ease the repeat work I have to do on my projects. Now I re-use Charisma as a base for my admin panel work and I am sharing it with you :)</p>
<p><b>All pages in the menu are functional, take a look at all, please share this with your followers.</b></p>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>

View file

@ -88,7 +88,6 @@
</ul> </ul>
</div> </div>
<!-- theme selector ends --> <!-- theme selector ends -->
<button onclick="show_help('test')">Help Test</button>
<!-- user dropdown starts --> <!-- user dropdown starts -->
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">