slider.tpl 1.5 KB

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