remove title if empty

This commit is contained in:
Diego Najar 2017-07-28 20:52:04 +02:00
parent 32e453dd06
commit 2f31752fa8

View File

@ -125,7 +125,9 @@ class pluginLinks extends Plugin {
// HTML for sidebar
$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 .= '<ul>';