Skip to content

Instantly share code, notes, and snippets.

@joachimesque
Created February 19, 2019 09:12
Show Gist options
  • Save joachimesque/db4e47afa9ea0def6a50a975518f92f9 to your computer and use it in GitHub Desktop.
Save joachimesque/db4e47afa9ea0def6a50a975518f92f9 to your computer and use it in GitHub Desktop.
<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