slider.tpl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. {% if announcement.readMore %}
  18. <div class="block-text">
  19. {{ announcement.content }}
  20. <a href="{{ _p.web }}news_list.php?id={{ announcement.id }}">{{ "More" | get_lang }}</a>
  21. </div>
  22. {% else %}
  23. <div class="block-image">
  24. {{ announcement.content }}
  25. </div>
  26. {% endif %}
  27. </div>
  28. </div>
  29. {% endfor %}
  30. </div>
  31. <!-- Controls -->
  32. <a class="left carousel-control" href="#carousel-announcement" role="button" data-slide="prev">
  33. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  34. <span class="sr-only">Previous</span>
  35. </a>
  36. <a class="right carousel-control" href="#carousel-announcement" role="button" data-slide="next">
  37. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  38. <span class="sr-only">Next</span>
  39. </a>
  40. </div>