Created
June 10, 2015 12:49
-
-
Save srenault/8dba3a24594d465830f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row-centered-aired people"> | |
<?php foreach($slice->getValue()->getArray() as $item) { ?> | |
<?php $illustration = $item->get('illustration'); ?> | |
<div class="col-4 center"> | |
<div class="image illustration" <?= $illustration ? 'style="background-image: url('.$illustration->getView("icon")->getUrl().')"' : '' ?>></div> | |
<div class="text"> | |
<h3><?= $item->get('title') ? $item->get('title')->asText() : ''; ?></h3> | |
<?= $item->get('summary') ? $item->get('summary')->asHtml() : ''; ?> | |
</div> | |
</div> | |
<?php } ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment