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 .= '