templates/document/card-carousel/carousel.html.twig line 1

Open in your IDE?
  1. {% if dataObjectFolder %}
  2. <div class="case-studies">
  3.     <div data-aos="swipe-right" class="position-relative{% if layoutMode == 'horizontal' %} horizontal-overflow{% endif %}">
  4.         <div class="inner">
  5.             <div class="row{% if (layoutMode == 'grid') or (layoutMode is null) %} gutter-space--md{% endif %}">
  6.                 {% for dataobject in dataObjectFolder.getChildren() %} 
  7.                     {% if dataobject is instanceof('\\Pimcore\\Model\\DataObject\\CaseStudy') %} 
  8.                         {% include 'document/card-carousel/case-study-card.html.twig' with {'caseStudy': dataobject} %} 
  9.                     {% elseif dataobject is instanceof('\\Pimcore\\Model\\DataObject\\BlogPost') %} 
  10.                         {% include 'document/card-carousel/blog-post-card.html.twig' with {'blogPost': dataobject} %} 
  11.                     {% endif %} 
  12.                 {% endfor %}
  13.             </div>
  14.         </div>
  15.     </div>
  16. </div>
  17. {% endif %}