Здравствуйте, вопрос таков: есть шаблон на главной странице которого отображается позиция left, но для других страниц данного сайта, этой позиции нет. Да, в привязках пункта меню стоит "на всех страницах", позиция закрыта в одном файле, и помоему я его нашла, но в php абсолютный ноль. Подскажите пожалуйста как снять ограничение. код где,как я предпологаю, ограничен вывод позиции Код (PHP): // no direct access $option = JRequest::getVar('option', null); $view = JRequest::getVar('view', null); $route = JRequest::getVar('route', null); //$layout = JRequest::getVar('layout', null); $task = JRequest::getVar('task', null); //var_dump($task); defined( '_JEXEC' ) or die( 'Restricted access' ); if ($position['group'] == '') { // Position none group echo $yt->renPositionsContentNoGroup($position); } elseif ( ($position['group'] != 'left') && ($position['group'] != 'main') && ($position['group'] != 'right') ) { // Position has group's user created if (!isset($countGSpe)) { $countGSpe = 0; } $countGSpe ++; if($countGSpe == 1) { echo '<div id="' . $position['group'] . '" ' . ($style != '' ? 'style="'.$style.'"' : '') .'>'; echo $yt->renPositionsGroup($position); $width = $height = $style = ""; if($tagBD['count-'.$position['group']] == 1) { $countGSpe = null; echo '</div>'; } } elseif ( $countGSpe == $tagBD['count-'.$position['group']] && $tagBD['count-'.$position['group']] > 1 ) { echo $yt->renPositionsGroup($position); $countGSpe = null; echo '</div>'; } else { echo $yt->renPositionsGroup($position); } } elseif ( ($position['group'] == 'left') ||($position['group'] == 'main') ||($position['group'] == 'right') ) { // Position has group's framework fixed - left, main, right if($position['group'] == 'left') { $countL ++; if($countL == 1) { $more_attr = ''; $more_attr .= (isset($yt_render->arr_GI['left']['data-wide']))?' data-wide="'.$yt_render->arr_GI['left']['data-wide'].'"':''; $more_attr .= (isset($yt_render->arr_GI['left']['data-normal']))?' data-normal="'.$yt_render->arr_GI['left']['data-normal'].'"':''; $more_attr .= (isset($yt_render->arr_GI['left']['data-tablet']))?' data-tablet="'.$yt_render->arr_GI['left']['data-tablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['left']['data-stablet']))?' data-stablet="'.$yt_render->arr_GI['left']['data-stablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['left']['data-mobile']))?' data-mobile="'.$yt_render->arr_GI['left']['data-mobile'].'"':''; if( ($this->countModules('left') ) && !($option=='com_jshopping' && $task=='view') ) { echo '<aside id="content_left" class="'.$yt_render->arr_GI['left']['class'].'"'.$more_attr.'>'; echo $yt->renPositionsGroup($position, 'block-content'); if($tagBD['count-group-left'] == 1) { echo '</aside>'; } } } elseif ($tagBD['count-group-left'] == $countL && $tagBD['count-group-left'] > 1) { echo $yt->renPositionsGroup($position, 'block-content'); echo '</div></div>'; } else { echo $yt->renPositionsGroup($position, 'block-content'); } } elseif ($position['group'] == 'main') { $countM++; if ($countM == 1) { $more_attr = ''; $more_attr .= (isset($yt_render->arr_GI['main']['data-wide']))?' data-wide="'.$yt_render->arr_GI['main']['data-wide'].'"':''; $more_attr .= (isset($yt_render->arr_GI['main']['data-normal']))?' data-normal="'.$yt_render->arr_GI['main']['data-normal'].'"':''; $more_attr .= (isset($yt_render->arr_GI['main']['data-tablet']))?' data-tablet="'.$yt_render->arr_GI['main']['data-tablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['main']['data-stablet']))?' data-stablet="'.$yt_render->arr_GI['main']['data-stablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['main']['data-mobile']))?' data-mobile="'.$yt_render->arr_GI['main']['data-mobile'].'"':''; if( !($option=='com_jshopping' && $task=='view') ) { echo '<div id="content_main" class="'.$yt_render->arr_GI['main']['class'].'" '.$more_attr.'>' ; echo $yt->renPositionsGroup($position, 'main'); if($tagBD['count-group-main'] == 1 ) { echo ' </div>'; echo '</div>'; } }else{ echo '<div id="content_main" class="col-sm-12 nobanner">' ; echo $yt->renPositionsGroup($position, 'main'); if($tagBD['count-group-main'] == 1 ) { echo ' </div>'; echo '</div>'; } } } elseif ( ($tagBD['count-group-main'] == $countM) && ($tagBD['count-group-main'] > 1) ){ echo $yt->renPositionsGroup($position, 'main'); echo '</div>'; } else { echo $yt->renPositionsGroup($position, 'main'); } } elseif ($position['group'] == 'right') { $countR ++; if($countR == 1) { $more_attr = ''; $more_attr .= (isset($yt_render->arr_GI['right']['data-wide']))?' data-wide="'.$yt_render->arr_GI['right']['data-wide'].'"':''; $more_attr .= (isset($yt_render->arr_GI['right']['data-normal']))?' data-normal="'.$yt_render->arr_GI['right']['data-normal'].'"':''; $more_attr .= (isset($yt_render->arr_GI['right']['data-tablet']))?' data-tablet="'.$yt_render->arr_GI['right']['data-tablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['right']['data-stablet']))?' data-stablet="'.$yt_render->arr_GI['right']['data-stablet'].'"':''; $more_attr .= (isset($yt_render->arr_GI['right']['data-mobile']))?' data-mobile="'.$yt_render->arr_GI['right']['data-mobile'].'"':''; if( !($option=='com_jshopping' && $task=='view')) { echo '<aside id="content_right" class="'.$yt_render->arr_GI['right']['class'].'"'.$more_attr.'>'; echo $yt->renPositionsGroup($position, 'block-content'); if($tagBD['count-group-right'] == 1) { echo '</aside>'; } } } elseif ($countR == $tagBD['count-group-right'] && $tagBD['count-group-right'] > 1) { echo $yt->renPositionsGroup($position, 'block-content'); echo '</div></div>'; } else { echo $yt->renPositionsGroup($position, 'block-content'); } } } ?>
Я вижу только запрет на показ модуля в позиции left, при прсмотре компонента jshopping Код (PHP): if( ($this->countModules('left') ) && !($option=='com_jshopping' && $task=='view') ) { echo '<aside id="content_left" class="'.$yt_render->arr_GI['left']['class'].'"'.$more_attr.'>'; echo $yt->renPositionsGroup($position, 'block-content'); if($tagBD['count-group-left'] == 1) { echo '</aside>'; } } Пробуй так Код (PHP): if( ($this->countModules('left') )) { echo '<aside id="content_left" class="'.$yt_render->arr_GI['left']['class'].'"'.$more_attr.'>'; echo $yt->renPositionsGroup($position, 'block-content'); if($tagBD['count-group-left'] == 1) { echo '</aside>'; } }