diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-07-14 00:05:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-07-14 00:05:30 +0000 |
commit | bab8da0208d6f41de37bd3048e31728575327f11 (patch) | |
tree | 4d5c50186f20bb7348d4ca843c1c4459ec31978c /modules | |
parent | 95a818107d203cbb0d9f1c0196f659a70be0be63 (diff) | |
download | brdo-bab8da0208d6f41de37bd3048e31728575327f11.tar.gz brdo-bab8da0208d6f41de37bd3048e31728575327f11.tar.bz2 |
- import.module:
+ changed the link name to "news feeds"
+ changed the link on the "latest news" page
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aggregator.module | 16 | ||||
-rw-r--r-- | modules/aggregator/aggregator.module | 16 | ||||
-rw-r--r-- | modules/import.module | 16 |
3 files changed, 36 insertions, 12 deletions
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[] = "<a href=\"module.php?mod=import\">". t("latest news") ."</a>"; + $links[] = "<a href=\"module.php?mod=import\">". t("news feeds") ."</a>"; } 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.") ."<p /><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a><br /><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a><hr />"; + + // Display mode 2: + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a></div> "; + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a></div> "; + + // Display mode 3: + $output .= "<table align=\"right\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>[ <a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a> | <a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a> ]</td></tr></table>"; + $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") ." (<a href=\"module.php?mod=import&op=bundles\">by bundle</A>) (<a href=\"module.php?mod=import&op=feeds\">by feed</a>) "; - $theme->header(); - $theme->box($header, $output); + $theme->box(t("Latest news"), $output); $theme->footer(); } diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 6b7b72e50..ec13e786b 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -32,7 +32,7 @@ function import_link($type) { } if ($type == "page" && user_access("access news feeds")) { - $links[] = "<a href=\"module.php?mod=import\">". t("latest news") ."</a>"; + $links[] = "<a href=\"module.php?mod=import\">". t("news feeds") ."</a>"; } 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.") ."<p /><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a><br /><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a><hr />"; + + // Display mode 2: + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a></div> "; + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a></div> "; + + // Display mode 3: + $output .= "<table align=\"right\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>[ <a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a> | <a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a> ]</td></tr></table>"; + $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") ." (<a href=\"module.php?mod=import&op=bundles\">by bundle</A>) (<a href=\"module.php?mod=import&op=feeds\">by feed</a>) "; - $theme->header(); - $theme->box($header, $output); + $theme->box(t("Latest news"), $output); $theme->footer(); } diff --git a/modules/import.module b/modules/import.module index 6b7b72e50..ec13e786b 100644 --- a/modules/import.module +++ b/modules/import.module @@ -32,7 +32,7 @@ function import_link($type) { } if ($type == "page" && user_access("access news feeds")) { - $links[] = "<a href=\"module.php?mod=import\">". t("latest news") ."</a>"; + $links[] = "<a href=\"module.php?mod=import\">". t("news feeds") ."</a>"; } 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.") ."<p /><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a><br /><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a><hr />"; + + // Display mode 2: + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a></div> "; + //$output .= "<div align=\"right\"><a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a></div> "; + + // Display mode 3: + $output .= "<table align=\"right\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>[ <a href=\"module.php?mod=import&op=bundles\">". t("view news by topic") ."</a> | <a href=\"module.php?mod=import&op=feeds\">". t("view news by source") ."</a> ]</td></tr></table>"; + $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") ." (<a href=\"module.php?mod=import&op=bundles\">by bundle</A>) (<a href=\"module.php?mod=import&op=feeds\">by feed</a>) "; - $theme->header(); - $theme->box($header, $output); + $theme->box(t("Latest news"), $output); $theme->footer(); } |