itemid = $itemId; $this -> template = $template; $this -> layout = $this -> _get( 'layout' , $template, $itemId ); if( $this -> layout == 'left' || $this -> layout == 'right' ){ $layout = 'left'; if( $this -> layout == 'left' ) $layout = 'right'; $this -> contentClass = 'template medium to-' . $layout; $this -> width = 630; return; } $this -> contentClass = 'template full'; } function echoSidebar( ) { $sidebar = $this -> _get( 'sidebar', $this -> template, $this -> itemid ); if( $this -> layout == 'left' || $this -> layout == 'right' ){ echo ''; return; } } function contentClass( ) { return $this -> contentClass; } function countSidebars( $layout ) { return count( explode( '+', $layout ) ) - 2; } } ?>