From 386e0861d5d9edbe56da44dc1e6f43684d3503c3 Mon Sep 17 00:00:00 2001 From: arturu Date: Thu, 27 Jun 2024 15:54:22 +0200 Subject: [PATCH] release(2.17.0): tema dei termini di tassonomia in base alla sezione di menu --- ...ologia-documenti--view-mode-full.html.twig | 79 +++++++++++++++++++ ...tipologia-eventi--view-mode-full.html.twig | 79 +++++++++++++++++++ ...tipologia-luoghi--view-mode-full.html.twig | 79 +++++++++++++++++++ ...pologia-progetti--view-mode-full.html.twig | 79 +++++++++++++++++++ .../page--taxonomy-term--tipologia-servizi.md | 2 - ...ipologia-servizi--view-mode-full.html.twig | 0 ...ologia-strutture--view-mode-full.html.twig | 79 +++++++++++++++++++ ...-view-unformatted--taxonomy-term.html.twig | 2 +- 8 files changed, 396 insertions(+), 3 deletions(-) create mode 100644 templates/taxonomy/tipologia_documenti/taxonomy-term--type-tipologia-documenti--view-mode-full.html.twig create mode 100644 templates/taxonomy/tipologia_eventi/taxonomy-term--type-tipologia-eventi--view-mode-full.html.twig create mode 100644 templates/taxonomy/tipologia_luoghi/taxonomy-term--type-tipologia-luoghi--view-mode-full.html.twig create mode 100644 templates/taxonomy/tipologia_progetti/taxonomy-term--type-tipologia-progetti--view-mode-full.html.twig delete mode 100644 templates/taxonomy/tipologia_servizi/page--taxonomy-term--tipologia-servizi.md rename templates/{views/secondo_livello/servizi => taxonomy/tipologia_servizi}/taxonomy-term--type-tipologia-servizi--view-mode-full.html.twig (100%) create mode 100644 templates/taxonomy/tipologia_strutture/taxonomy-term--type-tipologia-strutture--view-mode-full.html.twig diff --git a/templates/taxonomy/tipologia_documenti/taxonomy-term--type-tipologia-documenti--view-mode-full.html.twig b/templates/taxonomy/tipologia_documenti/taxonomy-term--type-tipologia-documenti--view-mode-full.html.twig new file mode 100644 index 00000000..02f5498d --- /dev/null +++ b/templates/taxonomy/tipologia_documenti/taxonomy-term--type-tipologia-documenti--view-mode-full.html.twig @@ -0,0 +1,79 @@ +{# +/** + * @file + * Default theme implementation to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) Name of the current term. + * - content: Items for the content of the term (fields and description). + * Use 'content' to print them all, or print a subset such as + * 'content.description'. Use the following code to exclude the + * printing of a given child element: + * @code + * {{ content|without('description') }} + * @endcode + * - attributes: HTML attributes for the wrapper. + * - page: Flag for the full page state. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. + * - bundle: Machine name of the current vocabulary. + * - view_mode: View mode, e.g. 'full', 'teaser', etc. + * + * @see template_preprocess_taxonomy_term() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% set _section_classes = [ + 'section', + 'bg-redbrown', + 'bg-red-gradient', + 'py-5', + 'py-md-4', + 'py-lg-0', + 'position-relative', + 'overflow-hidden' + ] %} + + +
+
+ {% if content.field_icona[0] is iterable %} +
+
+ {% include '@bi-bcl/icon/icon.html.twig' with { + name: content.field_icona|render|striptags|trim, + size: 'xxxl', + color: 'white', + icon_classes: [''] + } %} +
+
+ {% endif %} +
+
+ {{ title_prefix }} + {% if name %} + {{ name }} + {% endif %} + {{ title_suffix }} +
+
+
+
+ + + +
+
+
+ {{ content|without('field_icona') }} +
+
+
+ +{% endapply %} diff --git a/templates/taxonomy/tipologia_eventi/taxonomy-term--type-tipologia-eventi--view-mode-full.html.twig b/templates/taxonomy/tipologia_eventi/taxonomy-term--type-tipologia-eventi--view-mode-full.html.twig new file mode 100644 index 00000000..00bc1f50 --- /dev/null +++ b/templates/taxonomy/tipologia_eventi/taxonomy-term--type-tipologia-eventi--view-mode-full.html.twig @@ -0,0 +1,79 @@ +{# +/** + * @file + * Default theme implementation to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) Name of the current term. + * - content: Items for the content of the term (fields and description). + * Use 'content' to print them all, or print a subset such as + * 'content.description'. Use the following code to exclude the + * printing of a given child element: + * @code + * {{ content|without('description') }} + * @endcode + * - attributes: HTML attributes for the wrapper. + * - page: Flag for the full page state. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. + * - bundle: Machine name of the current vocabulary. + * - view_mode: View mode, e.g. 'full', 'teaser', etc. + * + * @see template_preprocess_taxonomy_term() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% set _section_classes = [ + 'section', + 'bg-greendark', + 'bg-greendarkgradient', + 'py-5', + 'py-md-4', + 'py-lg-0', + 'position-relative', + 'overflow-hidden' + ] %} + + +
+
+ {% if content.field_icona[0] is iterable %} +
+
+ {% include '@bi-bcl/icon/icon.html.twig' with { + name: content.field_icona|render|striptags|trim, + size: 'xxxl', + color: 'white', + icon_classes: [''] + } %} +
+
+ {% endif %} +
+
+ {{ title_prefix }} + {% if name %} + {{ name }} + {% endif %} + {{ title_suffix }} +
+
+
+
+ + + +
+
+
+ {{ content|without('field_icona') }} +
+
+
+ +{% endapply %} diff --git a/templates/taxonomy/tipologia_luoghi/taxonomy-term--type-tipologia-luoghi--view-mode-full.html.twig b/templates/taxonomy/tipologia_luoghi/taxonomy-term--type-tipologia-luoghi--view-mode-full.html.twig new file mode 100644 index 00000000..02f5498d --- /dev/null +++ b/templates/taxonomy/tipologia_luoghi/taxonomy-term--type-tipologia-luoghi--view-mode-full.html.twig @@ -0,0 +1,79 @@ +{# +/** + * @file + * Default theme implementation to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) Name of the current term. + * - content: Items for the content of the term (fields and description). + * Use 'content' to print them all, or print a subset such as + * 'content.description'. Use the following code to exclude the + * printing of a given child element: + * @code + * {{ content|without('description') }} + * @endcode + * - attributes: HTML attributes for the wrapper. + * - page: Flag for the full page state. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. + * - bundle: Machine name of the current vocabulary. + * - view_mode: View mode, e.g. 'full', 'teaser', etc. + * + * @see template_preprocess_taxonomy_term() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% set _section_classes = [ + 'section', + 'bg-redbrown', + 'bg-red-gradient', + 'py-5', + 'py-md-4', + 'py-lg-0', + 'position-relative', + 'overflow-hidden' + ] %} + + +
+
+ {% if content.field_icona[0] is iterable %} +
+
+ {% include '@bi-bcl/icon/icon.html.twig' with { + name: content.field_icona|render|striptags|trim, + size: 'xxxl', + color: 'white', + icon_classes: [''] + } %} +
+
+ {% endif %} +
+
+ {{ title_prefix }} + {% if name %} + {{ name }} + {% endif %} + {{ title_suffix }} +
+
+
+
+ + + +
+
+
+ {{ content|without('field_icona') }} +
+
+
+ +{% endapply %} diff --git a/templates/taxonomy/tipologia_progetti/taxonomy-term--type-tipologia-progetti--view-mode-full.html.twig b/templates/taxonomy/tipologia_progetti/taxonomy-term--type-tipologia-progetti--view-mode-full.html.twig new file mode 100644 index 00000000..881ee370 --- /dev/null +++ b/templates/taxonomy/tipologia_progetti/taxonomy-term--type-tipologia-progetti--view-mode-full.html.twig @@ -0,0 +1,79 @@ +{# +/** + * @file + * Default theme implementation to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) Name of the current term. + * - content: Items for the content of the term (fields and description). + * Use 'content' to print them all, or print a subset such as + * 'content.description'. Use the following code to exclude the + * printing of a given child element: + * @code + * {{ content|without('description') }} + * @endcode + * - attributes: HTML attributes for the wrapper. + * - page: Flag for the full page state. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. + * - bundle: Machine name of the current vocabulary. + * - view_mode: View mode, e.g. 'full', 'teaser', etc. + * + * @see template_preprocess_taxonomy_term() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% set _section_classes = [ + 'section', + 'bg-bluelectric', + 'bg-bluelectricgradient', + 'py-5', + 'py-md-4', + 'py-lg-0', + 'position-relative', + 'overflow-hidden' + ] %} + + +
+
+ {% if content.field_icona[0] is iterable %} +
+
+ {% include '@bi-bcl/icon/icon.html.twig' with { + name: content.field_icona|render|striptags|trim, + size: 'xxxl', + color: 'white', + icon_classes: [''] + } %} +
+
+ {% endif %} +
+
+ {{ title_prefix }} + {% if name %} + {{ name }} + {% endif %} + {{ title_suffix }} +
+
+
+
+ + + +
+
+
+ {{ content|without('field_icona') }} +
+
+
+ +{% endapply %} diff --git a/templates/taxonomy/tipologia_servizi/page--taxonomy-term--tipologia-servizi.md b/templates/taxonomy/tipologia_servizi/page--taxonomy-term--tipologia-servizi.md deleted file mode 100644 index 15a4d174..00000000 --- a/templates/taxonomy/tipologia_servizi/page--taxonomy-term--tipologia-servizi.md +++ /dev/null @@ -1,2 +0,0 @@ -Questo template viene gestito dalla vista -templates/views/secondo_livello/servizi/page--taxonomy-term--tipologia-servizi.html.twig diff --git a/templates/views/secondo_livello/servizi/taxonomy-term--type-tipologia-servizi--view-mode-full.html.twig b/templates/taxonomy/tipologia_servizi/taxonomy-term--type-tipologia-servizi--view-mode-full.html.twig similarity index 100% rename from templates/views/secondo_livello/servizi/taxonomy-term--type-tipologia-servizi--view-mode-full.html.twig rename to templates/taxonomy/tipologia_servizi/taxonomy-term--type-tipologia-servizi--view-mode-full.html.twig diff --git a/templates/taxonomy/tipologia_strutture/taxonomy-term--type-tipologia-strutture--view-mode-full.html.twig b/templates/taxonomy/tipologia_strutture/taxonomy-term--type-tipologia-strutture--view-mode-full.html.twig new file mode 100644 index 00000000..02f5498d --- /dev/null +++ b/templates/taxonomy/tipologia_strutture/taxonomy-term--type-tipologia-strutture--view-mode-full.html.twig @@ -0,0 +1,79 @@ +{# +/** + * @file + * Default theme implementation to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) Name of the current term. + * - content: Items for the content of the term (fields and description). + * Use 'content' to print them all, or print a subset such as + * 'content.description'. Use the following code to exclude the + * printing of a given child element: + * @code + * {{ content|without('description') }} + * @endcode + * - attributes: HTML attributes for the wrapper. + * - page: Flag for the full page state. + * - term: The taxonomy term entity, including: + * - id: The ID of the taxonomy term. + * - bundle: Machine name of the current vocabulary. + * - view_mode: View mode, e.g. 'full', 'teaser', etc. + * + * @see template_preprocess_taxonomy_term() + * + * @ingroup themeable + */ +#} +{% apply spaceless %} + {% set _section_classes = [ + 'section', + 'bg-redbrown', + 'bg-red-gradient', + 'py-5', + 'py-md-4', + 'py-lg-0', + 'position-relative', + 'overflow-hidden' + ] %} + + +
+
+ {% if content.field_icona[0] is iterable %} +
+
+ {% include '@bi-bcl/icon/icon.html.twig' with { + name: content.field_icona|render|striptags|trim, + size: 'xxxl', + color: 'white', + icon_classes: [''] + } %} +
+
+ {% endif %} +
+
+ {{ title_prefix }} + {% if name %} + {{ name }} + {% endif %} + {{ title_suffix }} +
+
+
+
+ + + +
+
+
+ {{ content|without('field_icona') }} +
+
+
+ +{% endapply %} diff --git a/templates/views/views-view-unformatted--taxonomy-term.html.twig b/templates/views/views-view-unformatted--taxonomy-term.html.twig index 80f74f2e..f336b42e 100644 --- a/templates/views/views-view-unformatted--taxonomy-term.html.twig +++ b/templates/views/views-view-unformatted--taxonomy-term.html.twig @@ -32,7 +32,7 @@
-
+
{% for row in rows %} {{- row.content -}} {% endfor %}