Browse Source

footer blocks template fixe #2420

bach 1 year ago
parent
commit
1a3a15e4c0

+ 50 - 0
web/sites/development.services.yml

@@ -3,6 +3,56 @@
 # To activate this feature, follow the instructions at the top of the
 # 'example.settings.local.php' file, which sits next to this file.
 parameters:
+  twig.config:
+    # Twig debugging:
+    #
+    # When debugging is enabled:
+    # - The markup of each Twig template is surrounded by HTML comments that
+    #   contain theming information, such as template file name suggestions.
+    # - Note that this debugging markup will cause automated tests that directly
+    #   check rendered HTML to fail. When running automated tests, 'debug'
+    #   should be set to FALSE.
+    # - The dump() function can be used in Twig templates to output information
+    #   about template variables.
+    # - Twig templates are automatically recompiled whenever the source code
+    #   changes (see auto_reload below).
+    #
+    # For more information about debugging Twig templates, see
+    # https://www.drupal.org/node/1906392.
+    #
+    # Not recommended in production environments
+    # @default false
+    debug: true
+    # Twig auto-reload:
+    #
+    # Automatically recompile Twig templates whenever the source code changes.
+    # If you don't provide a value for auto_reload, it will be determined
+    # based on the value of debug.
+    #
+    # Not recommended in production environments
+    # @default null
+    auto_reload: null
+    # Twig cache:
+    #
+    # By default, Twig templates will be compiled and stored in the filesystem
+    # to increase performance. Disabling the Twig cache will recompile the
+    # templates from source each time they are used. In most cases the
+    # auto_reload setting above should be enabled rather than disabling the
+    # Twig cache.
+    #
+    # Not recommended in production environments
+    # @default true
+    cache: false
+  # Cacheability debugging:
+  #
+  # Responses with cacheability metadata (CacheableResponseInterface instances)
+  # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
+  #
+  # For more information about debugging cacheable responses, see
+  # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
+  #
+  # Not recommended in production environments
+  # @default false
   http.response.debug_cacheability_headers: true
 services:
   cache.backend.null:

+ 9 - 2
web/themes/custom/reha/templates/page--home.html.twig

@@ -81,10 +81,17 @@
 
   </main>
 
-  {% if page.footer %}
+  {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
     <footer role="contentinfo">
-      {{ page.footer }}
+      <section id="footer-top">{{ page.footer_top }}</section> 
+      <div>
+        <section id="footer-left">{{ page.footer_left }}</section> 
+        <section id="footer-middle">{{ page.footer_middle }}</section> 
+        <section id="footer-right">{{ page.footer_right }}</section> 
+      </div> 
+      <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
   {% endif %}
 
+
 </div>{# /.layout-container #}

+ 8 - 2
web/themes/custom/reha/templates/page--user--register.html.twig

@@ -81,9 +81,15 @@
 
   </main>
 
-  {% if page.footer %}
+{% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
     <footer role="contentinfo">
-      {{ page.footer }}
+      <section id="footer-top">{{ page.footer_top }}</section> 
+      <div>
+        <section id="footer-left">{{ page.footer_left }}</section> 
+        <section id="footer-middle">{{ page.footer_middle }}</section> 
+        <section id="footer-right">{{ page.footer_right }}</section> 
+      </div> 
+      <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
   {% endif %}
 

+ 2 - 2
web/themes/custom/reha/templates/page.html.twig

@@ -81,7 +81,7 @@
 
   </main>
 
-  {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
+  {# {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} #}
     <footer role="contentinfo">
       <section id="footer-top">{{ page.footer_top }}</section> 
       <div>
@@ -91,6 +91,6 @@
       </div> 
       <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
-  {% endif %}
+  {# {% endif %} #}
 
 </div>{# /.layout-container #}