<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2021 VirtuePlanet Services LLP. All rights reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       Abhishek Das
 * @email         info@virtueplanet.com
 * @link          https://www.virtueplanet.com
 *---------------------------------------------------------------------------------------
 */

defined('_JEXEC') or die;

$categories_per_row = !empty($this->categories_per_row) ? $this->categories_per_row : VmConfig::get('categories_per_row', 3);
?>
<?php if($this->category->haschildren) : ?>
<section class="category-view">
	<?php echo ShopFunctionsF::renderVmSubLayout('categories', array('categories' => $this->category->children, 'categories_per_row' => $categories_per_row)); ?>
</section>
<?php endif; ?>