custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/themeware/footer-elements/twt-footernav.html.twig line 1

Open in your IDE?
  1. {# ThemeWare: Footer-Element "Footer-Navigation" container #}
  2. {#
  3.     Create footer column and add shopware footer navigation
  4.     @Storefront/storefront/themeware/widgets/twt-footernav.html.twig
  5. #}
  6. {# TODO: Blöcke prüfen... #}
  7. {# TODO: Kommentare prüfen, ergänzen..., Blöck mit TW? #}
  8. {# TODO: footer-elements zusammenfassen (sh. twt-sidebar-widgets) #}
  9. {% block layout_footer_navigation_columns %}
  10.     {% for root in page.footer.navigation.tree %}
  11.         {% block layout_footer_navigation_column %}
  12.             {# ThemeWare: Add column classes #}
  13.             {% if newcol == "2" %}
  14.                 {% set blockClasses = ['col-md-12'] %}
  15.             {% elseif newcol == "3" %}
  16.                 {% set blockClasses = ['col-md-6'] %}
  17.             {% else %}
  18.                 {# ThemeWare: Add column classes for tablet viewports #}
  19.                 {% if columns == columnsTablet %}
  20.                     {% set blockClasses = ['col-md-' ~ columns] %}
  21.                 {% else %}
  22.                     {% set blockClasses = ['col-xl-' ~ columns, 'col-md-' ~ columnsTablet] %}
  23.                 {% endif %}
  24.             {% endif %}
  25.             {# ThemeWare: Add default classes #}
  26.             {% set blockClasses = ['footer-column', 'footer-column-footernav']|merge(blockClasses) %}
  27.             {# ThemeWare: Add toggle class #}
  28.             {% if toggle != "4" %}
  29.                 {% set blockClasses = ['js-footer-column']|merge(blockClasses) %}
  30.             {% endif %}
  31.             {# ThemeWare: Add element class and element number #}
  32.             {% set blockClasses = ['twt-element-' ~ elementid, 'twt-element-footernav']|merge(blockClasses) %}
  33.             {# ThemeWare: Permanently expanded #}
  34.             {% if toggle == "4" %}
  35.                 {% set blockClasses = ['permanent']|merge(blockClasses) %}
  36.             {% endif %}
  37.             {# ThemeWare: Add class "last" to last element #}
  38.             {% if last == true %}
  39.                 {% set blockClasses = ['last']|merge(blockClasses) %}
  40.             {% endif %}
  41.             {# TODO: add block "container" #}
  42.             <div class="{{ blockClasses|reverse|join(' ') }}">
  43.                 {% block layout_footer_navigation_information_headline %}
  44.                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger{% if toggle == "2" %} show{% endif %}"
  45.                          data-target="#collapseFooterTitle{{ loop.index }}"
  46.                          aria-expanded="true"
  47.                          aria-controls="collapseFooter{{ loop.index }}"
  48.                          role="listitem">
  49.                         {% if root.category.type == 'folder' %}
  50.                             {{ root.category.translated.name }}
  51.                         {% else %}
  52.                             <a href="{{ category_url(root.category) }}"
  53.                                {% if category_linknewtab(root.category) %}target="_blank"{% endif %}
  54.                                title="{{ root.category.translated.name }}">
  55.                                 {{ root.category.translated.name }}
  56.                             </a>
  57.                         {% endif %}
  58.                         {% block layout_footer_navigation_information_icons %}
  59.                             {% if toggle != "4" %}
  60.                                  <div class="footer-column-toggle">
  61.                                       <span class="footer-plus-icon">
  62.                                             {% sw_icon 'plus' %}
  63.                                       </span>
  64.                                       <span class="footer-minus-icon">
  65.                                             {% sw_icon 'minus' %}
  66.                                       </span>
  67.                                  </div>
  68.                              {% endif %}
  69.                         {% endblock %}
  70.                     </div>
  71.                 {% endblock %}
  72.                 {% block layout_footer_navigation_information_content %}
  73.                     <div id="collapseFooter{{ loop.index }}"
  74.                          class="footer-column-content{% if toggle != "4" %} js-footer-column-content collapse{% endif %}{% if toggle == "2" %} show{% endif %}"
  75.                          aria-labelledby="collapseFooterTitle{{ loop.index }}">
  76.                         <div class="footer-column-content-inner">
  77.                             {% block layout_footer_navigation_information_links %}
  78.                                 <ul class="list-unstyled">
  79.                                     {% for treeItem in root.children %}
  80.                                         {% set category = treeItem.category %}
  81.                                         {% set name = category.translated.name %}
  82.                                         {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  83.                                         {% set externalLink = category.translated.externalLink %}
  84.                                         {% block layout_footer_navigation_information_link_item %}
  85.                                             <li class="footer-link-item">
  86.                                                 {% block layout_footer_navigation_information_link %}
  87.                                                     {% if category.type == 'folder' %}
  88.                                                         <div>{{ name }}</div>
  89.                                                     {% else %}
  90.                                                         <a class="footer-link"
  91.                                                            href="{{ category_url(category) }}"
  92.                                                            {% if category_linknewtab(category) %}target="_blank"{% endif %}
  93.                                                            title="{{ name }}">
  94.                                                             {{ name }}
  95.                                                         </a>
  96.                                                     {% endif %}
  97.                                                 {% endblock %}
  98.                                             </li>
  99.                                         {% endblock %}
  100.                                     {% endfor %}
  101.                                 </ul>
  102.                             {% endblock %}
  103.                         </div>
  104.                     </div>
  105.                 {% endblock %}
  106.             </div>
  107.         {% endblock %}
  108.     {% endfor %}
  109. {% endblock %}