bootstrap_barrio-5.1.3/templates/layout/region--full-width.html.twig

templates/layout/region--full-width.html.twig
{#
/**
 * @file
 * Theme override to display a region.
 *
 * Available variables:
 * - content: The content for this region, typically blocks.
 * - attributes: HTML attributes for the region div.
 * - region: The name of the region variable as defined in the theme's
 *   .info.yml file.
 *
 * @see template_preprocess_region()
 */
#}
{% set region_attributes = attributes %}
{%
  set classes = [
    'region',
    'region-' ~ region|clean_class,
  ]
%}
{% if content %}
  {% embed 'bootstrap_barrio:container' with {
    attributes: create_attribute({'class': ['region-wrapper-' ~ region|clean_class]}),
    full_width: true,
    container: true
  } %}

    {% block content %}
      {% if not clean %}
        <div{{ region_attributes.addClass(classes).removeClass('full-width') }}>
      {% endif %}
          {{ content }}
      {% if not clean %}
        </div>
      {% endif %}
    {% endblock %}

  {% endembed %}
{% endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc