protected static function initializeColumns(\Template $template)
	{
		$layout = Bootstrap::getLayout();

		switch($layout->cols)
		{
			case '2cll':
				$template->leftClass           = $layout->bootstrap_leftClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->leftClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_leftClass);
				break;

			case '2clr':
				$template->rightClass          = $layout->bootstrap_rightClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->rightClassAttribute = sprintf(static::$classAttribute, $layout->bootstrap_rightClass);
				break;

			case '3cl':
				$template->leftClass           = $layout->bootstrap_leftClass;
				$template->rightClass          = $layout->bootstrap_rightClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->rightClassAttribute = sprintf(static::$classAttribute, $layout->bootstrap_rightClass);
				$template->leftClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_leftClass);
				break;

			default:
				$template->useGrid = false;
				return;
		}

		$template->useGrid = true;
	}
protected static function initializeColumns(\Template $template)
	{
		$layout = Bootstrap::getLayout();

		switch($layout->cols)
		{
			case '2cll':
				$template->leftClass           = $layout->bootstrap_leftClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->leftClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_leftClass);
				break;

			case '2clr':
				$template->rightClass          = $layout->bootstrap_rightClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->rightClassAttribute = sprintf(static::$classAttribute, $layout->bootstrap_rightClass);
				break;

			case '3cl':
				$template->leftClass           = $layout->bootstrap_leftClass;
				$template->rightClass          = $layout->bootstrap_rightClass;
				$template->mainClass           = $layout->bootstrap_mainClass;

				$template->mainClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_mainClass);
				$template->rightClassAttribute = sprintf(static::$classAttribute, $layout->bootstrap_rightClass);
				$template->leftClassAttribute  = sprintf(static::$classAttribute, $layout->bootstrap_leftClass);
				break;

			default:
				$template->useGrid = false;
				return;
		}

		$template->useGrid = true;
	}
protected static function initializeColumns ( \ Template $ template ) { $ layout = Bootstrap :: getLayout ( ) ; switch ( $ layout -> cols ) { case '2cll' : $ template -> leftClass = $ layout -> bootstrap_leftClass ; $ template -> mainClass = $ layout -> bootstrap_mainClass ; $ template -> mainClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_mainClass ) ; $ template -> leftClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_leftClass ) ; break ; case '2clr' : $ template -> rightClass = $ layout -> bootstrap_rightClass ; $ template -> mainClass = $ layout -> bootstrap_mainClass ; $ template -> mainClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_mainClass ) ; $ template -> rightClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_rightClass ) ; break ; case '3cl' : $ template -> leftClass = $ layout -> bootstrap_leftClass ; $ template -> rightClass = $ layout -> bootstrap_rightClass ; $ template -> mainClass = $ layout -> bootstrap_mainClass ; $ template -> mainClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_mainClass ) ; $ template -> rightClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_rightClass ) ; $ template -> leftClassAttribute = sprintf ( static :: $ classAttribute , $ layout -> bootstrap_leftClass ) ; break ; default : $ template -> useGrid = false ; return ; } $ template -> useGrid = true ; }
initialize layout columns

set up if needed mainClass, leftClass, rightClass which contains class names
set up if needed mainClassAttribute, leftClassAttribute, rightClassAttribute containing ' class="classname"'

@param \Template $template
initialize layout columns