templates/includes/heros/hero-anchor-nav.html.twig line 1

Open in your IDE?
  1. {% set brand = document.getProperty('hasBrand')|default(false) %}
  2. {% if not editmode %}
  3.     {{ include('navigation/breadcrumb.html.twig') }}
  4. {% endif %}
  5. <section class="container page-heading">
  6.     <div class="row gy-3">
  7.         <div class="col-xl-8">
  8.             {{ include('includes/title-blocks/title-block.html.twig', {
  9.                 isBig: true,
  10.                 titleStyle: '',
  11.                 titleTag: 'h1',
  12.             }) }}
  13.         </div>
  14.         {% if brand and brand.navigationLogo %}
  15.             <div class="col-xl-4">
  16.                 <div class="page-heading__img-container">
  17.                     {{ brand.navigationLogo.thumbnail('page-heading-logo').getHtml({
  18.                         imgAttributes: {
  19.                             class: 'js-lazy-img page-heading__logo',
  20.                         },
  21.                         lowQualityPlaceholder: true,
  22.                     })|raw }}
  23.                 </div>
  24.             </div>
  25.         {% endif %}
  26.     </div>
  27.     {% if editmode or not pimcore_link('cta1').isEmpty() %}
  28.         {{ pimcore_link('cta1', {
  29.             class: 'btn btn-dark mb-1'
  30.         }) }}
  31.     {% endif %}
  32.     {% if editmode %}
  33.         <br><br>
  34.     {% endif %}
  35.     {% if editmode or not pimcore_link('cta2').isEmpty() %}
  36.         {{ pimcore_link('cta2', {
  37.             class: 'btn btn-dark mb-1'
  38.         }) }}
  39.     {% endif %}
  40. </section>
  41. {% if not editmode %}
  42.     {{ include('navigation/anchor-nav.html.twig') }}
  43. {% endif %}
  44. {% if editmode or not pimcore_image('hero-image').isEmpty() %}
  45.     <section class="hero-content">
  46.             <div class="row align-items-center">
  47.                 <div class="col-auto">
  48.                     <div class="explore">
  49.                         <span>{{ 'brand.hero.Explore'|trans }}</span>
  50.                         <span aria-hidden="true" class="icon icon-scroll"></span>
  51.                     </div>
  52.                 </div>
  53.                 <div class="col">
  54.                     <div class="ratio ratio-8x3 shadow border-radius-8">
  55.                         {{ pimcore_image('hero-image', {
  56.                             thumbnail: 'hero-content',
  57.                             class: 'ratio-item hero-content__img',
  58.                             imgAttributes: {
  59.                                 class: 'ratio-item js-lazy-img hero-content__img',
  60.                             },
  61.                             lowQualityPlaceholder: true,
  62.                         })|raw }}
  63.                         {% if not editmode and not pimcore_image('hero-image').isEmpty() %}
  64.                             {{ pimcore_image('hero-image').getThumbnail('hero-content').getHtml({
  65.                                 imgAttributes: {
  66.                                     class: 'ratio-item hero-content__img'
  67.                                 },
  68.                                 loading: 'eager',
  69.                             })|raw }}
  70.                         {% endif %}
  71.                     </div>
  72.                 </div>
  73.             </div>
  74.     </section>
  75. {% endif %}