You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
988 B
30 lines
988 B
{# |
|
/** |
|
* @file |
|
* Olivera theme implementation to display primary and secondary local tasks. |
|
* |
|
* Available variables: |
|
* - primary: HTML list items representing primary tasks. |
|
* - secondary: HTML list items representing secondary tasks. |
|
* |
|
* Each item in these variables (primary and secondary) can be individually |
|
* themed in menu-local-task.html.twig. |
|
* |
|
* @ingroup themeable |
|
*/ |
|
#} |
|
|
|
{{ attach_library('olivera/tabs') }} |
|
|
|
{% if primary %} |
|
<h2 id="primary-tabs-title" class="visually-hidden">{{ 'Primary tabs'|t }}</h2> |
|
<nav role="navigation" class="tabs-wrapper" aria-labelledby="primary-tabs-title" data-drupal-nav-primary-tabs> |
|
<ul class="tabs tabs--primary">{{ primary }}</ul> |
|
</nav> |
|
{% endif %} |
|
{% if secondary %} |
|
<h2 id="secondary-tabs-title" class="visually-hidden">{{ 'Secondary tabs'|t }}</h2> |
|
<nav role="navigation" class="tabs-wrapper" aria-labelledby="secondary-tabs-title"> |
|
<ul class="tabs tabs--secondary">{{ secondary }}</ul> |
|
</nav> |
|
{% endif %}
|
|
|