annotate core/themes/classy/templates/dataset/aggregator-feed.html.twig @ 5:12f9dff5fda9 tip

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