templates/segments/footer.html.twig line 1

Open in your IDE?
  1. <div id="footer">
  2.     {% if editmode %}
  3.     {# {% spaceless %} #}
  4.     {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  5.     {# we use the view helper to have cache buster functionality #}
  6.     {% do pimcore_head_link().appendStylesheet(asset('static/css/index.css')) %}
  7.     {% do pimcore_head_script().appendFile(asset('static/js/index.js')) %}
  8.     {# {% endspaceless %} #}
  9.     {% block head_stylesheets deferred %}
  10.     {{ pimcore_head_link() }}
  11.     {% endblock %}
  12.     {% block scripts deferred %}
  13.     {{ pimcore_head_script() }}
  14.     {% endblock %}
  15.     {% endif %}
  16.     {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  17.     {% if not document is defined or not document %}
  18.         {% set document = pimcore_document(1) %}
  19.     {% endif %}
  20.     {# get the document which should be used to start in navigation | default home #}
  21.     {% set navStartNode = document.getProperty('navigationRoot') %}
  22.     {% if not navStartNode is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  23.         {% set navStartNode = pimcore_document_by_path('/' ~ app.request.getLocale()) %}
  24.     {% endif %}
  25.     {% set mainNavigation = pimcore_build_nav({
  26.         active: document,
  27.         root: navStartNode
  28.     }) %}
  29.     <div class="position-relative">
  30.         <div class="footer-wrapper">
  31.             <div class="container position-relative">
  32.                 <div class="background-light-purple">
  33.                 </div>
  34.                 <div class="col-lg-11 offset-lg-1 footer-wrapper_main-column">
  35.                     <div class="footer-logo-wrapper">
  36.                         <a href="/{{ app.request.getLocale() }}">
  37.                             {% if not pimcore_image('logo_footer').isEmpty() %}
  38.                                 {{ pimcore_image('logo_footer', {width: 130}).getThumbnail('logo_footer').getHtml({class: 'img-fluid'}) | raw  }}
  39.                             {% else %}
  40.                                 {{ pimcore_image('logo_footer',{width: 130, title: 'Drag your image here'}) }}
  41.                             {% endif %}
  42.                         </a>
  43.                     </div>
  44.                     <footer>
  45.                         <div class="row">
  46.                             <div class="col-xl-4 col-lg-4 col-md-8 order-lg-1 order-sm-1 col-sm-7">
  47.                                 <div class="footer-p-16">
  48.                                     {{ pimcore_wysiwyg('footer_social_description', {
  49.                                         "toolbarGroups": [
  50.                                             {
  51.                                                 "name": 'WYSIWYG 1',
  52.                                                 "groups": [ 'basicstyles', 'colors', 'links' ]
  53.                                             }
  54.                                         ],
  55.                                         placeholder: 'Content...' | trans
  56.                                     }) }}
  57.                                 </div>
  58.                                 <div class="d-flex footer-wrapper_social-icons">
  59.                                     <div class="{{ editmode ? 'mr-5' }}">
  60.                                         {% if editmode %}
  61.                                             {{ pimcore_link('footer_social_facebook', {'noText': true}) }}
  62.                                             {{ pimcore_image('footer_social_facebook_image',{width: 60, title: 'Drag your image here'}) }}
  63.                                         {% else %}
  64.                                             <a href="{{ pimcore_link('footer_social_facebook').getHref() }}" target="{{ pimcore_link('footer_social_facebook').getTarget() }}">
  65.                                                 <img src="{{ pimcore_image('footer_social_facebook_image').getThumbnail('social_icon') }}" alt="{{ pimcore_image('footer_social_facebook_image').getAlt() }}">
  66.                                             </a>
  67.                                         {% endif %}
  68.                                     </div>
  69.                                     <div class="{{ editmode ? 'mr-5' }}">
  70.                                         {% if editmode %}
  71.                                             {{ pimcore_link('footer_social_twitter') }}
  72.                                             {{ pimcore_image('footer_social_twitter_image',{width: 60, title: 'Drag your image here'}) }}
  73.                                         {% else %}
  74.                                             <a href="{{ pimcore_link('footer_social_twitter').getHref() }}" target="{{ pimcore_link('footer_social_twitter').getTarget() }}">
  75.                                                 <img src="{{ pimcore_image('footer_social_twitter_image').getThumbnail('social_icon') }}" alt="{{ pimcore_image('footer_social_facebook_image').getAlt() }}">
  76.                                             </a>
  77.                                         {% endif %}
  78.                                     </div>
  79.                                     <div class="{{ editmode ? 'mr-5' }}">
  80.                                         {% if editmode %}
  81.                                             {{ pimcore_link('footer_social_instagram') }}
  82.                                             {{ pimcore_image('footer_social_instagram_image',{width: 60, title: 'Drag your image here'}) }}
  83.                                         {% else %}
  84.                                             <a href="{{ pimcore_link('footer_social_instagram').getHref() }}" target="{{ pimcore_link('footer_social_instagram').getTarget() }}">
  85.                                                 <img src="{{ pimcore_image('footer_social_instagram_image').getThumbnail('social_icon') }}" alt="{{ pimcore_image('footer_social_instagram_image').getAlt() }}">
  86.                                             </a>
  87.                                         {% endif %}
  88.                                     </div>
  89.                                 </div>
  90.                             </div>
  91.                             <div class="col-xl-5 col-lg-7 col-md-8 order-lg-2 order-sm-3 col-sm-7">
  92.                                 <p class="footer-p-16">
  93.                                     {{ pimcore_input('input-2', {placeholder: 'Content...', class : 'pr-5 mr-4 mb-1 pb-2 mt-lg-0 mt-md-4 mr-md-3 pr-sm-0'}) }}
  94.                                 </p>
  95.                                 {% if document is defined and document and not isMobile|default() %}
  96.                                     {% if document.getProperty('contactForm') %}
  97.                                         {{ pimcore_inc(document.getProperty('contactForm').getRealFullpath()) }}
  98.                                     {% endif %}
  99.                                 {% endif %}
  100.                                 {% block popupContactForm %}
  101.                                     {% if document is defined and document and not isMobile|default() %}
  102.                                         {% if document.getProperty('popupContactForm') %}
  103.                                             {{ pimcore_inc(document.getProperty('popupContactForm').getRealFullpath()) }}
  104.                                         {% endif %}
  105.                                     {% endif %}
  106.                                 {% endblock %}
  107.                                 {% block popupNewsletterForm %}
  108.                                     {% if document is defined and document and not isMobile|default() %}
  109.                                         {% if document.getProperty('popupNewsletterForm') %}
  110.                                             {{ pimcore_inc(document.getProperty('popupNewsletterForm').getRealFullpath()) }}
  111.                                         {% endif %}
  112.                                     {% endif %}
  113.                                 {% endblock %}
  114.                             </div>
  115.                             <div class="col-xl-2 col-lg-6 offset-xl-1 offset-lg-6 col-md-3 order-lg-3 order-sm-2 offset-md-0 col-sm-3 offset-sm-2 footer-links-pages_column">
  116.                                 <ul class="footer-links-pages">
  117.                                     {% for nav in mainNavigation %}
  118.                                         <li class="{{ not nav._visible ? 'd-none' }}">
  119.                                             <a href="{{ nav.uri }}">
  120.                                                 {{ nav.title }}
  121.                                             </a>
  122.                                         </li>
  123.                                     {% endfor %}
  124.                                 </ul>
  125.                             </div>
  126.                             <div class="col-lg-12 col-md-3 offset-md-0 order-lg-4 order-sm-4 col-sm-3 offset-sm-2 footer-bottom-links_column">
  127.                                 <div class="d-flex align-items-center footer-bottom-links">
  128.                                     <h6 class="links font-weight-normal">
  129.                                         {{ '©Copyright Meddox' | trans }} <script>document.write(new Date().getFullYear())</script>
  130.                                     </h6>
  131.                                     {% for i in pimcore_iterate_block(pimcore_block("meddoxFaq", {class: 'd-flex'})) %}
  132.                                         <h6 class="links font-weight-normal">
  133.                                             {{ pimcore_link('footer-links') }}
  134.                                         </h6>
  135.                                     {% endfor %}
  136.                                     <h6 class="links font-weight-normal">
  137.                                         {% if not editmode %}
  138.                                             <a href="mailto:{{ pimcore_input('mail_to').getData() }}">
  139.                                                 {{ pimcore_input('mail_to', {placeholder:  'Mail to...'}) }}
  140.                                             </a>
  141.                                         {% else %}
  142.                                             {{ pimcore_input('mail_to', {placeholder:  'Mail to...', 'min-width': 100}) }}
  143.                                         {% endif %}
  144.                                     </h6>
  145.                                 </div>
  146.                             </div>
  147.                         </div>
  148.                     </footer>
  149.                 </div>
  150.                 <img src="{{ asset('static/images/Lines.webp') }}" alt="Lines" class="footer-wrapper__lines">
  151.             </div>
  152.         </div>
  153.     </div>
  154. </div>