Skip to content

Commit

Permalink
change active state
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jul 31, 2019
1 parent 17ce88a commit 4d61297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/blocks/CarouselBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
?>
<div id="<?= $id ?>" class="carousel<?= $this->cfgValue('blockCssClass', null, ' {{blockCssClass}}') ?> slide<?= $this->cfgValue('crossfade', null, ' carousel-fade'); ?><?= $this->cfgValue('row', null, ' row') ?>" data-ride="carousel">
<div class="carousel-inner">
<?php foreach ($images as $image): $counter++; $isActiveClass = $counter == 1 ? ' active' : ''; if (isset($image['image'])): $indicators .= '<li data-target="#'.$id.'" data-slide-to="'.$counter.'"'.$isActiveClass.'></li>'; ?>
<?php foreach ($images as $image): $counter++; $isActiveClass = $counter == 1 ? ' active' : ''; if (isset($image['image'])): $indicators .= '<li data-target="#'.$id.'" data-slide-to="'.$counter.'" class="'.$isActiveClass.'"></li>'; ?>
<div class="carousel-item<?= $isActiveClass; ?>">
<?php if (!empty($image['link'])): ?>
<a href="<?= $image['link'] ?>" title="<?= $image['title'] ?>">
Expand Down

0 comments on commit 4d61297

Please sign in to comment.