Новости Joomla

Вышли релизы безопасности Joomla 5.3.4 и Joomla 4.4.14

Релиз безопасности Joomla 5.3.4

Проект Joomla спешит сообщить о выпуске Joomla 5.3.4 и Joomla 4.4.14. Это релиз безопасности для серии Joomla 5.3 и релиз безопасности для серии Joomla 4.4.

0 Пользователей и 1 Гость просматривают эту тему.
  • 1 Ответов
  • 1639 Просмотров
*

denchik_h

  • Осваиваюсь на форуме
  • 18
  • 0 / 2
Доброго времени суток,

Имеется шаблон rt_cerulean, Joomla 3.0.3 , Gantry framework 4.1.7 . Установлен JoomShopping 4.2.2 . К пункту меню привязан модуль фильтра в позиции sidebar  настроено отображение только в одном пункте меню, однако в карточке товара тоже остается пустое место задействованное под модуль. Из найденной мной информации понял, что это  выводится див-обертка от шаблона, и должно быть условие пустого модуля для позиции. Для остальных позиций в index.php шаблона это условие, насколько я понял, прописано. А вот в позициях mainbody и  sidebar такого не увидел.  

Вопрос: как убрать пустое место из карточки товаров и оставить фильтр на своем месте?

index.php шаблона
Код
<?php
/**
* @version   $Id: index.php 7320 2013-02-07 05:09:28Z kevin $
 * @author RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 *
 * Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
 *
 */
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );



// load and inititialize gantry class
require_once(dirname(__FILE__). '/lib/gantry/gantry.php');
$gantry->init();

// get the current preset
$gpreset = str_replace(' ','',strtolower($gantry->get('name')));

?>
<!doctype html>
<html xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
<head>
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->


  <?php if ($gantry->get('layout-mode') == '960fixed') : ?>
  <meta name="viewport" content="width=960px">
  <?php elseif ($gantry->get('layout-mode') == '1200fixed') : ?>
  <meta name="viewport" content="width=1200px">
  <?php else : ?>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <?php endif; ?>
    <?php
        $gantry->displayHead();

    $gantry->addStyle('grid-responsive.css', 5);
    $gantry->addLess('bootstrap.less', 'bootstrap.css', 6);
        $gantry->addLess('global.less', 'master.css', 8, array('main-accent'=>$gantry->get('main-accent','#c71b1b'), 'main-body'=>$gantry->get('main-body','light'), 'main-accent2'=>$gantry->get('main-accent2','redcolor'), 'main-bg'=>$gantry->get('main-bg','blue')));

        if ($gantry->browser->name == 'ie'){
          if ($gantry->browser->shortversion == 9){
            $gantry->addInlineScript("if (typeof RokMediaQueries !== 'undefined') window.addEvent('domready', function(){ RokMediaQueries._fireEvent(RokMediaQueries.getQuery()); });");
          }
      if ($gantry->browser->shortversion == 8){
        $gantry->addScript('html5shim.js');
      }
    }
    if ($gantry->get('layout-mode', 'responsive') == 'responsive') $gantry->addScript('rokmediaqueries.js');
    if ($gantry->get('loadtransition')) {
    $gantry->addScript('load-transition.js');
    $hidden = ' class="rt-hidden"';}

    ?>
  
  
 <link rel="shortcut icon" href="<?php echo JFactory::getConfig()->get('live_site','').'/templates/'.JFactory::getApplication('site')->getTemplate().'/images/favicon1.ico'; ?>" />
  
