Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/media/zoo/applications/product/templates/projectexp/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; $category_id=$jinput->get( 'category_id', 2683,'INT' ); $doc = JFactory::getDocument(); $doc->setTitle("Проектный опыт - ".$this->category->name); ?> <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 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 ($category_id==2683) { // render categories 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')); } } ?> <?php // render items if (count($this->items)) { $itemstitle = $this->category->getParams()->get('content.items_title'); echo $this->partial('items', compact('itemstitle')); } /*jimport('zoolib.zoolib'); $zoolib = new ZooLib(); jimport('imagecache.imagecache'); $ImageCache = new ImageCache(); $jinput = JFactory::getApplication()->input; $category_id=preg_replace('/[^0-9]/', '',$jinput->get( 'category_id')); $m = $zoolib->get_cat_and_subcat($category_id); $fields=array("i.id id", "i.name name", "i.elements elements"); $items=array(); $items=$zoolib->get_items($fields,$m,"order by id"); echo "<div class=\"items\">"; foreach ($items as $item) { $path="/index.php?option=com_zoo&item_id={$item->id}&Itemid=195&view=item"; $a = json_decode($item->elements,TRUE); $imagepath=$ImageCache->ImageCacheJPG($a['6035db3a-a8bb-4fd6-82eb-788216cd5658']['file'],'com_zoo',150,112,80); $priznak=''; if ($a['dda61284-ed03-4e55-ba8b-b78607d28df3']['option']['0']=='biznes-plan') $priznak="Бизнес-план"; if ($a['dda61284-ed03-4e55-ba8b-b78607d28df3']['option']['0']=='marketingovoe-issledovanie') $priznak="Маркетинговое исследование"; if ($a['dda61284-ed03-4e55-ba8b-b78607d28df3']['option']['0']=='organizatsiya-finansirovaniya') $priznak="Организация финансирования"; echo " <div class=\"row\"> <div class=\"width100\"> <div class=\"teaser-item\"> <div class=\"pos-media media-left\"> <a href=\"{$path}\" > <img src=\"{$imagepath}\" /> </a> </div> <div class=\"pos-description\"> <div class=\"element element-itemname first\"> <a href=\"{$path}\">{$item->name}</a> </div> <div class=\"element element-select\">{$priznak}</div> <div class=\"element element-textarea\"> {$a['191e2e8d-8c11-4eca-add4-8bd691e4b49a']['0']['value']} </div> </div> <p class=\"pos-links\"> <span class=\"element element-itemlink\"> <a href=\"{$path}\">Подробнее...</a> </span> </p> </div> </div> </div> "; } echo "</div>"; */ ?> </div>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка