PHP Classes

File: admin/inc/sidebar.php

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   admin/inc/sidebar.php   Download  
File: admin/inc/sidebar.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Lobby
Web OS to install and run Web applications
Author: By
Last change: version 0.9.1 berly
Date: 8 years ago
Size: 848 bytes
 

Contents

Class file image Download
<div class="side-nav fixed" id="slide-out">
  <a target="_blank" href="http://lobby.subinsb.com" class="lobby-link">Lobby <?php echo \Lobby::getVersion(true);?></a>
  <?php
  $links
= array(
   
"/admin/index.php" => "Dashboard",
   
"/admin/apps.php" => "Apps",
   
"/admin/lobby-store.php" => "Lobby Store",
   
"/admin/modules.php" => "Modules",
   
"/admin/settings.php" => "Settings",
  );
 
$links = Hooks::applyFilters("admin.view.sidebar", $links);
 
 
$curPage = \Lobby::curPage();
  foreach(
$links as $link => $text){
    if(
substr($curPage, 0, strlen($link)) === $link || ($curPage == "/admin/update.php" && $text == "Settings") || ($curPage == "/admin/install-app.php" && $text == "Apps")){
      echo \
Lobby::l($link, $text, "class='link active'");
    }else{
      echo \
Lobby::l($link, $text, "class='link'");
    }
  }
 
?>
</div>