OXID eShop CE 4.10.1 tpl/layout/base.tpl 
[{* Important ! render page head and body to collect scripts and styles *}]
[{capture append="oxidBlock_pageHead"}]
[{strip}]
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" id="Viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=[{$oView->getCharSet()}]">
[{assign var="_sMetaTitlePrefix" value=$oView->getTitlePrefix()}]
[{assign var="_sMetaTitleSuffix" value=$oView->getTitleSuffix()}]
10  [{assign var="_sMetaTitlePageSuffix" value=$oView->getTitlePageSuffix()}]
11  [{assign var="_sMetaTitle" value=$oView->getTitle()}]
12  [{capture assign="sPageTitle"}][{$_sMetaTitlePrefix}][{if $_sMetaTitlePrefix && $_sMetaTitle}] | [{/if}][{$_sMetaTitle|strip_tags}][{if $_sMetaTitleSuffix && ($_sMetaTitlePrefix || $_sMetaTitle)}] | [{/if}][{$_sMetaTitleSuffix}] [{if $_sMetaTitlePageSuffix}] | [{$_sMetaTitlePageSuffix}][{/if}][{/capture}]
13 
14  <title>[{block name="head_title"}][{$sPageTitle}][{/block}]</title>
15 
16  [{block name="head_meta_robots"}]
17  [{if $oView->noIndex() == 1}]
18  <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
19  [{elseif $oView->noIndex() == 2}]
20  <meta name="ROBOTS" content="NOINDEX, FOLLOW">
21  [{/if}]
22  [{/block}]
23 
24  [{block name="head_meta_description"}]
25  [{if $oView->getMetaDescription()}]
26  <meta name="description" content="[{$oView->getMetaDescription()}]">
27  [{/if}]
28  [{/block}]
29 
30  [{block name="head_meta_keywords"}]
31  [{if $oView->getMetaKeywords()}]
32  <meta name="keywords" content="[{$oView->getMetaKeywords()}]">
33  [{/if}]
34  [{/block}]
35 
36  [{block name="head_meta_open_graph"}]
37  [{if $oViewConf->getFbAppId()}]
*** 
38  <meta property="og:site_name" content="[{$oViewConf->getBaseDir()}]">
39  <meta property="fb:app_id" content="[{$oViewConf->getFbAppId()}]">
*** 
 
 
40  <meta property="og:title" content="[{$sPageTitle}]">
*** 
 
