Version 1
[yaffs-website] / web / core / themes / classy / templates / dataset / aggregator-feed.html.twig
1 {#
2 /**
3  * @file
4  * Theme override to present an aggregator feed.
5  *
6  * The contents are rendered above feed listings when browsing source feeds.
7  * For example, "example.com/aggregator/sources/1".
8  *
9  * Available variables:
10  * - title: Title of the feed item.
11  * - content: All field items. Use {{ content }} to print them all,
12  *   or print a subset such as {{ content.field_example }}. Use
13  *   {{ content|without('field_example') }} to temporarily suppress the printing
14  *   of a given element.
15  * - attributes: HTML attributes for the wrapper.
16  * - title_attributes: Same as attributes, except applied to the main title
17  *   tag that appears in the template.
18  * - title_prefix: Additional output populated by modules, intended to be
19  *   displayed in front of the main title tag that appears in the template.
20  * - title_suffix: Additional output populated by modules, intended to be
21  *   displayed after the main title tag that appears in the template.
22  *
23  * @see template_preprocess_aggregator_feed()
24  */
25 #}
26 <div{{ attributes.addClass('aggregator-feed') }}>
27
28   {{ title_prefix }}
29   {% if not full %}
30     <h2{{ title_attributes }}>{{ title }}</h2>
31   {% endif %}
32   {{ title_suffix }}
33
34   {{ content }}
35
36 </div>