- Patch 5256: code improvements: theme('header') + theme('footer') -> theme('page').
Patch by Gerhard.4.4.x
parent
2ecc6a606e
commit
43e9bd79c2
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -174,15 +174,14 @@ function queue_view($nid) {
|
|||
}
|
||||
}
|
||||
|
||||
print theme("header");
|
||||
print node_view($node);
|
||||
$output .= node_view($node);
|
||||
if ($output) {
|
||||
print theme("box", t("Moderate"), $output);
|
||||
$output .= theme("box", t("Moderate"), $output);
|
||||
}
|
||||
if ($node->comment && variable_get("queue_show_comments", 1)) {
|
||||
print module_invoke("comment", "render", $node);
|
||||
$output .= module_invoke("comment", "render", $node);
|
||||
}
|
||||
print theme("footer");
|
||||
print theme("page", $output);
|
||||
}
|
||||
|
||||
function queue_page() {
|
||||
|
|
Loading…
Reference in New Issue