Fatal error
Fatal error: Call to a member function coverImage() on boolean in /var/www/nudiste/bl-themes/nudiste/init.php on line 9 Empty categories enabled for showing
This commit is contained in:
parent
ecf9b8e3f1
commit
0309b6e56d
|
@ -50,10 +50,15 @@ class pluginCategories extends Plugin {
|
||||||
$count = count($fields['list']);
|
$count = count($fields['list']);
|
||||||
if (!$this->getValue('hideCero') || $count>0) {
|
if (!$this->getValue('hideCero') || $count>0) {
|
||||||
$html .= '<li>';
|
$html .= '<li>';
|
||||||
|
if ($count < 1) {
|
||||||
|
$html .= $fields['name'];
|
||||||
|
$html .= ' ('.count($fields['list']).')';
|
||||||
|
} else {
|
||||||
$html .= '<a href="'.DOMAIN_CATEGORIES.$key.'">';
|
$html .= '<a href="'.DOMAIN_CATEGORIES.$key.'">';
|
||||||
$html .= $fields['name'];
|
$html .= $fields['name'];
|
||||||
$html .= ' ('.count($fields['list']).')';
|
$html .= ' ('.count($fields['list']).')';
|
||||||
$html .= '</a>';
|
$html .= '</a>';
|
||||||
|
}
|
||||||
$html .= '</li>';
|
$html .= '</li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,4 +69,4 @@ class pluginCategories extends Plugin {
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue