Created
March 19, 2014 19:28
-
-
Save rudyrigot/9649396 to your computer and use it in GitHub Desktop.
Bootstrap prismic.io blog post - Looping in a view
This file contains 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
<?php foreach($skills as $skill) { ?> | |
<div class="col-sm-6 col-md-3 text-center"> | |
<span class="chart" data-percent="<?php echo $skill->getText('skills.amount') ?>"> | |
<span class="percent"><?php echo $skill->getText('skills.amount') ?></span> | |
</span> | |
<h2 class="text-center"><?php echo $skill->getStructuredText('skills.title')->asText() ?></h2> | |
</div> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment