День добрый, необходимо добавить свой класс к картинке категории и главной странице.
к картинкам по умолчанию у меня получилось добавить.
http://yadi.sk/d/J9PDaSH7RjbaR
сайт\media\zoo\applications\jbuniversal\elements\jbimage\jbimage.php
в файле jbimage.php
сам класс inputdanbox paddeddan
// render layout
if ($image && $layout = $this->getLayout('jbimage-' . $template . '.php')) {
return $this->renderLayout($layout, array(
'imageAttrs' => $this->_buildAttrs(array(
'class' => 'jbimage inputdanbox paddeddan',
'alt' => $alt,
'title' => $title,
'src' => $image->url,
'width' => $image->width,
'height' => $image->height,
)),
'linkAttrs' => $this->_buildAttrs(array(
'class' => 'jbimage-link ' . $appendClass,
'title' => $title,
'href' => $url,
'rel' => $rel,
'target' => $target,
'id' => uniqid('jbimage-link-'),
)),
'link' => $url,
'image' => $image,
)
);
}
а где собственно править шаблон категории? и главной страницы?
media/zoo/applications/jbuniversal/templates/catalog/renderer/category/_default.php - тут?
// 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;
if ((int)$vars['params']->get('template.category_show', 1)) : ?>
<div class="category rborder alias-<?php echo $category->alias; ?>">
<?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_image', 1) && $image['src']) : ?>
<div class="inputdanbox paddeddan image-full align-<?php echo $vars['params']->get('template.category_image_align', 'left'); ?>">
<img src="<?php echo $image['src']; ?>" <?php echo $image['width_height']; ?>
title="<?php echo $category->name; ?>" alt="<?php echo $category->name; ?>"/>
</div>
<?php endif; ?>
<?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; ?>
<?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 class="clr clear"></div>
</div>
<?php else: ?>
<div class="category alias-<?php echo $category->alias; ?>">
<?php if ((int)$vars['params']->get('template.category_title_show', 1)) : ?>
<h1 class="title"><?php echo $title; ?></h1>
<?php endif; ?>
</div>
<?php endif; ?>
<?php
$this->app->jbdebug->mark('layout::category::finish');
подскажите пожалуйста. когда добавляю туда свой класс то получается вот что (в красной рамке не то что нужно, нужно применить класс к той что в зеленой рамке)
http://yadi.sk/d/J9PDaSH7RjbaR
http://feedmy.name/m...in/zelenyj-chaj - ссылка на категорию.
спс.