You are here

views-view-row-rss-podcast-feed.html.twig in Podcast (using Views) 8

Theme override to display an item in a views RSS feed.

Available variables:

  • title: RSS item title.
  • link: RSS item link.
  • description: RSS body text.
  • item_elements: RSS item elements to be rendered as XML (pubDate, creator, guid).

File

templates/views-view-row-rss-podcast-feed.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display an item in a views RSS feed.
  5. *
  6. * Available variables:
  7. * - title: RSS item title.
  8. * - link: RSS item link.
  9. * - description: RSS body text.
  10. * - item_elements: RSS item elements to be rendered as XML (pubDate, creator,
  11. * guid).
  12. *
  13. * @see template_preprocess_views_view_row_rss()
  14. */
  15. #}
  16. <item>
  17. <title>{{ title }}</title>
  18. {% for item in item_elements -%}
  19. <{{ item.key }}{{ item.attributes -}}
  20. {% if item.value -%}
  21. >{{ item.value }}</{{ item.key }}>
  22. {% else -%}
  23. {{ ' />' }}
  24. {% endif %}
  25. {%- endfor %}
  26. </item>