remove title if empty

This commit is contained in:
Diego Najar 2017-07-28 20:52:04 +02:00
parent 32e453dd06
commit 2f31752fa8
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ class pluginLinks extends Plugin {
// HTML for sidebar // HTML for sidebar
$html = '<div class="plugin plugin-pages">'; $html = '<div class="plugin plugin-pages">';
$html .= '<h2 class="plugin-label">'.$this->getValue('label').'</h2>'; if ($this->getValue('label')) {
$html .= '<h2 class="plugin-label">'.$this->getValue('label').'</h2>';
}
$html .= '<div class="plugin-content">'; $html .= '<div class="plugin-content">';
$html .= '<ul>'; $html .= '<ul>';