<?php
/**
 * @package	HikaShop for Joomla!
 * @version	4.4.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
$grid = $this->getGrid();
if(empty($grid))
	return;
switch($this->options['type']) {
	case 'start':
		$class = 'hk-row-fluid';
		if($grid[0] != 12)
			$class.= ' hk-row-' . $grid[0];
?>
<div class="<?php echo $class; ?>">
	<div class="hkc-md-<?php echo $grid[1]; ?>">
<?php
		break;
	case 'vertical':
?>
	</div>
	<div class="hkc-md-<?php echo $grid[1]; ?>">
<?php
		break;
	case 'horizontal':
		$class = 'hk-row-fluid';
		if($grid[0] != 12)
			$class.= ' hk-row-' . $grid[0];
?>
	</div>
</div>
<div class="<?php echo $class; ?>">
	<div class="hkc-md-<?php echo $grid[1]; ?>">
<?php
		break;
	case 'end':
?>
	</div>
</div>
<?php
		break;
	default:
		break;
}
