From 8cd97cdd7d9bd526d6b41362d011614919acabae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 22 Oct 2007 09:36:05 +0000 Subject: #147492 by flobruit: make 'more' links themeable --- modules/aggregator/aggregator.module | 4 ++-- modules/blog/blog.module | 2 +- modules/forum/forum.module | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index f64536930..ea59011e4 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -321,7 +321,7 @@ function aggregator_block($op = 'list', $delta = 0, $edit = array()) { if ($feed = db_fetch_object(db_query('SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d', $id))) { $block['subject'] = check_plain($feed->title); $result = db_query_range('SELECT * FROM {aggregator_item} WHERE fid = %d ORDER BY timestamp DESC, iid DESC', $feed->fid, 0, $feed->block); - $read_more = ''; + $read_more = theme('more_link', url('aggregator/sources/'. $feed->fid), t("View this feed's recent news.")); } break; @@ -329,7 +329,7 @@ function aggregator_block($op = 'list', $delta = 0, $edit = array()) { if ($category = db_fetch_object(db_query('SELECT cid, title, block FROM {aggregator_category} WHERE cid = %d', $id))) { $block['subject'] = check_plain($category->title); $result = db_query_range('SELECT i.* FROM {aggregator_category_item} ci LEFT JOIN {aggregator_item} i ON ci.iid = i.iid WHERE ci.cid = %d ORDER BY i.timestamp DESC, i.iid DESC', $category->cid, 0, $category->block); - $read_more = ''; + $read_more = theme('more_link', url('aggregator/categories/'. $category->cid), t("View this category's recent news.")); } break; } diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 2784d720d..53dbbc716 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -192,7 +192,7 @@ function blog_block($op = 'list', $delta = 0) { $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, 10); if ($node_title_list = node_title_list($result)) { $block['content'] = $node_title_list; - $block['content'] .= ''; + $block['content'] .= theme('more_link', url('blog'), t('Read the latest blog entries.')); $block['subject'] = t('Recent blog posts'); return $block; } diff --git a/modules/forum/forum.module b/modules/forum/forum.module index a52dcb5e9..600ae5a46 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -413,9 +413,8 @@ function forum_block($op = 'list', $delta = 0, $edit = array()) { } if (!empty($content)) { - $content .= ''; $block['subject'] = $title; - $block['content'] = $content; + $block['content'] = $content . theme('more_link', url('forum'), t('Read the latest forum topics.')); return $block; } } -- cgit v1.2.3