
Best Answer mmth , 29 November 2018 - 14:18
Решается всё очень просто, переопределение функции в шаблоне, идем по пути:
media\zoo\applications\jbuniversal\templates\название_шаблон\template.php
Переопределяем функцию добавив код:
- public function renderItem(Item $item, $defaultLayout = 'teaser', $htmlItem)
- {
- $attrs = array(
- 'class' => array(
- 'jbzoo-item',
- 'jbzoo-item-' . $item->type,
- 'jbzoo-item-' . $defaultLayout,
- 'jbzoo-item-' . $item->id
- )
- );
- $output = $htmlItem;
- if ($defaultLayout != 'related'){//убираем для типа related
- $attrs = $this->app->jbhtml->buildAttrs($attrs);
- $wrapperTag = 'none';
- if ($this->application) {
- $wrapperTag = $this->params->get('global.config.wrap_item_style', 'none');
- }
- if ($wrapperTag != 'none') {
- $output = '<' . $wrapperTag . ' ' . $attrs . '>' . $htmlItem . '</' . $wrapperTag . '>';
- }
- }
- return $output;
- }
