From 549af03c1d62d68006fb37eaa2d6a4ef28661479 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 9 Jul 2017 22:04:00 +0200 Subject: [PATCH] new theme kernel panic --- bl-kernel/helpers/theme.class.php | 19 +- bl-kernel/page.class.php | 6 + bl-plugins/menu/plugin.php | 13 +- bl-themes/kernel-panic/css/bludit.css | 52 + bl-themes/kernel-panic/css/icomoon.css | 1571 ++++ bl-themes/kernel-panic/css/style.css | 8260 +++++++++++++++++ .../kernel-panic/fonts/icomoon/icomoon.eot | Bin 0 -> 104168 bytes .../kernel-panic/fonts/icomoon/icomoon.svg | 525 ++ .../kernel-panic/fonts/icomoon/icomoon.ttf | Bin 0 -> 104004 bytes .../kernel-panic/fonts/icomoon/icomoon.woff | Bin 0 -> 104080 bytes bl-themes/kernel-panic/index.php | 61 + bl-themes/kernel-panic/js/respond.min.js | 6 + bl-themes/kernel-panic/languages/en_US.json | 7 + bl-themes/kernel-panic/metadata.json | 10 + bl-themes/kernel-panic/php/head.php | 24 + bl-themes/kernel-panic/php/home.php | 20 + bl-themes/kernel-panic/php/page.php | 18 + bl-themes/kernel-panic/php/sidebar.php | 1 + 18 files changed, 10575 insertions(+), 18 deletions(-) create mode 100755 bl-themes/kernel-panic/css/bludit.css create mode 100755 bl-themes/kernel-panic/css/icomoon.css create mode 100755 bl-themes/kernel-panic/css/style.css create mode 100755 bl-themes/kernel-panic/fonts/icomoon/icomoon.eot create mode 100755 bl-themes/kernel-panic/fonts/icomoon/icomoon.svg create mode 100755 bl-themes/kernel-panic/fonts/icomoon/icomoon.ttf create mode 100755 bl-themes/kernel-panic/fonts/icomoon/icomoon.woff create mode 100755 bl-themes/kernel-panic/index.php create mode 100755 bl-themes/kernel-panic/js/respond.min.js create mode 100644 bl-themes/kernel-panic/languages/en_US.json create mode 100644 bl-themes/kernel-panic/metadata.json create mode 100644 bl-themes/kernel-panic/php/head.php create mode 100644 bl-themes/kernel-panic/php/home.php create mode 100644 bl-themes/kernel-panic/php/page.php create mode 100644 bl-themes/kernel-panic/php/sidebar.php diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php index a4a264a6..47dd1934 100644 --- a/bl-kernel/helpers/theme.class.php +++ b/bl-kernel/helpers/theme.class.php @@ -98,23 +98,14 @@ class Theme { } } + public static function favicon($file='favicon.png', $typeIcon='image/png') + { + return ''.PHP_EOL; + } + // ---- OLD - public static function favicon($file='favicon.png', $path=HTML_PATH_THEME_IMG, $typeIcon=true, $echo=true) - { - $type = 'image/png'; - if($typeIcon) { - $type = 'image/x-icon'; - } - $tmp = ''.PHP_EOL; - - if($echo) { - echo $tmp; - } - - return $tmp; - } public static function keywords($keywords, $echo=true) { diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index 7a81728d..3e9205bf 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -183,6 +183,12 @@ class Page { return HTML_PATH_ROOT.PAGE_URI_FILTER.$key; } + // Returns the category name + public function category() + { + return $this->categoryMap('name'); + } + // Returns the category key public function categoryKey() { diff --git a/bl-plugins/menu/plugin.php b/bl-plugins/menu/plugin.php index e824ee8b..1e443152 100644 --- a/bl-plugins/menu/plugin.php +++ b/bl-plugins/menu/plugin.php @@ -33,7 +33,12 @@ class pluginMenu extends Plugin { // HTML for sidebar $html = '
'; - $html .= '

'.$this->getValue('label').'

'; + + // Print the label only if not empty + if( $this->getValue('label') ) { + $html .= '

'.$this->getValue('label').'

'; + } + $html .= '
'; $html .= '