--- aggregator2.module.orig 2006-07-13 23:38:42.601751688 +0200 +++ aggregator2.module 2006-07-13 23:42:04.430069120 +0200 @@ -382,10 +382,10 @@ function aggregator2_link($type, $node = ($teaser && $node->item_show_link == AGGREGATOR2_SHOW_LINK_TEASER_ONLY) || (!$teaser && $node->item_show_link == AGGREGATOR2_SHOW_LINK_PAGE_ONLY)) { if ($node->type == 'aggregator2_item') { - $links[] = ''. t('full article') .''; + $links[] = theme('aggregator2_link_full_article', $node); } else if ($node->type == 'aggregator2_feed') { - $links[] = ''. t('visit site') .''; + $links[] = theme('aggregator2_link_visit_site', $node); } } global $user; @@ -409,6 +409,24 @@ function aggregator2_link($type, $node = } /** + * This function gives control of contents and functions on the link of 'full article'. + */ +function theme_aggregator2_link_full_article($node) { + $attributes = array('title' => t('Read the full article of this news.'), 'class' => 'full-article'); + $output = l(t('full article'), "$node->link", $attributes); + return $output; +} + +/** + * This function gives control of contents and functions on the link of 'visit site'. + */ +function theme_aggregator2_link_visit_site($node) { + $attributes = array('title' => t('Visit the site of this news.'), 'class' => 'visit-site'); + $output = l(t('visit site'), "$node->link", $attributes); + return $output; +} + +/** * Implementation of hook_cron(). * * Checks news feeds for updates once their refresh interval has elapsed.