<div class="<?php echo $journal3->classes($classes); ?>">
  <button aria-label="Edit" class="admin-edit" type="button" data-edit="<?php echo $edit; ?>"><em class="fa fa-pencil" data-placement="auto" data-toggle="tooltip-hover" data-tooltip-class="admin-edit-tooltip" title="Edit <?php echo $name; ?>"></em></button>
  <div class="slider-wrapper">
    <div class="swiper-container" <?php if ($syncWith) { ?>data-sync-with="<?php echo $syncWith; ?>"<?php } ?>>
      <div class="swiper-wrapper" data-options='<?php echo json_encode($options, JSON_FORCE_OBJECT); ?>'>
        <?php $first_key = array_keys($items)[0]; ?>
        <?php foreach ($items as $index => $item): ?>
          <div class="<?php echo $journal3->classes($item['classes']); ?>">
            <div class="slide-content slide-content-<?php echo $item['type']; ?>">
              <?php if ($item['type'] == 'image'): ?>
                <?php if ($lazyLoad || $first_key !== $index): ?>
                  <img class="lazyload" src="<?php echo $lazyload_placeholder; ?>" data-srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="<?php echo $item['alt']; ?>" title="<?php echo $item['alt']; ?>"/>
                <?php else: ?>
                  <img src="<?php echo $item['image']; ?>" srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="<?php echo $item['alt']; ?>" title="<?php echo $item['alt']; ?>"/>
                <?php endif; ?>
              <?php endif; ?>
            </div>
          </div>
        <?php endforeach; ?>
      </div>
    </div>
  </div>
</div>
