Покажите полный код файла full.php, positions.xml и скриншот, как это наполнено в панели управления.
full.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');
$document = JFactory::getDocument();
$document->setMetadata('description', strip_tags(trim($this->renderPosition('meta-description'))));
$document->setMetadata('keywords', strip_tags(trim($this->renderPosition('meta-keywords'))));
$document->setTitle(strip_tags(trim($this->renderPosition('meta-title'))));
$title = 'Купить '. JString::trim(strip_tags($this->renderPosition('title'))) . ' в Киеве, в интернет магазине Норд Вест, Цена, Фото, Отзывы, Продажа';
JFactory::getDocument()->setTitle($title);
$align = $this->app->jbitem->getMediaAlign($item, $layout);
$tabsId = uniqid('jbzoo-tabs-');
echo $this->renderPosition('title', array('style' => 'jbtitle'));
echo $this->renderPosition('subtitle', array('style' => 'jbsubtitle'));
echo $this->renderPosition('likes', array('style' => 'jbblock', 'class' => 'align-left'));
echo $this->renderPosition('rating', array('style' => 'jbblock', 'class' => 'align-right'));
?>
<div class="clear clr"></div>
<div class="rborder item-body">
<?php if ($this->checkPosition('image')) : ?>
<div class="item-image align-<?php echo $align; ?>"><?php echo $this->renderPosition('image'); ?></div>
<?php endif; ?>
<?php if ($this->checkPosition('price')) : ?>
<div class="item-price-position">
<?php echo $this->renderPosition('price'); ?>
</div>
<?php endif; ?>
<div class="clear clr"></div>
<?php if ($this->checkPosition('anons')) : ?>
<div class="item-anons">
<?php echo $this->renderPosition('anons'); ?>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('meta')) : ?>
<hr/>
<div class="item-meta">
<?php echo $this->renderPosition('meta', array('style' => 'jbblock', 'labelTag' => 'strong', 'tag' => 'p')); ?>
</div>
<?php endif; ?>
<div class="clear clr"></div>
</div>
<?php echo $this->renderPosition('social', array('style' => 'jbblock')); ?>
<?php if ($this->checkPosition('tab-text')
|| $this->checkPosition('tab-gallery')
|| $this->checkPosition('tab-properties')
|| $this->checkPosition('tab-delivery')
|| $this->checkPosition('tab-reviews')
|| $this->checkPosition('tab-comments')
) :
$positionParams = array(
'style' => 'jbblock',
'tag' => 'div',
'labelTag' => 'h3',
'clear' => true
);
?>
<div id="<?php echo $tabsId; ?>" class="rborder">
<ul>
<?php if ($this->checkPosition('tab-text')) : ?>
<li><a href="#tab-text"><?php echo JText::_('JBZOO_ITEM_TAB_DESCRIPTION'); ?></a></li>
<?php endif; ?>
<?php if ($this->checkPosition('tab-properties')) : ?>
<li><a href="#tab-properties"><?php echo JText::_('JBZOO_ITEM_TAB_PROPS'); ?></a></li>
<?php endif; ?>
<?php if ($this->checkPosition('tab-gallery')) : ?>
<li><a href="#tab-gallery"><?php echo JText::_('JBZOO_ITEM_TAB_GALLERY'); ?></a></li>
<?php endif; ?>
<?php if ($this->checkPosition('tab-delivery')) : ?>
<li><a href="#tab-delivery"><?php echo JText::_('JBZOO_ITEM_TAB_DELIVERY'); ?></a></li>
<?php endif; ?>
<?php if ($this->checkPosition('tab-reviews')) : ?>
<li><a href="#tab-reviews"><?php echo JText::_('JBZOO_ITEM_TAB_REVIEWS'); ?></a></li>
<?php endif; ?>
<?php if ($this->checkPosition('tab-comments')) : ?>
<li><a href="#tab-comments"><?php echo JText::_('JBZOO_ITEM_TAB_COMMENTS'); ?>
(<?php echo $item->getCommentsCount(); ?>)</a>
</li>
<?php endif; ?>
</ul>
<?php if ($this->checkPosition('tab-text')) : ?>
<div id="tab-text">
<?php echo $this->renderPosition('tab-text', $positionParams); ?>
<div class="clear clr"></div>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('tab-gallery')) : ?>
<div id="tab-gallery">
<?php echo $this->renderPosition('tab-gallery', $positionParams); ?>
<div class="clear clr"></div>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('tab-properties')) : ?>
<div id="tab-properties">
<table class="jbtable">
<?php echo $this->renderPosition('tab-properties', array('style' => 'jbtable', 'tooltip' => 1)); ?>
</table>
<div class="clear clr"></div>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('tab-delivery')) : ?>
<div id="tab-delivery">
<?php echo $this->renderPosition('tab-delivery', $positionParams); ?>
<div class="clear clr"></div>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('tab-reviews')) : ?>
<div id="tab-reviews">
<?php echo $this->renderPosition('tab-reviews', $positionParams); ?>
<div class="clear clr"></div>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('tab-comments')) : ?>
<div id="tab-comments"><?php echo $this->renderPosition('tab-comments', $positionParams); ?></div>
<?php endif; ?>
</div>
<?php $this->app->jbassets->tabs(); ?>
<script type="text/javascript">
jQuery(function ($) {
$('#<?php echo $tabsId;?>').JBZooTabs({
onTabShow: function (index) {
var map = $('.googlemaps > div:first');
if (map.length) {
map.data('Googlemaps').refresh();
}
}
});
});
</script>
<?php endif; ?>
<?php echo $this->renderPosition('related', array('style' => 'jbblock', 'labelTag' => 'h2', 'clear' => true)); ?>
positions.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
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
-->
<renderer>
<positions layout="feed">
<position name="description">Description</position>
</positions>
<positions layout="full">
<position name="title">Title</position>
<position name="subtitle">Subtitle</position>
<position name="meta-description">Meta description</position>
<position name="meta-keywords">Meta keywords</position>
<position name="likes">Likes</position>
<position name="rating">Rating</position>
<position name="meta">Meta</position>
<position name="image">Image</position>
<position name="price">Price</position>
<position name="anons">Anons</position>
<position name="tab-text">Tab: text</position>
<position name="tab-gallery">Tab: gallery</position>
<position name="tab-properties">Tab: properties</position>
<position name="tab-delivery">Tab: delivery</position>
<position name="tab-reviews">Tab: reviews</position>
<position name="tab-comments">Tab: comments</position>
<position name="social">Social</position>
<position name="related">Related</position>
</positions>
<positions layout="teaser">
<position name="rating">Rating</position>
<position name="image">Image</position>
<position name="title">Title</position>
<position name="subtitle">Subtitle</position>
<position name="price-value">Price Value</position>
<position name="price">Price</position>
<position name="properties">Properties</position>
<position name="links">Links</position>
<position name="favourite">Favourite</position>
</positions>
<positions layout="related">
<position name="image">Image</position>
<position name="rating">Rating</position>
<position name="title">Title</position>
<position name="properties">Properties</position>
<position name="links">Links</position>
</positions>
<positions layout="subcategory_item">
<position name="title">Title</position>
<position name="image">Image</position>
<position name="properties">Properties</position>
<position name="text">Text</position>
<position name="meta">Meta</position>
</positions>
<positions layout="submission">
<position name="content">Content</position>
<position name="media">Media</position>
<position name="meta">Meta</position>
<position name="administration">Administration</position>
</positions>
<positions layout="compare">
<position name="fields">Fields</position>
</positions>
<positions layout="favorite">
<position name="title">Title</position>
<position name="image">Image</position>
<position name="properties">Properties</position>
<position name="text">Text</position>
<position name="meta">Meta</position>
</positions>
<positions layout="quickview">
<position name="top">Top</position>
<position name="title">Title</position>
<position name="price">Price</position>
<position name="image">Image</position>
<position name="description">Description</position>
<position name="properties">Properties</position>
<position name="bottom">Bottom</position>
<position name="related">Related</position>
</positions>
<positions layout="ymlexport">
<position name="title">Title</position>
<position name="price">Price</position>
<position name="properties">Properties</position>
<position name="image">Image</position>
<position name="description">Description</position>
<position name="vendor">Vendor</position>
<position name="country_of_origin">Country of origin</position>
</positions>
<positions layout="edit">
<position name="content">Content</position>
<position name="media">Media</position>
<position name="meta">Meta</position>
<position name="administration">Administration</position>
</positions>
</renderer>
Панель управления
Браузер исходный код страницы
Edited by Sliapy, 09 November 2014 - 14:41.