Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div id="myCarousel" class="carousel slide" data-ride="carousel">
- <ol class="carousel-indicators">
- {% for promocion in promociones %}
- <li data-target="#myCarousel" data-slide-to="{{ loop.index - 1 }}" {% if (loop.index - 1) == 0 %} class="active" {% endif %}></li>
- {% endfor %}
- </ol>
- <div class="carousel-inner">
- {% for promocion in promociones %}
- <div class="item active">
- <a href="{{ path("promociones_ficha", { 'idPromocion': promocion.id }) }}">
- <img src="/promocionesImg/{{ promocion.foto }}" alt="{{ promocion.nombre }} ({{ promocion.fechaini|date('d/m/Y')}})">
- </a>
- </div>
- {% endfor %}
- </div>
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
- </div>
Add Comment
Please, Sign In to add comment