Jump to content

Basil

Members
  • Posts

    49
  • Joined

  • Last visited

Community Answers

  1. Basil's post in Current image was marked as the answer   
    thank you 
    BernhardBthat is exactly what i want!
    <?php $active = ' active'; // set active for first item foreach($page->images as $img) { ?> <div class="item<?= $active ?>"> <img src="<?php echo $img->url; ?>" /> <div class="container"> <div class="carousel-text"> <h2><?php echo $img->description; ?></h2> </div><!-- /carousel-text --> </div><!-- /container --> </div><!-- /item --> <?php $active = ''; // remove class "active" for following items } ?>
×
×
  • Create New...