vendor/boldr/cms-bundle/src/Resources/views/section/gallery.html.twig line 1

Open in your IDE?
  1. <div class="boldr-section boldr-gallery {{ boldr_cms_get_section_style_class(section.sectionStyle|default(boldr_cms_get_defaut_section_style())) }}">
  2. {% if section.heading or section.subheading or renderedContent %}
  3. <div class="boldr-gallery-heading">
  4. {% include '@BoldrCms/section/_heading.html.twig' with {
  5. style: section.headingStyle,
  6. heading: section.heading,
  7. subheading: section.subheading
  8. } %}
  9. {% if renderedContent %}
  10. <div class="boldr-gallery-content">
  11. {{ renderedContent }}
  12. </div>
  13. {% endif %}
  14. </div>
  15. {% endif %}
  16. <div class="boldr-gallery-items">
  17. {{ layout.html|raw }}
  18. {% for attachment in fancyboxLinks %}
  19. <a class="boldr-gallery-item-hidden" data-fancybox="gallery" href="{{ attachment.sizes|first }}" data-srcset="{% for key, s in attachment.sizesByWidth %}{% if not loop.first %}, {% endif %}{{ s|replace({' ': '%20'}) ~ ' ' ~ key ~ 'w' }}{% endfor %}">
  20. <img src="{{ attachment.sizes|last }}" />
  21. </a>
  22. {% endfor %}
  23. </div>
  24. </div>