PHP Classes

File: includes/lib/lobby/inc/dashboard.php

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   includes/lib/lobby/inc/dashboard.php   Download  
File: includes/lib/lobby/inc/dashboard.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: 7 years ago
Size: 536 bytes
 

Contents

Class file image Download
<?php
/**
 * Get installed apps and make the tiles on dashboard
 */
$apps = \Lobby\Apps::getEnabledApps();
if(
count($apps) == 0){
  echo
ser("No Apps", "You haven't enabled or installed any apps. <br/>Get great Apps from " . \Lobby::l("/admin/lobby-store.php", "Lobby Store"));
}else{
 
$dashboard_items = array(
   
"apps" => array()
  );
  foreach(
$apps as $app => $null){
   
$App = new \Lobby\Apps($app);
   
$data = $App->info;
   
$dashboard_items["apps"][$app] = $data;
  }
  \
Lobby\UI\Themes::loadDashboard($dashboard_items);
}