From bab8da0208d6f41de37bd3048e31728575327f11 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Jul 2001 00:05:30 +0000 Subject: - import.module: + changed the link name to "news feeds" + changed the link on the "latest news" page --- modules/aggregator.module | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 6b7b72e50..ec13e786b 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -32,7 +32,7 @@ function import_link($type) { } if ($type == "page" && user_access("access news feeds")) { - $links[] = "". t("latest news") .""; + $links[] = "". t("news feeds") .""; } return $links ? $links : array(); @@ -451,15 +451,23 @@ function import_admin() { function import_page_all() { global $theme; + // Display mode 1: + // $output .= t("This page displays the latest news syndicated from external news feeds.") ."

". t("view news by topic") ."
". t("view news by source") ."


"; + + // Display mode 2: + //$output .= "
". t("view news by topic") ."
"; + //$output .= "
". t("view news by source") ."
"; + + // Display mode 3: + $output .= "
[ ". t("view news by topic") ." | ". t("view news by source") ." ]
"; + $result = db_query("SELECT i.*, f.title AS ftitle, f.link AS flink FROM item i LEFT JOIN feed f ON i.fid = f.fid ORDER BY i.iid DESC LIMIT ". variable_get("import_page_limit", 75)); while ($item = db_fetch_object($result)) { $output .= import_format_item($item, 0, 1); } - $header = t("Latest news for all bundles") ." (by bundle) (by feed) "; - $theme->header(); - $theme->box($header, $output); + $theme->box(t("Latest news"), $output); $theme->footer(); } -- cgit v1.2.3