ThemeDefault.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. class ThemeDefault {
  3. function __construct() {
  4. DBG::log("ThemeDefault()...");
  5. }
  6. function head() { // inside UI::gora()
  7. // echo '<link rel="stylesheet" href="stuff/bootstrap/css/bootstrap-theme.min.css" type="text/css" />'; // TODO: dodać bootsrap-theme?
  8. }
  9. function top() {
  10. // echo ''; // TODO: UI::menu + breacrumbs
  11. Lib::loadClass('ProcesMenu');
  12. $procesMenu = ProcesMenu::getInstance();
  13. $procesMenu->show();
  14. // if (!V::get('MENU_INIT', '', $_GET)) {
  15. // Lib::loadClass('UserActivity');
  16. // //echo UserActivity::showListInContainer();
  17. // }
  18. }
  19. function footer() { // inside UI::dol()
  20. $version = (file_exists(APP_PATH_ROOT . '/VERSION'))? file_get_contents(APP_PATH_ROOT . '/VERSION') : null;
  21. if ($version) {
  22. 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>';
  23. }
  24. echo UI::fixFooterPosition('footer_js_tag');
  25. }
  26. // function login($data) {
  27. // echo '';
  28. // }
  29. // function logout($data) {
  30. // echo '';
  31. // }
  32. function home($data) {
  33. include APP_PATH_WWW . '/se-lib/tmpl/defaultPage.php';
  34. }
  35. }