Joomla 3.x Как убрать в шаблоне protostar правую колонку

Тема в разделе "Внешний вид, шаблоны, графика", создана пользователем lev, 23.10.2015.

  1. lev
    Offline

    lev Активист => Cпециалист <=

    Регистрация:
    21.12.2007
    Сообщения:
    687
    Симпатии:
    40
    Пол:
    Мужской
    Поставил Kunena, а она не вмешается, правая колонка не убирается, даже если в ней нет модулей.
    Вспомнил старые приемы.
    templates/protostar/index.php

    находим ст.48-64:
    Код (CODE):
    1. // Adjusting content width
    2. if ($this->countModules('position-7') && $this->countModules('position-8'))
    3. {
    4.     $span = "span6";
    5. }
    6. elseif ($this->countModules('position-7') && !$this->countModules('position-8'))
    7. {
    8.     $span = "span9";
    9. }
    10. elseif (!$this->countModules('position-7') && $this->countModules('position-8'))
    11. {
    12.     $span = "span9";
    13. }
    14. else
    15. {
    16.     $span = "span12";
    17. }


    Правим:
    Код (CODE):
    1. // Load optional RTL Bootstrap CSS
    2. JHtml::_('bootstrap.loadCss', false, $this->direction);
    3.  
    4. // Adjusting content width
    5. if ($this->countModules('position-7') && $this->countModules('position-8') && ($option != 'com_kunena'))
    6. {
    7.     $span = "span6";
    8. }
    9. elseif ($this->countModules('position-7')  && !$this->countModules('position-8') && ($option != 'com_kunena'))
    10. {
    11.     $span = "span9";
    12. }
    13. elseif (!$this->countModules('position-7') && $this->countModules('position-8') && ($option != 'com_kunena'))
    14. {
    15.     $span = "span9";
    16. }
    17. else
    18. {
    19.     $span = "span12";
    20. }


    Короче таким способом
    Код (CODE):
    1. && ($option != 'com_kunena')


    Можно добавлять все что не влезает :p
     
  2.  

Поделиться этой страницей

Загрузка...