Permalink
Browse files

move template specific logic out of the template class to template_to…

…p.php
  • Loading branch information...
1 parent 679e3dc commit 0a4e9f0bc7dac98b7cc425904d7f00ab15b97c60 @haraldpdl haraldpdl committed Nov 12, 2010
Showing with 8 additions and 8 deletions.
  1. +0 −8 catalog/includes/classes/osc_template.php
  2. +8 −0 catalog/includes/template_top.php
@@ -96,14 +96,6 @@ function buildBlocks() {
}
}
}
-
- if (!$this->hasBlocks('boxes_column_left')) {
- $this->_grid_content_width += $this->_grid_column_width;
- }
-
- if (!$this->hasBlocks('boxes_column_right')) {
- $this->_grid_content_width += $this->_grid_column_width;
- }
}
}
?>
@@ -11,6 +11,14 @@
*/
$oscTemplate->buildBlocks();
+
+ if (!$oscTemplate->hasBlocks('boxes_column_left')) {
+ $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
+ }
+
+ if (!$oscTemplate->hasBlocks('boxes_column_right')) {
+ $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
+ }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>

0 comments on commit 0a4e9f0

Please sign in to comment.