Категории в футере PS 1.6.0.5

Автор Vasiy, 02 апреля 2015, 03:14:08

« назад - далее »

Vasiy

Есть возможность сделать категории в футере в 2 колонки,
установил но как была одна длинная так и осталась.

Как разделить на два столбика, никто не пробовал?
Не боги горшки обжигают, не зачем им такой хренью заниматься.

coder

#1
В стилях задать ширину для класса tree. Но нужно учесть, что ширина самого блока не поменяется. Она задана классами в col-xs-12 col-sm-2 в файле  /themes/default-bootstrap/modules/blockcategories/blockcategories_footer.tpl

Vasiy

#2
Получилось сделать вот таким образом
В файл /themes/default-bootstrap/css/modules/blockcategories/blockcategories.css
Добавил код:


   .layer1 {
    float: left;
    width: 60%; /* Ширина слоя */
   }
   .layer2 {
    width: 30%; /* Ширина слоя */
    float: left;
 


В файл  /themes/default-bootstrap/modules/blockcategories/blockcategories_footer.tpl
Весь код заменил на этот
<section class="blockcategories_footer footer-block col-xs-12 col-sm-2">
<h4 align="center">{l s='Categories' mod='blockcategories'}</h4>
<div class="category_footer toggle-footer layer1">
<div class="list">
<ul class="tree {if $isDhtml}dhtml{/if}">
{foreach from=$blockCategTree.children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child}
{/if}

{if ($smarty.foreach.blockCategTree.iteration mod $numberColumn) == 0 AND !$smarty.foreach.blockCategTree.last}
</ul>
</div>
</div> <!-- .category_footer -->

<div class="category_footer layer2">
<div class="list">
<ul class="tree {if $isDhtml}dhtml{/if}">
{/if}
{/foreach}
</ul>
</div>
</div> <!-- .category_footer -->
</section>
Не боги горшки обжигают, не зачем им такой хренью заниматься.