templates/home/products.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     {% for cms_copy in cms_copy_array %}
  4.         {% if cms_copy.ranking == 1 %}
  5.             {% if cms_copy.tabTitle is defined %}
  6.                 {{ attribute(cms_copy,'tabTitle'~Languages.getSelectedLanguageCode)|raw }}
  7.             {% else %}
  8.                 {% if CompanyDetails.getCompanyDetails is not null %}
  9.                     {{ CompanyDetails.getCompanyDetails.companyName }}
  10.                 {% else %}
  11.                     {{ product~Languages.getSelectedLanguageCode }}
  12.                 {% endif %}
  13.             {% endif %}
  14.         {% endif %}
  15.     {% endfor %}
  16. {% endblock %}
  17. {% block body %}
  18.     <section id="my-service-section" class="default-bg-white">
  19.         <div class="default-space"></div>
  20.         <div class="container">
  21.             <div class="row">
  22.                 <div class="col-lg-12 col-md-12 col-sm-12 col-12">
  23.                     <div class="default-title">
  24.                         {% include 'home/products_page/title.html.twig' %}
  25.                     </div>
  26.                 </div>
  27.             </div>
  28.             <div class="row">
  29.                 {% if cms_photo_array is not empty %}
  30.                 <div class="col-md-6">
  31.                     {% else %}
  32.                     <div class="col-12 p-4">
  33.                         {% endif %}
  34.                         {% for cms_copy in cms_copy_array|sort((a, b) => a.ranking <=> b.ranking) %}
  35.                             <div class="row">
  36.                                 <div class="col-12">
  37.                                     <p>{{ attribute(cms_copy,'contentText'~Languages.getSelectedLanguageCode)|raw }}</p>
  38.                                     {% if cms_copy.attachment is not null %}
  39.                                         <a title="{{ cms_copy.attachment }}" target="_blank"
  40.                                            href="{{ path('cms_copy_show_attachment',{id : cms_copy.id }) }}">
  41.                                             <i class="fa fa-paperclip"></i>
  42.                                         </a>
  43.                                     {% endif %}
  44.                                 </div>
  45.                             </div>
  46.                         {% endfor %}
  47.                     </div>
  48.                     <div class="col-md-6">
  49.                         {% for cms_photo in cms_photo_array|sort((a, b) => a.ranking <=> b.ranking) %}
  50.                             <div class="row">
  51.                                 <div class="col-12 mb-5">
  52.                                     <div class="justify-content-center d-flex py-1 p-sm-2 product-image-container m-auto">
  53.                                         {% include 'home/products_page/photo_or_video.html.twig' %}
  54.                                     </div>
  55.                                 </div>
  56.                             </div>
  57.                         {% endfor %}
  58.                     </div>
  59.                     <!------------------ END FIRST GROUP OF PHOTOS --------------->
  60.                     <div class="row">
  61.                         <div class="col-12">
  62.                             {% for sub_page in sub_pages %}
  63.                                 <ul>
  64.                                     <a target="_blank"
  65.                                        href="{{ path('sub_page_show', {id: sub_page.id} ) }}">{{ sub_page.title }}</a>
  66.                                 </ul>
  67.                             {% endfor %}
  68.                         </div>
  69.                     </div>
  70.                 </div>
  71.             </div>
  72.     </section>
  73.     {% if include_contact =="Yes" %}
  74.         {% if CompanyDetails.companyDetails is not null %}
  75.             {% if CompanyDetails.companyDetails.includeContactFormHomePage ==1 %}
  76.                 {% include 'home/parts/contact_us.html.twig' %}
  77.             {% endif %}
  78.         {% endif %}
  79.     {% endif %}
  80. {% endblock %}