Error compiling template "Designs/ClientBase_generated/_parsed/VisualEditorPageClean.parsed.cshtml"
Line 504: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 504: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 548: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 548: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 999: 'User.GetCurrentExtranetUserId()' is obsolete: 'Use GetCurrentFrontendUserId() instead.'
Line 2271: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 2271: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 3513: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 3513: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 3513: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 3513: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 3838: A local variable or function named 'polyfillsjs' is already defined in this scope
Line 3839: A local variable or function named 'appbundlejs' is already defined in this scope
Line 3840: A local variable or function named 'appAsyncbundlejs' is already defined in this scope
Line 3841: A local variable or function named 'vuebundlejs' is already defined in this scope
Line 1376: The variable 'hidePricesForGuests' is assigned but its value is never used
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 namespace CompiledRazorTemplates.Dynamic {
12
13 #line 256 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
14 using System;
15
16 #line default
17 #line hidden
18 using System.Collections.Generic;
19
20 #line 799 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
21 using System.Linq;
22
23 #line default
24 #line hidden
25
26 #line 257 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
27 using System.Web;
28
29 #line default
30 #line hidden
31
32 #line 800 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
33 using System.Data;
34
35 #line default
36 #line hidden
37
38 #line 450 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
39 using System.Data.SqlClient;
40
41 #line default
42 #line hidden
43
44 #line 259 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
45 using System.Globalization;
46
47 #line default
48 #line hidden
49
50 #line 9 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
51 using System.Reflection;
52
53 #line default
54 #line hidden
55
56 #line 1385 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
57 using Dynamicweb;
58
59 #line default
60 #line hidden
61
62 #line 1386 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
63 using Dynamicweb.Content.Items;
64
65 #line default
66 #line hidden
67
68 #line 263 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
69 using Dynamicweb.Environment;
70
71 #line default
72 #line hidden
73
74 #line 264 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
75 using Dynamicweb.Frontend;
76
77 #line default
78 #line hidden
79
80 #line 265 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
81 using Dynamicweb.Frontend.Navigation;
82
83 #line default
84 #line hidden
85
86 #line 1387 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
87 using Bluedesk.DynamicWeb.ItemTypes;
88
89 #line default
90 #line hidden
91
92 #line 454 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
93 using Bluedesk.DynamicWeb.ItemTypes.Settings;
94
95 #line default
96 #line hidden
97
98 #line 455 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
99 using Bluedesk.DynamicWeb.ItemTypes.Configuration;
100
101 #line default
102 #line hidden
103
104 #line 456 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
105 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
106
107 #line default
108 #line hidden
109
110 #line 950 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
111 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
112
113 #line default
114 #line hidden
115
116 #line 267 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
117 using Bluedesk.Tools.Generic;
118
119 #line default
120 #line hidden
121
122 #line 451 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
123 using Bluedesk.Tools.DynamicWeb.DataAccess;
124
125 #line default
126 #line hidden
127
128 #line 271 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
129 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
130
131 #line default
132 #line hidden
133
134 #line 949 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
135 using Bluedesk.DynamicWeb.ItemTypes.Extensions;
136
137 #line default
138 #line hidden
139
140 #line 803 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
141 using Dynamicweb.Content;
142
143 #line default
144 #line hidden
145
146
147 public class RazorEngine_fde00bae5d15433eaa9079d0f93a6065 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
148
149 #line hidden
150
151 #line 277 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
152 public RazorEngine.Templating.TemplateWriter RenderCSSKeyAndValue(string Key, string Value)
153 {
154 #line default
155 #line hidden
156 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
157
158 #line 278 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
159
160 if (!string.IsNullOrWhiteSpace(Value))
161 {
162
163
164 #line default
165 #line hidden
166 WriteLiteralTo(__razor_helper_writer, "\t\t");
167
168
169 #line 281 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
170 WriteTo(__razor_helper_writer, Key);
171
172
173 #line default
174 #line hidden
175 WriteLiteralTo(__razor_helper_writer, " : ");
176
177
178 #line 281 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
179 WriteTo(__razor_helper_writer, Value);
180
181
182 #line default
183 #line hidden
184 WriteLiteralTo(__razor_helper_writer, " !important;");
185
186 WriteLiteralTo(__razor_helper_writer, "\r\n");
187
188
189 #line 282 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
190 }
191
192
193 #line default
194 #line hidden
195 });
196
197 #line 283 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
198 }
199 #line default
200 #line hidden
201
202
203 #line 285 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
204 public RazorEngine.Templating.TemplateWriter SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
205 {
206 #line default
207 #line hidden
208 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
209
210 #line 286 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
211
212
213 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
214 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
215 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
216 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
217
218 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
219
220 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
221 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
222
223 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
224 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
225
226
227
228 #line default
229 #line hidden
230 WriteLiteralTo(__razor_helper_writer, "\t");
231
232 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t");
233
234
235 #line 303 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
236 WriteTo(__razor_helper_writer, Position);
237
238
239 #line default
240 #line hidden
241 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n");
242
243 WriteLiteralTo(__razor_helper_writer, "\t\t");
244
245
246 #line 305 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
247 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding));
248
249
250 #line default
251 #line hidden
252 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
253
254 WriteLiteralTo(__razor_helper_writer, "\t\t");
255
256
257 #line 307 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
258 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top));
259
260
261 #line default
262 #line hidden
263 WriteLiteralTo(__razor_helper_writer, "\r\n");
264
265 WriteLiteralTo(__razor_helper_writer, "\t\t");
266
267
268 #line 308 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
269 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left));
270
271
272 #line default
273 #line hidden
274 WriteLiteralTo(__razor_helper_writer, "\r\n");
275
276 WriteLiteralTo(__razor_helper_writer, "\t\t");
277
278
279 #line 309 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
280 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right));
281
282
283 #line default
284 #line hidden
285 WriteLiteralTo(__razor_helper_writer, "\r\n");
286
287 WriteLiteralTo(__razor_helper_writer, "\t\t");
288
289
290 #line 310 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
291 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom));
292
293
294 #line default
295 #line hidden
296 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
297
298 WriteLiteralTo(__razor_helper_writer, "\t\t");
299
300
301 #line 312 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
302 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color));
303
304
305 #line default
306 #line hidden
307 WriteLiteralTo(__razor_helper_writer, "\r\n");
308
309 WriteLiteralTo(__razor_helper_writer, "\t\t");
310
311
312 #line 313 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
313 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize));
314
315
316 #line default
317 #line hidden
318 WriteLiteralTo(__razor_helper_writer, "\r\n");
319
320 WriteLiteralTo(__razor_helper_writer, "\t\t");
321
322
323 #line 314 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
324 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle));
325
326
327 #line default
328 #line hidden
329 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
330
331 WriteLiteralTo(__razor_helper_writer, "\t\t");
332
333
334 #line 316 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
335 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight));
336
337
338 #line default
339 #line hidden
340 WriteLiteralTo(__razor_helper_writer, "\r\n");
341
342 WriteLiteralTo(__razor_helper_writer, "\t\t");
343
344
345 #line 317 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
346 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily));
347
348
349 #line default
350 #line hidden
351 WriteLiteralTo(__razor_helper_writer, "\r\n");
352
353 WriteLiteralTo(__razor_helper_writer, "\t\t");
354
355
356 #line 318 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
357 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight));
358
359
360 #line default
361 #line hidden
362 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
363
364 WriteLiteralTo(__razor_helper_writer, "\t\t");
365
366
367 #line 320 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
368 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor));
369
370
371 #line default
372 #line hidden
373 WriteLiteralTo(__razor_helper_writer, "\r\n");
374
375 WriteLiteralTo(__razor_helper_writer, "\t\t");
376
377
378 #line 321 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
379 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor));
380
381
382 #line default
383 #line hidden
384 WriteLiteralTo(__razor_helper_writer, "\r\n");
385
386 WriteLiteralTo(__razor_helper_writer, "\t\t");
387
388
389 #line 322 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
390 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize));
391
392
393 #line default
394 #line hidden
395 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t");
396
397 WriteLiteralTo(__razor_helper_writer, "\r\n");
398
399
400 #line 325 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
401
402
403
404 #line default
405 #line hidden
406 });
407
408 #line 326 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
409 }
410 #line default
411 #line hidden
412
413
414 #line 1371 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
415 public RazorEngine.Templating.TemplateWriter RenderFooterUSP(string USP_content, string USP_icon)
416 {
417 #line default
418 #line hidden
419 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
420
421 #line 1372 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
422
423 if (!string.IsNullOrWhiteSpace(USP_content))
424 {
425 var usp_icon_class = (!string.IsNullOrWhiteSpace(USP_icon)) ? USP_icon : "fal fa-check";
426
427
428
429 #line default
430 #line hidden
431 WriteLiteralTo(__razor_helper_writer, "\t\t<li");
432
433 WriteLiteralTo(__razor_helper_writer, " class=\"footer-usp__item\"");
434
435 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t<i");
436
437 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 46564), Tuple.Create("\"", 46604)
438
439 #line 1378 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
440 , Tuple.Create(Tuple.Create("", 46572), Tuple.Create<System.Object, System.Int32>(usp_icon_class
441
442 #line default
443 #line hidden
444 , 46572), false)
445 , Tuple.Create(Tuple.Create(" ", 46587), Tuple.Create("footer-usp__icon", 46588), true)
446 );
447
448 WriteLiteralTo(__razor_helper_writer, "></i>\r\n\t\t\t<span>");
449
450
451 #line 1379 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
452 WriteTo(__razor_helper_writer, USP_content);
453
454
455 #line default
456 #line hidden
457 WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t\t</li>\r\n");
458
459
460 #line 1381 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
461 }
462
463
464 #line default
465 #line hidden
466 });
467
468 #line 1382 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
469 }
470 #line default
471 #line hidden
472
473
474 public RazorEngine_fde00bae5d15433eaa9079d0f93a6065() {
475 }
476
477 public override void Execute() {
478 WriteLiteral("\r\n");
479
480 WriteLiteral("\r\n");
481
482 WriteLiteral("\r\n");
483
484 WriteLiteral("\r\n");
485
486 WriteLiteral("\r\n");
487
488 WriteLiteral("\r\n");
489
490 WriteLiteral("\r\n");
491
492 WriteLiteral("\r\n");
493
494 WriteLiteral("\r\n");
495
496 WriteLiteral("\r\n");
497
498 WriteLiteral("\r\n");
499
500
501 #line 51 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
502
503
504 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
505 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
506
507 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
508
509 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
510
511 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
512 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
513
514 string ecomShowPricesWithVat = (Pageview.Area.EcomPricesWithVat == "True").ToString().ToLower();
515 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
516
517 bool IsNotContentManager = false;
518 bool isVisualEditor = Pageview.IsVisualEditorMode;
519
520 if (isVisualEditor)
521 {
522 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
523 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
524 }
525
526 BaseSettingsObj BaseSettings = new BaseSettingsObj();
527
528 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
529 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
530
531 //if (HttpContext.Current.Session["BaseSettings"] == null)
532 //{
533
534 //}
535 //else
536 //{
537 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
538 // if (BaseSettings.AreaID != Pageview.AreaID)
539 // {
540 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
541 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
542 // }
543 //}
544
545 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
546 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
547
548 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
549
550 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
551 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
552 var langName = Pageview.Area.Culture;
553
554 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
555 var designRoot = BaseSettings.DesignRoot;
556
557 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
558 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
559 var emailadress = BaseSettings.CorporateSettings.Emailadress;
560 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
561 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
562 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
563
564 bool isOffline = false;
565
566 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
567 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
568 DateTime today = DateTime.Now;
569 var cHour = DateTime.Now.TimeOfDay;
570 int cDay = (int)DateTime.Now.DayOfWeek;
571 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
572 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
573 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
574 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
575 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
576 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
577 if (isNoValidDate || isOvertime)
578 {
579 isOffline = true;
580 }
581
582 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
583
584 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
585
586 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
587 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
588 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
589
590 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
591 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
592 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
593
594 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js");
595 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
596 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
597 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
598
599
600
601 #line default
602 #line hidden
603 WriteLiteral("\r\n\r\n\r\n<!DOCTYPE html>\r\n<html");
604
605 WriteAttribute("lang", Tuple.Create(" lang=\"", 6483), Tuple.Create("\"", 6495)
606
607 #line 152 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
608 , Tuple.Create(Tuple.Create("", 6490), Tuple.Create<System.Object, System.Int32>(lang
609
610 #line default
611 #line hidden
612 , 6490), false)
613 );
614
615 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\"");
616
617 WriteLiteral(">\r\n<head>\r\n\t<meta");
618
619 WriteLiteral(" charset=\"utf-8\"");
620
621 WriteLiteral(">\r\n\t<meta");
622
623 WriteLiteral(" http-equiv=\"X-UA-Compatible\"");
624
625 WriteLiteral(" content=\"IE=edge\"");
626
627 WriteLiteral(">\r\n\t<meta");
628
629 WriteLiteral(" name=\"viewport\"");
630
631 WriteLiteral(" content=\"width=device-width, initial-scale=1\"");
632
633 WriteLiteral(">\r\n\t<meta");
634
635 WriteLiteral(" name=\"theme-color\"");
636
637 WriteAttribute("content", Tuple.Create(" content=\"", 6715), Tuple.Create("\"", 6742)
638
639 #line 157 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
640 , Tuple.Create(Tuple.Create("", 6725), Tuple.Create<System.Object, System.Int32>(mobileThemeColor
641
642 #line default
643 #line hidden
644 , 6725), false)
645 );
646
647 WriteLiteral(">\r\n");
648
649 WriteLiteral("\t");
650
651
652 #line 158 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
653 Write(Model.MetaTags);
654
655
656 #line default
657 #line hidden
658 WriteLiteral("\r\n\t<title>");
659
660
661 #line 159 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
662 Write(Model.Title);
663
664
665 #line default
666 #line hidden
667 WriteLiteral("</title>\r\n\r\n");
668
669 WriteLiteral("\t");
670
671
672 #line 161 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
673 Write(RenderSnippet("canonical"));
674
675
676 #line default
677 #line hidden
678 WriteLiteral("\r\n");
679
680 WriteLiteral("\t");
681
682
683 #line 162 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
684 Write(RenderSnippet("ogTags"));
685
686
687 #line default
688 #line hidden
689 WriteLiteral("\r\n\r\n");
690
691
692 #line 164 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
693
694
695 #line default
696 #line hidden
697
698 #line 164 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
699
700 string urlProtocol = Dynamicweb.Context.Current.Request.Url.Scheme;
701 List<Dynamicweb.Content.Page> pageTranslations = new List<Dynamicweb.Content.Page>();
702 bool isMasterPage = Pageview.Area.IsMaster;
703 if (isMasterPage)
704 {
705 pageTranslations.Add(Pageview.Page);
706 if (Pageview.Page.Languages != null)
707 {
708 foreach (var language in Pageview.Page.Languages)
709 {
710 if (language.Active)
711 {
712 pageTranslations.Add(language);
713 }
714 }
715 }
716 }
717 else
718 {
719 pageTranslations.Add(Pageview.Page.MasterPage);
720 if (Pageview.Page.MasterPage != null)
721 {
722 if (Pageview.Page.MasterPage.Languages != null)
723 {
724 foreach (var language in Pageview.Page.MasterPage.Languages)
725 {
726 if (language.Active)
727 {
728 pageTranslations.Add(language);
729 }
730 }
731 }
732 }
733 }
734 foreach (var page in pageTranslations)
735 {
736 if (page != null)
737 {
738 string url = $"Default.aspx?ID={page.ID}";
739 string groupid = Dynamicweb.Context.Current.Request.QueryString.Get("GroupID");
740 string productid = Dynamicweb.Context.Current.Request.QueryString.Get("ProductID");
741 string variantid = Dynamicweb.Context.Current.Request.QueryString.Get("VariantID");
742 if (!string.IsNullOrWhiteSpace(groupid))
743 {
744 var groupObj = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(groupid, page.Area.EcomLanguageId);
745 if (groupObj == null)
746 {
747 continue;
748 }
749 url = $"{url}&GroupID={groupid}";
750 }
751 if (!string.IsNullOrWhiteSpace(productid))
752 {
753 var productObj = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, page.Area.EcomLanguageId);;
754 if (productObj == null)
755 {
756 continue;
757 }
758 url = $"{url}&ProductID={productid}";
759 if (!string.IsNullOrWhiteSpace(variantid))
760 {
761 url = $"{url}&VariantID={variantid}";
762 }
763 }
764
765 string currentdomain = Context.Current.Request.Url.DnsSafeHost;
766 if (!string.IsNullOrEmpty(page.Area.DomainLock)) {
767 currentdomain = page.Area.DomainLock;
768 }
769 string friendlyUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(url);
770 string href = $"{urlProtocol}://{currentdomain}{friendlyUrl}";
771 string hreflang = page.Area.CultureInfo.Name.ToLower();
772
773
774 #line default
775 #line hidden
776 WriteLiteral("\t\t\t<link");
777
778 WriteLiteral(" rel=\"alternate\"");
779
780 WriteAttribute("href", Tuple.Create(" href=\"", 9118), Tuple.Create("\"", 9130)
781
782 #line 237 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
783 , Tuple.Create(Tuple.Create("", 9125), Tuple.Create<System.Object, System.Int32>(href
784
785 #line default
786 #line hidden
787 , 9125), false)
788 );
789
790 WriteAttribute("hreflang", Tuple.Create(" hreflang=\"", 9131), Tuple.Create("\"", 9151)
791
792 #line 237 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
793 , Tuple.Create(Tuple.Create("", 9142), Tuple.Create<System.Object, System.Int32>(hreflang
794
795 #line default
796 #line hidden
797 , 9142), false)
798 );
799
800 WriteLiteral(" />\r\n");
801
802
803 #line 238 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
804 }
805 }
806
807
808 #line default
809 #line hidden
810 WriteLiteral("\r\n\r\n\r\n\t<link");
811
812 WriteLiteral(" rel=\"preconnect\"");
813
814 WriteLiteral(" href=\"https://fonts.googleapis.com\"");
815
816 WriteLiteral(">\r\n\t<link");
817
818 WriteLiteral(" rel=\"preconnect\"");
819
820 WriteLiteral(" href=\"https://fonts.gstatic.com\"");
821
822 WriteLiteral(" crossorigin>\r\n\t<link");
823
824 WriteAttribute("href", Tuple.Create(" href=\"", 9312), Tuple.Create("\"", 9326)
825
826 #line 245 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
827 , Tuple.Create(Tuple.Create("", 9319), Tuple.Create<System.Object, System.Int32>(appcss
828
829 #line default
830 #line hidden
831 , 9319), false)
832 );
833
834 WriteLiteral(" rel=\"stylesheet\"");
835
836 WriteLiteral(" type=\"text/css\"");
837
838 WriteLiteral(" />\r\n\r\n");
839
840
841 #line 247 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
842
843
844 #line default
845 #line hidden
846
847 #line 247 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
848
849 if (!string.IsNullOrWhiteSpace(favicon32)) {
850
851 #line default
852 #line hidden
853 WriteLiteral(" <link");
854
855 WriteLiteral(" rel=\"icon\"");
856
857 WriteLiteral(" type=\"image/png\"");
858
859 WriteLiteral(" sizes=\"32x32\"");
860
861 WriteAttribute("href", Tuple.Create(" href=\"", 9466), Tuple.Create("\"", 9483)
862
863 #line 248 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
864 , Tuple.Create(Tuple.Create("", 9473), Tuple.Create<System.Object, System.Int32>(favicon32
865
866 #line default
867 #line hidden
868 , 9473), false)
869 );
870
871 WriteLiteral("> ");
872
873
874 #line 248 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
875 }
876 if (!string.IsNullOrWhiteSpace(favicon16)) {
877
878 #line default
879 #line hidden
880 WriteLiteral(" <link");
881
882 WriteLiteral(" rel=\"icon\"");
883
884 WriteLiteral(" type=\"image/png\"");
885
886 WriteLiteral(" sizes=\"16x16\"");
887
888 WriteAttribute("href", Tuple.Create(" href=\"", 9583), Tuple.Create("\"", 9600)
889
890 #line 249 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
891 , Tuple.Create(Tuple.Create("", 9590), Tuple.Create<System.Object, System.Int32>(favicon16
892
893 #line default
894 #line hidden
895 , 9590), false)
896 );
897
898 WriteLiteral("> ");
899
900
901 #line 249 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
902 }
903 if (!string.IsNullOrWhiteSpace(favicon)){
904
905 #line default
906 #line hidden
907 WriteLiteral(" <link");
908
909 WriteLiteral(" rel=\"shortcut icon\"");
910
911 WriteAttribute("href", Tuple.Create(" href=\"", 9675), Tuple.Create("\"", 9690)
912
913 #line 250 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
914 , Tuple.Create(Tuple.Create("", 9682), Tuple.Create<System.Object, System.Int32>(favicon
915
916 #line default
917 #line hidden
918 , 9682), false)
919 );
920
921 WriteLiteral("> ");
922
923
924 #line 250 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
925 }
926
927
928 #line default
929 #line hidden
930 WriteLiteral("\r\n\r\n\r\n\r\n");
931
932
933 #line 255 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
934
935
936 #line default
937 #line hidden
938 WriteLiteral("\r\n");
939
940 WriteLiteral("\r\n");
941
942 WriteLiteral("\r\n");
943
944 WriteLiteral("\r\n");
945
946 WriteLiteral("\r\n");
947
948 WriteLiteral("\r\n");
949
950 WriteLiteral("\r\n\r\n\t<script>\r\n\t\twindow.globals = {\r\n\t\t\tpageId: \'");
951
952
953 #line 331 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
954 Write(Pageview.ID);
955
956
957 #line default
958 #line hidden
959 WriteLiteral("\',\r\n\t\t\tToken: \'");
960
961
962 #line 332 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
963 Write(csrftoken);
964
965
966 #line default
967 #line hidden
968 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE: \'");
969
970
971 #line 333 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
972 Write(langName);
973
974
975 #line default
976 #line hidden
977 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE_SHORT: \'");
978
979
980 #line 334 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
981 Write(lang);
982
983
984 #line default
985 #line hidden
986 WriteLiteral("\',\r\n\t\t\tglobalIconClass: \'");
987
988
989 #line 335 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
990 Write(buttonIconClass);
991
992
993 #line default
994 #line hidden
995 WriteLiteral("\',\r\n\t\t\tDW_USERID: \'");
996
997
998 #line 336 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
999 Write(Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId());
1000
1001
1002 #line default
1003 #line hidden
1004 WriteLiteral("\',\r\n\t\t\tDW_SHOW_PRICES_WITH_VAT: ");
1005
1006
1007 #line 337 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1008 Write(ecomShowPricesWithVat);
1009
1010
1011 #line default
1012 #line hidden
1013 WriteLiteral(",\r\n\t\t\tDW_PRICES_FORMATTED: ");
1014
1015
1016 #line 338 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1017 Write(ecomPricesFormatted);
1018
1019
1020 #line default
1021 #line hidden
1022 WriteLiteral("\r\n\t\t};\r\n\t</script>\r\n\r\n");
1023
1024 WriteLiteral("\t");
1025
1026
1027 #line 342 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1028 Write(BaseSettings.System.HeadScript);
1029
1030
1031 #line default
1032 #line hidden
1033 WriteLiteral("\r\n\r\n");
1034
1035
1036 #line 344 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1037
1038
1039 #line default
1040 #line hidden
1041
1042 #line 344 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1043
1044 var _cookieOptinLevel = Dynamicweb.Environment.CookieManager.GetCookieOptInLevel();
1045 var _enabledCookieCategories = Dynamicweb.Environment.CookieManager.GetCookieOptInCategories();
1046 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies"))
1047 {
1048
1049
1050 #line default
1051 #line hidden
1052
1053 #line 349 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1054 Write(BaseSettings.System.HeadScriptAfterConsent);
1055
1056
1057 #line default
1058 #line hidden
1059
1060 #line 349 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1061 ;
1062 }
1063
1064
1065 #line default
1066 #line hidden
1067 WriteLiteral("\r\n\r\n");
1068
1069
1070 #line 353 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1071
1072
1073 #line default
1074 #line hidden
1075
1076 #line 354 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1077
1078
1079 var reviewName = BaseSettings.Review.Review_Name != null ? BaseSettings.Review.Review_Name : "";
1080 var reviewBestRating = BaseSettings.Review.Review_Best_Rating != null ? BaseSettings.Review.Review_Best_Rating : "";
1081 var reviewWorstRating = BaseSettings.Review.Review_Worst_Rating != null ? BaseSettings.Review.Review_Worst_Rating : "";
1082 var reviewRatingValue = BaseSettings.Review.Review_Rating_Value != null ? BaseSettings.Review.Review_Rating_Value : "";
1083 var reviewCount = BaseSettings.Review.Review_Count != null ? BaseSettings.Review.Review_Count : "";
1084 var reviewUrl = BaseSettings.Review.Review_URL != null ? BaseSettings.Review.Review_URL : "";
1085
1086 var searchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID);
1087 var domain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
1088
1089
1090 #line default
1091 #line hidden
1092 WriteLiteral("\r\n\r\n<script");
1093
1094 WriteLiteral(" type=\"application/ld+json\"");
1095
1096 WriteLiteral(">\r\n\t[{\r\n\t\"");
1097
1098 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\"");
1099
1100 WriteLiteral("@type\": \"Organization\",\r\n\t\"name\" : \"");
1101
1102
1103 #line 371 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1104 Write(BaseSettings.CorporateSettings.CompanyName);
1105
1106
1107 #line default
1108 #line hidden
1109 WriteLiteral("\",\r\n\t\"url\": \"");
1110
1111
1112 #line 372 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1113 Write(domain);
1114
1115
1116 #line default
1117 #line hidden
1118 WriteLiteral("\",\r\n\t\"sameAs\" : \"");
1119
1120
1121 #line 373 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1122 Write(BaseSettings.SocialMedia.Facebook);
1123
1124
1125 #line default
1126 #line hidden
1127 WriteLiteral("\",\r\n\t\"logo\": \"");
1128
1129
1130 #line 374 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1131 Write(domain);
1132
1133
1134 #line default
1135 #line hidden
1136
1137 #line 374 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1138 Write(BaseSettings.BrandConfiguration.Logos.Logo);
1139
1140
1141 #line default
1142 #line hidden
1143 WriteLiteral("\",\r\n\t\"contactPoint\" : [{\r\n\t\"");
1144
1145 WriteLiteral("@type\" : \"ContactPoint\",\r\n\t\"telephone\" : \"");
1146
1147
1148 #line 377 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1149 Write(BaseSettings.CorporateSettings.Phonenumber);
1150
1151
1152 #line default
1153 #line hidden
1154 WriteLiteral("\",\r\n\t\"contactType\" : \"customer service\" ,\r\n\t\"");
1155
1156 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\"");
1157
1158 WriteLiteral("@id\": \"");
1159
1160
1161 #line 380 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1162 Write(domain);
1163
1164
1165 #line default
1166 #line hidden
1167 WriteLiteral("\",\r\n\t\"name\": \"");
1168
1169
1170 #line 381 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1171 Write(BaseSettings.CorporateSettings.CompanyName);
1172
1173
1174 #line default
1175 #line hidden
1176 WriteLiteral("\"\r\n\t}],\r\n\t\"address\": {\r\n\t\"");
1177
1178 WriteLiteral("@type\": \"PostalAddress\",\r\n\t\"streetAddress\": \"");
1179
1180
1181 #line 385 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1182 Write(BaseSettings.CorporateSettings.Address);
1183
1184
1185 #line default
1186 #line hidden
1187 WriteLiteral("\",\r\n\t\"addressLocality\": \"");
1188
1189
1190 #line 386 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1191 Write(BaseSettings.CorporateSettings.City);
1192
1193
1194 #line default
1195 #line hidden
1196 WriteLiteral("\",\r\n\t\"postalCode\": \"");
1197
1198
1199 #line 387 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1200 Write(BaseSettings.CorporateSettings.Zipcode);
1201
1202
1203 #line default
1204 #line hidden
1205 WriteLiteral("\",\r\n\t\"addressRegion\": \"");
1206
1207
1208 #line 388 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1209 Write(BaseSettings.CorporateSettings.Region);
1210
1211
1212 #line default
1213 #line hidden
1214 WriteLiteral("\",\r\n\t\"addressCountry\": \"");
1215
1216
1217 #line 389 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1218 Write(BaseSettings.CorporateSettings.Country);
1219
1220
1221 #line default
1222 #line hidden
1223 WriteLiteral("\"\r\n\t}\r\n\t},\r\n\t{\r\n\t\"");
1224
1225 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\"");
1226
1227 WriteLiteral("@type\": \"WebSite\",\r\n\t\"name\" : \"");
1228
1229
1230 #line 395 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1231 Write(BaseSettings.CorporateSettings.CompanyName);
1232
1233
1234 #line default
1235 #line hidden
1236 WriteLiteral("\",\r\n\t\"alternateName\" : \"");
1237
1238
1239 #line 396 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1240 Write(BaseSettings.CorporateSettings.AltCompanyName);
1241
1242
1243 #line default
1244 #line hidden
1245 WriteLiteral("\",\r\n\t\"url\": \"");
1246
1247
1248 #line 397 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1249 Write(domain);
1250
1251
1252 #line default
1253 #line hidden
1254 WriteLiteral("\",\r\n\t\"potentialAction\": {\r\n\t\"");
1255
1256 WriteLiteral("@type\": \"SearchAction\",\r\n\t\"target\": \"");
1257
1258
1259 #line 400 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1260 Write(domain);
1261
1262
1263 #line default
1264 #line hidden
1265 WriteLiteral("/Default.aspx?ID=");
1266
1267
1268 #line 400 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1269 Write(searchPageID);
1270
1271
1272 #line default
1273 #line hidden
1274 WriteLiteral("&q={search_term_string}\",\r\n\t\"query-input\": \"required name=search_term_string\"\r\n\t}" +
1275 "\r\n\t}]\r\n</script>\r\n\r\n<script");
1276
1277 WriteLiteral(" type=\"application/ld+json\"");
1278
1279 WriteLiteral(">\r\n\t{\r\n\t\t\"");
1280
1281 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\t\"");
1282
1283 WriteLiteral("@type\": \"Product\",\r\n\t\t\"name\": \"");
1284
1285
1286 #line 410 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1287 Write(reviewName);
1288
1289
1290 #line default
1291 #line hidden
1292 WriteLiteral("\",\r\n\t\t\"url\":\"");
1293
1294
1295 #line 411 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1296 Write(reviewUrl);
1297
1298
1299 #line default
1300 #line hidden
1301 WriteLiteral("\",\r\n\t\t\"aggregateRating\": {\r\n\t\t\t\"");
1302
1303 WriteLiteral("@type\": \"AggregateRating\",\r\n\t\t\t\"bestRating\": \"");
1304
1305
1306 #line 414 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1307 Write(reviewBestRating);
1308
1309
1310 #line default
1311 #line hidden
1312 WriteLiteral("\",\r\n\t\t\t\"worstRating\": \"");
1313
1314
1315 #line 415 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1316 Write(reviewWorstRating);
1317
1318
1319 #line default
1320 #line hidden
1321 WriteLiteral("\",\r\n\t\t\t\"ratingValue\": \"");
1322
1323
1324 #line 416 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1325 Write(reviewRatingValue);
1326
1327
1328 #line default
1329 #line hidden
1330 WriteLiteral("\",\r\n\t\t\t\"reviewCount\": \"");
1331
1332
1333 #line 417 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1334 Write(reviewCount);
1335
1336
1337 #line default
1338 #line hidden
1339 WriteLiteral("\"\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n");
1340
1341 WriteLiteral("\t");
1342
1343
1344 #line 423 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1345 Write(RenderSnippet("DataLayer"));
1346
1347
1348 #line default
1349 #line hidden
1350 WriteLiteral("\r\n");
1351
1352 WriteLiteral("\t");
1353
1354
1355 #line 424 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1356 Write(RenderSnippet("GoogleMapsScript"));
1357
1358
1359 #line default
1360 #line hidden
1361 WriteLiteral("\r\n\r\n");
1362
1363
1364 #line 426 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1365
1366
1367 #line default
1368 #line hidden
1369 WriteLiteral("\r\n");
1370
1371
1372 #line 428 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1373
1374
1375 // TODO: Add there options to master config for product overview
1376 bool hidePricesForGuests = false;
1377 bool hideShoppingCartForGuests = false;
1378
1379 bool enableShoppingCart = hideShoppingCartForGuests && Pageview.User == null ? false : BaseSettings.Features.ConfigModuleShoppingCart;
1380 bool enableLogin = BaseSettings.Features.ConfigModuleLogin;
1381 bool enableQuickOrder = BaseSettings.Features.ConfigModuleQuickOrder;
1382 bool enableAdvancedSearch = BaseSettings.Features.ConfigModuleAdvancedSearch;
1383 bool enableCallMeBack = BaseSettings.Features.ConfigModuleCallMeBack;
1384 bool enableDyslexicFont = BaseSettings.Features.ConfigModuleDyslexicFont;
1385 bool enableProductCompare = BaseSettings.Features.ConfigModuleProductCompare;
1386
1387
1388 #line default
1389 #line hidden
1390 WriteLiteral("\r\n\r\n\t\r\n\r\n\t<style>\r\n");
1391
1392
1393 #line 446 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1394
1395
1396 #line default
1397 #line hidden
1398 WriteLiteral("\r\n");
1399
1400 WriteLiteral("\r\n");
1401
1402 WriteLiteral("\r\n");
1403
1404 WriteLiteral("\r\n");
1405
1406
1407 #line 460 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1408 Write(Title("Configuration page template"));
1409
1410
1411 #line default
1412 #line hidden
1413 WriteLiteral("\r\n\r\n");
1414
1415
1416 #line 462 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1417
1418
1419 string RoundedCornersValue = "0px";
1420 string ButtonHeight = BaseSettings.BrandConfiguration.ButtonHeight;
1421
1422 switch (BaseSettings.BrandConfiguration.RoundedCorners)
1423 {
1424
1425 case "rounded":
1426 RoundedCornersValue = BaseSettings.BrandConfiguration.RoundedCornerValue;
1427 break;
1428
1429 case "round":
1430 RoundedCornersValue = ButtonHeight;
1431 break;
1432
1433 default:
1434 RoundedCornersValue = "0px";
1435 break;
1436 }
1437
1438 string fontawesomeFontFamily = "Font Awesome 5 Pro";
1439 int fontawesomeFontWeight = 300;
1440
1441 switch (BaseSettings.BrandConfiguration.FontawesomeStyle)
1442 {
1443
1444 case "fal":
1445 fontawesomeFontWeight = 300;
1446 break;
1447 case "far":
1448 fontawesomeFontWeight = 400;
1449 break;
1450 case "fas":
1451 fontawesomeFontWeight = 900;
1452 break;
1453 case "fad":
1454 fontawesomeFontWeight = 900;
1455 fontawesomeFontFamily = "Font Awesome 5 Duotone";
1456 break;
1457 }
1458
1459
1460
1461 #line default
1462 #line hidden
1463 WriteLiteral("\r\n\r\n");
1464
1465
1466 #line 506 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1467 Write(BaseSettingServices.RenderButtonCSS("btn__primary", BaseSettingsButtons.PrimaryButtonConfiguration));
1468
1469
1470 #line default
1471 #line hidden
1472 WriteLiteral("\r\n");
1473
1474
1475 #line 507 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1476 Write(BaseSettingServices.RenderButtonCSS("btn__secondary", BaseSettingsButtons.SecondaryButtonConfiguration));
1477
1478
1479 #line default
1480 #line hidden
1481 WriteLiteral("\r\n");
1482
1483
1484 #line 508 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1485 Write(BaseSettingServices.RenderButtonCSS("btn__contrast", BaseSettingsButtons.ContrastButtonConfiguration));
1486
1487
1488 #line default
1489 #line hidden
1490 WriteLiteral("\r\n\r\n:root,\r\nbody {\r\n\r\n\t--BaseColorPrimary : ");
1491
1492
1493 #line 513 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1494 Write(BaseSettingsBrandConfiguration.BaseColorPrimary);
1495
1496
1497 #line default
1498 #line hidden
1499 WriteLiteral(";\r\n\t--BaseColorSecondary : ");
1500
1501
1502 #line 514 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1503 Write(BaseSettingsBrandConfiguration.BaseColorSecondary);
1504
1505
1506 #line default
1507 #line hidden
1508 WriteLiteral(";\r\n\t--BaseColorContrast : ");
1509
1510
1511 #line 515 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1512 Write(BaseSettingsBrandConfiguration.BaseColorContrast);
1513
1514
1515 #line default
1516 #line hidden
1517 WriteLiteral(";\r\n\r\n\t--BaseFontPrimary : ");
1518
1519
1520 #line 517 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1521 Write(BaseSettingsBrandConfiguration.PrimaryFontFamily);
1522
1523
1524 #line default
1525 #line hidden
1526 WriteLiteral(";\r\n\t--BaseFontSecondary : ");
1527
1528
1529 #line 518 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1530 Write(BaseSettingsBrandConfiguration.PrimaryFontFamily);
1531
1532
1533 #line default
1534 #line hidden
1535 WriteLiteral(";\r\n\r\n");
1536
1537 WriteLiteral("\t");
1538
1539
1540 #line 520 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1541 Write(BaseSettings.BrandConfiguration.BodyInlineStyles);
1542
1543
1544 #line default
1545 #line hidden
1546 WriteLiteral("\r\n\t--StandardUnitSize : 3.2rem;\r\n\t}\r\n\r\n\t.footer {\r\n\t\t--FooterContainerDisplay: no" +
1547 "ne !important;\r\n\t\tdisplay: var(--FooterContainerDisplay)\r\n\t}\r\n\r\n\th1, h2, h3, h4," +
1548 " h5, h6 { ");
1549
1550
1551 #line 529 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1552 Write(BaseSettings.BrandConfiguration.HeaderInlineStyles);
1553
1554
1555 #line default
1556 #line hidden
1557 WriteLiteral(" }\r\n\r\n\th1.cta-paragraph__header { ");
1558
1559
1560 #line 531 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1561 Write(BaseSettings.BrandConfiguration.H1InlineStyles);
1562
1563
1564 #line default
1565 #line hidden
1566 WriteLiteral(" }\r\n\th2.cta-paragraph__header { ");
1567
1568
1569 #line 532 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1570 Write(BaseSettings.BrandConfiguration.H2InlineStyles);
1571
1572
1573 #line default
1574 #line hidden
1575 WriteLiteral(" }\r\n\th3.cta-paragraph__header { ");
1576
1577
1578 #line 533 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1579 Write(BaseSettings.BrandConfiguration.H3InlineStyles);
1580
1581
1582 #line default
1583 #line hidden
1584 WriteLiteral(" }\r\n\th4.cta-paragraph__header { ");
1585
1586
1587 #line 534 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1588 Write(BaseSettings.BrandConfiguration.H4InlineStyles);
1589
1590
1591 #line default
1592 #line hidden
1593 WriteLiteral(" }\r\n\r\n\t.po-block__addtocart .btn,\r\n\t.productdetails__add-to-cart,\r\n\t.searchbox__i" +
1594 "nput {\r\n\tborder-radius: ");
1595
1596
1597 #line 539 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1598 Write(RoundedCornersValue);
1599
1600
1601 #line default
1602 #line hidden
1603 WriteLiteral(";\r\n\t}\r\n\r\n\tmain.blur {\r\n\tfilter: grayscale(50%) blur(15px);\r\n\t-webkit-filter: gray" +
1604 "scale(50%) blur(15px);\r\n\t}\r\n\r\n\t.AdvancedGridButton {\r\n\t--BorderRadius: ");
1605
1606
1607 #line 548 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1608 Write(RoundedCornersValue);
1609
1610
1611 #line default
1612 #line hidden
1613 WriteLiteral(";\r\n\t}\r\n\r\n\t.btn {\r\n\theight: var(--StandardUnitSize);\r\n\t}\r\n\r\n\t.btn__icon {\r\n\r\n\t--fo" +
1614 "ntawesomeFontFamily : \"");
1615
1616
1617 #line 557 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1618 Write(fontawesomeFontFamily);
1619
1620
1621 #line default
1622 #line hidden
1623 WriteLiteral("\";\r\n\t--fontawesomeFontWeight : ");
1624
1625
1626 #line 558 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1627 Write(fontawesomeFontWeight);
1628
1629
1630 #line default
1631 #line hidden
1632 WriteLiteral(";\r\n\r\n\tfont-family: var(--fontawesomeFontFamily);\r\n\tfont-weight: var(--fontawesome" +
1633 "FontWeight);\r\n\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\t-webkit-font-smoothing: a" +
1634 "ntialiased;\r\n\tdisplay: inline-block;\r\n\tfont-style: normal;\r\n\tfont-variant: norma" +
1635 "l;\r\n\ttext-rendering: auto;\r\n\tline-height: 1;\r\n\r\n\t}\r\n\r\n\t.cta-paragraph {\r\n\tbackgr" +
1636 "ound-color: var(--mainBackgroundColor);\r\n\t}\r\n\r\n\t.cta-paragraph__container {\r\n\tba" +
1637 "ckground-color: var(--contentBackgroundColor);\r\n\tborder: var(--contentBorder);\r\n" +
1638 "\t}\r\n\r\n\t.cta-paragraph__subheader,\r\n\t.cta-paragraph__header,\r\n\t.cta-paragraph__te" +
1639 "xt p,\r\n\t.cta-paragraph__text li {\r\n\tcolor: var(--Color);\r\n\tbackground-color: var" +
1640 "(--BackgroundColor);\r\n\tborder-color: var(--BorderColor);\r\n\tposition: var(--Posit" +
1641 "ion);\r\n\ttop: var(--Top);\r\n\tleft: var(--Left);\r\n\tright: var(--Right);\r\n\tbottom: v" +
1642 "ar(--Bottom);\r\n\tpadding: var(--Padding);\r\n\tborder: var(--BorderSize);\r\n\tfont-siz" +
1643 "e: var(--FontSize);\r\n\ttext-transform: var(--FontStyle);\r\n\tline-height: var(--Lin" +
1644 "eHeight);\r\n\tfont-weight: var(--FontWeight);\r\n\tfont-family: var(--FontFamily);\r\n\t" +
1645 "border-radius: var(--BorderRadius);\r\n\t}\r\n\r\n\t.cta-paragraph__content-container {\r" +
1646 "\n\talign-items: var(--ContentElementAlignmentAlignItems);\r\n\ttext-align: var(--Con" +
1647 "tentElementAlignmentTextAlign);\r\n\t}\r\n\r\n\t.cta-paragraph__btn-navigation,\r\n\t.cta-p" +
1648 "aragraph__content-container {\r\n\talign-items : var(--ContainerFitContentAlignment" +
1649 "AlignItems);\r\n\tjustify-content: var(--ContainerFitContentAlignmentJustifyContent" +
1650 ");\r\n\t}\r\n\r\n\t.jumbotron__subheader,\r\n\t.jumbotron__header,\r\n\t.jumbotron__shoutbox-i" +
1651 "ntro p,\r\n\t.jumbotron__shoutbox-intro li,\r\n\t.header--desktop.headerNew {\r\n\tpositi" +
1652 "on: relative;\r\n\t}\r\n\r\n\t.header--desktop.headerNew.stickyheader {\r\n\tposition: fixe" +
1653 "d;\r\n\t}\r\n\r\n\t");
1654
1655 WriteLiteral(@"@media screen and (min-width: 992px){
1656 .image-left {
1657 justify-content: flex-end;
1658 flex-direction: row;
1659 }
1660
1661 .image-right {
1662 justify-content: flex-start;
1663 flex-direction: row-reverse;
1664 }
1665 }
1666
1667 .AdvancedGrid__row {
1668 background-color: var(--BackgroundColor);
1669 }
1670
1671 .cta-paragraph__btn-navigation {
1672 padding: 1.2rem 0rem !important;
1673 }
1674
1675 .AdvancedGrid,
1676 .AdvancedGrid__container {
1677 width: 100%;
1678 background-image: var(--BackgroundImage);
1679 min-height: var(--Height);
1680 }
1681
1682 ");
1683
1684
1685 #line 654 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1686
1687
1688 #line default
1689 #line hidden
1690
1691 #line 654 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1692
1693
1694 int PageViewId = Pageview.Page.ID;
1695 int AreaId = Pageview.AreaID;
1696
1697 // HttpContext.Current.Session["PageIdForStyles"] = Pageview.Page.ID;
1698 // HttpContext.Current.Session["AreaIdForStyles"] = Pageview.AreaID;
1699
1700 DataTable AdvancedGridStylesDataTable = null;
1701
1702 AdvancedGridStylesDataTable = DynamicwebData.Query($@"
1703
1704 SELECT
1705 InlineStyles AS Styles
1706
1707 FROM
1708 [dbo].[ItemType_AdvancedGridConfiguration] AS AGC
1709 LEFT JOIN [dbo].[GridRow] AS GR ON GR.GridRowItemId = AGC.Id
1710
1711 WHERE
1712 GR.GridRowPageId = @PageId;
1713
1714 ", new SqlParameter("PageId", PageViewId));
1715
1716 DataTable BackgroundConfigDataTable = null;
1717
1718 BackgroundConfigDataTable = DynamicwebData.Query($@"
1719
1720 SELECT
1721 distinct(BG.Stylesheet) AS Styles
1722
1723 FROM [dbo].GridRow AS GR
1724 INNER JOIN dbo.Paragraph AS PG ON PG.ParagraphGridRowId = GR.GridRowId
1725 LEFT JOIN dbo.ItemType_CTAParagraph AS CTA ON CTA.Id = PG.ParagraphItemId
1726 LEFT JOIN dbo.ItemType_MultiColumnParagraph AS MCP ON MCP.Id = PG.ParagraphItemId
1727 LEFT JOIN dbo.ItemType_Carousel AS CS ON CS.Id = PG.ParagraphItemId
1728 LEFT JOIN dbo.ItemType_BackgroundConfiguration AS BG ON CTA.BackgroundConfigurationID = BG.Id
1729 OR MCP.BackgroundConfigurationID = BG.Id
1730 OR CS.BackgroundConfigurationID = BG.Id
1731
1732 WHERE GR.GridRowPageID=@PageId
1733 AND bg.Stylesheet Is NOT NULL", new SqlParameter("PageId", PageViewId));
1734
1735 DataTable ButtonConfigDataTable = null;
1736
1737 ButtonConfigDataTable = DynamicwebData.Query($@"
1738
1739 SELECT
1740 distinct(BCONF.Stylesheet) AS Styles
1741
1742 FROM [dbo].GridRow AS GR
1743 LEFT JOIN [dbo].Paragraph AS P ON P.ParagraphGridRowId = GR.GridRowId
1744 LEFT JOIN [dbo].ItemType_CTAParagraph AS CTAP ON CTAP.Id = P.ParagraphItemId
1745
1746 LEFT JOIN [dbo].ItemType_MultiColumnParagraph AS MCP ON MCP.Id = P.ParagraphItemId
1747 LEFT JOIN [dbo].[ItemList] AS ColumnIL ON ColumnIL.ItemListId = MCP.ParagraphListID
1748 LEFT JOIN [dbo].[ItemListRelation] AS ColumnILR ON ColumnIL.ItemListId = ColumnILR.ItemListRelationItemListId
1749 LEFT JOIN [dbo].[ItemType_ParagraphColumn] AS PC ON PC.Id = ColumnILR.ItemListRelationItemId
1750
1751 LEFT JOIN [dbo].ItemType_Carousel AS CS ON CS.Id = P.ParagraphItemId
1752 LEFT JOIN [dbo].[ItemList] AS CIIL ON CIIL.ItemListId = CS.CarouselListID
1753 LEFT JOIN [dbo].[ItemListRelation] AS CIILR ON CIIL.ItemListId = CIILR.ItemListRelationItemListId
1754 LEFT JOIN [dbo].ItemType_CarouselItem AS CI ON CI.Id = CIILR.ItemListRelationItemId
1755
1756 LEFT JOIN [dbo].[ItemType_JumbotronContainer] AS JC ON JC.Id = P.ParagraphItemId
1757 LEFT JOIN [dbo].[ItemList] AS JCIL ON JCIL.ItemListId = JC.JumbotronListID
1758 LEFT JOIN [dbo].[ItemListRelation] AS JCILR ON JCIL.ItemListId = JCILR.ItemListRelationItemListId
1759 LEFT JOIN [dbo].ItemType_JumbotronListItem AS JCLI ON JCLI.Id = JCILR.ItemListRelationItemId
1760
1761 LEFT JOIN [dbo].[ItemType_CTAButton] AS CTAB ON
1762 CTAP.ButtonID = CTAB.Id
1763 OR CTAP.ExtraButtonID = CTAB.Id
1764 OR MCP.ButtonID = CTAB.Id
1765 OR PC.ButtonID = CTAB.Id
1766 OR PC.ExtraButtonID = CTAB.Id
1767 OR CS.ButtonID = CTAB.Id
1768 OR CI.ButtonID = CTAB.Id
1769 OR CI.ExtraButtonID = CTAB.Id
1770 OR JCLI.ButtonID = CTAB.Id
1771 LEFT JOIN [dbo].[ItemType_ButtonConfiguration] AS BCONF ON CTAB.ButtonConfigurationID = BCONF.Id
1772
1773 WHERE
1774 GR.GridRowPageID = @PageId
1775 AND GR.GridRowActive = 1
1776 AND CTAB.ButtonConfigurationID Is NOT NULL", new SqlParameter("PageId", PageViewId));
1777
1778 DataTable MasterConfigDataTable = null;
1779
1780 MasterConfigDataTable = DynamicwebData.Query($@"
1781
1782 SELECT
1783 MC.CustomCSS
1784
1785 FROM
1786 [dbo].[Page] AS P
1787 INNER JOIN [dbo].[ItemType_MasterConfig] AS MC ON P.PageItemId = MC.Id
1788
1789 WHERE
1790 p.PageItemType = 'MasterConfig'
1791 AND PageAreaId = @AreaId;", new SqlParameter("AreaId", AreaId));
1792
1793 if (AdvancedGridStylesDataTable != null && AdvancedGridStylesDataTable.Rows.Count > 0)
1794 {
1795 for (int i = 0; i < AdvancedGridStylesDataTable.Rows.Count; i++)
1796 {
1797
1798
1799 #line default
1800 #line hidden
1801
1802 #line 759 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1803 Write(AdvancedGridStylesDataTable.Rows[i]["Styles"].ToString());
1804
1805
1806 #line default
1807 #line hidden
1808
1809 #line 759 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1810 ;
1811 }
1812 }
1813
1814 if (BackgroundConfigDataTable != null && BackgroundConfigDataTable.Rows.Count > 0)
1815 {
1816 for (int i = 0; i < BackgroundConfigDataTable.Rows.Count; i++)
1817 {
1818
1819
1820 #line default
1821 #line hidden
1822
1823 #line 767 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1824 Write(BackgroundConfigDataTable.Rows[i]["Styles"].ToString());
1825
1826
1827 #line default
1828 #line hidden
1829
1830 #line 767 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1831 ;
1832 }
1833 }
1834
1835 if (ButtonConfigDataTable != null && ButtonConfigDataTable.Rows.Count > 0)
1836 {
1837 for (int i = 0; i < ButtonConfigDataTable.Rows.Count; i++)
1838 {
1839
1840
1841 #line default
1842 #line hidden
1843
1844 #line 775 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1845 Write(ButtonConfigDataTable.Rows[i]["Styles"].ToString());
1846
1847
1848 #line default
1849 #line hidden
1850
1851 #line 775 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1852 ;
1853 }
1854 }
1855
1856
1857
1858 #line default
1859 #line hidden
1860
1861 #line 779 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1862 Write(MasterConfigDataTable.Rows[0]["CustomCSS"].ToString());
1863
1864
1865 #line default
1866 #line hidden
1867
1868 #line 779 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1869 ;
1870
1871
1872 #line default
1873 #line hidden
1874 WriteLiteral("\r\n\r\n\t</style>\r\n\r\n</head>\r\n<body");
1875
1876 WriteAttribute("class", Tuple.Create(" class=\"", 26719), Tuple.Create("\"", 26748)
1877
1878 #line 785 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1879 , Tuple.Create(Tuple.Create("", 26727), Tuple.Create<System.Object, System.Int32>(MasterConfigCssClass
1880
1881 #line default
1882 #line hidden
1883 , 26727), false)
1884 );
1885
1886 WriteLiteral(">\r\n\r\n");
1887
1888 WriteLiteral("\t");
1889
1890
1891 #line 787 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1892 Write(BaseSettings.System.BodyScript);
1893
1894
1895 #line default
1896 #line hidden
1897 WriteLiteral("\r\n");
1898
1899
1900 #line 788 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1901
1902
1903 #line default
1904 #line hidden
1905
1906 #line 788 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1907
1908 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies"))
1909 {
1910
1911
1912 #line default
1913 #line hidden
1914
1915 #line 791 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1916 Write(BaseSettings.System.BodyScriptAfterConsent);
1917
1918
1919 #line default
1920 #line hidden
1921
1922 #line 791 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1923 ;
1924 }
1925
1926
1927 #line default
1928 #line hidden
1929 WriteLiteral("\r\n\r\n");
1930
1931 WriteLiteral("\t");
1932
1933
1934 #line 795 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1935 Write(BaseSettings.System.TailScript);
1936
1937
1938 #line default
1939 #line hidden
1940 WriteLiteral("\r\n\r\n");
1941
1942
1943 #line 797 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1944
1945
1946 #line default
1947 #line hidden
1948 WriteLiteral("\r\n");
1949
1950 WriteLiteral("\r\n");
1951
1952
1953 #line 806 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
1954
1955
1956 DataTable DataTableObj = AdvancedGridServices.GetHeaderGridDataTable(Pageview.AreaID, Pageview.Page.ID);
1957
1958 WrapperObj Header = AdvancedGridServices.RenderWrapper(DataTableObj, "header", "header", Pageview.AreaID, Pageview.Page.ID);
1959 WrapperObj Footer = AdvancedGridServices.RenderWrapper(DataTableObj, "footer", "footer", Pageview.AreaID, Pageview.Page.ID);
1960
1961 // var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID);
1962
1963 bool userLoggedIn = false;
1964 if (enableLogin) { userLoggedIn = Pageview.User == null ? false : true; }
1965
1966 string HeaderContainerSize = mc.HeaderConfiguration.ContainerSize + "px";
1967
1968
1969
1970 #line default
1971 #line hidden
1972 WriteLiteral("\r\n\r\n");
1973
1974 WriteLiteral(@"
1975 <script>
1976
1977 function setImagesSizes(Classname) {
1978 var Images = document.querySelectorAll(Classname);
1979 for (var index = 0; index < Images.length; index++) {
1980 if (!Images[index].hasAttribute(""height"")) {
1981 Images[index].setAttribute(""height"", Images[index].offsetHeight);
1982 }
1983 if (!Images[index].hasAttribute(""width"")) {
1984 Images[index].setAttribute(""width"", Images[index].offsetWidth);
1985 }
1986 }
1987 }
1988
1989 window.addEventListener('load', function () {
1990 setImagesSizes(""img"");
1991 setImagesSizes("".mc-header__logo-image"");
1992 });
1993
1994 </script>
1995
1996
1997 <style>
1998 ");
1999
2000 WriteLiteral("\t");
2001
2002
2003 #line 849 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2004 Write(Header.CSS);
2005
2006
2007 #line default
2008 #line hidden
2009 WriteLiteral("\r\n");
2010
2011 WriteLiteral("\t");
2012
2013
2014 #line 850 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2015 Write(Footer.CSS);
2016
2017
2018 #line default
2019 #line hidden
2020 WriteLiteral("\r\n</style>\r\n\r\n");
2021
2022
2023 #line 853 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2024 Write(Header.Template);
2025
2026
2027 #line default
2028 #line hidden
2029 WriteLiteral("\r\n\r\n\r\n<!-- DO NOT REMOVE -->\r\n<div");
2030
2031 WriteLiteral(" id=\"quick-order\"");
2032
2033 WriteLiteral("></div>\r\n<div");
2034
2035 WriteLiteral(" id=\"backdrop-megamenu\"");
2036
2037 WriteLiteral("></div>\r\n<mega-menu");
2038
2039 WriteLiteral(" id=\"mega-menu\"");
2040
2041 WriteLiteral("></mega-menu>\r\n<!-- DO NOT REMOVE -->\r\n\r\n");
2042
2043
2044 #line 862 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2045 if (isVisualEditor && IsNotContentManager)
2046 {
2047
2048
2049 #line default
2050 #line hidden
2051
2052 #line 864 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2053 Write(AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "header"));
2054
2055
2056 #line default
2057 #line hidden
2058
2059 #line 864 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2060
2061 }
2062
2063
2064 #line default
2065 #line hidden
2066 WriteLiteral(@"
2067 <style>
2068
2069
2070 .visual-editor__navigation {
2071 position: absolute;
2072 top: 10px;
2073 left: 10px;
2074 display: flex;
2075 flex-direction: row;
2076 z-index: 100000000;
2077 }
2078
2079 .visual-editor__button {
2080 height: 50px;
2081 min-width: 150px;
2082 right: auto;
2083 left: auto;
2084 background-color: white;
2085 box-shadow: -10px 10px 10px rgb(28 28 84 / 25%);
2086 display: flex;
2087 justify-content: center;
2088 align-items: center;
2089 padding: 25px;
2090 margin-right: 25px;
2091 }
2092
2093 .visual-editor__button-icon {
2094 margin-right: 25px;
2095 }
2096
2097 .header {
2098 --HeaderContainerDisplay: none;
2099 }
2100
2101 .header__container {
2102 padding: 0;
2103 }
2104
2105 .header__container, .header__stickyheader-container {
2106 max-width: none;
2107 }
2108
2109 .header .AdvancedGrid__container {
2110 max-width: ");
2111
2112
2113 #line 910 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2114 Write(HeaderContainerSize);
2115
2116
2117 #line default
2118 #line hidden
2119 WriteLiteral(";\r\n\t\tmargin: 0 auto;\r\n\t}\r\n\r\n\t.header .AdvancedGrid__column {\r\n\t\tbackground-color:" +
2120 " var(--BackgroundColor);\r\n\t\tflex-grow: var(--FlexGrow);\r\n\t}\r\n\r\n\t.AdvancedGrid__r" +
2121 "ow {\r\n\t\talign-items: center;\r\n\t}\r\n</style>\r\n\r\n\r\n\t<main>\r\n\r\n");
2122
2123 WriteLiteral("\t\t");
2124
2125
2126 #line 927 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2127 Write(Model.Grid("grid", "Before breadcrumb", "", "AdvancedGrid"));
2128
2129
2130 #line default
2131 #line hidden
2132 WriteLiteral("\r\n\r\n");
2133
2134
2135 #line 929 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2136
2137
2138 #line default
2139 #line hidden
2140
2141 #line 929 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2142 if (showBreadcrumbs)
2143 {
2144 var navigationSettings = new NavigationSettings();
2145 navigationSettings.ExpandMode = ExpandMode.PathOnly;
2146 navigationSettings.StartLevel = 1;
2147 navigationSettings.StopLevel = 99;
2148 navigationSettings.Parameters.Add("PageTitle", Model.Title);
2149 navigationSettings.IncludeFoldersAndHidden = true;
2150
2151
2152
2153 #line default
2154 #line hidden
2155
2156 #line 938 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2157 Write(Navigation.RenderNavigation("Navigation/Breadcrumbs.cshtml", navigationSettings));
2158
2159
2160 #line default
2161 #line hidden
2162
2163 #line 938 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2164
2165
2166 }
2167
2168
2169 #line default
2170 #line hidden
2171 WriteLiteral("\r\n");
2172
2173 WriteLiteral("\t\t");
2174
2175
2176 #line 942 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2177 Write(Model.Grid("grid2", "After breadcrumb", "", "AdvancedGrid"));
2178
2179
2180 #line default
2181 #line hidden
2182 WriteLiteral("\r\n\r\n\t</main>\r\n\r\n");
2183
2184
2185 #line 946 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2186
2187
2188 #line default
2189 #line hidden
2190 WriteLiteral("\r\n");
2191
2192
2193 #line 952 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2194
2195
2196 string footerLogo = BaseSettings.BrandConfiguration.Logos.FooterLogo;
2197 string footerDescription = BaseSettings.CorporateSettings.FooterDescription;
2198
2199 var fb = BaseSettings.SocialMedia.Facebook;
2200 var twitter = BaseSettings.SocialMedia.Twitter;
2201 var linkedin = BaseSettings.SocialMedia.LinkedIn;
2202 var instagram = BaseSettings.SocialMedia.Instagram;
2203 var youtube = BaseSettings.SocialMedia.Youtube;
2204 var pinterest = BaseSettings.SocialMedia.Pinterest ?? "";
2205
2206 var companyName = BaseSettings.CorporateSettings.CompanyName;
2207 var Emailadress = BaseSettings.CorporateSettings.Emailadress;
2208 var Phonenumber = BaseSettings.CorporateSettings.Phonenumber;
2209 var Address = BaseSettings.CorporateSettings.Address;
2210 var Zipcode = BaseSettings.CorporateSettings.Zipcode;
2211 var City = BaseSettings.CorporateSettings.City;
2212 var Country = BaseSettings.CorporateSettings.Country;
2213
2214 var selectedPaymentLogos = BaseSettings.BrandConfiguration.Logos.FooterPaymentLogos;
2215
2216 bool footer__newsletter_signup_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString()) && mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString() == "True" ? true : false;
2217 bool footer__USP_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.UspDisplay.ToString()) && mc.FooterConfiguration.UspDisplay.ToString() == "True" ? true : false;
2218
2219 string footer__background_color = mc.FooterConfiguration.BackgroundColor?.GetColorCode(Pageview.AreaID) ?? "#000000";
2220 string footer__color = mc.FooterConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "#FFFFFF";
2221
2222 string footer__top_image = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.TopImage.ToString()) ? mc.FooterConfiguration.TopImage.ToString() : "";
2223
2224
2225
2226
2227
2228 #line default
2229 #line hidden
2230 WriteLiteral("\r\n\r\n<div");
2231
2232 WriteLiteral(" id=\"scroll-to-top\"");
2233
2234 WriteLiteral(" class=\"scroll-to-top\"");
2235
2236 WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 32681), Tuple.Create("\"", 32728)
2237
2238 #line 986 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2239 , Tuple.Create(Tuple.Create("", 32694), Tuple.Create<System.Object, System.Int32>(Translate("Naar boven", "To Top")
2240
2241 #line default
2242 #line hidden
2243 , 32694), false)
2244 );
2245
2246 WriteLiteral(">\r\n\t<span");
2247
2248 WriteLiteral(" class=\"scroll-to-top__text\"");
2249
2250 WriteLiteral(">\r\n");
2251
2252 WriteLiteral("\t\t");
2253
2254
2255 #line 988 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2256 Write(Translate("Naar boven", "To Top"));
2257
2258
2259 #line default
2260 #line hidden
2261 WriteLiteral("\r\n\t</span>\r\n\t<i");
2262
2263 WriteLiteral(" class=\"fal fa-arrow-to-top scroll-to-top__icon\"");
2264
2265 WriteLiteral("></i>\r\n</div>\r\n\r\n");
2266
2267
2268 #line 993 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2269 if (Pageview.Page.ParentPageId > 0)
2270 {
2271 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList();
2272 var parentpageItemType = Pageview.Page.Parent.ItemType;
2273 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage";
2274
2275 if (siblings.Count() > 1 && isParentPageOverviewpage)
2276 {
2277 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort);
2278 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort);
2279 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId;
2280
2281
2282
2283 #line default
2284 #line hidden
2285 WriteLiteral("\t\t<section");
2286
2287 WriteLiteral(" class=\"page-navigation\"");
2288
2289 WriteLiteral(">\r\n");
2290
2291
2292 #line 1006 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2293
2294
2295 #line default
2296 #line hidden
2297
2298 #line 1006 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2299 if (prevPage != null)
2300 {
2301 var back = "/Default.aspx?ID=" + prevPage.ID;
2302
2303
2304 #line default
2305 #line hidden
2306 WriteLiteral("\t\t\t\t<a");
2307
2308 WriteAttribute("href", Tuple.Create(" href=\"", 33642), Tuple.Create("\"", 33654)
2309
2310 #line 1009 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2311 , Tuple.Create(Tuple.Create("", 33649), Tuple.Create<System.Object, System.Int32>(back
2312
2313 #line default
2314 #line hidden
2315 , 33649), false)
2316 );
2317
2318 WriteLiteral(" class=\"page-navigation__item\"");
2319
2320 WriteLiteral(">\r\n\t\t\t\t\t<i");
2321
2322 WriteLiteral(" class=\"fal fa-arrow-alt-to-left page-navigation__item--icon\"");
2323
2324 WriteLiteral("></i>\r\n\t\t\t\t\t<label");
2325
2326 WriteLiteral(" class=\"page-navigation__item-label\"");
2327
2328 WriteLiteral(">");
2329
2330
2331 #line 1011 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2332 Write(Translate("pagenavigation.previous", "Previous"));
2333
2334
2335 #line default
2336 #line hidden
2337 WriteLiteral("</label>\r\n\t\t\t\t</a>\r\n");
2338
2339
2340 #line 1013 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2341 }
2342
2343
2344 #line default
2345 #line hidden
2346 WriteLiteral("\r\n\t\t\t<a");
2347
2348 WriteAttribute("href", Tuple.Create(" href=\"", 33893), Tuple.Create("\"", 33909)
2349
2350 #line 1015 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2351 , Tuple.Create(Tuple.Create("", 33900), Tuple.Create<System.Object, System.Int32>(overview
2352
2353 #line default
2354 #line hidden
2355 , 33900), false)
2356 );
2357
2358 WriteLiteral(" class=\"page-navigation__item\"");
2359
2360 WriteLiteral(">\r\n\t\t\t\t<label");
2361
2362 WriteLiteral(" class=\"page-navigation__item-label\"");
2363
2364 WriteLiteral(">");
2365
2366
2367 #line 1016 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2368 Write(Translate("pagenavigation.Overview", "To overview"));
2369
2370
2371 #line default
2372 #line hidden
2373 WriteLiteral("</label>\r\n\t\t\t\t<i");
2374
2375 WriteLiteral(" class=\"fas fa-th page-navigation__item--icon\"");
2376
2377 WriteLiteral("></i>\r\n\t\t\t</a>\r\n\r\n");
2378
2379
2380 #line 1020 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2381
2382
2383 #line default
2384 #line hidden
2385
2386 #line 1020 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2387 if (nextPage != null)
2388 {
2389 var forward = "/Default.aspx?ID=" + nextPage.ID;
2390
2391
2392 #line default
2393 #line hidden
2394 WriteLiteral("\t\t\t\t<a");
2395
2396 WriteAttribute("href", Tuple.Create(" href=\"", 34215), Tuple.Create("\"", 34230)
2397
2398 #line 1023 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2399 , Tuple.Create(Tuple.Create("", 34222), Tuple.Create<System.Object, System.Int32>(forward
2400
2401 #line default
2402 #line hidden
2403 , 34222), false)
2404 );
2405
2406 WriteLiteral(" class=\"page-navigation__item\"");
2407
2408 WriteLiteral(">\r\n\t\t\t\t\t<label");
2409
2410 WriteLiteral(" class=\"page-navigation__item-label\"");
2411
2412 WriteLiteral(">");
2413
2414
2415 #line 1024 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2416 Write(Translate("pagenavigation.next", "Next"));
2417
2418
2419 #line default
2420 #line hidden
2421 WriteLiteral("</label>\r\n\t\t\t\t\t<i");
2422
2423 WriteLiteral(" class=\"fal fa-arrow-alt-to-right page-navigation__item--icon\"");
2424
2425 WriteLiteral("></i>\r\n\t\t\t\t</a>\r\n");
2426
2427
2428 #line 1027 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2429 }
2430
2431
2432 #line default
2433 #line hidden
2434 WriteLiteral("\t\t</section>\r\n");
2435
2436
2437 #line 1029 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2438 }
2439 }
2440
2441
2442
2443 #line default
2444 #line hidden
2445
2446 #line 1155 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2447
2448
2449
2450 #line default
2451 #line hidden
2452 WriteLiteral("\r\n\r\n\r\n");
2453
2454
2455 #line 1159 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2456 Write(Footer.Template);
2457
2458
2459 #line default
2460 #line hidden
2461 WriteLiteral("\r\n\r\n");
2462
2463
2464 #line 1161 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2465 if (isVisualEditor && IsNotContentManager)
2466 {
2467
2468
2469 #line default
2470 #line hidden
2471 WriteLiteral("\t<nav");
2472
2473 WriteLiteral(" class=\"footer-layout\"");
2474
2475 WriteLiteral(">\r\n");
2476
2477 WriteLiteral("\t\t");
2478
2479
2480 #line 1164 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2481 Write(AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "footer"));
2482
2483
2484 #line default
2485 #line hidden
2486 WriteLiteral("\r\n\t</nav>\r\n");
2487
2488
2489 #line 1166 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2490
2491
2492
2493 #line default
2494 #line hidden
2495 WriteLiteral("\t<style>\r\n\t\t.footer-layout {\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 25px;\r\n\t\t}\r\n\t</s" +
2496 "tyle>\r\n");
2497
2498
2499 #line 1173 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2500 }
2501
2502
2503 #line default
2504 #line hidden
2505 WriteLiteral("\r\n");
2506
2507
2508 #line 1175 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2509 if (!string.IsNullOrWhiteSpace(footer__top_image) && HideStandardFooter == false)
2510 {
2511
2512
2513 #line default
2514 #line hidden
2515 WriteLiteral("\t<figure");
2516
2517 WriteLiteral(" class=\"footer__top-image\"");
2518
2519 WriteLiteral(">\r\n\t\t<img");
2520
2521 WriteAttribute("src", Tuple.Create(" src=\"", 38951), Tuple.Create("\"", 38975)
2522
2523 #line 1178 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2524 , Tuple.Create(Tuple.Create("", 38957), Tuple.Create<System.Object, System.Int32>(footer__top_image
2525
2526 #line default
2527 #line hidden
2528 , 38957), false)
2529 );
2530
2531 WriteLiteral(" alt=\"\"");
2532
2533 WriteLiteral(" />\r\n\t</figure>\r\n");
2534
2535
2536 #line 1180 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2537 }
2538
2539
2540 #line default
2541 #line hidden
2542 WriteLiteral("\r\n");
2543
2544
2545 #line 1182 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2546 if (HideStandardFooter == false)
2547 {
2548
2549
2550
2551 #line default
2552 #line hidden
2553 WriteLiteral("\t<footer");
2554
2555 WriteLiteral(" class=\"footer\"");
2556
2557 WriteAttribute("style", Tuple.Create(" style=\"", 39068), Tuple.Create("\"", 39153)
2558 , Tuple.Create(Tuple.Create("", 39076), Tuple.Create("--footer-bg-color:", 39076), true)
2559
2560 #line 1185 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2561 , Tuple.Create(Tuple.Create(" ", 39094), Tuple.Create<System.Object, System.Int32>(footer__background_color
2562
2563 #line default
2564 #line hidden
2565 , 39095), false)
2566 , Tuple.Create(Tuple.Create("", 39120), Tuple.Create(";", 39120), true)
2567 , Tuple.Create(Tuple.Create(" ", 39121), Tuple.Create("--footer-color:", 39122), true)
2568
2569 #line 1185 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2570 , Tuple.Create(Tuple.Create(" ", 39137), Tuple.Create<System.Object, System.Int32>(footer__color
2571
2572 #line default
2573 #line hidden
2574 , 39138), false)
2575 , Tuple.Create(Tuple.Create("", 39152), Tuple.Create(";", 39152), true)
2576 );
2577
2578 WriteLiteral(">\r\n\r\n");
2579
2580
2581 #line 1187 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2582
2583
2584 #line default
2585 #line hidden
2586
2587 #line 1187 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2588 if (footer__USP_display)
2589 {
2590 if (!string.IsNullOrWhiteSpace(BaseSettings.USP.USP_1) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_2) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_3) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_4) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_5))
2591 {
2592
2593
2594 #line default
2595 #line hidden
2596 WriteLiteral("\t\t\t\t<div");
2597
2598 WriteLiteral(" class=\"footer-usp__wrapper\"");
2599
2600 WriteLiteral(">\r\n\t\t\t\t\t<div");
2601
2602 WriteLiteral(" class=\"container\"");
2603
2604 WriteLiteral(">\r\n\t\t\t\t\t\t<ul");
2605
2606 WriteLiteral(" class=\"footer-usp__list flex-wrap\"");
2607
2608 WriteLiteral(">\r\n");
2609
2610 WriteLiteral("\t\t\t\t\t\t\t");
2611
2612
2613 #line 1194 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2614 Write(RenderFooterUSP(BaseSettings.USP.USP_1, BaseSettings.USP.USP_1_icon));
2615
2616
2617 #line default
2618 #line hidden
2619 WriteLiteral("\r\n");
2620
2621 WriteLiteral("\t\t\t\t\t\t\t");
2622
2623
2624 #line 1195 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2625 Write(RenderFooterUSP(BaseSettings.USP.USP_2, BaseSettings.USP.USP_2_icon));
2626
2627
2628 #line default
2629 #line hidden
2630 WriteLiteral("\r\n");
2631
2632 WriteLiteral("\t\t\t\t\t\t\t");
2633
2634
2635 #line 1196 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2636 Write(RenderFooterUSP(BaseSettings.USP.USP_3, BaseSettings.USP.USP_3_icon));
2637
2638
2639 #line default
2640 #line hidden
2641 WriteLiteral("\r\n");
2642
2643 WriteLiteral("\t\t\t\t\t\t\t");
2644
2645
2646 #line 1197 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2647 Write(RenderFooterUSP(BaseSettings.USP.USP_4, BaseSettings.USP.USP_4_icon));
2648
2649
2650 #line default
2651 #line hidden
2652 WriteLiteral("\r\n");
2653
2654 WriteLiteral("\t\t\t\t\t\t\t");
2655
2656
2657 #line 1198 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2658 Write(RenderFooterUSP(BaseSettings.USP.USP_5, BaseSettings.USP.USP_5_icon));
2659
2660
2661 #line default
2662 #line hidden
2663 WriteLiteral("\r\n\r\n\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n");
2664
2665
2666 #line 1203 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2667 }
2668 }
2669
2670
2671 #line default
2672 #line hidden
2673 WriteLiteral("\r\n");
2674
2675
2676 #line 1206 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2677
2678
2679 #line default
2680 #line hidden
2681
2682 #line 1206 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2683 if (footer__newsletter_signup_display)
2684 {
2685
2686
2687 #line default
2688 #line hidden
2689 WriteLiteral("\t\t\t<div>\r\n");
2690
2691
2692 #line 1209 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2693
2694
2695 #line default
2696 #line hidden
2697 WriteLiteral("\r\n");
2698
2699
2700 #line 1212 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2701
2702 var newsletterFormID = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("Footer.Newsletter");
2703
2704 if (newsletterFormID > 0)
2705 {
2706
2707
2708 #line default
2709 #line hidden
2710 WriteLiteral("\t\t<section");
2711
2712 WriteLiteral(" class=\"footer__newsletter-container\"");
2713
2714 WriteLiteral(">\r\n\t\t\t<div");
2715
2716 WriteLiteral(" class=\"container footer__newsletter\"");
2717
2718 WriteLiteral(">\r\n\t\t\t\t<label");
2719
2720 WriteLiteral(" class=\"footer__newsletter-label\"");
2721
2722 WriteLiteral(">\r\n");
2723
2724 WriteLiteral("\t\t\t\t\t");
2725
2726
2727 #line 1220 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2728 Write(Translate("Footer.SignUpNewsletter", "Sign up for the digital newsletter"));
2729
2730
2731 #line default
2732 #line hidden
2733 WriteLiteral("\r\n\t\t\t\t</label>\r\n");
2734
2735 WriteLiteral("\t\t\t\t");
2736
2737
2738 #line 1222 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2739 Write(RenderParagraphContent(newsletterFormID));
2740
2741
2742 #line default
2743 #line hidden
2744 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t</section>\r\n");
2745
2746
2747 #line 1225 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2748 }
2749
2750
2751 #line default
2752 #line hidden
2753 WriteLiteral("\r\n\r\n\t\t\t</div>\r\n");
2754
2755
2756 #line 1229 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2757 }
2758
2759
2760 #line default
2761 #line hidden
2762 WriteLiteral("\r\n");
2763
2764
2765 #line 1231 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2766
2767
2768 #line default
2769 #line hidden
2770
2771 #line 1231 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2772 if (!string.IsNullOrWhiteSpace(mc.FooterConfiguration.BackgroundGradient))
2773 {
2774
2775
2776 #line default
2777 #line hidden
2778 WriteLiteral("\t\t\t<style>\r\n\t\t\t.footer {\r\n");
2779
2780 WriteLiteral("\t\t\t\t");
2781
2782
2783 #line 1235 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2784 Write(mc.FooterConfiguration.BackgroundGradient);
2785
2786
2787 #line default
2788 #line hidden
2789 WriteLiteral(";\r\n\t\t\t}\r\n\t\t\t</style>\r\n");
2790
2791
2792 #line 1238 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2793 }
2794
2795
2796 #line default
2797 #line hidden
2798 WriteLiteral("\r\n\t\t<section");
2799
2800 WriteLiteral(" class=\"container footer__content\"");
2801
2802 WriteLiteral(">\r\n\r\n\t\t\t<div");
2803
2804 WriteLiteral(" class=\"footer__link\"");
2805
2806 WriteLiteral(">\r\n");
2807
2808
2809 #line 1243 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2810
2811
2812 #line default
2813 #line hidden
2814
2815 #line 1243 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2816
2817 var footerColumnOneNavigationSettings = new NavigationSettings();
2818 footerColumnOneNavigationSettings.ExpandMode = ExpandMode.All;
2819 footerColumnOneNavigationSettings.StartLevel = 1;
2820 footerColumnOneNavigationSettings.StopLevel = 4;
2821 footerColumnOneNavigationSettings.RootNavigationTag = "footer-column-1";
2822 var footerColumnOneNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnOneNavigationSettings);
2823
2824 if (!string.IsNullOrEmpty(footerColumnOneNavigation))
2825 {
2826
2827
2828 #line default
2829 #line hidden
2830 WriteLiteral("\t\t\t\t\t\t<p");
2831
2832 WriteLiteral(" class=\"footer__link-header\"");
2833
2834 WriteLiteral(">");
2835
2836
2837 #line 1253 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2838 Write(Translate("Footer.Column1.Header", "What you need to know"));
2839
2840
2841 #line default
2842 #line hidden
2843 WriteLiteral("</p>\r\n");
2844
2845
2846 #line 1254 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2847
2848
2849 #line default
2850 #line hidden
2851
2852 #line 1254 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2853 Write(footerColumnOneNavigation);
2854
2855
2856 #line default
2857 #line hidden
2858
2859 #line 1254 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2860
2861 }
2862
2863
2864 #line default
2865 #line hidden
2866 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t\t<div");
2867
2868 WriteLiteral(" class=\"footer__link\"");
2869
2870 WriteLiteral(">\r\n");
2871
2872
2873 #line 1259 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2874
2875
2876 #line default
2877 #line hidden
2878
2879 #line 1259 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2880
2881 var footerColumnTwoNavigationSettings = new NavigationSettings();
2882 footerColumnTwoNavigationSettings.ExpandMode = ExpandMode.All;
2883 footerColumnTwoNavigationSettings.StartLevel = 1;
2884 footerColumnTwoNavigationSettings.StopLevel = 4;
2885 footerColumnTwoNavigationSettings.RootNavigationTag = "footer-column-2";
2886 var footerColumnTwoNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnTwoNavigationSettings);
2887
2888 if (!string.IsNullOrEmpty(footerColumnTwoNavigation))
2889 {
2890
2891
2892 #line default
2893 #line hidden
2894 WriteLiteral("\t\t\t\t\t\t<p");
2895
2896 WriteLiteral(" class=\"footer__link-header\"");
2897
2898 WriteLiteral(">");
2899
2900
2901 #line 1269 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2902 Write(Translate("Footer.Column2.Header", "Category two"));
2903
2904
2905 #line default
2906 #line hidden
2907 WriteLiteral("</p>\r\n");
2908
2909
2910 #line 1270 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2911
2912
2913 #line default
2914 #line hidden
2915
2916 #line 1270 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2917 Write(footerColumnTwoNavigation);
2918
2919
2920 #line default
2921 #line hidden
2922
2923 #line 1270 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2924
2925 }
2926
2927
2928 #line default
2929 #line hidden
2930 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t\t<div");
2931
2932 WriteLiteral(" class=\"footer__link\"");
2933
2934 WriteLiteral(">\r\n");
2935
2936
2937 #line 1275 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2938
2939
2940 #line default
2941 #line hidden
2942
2943 #line 1275 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2944
2945 var footerColumnThreeNavigationSettings = new NavigationSettings();
2946 footerColumnThreeNavigationSettings.ExpandMode = ExpandMode.All;
2947 footerColumnThreeNavigationSettings.StartLevel = 1;
2948 footerColumnThreeNavigationSettings.StopLevel = 4;
2949 footerColumnThreeNavigationSettings.RootNavigationTag = "footer-column-3";
2950 var footerColumnThreeNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnThreeNavigationSettings);
2951
2952 if (!string.IsNullOrEmpty(footerColumnThreeNavigation))
2953 {
2954
2955
2956 #line default
2957 #line hidden
2958 WriteLiteral("\t\t\t\t\t\t<p");
2959
2960 WriteLiteral(" class=\"footer__link-header\"");
2961
2962 WriteLiteral(">");
2963
2964
2965 #line 1285 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2966 Write(Translate("Footer.Column3.Header", "Category three"));
2967
2968
2969 #line default
2970 #line hidden
2971 WriteLiteral("</p>\r\n");
2972
2973
2974 #line 1286 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2975
2976
2977 #line default
2978 #line hidden
2979
2980 #line 1286 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2981 Write(footerColumnThreeNavigation);
2982
2983
2984 #line default
2985 #line hidden
2986
2987 #line 1286 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2988
2989 }
2990
2991
2992 #line default
2993 #line hidden
2994 WriteLiteral("\r\n\t\t\t</div>\r\n\r\n");
2995
2996
2997 #line 1291 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
2998
2999
3000 #line default
3001 #line hidden
3002
3003 #line 1291 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3004 if (!string.IsNullOrWhiteSpace(footerLogo) || !string.IsNullOrWhiteSpace(footerDescription))
3005 {
3006
3007
3008 #line default
3009 #line hidden
3010 WriteLiteral("\t\t\t\t<div");
3011
3012 WriteLiteral(" class=\"footer__description-container\"");
3013
3014 WriteLiteral(">\r\n");
3015
3016
3017 #line 1294 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3018
3019
3020 #line default
3021 #line hidden
3022
3023 #line 1294 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3024 if (!string.IsNullOrWhiteSpace(footerLogo))
3025 {
3026
3027
3028 #line default
3029 #line hidden
3030 WriteLiteral("\t\t\t\t\t\t<img");
3031
3032 WriteLiteral(" class=\"footer__logo\"");
3033
3034 WriteLiteral(" loading=\"lazy\"");
3035
3036 WriteAttribute("src", Tuple.Create(" src=\"", 43412), Tuple.Create("\"", 43518)
3037 , Tuple.Create(Tuple.Create("", 43418), Tuple.Create("/Admin/Public/GetImage.ashx?Image=", 43418), true)
3038
3039 #line 1296 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3040 , Tuple.Create(Tuple.Create("", 43452), Tuple.Create<System.Object, System.Int32>(footerLogo
3041
3042 #line default
3043 #line hidden
3044 , 43452), false)
3045 , Tuple.Create(Tuple.Create("", 43463), Tuple.Create("&Crop=5&Format=webp&Quality=99&Compression=80&Width=400", 43463), true)
3046 );
3047
3048 WriteLiteral(" alt=\"Footer logo\"");
3049
3050 WriteLiteral(" width=\"400\"");
3051
3052 WriteLiteral(" height=\"200\"");
3053
3054 WriteLiteral(" />\r\n");
3055
3056
3057 #line 1297 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3058 }
3059
3060
3061 #line default
3062 #line hidden
3063 WriteLiteral("\r\n");
3064
3065
3066 #line 1299 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3067
3068
3069 #line default
3070 #line hidden
3071
3072 #line 1299 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3073 if (!string.IsNullOrWhiteSpace(footerDescription))
3074 {
3075
3076
3077 #line default
3078 #line hidden
3079 WriteLiteral("\t\t\t\t\t\t<div");
3080
3081 WriteLiteral(" class=\"footer__description\"");
3082
3083 WriteLiteral(">\r\n");
3084
3085 WriteLiteral("\t\t\t\t\t\t\t");
3086
3087
3088 #line 1302 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3089 Write(footerDescription);
3090
3091
3092 #line default
3093 #line hidden
3094 WriteLiteral("\r\n\t\t\t\t\t\t</div>\r\n");
3095
3096
3097 #line 1304 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3098 }
3099
3100
3101 #line default
3102 #line hidden
3103 WriteLiteral("\t\t\t\t</div>\r\n");
3104
3105
3106 #line 1306 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3107 }
3108
3109
3110 #line default
3111 #line hidden
3112 WriteLiteral("\r\n\t\t</section>\r\n\r\n\t\t<section");
3113
3114 WriteLiteral(" class=\"footer__copyright\"");
3115
3116 WriteLiteral(">\r\n\r\n\t\t\t<div");
3117
3118 WriteLiteral(" class=\"container bottombar__container\"");
3119
3120 WriteLiteral(">\r\n");
3121
3122
3123 #line 1313 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3124
3125
3126 #line default
3127 #line hidden
3128
3129 #line 1313 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3130
3131 var copyRightMenuNavigationSettings = new NavigationSettings();
3132 copyRightMenuNavigationSettings.ExpandMode = ExpandMode.All;
3133 copyRightMenuNavigationSettings.StartLevel = 1;
3134 copyRightMenuNavigationSettings.StopLevel = 4;
3135 copyRightMenuNavigationSettings.RootNavigationTag = "bottombar";
3136 var copyRightMenuNavigation = Navigation.RenderNavigation("Navigation/CleanNavigation.cshtml", copyRightMenuNavigationSettings);
3137
3138 if (!string.IsNullOrEmpty(copyRightMenuNavigation))
3139 {
3140
3141
3142 #line default
3143 #line hidden
3144
3145 #line 1323 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3146 Write(copyRightMenuNavigation);
3147
3148
3149 #line default
3150 #line hidden
3151
3152 #line 1323 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3153 ;
3154 }
3155
3156
3157 #line default
3158 #line hidden
3159 WriteLiteral("\r\n\r\n");
3160
3161
3162 #line 1327 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3163
3164
3165 #line default
3166 #line hidden
3167
3168 #line 1327 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3169 if (!string.IsNullOrWhiteSpace(twitter) || !string.IsNullOrWhiteSpace(fb) || !string.IsNullOrWhiteSpace(linkedin) || !string.IsNullOrWhiteSpace(youtube) || !string.IsNullOrWhiteSpace(instagram) || !string.IsNullOrWhiteSpace(pinterest))
3170 {
3171
3172
3173 #line default
3174 #line hidden
3175 WriteLiteral("\t\t\t\t\t<section");
3176
3177 WriteLiteral(" class=\"footer__social-container\"");
3178
3179 WriteLiteral(">\r\n\r\n\t\t\t\t\t\t<span");
3180
3181 WriteLiteral(" class=\"footer__icon-labels\"");
3182
3183 WriteLiteral(">");
3184
3185
3186 #line 1331 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3187 Write(Translate("Footer.FollowUs", "Volg ons op:"));
3188
3189
3190 #line default
3191 #line hidden
3192 WriteLiteral("</span>\r\n\r\n\t\t\t\t\t\t<div");
3193
3194 WriteLiteral(" class=\"footer__social-icon-container\"");
3195
3196 WriteLiteral(">\r\n");
3197
3198
3199 #line 1334 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3200
3201
3202 #line default
3203 #line hidden
3204
3205 #line 1334 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3206 if (!string.IsNullOrWhiteSpace(twitter))
3207 {
3208
3209
3210 #line default
3211 #line hidden
3212 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3213
3214 WriteAttribute("href", Tuple.Create(" href=\"", 44952), Tuple.Create("\"", 44967)
3215
3216 #line 1336 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3217 , Tuple.Create(Tuple.Create("", 44959), Tuple.Create<System.Object, System.Int32>(twitter
3218
3219 #line default
3220 #line hidden
3221 , 44959), false)
3222 );
3223
3224 WriteLiteral(" target=\"_blank\"");
3225
3226 WriteLiteral(" title=\"twitter\"");
3227
3228 WriteLiteral(" class=\"footer__social\"");
3229
3230 WriteLiteral(" rel=\"noreferrer\"");
3231
3232 WriteLiteral("><i");
3233
3234 WriteLiteral(" class=\"fab fa-twitter\"");
3235
3236 WriteLiteral("></i></a>\r\n");
3237
3238
3239 #line 1337 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3240 }
3241
3242
3243 #line default
3244 #line hidden
3245 WriteLiteral("\t\t\t\t\t\t\t");
3246
3247
3248 #line 1338 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3249 if (!string.IsNullOrWhiteSpace(fb))
3250 {
3251
3252
3253 #line default
3254 #line hidden
3255 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3256
3257 WriteAttribute("href", Tuple.Create(" href=\"", 45152), Tuple.Create("\"", 45162)
3258
3259 #line 1340 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3260 , Tuple.Create(Tuple.Create("", 45159), Tuple.Create<System.Object, System.Int32>(fb
3261
3262 #line default
3263 #line hidden
3264 , 45159), false)
3265 );
3266
3267 WriteLiteral(" target=\"_blank\"");
3268
3269 WriteLiteral(" title=\"facebook\"");
3270
3271 WriteLiteral(" class=\"footer__social\"");
3272
3273 WriteLiteral(" rel=\"noreferrer\"");
3274
3275 WriteLiteral("><i");
3276
3277 WriteLiteral(" class=\"fab fa-facebook-square\"");
3278
3279 WriteLiteral("></i></a>\r\n");
3280
3281
3282 #line 1341 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3283 }
3284
3285
3286 #line default
3287 #line hidden
3288 WriteLiteral("\t\t\t\t\t\t\t");
3289
3290
3291 #line 1342 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3292 if (!string.IsNullOrWhiteSpace(linkedin))
3293 {
3294
3295
3296 #line default
3297 #line hidden
3298 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3299
3300 WriteAttribute("href", Tuple.Create(" href=\"", 45362), Tuple.Create("\"", 45378)
3301
3302 #line 1344 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3303 , Tuple.Create(Tuple.Create("", 45369), Tuple.Create<System.Object, System.Int32>(linkedin
3304
3305 #line default
3306 #line hidden
3307 , 45369), false)
3308 );
3309
3310 WriteLiteral(" target=\"_blank\"");
3311
3312 WriteLiteral(" title=\"LinkedIn\"");
3313
3314 WriteLiteral(" class=\"footer__social\"");
3315
3316 WriteLiteral(" rel=\"noreferrer\"");
3317
3318 WriteLiteral("><i");
3319
3320 WriteLiteral(" class=\"fab fa-linkedin\"");
3321
3322 WriteLiteral("></i></a>\r\n");
3323
3324
3325 #line 1345 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3326 }
3327
3328
3329 #line default
3330 #line hidden
3331 WriteLiteral("\t\t\t\t\t\t\t");
3332
3333
3334 #line 1346 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3335 if (!string.IsNullOrWhiteSpace(youtube))
3336 {
3337
3338
3339 #line default
3340 #line hidden
3341 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3342
3343 WriteAttribute("href", Tuple.Create(" href=\"", 45570), Tuple.Create("\"", 45585)
3344
3345 #line 1348 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3346 , Tuple.Create(Tuple.Create("", 45577), Tuple.Create<System.Object, System.Int32>(youtube
3347
3348 #line default
3349 #line hidden
3350 , 45577), false)
3351 );
3352
3353 WriteLiteral(" target=\"_blank\"");
3354
3355 WriteLiteral(" title=\"YouTube\"");
3356
3357 WriteLiteral(" class=\"footer__social\"");
3358
3359 WriteLiteral(" rel=\"noreferrer\"");
3360
3361 WriteLiteral("><i");
3362
3363 WriteLiteral(" class=\"fab fa-youtube\"");
3364
3365 WriteLiteral("></i></a>\r\n");
3366
3367
3368 #line 1349 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3369 }
3370
3371
3372 #line default
3373 #line hidden
3374 WriteLiteral("\t\t\t\t\t\t\t");
3375
3376
3377 #line 1350 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3378 if (!string.IsNullOrWhiteSpace(instagram))
3379 {
3380
3381
3382 #line default
3383 #line hidden
3384 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3385
3386 WriteAttribute("href", Tuple.Create(" href=\"", 45777), Tuple.Create("\"", 45794)
3387
3388 #line 1352 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3389 , Tuple.Create(Tuple.Create("", 45784), Tuple.Create<System.Object, System.Int32>(instagram
3390
3391 #line default
3392 #line hidden
3393 , 45784), false)
3394 );
3395
3396 WriteLiteral(" target=\"_blank\"");
3397
3398 WriteLiteral(" title=\"Instagram\"");
3399
3400 WriteLiteral(" class=\"footer__social\"");
3401
3402 WriteLiteral(" rel=\"noreferrer\"");
3403
3404 WriteLiteral("><i");
3405
3406 WriteLiteral(" class=\"fab fa-instagram\"");
3407
3408 WriteLiteral("></i></a>\r\n");
3409
3410
3411 #line 1353 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3412 }
3413
3414
3415 #line default
3416 #line hidden
3417 WriteLiteral("\t\t\t\t\t\t\t");
3418
3419
3420 #line 1354 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3421 if (!string.IsNullOrWhiteSpace(pinterest))
3422 {
3423
3424
3425 #line default
3426 #line hidden
3427 WriteLiteral("\t\t\t\t\t\t\t\t<a");
3428
3429 WriteAttribute("href", Tuple.Create(" href=\"", 45990), Tuple.Create("\"", 46007)
3430
3431 #line 1356 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3432 , Tuple.Create(Tuple.Create("", 45997), Tuple.Create<System.Object, System.Int32>(pinterest
3433
3434 #line default
3435 #line hidden
3436 , 45997), false)
3437 );
3438
3439 WriteLiteral(" target=\"_blank\"");
3440
3441 WriteLiteral(" title=\"Pinterest\"");
3442
3443 WriteLiteral(" class=\"footer__social\"");
3444
3445 WriteLiteral(" rel=\"noreferrer\"");
3446
3447 WriteLiteral("><i");
3448
3449 WriteLiteral(" class=\"fab fa-pinterest\"");
3450
3451 WriteLiteral("></i></a>\r\n");
3452
3453
3454 #line 1357 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3455 }
3456
3457
3458 #line default
3459 #line hidden
3460 WriteLiteral("\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</section>\r\n");
3461
3462
3463 #line 1361 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3464 }
3465
3466
3467 #line default
3468 #line hidden
3469 WriteLiteral("\t\t\t</div>\r\n\r\n\t\t</section>\r\n\r\n\t\t<section");
3470
3471 WriteLiteral(" class=\"footer-paymentoptions\"");
3472
3473 WriteLiteral(" data-paymentmethods=\"");
3474
3475
3476 #line 1366 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3477 Write(selectedPaymentLogos);
3478
3479
3480 #line default
3481 #line hidden
3482 WriteLiteral("\"");
3483
3484 WriteLiteral("></section>\r\n\t</footer>\r\n");
3485
3486
3487 #line 1368 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3488
3489 }
3490
3491
3492 #line default
3493 #line hidden
3494 WriteLiteral("\r\n");
3495
3496 WriteLiteral("\r\n");
3497
3498
3499 #line 1384 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3500
3501
3502 #line default
3503 #line hidden
3504 WriteLiteral("\r\n");
3505
3506
3507 #line 1389 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3508
3509 var colorService = new ColorSwatchService();
3510 bool displayPrices = mc.EcomConfiguration.HidePricesForGuests ? Pageview.User != null : true;
3511 string ShowZeroPrices = (!mc.EcomConfiguration.HideZeroPrices).ToString().ToLower();
3512
3513 var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID);
3514
3515 var bottomBarItemsList = new List<object>();
3516 foreach (var _item in mc.FooterConfiguration.BottombarItemList)
3517 {
3518 string title = _item.Title;
3519 string link = _item.TargetLink;
3520
3521 if (_item.Type == "login" && Pageview.User != null)
3522 {
3523 title = @Translate("Bottombar.Logout", "Logout");
3524 link = $"/Admin/Public/ExtranetLogoff.aspx?ID={homepage.ID}";
3525 }
3526
3527 var newItem = new
3528 {
3529 title = title,
3530 icon = _item.Icon,
3531 link = link,
3532 subtitle = _item.Title,
3533 type = _item.Type,
3534 visible = true
3535 };
3536 bottomBarItemsList.Add(newItem);
3537 }
3538 var allBottomBarItems = bottomBarItemsList.ToArray();
3539 string bottomBarItemsJson = Newtonsoft.Json.JsonConvert.SerializeObject(allBottomBarItems).Replace("\"", "\'");
3540
3541 string BottombarBackgroundColor = mc.FooterConfiguration.BottombarBackgroundColor;
3542 if (!string.IsNullOrWhiteSpace(BottombarBackgroundColor))
3543 {
3544 BottombarBackgroundColor = !BottombarBackgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarBackgroundColor) : BottombarBackgroundColor;
3545 }
3546
3547 string BottombarTextColor = mc.FooterConfiguration.BottombarTextColor;
3548 if (!string.IsNullOrWhiteSpace(BottombarTextColor))
3549 {
3550 BottombarTextColor = !BottombarTextColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarTextColor) : BottombarTextColor;
3551 }
3552
3553 string BottombarIconColor = mc.FooterConfiguration.BottombarIconColor;
3554 if (!string.IsNullOrWhiteSpace(BottombarIconColor))
3555 {
3556 BottombarIconColor = !BottombarIconColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarIconColor) : BottombarIconColor;
3557 }
3558
3559
3560 #line default
3561 #line hidden
3562 WriteLiteral("\r\n\r\n<style>\r\n\t.bottombar {\r\n\t\tbackground-color: ");
3563
3564
3565 #line 1443 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3566 Write(BottombarBackgroundColor);
3567
3568
3569 #line default
3570 #line hidden
3571 WriteLiteral(";\r\n\t}\r\n\t.bottombar__button span {\r\n\t\tcolor: ");
3572
3573
3574 #line 1446 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3575 Write(BottombarTextColor);
3576
3577
3578 #line default
3579 #line hidden
3580 WriteLiteral(";\r\n\t}\r\n\t.bottombar__button [class^=fa], \r\n\t.bottombar__button [class^=svg-] {\r\n\t\t" +
3581 "color: ");
3582
3583
3584 #line 1450 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3585 Write(BottombarIconColor);
3586
3587
3588 #line default
3589 #line hidden
3590 WriteLiteral(";\r\n\t}\r\n</style>\r\n\r\n<section");
3591
3592 WriteLiteral(" id=\"vue-modal\"");
3593
3594 WriteLiteral("\r\n\t\t data-show-prices=\"");
3595
3596
3597 #line 1455 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3598 Write(displayPrices.ToString().ToLower());
3599
3600
3601 #line default
3602 #line hidden
3603 WriteLiteral("\"");
3604
3605 WriteLiteral("\r\n\t\t data-show-zero-prices=\"");
3606
3607
3608 #line 1456 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3609 Write(ShowZeroPrices);
3610
3611
3612 #line default
3613 #line hidden
3614 WriteLiteral("\"");
3615
3616 WriteLiteral(">\r\n</section>\r\n\r\n<section");
3617
3618 WriteLiteral(" id=\"vue-bottom-bar\"");
3619
3620 WriteLiteral("\r\n\t\t data-items=\"");
3621
3622
3623 #line 1460 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3624 Write(bottomBarItemsJson);
3625
3626
3627 #line default
3628 #line hidden
3629 WriteLiteral("\"");
3630
3631 WriteLiteral("\r\n\t\t data-phonenumber=\"");
3632
3633
3634 #line 1461 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3635 Write(formattedPhonenumber);
3636
3637
3638 #line default
3639 #line hidden
3640 WriteLiteral("\"");
3641
3642 WriteLiteral("\r\n\t\t data-isoffline=\"");
3643
3644
3645 #line 1462 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3646 Write(isOffline);
3647
3648
3649 #line default
3650 #line hidden
3651 WriteLiteral("\"");
3652
3653 WriteLiteral("\r\n\t\t data-emailadress=\"");
3654
3655
3656 #line 1463 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3657 Write(emailadress);
3658
3659
3660 #line default
3661 #line hidden
3662 WriteLiteral("\"");
3663
3664 WriteLiteral("\r\n\t\t data-currentpageid=\"");
3665
3666
3667 #line 1464 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3668 Write(homepage.ID);
3669
3670
3671 #line default
3672 #line hidden
3673 WriteLiteral("\"");
3674
3675 WriteLiteral("\r\n\t\t data-enable-login=\"");
3676
3677
3678 #line 1465 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3679 Write(enableLogin);
3680
3681
3682 #line default
3683 #line hidden
3684 WriteLiteral("\"");
3685
3686 WriteLiteral("\r\n\t\t data-enable-shoppingcart=\"");
3687
3688
3689 #line 1466 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3690 Write(enableShoppingCart);
3691
3692
3693 #line default
3694 #line hidden
3695 WriteLiteral("\"");
3696
3697 WriteLiteral("\r\n\t\t data-enable-advancedsearch=\"");
3698
3699
3700 #line 1467 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3701 Write(enableAdvancedSearch);
3702
3703
3704 #line default
3705 #line hidden
3706 WriteLiteral("\"");
3707
3708 WriteLiteral("></section>\r\n\r\n");
3709
3710
3711 #line 1469 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3712
3713 int SearchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID);
3714 var SearchPlaceholder = Translate("Searchbox.PlaceholderValue", "Search...");
3715 var SearchPlaceholderHover = Translate("Search.PlaceholderValue2", "Zoekt u misschien een ...?");
3716 var SearchPrefill = Dynamicweb.Context.Current.Request["q"];
3717 var SearchboxClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "open" : "";
3718 var SearchtoggleClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "close" : "";
3719
3720
3721 #line default
3722 #line hidden
3723 WriteLiteral("\r\n\r\n<section");
3724
3725 WriteLiteral(" class=\"bottombar__searchbox__wrapper\"");
3726
3727 WriteLiteral(">\r\n\t<form");
3728
3729 WriteLiteral(" class=\"searchbox__form\"");
3730
3731 WriteLiteral(" method=\"get\"");
3732
3733 WriteLiteral(" action=\"/Default.aspx\"");
3734
3735 WriteLiteral(" style=\"display: flex; flex-grow: 1;\"");
3736
3737 WriteLiteral(">\r\n\t<input");
3738
3739 WriteLiteral(" type=\"text\"");
3740
3741 WriteLiteral(" name=\"q\"");
3742
3743 WriteAttribute("value", Tuple.Create(" value=\"", 50417), Tuple.Create("\"", 50439)
3744
3745 #line 1480 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3746 , Tuple.Create(Tuple.Create("", 50425), Tuple.Create<System.Object, System.Int32>(SearchPrefill
3747
3748 #line default
3749 #line hidden
3750 , 50425), false)
3751 );
3752
3753 WriteLiteral(" class=\"searchbox__input\"");
3754
3755 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 50465), Tuple.Create("\"", 50497)
3756
3757 #line 1480 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3758 , Tuple.Create(Tuple.Create("", 50479), Tuple.Create<System.Object, System.Int32>(SearchPlaceholder
3759
3760 #line default
3761 #line hidden
3762 , 50479), false)
3763 );
3764
3765 WriteLiteral(" aria-label=\"Search through site content\"");
3766
3767 WriteLiteral(" data-placeholder=\"");
3768
3769
3770 #line 1480 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3771 Write(SearchPlaceholder);
3772
3773
3774 #line default
3775 #line hidden
3776 WriteLiteral("\"");
3777
3778 WriteLiteral(" data-hoverplaceholder=\"");
3779
3780
3781 #line 1480 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3782 Write(SearchPlaceholderHover);
3783
3784
3785 #line default
3786 #line hidden
3787 WriteLiteral("\"");
3788
3789 WriteLiteral(" style=\"display: flex; flex-grow: 1;\"");
3790
3791 WriteLiteral(" />\r\n\t<div");
3792
3793 WriteLiteral(" class=\"searchbox__button\"");
3794
3795 WriteLiteral(">\r\n\t\t<button");
3796
3797 WriteLiteral(" type=\"submit\"");
3798
3799 WriteLiteral(" class=\"searchbox__form__submit icon icon--medium icon__search input__icon\"");
3800
3801 WriteLiteral(" aria-label=\"Search\"");
3802
3803 WriteLiteral(">\r\n\t\t\t<i");
3804
3805 WriteLiteral(" class=\"fal fa-search\"");
3806
3807 WriteLiteral("></i>\r\n\t\t</button>\r\n\t</div>\r\n\t<input");
3808
3809 WriteLiteral(" type=\"hidden\"");
3810
3811 WriteLiteral(" name=\"ID\"");
3812
3813 WriteAttribute("value", Tuple.Create(" value=\"", 50909), Tuple.Create("\"", 50930)
3814
3815 #line 1486 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3816 , Tuple.Create(Tuple.Create("", 50917), Tuple.Create<System.Object, System.Int32>(SearchPageID
3817
3818 #line default
3819 #line hidden
3820 , 50917), false)
3821 );
3822
3823 WriteLiteral(" />\r\n</form>\r\n\r\n</section>\r\n\r\n\t\r\n\r\n\t<div");
3824
3825 WriteLiteral(" id=\"backdrop\"");
3826
3827 WriteLiteral("></div>\r\n\r\n");
3828
3829
3830 #line 1495 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3831
3832
3833 #line default
3834 #line hidden
3835
3836 #line 1495 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3837
3838 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js");
3839 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
3840 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
3841 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
3842
3843
3844 #line default
3845 #line hidden
3846 WriteLiteral("\r\n\r\n\t<script");
3847
3848 WriteAttribute("src", Tuple.Create(" src=\"", 51343), Tuple.Create("\"", 51361)
3849
3850 #line 1502 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3851 , Tuple.Create(Tuple.Create("", 51349), Tuple.Create<System.Object, System.Int32>(polyfillsjs
3852
3853 #line default
3854 #line hidden
3855 , 51349), false)
3856 );
3857
3858 WriteLiteral("></script>\r\n\t<script");
3859
3860 WriteAttribute("src", Tuple.Create(" src=\"", 51382), Tuple.Create("\"", 51400)
3861
3862 #line 1503 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3863 , Tuple.Create(Tuple.Create("", 51388), Tuple.Create<System.Object, System.Int32>(appbundlejs
3864
3865 #line default
3866 #line hidden
3867 , 51388), false)
3868 );
3869
3870 WriteLiteral("></script>\r\n\t<script defer");
3871
3872 WriteAttribute("src", Tuple.Create(" src=\"", 51427), Tuple.Create("\"", 51445)
3873
3874 #line 1504 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3875 , Tuple.Create(Tuple.Create("", 51433), Tuple.Create<System.Object, System.Int32>(vuebundlejs
3876
3877 #line default
3878 #line hidden
3879 , 51433), false)
3880 );
3881
3882 WriteLiteral("></script>\r\n\t<script defer");
3883
3884 WriteAttribute("src", Tuple.Create(" src=\"", 51472), Tuple.Create("\"", 51495)
3885
3886 #line 1505 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3887 , Tuple.Create(Tuple.Create("", 51478), Tuple.Create<System.Object, System.Int32>(appAsyncbundlejs
3888
3889 #line default
3890 #line hidden
3891 , 51478), false)
3892 );
3893
3894 WriteLiteral("></script>\r\n\r\n");
3895
3896
3897 #line 1507 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3898
3899
3900 #line default
3901 #line hidden
3902
3903 #line 1507 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3904 if (font_configuration != null)
3905 {
3906 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
3907 {
3908 if (item["FontLink"] != null)
3909 {
3910 string FontName = item["FontName"].ToString().Replace(" ", "");
3911 string cssFile = $"files/Templates/Designs/Backyard/GoogleFont/{FontName}/{FontName}.css";
3912
3913
3914 #line default
3915 #line hidden
3916 WriteLiteral("\t\t\t\t<link");
3917
3918 WriteAttribute("href", Tuple.Create(" href=\"", 51934), Tuple.Create("\"", 51949)
3919
3920 #line 1515 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3921 , Tuple.Create(Tuple.Create("", 51941), Tuple.Create<System.Object, System.Int32>(cssFile
3922
3923 #line default
3924 #line hidden
3925 , 51941), false)
3926 );
3927
3928 WriteLiteral(" rel=\"stylesheet\"");
3929
3930 WriteLiteral(">\r\n");
3931
3932
3933 #line 1516 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3934 }
3935 }
3936 }
3937
3938
3939 #line default
3940 #line hidden
3941 WriteLiteral("\r\n\t<link");
3942
3943 WriteLiteral(" rel=\"stylesheet\"");
3944
3945 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\"");
3946
3947 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" +
3948 "QU\"");
3949
3950 WriteLiteral(" crossorigin=\"anonymous\"");
3951
3952 WriteLiteral(">\r\n\r\n");
3953
3954
3955 #line 1522 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3956
3957
3958 #line default
3959 #line hidden
3960
3961 #line 1522 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
3962 if (isVisualEditor && IsNotContentManager)
3963 {
3964
3965
3966
3967 #line default
3968 #line hidden
3969 WriteLiteral("\t<style>\r\n\t\tbody {\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\tfont-family: \'Barlow\', sans" +
3970 "-serif;\r\n\t\t}\r\n\r\n\t\t.slidePanel {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 0;\r\n\t\t\tbottom: 0;\r" +
3971 "\n\t\t\tmin-width: 500px;\r\n\t\t\tbox-shadow: -10px 10px 10px rgb(153 153 255 / 10%);\r\n\t" +
3972 "\t\tbackground-color: #FFFFFF;\r\n\t\t\tz-index: 1000;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\t" +
3973 "transition: all .5s ease-in;\r\n\t\t}\r\n\r\n\t\t\t.slidePanel.open {\r\n\t\t\t\tright: 0;\r\n\t\t\t}\r" +
3974 "\n\r\n\t\t.slidePanel {\r\n\t\t\tright: -500px;\r\n\t\t\ttransition: all 0.5s ease-in;\r\n\t\t}\r\n\r\n" +
3975 "\t\t.slidePanel__container {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: relative;\r\n\t\t\theight" +
3976 ": 100%;\r\n\t\t}\r\n\r\n\t\t.togglePanelButton {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 50px;\r\n\t\t\tl" +
3977 "eft: 50px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: cent" +
3978 "er;\r\n\t\t\tcolor: white;\r\n\t\t\tbackground-color: black;\r\n\t\t\tpadding: 0px 25px;\r\n\t\t\the" +
3979 "ight: 50px;\r\n\t\t\tcursor: pointer;\r\n\t\t\tz-index: 1000;\r\n\t\t}\r\n\r\n\t\t.closeButton {\r\n\t\t" +
3980 "\tposition: absolute;\r\n\t\t\tdisplay: flex;\r\n\t\t\ttop: 25px;\r\n\t\t\tright: 25px;\r\n\t\t\tfont" +
3981 "-size: 2rem;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tcolor: black;\r\n\t\t}\r\n\r\n\t\t.blur {\r\n\t\t\t" +
3982 "filter: blur(4px);\r\n\t\t\tpointer-events: none;\r\n\t\t}\r\n\r\n\t\t.sideMenu {\r\n\t\t\tdisplay: " +
3983 "flex;\r\n\t\t\tposition: absolute;\r\n\t\t\talign-items: center;\r\n\t\t\tmin-height: 100px;\r\n\t" +
3984 "\t\tz-index: 1200;\r\n\t\t\ttop: 0;\r\n\t\t\tbottom: 0;\r\n\t\t\tright: 100%;\r\n\t\t\tflex-direction:" +
3985 " column;\r\n\t\t\tjustify-content: center;\r\n\t\t}\r\n\r\n\t\t.sideMenu__link:first-child {\r\n\t" +
3986 "\t\tmargin-top: 10px;\r\n\t\t}\r\n\r\n\t\t.sideMenu__link {\r\n\t\t\tposition: relative;\r\n\t\t\tflex" +
3987 "-direction: column;\r\n\t\t\tdisplay: flex;\r\n\t\t\theight: 50px;\r\n\t\t\twidth: 50px;\r\n\t\t\tba" +
3988 "ckground-color: #f1f1f1;\r\n\t\t\tmargin-bottom: 10px;\r\n\t\t\tmargin-left: 10px;\r\n\t\t\tmar" +
3989 "gin-right: 10px;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\talign-items: center;\r\n\t" +
3990 "\t\tfont-size: 10px;\r\n\t\t\tpadding: 10px;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\ttext-decor" +
3991 "ation: none;\r\n\t\t\tcolor: rgb(22, 101, 123);\r\n\t\t\tfont-size: 24px;\r\n\t\t}\r\n\t\t\t.sideMe" +
3992 "nu__link:hover {\r\n\t\t\t\tbackground-color: #c9c9c9;\r\n\t\t\t\tcolor: white;\r\n\t\t\t\ttransit" +
3993 "ion: all ease-in 0.5s;\r\n\t\t\t}\r\n\t\t\t.sideMenu__link label {\r\n\t\t\t\tfont-size: 12px;\r\n" +
3994 "\t\t\t}\r\n\r\n\t\t.sideMenu__container {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: relative;\r\n\t\t\t" +
3995 "flex-direction: column;\r\n\t\t\tbox-shadow: -10px 10px 10px rgb(153 153 255 / 10%);\r" +
3996 "\n\t\t\tbackground-color: white;\r\n\t\t}\r\n\r\n\t\t.toolbar.close {\r\n\t\t\tdisplay: none;\r\n\t\t}\r" +
3997 "\n\r\n\t\t#toolbarVE {\r\n\t\t\tposition: fixed !important;\r\n\t\t\tz-index: 100;\r\n\t\t\tbackgrou" +
3998 "nd-color: #CCC;\r\n\t\t\tborder: 2px solid #F1F1F1;\r\n\t\t\ttext-align: center;\r\n\t\t\tright" +
3999 ": 0px;\r\n\t\t\ttop: 300px;\r\n\t\t}\r\n\r\n\t\t#toolbarVEHeader {\r\n\t\t\tpadding: 10px;\r\n\t\t\tcurso" +
4000 "r: move;\r\n\t\t\tz-index: 10;\r\n\t\t\tbackground-color: #6e6e6e;\r\n\t\t\tcolor: #fff;\r\n\t\t}\r\n" +
4001 "\t</style>\r\n");
4002
4003
4004 #line 1663 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4005
4006
4007
4008 #line default
4009 #line hidden
4010 WriteLiteral("\t<div");
4011
4012 WriteLiteral(" class=\"toolbarVE\"");
4013
4014 WriteLiteral(" id=\"toolbar\"");
4015
4016 WriteLiteral(" style=\"top: 150px; left: auto; width: 70px; position: fixed !important; right: 0" +
4017 "px !important; \"");
4018
4019 WriteLiteral(">\r\n\t\t<div");
4020
4021 WriteLiteral(" id=\"toolbarVEHeader\"");
4022
4023 WriteLiteral(">\r\n\t\t\t<a");
4024
4025 WriteLiteral(" href=\"javascript:void(0);\"");
4026
4027 WriteLiteral(" onclick=\"toggleClass(\'.toolbar\', \'close\');\"");
4028
4029 WriteLiteral(" style=\"color: #FFF;\"");
4030
4031 WriteLiteral("><i");
4032
4033 WriteLiteral(" class=\"icon fa-light fa-circle-xmark\"");
4034
4035 WriteLiteral("></i></a>\r\n\t\t</div>\r\n\t\t<section");
4036
4037 WriteLiteral(" class=\"sideMenu__container\"");
4038
4039 WriteLiteral(">\r\n\t\t\t<a");
4040
4041 WriteLiteral(" href=\"javascript:history.back();\"");
4042
4043 WriteLiteral(" class=\"sideMenu__link\"");
4044
4045 WriteLiteral("><i");
4046
4047 WriteLiteral(" class=\"icon fa-light fa-reply\"");
4048
4049 WriteLiteral("></i></a>\r\n\t\t\t<a");
4050
4051 WriteLiteral(" href=\"/dashboard-configuration\"");
4052
4053 WriteLiteral(" class=\"sideMenu__link\"");
4054
4055 WriteLiteral("><i");
4056
4057 WriteLiteral(" class=\"icon fa-light fa-grid-horizontal\"");
4058
4059 WriteLiteral("></i></a>\r\n\t\t\t<a");
4060
4061 WriteLiteral(" href=\"/button-configuration\"");
4062
4063 WriteLiteral(" class=\"sideMenu__link\"");
4064
4065 WriteLiteral("><i");
4066
4067 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\"");
4068
4069 WriteLiteral("></i></a>\r\n\t\t\t<a");
4070
4071 WriteLiteral(" href=\"/button-configuration\"");
4072
4073 WriteLiteral(" class=\"sideMenu__link\"");
4074
4075 WriteLiteral("><i");
4076
4077 WriteLiteral(" class=\"icon fa-light fa-link\"");
4078
4079 WriteLiteral("></i></a>\r\n\t\t\t<a");
4080
4081 WriteLiteral(" href=\"/background-configuration\"");
4082
4083 WriteLiteral(" class=\"sideMenu__link\"");
4084
4085 WriteLiteral("><i");
4086
4087 WriteLiteral(" class=\"icon fa-light fa-paintbrush\"");
4088
4089 WriteLiteral("></i></a>\r\n\t\t\t<a");
4090
4091 WriteLiteral(" href=\"/jumbotron-configuration\"");
4092
4093 WriteLiteral(" class=\"sideMenu__link\"");
4094
4095 WriteLiteral("><i");
4096
4097 WriteLiteral(" class=\"icon fa-light fa-megaphone\"");
4098
4099 WriteLiteral("></i></a>\r\n\t\t\t<a");
4100
4101 WriteLiteral(" href=\"/theme-configuration-page/theme-01\"");
4102
4103 WriteLiteral(" class=\"sideMenu__link\"");
4104
4105 WriteLiteral("><i");
4106
4107 WriteLiteral(" class=\"icon fa-light fa-brush\"");
4108
4109 WriteLiteral("></i></a>\r\n\t\t\t<a");
4110
4111 WriteLiteral(" href=\"/font-configuration\"");
4112
4113 WriteLiteral(" class=\"sideMenu__link\"");
4114
4115 WriteLiteral("><i");
4116
4117 WriteLiteral(" class=\"icon fa-light fa-font\"");
4118
4119 WriteLiteral("></i></a>\r\n\t\t\t<a");
4120
4121 WriteLiteral(" href=\"/device-manager\"");
4122
4123 WriteLiteral(" class=\"sideMenu__link\"");
4124
4125 WriteLiteral("><i");
4126
4127 WriteLiteral(" class=\"icon fa-light fa-computer\"");
4128
4129 WriteLiteral("></i></a>\r\n\t\t</section>\r\n\t</div>\r\n");
4130
4131
4132 #line 1680 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4133
4134
4135
4136 #line default
4137 #line hidden
4138 WriteLiteral(@" <script>
4139 function toggleClass(ClassName, AddedClassName) {
4140 var element = document.querySelector(ClassName);
4141 if (element.classList.contains(AddedClassName)) {
4142 element.classList.remove(AddedClassName);
4143 } else {
4144 element.classList.add(AddedClassName);
4145 }
4146 }
4147 </script>
4148 ");
4149
4150
4151 #line 1691 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4152
4153
4154
4155 #line default
4156 #line hidden
4157 WriteLiteral(@" <script>
4158 //Make the DIV element draggagle:
4159 dragElement(document.getElementById(""toolbar""));
4160
4161 function dragElement(elmnt) {
4162 var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
4163 if (document.getElementById(elmnt.id + ""Header"")) {
4164 /* if present, the header is where you move the DIV from:*/
4165 document.getElementById(elmnt.id + ""Header"").onmousedown = dragMouseDown;
4166 } else {
4167 /* otherwise, move the DIV from anywhere inside the DIV:*/
4168 elmnt.onmousedown = dragMouseDown;
4169 }
4170
4171 function dragMouseDown(e) {
4172 e = e || window.event;
4173 e.preventDefault();
4174 // get the mouse cursor position at startup:
4175 pos3 = e.clientX;
4176 pos4 = e.clientY;
4177 document.onmouseup = closeDragElement;
4178 // call a function whenever the cursor moves:
4179 document.onmousemove = elementDrag;
4180 }
4181
4182 function elementDrag(e) {
4183 e = e || window.event;
4184 e.preventDefault();
4185 // calculate the new cursor position:
4186 pos1 = pos3 - e.clientX;
4187 pos2 = pos4 - e.clientY;
4188 pos3 = e.clientX;
4189 pos4 = e.clientY;
4190 // set the element's new position:
4191 elmnt.style.top = (elmnt.offsetTop - pos2) + ""px"";
4192 elmnt.style.left = (elmnt.offsetLeft - pos1) + ""px"";
4193 }
4194
4195 function closeDragElement() {
4196 /* stop moving when mouse button is released:*/
4197 document.onmouseup = null;
4198 document.onmousemove = null;
4199 }
4200 }
4201 </script>
4202 ");
4203
4204
4205 #line 1737 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4206
4207
4208
4209 #line default
4210 #line hidden
4211
4212 #line 1764 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4213
4214
4215
4216
4217 #line default
4218 #line hidden
4219 WriteLiteral("\t<script");
4220
4221 WriteLiteral(" src=\"https://kit.fontawesome.com/a46eca85e2.js\"");
4222
4223 WriteLiteral(" crossorigin=\"anonymous\"");
4224
4225 WriteLiteral("></script>\r\n");
4226
4227
4228 #line 1767 "D:\dynamicweb.net\Solutions\Bluedesk\telstar.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\VisualEditorPageClean.parsed.cshtml"
4229
4230 }
4231
4232
4233 #line default
4234 #line hidden
4235 WriteLiteral("\r\n\r\n</body>\r\n</html>\r\n");
4236
4237 }
4238 }
4239 }
4240
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2
3 @using System;
4 @using System.Web;
5 @using System.Linq;
6 @using System.Data;
7 @using System.Data.SqlClient;
8 @using System.Globalization;
9 @using System.Reflection;
10
11 @using Dynamicweb;
12 @using Dynamicweb.Content.Items;
13 @using Dynamicweb.Environment;
14 @using Dynamicweb.Frontend;
15 @using Dynamicweb.Frontend.Navigation;
16
17 @using Bluedesk.DynamicWeb.ItemTypes;
18 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
19 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
20
21 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
22 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
23
24 @using Bluedesk.Tools.Generic;
25 @using Bluedesk.Tools.DynamicWeb.DataAccess;
26
27 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
28
29 @using System;
30 @using System.Web;
31 @using System.Linq;
32 @using System.Globalization;
33
34 @using Dynamicweb;
35 @using Dynamicweb.Content.Items;
36 @using Dynamicweb.Environment;
37 @using Dynamicweb.Frontend;
38 @using Dynamicweb.Frontend.Navigation;
39
40 @using Bluedesk.Tools.Generic;
41
42 @using Bluedesk.DynamicWeb.ItemTypes;
43 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
44 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
45
46 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
47
48 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
49 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
50
51 @{
52
53 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
54 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
55
56 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
57
58 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
59
60 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
61 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
62
63 string ecomShowPricesWithVat = (Pageview.Area.EcomPricesWithVat == "True").ToString().ToLower();
64 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
65
66 bool IsNotContentManager = false;
67 bool isVisualEditor = Pageview.IsVisualEditorMode;
68
69 if (isVisualEditor)
70 {
71 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
72 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
73 }
74
75 BaseSettingsObj BaseSettings = new BaseSettingsObj();
76
77 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
78 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
79
80 //if (HttpContext.Current.Session["BaseSettings"] == null)
81 //{
82
83 //}
84 //else
85 //{
86 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
87 // if (BaseSettings.AreaID != Pageview.AreaID)
88 // {
89 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
90 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
91 // }
92 //}
93
94 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
95 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
96
97 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
98
99 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
100 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
101 var langName = Pageview.Area.Culture;
102
103 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
104 var designRoot = BaseSettings.DesignRoot;
105
106 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
107 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
108 var emailadress = BaseSettings.CorporateSettings.Emailadress;
109 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
110 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
111 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
112
113 bool isOffline = false;
114
115 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
116 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
117 DateTime today = DateTime.Now;
118 var cHour = DateTime.Now.TimeOfDay;
119 int cDay = (int)DateTime.Now.DayOfWeek;
120 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
121 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
122 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
123 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
124 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
125 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
126 if (isNoValidDate || isOvertime)
127 {
128 isOffline = true;
129 }
130
131 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
132
133 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
134
135 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
136 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
137 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
138
139 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
140 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
141 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
142
143 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js");
144 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
145 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
146 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
147
148 }
149
150
151 <!DOCTYPE html>
152 <html lang="@lang" prefix="og: http://ogp.me/ns#">
153 <head>
154 <meta charset="utf-8">
155 <meta http-equiv="X-UA-Compatible" content="IE=edge">
156 <meta name="viewport" content="width=device-width, initial-scale=1">
157 <meta name="theme-color" content="@mobileThemeColor">
158 @Model.MetaTags
159 <title>@Model.Title</title>
160
161 @RenderSnippet("canonical")
162 @RenderSnippet("ogTags")
163
164 @{
165 string urlProtocol = Dynamicweb.Context.Current.Request.Url.Scheme;
166 List<Dynamicweb.Content.Page> pageTranslations = new List<Dynamicweb.Content.Page>();
167 bool isMasterPage = Pageview.Area.IsMaster;
168 if (isMasterPage)
169 {
170 pageTranslations.Add(Pageview.Page);
171 if (Pageview.Page.Languages != null)
172 {
173 foreach (var language in Pageview.Page.Languages)
174 {
175 if (language.Active)
176 {
177 pageTranslations.Add(language);
178 }
179 }
180 }
181 }
182 else
183 {
184 pageTranslations.Add(Pageview.Page.MasterPage);
185 if (Pageview.Page.MasterPage != null)
186 {
187 if (Pageview.Page.MasterPage.Languages != null)
188 {
189 foreach (var language in Pageview.Page.MasterPage.Languages)
190 {
191 if (language.Active)
192 {
193 pageTranslations.Add(language);
194 }
195 }
196 }
197 }
198 }
199 foreach (var page in pageTranslations)
200 {
201 if (page != null)
202 {
203 string url = $"Default.aspx?ID={page.ID}";
204 string groupid = Dynamicweb.Context.Current.Request.QueryString.Get("GroupID");
205 string productid = Dynamicweb.Context.Current.Request.QueryString.Get("ProductID");
206 string variantid = Dynamicweb.Context.Current.Request.QueryString.Get("VariantID");
207 if (!string.IsNullOrWhiteSpace(groupid))
208 {
209 var groupObj = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(groupid, page.Area.EcomLanguageId);
210 if (groupObj == null)
211 {
212 continue;
213 }
214 url = $"{url}&GroupID={groupid}";
215 }
216 if (!string.IsNullOrWhiteSpace(productid))
217 {
218 var productObj = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, page.Area.EcomLanguageId);;
219 if (productObj == null)
220 {
221 continue;
222 }
223 url = $"{url}&ProductID={productid}";
224 if (!string.IsNullOrWhiteSpace(variantid))
225 {
226 url = $"{url}&VariantID={variantid}";
227 }
228 }
229
230 string currentdomain = Context.Current.Request.Url.DnsSafeHost;
231 if (!string.IsNullOrEmpty(page.Area.DomainLock)) {
232 currentdomain = page.Area.DomainLock;
233 }
234 string friendlyUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(url);
235 string href = $"{urlProtocol}://{currentdomain}{friendlyUrl}";
236 string hreflang = page.Area.CultureInfo.Name.ToLower();
237 <link rel="alternate" href="@href" hreflang="@hreflang" />
238 }
239 }
240 }
241
242
243 <link rel="preconnect" href="https://fonts.googleapis.com">
244 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
245 <link href="@appcss" rel="stylesheet" type="text/css" />
246
247 @{
248 if (!string.IsNullOrWhiteSpace(favicon32)) { <link rel="icon" type="image/png" sizes="32x32" href="@favicon32"> }
249 if (!string.IsNullOrWhiteSpace(favicon16)) { <link rel="icon" type="image/png" sizes="16x16" href="@favicon16"> }
250 if (!string.IsNullOrWhiteSpace(favicon)){ <link rel="shortcut icon" href="@favicon"> }
251 }
252
253
254
255 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
256 @using System;
257 @using System.Web;
258 @using System.Linq;
259 @using System.Globalization;
260
261 @using Dynamicweb;
262 @using Dynamicweb.Content.Items;
263 @using Dynamicweb.Environment;
264 @using Dynamicweb.Frontend;
265 @using Dynamicweb.Frontend.Navigation;
266
267 @using Bluedesk.Tools.Generic;
268
269 @using Bluedesk.DynamicWeb.ItemTypes;
270 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
271 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
272
273 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
274 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
275 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
276
277 @helper RenderCSSKeyAndValue(string Key, string Value)
278 {
279 if (!string.IsNullOrWhiteSpace(Value))
280 {
281 <text>@Key : @Value !important;</text>
282 }
283 }
284
285 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
286 {
287
288 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
289 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
290 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
291 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
292
293 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
294
295 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
296 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
297
298 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
299 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
300
301 <text>
302
303 --Position: @Position;
304
305 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)
306
307 @RenderCSSKeyAndValue("--Top", Top)
308 @RenderCSSKeyAndValue("--Left", Left)
309 @RenderCSSKeyAndValue("--Right", Right)
310 @RenderCSSKeyAndValue("--Bottom", Bottom)
311
312 @RenderCSSKeyAndValue("--Color", Color)
313 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)
314 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)
315
316 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)
317 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)
318 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)
319
320 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)
321 @RenderCSSKeyAndValue("--BorderColor", BorderColor)
322 @RenderCSSKeyAndValue("--BorderSize", BorderSize)
323
324 </text>
325
326 }
327
328
329 <script>
330 window.globals = {
331 pageId: '@Pageview.ID',
332 Token: '@csrftoken',
333 DW_AREA_CULTURE: '@langName',
334 DW_AREA_CULTURE_SHORT: '@lang',
335 globalIconClass: '@buttonIconClass',
336 DW_USERID: '@Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId()',
337 DW_SHOW_PRICES_WITH_VAT: @ecomShowPricesWithVat,
338 DW_PRICES_FORMATTED: @ecomPricesFormatted
339 };
340 </script>
341
342 @BaseSettings.System.HeadScript
343
344 @{
345 var _cookieOptinLevel = Dynamicweb.Environment.CookieManager.GetCookieOptInLevel();
346 var _enabledCookieCategories = Dynamicweb.Environment.CookieManager.GetCookieOptInCategories();
347 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies"))
348 {
349 @BaseSettings.System.HeadScriptAfterConsent;
350 }
351 }
352
353 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
354 @{
355
356 var reviewName = BaseSettings.Review.Review_Name != null ? BaseSettings.Review.Review_Name : "";
357 var reviewBestRating = BaseSettings.Review.Review_Best_Rating != null ? BaseSettings.Review.Review_Best_Rating : "";
358 var reviewWorstRating = BaseSettings.Review.Review_Worst_Rating != null ? BaseSettings.Review.Review_Worst_Rating : "";
359 var reviewRatingValue = BaseSettings.Review.Review_Rating_Value != null ? BaseSettings.Review.Review_Rating_Value : "";
360 var reviewCount = BaseSettings.Review.Review_Count != null ? BaseSettings.Review.Review_Count : "";
361 var reviewUrl = BaseSettings.Review.Review_URL != null ? BaseSettings.Review.Review_URL : "";
362
363 var searchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID);
364 var domain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
365 }
366
367 <script type="application/ld+json">
368 [{
369 "@@context": "https://schema.org",
370 "@@type": "Organization",
371 "name" : "@BaseSettings.CorporateSettings.CompanyName",
372 "url": "@domain",
373 "sameAs" : "@BaseSettings.SocialMedia.Facebook",
374 "logo": "@domain@BaseSettings.BrandConfiguration.Logos.Logo",
375 "contactPoint" : [{
376 "@@type" : "ContactPoint",
377 "telephone" : "@BaseSettings.CorporateSettings.Phonenumber",
378 "contactType" : "customer service" ,
379 "@@context": "https://schema.org",
380 "@@id": "@domain",
381 "name": "@BaseSettings.CorporateSettings.CompanyName"
382 }],
383 "address": {
384 "@@type": "PostalAddress",
385 "streetAddress": "@BaseSettings.CorporateSettings.Address",
386 "addressLocality": "@BaseSettings.CorporateSettings.City",
387 "postalCode": "@BaseSettings.CorporateSettings.Zipcode",
388 "addressRegion": "@BaseSettings.CorporateSettings.Region",
389 "addressCountry": "@BaseSettings.CorporateSettings.Country"
390 }
391 },
392 {
393 "@@context": "https://schema.org",
394 "@@type": "WebSite",
395 "name" : "@BaseSettings.CorporateSettings.CompanyName",
396 "alternateName" : "@BaseSettings.CorporateSettings.AltCompanyName",
397 "url": "@domain",
398 "potentialAction": {
399 "@@type": "SearchAction",
400 "target": "@domain/Default.aspx?ID=@searchPageID&q={search_term_string}",
401 "query-input": "required name=search_term_string"
402 }
403 }]
404 </script>
405
406 <script type="application/ld+json">
407 {
408 "@@context": "https://schema.org",
409 "@@type": "Product",
410 "name": "@reviewName",
411 "url":"@reviewUrl",
412 "aggregateRating": {
413 "@@type": "AggregateRating",
414 "bestRating": "@reviewBestRating",
415 "worstRating": "@reviewWorstRating",
416 "ratingValue": "@reviewRatingValue",
417 "reviewCount": "@reviewCount"
418 }
419 }
420 </script>
421
422
423 @RenderSnippet("DataLayer")
424 @RenderSnippet("GoogleMapsScript")
425
426 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
427
428 @{
429
430 // TODO: Add there options to master config for product overview
431 bool hidePricesForGuests = false;
432 bool hideShoppingCartForGuests = false;
433
434 bool enableShoppingCart = hideShoppingCartForGuests && Pageview.User == null ? false : BaseSettings.Features.ConfigModuleShoppingCart;
435 bool enableLogin = BaseSettings.Features.ConfigModuleLogin;
436 bool enableQuickOrder = BaseSettings.Features.ConfigModuleQuickOrder;
437 bool enableAdvancedSearch = BaseSettings.Features.ConfigModuleAdvancedSearch;
438 bool enableCallMeBack = BaseSettings.Features.ConfigModuleCallMeBack;
439 bool enableDyslexicFont = BaseSettings.Features.ConfigModuleDyslexicFont;
440 bool enableProductCompare = BaseSettings.Features.ConfigModuleProductCompare;
441 }
442
443
444
445 <style>
446 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
447 @using Dynamicweb;
448
449 @using System.Data;
450 @using System.Data.SqlClient;
451 @using Bluedesk.Tools.DynamicWeb.DataAccess;
452
453 @using Bluedesk.DynamicWeb.ItemTypes;
454 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
455 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
456 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
457
458 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
459
460 @Title("Configuration page template")
461
462 @{
463
464 string RoundedCornersValue = "0px";
465 string ButtonHeight = BaseSettings.BrandConfiguration.ButtonHeight;
466
467 switch (BaseSettings.BrandConfiguration.RoundedCorners)
468 {
469
470 case "rounded":
471 RoundedCornersValue = BaseSettings.BrandConfiguration.RoundedCornerValue;
472 break;
473
474 case "round":
475 RoundedCornersValue = ButtonHeight;
476 break;
477
478 default:
479 RoundedCornersValue = "0px";
480 break;
481 }
482
483 string fontawesomeFontFamily = "Font Awesome 5 Pro";
484 int fontawesomeFontWeight = 300;
485
486 switch (BaseSettings.BrandConfiguration.FontawesomeStyle)
487 {
488
489 case "fal":
490 fontawesomeFontWeight = 300;
491 break;
492 case "far":
493 fontawesomeFontWeight = 400;
494 break;
495 case "fas":
496 fontawesomeFontWeight = 900;
497 break;
498 case "fad":
499 fontawesomeFontWeight = 900;
500 fontawesomeFontFamily = "Font Awesome 5 Duotone";
501 break;
502 }
503
504 }
505
506 @BaseSettingServices.RenderButtonCSS("btn__primary", BaseSettingsButtons.PrimaryButtonConfiguration)
507 @BaseSettingServices.RenderButtonCSS("btn__secondary", BaseSettingsButtons.SecondaryButtonConfiguration)
508 @BaseSettingServices.RenderButtonCSS("btn__contrast", BaseSettingsButtons.ContrastButtonConfiguration)
509
510 :root,
511 body {
512
513 --BaseColorPrimary : @BaseSettingsBrandConfiguration.BaseColorPrimary;
514 --BaseColorSecondary : @BaseSettingsBrandConfiguration.BaseColorSecondary;
515 --BaseColorContrast : @BaseSettingsBrandConfiguration.BaseColorContrast;
516
517 --BaseFontPrimary : @BaseSettingsBrandConfiguration.PrimaryFontFamily;
518 --BaseFontSecondary : @BaseSettingsBrandConfiguration.PrimaryFontFamily;
519
520 @BaseSettings.BrandConfiguration.BodyInlineStyles
521 --StandardUnitSize : 3.2rem;
522 }
523
524 .footer {
525 --FooterContainerDisplay: none !important;
526 display: var(--FooterContainerDisplay)
527 }
528
529 h1, h2, h3, h4, h5, h6 { @BaseSettings.BrandConfiguration.HeaderInlineStyles }
530
531 h1.cta-paragraph__header { @BaseSettings.BrandConfiguration.H1InlineStyles }
532 h2.cta-paragraph__header { @BaseSettings.BrandConfiguration.H2InlineStyles }
533 h3.cta-paragraph__header { @BaseSettings.BrandConfiguration.H3InlineStyles }
534 h4.cta-paragraph__header { @BaseSettings.BrandConfiguration.H4InlineStyles }
535
536 .po-block__addtocart .btn,
537 .productdetails__add-to-cart,
538 .searchbox__input {
539 border-radius: @RoundedCornersValue;
540 }
541
542 main.blur {
543 filter: grayscale(50%) blur(15px);
544 -webkit-filter: grayscale(50%) blur(15px);
545 }
546
547 .AdvancedGridButton {
548 --BorderRadius: @RoundedCornersValue;
549 }
550
551 .btn {
552 height: var(--StandardUnitSize);
553 }
554
555 .btn__icon {
556
557 --fontawesomeFontFamily : "@fontawesomeFontFamily";
558 --fontawesomeFontWeight : @fontawesomeFontWeight;
559
560 font-family: var(--fontawesomeFontFamily);
561 font-weight: var(--fontawesomeFontWeight);
562
563 -moz-osx-font-smoothing: grayscale;
564 -webkit-font-smoothing: antialiased;
565 display: inline-block;
566 font-style: normal;
567 font-variant: normal;
568 text-rendering: auto;
569 line-height: 1;
570
571 }
572
573 .cta-paragraph {
574 background-color: var(--mainBackgroundColor);
575 }
576
577 .cta-paragraph__container {
578 background-color: var(--contentBackgroundColor);
579 border: var(--contentBorder);
580 }
581
582 .cta-paragraph__subheader,
583 .cta-paragraph__header,
584 .cta-paragraph__text p,
585 .cta-paragraph__text li {
586 color: var(--Color);
587 background-color: var(--BackgroundColor);
588 border-color: var(--BorderColor);
589 position: var(--Position);
590 top: var(--Top);
591 left: var(--Left);
592 right: var(--Right);
593 bottom: var(--Bottom);
594 padding: var(--Padding);
595 border: var(--BorderSize);
596 font-size: var(--FontSize);
597 text-transform: var(--FontStyle);
598 line-height: var(--LineHeight);
599 font-weight: var(--FontWeight);
600 font-family: var(--FontFamily);
601 border-radius: var(--BorderRadius);
602 }
603
604 .cta-paragraph__content-container {
605 align-items: var(--ContentElementAlignmentAlignItems);
606 text-align: var(--ContentElementAlignmentTextAlign);
607 }
608
609 .cta-paragraph__btn-navigation,
610 .cta-paragraph__content-container {
611 align-items : var(--ContainerFitContentAlignmentAlignItems);
612 justify-content: var(--ContainerFitContentAlignmentJustifyContent);
613 }
614
615 .jumbotron__subheader,
616 .jumbotron__header,
617 .jumbotron__shoutbox-intro p,
618 .jumbotron__shoutbox-intro li,
619 .header--desktop.headerNew {
620 position: relative;
621 }
622
623 .header--desktop.headerNew.stickyheader {
624 position: fixed;
625 }
626
627 @@media screen and (min-width: 992px){
628 .image-left {
629 justify-content: flex-end;
630 flex-direction: row;
631 }
632
633 .image-right {
634 justify-content: flex-start;
635 flex-direction: row-reverse;
636 }
637 }
638
639 .AdvancedGrid__row {
640 background-color: var(--BackgroundColor);
641 }
642
643 .cta-paragraph__btn-navigation {
644 padding: 1.2rem 0rem !important;
645 }
646
647 .AdvancedGrid,
648 .AdvancedGrid__container {
649 width: 100%;
650 background-image: var(--BackgroundImage);
651 min-height: var(--Height);
652 }
653
654 @{
655
656 int PageViewId = Pageview.Page.ID;
657 int AreaId = Pageview.AreaID;
658
659 // HttpContext.Current.Session["PageIdForStyles"] = Pageview.Page.ID;
660 // HttpContext.Current.Session["AreaIdForStyles"] = Pageview.AreaID;
661
662 DataTable AdvancedGridStylesDataTable = null;
663
664 AdvancedGridStylesDataTable = DynamicwebData.Query($@"
665
666 SELECT
667 InlineStyles AS Styles
668
669 FROM
670 [dbo].[ItemType_AdvancedGridConfiguration] AS AGC
671 LEFT JOIN [dbo].[GridRow] AS GR ON GR.GridRowItemId = AGC.Id
672
673 WHERE
674 GR.GridRowPageId = @PageId;
675
676 ", new SqlParameter("PageId", PageViewId));
677
678 DataTable BackgroundConfigDataTable = null;
679
680 BackgroundConfigDataTable = DynamicwebData.Query($@"
681
682 SELECT
683 distinct(BG.Stylesheet) AS Styles
684
685 FROM [dbo].GridRow AS GR
686 INNER JOIN dbo.Paragraph AS PG ON PG.ParagraphGridRowId = GR.GridRowId
687 LEFT JOIN dbo.ItemType_CTAParagraph AS CTA ON CTA.Id = PG.ParagraphItemId
688 LEFT JOIN dbo.ItemType_MultiColumnParagraph AS MCP ON MCP.Id = PG.ParagraphItemId
689 LEFT JOIN dbo.ItemType_Carousel AS CS ON CS.Id = PG.ParagraphItemId
690 LEFT JOIN dbo.ItemType_BackgroundConfiguration AS BG ON CTA.BackgroundConfigurationID = BG.Id
691 OR MCP.BackgroundConfigurationID = BG.Id
692 OR CS.BackgroundConfigurationID = BG.Id
693
694 WHERE GR.GridRowPageID=@PageId
695 AND bg.Stylesheet Is NOT NULL", new SqlParameter("PageId", PageViewId));
696
697 DataTable ButtonConfigDataTable = null;
698
699 ButtonConfigDataTable = DynamicwebData.Query($@"
700
701 SELECT
702 distinct(BCONF.Stylesheet) AS Styles
703
704 FROM [dbo].GridRow AS GR
705 LEFT JOIN [dbo].Paragraph AS P ON P.ParagraphGridRowId = GR.GridRowId
706 LEFT JOIN [dbo].ItemType_CTAParagraph AS CTAP ON CTAP.Id = P.ParagraphItemId
707
708 LEFT JOIN [dbo].ItemType_MultiColumnParagraph AS MCP ON MCP.Id = P.ParagraphItemId
709 LEFT JOIN [dbo].[ItemList] AS ColumnIL ON ColumnIL.ItemListId = MCP.ParagraphListID
710 LEFT JOIN [dbo].[ItemListRelation] AS ColumnILR ON ColumnIL.ItemListId = ColumnILR.ItemListRelationItemListId
711 LEFT JOIN [dbo].[ItemType_ParagraphColumn] AS PC ON PC.Id = ColumnILR.ItemListRelationItemId
712
713 LEFT JOIN [dbo].ItemType_Carousel AS CS ON CS.Id = P.ParagraphItemId
714 LEFT JOIN [dbo].[ItemList] AS CIIL ON CIIL.ItemListId = CS.CarouselListID
715 LEFT JOIN [dbo].[ItemListRelation] AS CIILR ON CIIL.ItemListId = CIILR.ItemListRelationItemListId
716 LEFT JOIN [dbo].ItemType_CarouselItem AS CI ON CI.Id = CIILR.ItemListRelationItemId
717
718 LEFT JOIN [dbo].[ItemType_JumbotronContainer] AS JC ON JC.Id = P.ParagraphItemId
719 LEFT JOIN [dbo].[ItemList] AS JCIL ON JCIL.ItemListId = JC.JumbotronListID
720 LEFT JOIN [dbo].[ItemListRelation] AS JCILR ON JCIL.ItemListId = JCILR.ItemListRelationItemListId
721 LEFT JOIN [dbo].ItemType_JumbotronListItem AS JCLI ON JCLI.Id = JCILR.ItemListRelationItemId
722
723 LEFT JOIN [dbo].[ItemType_CTAButton] AS CTAB ON
724 CTAP.ButtonID = CTAB.Id
725 OR CTAP.ExtraButtonID = CTAB.Id
726 OR MCP.ButtonID = CTAB.Id
727 OR PC.ButtonID = CTAB.Id
728 OR PC.ExtraButtonID = CTAB.Id
729 OR CS.ButtonID = CTAB.Id
730 OR CI.ButtonID = CTAB.Id
731 OR CI.ExtraButtonID = CTAB.Id
732 OR JCLI.ButtonID = CTAB.Id
733 LEFT JOIN [dbo].[ItemType_ButtonConfiguration] AS BCONF ON CTAB.ButtonConfigurationID = BCONF.Id
734
735 WHERE
736 GR.GridRowPageID = @PageId
737 AND GR.GridRowActive = 1
738 AND CTAB.ButtonConfigurationID Is NOT NULL", new SqlParameter("PageId", PageViewId));
739
740 DataTable MasterConfigDataTable = null;
741
742 MasterConfigDataTable = DynamicwebData.Query($@"
743
744 SELECT
745 MC.CustomCSS
746
747 FROM
748 [dbo].[Page] AS P
749 INNER JOIN [dbo].[ItemType_MasterConfig] AS MC ON P.PageItemId = MC.Id
750
751 WHERE
752 p.PageItemType = 'MasterConfig'
753 AND PageAreaId = @AreaId;", new SqlParameter("AreaId", AreaId));
754
755 if (AdvancedGridStylesDataTable != null && AdvancedGridStylesDataTable.Rows.Count > 0)
756 {
757 for (int i = 0; i < AdvancedGridStylesDataTable.Rows.Count; i++)
758 {
759 @AdvancedGridStylesDataTable.Rows[i]["Styles"].ToString();
760 }
761 }
762
763 if (BackgroundConfigDataTable != null && BackgroundConfigDataTable.Rows.Count > 0)
764 {
765 for (int i = 0; i < BackgroundConfigDataTable.Rows.Count; i++)
766 {
767 @BackgroundConfigDataTable.Rows[i]["Styles"].ToString();
768 }
769 }
770
771 if (ButtonConfigDataTable != null && ButtonConfigDataTable.Rows.Count > 0)
772 {
773 for (int i = 0; i < ButtonConfigDataTable.Rows.Count; i++)
774 {
775 @ButtonConfigDataTable.Rows[i]["Styles"].ToString();
776 }
777 }
778
779 @MasterConfigDataTable.Rows[0]["CustomCSS"].ToString();
780 }
781
782 </style>
783
784 </head>
785 <body class="@MasterConfigCssClass">
786
787 @BaseSettings.System.BodyScript
788 @{
789 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies"))
790 {
791 @BaseSettings.System.BodyScriptAfterConsent;
792 }
793 }
794
795 @BaseSettings.System.TailScript
796
797 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
798
799 @using System.Linq;
800 @using System.Data;
801
802 @using Dynamicweb;
803 @using Dynamicweb.Content;
804 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
805
806 @{
807
808 DataTable DataTableObj = AdvancedGridServices.GetHeaderGridDataTable(Pageview.AreaID, Pageview.Page.ID);
809
810 WrapperObj Header = AdvancedGridServices.RenderWrapper(DataTableObj, "header", "header", Pageview.AreaID, Pageview.Page.ID);
811 WrapperObj Footer = AdvancedGridServices.RenderWrapper(DataTableObj, "footer", "footer", Pageview.AreaID, Pageview.Page.ID);
812
813 // var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID);
814
815 bool userLoggedIn = false;
816 if (enableLogin) { userLoggedIn = Pageview.User == null ? false : true; }
817
818 string HeaderContainerSize = mc.HeaderConfiguration.ContainerSize + "px";
819
820 }
821
822 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
823 @using Dynamicweb;
824 @using Dynamicweb.Content.Items;
825
826 <script>
827
828 function setImagesSizes(Classname) {
829 var Images = document.querySelectorAll(Classname);
830 for (var index = 0; index < Images.length; index++) {
831 if (!Images[index].hasAttribute("height")) {
832 Images[index].setAttribute("height", Images[index].offsetHeight);
833 }
834 if (!Images[index].hasAttribute("width")) {
835 Images[index].setAttribute("width", Images[index].offsetWidth);
836 }
837 }
838 }
839
840 window.addEventListener('load', function () {
841 setImagesSizes("img");
842 setImagesSizes(".mc-header__logo-image");
843 });
844
845 </script>
846
847
848 <style>
849 @Header.CSS
850 @Footer.CSS
851 </style>
852
853 @Header.Template
854
855
856 <!-- DO NOT REMOVE -->
857 <div id="quick-order"></div>
858 <div id="backdrop-megamenu"></div>
859 <mega-menu id="mega-menu"></mega-menu>
860 <!-- DO NOT REMOVE -->
861
862 @if (isVisualEditor && IsNotContentManager)
863 {
864 @AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "header")
865 }
866
867 <style>
868
869
870 .visual-editor__navigation {
871 position: absolute;
872 top: 10px;
873 left: 10px;
874 display: flex;
875 flex-direction: row;
876 z-index: 100000000;
877 }
878
879 .visual-editor__button {
880 height: 50px;
881 min-width: 150px;
882 right: auto;
883 left: auto;
884 background-color: white;
885 box-shadow: -10px 10px 10px rgb(28 28 84 / 25%);
886 display: flex;
887 justify-content: center;
888 align-items: center;
889 padding: 25px;
890 margin-right: 25px;
891 }
892
893 .visual-editor__button-icon {
894 margin-right: 25px;
895 }
896
897 .header {
898 --HeaderContainerDisplay: none;
899 }
900
901 .header__container {
902 padding: 0;
903 }
904
905 .header__container, .header__stickyheader-container {
906 max-width: none;
907 }
908
909 .header .AdvancedGrid__container {
910 max-width: @HeaderContainerSize;
911 margin: 0 auto;
912 }
913
914 .header .AdvancedGrid__column {
915 background-color: var(--BackgroundColor);
916 flex-grow: var(--FlexGrow);
917 }
918
919 .AdvancedGrid__row {
920 align-items: center;
921 }
922 </style>
923
924
925 <main>
926
927 @Model.Grid("grid", "Before breadcrumb", "", "AdvancedGrid")
928
929 @if (showBreadcrumbs)
930 {
931 var navigationSettings = new NavigationSettings();
932 navigationSettings.ExpandMode = ExpandMode.PathOnly;
933 navigationSettings.StartLevel = 1;
934 navigationSettings.StopLevel = 99;
935 navigationSettings.Parameters.Add("PageTitle", Model.Title);
936 navigationSettings.IncludeFoldersAndHidden = true;
937
938 @Navigation.RenderNavigation("Navigation/Breadcrumbs.cshtml", navigationSettings)
939
940 }
941
942 @Model.Grid("grid2", "After breadcrumb", "", "AdvancedGrid")
943
944 </main>
945
946 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
947 @using Dynamicweb;
948 @using Bluedesk.DynamicWeb.ItemTypes;
949 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
950 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
951
952 @{
953
954 string footerLogo = BaseSettings.BrandConfiguration.Logos.FooterLogo;
955 string footerDescription = BaseSettings.CorporateSettings.FooterDescription;
956
957 var fb = BaseSettings.SocialMedia.Facebook;
958 var twitter = BaseSettings.SocialMedia.Twitter;
959 var linkedin = BaseSettings.SocialMedia.LinkedIn;
960 var instagram = BaseSettings.SocialMedia.Instagram;
961 var youtube = BaseSettings.SocialMedia.Youtube;
962 var pinterest = BaseSettings.SocialMedia.Pinterest ?? "";
963
964 var companyName = BaseSettings.CorporateSettings.CompanyName;
965 var Emailadress = BaseSettings.CorporateSettings.Emailadress;
966 var Phonenumber = BaseSettings.CorporateSettings.Phonenumber;
967 var Address = BaseSettings.CorporateSettings.Address;
968 var Zipcode = BaseSettings.CorporateSettings.Zipcode;
969 var City = BaseSettings.CorporateSettings.City;
970 var Country = BaseSettings.CorporateSettings.Country;
971
972 var selectedPaymentLogos = BaseSettings.BrandConfiguration.Logos.FooterPaymentLogos;
973
974 bool footer__newsletter_signup_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString()) && mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString() == "True" ? true : false;
975 bool footer__USP_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.UspDisplay.ToString()) && mc.FooterConfiguration.UspDisplay.ToString() == "True" ? true : false;
976
977 string footer__background_color = mc.FooterConfiguration.BackgroundColor?.GetColorCode(Pageview.AreaID) ?? "#000000";
978 string footer__color = mc.FooterConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "#FFFFFF";
979
980 string footer__top_image = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.TopImage.ToString()) ? mc.FooterConfiguration.TopImage.ToString() : "";
981
982
983
984 }
985
986 <div id="scroll-to-top" class="scroll-to-top" aria-label="@Translate("Naar boven", "To Top")">
987 <span class="scroll-to-top__text">
988 @Translate("Naar boven", "To Top")
989 </span>
990 <i class="fal fa-arrow-to-top scroll-to-top__icon"></i>
991 </div>
992
993 @if (Pageview.Page.ParentPageId > 0)
994 {
995 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList();
996 var parentpageItemType = Pageview.Page.Parent.ItemType;
997 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage";
998
999 if (siblings.Count() > 1 && isParentPageOverviewpage)
1000 {
1001 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort);
1002 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort);
1003 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId;
1004
1005 <section class="page-navigation">
1006 @if (prevPage != null)
1007 {
1008 var back = "/Default.aspx?ID=" + prevPage.ID;
1009 <a href="@back" class="page-navigation__item">
1010 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i>
1011 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label>
1012 </a>
1013 }
1014
1015 <a href="@overview" class="page-navigation__item">
1016 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label>
1017 <i class="fas fa-th page-navigation__item--icon"></i>
1018 </a>
1019
1020 @if (nextPage != null)
1021 {
1022 var forward = "/Default.aspx?ID=" + nextPage.ID;
1023 <a href="@forward" class="page-navigation__item">
1024 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label>
1025 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i>
1026 </a>
1027 }
1028 </section>
1029 }
1030 }
1031
1032 @*
1033
1034 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
1035 @using Dynamicweb;
1036 @using Bluedesk.Tools.DynamicWeb.ExtensionMethods;
1037 @using Bluedesk.DynamicWeb.ItemTypes;
1038
1039 @{
1040
1041 if (Pageview.Page.ParentPageId > 0)
1042 {
1043
1044 // Paging
1045
1046 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList();
1047 var currentID = Pageview.Page.ID;
1048 var parentpageItemType = Pageview.Page.Parent.ItemType;
1049 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage";
1050
1051
1052 var siblingsCount = siblings.Count;
1053
1054 int previousIdx = 0;
1055 int nextIdx = siblingsCount - 1;
1056 int idx = 0;
1057
1058 for (int i = 0; i < siblingsCount; i++)
1059 {
1060 if (siblings[i].ID == currentID && siblings[i].PropertyItem != null)
1061 {
1062 idx = i;
1063 }
1064 }
1065
1066 previousIdx = idx == previousIdx ? previousIdx : idx - 1;
1067 nextIdx = idx == nextIdx ? nextIdx : idx + 1;
1068
1069 var previousID = siblings[previousIdx].ID;
1070 var nextID = siblings[nextIdx].ID;
1071 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId;
1072
1073 if (siblingsCount > 1)
1074 {
1075
1076 <section class="page-navigation">
1077
1078 @if (!(previousID == currentID || previousID == 0))
1079 {
1080 var back = "/Default.aspx?ID=" + previousID;
1081 <a href="@back" class="page-navigation__item">
1082 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i>
1083 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label>
1084 </a>
1085 }
1086
1087 <a href="@overview" class="page-navigation__item">
1088 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label>
1089 <i class="fas fa-th page-navigation__item--icon"></i>
1090 </a>
1091
1092 @if (!(nextID == currentID || nextID == 0))
1093 {
1094 var forward = "/Default.aspx?ID=" + nextID;
1095 <a href="@forward" class="page-navigation__item">
1096 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label>
1097 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i>
1098 </a>
1099 }
1100
1101 </section>
1102
1103 }
1104
1105 }
1106 else
1107 {
1108 // No action
1109 }
1110
1111 }
1112
1113 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
1114 @using Dynamicweb;
1115
1116 @if (Pageview.Page.ParentPageId > 0)
1117 {
1118 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList();
1119 var parentpageItemType = Pageview.Page.Parent.ItemType;
1120 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage";
1121
1122 if (siblings.Count() > 1 && isParentPageOverviewpage)
1123 {
1124 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort);
1125 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort);
1126 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId;
1127
1128 <section class="page-navigation">
1129 @if (prevPage != null)
1130 {
1131 var back = "/Default.aspx?ID=" + prevPage.ID;
1132 <a href="@back" class="page-navigation__item">
1133 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i>
1134 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label>
1135 </a>
1136 }
1137
1138 <a href="@overview" class="page-navigation__item">
1139 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label>
1140 <i class="fas fa-th page-navigation__item--icon"></i>
1141 </a>
1142
1143 @if (nextPage != null)
1144 {
1145 var forward = "/Default.aspx?ID=" + nextPage.ID;
1146 <a href="@forward" class="page-navigation__item">
1147 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label>
1148 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i>
1149 </a>
1150 }
1151 </section>
1152 }
1153 }
1154
1155 *@
1156
1157
1158
1159 @Footer.Template
1160
1161 @if (isVisualEditor && IsNotContentManager)
1162 {
1163 <nav class="footer-layout">
1164 @AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "footer")
1165 </nav>
1166
1167 <style>
1168 .footer-layout {
1169 position: absolute;
1170 bottom: 25px;
1171 }
1172 </style>
1173 }
1174
1175 @if (!string.IsNullOrWhiteSpace(footer__top_image) && HideStandardFooter == false)
1176 {
1177 <figure class="footer__top-image">
1178 <img src="@footer__top_image" alt="" />
1179 </figure>
1180 }
1181
1182 @if (HideStandardFooter == false)
1183 {
1184
1185 <footer class="footer" style="--footer-bg-color: @footer__background_color; --footer-color: @footer__color;">
1186
1187 @if (footer__USP_display)
1188 {
1189 if (!string.IsNullOrWhiteSpace(BaseSettings.USP.USP_1) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_2) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_3) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_4) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_5))
1190 {
1191 <div class="footer-usp__wrapper">
1192 <div class="container">
1193 <ul class="footer-usp__list flex-wrap">
1194 @RenderFooterUSP(BaseSettings.USP.USP_1, BaseSettings.USP.USP_1_icon)
1195 @RenderFooterUSP(BaseSettings.USP.USP_2, BaseSettings.USP.USP_2_icon)
1196 @RenderFooterUSP(BaseSettings.USP.USP_3, BaseSettings.USP.USP_3_icon)
1197 @RenderFooterUSP(BaseSettings.USP.USP_4, BaseSettings.USP.USP_4_icon)
1198 @RenderFooterUSP(BaseSettings.USP.USP_5, BaseSettings.USP.USP_5_icon)
1199
1200 </ul>
1201 </div>
1202 </div>
1203 }
1204 }
1205
1206 @if (footer__newsletter_signup_display)
1207 {
1208 <div>
1209 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
1210 @using Dynamicweb;
1211
1212 @{
1213 var newsletterFormID = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("Footer.Newsletter");
1214
1215 if (newsletterFormID > 0)
1216 {
1217 <section class="footer__newsletter-container">
1218 <div class="container footer__newsletter">
1219 <label class="footer__newsletter-label">
1220 @Translate("Footer.SignUpNewsletter", "Sign up for the digital newsletter")
1221 </label>
1222 @RenderParagraphContent(newsletterFormID)
1223 </div>
1224 </section>
1225 }
1226 }
1227
1228 </div>
1229 }
1230
1231 @if (!string.IsNullOrWhiteSpace(mc.FooterConfiguration.BackgroundGradient))
1232 {
1233 <style>
1234 .footer {
1235 @mc.FooterConfiguration.BackgroundGradient;
1236 }
1237 </style>
1238 }
1239
1240 <section class="container footer__content">
1241
1242 <div class="footer__link">
1243 @{
1244 var footerColumnOneNavigationSettings = new NavigationSettings();
1245 footerColumnOneNavigationSettings.ExpandMode = ExpandMode.All;
1246 footerColumnOneNavigationSettings.StartLevel = 1;
1247 footerColumnOneNavigationSettings.StopLevel = 4;
1248 footerColumnOneNavigationSettings.RootNavigationTag = "footer-column-1";
1249 var footerColumnOneNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnOneNavigationSettings);
1250
1251 if (!string.IsNullOrEmpty(footerColumnOneNavigation))
1252 {
1253 <p class="footer__link-header">@Translate("Footer.Column1.Header", "What you need to know")</p>
1254 @footerColumnOneNavigation
1255 }
1256 }
1257 </div>
1258 <div class="footer__link">
1259 @{
1260 var footerColumnTwoNavigationSettings = new NavigationSettings();
1261 footerColumnTwoNavigationSettings.ExpandMode = ExpandMode.All;
1262 footerColumnTwoNavigationSettings.StartLevel = 1;
1263 footerColumnTwoNavigationSettings.StopLevel = 4;
1264 footerColumnTwoNavigationSettings.RootNavigationTag = "footer-column-2";
1265 var footerColumnTwoNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnTwoNavigationSettings);
1266
1267 if (!string.IsNullOrEmpty(footerColumnTwoNavigation))
1268 {
1269 <p class="footer__link-header">@Translate("Footer.Column2.Header", "Category two")</p>
1270 @footerColumnTwoNavigation
1271 }
1272 }
1273 </div>
1274 <div class="footer__link">
1275 @{
1276 var footerColumnThreeNavigationSettings = new NavigationSettings();
1277 footerColumnThreeNavigationSettings.ExpandMode = ExpandMode.All;
1278 footerColumnThreeNavigationSettings.StartLevel = 1;
1279 footerColumnThreeNavigationSettings.StopLevel = 4;
1280 footerColumnThreeNavigationSettings.RootNavigationTag = "footer-column-3";
1281 var footerColumnThreeNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnThreeNavigationSettings);
1282
1283 if (!string.IsNullOrEmpty(footerColumnThreeNavigation))
1284 {
1285 <p class="footer__link-header">@Translate("Footer.Column3.Header", "Category three")</p>
1286 @footerColumnThreeNavigation
1287 }
1288 }
1289 </div>
1290
1291 @if (!string.IsNullOrWhiteSpace(footerLogo) || !string.IsNullOrWhiteSpace(footerDescription))
1292 {
1293 <div class="footer__description-container">
1294 @if (!string.IsNullOrWhiteSpace(footerLogo))
1295 {
1296 <img class="footer__logo" loading="lazy" src="/Admin/Public/GetImage.ashx?Image=@footerLogo&Crop=5&Format=webp&Quality=99&Compression=80&Width=400" alt="Footer logo" width="400" height="200" />
1297 }
1298
1299 @if (!string.IsNullOrWhiteSpace(footerDescription))
1300 {
1301 <div class="footer__description">
1302 @footerDescription
1303 </div>
1304 }
1305 </div>
1306 }
1307
1308 </section>
1309
1310 <section class="footer__copyright">
1311
1312 <div class="container bottombar__container">
1313 @{
1314 var copyRightMenuNavigationSettings = new NavigationSettings();
1315 copyRightMenuNavigationSettings.ExpandMode = ExpandMode.All;
1316 copyRightMenuNavigationSettings.StartLevel = 1;
1317 copyRightMenuNavigationSettings.StopLevel = 4;
1318 copyRightMenuNavigationSettings.RootNavigationTag = "bottombar";
1319 var copyRightMenuNavigation = Navigation.RenderNavigation("Navigation/CleanNavigation.cshtml", copyRightMenuNavigationSettings);
1320
1321 if (!string.IsNullOrEmpty(copyRightMenuNavigation))
1322 {
1323 @copyRightMenuNavigation;
1324 }
1325 }
1326
1327 @if (!string.IsNullOrWhiteSpace(twitter) || !string.IsNullOrWhiteSpace(fb) || !string.IsNullOrWhiteSpace(linkedin) || !string.IsNullOrWhiteSpace(youtube) || !string.IsNullOrWhiteSpace(instagram) || !string.IsNullOrWhiteSpace(pinterest))
1328 {
1329 <section class="footer__social-container">
1330
1331 <span class="footer__icon-labels">@Translate("Footer.FollowUs", "Volg ons op:")</span>
1332
1333 <div class="footer__social-icon-container">
1334 @if (!string.IsNullOrWhiteSpace(twitter))
1335 {
1336 <a href="@twitter" target="_blank" title="twitter" class="footer__social" rel="noreferrer"><i class="fab fa-twitter"></i></a>
1337 }
1338 @if (!string.IsNullOrWhiteSpace(fb))
1339 {
1340 <a href="@fb" target="_blank" title="facebook" class="footer__social" rel="noreferrer"><i class="fab fa-facebook-square"></i></a>
1341 }
1342 @if (!string.IsNullOrWhiteSpace(linkedin))
1343 {
1344 <a href="@linkedin" target="_blank" title="LinkedIn" class="footer__social" rel="noreferrer"><i class="fab fa-linkedin"></i></a>
1345 }
1346 @if (!string.IsNullOrWhiteSpace(youtube))
1347 {
1348 <a href="@youtube" target="_blank" title="YouTube" class="footer__social" rel="noreferrer"><i class="fab fa-youtube"></i></a>
1349 }
1350 @if (!string.IsNullOrWhiteSpace(instagram))
1351 {
1352 <a href="@instagram" target="_blank" title="Instagram" class="footer__social" rel="noreferrer"><i class="fab fa-instagram"></i></a>
1353 }
1354 @if (!string.IsNullOrWhiteSpace(pinterest))
1355 {
1356 <a href="@pinterest" target="_blank" title="Pinterest" class="footer__social" rel="noreferrer"><i class="fab fa-pinterest"></i></a>
1357 }
1358 </div>
1359
1360 </section>
1361 }
1362 </div>
1363
1364 </section>
1365
1366 <section class="footer-paymentoptions" data-paymentmethods="@selectedPaymentLogos"></section>
1367 </footer>
1368
1369 }
1370
1371 @helper RenderFooterUSP(string USP_content, string USP_icon)
1372 {
1373 if (!string.IsNullOrWhiteSpace(USP_content))
1374 {
1375 var usp_icon_class = (!string.IsNullOrWhiteSpace(USP_icon)) ? USP_icon : "fal fa-check";
1376
1377 <li class="footer-usp__item">
1378 <i class="@usp_icon_class footer-usp__icon"></i>
1379 <span>@USP_content</span>
1380 </li>
1381 }
1382 }
1383
1384 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
1385 @using Dynamicweb;
1386 @using Dynamicweb.Content.Items;
1387 @using Bluedesk.DynamicWeb.ItemTypes;
1388
1389 @{
1390 var colorService = new ColorSwatchService();
1391 bool displayPrices = mc.EcomConfiguration.HidePricesForGuests ? Pageview.User != null : true;
1392 string ShowZeroPrices = (!mc.EcomConfiguration.HideZeroPrices).ToString().ToLower();
1393
1394 var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID);
1395
1396 var bottomBarItemsList = new List<object>();
1397 foreach (var _item in mc.FooterConfiguration.BottombarItemList)
1398 {
1399 string title = _item.Title;
1400 string link = _item.TargetLink;
1401
1402 if (_item.Type == "login" && Pageview.User != null)
1403 {
1404 title = @Translate("Bottombar.Logout", "Logout");
1405 link = $"/Admin/Public/ExtranetLogoff.aspx?ID={homepage.ID}";
1406 }
1407
1408 var newItem = new
1409 {
1410 title = title,
1411 icon = _item.Icon,
1412 link = link,
1413 subtitle = _item.Title,
1414 type = _item.Type,
1415 visible = true
1416 };
1417 bottomBarItemsList.Add(newItem);
1418 }
1419 var allBottomBarItems = bottomBarItemsList.ToArray();
1420 string bottomBarItemsJson = Newtonsoft.Json.JsonConvert.SerializeObject(allBottomBarItems).Replace("\"", "\'");
1421
1422 string BottombarBackgroundColor = mc.FooterConfiguration.BottombarBackgroundColor;
1423 if (!string.IsNullOrWhiteSpace(BottombarBackgroundColor))
1424 {
1425 BottombarBackgroundColor = !BottombarBackgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarBackgroundColor) : BottombarBackgroundColor;
1426 }
1427
1428 string BottombarTextColor = mc.FooterConfiguration.BottombarTextColor;
1429 if (!string.IsNullOrWhiteSpace(BottombarTextColor))
1430 {
1431 BottombarTextColor = !BottombarTextColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarTextColor) : BottombarTextColor;
1432 }
1433
1434 string BottombarIconColor = mc.FooterConfiguration.BottombarIconColor;
1435 if (!string.IsNullOrWhiteSpace(BottombarIconColor))
1436 {
1437 BottombarIconColor = !BottombarIconColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, BottombarIconColor) : BottombarIconColor;
1438 }
1439 }
1440
1441 <style>
1442 .bottombar {
1443 background-color: @BottombarBackgroundColor;
1444 }
1445 .bottombar__button span {
1446 color: @BottombarTextColor;
1447 }
1448 .bottombar__button [class^=fa],
1449 .bottombar__button [class^=svg-] {
1450 color: @BottombarIconColor;
1451 }
1452 </style>
1453
1454 <section id="vue-modal"
1455 data-show-prices="@displayPrices.ToString().ToLower()"
1456 data-show-zero-prices="@ShowZeroPrices">
1457 </section>
1458
1459 <section id="vue-bottom-bar"
1460 data-items="@bottomBarItemsJson"
1461 data-phonenumber="@formattedPhonenumber"
1462 data-isoffline="@isOffline"
1463 data-emailadress="@emailadress"
1464 data-currentpageid="@homepage.ID"
1465 data-enable-login="@enableLogin"
1466 data-enable-shoppingcart="@enableShoppingCart"
1467 data-enable-advancedsearch="@enableAdvancedSearch"></section>
1468
1469 @{
1470 int SearchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID);
1471 var SearchPlaceholder = Translate("Searchbox.PlaceholderValue", "Search...");
1472 var SearchPlaceholderHover = Translate("Search.PlaceholderValue2", "Zoekt u misschien een ...?");
1473 var SearchPrefill = Dynamicweb.Context.Current.Request["q"];
1474 var SearchboxClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "open" : "";
1475 var SearchtoggleClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "close" : "";
1476 }
1477
1478 <section class="bottombar__searchbox__wrapper">
1479 <form class="searchbox__form" method="get" action="/Default.aspx" style="display: flex; flex-grow: 1;">
1480 <input type="text" name="q" value="@SearchPrefill" class="searchbox__input" placeholder="@SearchPlaceholder" aria-label="Search through site content" data-placeholder="@SearchPlaceholder" data-hoverplaceholder="@SearchPlaceholderHover" style="display: flex; flex-grow: 1;" />
1481 <div class="searchbox__button">
1482 <button type="submit" class="searchbox__form__submit icon icon--medium icon__search input__icon" aria-label="Search">
1483 <i class="fal fa-search"></i>
1484 </button>
1485 </div>
1486 <input type="hidden" name="ID" value="@SearchPageID" />
1487 </form>
1488
1489 </section>
1490
1491
1492
1493 <div id="backdrop"></div>
1494
1495 @{
1496 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js");
1497 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
1498 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
1499 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
1500 }
1501
1502 <script src="@polyfillsjs"></script>
1503 <script src="@appbundlejs"></script>
1504 <script defer src="@vuebundlejs"></script>
1505 <script defer src="@appAsyncbundlejs"></script>
1506
1507 @if (font_configuration != null)
1508 {
1509 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
1510 {
1511 if (item["FontLink"] != null)
1512 {
1513 string FontName = item["FontName"].ToString().Replace(" ", "");
1514 string cssFile = $"files/Templates/Designs/Backyard/GoogleFont/{FontName}/{FontName}.css";
1515 <link href="@cssFile" rel="stylesheet">
1516 }
1517 }
1518 }
1519
1520 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous">
1521
1522 @if (isVisualEditor && IsNotContentManager)
1523 {
1524
1525 <style>
1526 body {
1527 background-color: #f1f1f1;
1528 font-family: 'Barlow', sans-serif;
1529 }
1530
1531 .slidePanel {
1532 position: fixed;
1533 top: 0;
1534 bottom: 0;
1535 min-width: 500px;
1536 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%);
1537 background-color: #FFFFFF;
1538 z-index: 1000;
1539 box-sizing: border-box;
1540 transition: all .5s ease-in;
1541 }
1542
1543 .slidePanel.open {
1544 right: 0;
1545 }
1546
1547 .slidePanel {
1548 right: -500px;
1549 transition: all 0.5s ease-in;
1550 }
1551
1552 .slidePanel__container {
1553 display: flex;
1554 position: relative;
1555 height: 100%;
1556 }
1557
1558 .togglePanelButton {
1559 position: fixed;
1560 top: 50px;
1561 left: 50px;
1562 display: flex;
1563 justify-content: center;
1564 align-items: center;
1565 color: white;
1566 background-color: black;
1567 padding: 0px 25px;
1568 height: 50px;
1569 cursor: pointer;
1570 z-index: 1000;
1571 }
1572
1573 .closeButton {
1574 position: absolute;
1575 display: flex;
1576 top: 25px;
1577 right: 25px;
1578 font-size: 2rem;
1579 text-decoration: none;
1580 color: black;
1581 }
1582
1583 .blur {
1584 filter: blur(4px);
1585 pointer-events: none;
1586 }
1587
1588 .sideMenu {
1589 display: flex;
1590 position: absolute;
1591 align-items: center;
1592 min-height: 100px;
1593 z-index: 1200;
1594 top: 0;
1595 bottom: 0;
1596 right: 100%;
1597 flex-direction: column;
1598 justify-content: center;
1599 }
1600
1601 .sideMenu__link:first-child {
1602 margin-top: 10px;
1603 }
1604
1605 .sideMenu__link {
1606 position: relative;
1607 flex-direction: column;
1608 display: flex;
1609 height: 50px;
1610 width: 50px;
1611 background-color: #f1f1f1;
1612 margin-bottom: 10px;
1613 margin-left: 10px;
1614 margin-right: 10px;
1615 justify-content: space-between;
1616 align-items: center;
1617 font-size: 10px;
1618 padding: 10px;
1619 box-sizing: border-box;
1620 text-decoration: none;
1621 color: rgb(22, 101, 123);
1622 font-size: 24px;
1623 }
1624 .sideMenu__link:hover {
1625 background-color: #c9c9c9;
1626 color: white;
1627 transition: all ease-in 0.5s;
1628 }
1629 .sideMenu__link label {
1630 font-size: 12px;
1631 }
1632
1633 .sideMenu__container {
1634 display: flex;
1635 position: relative;
1636 flex-direction: column;
1637 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%);
1638 background-color: white;
1639 }
1640
1641 .toolbar.close {
1642 display: none;
1643 }
1644
1645 #toolbarVE {
1646 position: fixed !important;
1647 z-index: 100;
1648 background-color: #CCC;
1649 border: 2px solid #F1F1F1;
1650 text-align: center;
1651 right: 0px;
1652 top: 300px;
1653 }
1654
1655 #toolbarVEHeader {
1656 padding: 10px;
1657 cursor: move;
1658 z-index: 10;
1659 background-color: #6e6e6e;
1660 color: #fff;
1661 }
1662 </style>
1663
1664 <div class="toolbarVE" id="toolbar" style="top: 150px; left: auto; width: 70px; position: fixed !important; right: 0px !important; ">
1665 <div id="toolbarVEHeader">
1666 <a href="javascript:void(0);" onclick="toggleClass('.toolbar', 'close');" style="color: #FFF;"><i class="icon fa-light fa-circle-xmark"></i></a>
1667 </div>
1668 <section class="sideMenu__container">
1669 <a href="javascript:history.back();" class="sideMenu__link"><i class="icon fa-light fa-reply"></i></a>
1670 <a href="/dashboard-configuration" class="sideMenu__link"><i class="icon fa-light fa-grid-horizontal"></i></a>
1671 <a href="/button-configuration" class="sideMenu__link"><i class="icon fa-light fa-diagram-cells"></i></a>
1672 <a href="/button-configuration" class="sideMenu__link"><i class="icon fa-light fa-link"></i></a>
1673 <a href="/background-configuration" class="sideMenu__link"><i class="icon fa-light fa-paintbrush"></i></a>
1674 <a href="/jumbotron-configuration" class="sideMenu__link"><i class="icon fa-light fa-megaphone"></i></a>
1675 <a href="/theme-configuration-page/theme-01" class="sideMenu__link"><i class="icon fa-light fa-brush"></i></a>
1676 <a href="/font-configuration" class="sideMenu__link"><i class="icon fa-light fa-font"></i></a>
1677 <a href="/device-manager" class="sideMenu__link"><i class="icon fa-light fa-computer"></i></a>
1678 </section>
1679 </div>
1680
1681 <script>
1682 function toggleClass(ClassName, AddedClassName) {
1683 var element = document.querySelector(ClassName);
1684 if (element.classList.contains(AddedClassName)) {
1685 element.classList.remove(AddedClassName);
1686 } else {
1687 element.classList.add(AddedClassName);
1688 }
1689 }
1690 </script>
1691
1692 <script>
1693 //Make the DIV element draggagle:
1694 dragElement(document.getElementById("toolbar"));
1695
1696 function dragElement(elmnt) {
1697 var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
1698 if (document.getElementById(elmnt.id + "Header")) {
1699 /* if present, the header is where you move the DIV from:*/
1700 document.getElementById(elmnt.id + "Header").onmousedown = dragMouseDown;
1701 } else {
1702 /* otherwise, move the DIV from anywhere inside the DIV:*/
1703 elmnt.onmousedown = dragMouseDown;
1704 }
1705
1706 function dragMouseDown(e) {
1707 e = e || window.event;
1708 e.preventDefault();
1709 // get the mouse cursor position at startup:
1710 pos3 = e.clientX;
1711 pos4 = e.clientY;
1712 document.onmouseup = closeDragElement;
1713 // call a function whenever the cursor moves:
1714 document.onmousemove = elementDrag;
1715 }
1716
1717 function elementDrag(e) {
1718 e = e || window.event;
1719 e.preventDefault();
1720 // calculate the new cursor position:
1721 pos1 = pos3 - e.clientX;
1722 pos2 = pos4 - e.clientY;
1723 pos3 = e.clientX;
1724 pos4 = e.clientY;
1725 // set the element's new position:
1726 elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
1727 elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
1728 }
1729
1730 function closeDragElement() {
1731 /* stop moving when mouse button is released:*/
1732 document.onmouseup = null;
1733 document.onmousemove = null;
1734 }
1735 }
1736 </script>
1737
1738 @*<section class="slidePanel" id="slidePanel">
1739
1740 <div class="slidePanel__container">
1741
1742 <a href="javasciprt:void(0);" onclick="toggleClass('.slidePanel', 'open'); toggleClass('main', 'blur')" class="closeButton">
1743 <i class="fal fa-circle-xmark"></i>
1744 </a>
1745
1746
1747 <nav class="sideMenu" id="sideMenu">
1748
1749 <section class="sideMenu__container">
1750 <a href="javascript:history.back();" class="sideMenu__link"><i class="fal fa-reply"></i></a>
1751 <a href="/dashboard-configuration" class="sideMenu__link"><i class="fal fa-grid-horizontal"></i></a>
1752 <a href="/button-configuration" class="sideMenu__link"><i class="fal fa-diagram-cells"></i></a>
1753 <a href="/button-configuration" class="sideMenu__link"><i class="fal fa-link"></i></a>
1754 <a href="/background-configuration" class="sideMenu__link"><i class="fal fa-paintbrush"></i></a>
1755 <a href="/jumbotron-configuration" class="sideMenu__link"><i class="fal fa-megaphone"></i></a>
1756 <a href="/theme-configuration-page/theme-01" class="sideMenu__link"><i class="fal fa-brush"></i></a>
1757 <a href="/font-configuration" class="sideMenu__link"><i class="fal fa-font"></i></a>
1758 <a href="/device-manager" class="sideMenu__link"><i class="fal fa-computer"></i></a>
1759 </section>
1760 </nav>
1761
1762 </div>
1763
1764 </section>*@
1765
1766 <script src="https://kit.fontawesome.com/a46eca85e2.js" crossorigin="anonymous"></script>
1767
1768 }
1769
1770
1771 </body>
1772 </html>
1773