| Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/ |
| Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/default_theme2.php.tar |
home/digilove/public_html/modules/mod_sj_vm_categories/tmpl/default_theme2.php 0000644 00000011071 15235273521 0024014 0 ustar 00 <?php
/**
* @package SJ Categories for VirtueMart
* @version 2.2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2014 YouTech Company. All Rights Reserved.
* @author YouTech Company http://www.smartaddons.com
*
*/
defined('_JEXEC') or die;
$big_image_config = array(
'type' => $params->get('imgcfgcat_type'),
'width' => $params->get('imgcfgcat_width'),
'height' => $params->get('imgcfgcat_height'),
'quality' => 90,
'function' => ($params->get('imgcfgcat_function') == 'none') ? null : 'resize',
'function_mode' => ($params->get('imgcfgcat_function') == 'none') ? null : substr($params->get('imgcfgcat_function'), 7),
'transparency' => $params->get('imgcfgcat_transparency', 1) ? true : false,
'background' => $params->get('imgcfgcat_background'));
?>
<div class="cat-wrap theme2">
<?php $i = 0;
foreach ($list as $key => $items) {
$i++;
?>
<div class="content-box">
<div class="parent-cat">
<?php if ((int)$params->get('cat_title_display', 1)) { ?>
<div class="cat-title">
<?php $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $items->virtuemart_category_id); ?>
<a href="<?php echo $caturl; ?>"
title="<?php echo $items->category_name; ?>" <?php echo VmCategoriesHelper::parseTarget($options->target); ?> >
<?php echo VmCategoriesHelper::truncate($items->category_name, (int)$params->get('cat_title_maxcharacs', 25)); ?>
</a>
</div>
<?php } ?>
<?php $cat_img = VmCategoriesHelper::getVmCImage($items, $params, 'imgcfgcat');
if (($cat_img) && (strlen($cat_img['src']) != '')) {
?>
<div class="image-cat">
<?php $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $items->virtuemart_category_id); ?>
<a href="<?php echo $caturl; ?>"
title="<?php echo $items->category_name; ?>" <?php echo VmCategoriesHelper::parseTarget($options->target); ?> >
<img src="<?php echo VmCategoriesHelper::imageSrc($cat_img, $big_image_config); ?>"
title="<?php echo $items->category_name; ?>" alt="<?php echo $items->category_name; ?>"
style="height: <?php echo $options->imgcfgcat_height; ?>px"/>
</a>
</div>
<?php } ?>
</div>
<?php if ((int)$params->get('cat_sub_title_display', 1)) { ?>
<div class="child-cat">
<?php
if (!empty($items->child_cat)) {
foreach ($items->child_cat as $key1 => $item) {
?>
<div class="arrow"></div>
<div class="child-cat-title">
<?php $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $item->virtuemart_category_id); ?>
<a href="<?php echo $caturl; ?>" <?php echo VmCategoriesHelper::parseTarget($options->target); ?>>
<?php echo VmCategoriesHelper::truncate($item->category_name, (int)$params->get('cat_sub_title_maxcharacs', 25)); ?>
<?php if ($params->get('cat_all_product') == 1) {
echo ' (' . $item->number_product . ')';
} ?>
</a>
</div>
<?php
}
} else {
?>
<p>
<?php echo JText::_('No sub-categories to show!'); ?>
</p>
<?php } ?>
</div>
<?php } ?>
</div>
<?php
$clear = 'clr1';
if ($i % 2 == 0) $clear .= ' clr2';
if ($i % 3 == 0) $clear .= ' clr3';
if ($i % 4 == 0) $clear .= ' clr4';
if ($i % 5 == 0) $clear .= ' clr5';
if ($i % 6 == 0) $clear .= ' clr6';
?>
<div class="<?php echo $clear; ?>"></div>
<?php } ?>
</div>