src/Package/Openform/Front/Templates/_includes/_footer.html.twig line 1

Open in your IDE?
  1. {% from '@openform_front_templates/_includes/_icons.html.twig' import facebook, instagram, youtube, logo %}
  2. {% set config = openform_front_util.getConfig() %}
  3. <footer class="footer">
  4.     <h3 class="visuallyhidden">{{ config.Translation[app.request.locale].footerContactTitle }}</h3>
  5.     <div class="footer-wrapper">
  6.         <div class="footer-wrapper__section-light">
  7.             <div class="footer-wrapper__section-light__content">
  8.                 <div class="footer-wrapper__section-light__content">
  9.                     <div class="footer-content">
  10.                         <div class="footer-content__logo">
  11.                             {% if openform_front_util.config.footerLogoPath is defined and openform_front_util.config.footerLogoPath %}
  12.                                 <img src="{{openform_front_util.config.footerLogoPath}}" alt="logo">
  13.                             {% endif %}
  14.                         </div>
  15.                         <span class="footer-content__contact-content block__text">
  16.                             {{ config.Translation[app.request.locale].footerContactText|nl2br }}
  17.                             {% if config.contactEmail %}
  18.                                 <br />
  19.                                 <a class="footer-content__email block__text" href="mailto:{{ config.contactEmail }}">
  20.                                     {{ config.contactEmail }}
  21.                                 </a>
  22.                             {% endif %}
  23.                         </span>
  24.                         
  25.                         <ul class="footer-content__socials">
  26.                             {% if config.linkFacebook %}
  27.                                 <li>
  28.                                     <a href="{{ config.linkFacebook }}" target="_blank" rel="noopener noreferrer">
  29.                                         {{facebook()}}
  30.                                     </a>
  31.                                 </li>
  32.                             {% endif %}
  33.                             {% if config.linkYoutube %}
  34.                                 <li>
  35.                                     <a href="{{ config.linkYoutube }}" target="_blank" rel="noopener noreferrer">
  36.                                         {{youtube()}}
  37.                                     </a>
  38.                                 </li>
  39.                             {% endif %}
  40.                             {% if config.linkInstagram %}
  41.                                 <li>
  42.                                     <a href="{{ config.linkInstagram }}" target="_blank" rel="noopener noreferrer">
  43.                                         {{instagram()}}
  44.                                     </a>
  45.                                 </li>
  46.                             {% endif %}
  47.                         </ul>
  48.                         <span class="footer-content__copyright">
  49.                             {{ config.Translation[app.request.locale].footerCopyrights|nl2br }}
  50.                         </span>
  51.                         <span class="footer-content__copyright">Created by <a href="https://openform.pl" target="_blank">Openform</a></span>
  52.                     </div>
  53.                 </div>
  54.             </div>
  55.         </div>
  56.         <div class="footer-wrapper__section-dark">
  57.        
  58.             {% if rootParent is not defined  %}
  59.             
  60.                 <div class="footer-content__menu">
  61.                     <div class="footer-content__menu__title">
  62.                         menu
  63.                     </div>
  64.                     <ul class="footer-content__menu__links">
  65.                         {% set footMenu = openform_front_util.getFootMenu(app.request.locale) %}
  66.                         {% for item in footMenu %}
  67.                             <a href="{{ item.Translation[app.request.locale].link ?? toolkit_route_localizer.generate('page', { slug : item.Translation[app.request.locale].slug }, app.request.locale) }}" rel="noopener noreferrer"
  68.                                 {{ item.blank ? 'target="_blank"'}}
  69.                                 >
  70.                                 {{ item.Translation[app.request.locale].title|raw|nl2br}}
  71.                             </a>
  72.                         {% endfor %}
  73.                     </ul>
  74.                 </div>
  75.             {% endif %}               
  76.             {% if rootParent is defined %}
  77.                 {% set MenuPageFooterItems = openform_front_util.getMenuPageFooterItems(rootParent) %}
  78.             {% endif %}
  79.             <div class="footer-content__menu">
  80.                 {% if MenuPageFooterItems is defined and MenuPageFooterItems|length > 0 %}
  81.                     <div class="footer-content__menu__title">
  82.                         na skróty
  83.                     </div>
  84.                 {% endif %}
  85.                 <ul class="footer-content__menu__links">
  86.                     {% if MenuPageFooterItems is defined and MenuPageFooterItems|length > 0 %}
  87.                         {% set rootParentSlug = app.request.attributes.get('rootParentSlug') ?? 'empty-valueno' %}            
  88.                         {% set currentUrl = toolkit_route_localizer.generate('menu_page', { 
  89.                                 makSlug: app.request.attributes.get('makSlug'),
  90.                                 rootParentSlug: rootParentSlug,
  91.                                 slug : app.request.attributes.get('slug') 
  92.                             }, app.request.locale) %}
  93.                         {% for item in MenuPageFooterItems %}
  94.                             {% set href = toolkit_route_localizer.generate('menu_page', { 
  95.                                     makSlug: app.request.attributes.get('makSlug'),
  96.                                     rootParentSlug: rootParent.Translation[app.request.locale].slug,
  97.                                     slug : item.Translation[app.request.locale].slug 
  98.                                 }, app.request.locale) %}
  99.                             {% set isActive = currentUrl is defined and currentUrl == href %}
  100.                             <li>
  101.                                 <a 
  102.                                     class="main-menu-nav__url" 
  103.                                     rel="noopener noreferrer" 
  104.                                     href="{{ item.Translation[app.request.locale].link ?? href }}" 
  105.                                     title="{{ item.Translation[app.request.locale].metaTitle }}"{{ isActive ? ' active' }}{{ item.targetBlank ? ' target="_blank"' }}
  106.                                 >
  107.                                     {{ item.Translation[app.request.locale].titleHtml|raw }}
  108.                                 </a>
  109.                             </li>
  110.                         {% endfor %}
  111.                     {% endif %}
  112.                 </ul>
  113.             </div>
  114.             <div class="footer-content__bottom">
  115.                 <ul class="footer-content__bottom__links">
  116.                     {% set footMenu2 = openform_front_util.getFootMenu2(app.request.locale) %}
  117.                     {% for item in footMenu2 %}
  118.                         <a href="{{ item.Translation[app.request.locale].link ?? toolkit_route_localizer.generate('page', { slug : item.Translation[app.request.locale].slug }, app.request.locale) }}" rel="noopener noreferrer"
  119.                             {{ item.blank ? 'target="_blank"'}}
  120.                             >
  121.                             {{ item.Translation[app.request.locale].titleHtml|raw}}
  122.                         </a>
  123.                     {% endfor %}
  124.                 </ul>
  125.             </div>
  126.             
  127.         </div>
  128.     </div>
  129. </footer>