From 951b553a9887df92d93ecc42e7e83ca568e26aae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Nov 2003 23:27:22 +0000 Subject: - Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX. --- modules/aggregator/aggregator.module | 52 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'modules/aggregator/aggregator.module') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index fd932f3cb..c44dbd5fc 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -124,7 +124,7 @@ function import_update() { } } -function import_theme_format_item($item, $feed = 0) { +function theme_import_format_item($item, $feed = 0) { global $user; if ($user->uid && module_exist("blog") && user_access("maintain personal blog")) { @@ -148,7 +148,7 @@ function import_bundle_block($attributes) { $items = array(); while ($item = db_fetch_object($result)) { - $items[] = theme("import_theme_format_item", $item); + $items[] = theme("import_format_item", $item); } $output = "
"; @@ -163,11 +163,11 @@ function import_feed_block($feed) { $items = array(); while ($item = db_fetch_object($result)) { - $items[] = theme("import_theme_format_item", $item); + $items[] = theme("import_format_item", $item); } $output = "
"; - $output .= theme("theme_item_list", $items); + $output .= theme("item_list", $items); $output .= "
"; return $output; @@ -656,10 +656,10 @@ function import_page_last() { } $output .= "\n"; - theme("header"); - theme("box", t("News feeds"), import_page_info()); - theme("box", t("Latest news"), $output); - theme("footer"); + print theme("header"); + print theme("box", t("News feeds"), import_page_info()); + print theme("box", t("Latest news"), $output); + print theme("footer"); } function import_page_feed($fid) { @@ -691,11 +691,11 @@ function import_page_feed($fid) { } $output .= "\n"; - theme("header"); - theme("box", t("News feeds"), import_page_info()); - theme("box", $feed->title, $header); - theme("box", t("Latest news"), $output); - theme("footer"); + print theme("header"); + print theme("box", t("News feeds"), import_page_info()); + print theme("box", $feed->title, $header); + print theme("box", t("Latest news"), $output); + print theme("footer"); } function import_page_bundle($bid) { @@ -730,11 +730,11 @@ function import_page_bundle($bid) { } $output .= "\n"; - theme("header"); - theme("box", t("News feeds"), import_page_info()); - theme("box", $bundle->title, $header); - theme("box", t("Latest news"), $output); - theme("footer"); + print theme("header"); + print theme("box", t("News feeds"), import_page_info()); + print theme("box", $bundle->title, $header); + print theme("box", t("Latest news"), $output); + print theme("footer"); } @@ -750,10 +750,10 @@ function import_page_sources() { $output .= "
". l("", "import/fd", array("title" => t("View the list of syndicated web sites in XML format."))) ."

"; - theme("header"); - theme("box", t("News feeds"), import_page_info()); - theme("box", t("News sources"), $output); - theme("footer"); + print theme("header"); + print theme("box", t("News feeds"), import_page_info()); + print theme("box", t("News sources"), $output); + print theme("footer"); } function import_page_fd() { @@ -788,8 +788,8 @@ function import_page_feeds() { function import_page_blocks($blocks) { - theme("header"); - theme("box", t("News feeds"), import_page_info()); + print theme("header"); + print theme("box", t("News feeds"), import_page_info()); print "\n"; print " \n"; @@ -797,7 +797,7 @@ function import_page_blocks($blocks) { $i = 1; print " \n"; print "
\n"; while ($block = each($blocks)) { - theme("box", $block["value"]["subject"], $block["value"]["content"]); + print theme("box", $block["value"]["subject"], $block["value"]["content"]); if ($i == ceil(count($blocks) / 3)) { break; } @@ -808,7 +808,7 @@ function import_page_blocks($blocks) { print "
\n"; - theme("footer"); + print theme("footer"); } function import_page() { -- cgit v1.2.3