Перейти к содержимому


oleg_61

Регистрация: 09 Nov 2011
Offline Активность: Dec 11 2013 12:14 AM
-----

Мои сообщения

В теме: Горизонтальное мощное меню на CSS3

10 December 2013 - 11:26 AM

Доброго времени суток! мне уже не до доброго(((
Нужно доделать менюшку, не воткнусь как
Вот код:
<li id="menu-item-22" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22 {if $smarty.server.REQUEST_URI == '/page_0.html'}current-menu-item current_page_item{/if}">
    <a >Магазин</a>
    {if $categories_tree}
<ul class="sub-menu" style="display: none; visibility: hidden;"> 
  {section name=h loop=$big_categories_tree}
  {if $big_categories_tree[h].categoryID != 1}
 
   
	   
	    <li class="level_{$big_categories_tree[h].level}_parent_">
	   
   {section name=j loop=$big_categories_tree max=$big_categories_tree[h].level}	
	  {/section}
	  {if $smarty.const.CONF_SHOW_COUNTPROD eq 1}<span style="float:right">&nbsp;&nbsp;{$big_categories_tree[h].products_count}</span>{/if}
	  <a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}category_{$big_categories_tree[h].categoryID}.html{else}index.php?categoryID={$big_categories_tree[h].categoryID}{/if}" {if $categoryID == $big_categories_tree[h].categoryID}class="bf"{/if}>{$big_categories_tree[h].name}</a>
    {*<br />level: {$big_categories_tree[h].level} &nbsp;
    parent: {$big_categories_tree[h].parent} след {$big_categories_tree[h.index_next].parent}
    categoryID: {$big_categories_tree[h].categoryID}*}
	  {if $big_categories_tree[h].categoryID == $big_categories_tree[h.index_next].parent}
	    <ul class="sub-menu" style="display: none; visibility: hidden;">
	    {/if}
  {if ($big_categories_tree[h.index_next].parent != $big_categories_tree[h].categoryID)  }
    </li>
    {/if}
    {if $big_categories_tree[h.index_next].level != $big_categories_tree[h].level}
    {if ($big_categories_tree[h.index_next].parent != $big_categories_tree[h].categoryID)  }
    </ul>
    {/if}
    {/if}
	   
  {if $smarty.section.h.index ne $big_categories_tree_count-1}
 
  {/if}
  {/if}
 
  {/section}
 
</ul>
{/if}
</li>
которым выводится менюшка: Главная Магазин О магазине,
так вот Магазин - содержит подкатегории, а те соответственно свои, не могу разввернуть те 4 подкатегории которые выпадают в пункте Магазин.
Т.е. мне нужно что бы в меню стали вместо Магазин эти 4 выпадающие категории со своими подкатегориями.
с данным движком знаком несколько поверхностно, помогите пожалуйста товарищи))))