41  [{if $oViewConf->getActiveClassName() == 'details'}]
42  <meta property="og:type" content="product">
43  <meta property="og:image" content="[{$oView->getActPicture()}]">
44  <meta property="og:url" content="[{$oView->getCanonicalUrl()}]">
45  [{else}]
46  <meta property="og:type" content="website">
47  <meta property="og:image" content="[{$oViewConf->getImageUrl('basket.png')}]">
48  <meta property="og:url" content="[{$oViewConf->getCurrentHomeDir()}]">
49  [{/if}]
*** 
50  [{/if}]
51  [{/block}]
52 
53  [{assign var="canonical_url" value=$oView->getCanonicalUrl()}]
54  [{block name="head_link_canonical"}]
55  [{if $canonical_url}]
56  <link rel="canonical" href="[{$canonical_url}]">
57  [{/if}]
58  [{/block}]
59 
60  [{block name="head_link_hreflang"}]
61  [{if $oView->isLanguageLoaded()}]
62  [{assign var="oConfig" value=$oViewConf->getConfig()}]
63  [{foreach from=$oxcmp_lang item=_lng}]
64  [{if $_lng->id == $oConfig->getConfigParam('sDefaultLang')}]
65  <link rel="alternate" hreflang="x-default" href="[{$_lng->link}]"/>
66  [{/if}]
67  <link rel="alternate" hreflang="[{$_lng->abbr}]" href="[{$_lng->link|oxaddparams:$oView->getDynUrlParams()}]"/>
68  [{/foreach}]
69  [{/if}]
70  [{/block}]
71 
72  [{assign var="oPageNavigation" value=$oView->getPageNavigation()}]
73  [{if $oPageNavigation}]
74  [{if $oPageNavigation->previousPage}]
75  <link rel="prev" href="[{$oPageNavigation->previousPage}]">
76  [{/if}]
77  [{if $oPageNavigation->nextPage}]
78  <link rel="next" href="[{$oPageNavigation->nextPage}]">
79  [{/if}]
80  [{/if}]
81 
82  [{block name="head_link_favicon"}]
83  [{assign var="sFavicon512File" value=$oViewConf->getViewThemeParam('sFavicon512File')}]
84  [{if $sFavicon512File}]
85  <!-- iOS Homescreen Icon (version < 4.2)-->
86  <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 163dpi)" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
87  <!-- iOS Homescreen Icon -->
88  <link rel="apple-touch-icon-precomposed" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
89 
90  <!-- iPad Homescreen Icon (version < 4.2) -->
91  <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 132dpi)" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
92  <!-- iPad Homescreen Icon -->
93  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
94 
95  <!-- iPhone 4 Homescreen Icon (version < 4.2) -->
96  <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 326dpi)" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
97  <!-- iPhone 4 Homescreen Icon -->
98  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
99 
100  <!-- new iPad Homescreen Icon and iOS Version > 4.2 -->
101  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" />
102 
103  <!-- Windows 8 -->
104  [{assign var="sFaviconMSTileColor" value=$oViewConf->getViewThemeParam('sFaviconMSTileColor')}]
105  [{if $sFaviconMSTileColor}]
106  <meta name="msapplication-TileColor" content="[{$sFaviconMSTileColor}]"> <!-- Kachel-Farbe -->
107  [{/if}]
108  <meta name="msapplication-TileImage" content="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]">
109 
110  <!-- Fluid -->
111  <link rel="fluid-icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon512File`")}]" title="[{$sPageTitle}]" />
112  [{/if}]
113 
114  <!-- Shortcut Icons -->
115  [{assign var="sFaviconFile" value=$oViewConf->getViewThemeParam('sFaviconFile')}]
116  [{assign var="sFavicon16File" value=$oViewConf->getViewThemeParam('sFavicon16File')}]
117  [{assign var="sFavicon32File" value=$oViewConf->getViewThemeParam('sFavicon32File')}]
118  [{assign var="sFavicon48File" value=$oViewConf->getViewThemeParam('sFavicon48File')}]
119  [{assign var="sFavicon64File" value=$oViewConf->getViewThemeParam('sFavicon64File')}]
120  [{assign var="sFavicon128File" value=$oViewConf->getViewThemeParam('sFavicon128File')}]
121 
122  [{if $sFaviconFile}]
123  <link rel="shortcut icon" href="[{$oViewConf->getImageUrl("favicons/`$sFaviconFile`")}]?rand=1" type="image/x-icon" />
124  [{/if}]
125  [{if $sFavicon16File}]
126  <link rel="icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon16File`")}]" sizes="16x16" />
127  [{/if}]
128  [{if $sFavicon32File}]
129  <link rel="icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon32File`")}]" sizes="32x32" />
130  [{/if}]
131  [{if $sFavicon48File}]
132  <link rel="icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon48File`")}]" sizes="48x48" />
133  [{/if}]
134  [{if $sFavicon64File}]
135  <link rel="icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon64File`")}]" sizes="64x64" />
136  [{/if}]
137  [{if $sFavicon128File}]
138  <link rel="icon" href="[{$oViewConf->getImageUrl("favicons/`$sFavicon128File`")}]" sizes="128x128" />
139  [{/if}]
140  [{/block}]
141 
142  [{block name="base_style"}]
143  [{oxstyle include="css/styles.min.css"}]
144  [{/block}]
145 
146  [{block name="base_fonts"}]
147  <link href='https://fonts.googleapis.com/css?family=Raleway:200,400,700,600' rel='stylesheet' type='text/css'>
148  [{/block}]
149 
150  [{assign var='rsslinks' value=$oView->getRssLinks()}]
151  [{block name="head_link_rss"}]
152  [{if $rsslinks}]
153  [{foreach from=$rsslinks item='rssentry'}]
154  <link rel="alternate" type="application/rss+xml" title="[{$rssentry.title|strip_tags}]" href="[{$rssentry.link}]">
155  [{/foreach}]
156  [{/if}]
157  [{/block}]
158 
159  [{block name="head_css"}]
160  [{foreach from=$oxidBlock_head item="_block"}]
161  [{$_block}]
162  [{/foreach}]
163  [{/block}]
164  [{/strip}]
165 [{/capture}]
166 
167 [{assign var="blIsCheckout" value=$oView->getIsOrderStep()}]
168 [{assign var="blFullwidth" value=$oViewConf->getViewThemeParam('blFullwidthLayout')}]
169 [{assign var="sBackgroundColor" value=$oViewConf->getViewThemeParam('sBackgroundColor')}]
170 
171 [{* Fullpage Background *}]
172 [{if $oViewConf->getViewThemeParam('blUseBackground')}]
173  [{assign var="sBackgroundPath" value=$oViewConf->getViewThemeParam('sBackgroundPath')}]
174  [{assign var="sBackgroundUrl" value=$oViewConf->getImageUrl("backgrounds/`$sBackgroundPath`")}]
175  [{assign var="sBackgroundRepeat" value=$oViewConf->getViewThemeParam('sBackgroundRepeat')}]
176  [{assign var="sBackgroundPosHorizontal" value=$oViewConf->getViewThemeParam('sBackgroundPosHorizontal')}]
177  [{assign var="sBackgroundPosVertical" value=$oViewConf->getViewThemeParam('sBackgroundPosVertical')}]
178  [{assign var="sBackgroundSize" value=$oViewConf->getViewThemeParam('sBackgroundSize')}]
179  [{assign var="blBackgroundAttachment" value=$oViewConf->getViewThemeParam('blBackgroundAttachment')}]
180 
181  [{if $sBackgroundUrl}]
182  [{assign var="sStyle" value="background:`$sBackgroundColor` url(`$sBackgroundUrl`) `$sBackgroundRepeat` `$sBackgroundPosHorizontal` `$sBackgroundPosVertical`;"}]
183 
184  [{if $sBackgroundSize}]
185  [{assign var="sStyle" value=$sStyle|cat:"background-size:`$sBackgroundSize`;"}]
186  [{/if}]
187 
188  [{if $blBackgroundAttachment}]
189  [{assign var="sStyle" value=$sStyle|cat:"background-attachment:fixed;"}]
190  [{/if}]
191  [{else}]
192  [{assign var="sStyle" value="background:`$sBackgroundColor`;"}]
193  [{/if}]
194 [{elseif $sBackgroundColor}]
195  [{assign var="sStyle" value="background:`$sBackgroundColor`;"}]
196 [{/if}]
197 
198 <!DOCTYPE html>
199 <html lang="[{$oView->getActiveLangAbbr()}]" [{if $oViewConf->getShowFbConnect()}]xmlns:fb="http://www.facebook.com/2008/fbml"[{/if}]>
200  <head>
201  [{foreach from=$oxidBlock_pageHead item="_block"}]
202  [{$_block}]
203  [{/foreach}]
204  [{oxstyle}]
205 
206  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
207  <!--[if lt IE 9]>
208  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
209  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
210  <![endif]-->
211  </head>
212  <body class="cl-[{$oView->getClassName()}][{if $smarty.get.plain == '1'}] popup[{/if}][{if $blIsCheckout}] is-checkout[{/if}][{if $oxcmp_user && $oxcmp_user->oxuser__oxpassword->value}] is-logged-in[{/if}]"[{if $sStyle}] style="[{$sStyle}]"[{/if}]>
213 
214  [{* Theme SVG icons *}]
*** 
 
215  <div style="display: none;">
216  [{include file="layout/svg/shoppingbag.svg" count=$oxcmp_basket->getItemsCount()}]
217  </div>
*** 
 
218 
219  <div class="[{if $blFullwidth}]fullwidth-container[{else}]container[{/if}]">
220  <div class="main-row">
221  [{foreach from=$oxidBlock_pageBody item="_block"}]
222  [{$_block}]
223  [{/foreach}]
224  </div>
225  </div>
226 
227  [{foreach from=$oxidBlock_pagePopup item="_block"}]
228  [{$_block}]
229  [{/foreach}]
230 
231  [{if $oViewConf->getTopActiveClassName() == 'details' && $oView->showZoomPics()}]
232  [{include file="page/details/inc/photoswipe.tpl"}]
233  [{/if}]
234 
235  [{block name="base_js"}]
236  [{include file="i18n/js_vars.tpl"}]
237 
238  [{oxscript include="js/libs/jquery.min.js" priority=1}]
239  [{oxscript include="js/libs/jquery-ui.min.js" priority=1}]
240  [{oxscript include="js/scripts.min.js" priority=1}]
241  [{/block}]
242 
243  [{if $oViewConf->isTplBlocksDebugMode()}]
244  [{oxscript include="js/widgets/oxblockdebug.min.js"}]
245  [{oxscript add="$( 'hr.debugBlocksStart' ).oxBlockDebug();"}]
246  [{/if}]
247 
248  <!--[if gte IE 9]><style type="text/css">.gradient {filter:none;}</style><![endif]-->
249  [{oxscript}]
*** 
 
 
250  [{oxid_include_dynamic file="widget/dynscript.tpl"}]
*** 
 
251 
252  [{foreach from=$oxidBlock_pageScript item="_block"}]
253  [{$_block}]
254  [{/foreach}]
255 
256  </body>
257 </html>
 
2 lines changed or deleted