Legosp Forum
Shop-Script "Legosp" => Дизайн и шаблоны => Тема начата: anna-svit от Апреля 17, 2014, 07:58:23 pm
-
lego 6.1
программное обеспечение сервера неизвестно
Нужно, чтоб левая и правая колонка исчезали при переходе на страницу краткого описания товаров(product_brief).
Со страницей подробного описания товара получилось. Вот код, который я использовала:
{if $main_content_template!='product_detailed.tpl.html'}
<div class="f-left" id="sidebar">...</div>
<div class="f-right" id="sidebar">...</div>
<div id="content">
{include file="$main_content_template"}
</div>
Подскажите, пожалуйста, куда добавить такое же условие ещё и для страницы краткого описания товаров?
-
Спасибо, Slamm! Не получается. Пропадает с главной страницы и с других всё, кроме левой и правой колонки и шапки сайта. Использовала код:
{if $main_content_template!='product_detailed.tpl.html' || $main_content_template!='category.tpl.html'}
<div class="f-left" id="sidebar">
{* Последние просмотренные *}
<div class="box">
<div class="top">ВЫ СМОТРЕЛИ</div>
<div class="middle">{include file="last_items_view.tpl.html"}</div>
</div>
{* END Последние просмотренные *}
</div>
<div class="f-right" id="sidebar">
{* -- Новинки -- *}
{if $main_content_template != "new_product_list.tpl.html"}
<div class="box">
<div class="top"><a href="./index.php?novinki=yes">{$smarty.const.HOT_NEW}</a></div>
<div class="middle">
{include file="new_products.tpl.html"}
</div>
</div>
{/if}
{* -- Новинки -- *}
{* -- Статьи -- *}
{if $smarty.const.CONF_PAGES_ONHOME eq 1 && $home_pages_list}
<div id="module_pages" class="box">
<div class="top">{$smarty.const.ADMIN_PAGES}</div>
<div class="middle">
{section name=i loop=$home_pages_list}
<p><span style="font-size: 10px; color: #878787;">[{$home_pages_list[i][2]}]</span><br />
{$home_pages_list[i][1]}<br />
<a href="./{$home_pages_list[i][6]}">{$smarty.const.ADMIN_NEWS_READ}</a></p>
<hr />
{/section}
<center><a href="./{$smarty.const.REDIRECT_PAGES}/" class="b">{$smarty.const.ADMIN_PAGE_ALL}</a></center>
</div>
</div>
{/if}
{* -- Статьи -- *}
{* --#SR-- *}</div>
{/if}
{if $main_content_template != "compare.tpl.html"}
<div id="compare" {if !isset($smarty.session.comp)}style="display: none;"{/if}>
<div id="compare_top"><a href="./index.php?compare" title="{$smarty.const.Back_to_compare}">{$smarty.const.COMPARE}</a>
<div style="float: right;padding-right:5px;"><a onclick="$('#compare').hide(500);location='./index.php?clear_compare';" title="{$smarty.const.COMPARE_CLEAR}"><img src="./images/del.png" alt="" /></a></div>
</div>
<ul id="c_ul">
{section name=i loop=$comp_}
<li style="padding: 2px 5px;" id="dtr_{$comp_[i][0]}" align="center" width="60">
<a href="./{$comp_[i][55]}" title="{$comp_[i][1]}">{$comp_[i][4]}</a>
</li>
{/section}
</ul>
</div>
{/if}
{/if}
{* --#Content-- *}
<div id="content">
{include file="$main_content_template"}
</div>
-
Slamm, Вы лучший! Спасибо огромное! получилось!
-
да уж, получилось, но как теперь увеличить ширину страницы краткого и подробного описания товаров? левая и правая колонки убираются, а ширину изменить не получается, чтоб на главной странице была ширина меньше, а там больше.
-
попробуйте так:
<div id="content"{if $main_content_template=='product_detailed.tpl.html' || $main_content_template=='category.tpl.html'} style="margin:0px;"{/if}>
-
Да получилось! Супер! Спасибо!