bocian.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. // TODO: file and class name must have the same name as project
  3. class Theme_bocian extends ThemeDefault {
  4. function head() {
  5. // echo ''; // TODO: dodać bootsrap-theme-bocian
  6. echo '<meta name="robots" content="noindex, nofollow">';
  7. UI::inlineCSS(dirname(__FILE__) . '/assets/css/styles.css');
  8. echo UI::h('style', [ 'type' => "text/css" ], "
  9. .AjaxTable { font-size:14px }
  10. .AjaxTable .tblAjax__head__filter .stickyCol1 button { padding:1px 3px }
  11. .AjaxTable tbody .stickyCol1 { font-size:12px }
  12. .popover-content li { text-align:left; font-size:14px }
  13. ");
  14. }
  15. function top() {
  16. include dirname(__FILE__) . '/view/top.php';
  17. //todo: demo load data for graph :DELETE line if tested
  18. // UI::inlineRawJS(dirname(__FILE__) . '/demoGraph/sampleData/sampleData.js');
  19. //UI::inlineRawJS(dirname(__FILE__) . '/assets/js/graph/GetFeature.js');
  20. // UI::inlineRawJS(dirname(__FILE__) . '/assets/js/graph/parser.js');
  21. }
  22. function footer() {
  23. include dirname(__FILE__) . '/view/footer.php';
  24. //todo: ujednolicic wczytanie themy widoków i css w jednym katalogu(obecnie css w katalogu static a widoki w katalogu tmp )
  25. UI::inlineRawJS(dirname(__FILE__) . '/assets/js/scripts.js');
  26. // graph lib
  27. // UI::inlineRawJS(dirname(__FILE__) . '/assets/js/graph/d3.v3.min.js');
  28. //UI::inlineRawJS(dirname(__FILE__) . '/assets/js/graph/csaladenes/sankey/sankey.js');
  29. // UI::inlineRawJS(dirname(__FILE__) . '/assets/js/graph/csaladenes/sankey/sankey-init.js');
  30. }
  31. function login($data) {
  32. if (is_array($data) && !empty($data)) {
  33. extract($data);
  34. }
  35. include dirname(__FILE__) . '/view/login.php';
  36. }
  37. function logout($data) {
  38. if (is_array($data) && !empty($data)) {
  39. extract($data);
  40. }
  41. include dirname(__FILE__) . '/view/logout.php';
  42. }
  43. function home($data) {
  44. if (is_array($data) && !empty($data)) {
  45. extract($data);
  46. }
  47. include dirname(__FILE__) . '/view/home.php';
  48. }
  49. }