activity.tpl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {% for block in blocks %}
  2. {% if block.title %}
  3. <h2 class="title-tools">{{ block.title }}</h2>
  4. {% endif %}
  5. <div class="row {{ block.class }}">
  6. {% if 'homepage_view'|api_get_setting == 'activity' %}
  7. {% for item in block.content %}
  8. <div class="offset2 col-md-4 course-tool">
  9. {{ item.extra }}
  10. {{ item.visibility }}
  11. {{ item.icon }}
  12. {{ item.link }}
  13. </div>
  14. {% endfor %}
  15. {% endif %}
  16. {% if 'homepage_view'|api_get_setting == 'activity_big' %}
  17. {% for item in block.content %}
  18. <div class="col-xs-6 col-md-3 course-tool">
  19. <div class="big_icon">
  20. {{ item.tool.image }}
  21. </div>
  22. <div class="content">
  23. <h4>
  24. {{ item.visibility }}
  25. {{ item.extra }}
  26. {{ item.link }}
  27. </h4>
  28. </div>
  29. </div>
  30. {% endfor %}
  31. {% endif %}
  32. </div>
  33. {% endfor %}