at_theme-1.4.1/at_core/templates/misc/feed-icon.html.twig
at_core/templates/misc/feed-icon.html.twig
{# /** * @file * Theme override for a feed icon. * * AT embeds an SVG icon directly into the template which allows greater * control over the image in CSS. Set the width and height on the SVG element * or on the container, e.g. the <a> element. * * Available variables: * - url: An internal system path or a fully qualified external URL of the feed. * - icon: The rendered HTML (<img> tag) for the default system feed icon image. * - 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. * * @see template_preprocess_feed_icon() */ #} <a href="{{ url }}"{{ attributes.addClass('feed-icon') }}> <svg version="1.1" class="feed-icon-rss" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g> <path class="feed-icon-rss__path" d="M2.7,14.5c-0.8,0-1.4,0.3-1.9,0.8C0.3,15.9,0,16.5,0,17.3c0,0.8,0.3,1.4,0.8,1.9 C1.3,19.7,2,20,2.7,20s1.4-0.3,1.9-0.8c0.5-0.5,0.8-1.2,0.8-1.9c0-0.8-0.3-1.4-0.8-1.9C4.1,14.8,3.5,14.5,2.7,14.5z"/> <path class="feed-icon-rss__path" d="M9,11C7.9,9.9,6.7,9.1,5.3,8.4C3.9,7.8,2.5,7.4,1,7.3H0.9c-0.2,0-0.4,0.1-0.6,0.2 C0.1,7.7,0,7.9,0,8.2v1.9c0,0.2,0.1,0.4,0.2,0.6C0.4,10.9,0.6,11,0.8,11c2.2,0.2,4,1.1,5.6,2.6C7.9,15.2,8.8,17,9,19.2 c0,0.2,0.1,0.4,0.3,0.6C9.5,19.9,9.7,20,9.9,20h1.9c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.2-0.7c-0.1-1.5-0.5-3-1.1-4.3 C10.9,13.3,10.1,12.1,9,11z"/> <path class="feed-icon-rss__path" d="M18.3,11.9c-1-2.3-2.4-4.3-4.2-6c-1.8-1.8-3.8-3.2-6-4.2C5.8,0.7,3.4,0.1,1,0h0 C0.7,0,0.5,0.1,0.3,0.3C0.1,0.4,0,0.6,0,0.9v2c0,0.2,0.1,0.4,0.2,0.6s0.4,0.3,0.6,0.3c2,0.1,4,0.6,5.8,1.4s3.4,1.9,4.8,3.3 c1.3,1.3,2.4,2.9,3.3,4.8c0.8,1.8,1.3,3.8,1.4,5.8c0,0.2,0.1,0.4,0.3,0.6c0.2,0.2,0.4,0.2,0.6,0.2h2c0.3,0,0.5-0.1,0.7-0.3 c0.2-0.2,0.3-0.4,0.3-0.7C19.9,16.6,19.3,14.2,18.3,11.9z"/> </g> </svg> {%- set feed_title = title ? title -%} <span class="visually-hidden">{{ 'Subscribe' }}{%- if feed_title %}{{ 'Subscribe to @title'|t({'@title': feed_title}) }}{% endif -%}</span> </a>