<?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');
?>
<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information">
<?php
$title = 'show_page_title';
if($this->module){
$title = 'showtitle';
}
if($this->params->get($title) && JRequest::getVar('hikashop_front_end_main',0)){
$use_module = $this->params->get('use_module_name');
$name = $this->params->get('page_title');
if((!$this->module && !empty($use_module)) || empty($name)){
$name = $this->params->get('title');
}
?>
<h1>
<?php echo $name; ?>
</h1>
<?php
}
if(!$this->module){
?>
<div class="hikashop_category_description">
<?php
if($this->params->get('show_image') && !empty($this->element->file_path)){
jimport('joomla.filesystem.file');
if(JFile::exists($this->image->getPath($this->element->file_path),false)){
?>
<img src="<?php echo $this->image->getPath($this->element->file_path); ?>" class="hikashop_category_image"/>
<?php
}
}
if($this->params->get('show_description')){
?>
<p>
<?php echo $this->element->category_description; ?>
</p>
<?php
}
?></div><?php
}
?>
<div class="hikashop_products_listing">
<?php
echo $this->loadTemplate($this->params->get('layout_type'));
?>
</div>
<div class="hikashop_submodules" style="clear:both">
<?php
if(!$this->module){
if(!empty($this->modules)){
jimport('joomla.application.module.helper');
foreach($this->modules as $module){
echo JModuleHelper::renderModule($module);
}
}
}
?>
</div>
</div>