Commit 1fea878d authored by alexpott's avatar alexpott

Issue #2349615 by mortendk | davidhernandez: Copy aggregator templates to Classy.

parent 4838c5d5
......@@ -18,7 +18,7 @@
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('aggregator-feed') }}>
<div>
{{ title_prefix }}
{% if not full %}
......
......@@ -16,9 +16,9 @@
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('aggregator-item') }}>
<div>
{{ title_prefix }}
<h3 class="feed-item-title">
<h3>
<a href="{{ url }}">{{ title }}</a>
</h3>
{{ title_suffix }}
......
{#
/**
* @file
* Default theme implementation for feed item for display in the block.
*
* Available variables:
* - url: URL to the feed item.
* - title: Title of the feed item.
*
* @see template_preprocess_aggregator_block_item()
*
* @ingroup themeable
*/
#}
<a href="{{ url }}">{{ title }}</a>
{#
/**
* @file
* Default theme implementation to present an aggregator feed.
*
* The contents are rendered above feed listings when browsing source feeds.
* For example, "example.com/aggregator/sources/1".
*
* Available variables:
* - title: Title of the feed item.
* - content: All field items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
* {{ content|without('field_example') }} to temporarily suppress the printing
* of a given element.
*
* @see template_preprocess_aggregator_feed()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('aggregator-feed') }}>
{{ title_prefix }}
{% if not full %}
<h2{{ title_attributes }}>{{ title }}</h2>
{% endif %}
{{ title_suffix }}
{{ content }}
</div>
{#
/**
* @file
* Default theme implementation to present a feed item in an aggregator page.
*
* Available variables:
* - url: URL to the originating feed item.
* - title: Title of the feed item.
* - content: All field items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
* {{ content|without('field_example') }} to temporarily suppress the printing
* of a given element.
*
* @see template_preprocess_aggregator_item()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('aggregator-item') }}>
{{ title_prefix }}
<h3 class="feed-item-title">
<a href="{{ url }}">{{ title }}</a>
</h3>
{{ title_suffix }}
{{ content }}
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment