views-view-row-googlenews.html.twig in Views Google News 8
Default theme implementation to display an item in a views Google News feed.
Available variables:
- loc: Item location/link.
- name: Name of the news publication.
- language: Language of the news publication.
- access: Possible values include "Subscription" or "Registration", describing the accessibility of the article.
- genres: A comma-separated list of properties characterizing the content of the article, such as "PressRelease" or "UserGenerated.".
- publication_date: Article publication date in W3C format, using either the "complete date" format (YYYY-MM-DD) or the "complete date plus hours, minutes and seconds" format with time zone designator (YYYY-MM-DDThh:mm:ssTZD) format.
- title: The title of the news article.
- keywords: A comma-separated list of keywords describing the topic of the article.
- stock_tickers: A comma-separated list of up to 5 stock tickers of the companies, mutual funds, or other financial entities that are the main subject of the article.
File
templates/views-view-row-googlenews.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display an item in a views Google News feed.
- *
- * Available variables:
- * - loc: Item location/link.
- * - name: Name of the news publication.
- * - language: Language of the news publication.
- * - access: Possible values include "Subscription" or "Registration", describing the accessibility of the article.
- * - genres: A comma-separated list of properties characterizing the content of the article, such as "PressRelease" or "UserGenerated.".
- * - publication_date: Article publication date in W3C format, using either the "complete date" format (YYYY-MM-DD) or the "complete date plus hours, minutes and seconds" format with time zone designator (YYYY-MM-DDThh:mm:ssTZD) format.
- * - title: The title of the news article.
- * - keywords: A comma-separated list of keywords describing the topic of the article.
- * - stock_tickers: A comma-separated list of up to 5 stock tickers of the companies, mutual funds, or other financial entities that are the main subject of the article.
- *
- * @see template_preprocess_views_view_row_googlenews()
- *
- * @ingroup themeable
- */
- #}
- <url>
- <loc>{{ loc }}</loc>
- <news:news>
- <news:publication>
- <news:name>{{ name }}</news:name>
- <news:language>{{ language }}</news:language>
- </news:publication>
- {% if access %}
- <news:access>{{ access }}</news:access>
- {% endif %}
- {% if genres %}
- <news:genres>{{ genres }}</news:genres>
- {% endif %}
- <news:publication_date>{{ publication_date }}</news:publication_date>
- <news:title>{{ title }}</news:title>
- {% if keywords %}
- <news:keywords>{{ keywords }}</news:keywords>
- {% endif %}
- {% if stock_tickers %}
- <news:stock_tickers>{{ stock_tickers }}</news:stock_tickers>
- {% endif %}
- </news:news>
- </url>