OXID eShop CE 4.10.1 tpl/widget/header/categorylist.tpl 
[{block name="dd_widget_header_categorylist"}]
[{if $oxcmp_categories}]
[{assign var="homeSelected" value="false"}]
[{if $oViewConf->getTopActionClassName() == 'start'}]
[{assign var="homeSelected" value="true"}]
[{/if}]
[{assign var="oxcmp_categories" value=$oxcmp_categories}]
[{assign var="blFullwidth" value=$oViewConf->getViewThemeParam('blFullwidthLayout')}]
10  <nav id="mainnav" class="navbar navbar-default" role="navigation">
11  <div class="[{if $blFullwidth}]container[{else}]container-fluid[{/if}]">
12 
13  [{block name="dd_widget_header_categorylist_navbar_list"}]
14  <div class="navbar-header">
15  [{block name="dd_widget_header_categorylist_navbar_header"}]
16  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
17  <span class="sr-only">Toggle navigation</span>
18  <span class="icon-bar"></span>
19  <span class="icon-bar"></span>
20  <span class="icon-bar"></span>
*** 
21  </button><span class="visible-xs-inline">[{oxmultilang ident="ROLES_BEMAIN_UIROOTHEADER"}]</span>
22  [{/block}]
23  </div>
24  <div class="collapse navbar-collapse navbar-ex1-collapse">
25  <ul id="navigation" class="nav navbar-nav">
26  [{block name="dd_widget_header_categorylist_navbar_list"}]
27  <li [{if $homeSelected == 'true'}]class="active"[{/if}]>
28  <a href="[{$oViewConf->getHomeLink()}]">[{oxmultilang ident="HOME"}]</a>
29  </li>
30 
31  [{foreach from=$oxcmp_categories item="ocat" key="catkey" name="root"}]
32  [{if $ocat->getIsVisible()}]
33  [{foreach from=$ocat->getContentCats() item="oTopCont" name="MoreTopCms"}]
34  <li>
35  <a href="[{$oTopCont->getLink()}]">[{$oTopCont->oxcontents__oxtitle->value}]</a>
36  </li>
37  [{/foreach}]
38 
39  <li class="[{if $homeSelected == 'false' && $ocat->expanded}]active[{/if}][{if $ocat->getSubCats()}] dropdown[{/if}]">
40  <a href="[{$ocat->getLink()}]"[{if $ocat->getSubCats()}] class="dropdown-toggle" data-toggle="dropdown"[{/if}]>
41  [{$ocat->oxcategories__oxtitle->value}][{if $ocat->getSubCats()}] <i class="fa fa-angle-down"></i>[{/if}]
42  </a>
43 
44  [{if $ocat->getSubCats()}]
45  <ul class="dropdown-menu">
46  [{foreach from=$ocat->getSubCats() item="osubcat" key="subcatkey" name="SubCat"}]
47  [{if $osubcat->getIsVisible()}]
48  [{foreach from=$osubcat->getContentCats() item=ocont name=MoreCms}]
49  <li>
50  <a href="[{$ocont->getLink()}]">[{$ocont->oxcontents__oxtitle->value}]</a>
51  </li>
52  [{/foreach}]
53 
54  [{if $osubcat->getIsVisible()}]
55  <li [{if $homeSelected == 'false' && $osubcat->expanded}]class="active"[{/if}]>
56  <a [{if $homeSelected == 'false' && $osubcat->expanded}]class="current"[{/if}] href="[{$osubcat->getLink()}]">[{$osubcat->oxcategories__oxtitle->value}]</a>
57  </li>
58  [{/if}]
59  [{/if}]
60  [{/foreach}]
61  </ul>
62  [{/if}]
63  </li>
64  [{/if}]
65  [{/foreach}]
66  [{/block}]
67  </ul>
68 
69  <ul class="nav navbar-nav navbar-right fixed-header-actions">
70 
71  <li>
72  <a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket"}]" rel="nofollow">
73  <svg class="shopping-bag-mini[{if $oxcmp_basket->getItemsCount()}] filled[{/if}]" viewBox="0 0 64 64">
74  <use xlink:href="#shoppingBagMini" /> [{* svg icon included in base.tpl *}]
75  </svg>
76  </a>
77  </li>
78 
79  <li>
80  <a href="javascript:void(null)" class="search-toggle" rel="nofollow">
81  <i class="fa fa-search"></i>
82  </a>
83  </li>
84 
85  </ul>
86 
*** 
 
 
 
 
 
 
 
 
 
87  </div>
88  [{/block}]
89 
90  </div>
91  </nav>
92  [{/if}]
93 [{/block}]
 
1 lines changed or deleted