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
<div id="carousel-example-generic" class="carousel slide"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<?php $n=0; foreach($page->images() as $image): ?> | |
<li data-target="#carousel-example-generic" data-slide-to="<?php echo $n; $n++; ?>" class="<?php if($n==1) echo ' active' ?>"> | |
<!-- Show a Number for the Indicator --> | |
<?php echo $n; ?> | |
</li> | |
<?php endforeach ?> | |
</ol> |