eleven-8.x-1.0-beta5/eleven/templates/layout-landing/menu/table--structure-menu.html.twig

eleven/templates/layout-landing/menu/table--structure-menu.html.twig
{{ attach_library('eleven/card') }}

{% if rows %}
{% include themepath ~ '/templates/component/navigation/cardlayout/cardlayout.html.twig' %}



<section class="cards js-card-layout-target" aria-label="{{  section_title }}">


  {% for row in rows %}
    <article {{ row.attributes.addClass('card').setAttribute('aria-label', row.cells.title.content) }}>



      <h3 class="card__title card__title--icon card__title--icon-admin-structure-menu">


        <a href="/{{ row.cells.operations.content['#links'].edit.url.getInternalPath() }}">
          {{ row.cells.title.content}}
        </a>
      </h3>

      <p class="card__text">
        {{ row.cells.description.content['#markup']}}
      </p>

      <div class="card__operations L-center">
        {{ row.cells.operations.content }}
      </div>

    </article>
  {% endfor %}
{% endif %}

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

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