Location: PHPKode > projects > HikaShop > front/views/category/tmpl/listing_list.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);?>" 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 
switch($this->params->get('child_display_type')){
	case 'nochild':
	default:
?>
	<ul class="hikashop_category_list<?php echo $this->params->get('ul_class_name'); ?>">
	<?php 
		$width = (int)(100/$this->params->get('columns'));
		if(!empty($this->rows)){
			foreach($this->rows as $row){
				$link = hikashop::completeLink('category&task=listing&cid='.$row->category_id.'&name='.$row->alias.$this->menu_id);
				?>
				<li class="hikashop_category_list_item" style="float:left;width:<?php echo $width;?>%;">
					<a href="<?php echo $link; ?>">
					<?php echo $row->category_name; ?>
					</a>
				</li>
				<?php 
			}
		}
	?>
	</ul>
<?php 
	break;
	case 'allchildsexpand':
		?>
		<div id="category_panel_<?php echo $this->params->get('id');?>" class="pane-sliders">
		<?php 
		if(!empty($this->rows)){
			foreach($this->rows as $k => $row){
				$link = hikashop::completeLink('category&task=listing&cid='.$row->category_id.'&name='.$row->alias.$this->menu_id);
				?>
				<div class="panel">
					<h3 class="jpane-toggler title" id="category_pane_<?php echo $k;?>" style="cursor:default;">
						<span>
							<a href="<?php echo $link;?>"><?php echo $row->category_name;?></a>
						</span>
					</h3>
					<div class="jpane-slider content">
						<ul class="hikashop_category_list<?php echo $this->params->get('ul_class_name'); ?>"><?php
						if(!empty($row->childs)){
							foreach($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>
					</div>
				</div><?php
			}
		}
		?></div><?php
		break;
	case 'allchilds':
		jimport('joomla.html.pane');
		$found = 0;
		if(JRequest::getString('option',HIKASHOP_COMPONENT) && JRequest::getString('ctrl','category') && $cid = JRequest::getInt('cid',0)){
			$i=0;
			foreach($this->rows as $k => $row){
				if($row->category_id==$cid){
					$found = $i;
					break;
				}
				$i++;
			}
		}
		$this->tabs	=& JPane::getInstance('sliders', array('startOffset'=>$found,'startTransition'=>0));
		echo $this->tabs->startPane( 'category_panel_'.$this->params->get('id'));
		if(!empty($this->rows)){
			foreach($this->rows as $k => $row){
				$link = hikashop::completeLink('category&task=listing&cid='.$row->category_id.'&name='.$row->alias.$this->menu_id);
				echo $this->tabs->startPanel('<a href="'.$link.'">'.$row->category_name.'</a>', 'category_pane_'.$k);	
				?><ul class="hikashop_category_list<?php echo $this->params->get('ul_class_name'); ?>"><?php
				if(!empty($row->childs)){
					foreach($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
				echo $this->tabs->endPanel();
			}
		}
		echo $this->tabs->endPane();
		break;
}
?>
</div>
Return current item: HikaShop