Отображение в табах
Started by
mam09
, Nov 18 2013 14:51
22 replies to this topic
#21
Posted 21 November 2013 - 11:04
Ой, прошу простить...
<?php /** * JBZoo is universal CCK based Joomla! CMS and YooTheme Zoo component * @category JBZoo * @author smet.denis <admin@joomla-book.ru> * @copyright Copyright (c) 2009-2012, Joomla-book.ru * @license http://joomla-book.ru/info/disclaimer * @link http://joomla-book.ru/projects/jbzoo JBZoo project page */ defined('_JEXEC') or die('Restricted access'); $tabsId = uniqid('jbzoo-tabs-'); $align = $this->app->jbitem->getMediaAlign($item, $layout); 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('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-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="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-text"><?php echo JText::_('JBZOO_ITEM_TAB_DESCRIPTION');?></a></li> <?php endif; ?> <?php if ($this->checkPosition('tab-properties')) : ?> <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-properties"><?php echo JText::_('JBZOO_ITEM_TAB_PROPS');?></a></li> <?php endif; ?> <?php if ($this->checkPosition('tab-gallery')) : ?> <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-gallery"><?php echo JText::_('JBZOO_ITEM_TAB_GALLERY');?></a></li> <?php endif; ?> <?php if ($this->checkPosition('tab-reviews')) : ?> <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#tab-reviews"><?php echo JText::_('JBZOO_ITEM_TAB_REVIEWS');?></a></li> <?php endif; ?> <?php if ($this->checkPosition('tab-comments')) : ?> <li><a href="<?php echo $this->app->jbenv->getCurrentUrl();?>#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> <?php endif; ?> <?php if ($this->checkPosition('tab-gallery')) : ?> <div id="tab-gallery"><?php echo $this->renderPosition('tab-gallery', $positionParams); ?></div> <?php endif; ?> <?php if ($this->checkPosition('tab-properties')) : ?> <div id="tab-properties"> <ul class="item-properties"><?php echo $this->renderPosition('tab-properties', array('style' => 'list'));?></ul> <div class="clr"></div> </div> <?php endif; ?> <?php if ($this->checkPosition('tab-reviews')) : ?> <div id="tab-reviews"><?php echo $this->renderPosition('tab-reviews', $positionParams); ?></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->jQueryUi(); ?> <script type="text/javascript"> jQuery(function ($) { $('#<?php echo $tabsId;?>').JBZooTabs(); }); </script> <?php endif; ?> <?php echo $this->renderPosition('related', array('style' => 'jbblock', 'labelTag' => 'h2', 'clear' => true)); ?>
#22
Posted 21 November 2013 - 11:07
Да, видимо, все-таки дело в том, что немного изменились селекторы заголовка, т.е. придется все-таки подправить CSS под новые классы.
[color=#aa0000]Не забывайте нажимать кнопку "Вопрос Решён" под сообщением, которое решило Вашу проблему.[/color]
#23
Posted 21 November 2013 - 11:43 Best Answer
Спасибо, ребята!