| Current Path : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/work/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/work/category.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');
// show description only if it has content
if (!$this->category->description) {
$this->params->set('template.show_description', 0);
}
// show image only if an image is selected
if (!($image = $this->category->getImage('content.image'))) {
$this->params->set('template.show_image', 0);
}
$css_class = $this->application->getGroup().'-'.$this->template->name;
$jinput = JFactory::getApplication()->input;
$Itemid=$jinput->get( 'Itemid', 0,'INT' );
if ($Itemid==108)
{
$title_type="Готовые и типовые бизнес планы с расчетами";
$h1_type="Готовые бизнес планы";
$h2_type="";
$desc='Intesco Research Group: готовые бизнес планы для отрасли '.$this->category->name;
}
if ($Itemid==109)
{
$title_type="Маркетинговые исследования и анализ рынка";
$h1_type="Маркетинговые исследования";
$h2_type="Анализ рынка ".$this->category->name;
$desc='Intesco Research Group: готовые маркетинговые исследования для отрасли '.$this->category->name;
}
if ($Itemid==117)
{
$title_type="Маркетинговые исследования и бизнес планы для отрасли";
$h1_type="Маркетинговые исследования и бизнес планы для отрасли";
$h2_type="";
$desc='Intesco Research Group: готовые маркетинговые исследования и бизнес планы для отрасли '.$this->category->name;
}
$doc = JFactory::getDocument();
if ($this->category->id<>2376)
{
$doc->setTitle($title_type.' '.$this->category->name.' - Intesco Research Group');
}
else
{
$doc->setTitle($title_type.' - Intesco Research Group');
}
$doc->setMetaData( 'description', $desc );
//$doc->setMetaData( 'keywords', $componentParams->get('keywords_'.$method, '') );
?>
<div id="yoo-zoo" class="yoo-zoo <?php echo $css_class; ?> <?php echo $css_class.'-'.$this->category->alias; ?>">
<?php if ($this->params->get('template.show_alpha_index')) : ?>
<?php echo $this->partial('alphaindex'); ?>
<?php endif; ?>
<?php if ($this->params->get('template.show_title') || $this->params->get('template.show_description') || $this->params->get('template.show_image')) : ?>
<div class="details <?php echo 'alignment-'.$this->params->get('template.alignment'); ?>">
<div class="box-1">
<?php if ($this->params->get('template.show_title')) : ?>
<h1 class="title">
<?php
if ($title_type)
echo $h1_type.' - '.$this->category->name;
else
echo $this->category->name;
?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('template.show_description') || $this->params->get('template.show_image')) : ?>
<div class="description">
<?php if ($this->params->get('template.show_image')) : ?>
<img class="image" src="<?php echo $image['src']; ?>" title="<?php echo $this->category->name; ?>" alt="<?php echo $this->category->name; ?>" <?php echo $image['width_height']; ?>/>
<?php endif; ?>
<?php if ($this->params->get('template.show_description')) echo $this->category->getText($this->category->description); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php
/*if ($h2_type)
echo "<h2 class=\"work-h2\">{$h2_type}</h2>";*/
?>
<?php
$app = JFactory::getApplication();
$templatename = $app->getTemplate();
// render categories
if ($templatename=="mobiletemplate")
{
if ($this->params->get('template.show_categories', true) && ($this->category->childrenHaveItems() || ($this->params->get('config.show_empty_categories', false) && !empty($this->selected_categories)))) {
$categoriestitle = $this->category->getParams()->get('content.categories_title');
echo $this->partial('categories', compact('categoriestitle'));
}
}
/*{
// render items
if (count($this->items)) {
$itemstitle = $this->category->getParams()->get('content.items_title');
echo $this->partial('items', compact('itemstitle'));
}
}*/
?>
<?php
//modules workinset
if ($templatename<>"mobiletemplate")
{
jimport('joomla.application.module.helper');
$mods = JModuleHelper::getModules('workinset');
if ($mods)
{
foreach($mods as $item)
{
echo JModuleHelper::renderModule($item);
}
}
}
?>
</div>