Fatal error: Call to undefined method JBUniversalApplication::getParent() in /***/retailmotors.by/media/zoo/applications/jbuniversal/templates/uikit/renderer/category/zapchasti.php on line 25
категории одинаковой структуры:
http://retailmotors....chasti/306.html
http://retailmotors....ti/partner.html
файл zapchasti.php
<?php
/**
* JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
*
* @package jbzoo
* @version 2.x Pro
* @author JBZoo App http://jbzoo.com
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @license http://jbzoo.com/license-pro.php JBZoo Licence
* @coder Denis Smetannikov <denis@jbzoo.com>
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$this->app->jbdebug->mark('layout::category::start');
// set vars
$category = $vars['object'];
$title = $this->app->string->trim($vars['params']->get('content.category_title', ''));
$subTitle = $this->app->string->trim($vars['params']->get('content.category_subtitle', ''));
$image = $this->app->jbimage->get('category_image', $vars['params']);
$title = $title ? $title : $category->name;
$parentCat = $category->getParent();
$subCatsCol = 4;
if ((int)$vars['params']->get('template.category_show', 1)) : ?>
<div class="category alias-<?php echo $category->alias; ?> uk-article-divider uk-grid">
<div class="uk-width-medium-1-1">
<div class="uk-panel uk-panel-box">
<?php if ((int)$vars['params']->get('template.category_title_show', 1)) : ?>
<h1 class="title"><?php echo $title; ?></h1>
<?php endif; ?>
<?php if ((int)$vars['params']->get('template.category_subtitle', 1) && !empty($subTitle)) : ?>
<h2 class="subtitle"><?php echo $subTitle; ?></h2>
<?php endif; ?>
<?php if ((int)$vars['params']->get('template.category_subtitle', 1) && !empty($subTitle)) : ?>
<h2 class="subtitle"><?php echo $subTitle; ?></h2>
<?php endif; ?>
<?php if ((int)$vars['params']->get('template.category_image', 1) && $image['src']) : ?>
<div class="uk-grid" data-uk-grid-margin="">
<div class="uk-width-medium-1-5 uk-text-center-small">
<?php if ((int)$vars['params']->get('template.category_image', 1) && $image['src']) : ?>
<div class="image-full">
<img src="<?php echo $image['src']; ?>" <?php echo $image['width_height']; ?>
title="<?php echo $category->name; ?>" alt="<?php echo $category->name; ?>" class="uk-thumbnail"/>
</div>
<?php endif; ?>
</div>
<?php
$rowCount = 0;
$childCats = $category->getChildren();
$i = 0;
if (!empty($childCats)) : ?>
<div class="uk-width-medium-2-5">
<div class="category-subs">
<h4 class="category-subs-title">Модели</h4>
<ul class="uk-list uk-text-small" data-uk-margin="">
<?php
foreach ($category->getChildren() as $child) {
$childLink =
'<a href="' . $this->app->route->category($child) . '" title="' . $child->name . '"> ' .
$child->name .
'</a>';
echo '<li class="uk-margin-small-top uk-float-left uk-margin-small-right">' . $childLink;
if ($i != (count($childCats)-1)) {
echo ', ';
}
echo '</li>';
$i++;
}
?>
</ul>
</div>
</div>
<?php endif; ?>
<div class="uk-width-medium-2-5">
<?php if ((int)$vars['params']->get('template.category_teaser_text', 1) && $vars['params']->get('content.category_teaser_text', '')) : ?>
<div class="description-teaser">
<?php echo $vars['params']->get('content.category_teaser_text', ''); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ((int)$vars['params']->get('template.category_text', 1) && $category->description) : ?>
<div class="description-full"><?php echo $category->getText($category->description); ?></div>
<?php endif; ?>
</div>
</div>
</div>
<?php else: ?>
<div class="category alias-<?php echo $category->alias; ?> uk-article-divider uk-grid">
<?php if ((int)$vars['params']->get('template.category_title_show', 1)) : ?>
<div class="uk-width-medium-1-1">
<div class="uk-panel uk-panel-box">
<h1 class="title"><?php echo $title; ?></h1>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php
$this->app->jbdebug->mark('layout::category::finish');
?>
Joomla: 3.6.4 JBZoo: 2.2.8 Pro rev3167 Zoo: 3.3.23