| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- class ThemeDefault {
- function __construct() {
- DBG::log("ThemeDefault()...");
- }
- function head() { // inside UI::gora()
- // echo '<link rel="stylesheet" href="stuff/bootstrap/css/bootstrap-theme.min.css" type="text/css" />'; // TODO: dodać bootsrap-theme?
- }
- function top() {
- // echo ''; // TODO: UI::menu + breacrumbs
- Lib::loadClass('ProcesMenu');
- $procesMenu = ProcesMenu::getInstance();
- $procesMenu->show();
- // if (!V::get('MENU_INIT', '', $_GET)) {
- // Lib::loadClass('UserActivity');
- // //echo UserActivity::showListInContainer();
- // }
- }
- function footer() { // inside UI::dol()
- $version = (file_exists(APP_PATH_ROOT . '/VERSION'))? file_get_contents(APP_PATH_ROOT . '/VERSION') : null;
- if ($version) {
- echo '<div style="' . UI::fixFooterPosition('footer_style') . 'border-top:1px solid #ddd; margin-top:10px; padding:0 30px; font-size:xx-small; color:#888">version: '.$version.'</div>';
- }
- echo UI::fixFooterPosition('footer_js_tag');
- }
- function login($data) {
- if (is_array($data) && !empty($data)) {
- extract($data);
- }
- include APP_PATH_WWW . '/se-lib/tmpl/login.php';
- }
- function logout($data) {
- if (is_array($data) && !empty($data)) {
- extract($data);
- }
- include APP_PATH_WWW . '/se-lib/tmpl/logout.php';
- }
- function home($data) {
- if (is_array($data) && !empty($data)) {
- extract($data);
- }
- include APP_PATH_WWW . '/se-lib/tmpl/defaultPage.php';
- }
- function asset($relativeUrl) {
- if ('ThemeDefault' === get_class($this)) return $relativeUrl;
- $projName = substr(get_class($this), strlen('Theme_'));
- return "projects/{$projName}/theme/{$relativeUrl}";
- }
- }
|