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

8.0.x
Alex Pott 2014-10-27 10:54:00 +00:00
parent 4838c5d590
commit 1fea878dc7
5 changed files with 77 additions and 3 deletions

View File

@ -18,7 +18,7 @@
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('aggregator-feed') }}>
<div>
{{ title_prefix }}
{% if not full %}

View File

@ -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 }}

View File

@ -0,0 +1,15 @@
{#
/**
* @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>

View File

@ -0,0 +1,31 @@
{#
/**
* @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>

View File

@ -0,0 +1,28 @@
{#
/**
* @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>