templates/includes/footer.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. {% apply spaceless %}
  3.     {# CSS styles #}
  4.     {% do pimcore_head_link().appendStylesheet(asset('assets/css/app.min.css')) %}
  5.     {% do pimcore_head_link().appendStylesheet(asset('assets/css/editmode.min.css')) %}
  6.     {# CSS styles #}
  7.     {# JS Script #}
  8.     {% do pimcore_head_script().appendFile(asset('assets/js/app.min.js')) %}
  9.     {# JS Script #}
  10. {% endapply %}
  11. {% block head_stylesheets deferred %}
  12.     {{ pimcore_head_link() }}
  13. {% endblock %}
  14. {% endif %}
  15. <footer id="footer" class="{% if editmode %}editmode{% endif %}">
  16.     <div class="container">
  17.         <section class="center-sec flex">
  18.             <div class="contact">
  19.             {% if editmode %}
  20.                 {{  pimcore_wysiwyg('footerContent', {
  21.                     height: 200,
  22.                     customConfig: '/assets/js/editmode/config.js'
  23.                 })
  24.                 }}
  25.             {% elseif not pimcore_wysiwyg('footerContent').isEmpty()  %}
  26.                 {{  pimcore_wysiwyg('footerContent').getData() | raw }}
  27.             {% endif %}
  28.             </div>
  29.             <div class="contact">
  30.                 {% if editmode %}
  31.                     {{  pimcore_wysiwyg('footerContentContact', {
  32.                         height: 200,
  33.                         customConfig: '/assets/js/editmode/config.js'
  34.                     })
  35.                     }}
  36.                 {% elseif not pimcore_wysiwyg('footerContentContact').isEmpty()  %}
  37.                     {{  pimcore_wysiwyg('footerContentContact').getData() | raw }}
  38.                 {% endif %}
  39.             </div>
  40.         </section>
  41.         <section class="social-sec">
  42.             {% if editmode %}
  43.                 <div class="flex gap-60">
  44.                     {{ pimcore_link('insta') }}
  45.                     {{ pimcore_link('facebook') }}
  46.                 </div>
  47.             {% endif %}
  48.             {% if not editmode and not pimcore_link('insta').isEmpty() %}
  49.             <a href="{{ pimcore_link('insta').getHref() }}" target="{{ pimcore_link('insta').getTarget() }}" title="{{ pimcore_link('insta').getTitle() }}">
  50.                 <svg width="18.818" height="18.814" viewBox="0 0 18.818 18.814">
  51.                     <path d="M9.406,6.821a4.824,4.824,0,1,0,4.824,4.824A4.816,4.816,0,0,0,9.406,6.821Zm0,7.96a3.136,3.136,0,1,1,3.136-3.136A3.142,3.142,0,0,1,9.406,14.781Zm6.146-8.157A1.125,1.125,0,1,1,14.427,5.5,1.122,1.122,0,0,1,15.552,6.624Zm3.195,1.142a5.568,5.568,0,0,0-1.52-3.942A5.6,5.6,0,0,0,13.285,2.3c-1.553-.088-6.209-.088-7.762,0A5.6,5.6,0,0,0,1.581,3.819,5.586,5.586,0,0,0,.061,7.761c-.088,1.553-.088,6.209,0,7.762a5.568,5.568,0,0,0,1.52,3.942,5.612,5.612,0,0,0,3.942,1.52c1.553.088,6.209.088,7.762,0a5.568,5.568,0,0,0,3.942-1.52,5.6,5.6,0,0,0,1.52-3.942c.088-1.553.088-6.2,0-7.758ZM16.74,17.19a3.175,3.175,0,0,1-1.788,1.788c-1.238.491-4.177.378-5.546.378s-4.311.109-5.546-.378A3.175,3.175,0,0,1,2.072,17.19c-.491-1.238-.378-4.177-.378-5.546S1.585,7.333,2.072,6.1A3.175,3.175,0,0,1,3.86,4.311c1.238-.491,4.177-.378,5.546-.378s4.311-.109,5.546.378A3.175,3.175,0,0,1,16.74,6.1c.491,1.238.378,4.177.378,5.546S17.231,15.956,16.74,17.19Z" transform="translate(0.005 -2.238)" fill="#fff"/>
  52.                 </svg>
  53.             </a>
  54.             {% endif %}
  55.             {% if not editmode and not pimcore_link('facebook').isEmpty() %}
  56.                 <a href="{{ pimcore_link('facebook').getHref() }}" target="{{ pimcore_link('facebook').getTarget() }}" title="{{ pimcore_link('facebook').getTitle() }}">
  57.                 <svg width="11.763" height="21.865" viewBox="0 0 11.763 21.865">
  58.                     <path d="M13.257,11.741V7.566h3.368v-2.1A5.5,5.5,0,0,1,18.1,1.6,4.693,4.693,0,0,1,21.675,0H25.02V4.176H21.675a.737.737,0,0,0-.59.361,1.465,1.465,0,0,0-.262.886V7.565h4.2v4.175h-4.2V21.865h-4.2V11.741Z" transform="translate(-13.257)" fill="#fff"/>
  59.                 </svg>
  60.             </a>
  61.             {% endif %}
  62.         </section>
  63.         <section class="bottom-sec flex space-between">
  64.             <a {% if not editmode %}href="/" title="{{ '© Felix Stöckli AG' | trans }}" {% endif %}>© {{ 'now' | date('Y') }} Felix Stöckli AG</a>
  65.             <div class="flex gap-30">
  66.                 {% for i in pimcore_block('linkblock').iterator %}
  67.                     {{ pimcore_link('footerLink', {'class': "bottom-sec-link"}) }}
  68.                 {% endfor %}
  69.                 {% if not editmode %}
  70.                 <a aria-label="{{ 'cookies-eu-revoke'|trans }}" class="cookies-eu-revoke" id="cookies-eu-revoke" title="{{ 'cookie-eu-revoke-link-title' | trans }}">{{ 'cookies-eu-revoke'|trans }}</a>
  71.                 {% endif %}
  72.             </div>
  73.         </section>
  74.     </div>
  75. </footer>
  76. {% if editmode %}
  77.     {% block headscripts deferred %}
  78.         {# {{ pimcore_head_script() | raw }} #}
  79.         {{ pimcore_head_script() }}
  80.     {% endblock %}
  81. {% endif %}