diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-09 23:27:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-09 23:27:22 +0000 |
commit | 951b553a9887df92d93ecc42e7e83ca568e26aae (patch) | |
tree | c35a2ae7f53ecbd83e6ff52b847a6c469e5a438a /modules/aggregator.module | |
parent | 00ee7f747b0920f2b8375b494930b19a25030a57 (diff) | |
download | brdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.gz brdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.bz2 |
- Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX.
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r-- | modules/aggregator.module | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module index fd932f3cb..c44dbd5fc 100644 --- a/modules/aggregator.module +++ b/modules/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 = "<div class=\"import-block\"><div class=\"bundle\">"; @@ -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 = "<div class=\"import-block\"><div class=\"feed\">"; - $output .= theme("theme_item_list", $items); + $output .= theme("item_list", $items); $output .= "</div></div>"; return $output; @@ -656,10 +656,10 @@ function import_page_last() { } $output .= "</table>\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 .= "</table>\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 .= "</table>\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 .= "<div style=\"xml-icon\">". l("<img src=\"". theme("image", "xml.gif") ."\" width=\"36\" height=\"14\" style=\"border: 0px;\" />", "import/fd", array("title" => t("View the list of syndicated web sites in XML format."))) ."</div><br />"; - 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 "<table cellpadding=\"0\" cellspacing=\"5\" border=\"0\" style=\"width: 100%;\">\n"; print " <tr>\n"; @@ -797,7 +797,7 @@ function import_page_blocks($blocks) { $i = 1; print " <td style=\"vertical-align: top; width: 33%;\">\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 " </tr>\n"; print "</table>\n"; - theme("footer"); + print theme("footer"); } function import_page() { |