iu-8.x-1.x-dev/templates/breadcrumb.html.twig

templates/breadcrumb.html.twig
{#
/**
 * @file
 * Default theme implementation for a breadcrumb trail.
 *
 * Available variables:
 * - breadcrumb: Breadcrumb trail items.
 *
 * @ingroup themeable
 */
#}
{% if breadcrumb %}
<div class="breadcrumbs">
  <ul itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList">
    {% for key, item in breadcrumb %}
      <li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem">
        {% if item.url %}
          <a href="{{ item.url }}" itemprop="item">
            {% if loop.index == 1 and item.url == '/' %}
              <svg xmlns="http://www.w3.org/2000/svg" height="16" viewbox="0 0 16 16" width="16">
                <path d="M15.6,6.4l-7-5.19a.76.76,0,0,0-.19-.12A1,1,0,0,0,8,1H8a1,1,0,0,0-.42.09.76.76,0,0,0-.19.12L.4,6.4a1,1,0,0,0-.4.8,1,1,0,0,0,.2.6A1,1,0,0,0,1.6,8L2,7.7V14a1,1,0,0,0,1,1H13a1,1,0,0,0,1-1V7.7l.4.3a1,1,0,0,0,.6.2,1,1,0,0,0,.6-1.8ZM12,13H9V9H7v4H4V6.22l4-3,4,3Z" fill="currentColor"></path>
              </svg>
              <span itemprop="name" class="visually-hidden">{{ item.text }}</span>
            {% else %}
              <span itemprop="name">{{ item.text }}</span>
            {% endif %}
          </a>
        {% else %}
          <span itemprop="name">{{ item.text }}</span>
        {% endif %}
        <meta content="{{ loop.index }}" itemprop="position"/>
      </li>
    {% endfor %}
  </ul>
</div>
{% endif %}

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

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