</head>
<body <?php echo $gantry->displayBodyTag(); ?>>


  <div class="rt-bg"><div class="rt-bg2">
    <div class="rt-top-section rt-dark">
      <div class="rt-container">
          <?php /** Begin Top Surround **/ if ($gantry->countModules('top') or $gantry->countModules('header')) : ?>
          <header id="rt-top-surround">
          <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
          <div id="rt-top" <?php echo $gantry->displayClassesByTag('rt-top'); ?>>
            <div class="rt-container">

              <?php echo $gantry->displayModules('top','standard','standard'); ?>
              <div class="clear"></div>
            </div>
          </div>
          <?php /** End Top **/ endif; ?>
          <?php /** Begin Background **/ if ($gantry->get('headerimage-enabled')): ?>
          <div id="rt-bg-image">
          </div>
          <?php /** End Background **/ endif; ?>
          <?php /** Begin Slideshow **/ if ($gantry->countModules('slideshow') || $gantry->countModules('ss-'.$gpreset)) : ?>
          <div id="rt-slideshow" <?php echo $gantry->displayClassesByTag('rt-showcase'); ?>>
            <?php echo $gantry->displayModules('ss-'.$gpreset,'basic','basic'); ?>
            <?php echo $gantry->displayModules('slideshow','basic','basic'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Slideshow **/ endif; ?>
          <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
          <div id="rt-header">
            <div class="rt-container">
              <?php echo $gantry->displayModules('header','standard','standard'); ?>
              <div class="clear"></div>
            </div>
          </div>
          <?php /** End Header **/ endif; ?>
          <?php /** Begin Showcase **/ if ($gantry->countModules('showcase')) : ?>
          <div id="rt-showcase">
            <div class="rt-showcase-pattern">
              <div class="rt-container">
                <?php echo $gantry->displayModules('showcase','standard','standard'); ?>
                <div class="clear"></div>
              </div>
            </div>
          </div>
          <?php /** End Showcase **/ endif; ?>
        </header>
        <?php /** End Top Surround **/ endif; ?>

        <div class="clear"></div>
      </div>
    </div>
    <?php if ($gantry->countModules('slideshow') || $gantry->countModules('ss-'.$gpreset)) : ?>
    <div id="slideshow-spacer"></div>
    <?php endif; ?>
    <div id="rt-transition"<?php if ($gantry->get('loadtransition')) echo $hidden; ?>>
      <div class="rt-container main-surround">
        <?php if ($gantry->countModules('slideshow') || $gantry->countModules('ss-'.$gpreset)) : ?>
        <div class="rt-body-top"><div class="left-top-pointer"></div><div class="right-top-pointer"></div></div>
        <?php else : ?>
        <div class="rt-body-straight"><div class="left-top-pointer"></div><div class="right-top-pointer"></div></div>
        <?php endif; ?>
        <div id="rt-mainbody-surround">
          <div class="gf-menu-device-container"></div>
          <div class="rt-container">
          <?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
            <div id="rt-drawer">
                <div class="rt-container">
                    <?php echo $gantry->displayModules('drawer','standard','standard'); ?>
                    <div class="clear"></div>
                </div>
            </div>
            <?php /** End Drawer **/ endif; ?>
          <?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
          <div id="rt-feature">
            <?php echo $gantry->displayModules('feature','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Feature **/ endif; ?>
          <?php /** Begin Utility **/ if ($gantry->countModules('utility')) : ?>
          <div id="rt-utility">
            <?php echo $gantry->displayModules('utility','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Utility **/ endif; ?>
          <?php /** Begin Breadcrumbs **/ if ($gantry->countModules('breadcrumb')) : ?>
          <div id="rt-breadcrumbs">
            <?php echo $gantry->displayModules('breadcrumb','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Breadcrumbs **/ endif; ?>
          <?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
          <div id="rt-maintop">
            <?php echo $gantry->displayModules('maintop','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Main Top **/ endif; ?>
          <?php /** Begin Full Width **/ if ($gantry->countModules('fullwidth')) : ?>
          <div id="rt-fullwidth">
            <?php echo $gantry->displayModules('fullwidth','basic','basic'); ?>
              <div class="clear"></div>
            </div>
          <?php /** End Full Width **/ endif; ?>
          <?php /** Begin Main Body **/ ?>
 
              <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?><div class="art-filter"><jdoc:include type="modules" name="filtr" style="art-filter"/></div>
          
 <?php /** End Main Body **/ ?>
 
          <?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
          <div id="rt-mainbottom">
            <?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Main Bottom **/ endif; ?>
          <?php /** Begin Extension **/ if ($gantry->countModules('extension')) : ?>
          <div id="rt-extension">
            <?php echo $gantry->displayModules('extension','standard','standard'); ?>
            <div class="clear"></div>
          </div>
          <?php /** End Extension **/ endif; ?>
          </div>
        </div>
        <div class="rt-body-btm"><div class="left-btm-pointer"></div><div class="right-btm-pointer"></div></div>
      </div>
    </div>
    <?php /** Begin Footer Section **/ if ($gantry->countModules('footer') or $gantry->countModules('copyright')) : ?>
    <footer id="rt-footer-surround" class="rt-dark">
      <div class="rt-container">
      <div class="rt-footer-bg"><div class="rt-footer-bg2">
        <?php /** Begin Bottom **/ if ($gantry->countModules('bottom')) : ?>
        <div id="rt-bottom">
          <?php echo $gantry->displayModules('bottom','standard','standard'); ?>
          <div class="clear"></div>
        </div>
        <?php /** End Bottom **/ endif; ?>
        <?php /** Begin Footer **/ if ($gantry->countModules('footer')) : ?>
        <div id="rt-footer">
          <?php echo $gantry->displayModules('footer','standard','standard'); ?>
          <div class="clear"></div>
        </div>
        <?php /** End Footer **/ endif; ?>
        <?php /** Begin Copyright **/ if ($gantry->countModules('copyright')) : ?>
        <div id="rt-copyright">
          <?php echo $gantry->displayModules('copyright','standard','standard'); ?>
          <div class="clear"></div>
        </div>
        <?php /** End Copyright **/ endif; ?>
        <div class="clear"></div>
      </div></div>
      </div>
    </footer>
    <?php /** End Footer Surround **/ endif; ?>
  </div></div>
  <?php /** Begin Debug **/ if ($gantry->countModules('debug')) : ?>
  <div id="rt-debug">
    <div class="rt-container">
      <?php echo $gantry->displayModules('debug','standard','standard'); ?>
      <div class="clear"></div>
    </div>
  </div>
  <?php /** End Debug **/ endif; ?>
  <?php /** Begin Popups **/
    echo $gantry->displayModules('popup','popup','popup');
    echo $gantry->displayModules('login','login','popup');
  /** End Popup s**/ ?>
  <?php /** Begin Analytics **/ if ($gantry->countModules('analytics')) : ?>
  <?php echo $gantry->displayModules('analytics','basic','basic'); ?>
  <?php /** End Analytics **/ endif; ?>
  
  </body>
</html>
<?php
$gantry->finalize();
?>
<?php
unset($this->_links[array_search(array('relation' => 'canonical', 'relType' => 'rel', 'attribs' => array()), $this->_links)]);
?>

« Последнее редактирование: 13.02.2014, 14:54:21 от denchik_h »
*

b2z

  • Глобальный модератор
  • 7287
  • 778 / 0
  • Разраблю понемногу
Ну по логике нужно найти блок (шаблон), который выводит этот sidebar и там прописать условие. Но я, к сожалению, вообще не знаю Gantry... Документация Вам в помощь.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Пример создания модуля с прикреплением файлов

Автор Zelyonkin

Ответов: 7
Просмотров: 1103
Последний ответ 02.08.2021, 17:04:15
от Zelyonkin
Отображение модуля меню на странице материала

Автор kunsaid

Ответов: 9
Просмотров: 1238
Последний ответ 21.07.2021, 10:50:29
от kunsaid
[Решено] CSS-класс заголовка модуля

Автор schel4ok

Ответов: 36
Просмотров: 18721
Последний ответ 06.04.2021, 23:35:20
от Wak
Добавление модуля в шапку

Автор Bazaroff

Ответов: 8
Просмотров: 811
Последний ответ 18.01.2021, 19:59:58
от AlexB
Проблемы с ajax при выводе модуля

Автор Lemonez

Ответов: 6
Просмотров: 787
Последний ответ 21.12.2020, 05:16:55
от draff