feed-icon.html.twig
Same filename in this branch
Theme override for a feed icon.
Available variables:
- url: An internal system path or a fully qualified external URL of the feed.
- title: Title of the feed for describing the feed on the subscribe link.
- attributes: Remaining HTML attributes for the feed link.
- title: A descriptive title of the feed link.
- class: HTML classes to be applied to the feed link.
3 theme calls to feed-icon.html.twig
- Opml::attachTo in core/
modules/ views/ src/ Plugin/ views/ style/ Opml.php - Rss::attachTo in core/
modules/ views/ src/ Plugin/ views/ style/ Rss.php - SyndicateBlock::build in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php - Builds and returns the renderable array for this block plugin.
File
-
core/
themes/ olivero/ templates/ misc/ feed-icon.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a feed icon.
- *
- * Available variables:
- * - url: An internal system path or a fully qualified external URL of the feed.
- * - title: Title of the feed for describing the feed on the subscribe link.
- * - attributes: Remaining HTML attributes for the feed link.
- * - title: A descriptive title of the feed link.
- * - class: HTML classes to be applied to the feed link.
- */
- #}
-
- {{ attach_library('olivero/feed') }}
-
- <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
- <span class="feed-icon__label">
- {{ title }}
- </span>
- <span class="feed-icon__icon" aria-hidden="true">
- {% include "@olivero/../images/rss.svg" %}
- </span>
- </a>