Best Answer Шингисович , 13 July 2015 - 18:21
Это грозит как минимум фатальной ошибкой
Вы правы. Синтаксис неправильный был.
Заменил на другой вывод. Все получилось
:
<?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');
$align = $this->app->jbitem->getMediaAlign($item, $layout);
?>
<?php
$itemid = JRequest::getInt('Itemid');
if($itemid == '151'): ?>
<div class="uk-grid uk-grid-collapse" style="margin-bottom: 0px;">
<div class="uk-width-6-6 uk-grid-collapse" style="">
<div class="item-image uk-align-<?php echo $align; ?>">
<?php echo $this->renderPosition('video'); ?>
</div>
<div class="uk-badge uk-badge-danger" style="font-family: arial; position: absolute; left: 15px; top: 15px;">
<?php echo $this->renderPosition('text', array('style' => 'pipe')); ?></div>
<div class="uk-icon-button" style="font-family: arial; position: absolute; right: 40px; top: 20px; z-index: 100; color: #598D9E;">
<?php echo $this->renderPosition('media'); ?></div>
</div>
<div class="uk-width-6-6 uk-grid-collapse" style="">
<h4 class="item-title" style="font-family: arial; font-size: 13px; line-height: 16px; letter-spacing: 0px; margin-bottom: 5px;">
<?php echo $this->renderPosition('title'); ?></h4>
</div>
</div>
<?php else: // Показ позиции в остальных пунктах меню ?>
<div class="uk-grid uk-grid-collapse block-divider" style="margin-bottom: 0px;">
<div class="uk-width-2-6 uk-grid-collapse" style="">
<?php if ($this->checkPosition('image')) : ?>
<div class="item-image uk-align-<?php echo $align; ?>">
<?php echo $this->renderPosition('image'); ?>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('text')) : ?>
<div class="uk-badge uk-badge-danger" style="font-family: arial; position: absolute; left: 15px; top: 15px;">
<?php echo $this->renderPosition('text', array('style' => 'pipe')); ?></div>
<?php endif; ?>
</div>
<div class="uk-width-4-6 uk-grid-collapse" style="">
<?php if ($this->checkPosition('title')) : ?>
<div class="item-image" style="font-family: arial; float:left; font-size: 13px; line-height: 15px; color: #598D9E; padding-right: 3px;">
<?php echo $this->renderPosition('media'); ?></div><h4 class="item-title" style="font-family: arial; font-size: 13px; line-height: 16px; letter-spacing: 0px; margin-bottom: 5px;">
<?php echo $this->renderPosition('title'); ?></h4>
<?php endif; ?>
<?php if ($this->checkPosition('properties')) : ?>
<div class="item-properties">
<ul class="uk-list uk-list-line">
<?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
</ul>
</div>
<?php endif; ?>
<?php if ($this->checkPosition('smi')) : ?>
<div class="uk-width-1-1 uk-text-truncate" style="font-family: arial; margin-bottom: 20px; font-weight: bolder; color: #9B9B9B;">
<?php echo $this->renderPosition('smi', array('style' => 'block')); ?></div>
<?php endif; ?>
<?php if ($this->checkPosition('lid')) : ?>
<div class="uk-width-1-1" style="font-family: arial; margin-bottom: 3px; font-size: 12px; line-height: 15px;">
<?php echo $this->renderPosition('lid', array('style' => 'block')); ?></div>
<?php endif; ?>
<?php if ($this->checkPosition('links')) : ?>
<div class="item-image" style="padding: 3px;position: absolute;bottom: 1%;right: 1%;">
<?php echo $this->renderPosition('links', array('style' => 'pipe')); ?></div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
Т.е., использовал такую модифицированную конструкцию, плюс вместо айди категории -- нужный пункт меню поставил.


This topic is locked









