Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Display.php
Go to the documentation of this file.
1<?php
2
4
7
16class Display {
17 private static $links = ["Website" => "https://ubiquity.kobject.net", "Guide" => "https://micro-framework.readthedocs.io/en/latest/?badge=latest", "Documentation API" => "https://api.kobject.net/ubiquity/", "GitHub" => "https://github.com/phpMv/ubiquity"];
18
19 public static function semanticMenu($id, $semantic) {
21 $menu = $semantic->htmlMenu($id, \array_keys($links));
22 $menu->asLinks(\array_values($links), 'new');
23 $menu->setSecondary();
24 return $menu;
25 }
26
27 public static function getLinks() {
29 if (Framework::hasAdmin()) {
30 $links ['Webtools'] = 'Admin';
31 }
32 return $links;
33 }
34
35 public static function getPageInfos() {
36 return ['Controller' => Framework::getController(), 'Action' => Framework::getAction(), 'Route' => Framework::getUrl(), 'Path' => '/', 'ActiveTheme' => ThemesManager::getActiveTheme() ?? 'none', 'Cache' => Framework::getCacheSystem(), 'Annotations' => Framework::getAnnotationsEngine()];
37 }
38
39 public static function getDefaultPage() {
40 $activeTheme = ThemesManager::getActiveTheme();
41 if ($activeTheme == null || ThemesManager::isCustom($activeTheme)) {
42 $activeTheme = "index";
43 }
44 return '@framework/index/' . $activeTheme . '.html';
45 }
46
47 public static function getThemes() {
48 return ThemesManager::getAvailableThemes();
49 }
50}
51
static getController()
Returns the active controller class name.
Definition Framework.php:47
static getUrl()
Gets the active URL.
Definition Framework.php:63
static getAction()
Returns the active action.
Definition Framework.php:55
Ubiquity\core\postinstall$Display This class is part of Ubiquity.
Definition Display.php:16
static semanticMenu($id, $semantic)
Definition Display.php:19