From 35bb25839d08410f4efbd205dce7abadaa52db23 Tue, 17 Jan 2012 14:18:16 +0100
From: Bram Goffings <bramgoffings@gmail.com>
Date: Tue, 17 Jan 2012 14:18:11 +0100
Subject: [PATCH] aggregator template



diff --git a/core/modules/aggregator/aggregator-summary-item.tpl.php b/core/modules/aggregator/aggregator-summary-item.tpl.php
index f9199a5..d86e503 100644
--- a/core/modules/aggregator/aggregator-summary-item.tpl.php
+++ b/core/modules/aggregator/aggregator-summary-item.tpl.php
@@ -8,7 +8,9 @@
  * - $feed_url: Link to originating feed.
  * - $feed_title: Title of feed.
  * - $feed_age: Age of remote feed.
+ * - $feed_age_class: Class for $feed_age.
  * - $source_url: Link to remote source.
+ * - $source_url_class: Class for $source url.
  * - $source_title: Locally set title for the source.
  *
  * @see template_preprocess()
@@ -18,8 +20,8 @@
  */
 ?>
 <a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a>
-<span class="age"><?php print $feed_age; ?></span>
+<span class="<?php print $feed_age_class; ?>"><?php print $feed_age; ?></span>

 <?php if ($source_url): ?>,
-  <span class="source"><a href="<?php print $source_url; ?>"><?php print $source_title; ?></a></span>
+  <a href="<?php print $source_url; ?>" class="<?php print $source_url_class; ?>"><?php print $source_title; ?></a>
 <?php endif; ?>
diff --git a/core/modules/aggregator/aggregator.pages.inc b/core/modules/aggregator/aggregator.pages.inc
index 353eedc..2e1d075 100644
--- a/core/modules/aggregator/aggregator.pages.inc
+++ b/core/modules/aggregator/aggregator.pages.inc
@@ -542,11 +542,13 @@
   $variables['feed_url'] = check_url($item->link);
   $variables['feed_title'] = check_plain($item->title);
   $variables['feed_age'] = t('%age old', array('%age' => format_interval(REQUEST_TIME - $item->timestamp)));
+  $variables['feed_age_class'] = 'age';

   $variables['source_url'] = '';
   $variables['source_title'] = '';
   if (!empty($item->feed_link)) {
     $variables['source_url'] = check_url($item->feed_link);
+    $variables['source_url_class'] = 'source';
     $variables['source_title'] = check_plain($item->feed_title);
   }
 }
