Skip to content

Commit

Permalink
changed: slideshow will now default to autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 17, 2023
1 parent e71b1c1 commit 5fc455d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions views/default/widgets/image_slideshow/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion views/default/widgets/image_slideshow/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down
2 changes: 1 addition & 1 deletion views/default/widgets/image_slideshow/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5fc455d

Please sign in to comment.