summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-02 19:18:14 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-02 19:18:14 +0000
commitc13025d2326a9ba916a26cdb916647eb4e36c063 (patch)
tree7c8bf3d4782142f2045f09d8abf6859890594d39 /modules/aggregator.module
parent69247d7aad8052482d3feac7041ccca702226b03 (diff)
downloadbrdo-c13025d2326a9ba916a26cdb916647eb4e36c063.tar.gz
brdo-c13025d2326a9ba916a26cdb916647eb4e36c063.tar.bz2
- Patch #30222, #30219 by Uwe: cosmetic changes to the aggregator pages.
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module20
1 files changed, 12 insertions, 8 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index dcc33122d..b4656573e 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -132,13 +132,13 @@ function aggregator_menu($may_cache) {
'weight' => 5);
$items[] = array('path' => 'aggregator/sources', 'title' => t('sources'),
'callback' => 'aggregator_page_sources', 'access' => $view);
- $items[] = array('path' => 'aggregator/rss', 'title' => t('rss feed'),
- 'callback' => 'aggregator_page_rss', 'access' => $view );
$items[] = array('path' => 'aggregator/categories', 'title' => t('categories'),
'callback' => 'aggregator_page_categories', 'access' => $view,
'type' => MENU_ITEM_GROUPING);
-
- $items[] = array('path' => 'aggregator/opml', 'title' => t('opml'),
+ $items[] = array('path' => 'aggregator/rss', 'title' => t('RSS feed'),
+ 'callback' => 'aggregator_page_rss', 'access' => $view,
+ 'type' => MENU_CALLBACK);
+ $items[] = array('path' => 'aggregator/opml', 'title' => t('OPML feed'),
'callback' => 'aggregator_page_opml', 'access' => $view,
'type' => MENU_CALLBACK);
}
@@ -1210,13 +1210,17 @@ function theme_aggregator_page_item($item) {
$output .= "<div class=\"news-item\">\n";
$output .= ' <div class="date">'. format_date($item->timestamp, 'custom', 'H:i') ."</div>\n";
$output .= " <div class=\"body\">\n";
- $output .= ' <div class="title"><a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a></div>\n";
+
+ $source = '';
+ if ($item->ftitle && $item->fid) {
+ $source = '<span class="source">'. l($item->ftitle, "aggregator/sources/$item->fid") .":</span>\n";
+ }
+
+ $output .= ' <div class="title">'. $source .'<a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a></div>\n";
+
if ($item->description) {
$output .= ' <div class="description">'. $item->description ."</div>\n";
}
- if ($item->ftitle && $item->fid) {
- $output .= ' <div class="source">'. t('Source') .': '. l($item->ftitle, "aggregator/sources/$item->fid") ."</div>\n";
- }
$result = db_query('SELECT c.title, c.cid FROM {aggregator_category_item} ci LEFT JOIN {aggregator_category} c ON ci.cid = c.cid WHERE ci.iid = %d ORDER BY c.title', $item->iid);
$categories = array();