micon.html.twig in Micon 8
Same filename and directory in other branches
micon.html.twig Default theme implementation to present an icon along with its label.
See also
2 theme calls to micon.html.twig
- Micon::getIconElement in src/
Plugin/ SocialMediaLinks/ Iconset/ Micon.php - Get the iconset element.
- MiconIconize::render in src/
MiconIconize.php - Renders the object as a string.
File
templates/micon.html.twigView source
- {#
- /**
- * @file micon.html.twig
- * Default theme implementation to present an icon along with its label.
- *
- * @see template_preprocess_micon()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'icon-label',
- icon_only and icon ? 'visually-hidden',
- ]
- %}
- {% if icon and position=="before" %}
- {{ icon }}
- {% endif %}
- {% if title %}
- <span {{ attributes.addClass(classes) }}>
- {{ title }}
- </span>
- {% endif %}
- {% if icon and position=="after" %}
- {{ icon }}
- {% endif %}