templates/home/blocks/text_right_img_left.html.twig line 1

Open in your IDE?
  1. <section
  2.  {% if data.id_block  is defined %}id="{{ data.id_block|lower }}"{% endif %}
  3.  class="container block text-left-img-right mb-5 mt-5  {% if even == 1 %}first-section{% endif %}"
  4.  >
  5.     <div class="row">
  6.         <div class="col-md-6 img">
  7.             {% if data.illustration is defined and data.illustration is not empty %}
  8.                 <img src="{{ asset('uploads/' ~ data.illustration.0) }}" alt="{{ data.title }}" loading="lazy">
  9.             {% endif %}
  10.         </div>
  11.         <div class="col-md-6 txt">
  12.             <div class="d-flex align-items-center">
  13.                 {% if data.logo_before_title is defined %}
  14.                     <div class="pr-3 tify {% if data.id_block  is defined %}{{ data.id_block }}{% endif %}">
  15.                         {#% if data.logo_before_title is defined and data.logo_before_title is not empty %}
  16.                             <img src="{{ asset('uploads/') ~ data.logo_before_title.0 }}" alt="{{ data.title }}" class="icon-tool-link">
  17.                         {% else %}
  18.                             <div class="tify2"></div>
  19.                             <div class="tify_key"></div>
  20.                             <div class="tify_arm"></div>
  21.                         {% endif %#}
  22.                         <div class="tify2"></div>
  23.                         <div class="tify_key"></div>
  24.                         <div class="tify_arm"></div>
  25.                     </div>
  26.                 {% endif %}
  27.                 <div class="txt-blc">
  28.                     {% if data.pre_title is defined %}
  29.                         <p class="pre-title">{{ data.pre_title }}</p>
  30.                     {% endif %}
  31.                     {% if data.title is defined and data.title %}
  32.                         <h2 class="blue">{{ data.title }}</h2>
  33.                     {% endif %}
  34.                 </div>
  35.             </div>
  36.             {% if data.description is defined and data.description is not empty %}
  37.                 <div class="blue-dark pb-3">
  38.                     {{ data.description.0|raw }}
  39.                 </div>
  40.             {% elseif 'description' ~ data.block is defined %}
  41.                 <div class="blue-dark pb-3">
  42.                     {{ data['description' ~ data.block].0|raw }}
  43.                 </div>
  44.             {% endif %}
  45.             {% if data.url_link is defined and data.url_link %}
  46.                 <a class="btn-section blue-dark" href="{{ data.url_link }}">{{ data.label_btn }}</a>
  47.             {% endif %}
  48.         </div>
  49.     </div>
  50. </section>