Skip to content

Commit

Permalink
release(2.17.0): tema dei termini di tassonomia in base alla sezione …
Browse files Browse the repository at this point in the history
…di menu
  • Loading branch information
arturu committed Jun 27, 2024
1 parent 0cd252a commit 386e086
Show file tree
Hide file tree
Showing 8 changed files with 396 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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'
] %}
<section{{ create_attribute().addClass(_section_classes) }}>
<div class="people-red-forms position-absolute top-0 end-0" aria-hidden="true">
{% include '@skenografia_components/inline-svg/cerchio.svg.twig' %}
</div>
<div class="container">
<div class="row variable-gutters">
{% if content.field_icona[0] is iterable %}
<div class="col-12 col-sm-3 col-lg-3 d-none d-sm-block">
<div class="d-flex justify-content-center py-3">
{% include '@bi-bcl/icon/icon.html.twig' with {
name: content.field_icona|render|striptags|trim,
size: 'xxxl',
color: 'white',
icon_classes: ['']
} %}
</div>
</div>
{% endif %}
<div class="col-12 col-sm-9 col-md-8 col-lg-8">
<div class="hero-title text-start">
{{ title_prefix }}
{% if name %}
<h1{{ title_attributes.addClass('ps-0','mb-2','text-white','fw-lighter') }}>{{ name }}</h1>
{% endif %}
{{ title_suffix }}
</div>
</div>
</div>
</div>
</section>

<section{{ attributes.addClass(['section', 'bg-white']) }}>
<div class="container">
<div class="row variable-gutters">
<div class="col">
{{ content|without('field_icona') }}
</div>
</div>
</div>
</section>
{% endapply %}
Original file line number Diff line number Diff line change
@@ -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'
] %}
<section{{ create_attribute().addClass(_section_classes) }}>
<div class="green-square-forms position-absolute top-0 end-0 d-none d-lg-block" aria-hidden="true">
{% include '@skenografia_components/inline-svg/square-forms.svg.twig' %}
</div>
<div class="container">
<div class="row variable-gutters">
{% if content.field_icona[0] is iterable %}
<div class="col-12 col-sm-3 col-lg-3 d-none d-sm-block">
<div class="d-flex justify-content-center py-3">
{% include '@bi-bcl/icon/icon.html.twig' with {
name: content.field_icona|render|striptags|trim,
size: 'xxxl',
color: 'white',
icon_classes: ['']
} %}
</div>
</div>
{% endif %}
<div class="col-12 col-sm-9 col-md-8 col-lg-8">
<div class="hero-title text-start">
{{ title_prefix }}
{% if name %}
<h1{{ title_attributes.addClass('ps-0','mb-2','text-white','fw-lighter') }}>{{ name }}</h1>
{% endif %}
{{ title_suffix }}
</div>
</div>
</div>
</div>
</section>

<section{{ attributes.addClass(['section', 'bg-white']) }}>
<div class="container">
<div class="row variable-gutters">
<div class="col">
{{ content|without('field_icona') }}
</div>
</div>
</div>
</section>
{% endapply %}
Original file line number Diff line number Diff line change
@@ -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'
] %}
<section{{ create_attribute().addClass(_section_classes) }}>
<div class="people-red-forms position-absolute top-0 end-0" aria-hidden="true">
{% include '@skenografia_components/inline-svg/cerchio.svg.twig' %}
</div>
<div class="container">
<div class="row variable-gutters">
{% if content.field_icona[0] is iterable %}
<div class="col-12 col-sm-3 col-lg-3 d-none d-sm-block">
<div class="d-flex justify-content-center py-3">
{% include '@bi-bcl/icon/icon.html.twig' with {
name: content.field_icona|render|striptags|trim,
size: 'xxxl',
color: 'white',
icon_classes: ['']
} %}
</div>
</div>
{% endif %}
<div class="col-12 col-sm-9 col-md-8 col-lg-8">
<div class="hero-title text-start">
{{ title_prefix }}
{% if name %}
<h1{{ title_attributes.addClass('ps-0','mb-2','text-white','fw-lighter') }}>{{ name }}</h1>
{% endif %}
{{ title_suffix }}
</div>
</div>
</div>
</div>
</section>

<section{{ attributes.addClass(['section', 'bg-white']) }}>
<div class="container">
<div class="row variable-gutters">
<div class="col">
{{ content|without('field_icona') }}
</div>
</div>
</div>
</section>
{% endapply %}
Original file line number Diff line number Diff line change
@@ -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'
] %}
<section{{ create_attribute().addClass(_section_classes) }}>
<div class="green-square-forms position-absolute top-0 end-0 d-none d-lg-block" aria-hidden="true">
{% include '@skenografia_components/inline-svg/square-forms.svg.twig' %}
</div>
<div class="container">
<div class="row variable-gutters">
{% if content.field_icona[0] is iterable %}
<div class="col-12 col-sm-3 col-lg-3 d-none d-sm-block">
<div class="d-flex justify-content-center py-3">
{% include '@bi-bcl/icon/icon.html.twig' with {
name: content.field_icona|render|striptags|trim,
size: 'xxxl',
color: 'white',
icon_classes: ['']
} %}
</div>
</div>
{% endif %}
<div class="col-12 col-sm-9 col-md-8 col-lg-8">
<div class="hero-title text-start">
{{ title_prefix }}
{% if name %}
<h1{{ title_attributes.addClass('ps-0','mb-2','text-white','fw-lighter') }}>{{ name }}</h1>
{% endif %}
{{ title_suffix }}
</div>
</div>
</div>
</div>
</section>

<section{{ attributes.addClass(['section', 'bg-white']) }}>
<div class="container">
<div class="row variable-gutters">
<div class="col">
{{ content|without('field_icona') }}
</div>
</div>
</div>
</section>
{% endapply %}

This file was deleted.

Loading

0 comments on commit 386e086

Please sign in to comment.