Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/contra/
Upload File :
Current File : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/contra/_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');

?>

<div class="categories <?php if ($categoriestitle) echo 'has-box-title'; ?>">

	<?php if ($categoriestitle) : ?>
	<h1 class="box-title"><span><span><?php echo $categoriestitle; ?></span></span></h1>
	<?php endif; ?>

	<div class="box-t1">
		<div class="box-t2">
			<div class="box-t3"></div>
		</div>
	</div>

	<div class="box-1">
		<?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)) || ($i % $columns != 0)) {
				if ($category && !($category->totalItemCount() || $this->params->get('config.show_empty_categories', false))) continue;
				if ($i % $columns == 0) echo ($i > 0 ? '</div><div class="row">' : '<div class="row first-row">');
				$firstcell = ($i % $columns == 0) ? 'first-cell' : null;
				echo '<div class="width'.intval(100 / $columns).' '.$firstcell.'">'.$this->partial('category', compact('category')).'</div>';
				$i++;
			}
			if (!empty($this->selected_categories)) {
				echo '</div>';
			}

		?>
	</div>

	<div class="box-b1">
		<div class="box-b2">
			<div class="box-b3"></div>
		</div>
	</div>

</div>