diff --git a/core/modules/aggregator/aggregator.pages.inc b/core/modules/aggregator/aggregator.pages.inc index 137d987..6cf3756 100644 --- a/core/modules/aggregator/aggregator.pages.inc +++ b/core/modules/aggregator/aggregator.pages.inc @@ -80,13 +80,15 @@ function template_preprocess_aggregator_item(&$variables) { else { $variables['source_date'] = format_date($item->getPostedTime(), 'medium'); } + $variables['sourcetime'] = $item->getPostedTime(); $variables['categories'] = array(); foreach ($item->categories as $category) { $variables['categories'][$category->cid] = l($category->title, 'aggregator/categories/' . $category->cid); + $variables['categorie_title'] = $category->title; + $variables['categorie_url'] = 'aggregator/categories/'.$category->cid; } - $variables['attributes']['class'][] = 'feed-item'; } /** diff --git a/core/modules/aggregator/templates/aggregator-item.html.twig b/core/modules/aggregator/templates/aggregator-item.html.twig index 3736f97..1a0eede 100644 --- a/core/modules/aggregator/templates/aggregator-item.html.twig +++ b/core/modules/aggregator/templates/aggregator-item.html.twig @@ -16,28 +16,44 @@ * * @ingroup themeable */ + #} - -

- {{ feed_title }} -

-
- {% if source_url %} - {{ source_title }} - - {% endif %} - {{ source_date }} -
+
+ + + {{ feed_title }} + {% if content %} -
+
{{ content }}
{% endif %} - {% if categories %} -
- {{ 'Categories'|t }}: {{ categories|join(', ') }} -
- {% endif %} -
+ + +