slider.tpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div id="carousel-announcement" class="carousel slide" data-ride="carousel">
  2. <!-- Indicators -->
  3. <ol class="carousel-indicators">
  4. {% for announcement in announcements %}
  5. <li data-target="#carousel-announcement" data-slide-to="{{ loop.index0 }}" {% if loop.index0 == 0 %} class="active" {% endif %}></li>
  6. {% endfor %}
  7. </ol>
  8. <!-- Wrapper for slides -->
  9. <div class="carousel-inner" role="listbox">
  10. {% for announcement in announcements %}
  11. <div class="item {% if loop.index0 == 0 %} active {% endif %}">
  12. <div class="carousel-caption">
  13. </div>
  14. <div class="carousel-content">
  15. {% if announcement.readMore %}
  16. <div class="block-text">
  17. {{ announcement.content }}
  18. <a href="{{ _p.web }}news_list.php?id={{ announcement.id }}">{{ "More" | get_lang }}</a>
  19. </div>
  20. {% else %}
  21. <div class="block-image">
  22. {{ announcement.content }}
  23. </div>
  24. {% endif %}
  25. </div>
  26. </div>
  27. {% endfor %}
  28. </div>
  29. <!-- Controls -->
  30. <a class="left carousel-control" href="#carousel-announcement" role="button" data-slide="prev">
  31. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  32. <span class="sr-only">Previous</span>
  33. </a>
  34. <a class="right carousel-control" href="#carousel-announcement" role="button" data-slide="next">
  35. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  36. <span class="sr-only">Next</span>
  37. </a>
  38. </div>