| Current Path : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/default/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/default/alphaindex.php |
<?php
/**
* @package com_zoo
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// include assets css/js
if (strtolower(substr($GLOBALS['app']->getTemplate(), 0, 3)) != 'yoo') {
$this->app->document->addStylesheet('assets:css/reset.css');
}
$this->app->document->addStylesheet($this->template->resource.'assets/css/zoo.css');
$css_class = $this->application->getGroup().'-'.$this->template->name;
?>
<div id="yoo-zoo" class="yoo-zoo <?php echo $css_class; ?> <?php echo $css_class.'-alphaindex'; ?>">
<?php if ($this->params->get('template.show_alpha_index')) : ?>
<?php echo $this->partial('alphaindex'); ?>
<?php endif; ?>
<?php
// render categories
if (!empty($this->selected_categories)) {
$categoriestitle = JText::_('Categories starting with').' '.strtoupper($this->alpha_char);
echo $this->partial('categories', compact('categoriestitle'));
}
?>
<?php
// render items
if (count($this->items)) {
$itemstitle = JText::_('Items starting with').' '.strtoupper($this->alpha_char);
echo $this->partial('items', compact('itemstitle'));
}
?>
</div>