Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<ul>
<?php foreach($pages->find('galerie-a', 'galerie-b', 'galerie-c', 'galerie-d')->images()->shuffle()->limit(15) as $image): ?>
<li>
<a href="<?= $image->parent()->url() ?>">
<?= html($image->parent()->name()) ?>
<img src="<?= $image->url() ?>" alt="<?= html($image->parent()->name()) ?>" />
</a>
</li>
<?php endforeach ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment