Issue #2349615 by mortendk | davidhernandez: Copy aggregator templates to Classy.
parent
4838c5d590
commit
1fea878dc7
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue