Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/uikit/
Upload File :
Current File : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/uikit/_categories.php

<?php
/**
* @package   com_zoo
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

?>

<?php if ($categoriestitle) : ?>
<h2><?php echo $categoriestitle; ?></h2>
<?php endif; ?>

<?php

	// init vars
	$i = 0;
	$columns = $this->params->get('template.categories_cols', 2);
	reset($this->selected_categories);

	// render rows
	while ((list($key, $category) = each($this->selected_categories))) {
		if ($category && !($category->totalItemCount() || $this->params->get('config.show_empty_categories', false))) continue;
		if ($i % $columns == 0) echo ($i > 0 ? '</div><hr class="uk-grid-divider"><div class="uk-grid uk-grid-divider" data-uk-grid-margin data-uk-grid-match>' : '<div class="uk-grid uk-grid-divider" data-uk-grid-margin data-uk-grid-match>');
		echo '<div class="uk-width-medium-1-'.$columns.'">'.$this->partial('category', compact('category')).'</div>';
		$i++;
	}
	if (!empty($this->selected_categories)) {
		echo '</div>';
	}

?>