Skip to content

Instantly share code, notes, and snippets.

Created Mar 19, 2014
What would you like to do?
Bootstrap 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>
<h2 class="text-center"><?php echo $skill->getStructuredText('skills.title')->asText() ?></h2>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment