<?php if (!function_exists('renderMarquee')) {
  function renderMarquee($context, $item) {
    $journal3 = $context['journal3'];
    ?>
    <?php if ($item['link']['href']): ?>
      <a href="<?php echo $item['link']['href']; ?>" class="<?php echo $journal3->classes($item['classes']); ?>" <?php echo $journal3->linkAttrs($item['link']); ?>>
        <?php if ($item['type'] == "title"): ?>
          <span><?php echo $item['title']; ?></span>
        <?php else: ?>
          <?php if ($journal3->get('performanceLazyLoadImagesStatus')): ?>
            <img src="<?php echo $dummy_image; ?>" data-src="<?php echo $item['image']; ?>" <?php if (!empty($item['image2x'])): ?>data-srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" <?php endif; ?> alt="<?php echo $item['alt']; ?>" width="<?php echo $context['image_width']; ?>" height="<?php echo $context['image_height']; ?>" class="lazyload">
          <?php else: ?>
            <img src="<?php echo $item['image']; ?>" <?php if (!empty($item['image2x'])): ?>srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" <?php endif; ?> alt="<?php echo $item['alt']; ?>" width="<?php echo $context['image_width']; ?>" height="<?php echo $context['image_height']; ?>">
          <?php endif; ?>
        <?php endif; ?>
      </a>
    <?php else: ?>
      <div class="<?php echo $journal3->classes($item['classes']); ?>">
        <?php if ($item['type'] == "title"): ?>
          <span><?php echo $item['title']; ?></span>
        <?php else: ?>
          <?php if ($journal3->get('performanceLazyLoadImagesStatus')): ?>
            <img src="<?php echo $dummy_image; ?>" data-src="<?php echo $item['image']; ?>" <?php if (!empty($item['image2x'])): ?>data-srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" <?php endif; ?> alt="<?php echo $item['alt']; ?>" width="<?php echo $context['image_width']; ?>" height="<?php echo $context['image_height']; ?>" class="lazyload">
          <?php else: ?>
            <img src="<?php echo $item['image']; ?>" <?php if (!empty($item['image2x'])): ?>srcset="<?php echo $item['image']; ?> 1x, <?php echo $item['image2x']; ?> 2x" <?php endif; ?> alt="<?php echo $item['alt']; ?>" width="<?php echo $context['image_width']; ?>" height="<?php echo $context['image_height']; ?>">
          <?php endif; ?>
        <?php endif; ?>
      </div>
    <?php endif; ?>
    <?php
  }
} ?>
<?php if ($items): ?>
  <div class="<?php echo $journal3->classes($classes); ?>  <?php echo $color_scheme_module; ?>">
    <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="module-body">
      <div class="marquee-slider">
        <div class="marquee-items marquee-items-1">
          <?php for ($i = 1; $i <= max(1, $repeat); $i++): ?>
            <?php foreach ($items as $item): ?>
              <?php renderMarquee(get_defined_vars(), $item); ?>
            <?php endforeach; ?>
          <?php endfor; ?>
        </div>
        <div class="marquee-items marquee-items-2" aria-hidden="true">
          <?php for ($i = 1; $i <= max(1, $repeat); $i++): ?>
            <?php foreach ($items as $item): ?>
              <?php renderMarquee(get_defined_vars(), $item); ?>
            <?php endforeach; ?>
          <?php endfor; ?>
        </div>
      </div>
    </div>
  </div>
<?php endif; ?>
