slider.tpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. {{ announcement.content }}
  14. {% if announcement.readMore %}
  15. <a href="{{ _p.web }}news_list.php?id={{ announcement.id }}">{{ "More" | get_lang }}</a>
  16. {% endif %}
  17. <div class="carousel-caption">
  18. <h3>{{ announcement.title }}</h3>
  19. </div>
  20. </div>
  21. {% endfor %}
  22. </div>
  23. <!-- Controls -->
  24. <a class="left carousel-control" href="#carousel-announcement" role="button" data-slide="prev">
  25. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  26. <span class="sr-only">Previous</span>
  27. </a>
  28. <a class="right carousel-control" href="#carousel-announcement" role="button" data-slide="next">
  29. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  30. <span class="sr-only">Next</span>
  31. </a>
  32. </div>