mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +00:00
Select automatically if it should load with no_visible_elements on or off + minor updates
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
25d96701c4
commit
1c4bb138e9
4 changed files with 12 additions and 11 deletions
|
@ -12,12 +12,16 @@ function loadpage ( $page ){
|
|||
require_once( 'autoload/' . $page . '.php' );
|
||||
}
|
||||
|
||||
$page = 'home';
|
||||
$page = 'login';
|
||||
if ( isset( $_GET["page"] ) ){
|
||||
$page = $_GET["page"];
|
||||
}
|
||||
|
||||
// temporary set permission to 1 which = admin mode
|
||||
$return = array( 'permission' => 1, 'no_visible_elements' => 'FALSE' );
|
||||
//Page Handling
|
||||
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 );
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
function show_help(help_tip)
|
||||
{
|
||||
if(help_tip =='test')
|
||||
if(help_tip =='intro')
|
||||
{
|
||||
var tour = new Tour();
|
||||
tour.addStep({
|
||||
element: ".brand:first", /* html element next to which the step popover should be shown */
|
||||
placement: "bottom",
|
||||
title: "Custom Tour", /* title of the popover */
|
||||
content: "You can create tour like this. Click Next." /* content of the popover */
|
||||
title: "Account Management System", /* title 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({
|
||||
element: ".theme-container",
|
||||
|
|
|
@ -36,16 +36,14 @@
|
|||
<div class="box-header well">
|
||||
<h2><i class="icon-info-sign"></i> Introduction</h2>
|
||||
<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-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<h1>Charisma <small>free, premium quality, responsive, multiple skin admin template.</small></h1>
|
||||
<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>
|
||||
<p><strong>Welcome to the Ryzom Core - Account Management System</strong></p>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
<!-- theme selector ends -->
|
||||
<button onclick="show_help('test')">Help Test</button>
|
||||
<!-- user dropdown starts -->
|
||||
<div class="btn-group pull-right">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
|
|
Loading…
Reference in a new issue