Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IN HOME TEMPLATE:
- <div class="columns is-multiline showcase">
- <?php foreach($page->showcase()->toStructure() as $entry): ?>
- <?php snippet('sections/' . $entry->_fieldset(), array('data' => $entry)) ?>
- <?php endforeach ?>
- </div>
- CODE FROM THE SNIPPET USED ABOVE:
- <div class="column <?= $data->width() ?>">
- <?php if ($data->picture()->isNotEmpty()): ?>
- <figure class="image">
- <a href="<?= $data->project()->title() ?>">
- <img src="<?= $page->image($data->picture())->url() ?>" alt=""></a>
- <figcaption class="has-text-left">
- <a href="http://wwww.google.com">
- <h2 class=""><?= $data->project()->title()->html() ?></h2>
- </a>
- <p> <?= $data->project()->city() ?> </p>
- </figcaption>
- </figure>
- <?php endif ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement