account-header-links.html.twig in Open Social 8.2
Same filename and directory in other branches
Default theme implementation to display a menu.
Available variables: Links Link:
- classes
- label
- url
1 theme call to account-header-links.html.twig
- AccountHeaderBlock::build in modules/
social_features/ social_user/ src/ Plugin/ Block/ AccountHeaderBlock.php - Builds and returns the renderable array for this block plugin.
File
modules/social_features/social_user/templates/account-header-links.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a menu.
- *
- * Available variables:
- * Links
- * Link:
- * - classes
- * - label
- * - url
- * @ingroup templates
- */
- #}
-
- <ul class="nav navbar-nav">
- {% for item in links|without('search_block') if item.access is not defined or item.access %}
- <li class="{{ item.classes }}">
- <a href="{{ item.url }}" class="{{ item.link_classes }}" {{ item.link_attributes }} {% if item.title %} title="{{ item.title }}" {% endif %}>
- {% if item.icon_image %}
- {{ item.icon_image }}
- {% elseif item.icon_classes %}
- <svg class="navbar-nav__icon {{ item.icon_classes }}">
- <use xlink:href="#{{ item.icon_classes }}" />
- </svg>
- {% endif %}
- <span class="{{item.title_classes}}">{{ item.label }}</span>
- </a>
- {% if item.below %}
- {% if item.below is iterable %}
- <ul class="dropdown-menu">
- {% for item in item.below if item.access is not defined or item.access %}
- {% if item.url %}
- <li class="{{ item.classes }}">
- <a href="{{ item.url }}" class="{{ item.link_classes }}" {{ item.link_attributes }} {% if item.title %} title="{{ item.title }}" {% endif %}>
- <span class="{{item.title_classes}}">{{ item.label }}</span>
- {% if item.count_icon %}
- <span class="{{item.count_classes}}">{{ item.count_icon }}</span>
- {% endif %}
- </a>
- </li>
- {% elseif item.divider %}
- <li class="{{ item.classes }}"></li>
- {% else %}
- <li class="{{ item.classes }}" {{ item.attributes }}>
- {{ item.tagline }}
- <strong class="text-truncate"> {{ item.object }} </strong>
- </li>
- {% endif %}
- {% endfor %}
- </ul>
- {% else %}
- <ul class="dropdown-menu">
- {{ item.below }}
- </ul>
- {% endif %}
- {% endif %}
- </li>
- {% endfor %}
- </ul>