summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-19 22:23:37 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-19 22:23:37 +0000
commit43e9bd79c2fd84ea42fe9a051e5018efda6348f8 (patch)
tree723784a72f1d263548dff7e717a8f463e0161ed6 /modules/aggregator.module
parent2ecc6a606eed6d6cf85501cc291c1ca20ec3d2b4 (diff)
downloadbrdo-43e9bd79c2fd84ea42fe9a051e5018efda6348f8.tar.gz
brdo-43e9bd79c2fd84ea42fe9a051e5018efda6348f8.tar.bz2
- Patch 5256: code improvements: theme('header') + theme('footer') -> theme('page').
Patch by Gerhard.
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module17
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index f42ef3555..bf02f3abb 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -753,26 +753,25 @@ function aggregator_page_feeds() {
}
function aggregator_page_blocks($blocks) {
- print theme("header");
- print "<table cellpadding=\"0\" cellspacing=\"5\" border=\"0\" style=\"width: 100%;\">\n";
- print " <tr>\n";
+ $output = "<table cellpadding=\"0\" cellspacing=\"5\" border=\"0\" style=\"width: 100%;\">\n";
+ $output .= " <tr>\n";
for ($t = 0; $t < 3; $t++) {
$i = 1;
- print " <td style=\"vertical-align: top; width: 33%;\">\n";
+ $output .= " <td style=\"vertical-align: top; width: 33%;\">\n";
while ($block = each($blocks)) {
- print theme("box", $block["value"]["subject"], $block["value"]["content"]);
+ $output .= theme("box", $block["value"]["subject"], $block["value"]["content"]);
if ($i == ceil(count($blocks) / 3)) {
break;
}
$i++;
}
- print " </td>\n";
+ $output .= " </td>\n";
}
- print " </tr>\n";
- print "</table>\n";
- print theme("footer");
+ $output .= " </tr>\n";
+ $output .= "</table>\n";
+ print theme("page", $output);
}
function aggregator_page() {