diff --git a/.gitignore b/.gitignore index cf488f2..44f74f4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ vendor/ # OS Generated .DS_Store* ehthumbs.db -Icon? Thumbs.db *.swp diff --git a/templates/widget/cp_widget_headline/frontend.php b/templates/widget/cp_widget_headline/frontend.php index c0a77ec..bd121ff 100644 --- a/templates/widget/cp_widget_headline/frontend.php +++ b/templates/widget/cp_widget_headline/frontend.php @@ -21,8 +21,7 @@ if($headContainerClasses !== ''){ echo '
'; } - - $headClasses = $filter->apply('cppress_widget_heading_classes', $instance['titleclass'] === '' ? array() : array($instance['titleclass']), $instance); + $headClasses = $filter->apply('cppress_widget_heading_classes', $instance['titleclass'], $instance); $haedStyles = $filter->apply('cppress_widget_heading_styles', $styles, $instance); echo '<' . $instance['htag']; echo !empty($headClasses) ? ' class="'. implode(' ', $headClasses) . '"' : '';