aerodash-1.0.2/templates/admin/admin-block-content.html.twig

templates/admin/admin-block-content.html.twig
{#
/**
 * @file
 * Gin's theme implementation for the content of an administrative block.
 *
 * Available variables:
 * - content: List of administrative menu items. Each menu item contains:
 *   - link: Link to the admin section.
 *   - title: Short name of the section.
 *   - description: Description of the administrative menu item.
 * - attributes: HTML attributes to be added to the element.
 * - compact: Boolean indicating whether compact mode is turned on or not.
 *
 * @see template_preprocess_admin_block_content()
 * @see claro_preprocess_admin_block_content()
 */
#}
{%
  set item_classes = [
    'admin-item',
  ]
%}
{% if content %}
  <div{{ attributes.addClass('card') }}>
    {% for item in content %}
      {% set description_id = item.title|render|clean_id ~ '-desc' %}
      <div{{ create_attribute({class: item_classes}) }}>
        {{ item.link }}
        <h3 class="item-title" aria-details="{{ description_id }}">{{ item.title }}</h3>
        {% if item.description %}
          <div class="item-description" id="{{ description_id }}">{{ item.description }}</div>
        {% endif %}
      </div>
    {% endfor %}
  </div>
{% endif %}

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

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