From 1a3a15e4c077251ce2efbdec4b805af54de0c704 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 11:39:52 +0100 Subject: [PATCH] footer blocks template fixe #2420 --- web/sites/development.services.yml | 50 +++++++++++++++++++ .../reha/templates/page--home.html.twig | 11 +++- .../templates/page--user--register.html.twig | 10 +++- .../custom/reha/templates/page.html.twig | 4 +- 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index d2857c6..cc931e1 100644 --- a/web/sites/development.services.yml +++ b/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: diff --git a/web/themes/custom/reha/templates/page--home.html.twig b/web/themes/custom/reha/templates/page--home.html.twig index a715374..e1d7109 100644 --- a/web/themes/custom/reha/templates/page--home.html.twig +++ b/web/themes/custom/reha/templates/page--home.html.twig @@ -81,10 +81,17 @@ - {% if page.footer %} + {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} {% endif %} + {# /.layout-container #} diff --git a/web/themes/custom/reha/templates/page--user--register.html.twig b/web/themes/custom/reha/templates/page--user--register.html.twig index 6cab24f..a67c294 100644 --- a/web/themes/custom/reha/templates/page--user--register.html.twig +++ b/web/themes/custom/reha/templates/page--user--register.html.twig @@ -81,9 +81,15 @@ - {% if page.footer %} +{% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} {% endif %} diff --git a/web/themes/custom/reha/templates/page.html.twig b/web/themes/custom/reha/templates/page.html.twig index 4b2a08e..5e43332 100644 --- a/web/themes/custom/reha/templates/page.html.twig +++ b/web/themes/custom/reha/templates/page.html.twig @@ -81,7 +81,7 @@ - {% 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 %} #} - {% endif %} + {# {% endif %} #} {# /.layout-container #}