diff --git a/views/default/widgets/image_slideshow/content.css b/views/default/widgets/image_slideshow/content.css index c13b7b7..286ea64 100644 --- a/views/default/widgets/image_slideshow/content.css +++ b/views/default/widgets/image_slideshow/content.css @@ -48,8 +48,8 @@ /* Position the "startstop button" in the center*/ .slide-startstop { - left: calc(50% - 1.5rem); - width: 3rem; + left: calc(50% - 1.75rem); + width: 3.5rem; text-align: center; border-radius: 3px; diff --git a/views/default/widgets/image_slideshow/content.php b/views/default/widgets/image_slideshow/content.php index 1c643b0..544483e 100644 --- a/views/default/widgets/image_slideshow/content.php +++ b/views/default/widgets/image_slideshow/content.php @@ -57,7 +57,7 @@ $id = "slideshow_{$widget->guid}"; $container_class = ['widget-slideshow-container']; -if ((bool) $widget->autoplay) { +if ($widget->autoplay !== '0') { // null == autplay $container_class[] = 'slideshow-autoplay'; } diff --git a/views/default/widgets/image_slideshow/edit.php b/views/default/widgets/image_slideshow/edit.php index cbf3dee..52931a9 100644 --- a/views/default/widgets/image_slideshow/edit.php +++ b/views/default/widgets/image_slideshow/edit.php @@ -42,7 +42,7 @@ '#type' => 'checkbox', '#label' => elgg_echo('widgets:image_slideshow:autoplay'), 'name' => 'params[autoplay]', - 'checked' => (bool) $widget->autoplay, + 'checked' => $widget->autoplay !== '0', // null == autplay 'default' => 0, 'value' => 1, 'switch' => true,