templates/themes/theme/templates/cmspage-kicker.html.twig line 1

Open in your IDE?
  1. {% extends '@theme/base.html.twig' %}
  2. {% block metatitle %}{{page.metatitle}}{% endblock %}
  3. {% block metadescription %}{{page.metadescription|striptags|slice(0, 160)}}{% endblock %}
  4. {% block body %}
  5. {% if page.image %}
  6.     <div class="banner-image banner-image--gradient lazyBackgroundImage" data-mobile="{{ imageCache('/'~ page.getFullImagePath, 'zoomCrop', 1566, 822) }}" data-desktop="{{ imageCache('/'~ page.getFullImagePath, 'zoomCrop', 3200, 1680) }}"></div>
  7. {% endif %}
  8. <section class="page-content{% if page.image == null %} pt-[148px] md:pt-[163px]{% endif %}">
  9.     <div class="container">
  10.         <div class="bg-primary text-center text-white px-10 py-12 relative z-20 mb-12 {% if page.image != null %} -mt-12 sm:-mt-24 md:-mt-52{% else %}mt-12{% endif %}">
  11.             <h1 class="text-white">{{ replaceIfComponentDataExists(pageComponents, "title", page.title) }}</h1>
  12.             {% if page.subtitle %}
  13.                 <h3 class="text-white">{{ allowInlineEditor(page, 'subtitle')|striptags }}</h3>
  14.             {% endif %}
  15.             {% if page.kicker %}
  16.                 {{ allowInlineEditor(page, 'kicker')|raw }}
  17.             {% endif %}
  18.         </div>
  19.         {% if page.content %}
  20.             <div class="row cms-area mb-12">
  21.                 <div class="md:col-10 md:offset-1 green-title">
  22.                     {{ allowInlineEditor(page, 'content')|raw }}
  23.                     {% if page.file %}
  24.                         <video src="{{ page.getFileUrl }}" controls></video>
  25.                     {% endif %}
  26.                 </div>
  27.             </div>
  28.         {% endif %}
  29.         {% if page.image2 or page.image3 %}
  30.             <div class="row mb-12">
  31.                 {% if page.image2 %}
  32.                     <div class="sm:col-6 mb-8 sm:mb-0">
  33.                         <img src="{{ imageCache('/'~ page.getFullImage2Path, 'zoomCrop', 1140, 1040) }}" width="670" height="612" alt="{{ page.title }}" loading="lazy" />
  34.                     </div>
  35.                 {% endif %}
  36.                 {% if page.image3 %}
  37.                     <div class="sm:col-6">
  38.                         <img src="{{ imageCache('/'~ page.getFullImage3Path, 'zoomCrop', 1140, 1040) }}" width="670" height="612" alt="{{ page.title }}" loading="lazy" />
  39.                     </div>
  40.                 {% endif %}
  41.             </div>
  42.         {% endif %}
  43.         {% if page.content2 %}
  44.             <div class="row cms-area mb-12 green-title">
  45.                 <div class="md:col-10 md:offset-1">
  46.                     {{ allowInlineEditor(page, 'content2')|raw }}
  47.                 </div>
  48.             </div>
  49.         {% endif %}
  50.     </div>
  51. </section>
  52. {{ renderComponents('Block 1', pageComponents)|raw }}
  53. {{ renderComponents('Block 2', pageComponents)|raw }}
  54. {{ renderComponents('Block 3', pageComponents)|raw }}
  55. {% if page.id == 19 %}
  56.     {% include '@theme/common/company-info.html.twig' %}
  57. {% endif %}
  58. {% endblock %}
  59. {% block stylesheets %}
  60. {% endblock %}