Commit cdc0eba1 authored by nghai's avatar nghai Committed by NickWilde

Issue #2866310 by nghai: Controls and Counters are missing for the number of...

Issue #2866310 by nghai: Controls and Counters are missing for the number of items less than (number of items per slide x number of slide)
parent 85cd0ffd
......@@ -143,7 +143,7 @@ function _views_slideshow_preprocess_views_view_slideshow(&$vars) {
foreach ($weight as $location => $order) {
if ($options['widgets'][$location][$widgetTypeId]['enable']) {
// If hide on single slide and only a single slide skip rendering.
if ($options['widgets'][$location][$widgetTypeId]['hide_on_single_slide'] && $slide_count < 2) {
if ($options['widgets'][$location][$widgetTypeId]['hide_on_single_slide'] && $slide_count <= 1) {
continue;
}
$widgetWeight = ($options['widgets'][$location][$widgetTypeId]['weight'] > count($widgetTypes)) ? count($widgetTypes) : $options['widgets'][$location][$widgetTypeId]['weight'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment