-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tpl
166 lines (133 loc) · 6.03 KB
/
index.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{strip}
{*** Library CSS ***}
{addLink href='assets/css/libs.css'}
{*** Template CSS ***}
{addLink href='assets/css/template.css'}
{*** Theme CSS ***}
{addLink href='assets/css/theme.css'}
{*** Print CSS ***}
{addLink href='assets/css/print.css' media='print'}
{*** Framework JS ***}
{$bundleVersion = $template.settings.BUNDLE_VERSION}
{if isset($bundleVersion) && $bundleVersion !== "1.0.0"}
{addScript src="assets/js/{$bundleVersion}/app.js"}
{else}
{addScript src='assets/js/app.js'}
{/if}
{*** Scripts JS ***}
{addScript src='assets/js/template.js'}
{$columnClass = "col-s-4 col-m-12 col-l-12 col-xl-24"}
{collection assign=boxes controller=moduleBox}
{$boxes = $boxes->groupBy('Position')}
{* Calculate number of columns needed *}
{if !empty($boxes.left) and !empty($boxes.right)}
{$columnClass = "col-s-4 col-m-12 col-l-6 col-xl-14"}
{$columns = 2}
{elseif !empty($boxes.left) or !empty($boxes.right)}
{$columnClass = "col-s-4 col-m-12 col-l-9 col-xl-19"}
{$columns = 1}
{/if}
{$productFilterAcivated =
$access.productfilter
&& $settings.shop_product_filter_enabled
}
{$isProductListPage =
$page.type == 'product'
&& (count($page.paths) == 2 || isset($smarty.get['search']))
}
{* Act like filter is a column on product lists *}
{if !$columns && $productFilterAcivated && $isProductListPage}
{$columns = 1}
{/if}
{* Let the productlist take up the left column width *}
{if $isProductListPage}
{if !empty($boxes.right)}
{$columnClass = "col-s-4 col-m-12 col-l-9 col-xl-19"}
{else}
{$columnClass = "col-s-4 col-m-12 col-l-12 col-xl-24"}
{/if}
{/if}
{/strip}<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6 ielt9 no-js" lang="{$general.languageIso639}"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7 ielt9 no-js" lang="{$general.languageIso639}"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8 ielt9 no-js" lang="{$general.languageIso639}"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9 no-js" lang="{$general.languageIso639}"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{$general.languageIso639}"> <!--<![endif]-->
<head prefix="og: http://ogp.me/ns#
fb: http://ogp.me/ns/fb#
ng: http://angularjs.org">
{head_include}
</head>
<body id="ng-app" data-ng-app="platform-app" data-ng-strict-di class="type-{$page.name} page{$page.id} {if $page.isFrontPage}frontpage{/if}" itemscope itemtype="http://schema.org/WebPage">
<input type="checkbox" id="toggleSidebar" hidden />
<div id="site-wrapper">
{* SIDEBAR *}
{include file="modules/widgets/sidebar/sidebar.tpl"}
{* OVERLAY *}
<label for="toggleSidebar" id="site-overlay"></label>
{* CONTENT *}
<main id="site-content">
{* HEADER *}
{include file='partials/top.tpl'}
{* USP *}
{include file="modules/widgets/usp/usp.tpl"}
{* SLICK *}
{include file='modules/widgets/slick/slick.tpl'}
{if !$page.isFrontPage and ($template.settings.SETTINGS_SHOW_BREADCRUMB or $template.settings.SETTINGS_SHOW_PRINT)}
<div class="container with-xlarge toolbar">
{if $template.settings.SETTINGS_SHOW_BREADCRUMB}
{* Breadcrumbs / navigation of the entire site *}
{breadcrumbs}
{/if}
</div>
{/if}
<div class="container with-xlarge page-content">
<div class="row">
{if !empty($boxes.left) && !$isProductListPage}
{include file='modules/column/column.tpl' boxes=$boxes.left}
{/if}
<div class="{$columnClass}">
{* Notification *}
{include file="modules/widgets/notification/notification.tpl"}
{if $page.isFrontPage}
{* CATEGORIES *}
{if $general.isShop}
{include file="modules/widgets/categories/categories.tpl"}
{/if}
<section class="section">
{pageTypeInclude}
</section>
{* PRODUCTS *}
{if $general.isShop}
{collection assign=featured controller=productList focus=frontpage orderBy=Sorting}
{if $featured->getActualSize() gt 0}
<section class="section">
<header class="page-title">
<h3>{$text.PRODUCT_CATALOG_FOCUS_FRONTPAGE_HEADLINE}</h3>
</header>
{include file='modules/product/product-list-combined.tpl' productlist=$featured onlyProducts=true}
</section>
{/if}
{/if}
{else}
{pageTypeInclude}
{/if}
</div>
{if !empty($boxes.right)}
{include file='modules/column/column.tpl' boxes=$boxes.right}
{/if}
</div>
</div>
{* FOOTER *}
{include file='partials/bottom.tpl'}
</main>
</div>
{* General overlays *}
{if $shop and $shop.priceTerms}
{include file='modules/widgets/overlay/overlay.tpl' dataId='priceTerms' dataItemId=$shop.priceTerms.id}
{/if}
{* Cookie consent *}
{include file="modules/widgets/cookie/cookie.tpl"}
{body_include}
</body>
</html>