Location: PHPKode > projects > HikaShop > front/views/category/tmpl/listing_div.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php if($this->params->get('show_limit') && $this->pageInfo->elements->total){ ?>
<form action="<?php echo hikashop::completeLink(JRequest::getWord('ctrl').'&task='.JRequest::getWord('task').'&cid='.$this->pageInfo->filter->cid.$this->menu_id);?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>">
	<div class="hikashop_subcategories_pagination">
	<?php echo $this->pagination->getListFooter(); ?>
	<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
	</div>
	<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
	<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php } ?>
<div class="hikashop_subcategories" style="clear:both">
<?php 
	$columns = $this->params->get('columns');
	$width = (int)(100/$columns)-1;
	$current_column = 1;
	if(!empty($this->rows)){
		foreach($this->rows as $row){
			?>
			<div class="hikashop_category" style="width:<?php echo $width;?>%;">
				<div class="hikashop_container">
					<div class="hikashop_subcontainer">
					<?php 
						$this->row =& $row;
						echo $this->loadTemplate($this->params->get('div_item_layout_type'));
						if(!empty($this->row->childs)){
							?>
							<ul class="hikashop_category_list">
							<?php 
							foreach($this->row->childs as $child){
								$link = hikashop::completeLink('category&task=listing&cid='.$child->category_id.'&name='.$child->alias.$this->menu_id);
								?>
								<li class="hikashop_category_list_item">
									<a href="<?php echo $link; ?>">
									<?php echo $child->category_name; ?>
									</a>
								</li>
								<?php 
								}
							?>
							</ul>
							<?php 
						}
					?>
					</div>
				</div>
			</div>
			<?php if($current_column>=$columns){ ?>
				<div style="clear:both"></div>
			<?php 
				$current_column=0;
			}
			$current_column++;
		}
	}
?>
</div>
Return current item: HikaShop