From d386c110f449d39631c6af1aabced9799c7a372d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 26 Jan 2001 13:38:46 +0000 Subject: - removed redundant spaces --- modules/block.module | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index ce994d704..bfa38bae9 100644 --- a/modules/block.module +++ b/modules/block.module @@ -17,18 +17,18 @@ function block_page() { global $theme; $result = db_query("SELECT * FROM blocks WHERE status = 1 ORDER BY module"); - + $theme->header(); print "\n"; while ($block = db_fetch_object($result)) { if ($state % 3 == 0) print " \n"; - print " \n"; if ($state % 3 == 2) print " \n"; $state += 1; - } + } print "
\n"; + print " \n"; $blocks = module_execute($block->module, "block"); $theme->box($blocks[$block->offset]["subject"], $blocks[$block->offset]["content"]); print "
\n"; $theme->footer(); } @@ -43,12 +43,12 @@ function block_admin_display() { global $repository; $result = db_query("SELECT * FROM blocks ORDER BY module"); - + // Generate output: $output .= "
\n"; $output .= "\n"; $output .= " \n"; - + while ($block = db_fetch_object($result)) { $module = ($repository[$block->module]["admin"]) ? "module\">$block->module" : $block->module; @@ -70,12 +70,12 @@ function block_admin_display() { $region .= "\n"; $output .= " \n"; - + unset($status); unset($weight); unset($region); } - + $output .= "
blockmodulestatusweightregion
". $block->name ."$module$status$weight$region
\n"; $output .= "\n"; $output .= "
\n"; @@ -95,7 +95,7 @@ function block_admin_overview() { $rblocks .= "\n"; while ($block = db_fetch_object($result)) $rblocks .= " \n"; $rblocks .= "
". ($block->status == 2 ? "$block->name" : $block->name) ."$block->weight
\n"; - + $output .= "

layout 1:

\n"; $output .= "\n"; $output .= " \n"; @@ -127,7 +127,7 @@ function block_admin_overview() { function block_admin() { global $op, $edit; - + print "configure | overview | help
\n"; switch ($op) { @@ -143,7 +143,7 @@ function block_admin() { default: block_admin_display(); } - + } ?> -- cgit v1.2.3
$site_name header