Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
though a slideshow should require two or more pics to be called a slideshow, it might happen that there's only one image showing up. The fading effect then, it's not really pleasant. So I put a little "if" condition inside theme_views_slideshow_div_js:
if (sizeof($items) > 1) {
$fade = isset($view->slideshow['fade']) ? $view->slideshow['fade'] : variable_get('views_slideshow_default_fade', VIEWS_SLIDESHOW_DEFAULT_FADE);
$fade = $fade ? 'true' : 'false';
} else {
$fade = 'false';
}
could you please provide an effective patch for that? maybe someone else is interested in that.
Comments
Comment #1
redndahead CreditAttribution: redndahead commentedMarking as duplicate of #280492: Don't rotate if only one