Skip to content

Instantly share code, notes, and snippets.

@rudyrigot
Created Mar 19, 2014
Embed
What would you like to do?
Bootstrap prismic.io blog post - Looping in a view
<?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