views_rss-8.x-2.x-dev/templates/views-view-rss.html.twig

templates/views-view-rss.html.twig
{#
/**
 * @file
 * Default template for feed displays that use the RSS style.
 *
 * Available variables:
 * - link: The link to the feed (the view path).
 * - namespaces: The XML namespaces (added automatically).
 * - title: The title of the feed (as set in the view).
 * - description: The feed description (from feed settings).
 * - langcode: The language encoding.
 * - channel_elements: The formatted channel elements.
 * - items: The feed items themselves.
 *
 * @see template_preprocess_views_view_rss()
 *
 * @ingroup themeable
 */
#}
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="{{ link }}"{{ namespaces }}>
  <channel>
    <title>{{ title -}}</title>
    <link>{{ link -}}</link>
    <description><![CDATA[{{ description -}}]]></description>
    <language>{{ langcode -}}</language>
    {##
     # Output the channel elements as a raw tag so that the included HTML tags
     # are not converted to HTML entities. Also rename the "imagelink" tag to
     # just "link" to avoid it being filtered out by Drupal's normal rendering
     # system. This is safe to do as any security concerns are taken care of
     # by the render function.
     #}
    {{ channel_elements|render|replace({"imagelink": "link"})|raw -}}
    {{ items -}}
  </channel>
</rss>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc