You are here

social-album-post.html.twig in Open Social 10.0.x

{{ attach_library('social_album/image') }}

<div class="row social-post-album--popup">
  <div class="social-post-album--popup-slider">
    <div class="social-post-album--popup-slider-wrapper">
      {% for index, item in items %}
        {% for url in item.urls %}
          <div class="social-post-album--popup-item" data-med="{{ url }}" data-active-post="post-index-{{ index }}">
            <img src="{{ url }}">
          </div>
        {% endfor %}
      {% endfor %}
    </div>
  </div>

  {% for index, item in items %}
    <div class="post-comment-wrapper" data-active-post="post-index-{{ index }}">
      <div class="post-header">
        {% trans %}Images posted in album {{ album|placeholder }}{% endtrans %}
      </div>
      <div class="post-message">
        {{ item.post }}
      </div>
    </div>
  {% endfor %}

</div>

File

modules/social_features/social_album/templates/social-album-post.html.twig
View source
  1. {{ attach_library('social_album/image') }}
  2. <div class="row social-post-album--popup">
  3. <div class="social-post-album--popup-slider">
  4. <div class="social-post-album--popup-slider-wrapper">
  5. {% for index, item in items %}
  6. {% for url in item.urls %}
  7. <div class="social-post-album--popup-item" data-med="{{ url }}" data-active-post="post-index-{{ index }}">
  8. <img src="{{ url }}">
  9. </div>
  10. {% endfor %}
  11. {% endfor %}
  12. </div>
  13. </div>
  14. {% for index, item in items %}
  15. <div class="post-comment-wrapper" data-active-post="post-index-{{ index }}">
  16. <div class="post-header">
  17. {% trans %}Images posted in album {{ album|placeholder }}{% endtrans %}
  18. </div>
  19. <div class="post-message">
  20. {{ item.post }}
  21. </div>
  22. </div>
  23. {% endfor %}
  24. </div>