file feed-icon.html.twig

Theme override to display a feed icon.

Available variables:

  • url: An internal system path or a fully qualified external URL of the feed.
  • site_name: The name of the site as reported in the system configuration.
  • 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.

File

templates/misc/feed-icon.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a feed icon.
  5. *
  6. * Available variables:
  7. * - url: An internal system path or a fully qualified external URL of the feed.
  8. * - site_name: The name of the site as reported in the system configuration.
  9. * - attributes: Remaining HTML attributes for the feed link.
  10. * - title: A descriptive title of the feed link.
  11. * - class: HTML classes to be applied to the feed link.
  12. *
  13. * @see uikit_preprocess_feed_icon()
  14. *
  15. * @ingroup uikit_themeable
  16. */
  17. #}
  18. {% set link_title = 'Subscribe to @title'|t({'@title': site_name}) %}
  19. <div class="uk-display-block uk-margin-top">
  20. <a href="{{ url }}" title="{{ link_title }}"{{ attributes.addClass('feed-icon') }}><i class="uk-text-top" uk-icon="icon: rss; ratio: 0.8"></i> {{ link_title }}</a>
  21. </div>

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in