/
list.tpl
144 lines (135 loc) · 8.2 KB
/
list.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[{assign var="actCategory" value=$oView->getActiveCategory()}]
[{capture append="oxidBlock_sidebar"}]
[{assign var="listType" value=$oView->getListType()}]
[{if $listType=='manufacturer' || $listType=='vendor'}]
[{if $actCategory && $actCategory->getIconUrl()}]
<div class="box">
<h3>
[{if $listType=='manufacturer'}]
[{oxmultilang ident="BRAND"}]
[{elseif $listType=='vendor'}]
[{oxmultilang ident="VENDOR"}]
[{/if}]
</h3>
<div class="featured icon">
<img src="[{$oViewConf->getImageUrl('spinner.gif')}]" data-src="[{$actCategory->getIconUrl()}]" alt="[{$actCategory->getTitle()}]">
</div>
</div>
[{/if}]
[{/if}]
[{/capture}]
[{capture append="oxidBlock_content"}]
[{block name="page_list_listhead"}]
[{if $actCategory->oxcategories__oxthumb->value && $actCategory->getThumbUrl()}]
<img src="[{$oViewConf->getImageUrl('spinner.gif')}]" data-src="[{$actCategory->getThumbUrl()}]" alt="[{$actCategory->oxcategories__oxtitle->value}]" class="categoryPicture img-fluid img-thumbnail">
[{/if}]
<div class="page-header">
[{assign var='rsslinks' value=$oView->getRssLinks()}]
<h1 class="h1">
[{$oView->getTitle()}]
[{if $rsslinks.activeCategory}]
<a class="rss" id="rssActiveCategory" aria-label="RSS Current Category" href="[{$rsslinks.activeCategory.link}]" title="[{$rsslinks.activeCategory.title}]" target="_blank">
<i class="fas fa-rss"></i>
</a>
[{/if}]
</h1>
</div>
[{assign var="oPageNavigation" value=$oView->getPageNavigation()}]
[{if $actCategory && $actCategory->getShortDescription() && $oPageNavigation->actPage == 1}]
<p id="catDescLocator" class="categoryDescription">
<em>[{$actCategory->oxcategories__oxdesc->rawValue}]</em>
</p>
[{/if}]
[{if $actCategory->oxcategories__oxlongdesc->value && $oPageNavigation->actPage == 1}]
<div id="catLongDescLocator" class="categoryDescription">[{oxeval var=$actCategory->oxcategories__oxlongdesc}]</div>
<hr/>
[{/if}]
[{if $oView->hasVisibleSubCats()}]
[{assign var="iSubCategoriesCount" value=0}]
<div class="subcatList">
<div class="row">
[{foreach from=$oView->getSubCatList() item=category name=MoreSubCat}]
[{if $category->getContentCats()}]
[{foreach from=$category->getContentCats() item=ocont name=MoreCms}]
[{assign var="iSubCategoriesCount" value=$iSubCategoriesCount+1}]
<div class="box">
<h3>
<a id="moreSubCms_[{$smarty.foreach.MoreSubCat.iteration}]_[{$smarty.foreach.MoreCms.iteration}]" href="[{$ocont->getLink()}]">[{$ocont->oxcontents__oxtitle->value}]</a>
</h3>
<ul class="content"></ul>
</div>
[{/foreach}]
[{/if}]
[{if $iSubCategoriesCount%4 == 0 and $iSubCategoriesCount neq 0}]
</div><div class="row">
[{/if}]
[{if $category->getIsVisible()}]
[{assign var="iSubCategoriesCount" value=$iSubCategoriesCount+1}]
[{assign var="iconUrl" value=$category->getIconUrl()}]
<div class="col-12 col-sm-3">
<div class="card-wrapper">
<div class="card">
<div class="card-header">
<a id="moreSubCat_[{$smarty.foreach.MoreSubCat.iteration}]" href="[{$category->getLink()}]">[{$category->oxcategories__oxtitle->value}]</a>[{if $oView->showCategoryArticlesCount() && ($category->getNrOfArticles() > 0)}] ([{$category->getNrOfArticles()}])[{/if}]
</div>
<div class="card-body">
[{if $iconUrl}]
<a href="[{$category->getLink()}]">
<img src="[{$oViewConf->getImageUrl('spinner.gif')}]" data-src="[{$category->getIconUrl()}]" alt="[{$category->oxcategories__oxtitle->value}]" class="img-fluid subcat-icon">
</a>
[{else}]
<a href="[{$category->getLink()}]" class="btn btn-block btn-info">[{oxmultilang ident="DD_LIST_SHOW_MORE" suffix="ELLIPSIS"}]</a>
[{/if}]
[{if $category->getHasVisibleSubCats()}]
<hr/>
<ul class="list-unstyled">
[{foreach from=$category->getSubCats() item=subcategory}]
[{if $subcategory->getIsVisible()}]
[{foreach from=$subcategory->getContentCats() item=ocont name=MoreCms}]
<li>
<a href="[{$ocont->getLink()}]"><strong>[{$ocont->oxcontents__oxtitle->value}]</strong></a>
</li>
[{/foreach}]
<li>
<a href="[{$subcategory->getLink()}]">[{$subcategory->oxcategories__oxtitle->value}]</a>[{if $oView->showCategoryArticlesCount() && ($subcategory->getNrOfArticles() > 0)}] ([{$subcategory->getNrOfArticles()}])[{/if}]
</li>
[{/if}]
[{/foreach}]
</ul>
[{/if}]
</div>
</div>
</div>
</div>
[{/if}]
[{if $iSubCategoriesCount%4 == 0}]
</div>
<div class="row">
[{/if}]
[{/foreach}]
</div>
</div>
<hr/>
[{/if}]
[{/block}]
[{block name="page_list_listbody"}]
[{if $oView->getArticleList()}]
[{if $oView->getArticleList()|count}]
[{block name="page_list_upperlocator"}]
<div class="listRefine">
[{include file="widget/locator/listlocator.tpl" locator=$oView->getPageNavigationLimitedTop() attributes=$oView->getAttributes() listDisplayType=true itemsPerPage=true sort=true}]
</div>
[{/block}]
[{* List types: grid|line|infogrid *}]
[{block name="page_list_productlist"}]
[{include file="widget/product/list.tpl" type=$oView->getListDisplayType() listId="productList" products=$oView->getArticleList()}]
[{/block}]
[{block name="page_list_bottomlocator"}]
[{include file="widget/locator/listlocator.tpl" locator=$oView->getPageNavigationLimitedBottom() place="bottom"}]
[{/block}]
[{/if}]
[{/if}]
[{/block}]
[{insert name="oxid_tracker"}]
[{/capture}]
[{include file="layout/page.tpl" tree_path=$oView->getTreePath()}]