eleven-8.x-1.0-beta5/eleven/templates/layout/layout--twocol.html.twig

eleven/templates/layout/layout--twocol.html.twig
{#
/**
 * @file
 * Default theme implementation to display a two-column layout.
 *
 * Available variables:
 * - content: The content for this layout.
 * - attributes: HTML attributes for the layout <div>.
 *
 * @ingroup themeable
 */
#}
{%
  set classes = [
    'layout',
    'layout--2col',
  ]
%}
{% if content %}
  <section{{ attributes.addClass(classes) }}>

    {% if content.top %}
      <div {{ region_attributes.top.addClass('layout__top') }}>
        {{ content.top }}
      </div>
    {% endif %}

    {% if content.first %}
      <div {{ region_attributes.first.addClass('layout__first') }}>
        {{ content.first }}
      </div>
    {% endif %}

    {% if content.second %}
      <div {{ region_attributes.second.addClass('layout__second') }}>
        {{ content.second }}
      </div>
    {% endif %}

    {% if content.bottom %}
      <div {{ region_attributes.bottom.addClass('layout__bottom') }}>
        {{ content.bottom }}
      </div>
    {% endif %}
  </section>
{% endif %}

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

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