templates/areas/footer-brick/view.html.twig line 1

Open in your IDE?
  1. {# FRONTEND FOLDER pimcore-coolworld/frontend/partials/footer.php #}
  2. {% embed 'app/area-brick-layout.html.twig' %}
  3.     {% block content %}
  4.         <div class="text-white bg-blue-900 border-t-[10px] border-blue-500">
  5.             <div class="container grid grid-cols-1 gap-4 py-12 mx-auto leading-8 md:gap-6 md:py-20 sm:grid-cols-2 md:grid-cols-4">
  6.                 {# The first Column is different in that the links are related to product Categories #}
  7.                 {% include 'areas/footer-brick/partials/_column_product_categories.html.twig' with {'column_id': 'column_1'} %}
  8.                 {# Then place two regular columns #}
  9.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_2'} %}
  10.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_3'} %}
  11.                 {# The last column is a default column, but extended with a language switch and social media buttons #}
  12.                 {% include 'areas/footer-brick/partials/_column_regular_language_socials.html.twig' with {'column_id': 'column_4'} %}
  13.             </div>
  14.         </div>
  15.         <div class="bg-gray-100">
  16.             <div class="container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row">
  17.                 <div class="max-w-[225px] md:max-w-[335px]">
  18.                     {% if document.getProperty('navigationRoot') is not null %}
  19.                         <a href="{{ document.getProperty('navigationRoot').url | trimUrl }}">
  20.                             {% if document.getProperty('replacement_logo') is not null %}
  21.                                 {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  22.                             {% elseif pimcore_website_config('logo_full').thumbnail is defined %}
  23.                                 {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  24.                             {% endif %}
  25.                         </a>
  26.                     {% else %}
  27.                         {% if document.getProperty('replacement_logo') is not null %}
  28.                             {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  29.                         {% elseif pimcore_website_config('logo_full') is not null
  30.                             and pimcore_website_config('logo_full').thumbnail is defined %}
  31.                             {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  32.                         {% endif %}
  33.                     {% endif %}
  34.                 </div>
  35.                 <div class="flex flex-col text-base font-bold md:flex-row">
  36.                     <span class="mb-2 mr-6 md:mb-0">&copy; {{ "now"|date('Y') }} Coolworld Rentals</span>
  37.                     <ul>
  38.                         {% set subFooterLinkCount = pimcore_block("subfooter_links").getCount() %}
  39.                         {% for i in pimcore_block("subfooter_links").iterator %}
  40.                             <li class="mb-2 md:mb-0 {{ loop.index != subFooterLinkCount ? "md:mr-6" : "" }} md:inline hover:underline">{{ pimcore_link('subfooter_sub_link') }}</li>
  41.                         {% endfor %}
  42.                     </ul>
  43.                 </div>
  44.             </div>
  45.         </div>
  46.         {% set facebook_url = pimcore_website_config('facebook_url', null, data.request.locale) %}
  47.         {% set twitter_url = pimcore_website_config('twitter_url', null, data.request.locale) %}
  48.         {% set linkedin_url = pimcore_website_config('linkedin_url', null, data.request.locale) %}
  49.         {% set instagram_url = pimcore_website_config('instagram_url', null, data.request.locale) %}
  50.         {% set sameAs = [facebook_url, twitter_url, linkedin_url, instagram_url] | filter(u => u) %}
  51.         <script type="application/ld+json">
  52.         {
  53.             "@context": "http://schema.org",
  54.             "@type": "Organization",
  55.             "@id": "{{ hostname }}",
  56.             "legalName": "{{ document.getProperty('organizationLegalName') }}",
  57.             "description": "{{ document.getProperty('organizationDescription') }}",
  58.             "url": "{{ hostname }}",
  59.             "address": {
  60.                 "@type": "PostalAddress",
  61.                     "streetAddress": "{{ document.getProperty('organizationStreet') ?? null }}",
  62.                     "addressLocality": "{{ document.getProperty('organizationCity') ?? null }}",
  63.                     "addressRegion": "{{ document.getProperty('organizationState') ?? null }}",
  64.                     "postalCode": "{{ document.getProperty('organizationZip') ?? null }}",
  65.                     "addressCountry": "{{ document.getProperty('organizationCountry') ?? null }}"
  66.             },
  67.             {% if document.getProperty('organizationLogo') %}
  68.                 "logo": "{{ hostname ~ '/var/assets' ~ document.getProperty('organizationLogo').realFullPath }}",
  69.             {% endif %}
  70.             "sameAs": [
  71.                 "{{ sameAs | join('","') | raw }}"
  72.             ]
  73.         }
  74.         </script>
  75.     {% endblock %}
  76. {% endembed %}