<?php include('include_helper_content.html5'); ?>
<div class="<?= $custom->classDMAGrid ?>"<?= $this->attributes ?>>
<div class="<?= $custom->classModified ?> c-galleryLogos--perRow-<?= $this->perRow ?>"<?= $this->cssID ?>>
<div class="c-galleryLogos__inner">
<?php
$dataSorted = array_map('\StringUtil::binToUuid', deserialize($this->orderSRC, true));
foreach ( $dataSorted as $index => $data ):
?>
<?php if (
($index < $this->numberOfItems || $this->numberOfItems == 0) &&
($image = $this->getImageObject($data, $this->size))): ?>
<div class="c-galleryLogos__item">
<?php if(isset($image->href)): ?><a href="<?= $image->href ?>"><?php endif; ?>
<?php $this->insert('picture_default', $image->picture) ?>
<?php if(isset($image->href)): ?></a><?php endif; ?>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>