« Ответ #1 : 01.02.2015, 14:12:10 »
Держи
category_default.php
<?php defined( '_JEXEC' ) or die(); ?>
<div class="jshop">
<h1><?php echo $this->category->name?></h1>
<div class="jshop_list_category">
<?php $Table_Category = &JTable::getInstance("Category", "JShop");?>
<?php if (count($this->categories)){ ?>
<div class = "jshop list_category">
<?php foreach($this->categories as $k=>$category){?>
<?php if ($k%$this->count_category_to_row==0) echo '<div class="nvg_clear"></div><div class="str_category">'; ?>
<div class="jshop_categ jswidth<?php echo round(100/$this->count_category_to_row, 0)?>">
<div class = "category">
<div class="image">
<a href = "<?php echo $category->category_link;?>"><img class="jshop_img" src="<?php echo $this->image_category_path;?>/<?php if ($category->category_image) echo $category->category_image; else echo $this->noimage;?>" alt="<?php echo htmlspecialchars($category->name)?>" title="<?php echo htmlspecialchars($category->name)?>" /></a>
</div>
<div>
<h2 class="category_title"><a class = "product_link" href = "<?php echo $category->category_link?>"><?php echo $category->name?></a></h2>
<p class = "category_short_description"><?php echo $category->short_description?></p>
<div>
<?php $Sub_Categories = $Table_Category->getSubCategories($category->category_id); ForEach($Sub_Categories As $Sub_Category){
print "<A Href = \"".$Sub_Category->category_link."\">".$Sub_Category->name."</A><br/>";}?>
</div>
</div>
</div>
</div>
<?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) echo '</div>'; ?>
<?php } ?>
<?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) echo '</div>'; ?>
</div>
<?php }?>
</div>
<?php include(dirname(__FILE__)."/products.php");?>
<?php echo $this->category->description?>
</div>