Error compiling template "Designs/Wizaris/_parsed/ContentPage.parsed.cshtml"
Line 92: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 176: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 24999: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 25071: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 25742: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 25864: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 26250: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 26351: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 26392: The type or namespace name 'Df' could not be found (are you missing a using directive or an assembly reference?)
Line 9029: 'Button.Link' is obsolete
Line 9374: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9374: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9374: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9376: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9412: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9412: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9463: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9539: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9563: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9579: 'Button.Link' is obsolete
Line 9690: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9733: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9765: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9797: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9797: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9863: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 9879: 'Button.Link' is obsolete
Line 10161: 'Button.Link' is obsolete
Line 10596: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 11421: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 11529: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 11705: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 13133: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 13161: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 15267: The name 'Df' does not exist in the current context
Line 15343: The name 'Df' does not exist in the current context
Line 15420: The name 'Df' does not exist in the current context
Line 15913: 'Country.Name' is obsolete: 'Use GetName'
Line 16302: 'Country.Name' is obsolete: 'Use GetName'
Line 16810: The name 'Df' does not exist in the current context
Line 16908: The name 'Df' does not exist in the current context
Line 17383: The variable 'searchType' is assigned but its value is never used
Line 17384: The variable 'searchTemplate' is assigned but its value is never used
Line 17385: The variable 'searchContentTemplate' is assigned but its value is never used
Line 17524: The name 'Df' does not exist in the current context
Line 17768: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 17825: The name 'Df' does not exist in the current context
Line 17826: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 18027: 'User' does not contain a definition for 'GetInitials' and no accessible extension method 'GetInitials' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Line 18393: The name 'Df' does not exist in the current context
Line 19256: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 19256: 'Services.Paragraphs' is obsolete: 'Use Dynamicweb.Content.Services.Paragraphs instead.'
Line 19396: The name 'Df' does not exist in the current context
Line 19398: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 19492: The name 'Df' does not exist in the current context
Line 19557: The name 'Df' does not exist in the current context
Line 20042: The name 'Df' does not exist in the current context
Line 20406: The name 'Df' does not exist in the current context
Line 20409: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 20409: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 20417: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 20417: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 20483: 'Area.Frontpage' is obsolete: 'Do not use'
Line 20746: The name 'Df' does not exist in the current context
Line 20747: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 21097: 'User' does not contain a definition for 'GetInitials' and no accessible extension method 'GetInitials' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Line 21100: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 21101: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 21102: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 21103: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 21440: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 21551: The name 'Df' does not exist in the current context
Line 21552: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 21694: The name 'Df' does not exist in the current context
Line 21898: The name 'Df' does not exist in the current context
Line 22042: The name 'Df' does not exist in the current context
Line 22130: The name 'Df' does not exist in the current context
Line 22304: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 22483: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 22789: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 22789: 'Services.Paragraphs' is obsolete: 'Use Dynamicweb.Content.Services.Paragraphs instead.'
Line 23038: The name 'Df' does not exist in the current context
Line 23199: The name 'Df' does not exist in the current context
Line 23203: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 23486: The name 'Df' does not exist in the current context
Line 23487: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 23488: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 23937: The name 'Df' does not exist in the current context
Line 24467: The name 'Df' does not exist in the current context
Line 24719: The name 'Df' does not exist in the current context
Line 24849: The name 'Df' does not exist in the current context
Line 24959: The name 'Df' does not exist in the current context
Line 26808: The name 'Df' does not exist in the current context
Line 26809: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 27503: The name 'Df' does not exist in the current context
Line 27566: 'string' does not contain a definition for 'HasValue' and no accessible extension method 'HasValue' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Line 27779: The name 'Df' does not exist in the current context
Line 27859: The name 'Df' does not exist in the current context
Line 27921: The name 'Df' does not exist in the current context
Line 27956: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 27956: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 27957: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 27957: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 27962: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 27962: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 27967: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 27967: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 27996: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 27996: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28079: The name 'Df' does not exist in the current context
Line 28257: The name 'Df' does not exist in the current context
Line 28259: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 28917: The name 'Df' does not exist in the current context
Line 28919: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 29796: The name 'Df' does not exist in the current context
Line 29798: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 30585: The name 'Df' does not exist in the current context
Line 30587: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 30588: 'User' does not contain a definition for 'IsB2b' and no accessible extension method 'IsB2b' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Line 30589: 'User' does not contain a definition for 'IsB2c' and no accessible extension method 'IsB2c' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
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 9450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14 using System;
15
16 #line default
17 #line hidden
18
19 #line 9400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20 using System.Collections.Generic;
21
22 #line default
23 #line hidden
24
25 #line 3438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26 using System.Linq;
27
28 #line default
29 #line hidden
30
31 #line 9451 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32 using System.Web;
33
34 #line default
35 #line hidden
36
37 #line 3859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
38 using Dynamicweb.Frontend;
39
40 #line default
41 #line hidden
42
43 #line 5 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
44 using Dynamicweb.Frontend.Devices;
45
46 #line default
47 #line hidden
48
49 #line 6 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
50 using Dynamicweb.Extensibility;
51
52 #line default
53 #line hidden
54
55 #line 7 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
56 using Dynamicweb.Content;
57
58 #line default
59 #line hidden
60
61 #line 8 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
62 using Dynamicweb.Security;
63
64 #line default
65 #line hidden
66
67 #line 9397 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
68 using Dynamicweb.Core;
69
70 #line default
71 #line hidden
72
73 #line 1613 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
74 using System.IO;
75
76 #line default
77 #line hidden
78
79 #line 9454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
80 using Dynamicweb.Rapido.Blocks;
81
82 #line default
83 #line hidden
84
85 #line 14 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
86 using System.Net;
87
88 #line default
89 #line hidden
90
91 #line 9452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
92 using Df.Dw;
93
94 #line default
95 #line hidden
96
97 #line 6933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
98 using Dynamicweb.Security.UserManagement;
99
100 #line default
101 #line hidden
102
103 #line 4707 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
104 using System.Text.RegularExpressions;
105
106 #line default
107 #line hidden
108
109 #line 4610 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
110 using System.Reflection;
111
112 #line default
113 #line hidden
114
115 #line 3527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
116 using System.Web.UI.HtmlControls;
117
118 #line default
119 #line hidden
120
121 #line 50 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
122 using Dynamicweb.News;
123
124 #line default
125 #line hidden
126
127 #line 4708 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
128 using Dynamicweb.Rapido.Blocks.Components;
129
130 #line default
131 #line hidden
132
133 #line 4710 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
134 using Dynamicweb.Rapido.Blocks.Components.Articles;
135
136 #line default
137 #line hidden
138
139 #line 1460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
140 using Dynamicweb.Rapido.Blocks.Components.Documentation;
141
142 #line default
143 #line hidden
144
145 #line 4820 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
146 using Dynamicweb.Rapido.Blocks.Components.General;
147
148 #line default
149 #line hidden
150
151 #line 3860 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
152 using Dynamicweb.Content.Items;
153
154 #line default
155 #line hidden
156
157 #line 9453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
158 using Dynamicweb.Rapido.Blocks.Extensibility;
159
160 #line default
161 #line hidden
162
163 #line 5148 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
164 using Dynamicweb.Security.UserManagement.ExternalAuthentication;
165
166 #line default
167 #line hidden
168
169 #line 6420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
170 using Dynamicweb.Frontend.Navigation;
171
172 #line default
173 #line hidden
174
175 #line 8413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
176 using Df.Dw.Rapido;
177
178 #line default
179 #line hidden
180
181 #line 9084 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
182 using Dynamicweb.Ecommerce.Common;
183
184 #line default
185 #line hidden
186
187
188 public class RazorEngine_64a8cc8b72324581817b399c0c1aa293 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
189
190 #line hidden
191
192 #line 22 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
193
194 BlocksPage masterPage = BlocksPage.GetBlockPage("Master");
195
196 string getFontFamily(params string[] items)
197 {
198 var itemParent = Pageview.AreaSettings;
199 foreach (var item in items)
200 {
201 itemParent = itemParent.GetItem(item);
202 if (itemParent == null)
203 {
204 return null;
205 }
206 }
207
208 var googleFont = itemParent.GetGoogleFont("FontFamily");
209 if (googleFont == null)
210 {
211 return null;
212 }
213 return googleFont.Family.Replace(" ", "+");
214 }
215
216 #line default
217 #line hidden
218
219
220 #line 56 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
221
222 public class Translations
223 {
224 public class General
225 {
226 public static string
227 Logo = "General_Logo",
228 GenerateAWB = "General_GenerateAWB",
229 DeliveryAgent = "General_DeliveryAgent",
230 SelectCountry = "General_SelectCountry",
231 DateInterval = "General_DateInterval",
232 CloseModal = "General_CloseModal",
233 ClosePanel = "General_ClosePanel",
234 SearchPage = "General_SearchPage",
235 Search = "General_Search",
236 CloseSearch = "General_CloseSearch",
237 All = "General_All",
238 View = "General_View",
239 ViewAll = "General_ViewAll",
240 ReadMore = "General_ReadMore",
241 More = "General_More",
242 Load = "General_Load",
243 Add = "General_Add",
244 Remove = "General_Remove",
245 Save = "General_Save",
246 Close = "General_Close",
247 Go = "General_Go",
248 Back = "General_Back",
249 Hi = "General_Hi",
250 Edit = "General_Edit",
251 Delete = "General_Delete",
252 DownloadExcel = "General_DownloadExcel",
253 Cancel = "General_Cancel",
254 SetDefault = "General_SetDefault",
255 Submit = "General_Submit",
256 SocialLinks = "General_SocialLinks",
257 MailingList = "General_MailingList",
258 YourEmailAddress = "General_YourEmailAddress",
259 SignUpMessage = "General_SignUpMessage",
260 SignUpForm = "General_SignUpForm",
261 YourSearchGave0Results = "General_YourSearchGave0Results",
262 Contact = "General_Contact",
263 Pages = "General_Pages",
264 NotAvailable = "General_NotAvailable",
265 Default = "General_Default",
266 Yes = "General_Yes",
267 No = "General_No",
268 Page = "General_Page",
269 Of = "General_Of",
270 FirstPage = "General_FirstPage",
271 LastPage = "General_LastPage",
272 ReturnToTop = "General_ReturnToTop",
273 Details = "General_Details",
274 Information = "General_Information",
275 Downloads = "General_Downloads",
276 Download = "General_Download",
277 GeneratePdf = "General_GeneratePdf",
278 DownloadPdf = "General_DownloadPdf",
279 Select = "General_Select",
280 SelectType = "General_SelectType",
281 Type = "General_Type",
282 RequestType = "General_RequestType",
283 Language = "General_Language",
284 Images = "General_Images",
285 Documents = "General_Documents",
286 Export = "General_Export",
287 ImagePurpose = "General_ImagePurpose",
288 Office = "General_Office",
289 Original = "General_Original",
290 Print = "General_Print",
291 Web = "General_Web",
292 ExportFormat = "General_ExportFormat",
293 Videos = "General_Videos",
294 AskForInfo = "General_AskForInfo",
295 DataSheet = "General_DataSheet",
296 LinkToPage = "General_LinkToPage",
297 Again = "General_Again",
298 Notice = "General_Notice",
299 Form = "General_Form",
300 TechnicalContact = "General_TechnicalContact",
301 Error = "General_Error",
302 Warning = "General_Warning",
303 Status = "General_Status",
304 State = "General_State",
305 NoDocumentsFound = "General_NoDocumentsFound",
306 CreditMemo = "General_CreditMemo",
307 History = "General_History",
308 Comment = "General_Comment",
309 AddComment = "General_AddComment",
310 EnterComment = "General_EnterComment",
311 NothingSelected = "General_NothingSelected",
312 Never = "General_Never",
313 Days = "General_Days",
314 Weeks = "General_Weeks",
315 Months = "General_Months",
316 IAcceptTheTermsAndConditions = "General_IAcceptTheTermsAndConditions",
317 TheTermsAndConditionsOfThisWebsite = "General_TheTermsAndConditionsOfThisWebsite",
318 ReadGeneralConditions = "General_ReadGeneralConditions",
319 SubscribeToNewsletter = "General_SubscribeToNewsletter",
320 Use = "General_Use",
321 Choose = "General_Choose",
322 Free = "General_Free",
323 Next = "General_Next",
324 GoTo = "General_GoTo",
325 NotFound = "General_NotFound",
326 AlreadyUsed = "General_AlreadyUsed",
327 IsNotActive = "General_IsNotActive",
328 Apply = "General_Apply",
329 NoItemsFound = "General_NoItemsFound",
330 GoToFrontPage = "General_GoToFrontPage",
331 LoginModalHeading = "General_LoginModalHeading",
332 LoginModalSubHeading = "General_LoginModalSubHeading",
333 ViewInBrowser = "General_ViewInBrowser",
334 CantSeeMessage = "General_CantSeeMessage",
335 Welcome = "General_Welcome",
336 Continue = "General_Continue",
337 UserIsActivated = "General_UserIsActivated",
338 Create = "General_Create",
339 ViewOffer = "General_ViewOffer",
340 CookiesHeader = "General_CookiesHeader",
341 CookiesText1 = "General_CookiesText1",
342 CookiesText2 = "General_CookiesText2",
343 CookiesDoNotAcceptCookies = "General_CookiesDoNotAcceptCookies",
344 CookiesOnlyAcceptFunctionalCookies = "General_OnlyAcceptFunctionalCookies",
345 CookiesAcceptAllCookies = "General_AcceptAllCookies",
346 RMADetailsEmail = "General_RMADetailsEmail",
347 RMAClientName = "General_RMAClientName",
348 RMADataCererii = "General_RMADataCererii",
349 RMATipCerere = "General_RMATipCerere",
350 RMAOrderInitial = "General_RMAOrderInitial",
351 RMAEmailText = "General_RMAEmailText",
352 Written = "General_Written",
353 By = "General_By",
354 On = "General_On",
355 Category = "General_Category",
356 Hello = "General_Hello";
357 }
358 public class Account
359 {
360 public static string
361 LogIn = "Account_LogIn",
362 Promotions = "Account_Promotions",
363 Resupply = "Account_Resupply",
364 WorkInProgressOrders = "Account_WorkInProgressOrders",
365 ExchangePartsRequests = "Account_ExchangePartsRequests",
366 DeliverYourselfOrders = "Account_DeliverYourselfOrders",
367 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders",
368 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou",
369 SignIn = "Account_SignIn",
370 SignOut = "Account_SignOut",
371 CreateAccount = "Account_CreateAccount",
372 ForgotYourPassword = "Account_ForgotYourPassword",
373 ResetYourPassword = "Account_ResetYourPassword",
374 RememberMe = "Account_RememberMe",
375 Password = "Account_Password",
376 Name = "Account_Name",
377 FirstName = "Account_FirstName",
378 LastName = "Account_LastName",
379 Description = "Address_Description",
380 Email = "Account_Email",
381 Username = "Account_Username",
382 Phone = "Account_Phone",
383 ZipCode = "Account_ZipCode",
384 City = "Account_City",
385 Country = "Account_Country",
386 CompanyName = "Account_CompanyName",
387 CompanyAddress = "Account_CompanyAddress",
388 CompanyCity = "Account_CompanyCity ",
389 CompanyZip = "Account_CompanyZip",
390 CompanyCountry = "Account_CompanyCountry",
391 CompanyID = "Account_CompanyID",
392 CompanyTIN = "Account_CompanyTIN",
393 CompanyVAT = "Account_CompanyVAT",
394 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment",
395 Company = "Account_Company",
396 StateRegion = "Account_StateRegion",
397 NewPassword = "Account_NewPassword",
398 OldPassword = "Account_OldPassword",
399 ConfirmPassword = "Account_ConfirmPassword",
400 BusinessNumber = "Account_BusinessNumber",
401 AlreadyACustomer = "Account_AlreadyACustomer",
402 MyProfile = "Account_MyProfile",
403 EditProfile = "Account_EditProfile",
404 MyOrders = "Account_MyOrders",
405 MyFavorites = "Account_MyFavorites",
406 MySavedCards = "Account_MySavedCards",
407 StopImpersonation = "Account_StopImpersonation",
408 Impersonate = "Account_Impersonate",
409 IsImpersonating = "Account_IsImpersonating",
410 StopImpresonationPageText ="Account_StopImpresonationPageText",
411 SelectUserToImpersonate = "Account_SelectUserToImpersonate",
412 SearchUser = "Account_SearchUser",
413 ViewListOfUsers = "Account_ViewListOfUsers",
414 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid",
415 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword",
416 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts",
417 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked",
418 ThePasswordHasExpired = "Account_ThePasswordHasExpired",
419 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured",
420 CreateAccountIncentive = "Account_CreateAccountIncentive",
421 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock",
422 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock",
423 InsertYourEmailMsg = "Account_InsertYourEmailMsg",
424 UserNotFound = "Account_UserNotFound",
425 UsersFound = "Account_UsersFound",
426 SendPasswordRecovery = "Account_SendPasswordRecovery",
427 PasswordRecovery = "Account_PasswordRecovery",
428 SomethingWentWrong = "Account_SomethingWentWrong",
429 TryRecoverPassword = "Account_TryRecoverPassword",
430 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate",
431 ChooseANewPassword = "Account_ChooseANewPassword",
432 PasswordChanged = "Account_PasswordChanged",
433 SentEmailWithALinks = "Account_SentEmailWithALinks",
434 SentEmailWithThePassword = "Account_SentEmailWithThePassword",
435 AStrongPassword = "Account_AStrongPassword",
436 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest",
437 ClickToSetANewPassword = "Account_ClickToSetANewPassword",
438 IgnoreThisEmail = "Account_IgnoreThisEmail",
439 CompleteOrdersCount = "Account_CompleteOrdersCount",
440 CompanyCreditLimit = "Account_CompanyCreditLimit",
441 InvoiceValue = "Account_InvoiceValue",
442 CompanySold = "Account_CompanySold",
443 CompanyOverdue = "Account_CompanyOverdue",
444 OpenOrders = "Account_OpenOrders",
445 PlacedOrders = "Account_PlacedOrders",
446 ProductsOnSale = "Account_ProductsOnSale",
447 LoyaltyPoints = "Account_LoyaltyPoints",
448 RequestAccountStatements = "Account_RequestAccountStatements",
449 RequestComplaintForm = "Account_RequestComplaintForm",
450 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo",
451 YourConsents = "Account_YourConsents",
452 YourPointBalance = "Account_YourPointBalance",
453 Address = "Account_Address",
454 Address2 = "Account_Address2",
455 Addresses = "Account_Addresses",
456 MyAddresses = "Account_MyAddresses",
457 ManageAddresses = "Account_ManageAddresses",
458 NoAddressFound = "Account_NoAddressFound",
459 DefaultLocation = "Account_DefaultLocation",
460 DefaultPayment = "Account_DefaultPayment",
461 PaymentTerm = "Account_PaymentTerm",
462 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted",
463 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress",
464 AddNewAddress = "Account_AddNewAddress",
465 DeliveryAddresses = "Account_DeliveryAddresses",
466 BillingAddresses = "Account_BillingAddresses",
467 NoAddressesFound = "Account_NoAddressesFound",
468 EditAddress = "Account_EditAddress",
469 AddAddress = "Account_AddAddress",
470 SaveAddress = "Account_SaveAnAddress",
471 StreetNumber = "Account_StreetNumber",
472 DeleteThisAddress = "Account_DeleteThisAddress",
473 NoRMAsListFound = "Account_NoRMAsListFound",
474 RMASelectTypeFirst = "Account_SelectRMATypeFirst",
475 CancelTheRequest = "Account_CancelTheRequest",
476 EmittedWarranties = "Account_EmittedWarranties",
477 ViewRma = "Account_ViewRma",
478 CancelRma = "Account_CancelRma",
479 CreateNewRequest = "Account_CreateNewRequest",
480 CreateRequest = "Account_CreateRequest",
481 CancelRequest = "Account_CancelRequest",
482 ViewRequest = "Account_ViewRequest",
483 RmaId = "Account_RmaId",
484 AdditionalInfo = "Account_AdditionalInfo",
485 CustomerComment = "Account_CustomerComment",
486 CustomerDetails = "Account_CustomerDetails",
487 NoFavoritesListsFound = "Account_NoFavoritesListsFound",
488 CreateNewList = "Account_CreateNewList",
489 AddNewList = "Account_AddNewList",
490 EditList = "Account_EditList",
491 SetAsDefault = "Account_SetAsDefault",
492 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList",
493 PublishedTo = "Account_PublishedTo",
494 ReturnToList = "Account_ReturnToList",
495 ShouldTheListBePublic = "Account_ShouldTheListBePublic",
496 IsThisTheDefaultList = "Account_IsThisTheDefaultList",
497 CreateList = "Account_CreateList",
498 BackToProfile = "Account_BackToProfile",
499 YouAreAlmostThere = "Account_YouAreAlmostThere",
500 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile",
501 ProfileComplete = "Account_ProfileComplete",
502 ProfileCompletePageText = "Account_ProfileCompletePageText",
503 CreateUserAccount = "Account_CreateUserAccount",
504 CreateYourNewAccount = "Account_CreateYourNewAccount",
505 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword",
506 ResetPassword = "Account_ResetPassword",
507 PrivatePerson = "Account_PrivatePerson",
508 EmptyFields = "Account_CompleteAllFields",
509 PasswordsNoMatch = "Account_PasswordsDoNotMatch",
510 FillOldPasswordFirst = "Account_FillOldPasswordFirst",
511 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty",
512 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty",
513 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty",
514 NameCannotBeEmpty = "Account_NameCannotBeEmpty",
515 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty",
516 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty",
517 ConfirmAccount = "Account_ConfirmAccount",
518 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader",
519 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi",
520 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne",
521 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo",
522 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd",
523 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne",
524 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton",
525 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter",
526 ConfirmEmail = "Account_ConfirmEmail",
527 AddNewWarranty = "Account_AddNewWarranty",
528 CreateNewWarranty = "Account_CreateWarranty",
529 CreateNewService = "Account_CreateService",
530 CreateNewPartsExchange = "Account_CreatePartsExchange",
531 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty",
532 LoginToViewFavorites = "Account_LoginToViewFavorites";
533 }
534 public class Products
535 {
536 public static string
537 SelectRating = "Products_SelectRating",
538 RatingHeadline = "Products_RatingHeadline",
539 LoginToReview = "Products_LoginToReview",
540 NoReviewsFound = "Products_NoReviewsFound",
541 ProductsGeneral = "Products_ProductsGeneral",
542 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock",
543 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent",
544 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered",
545 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent",
546 ExchangePartsFor = "Products_ExchangePartsFor",
547 Product = "Products_Product",
548 AnyProduct = "Product_AnyProduct",
549 ProductNo = "Products_ProductNo",
550 ProductCode = "Products_ProductCode",
551 Prod = "Products_Prod",
552 Price = "Products_Price",
553 Vat = "Products_Vat",
554 SearchProductsOrPages = "Products_SearchProductsOrPages",
555 SearchProducts = "Products_SearchProducts",
556 SearchResultFor = "Products_SearchResultFor",
557 Newest = "Products_Newest",
558 PriceHighLow = "Products_PriceHighLow",
559 PriceLowHigh = "Products_PriceLowHigh",
560 Stock = "Products_Stock",
561 TotalStock = "Products_TotalStock",
562 InStock = "Products_InStock",
563 OutOfStock = "Products_OutOfStock",
564 Delivery = "Products_Delivery",
565 SearchFavoriteProducts = "Products_SearchFavoriteProducts",
566 Filters = "Products_Filters",
567 SelectFilters = "Products_SelectFilters",
568 CloseFilters = "Products_CloseFilters",
569 RemoveFilters = "Products_RemoveFilters",
570 ResetAllFilters = "Products_ResetAllFilters",
571 ProductCategories = "Products_ProductCategories",
572 Categories = "Products_Categories",
573 ExclVAT = "Products_ExclVAT",
574 InclVAT = "Products_InclVAT",
575 BuyWithPoints = "Products_BuyWithPoints",
576 MoreOptionsAvailable = "Products_MoreOptionsAvailable",
577 ProductNumber = "Products_ProductNumber",
578 Brand = "Products_Brand",
579 Buc = "Products_Buc",
580 PleaseSelectVariant = "Products_PleaseSelectVariant",
581 Sort = "Products_Sort",
582 SortBy = "Products_SortBy",
583 Summary = "Products_Summary",
584 Description = "Products_Description",
585 Specifications = "Products_Specifications",
586 Reviews = "Products_Reviews",
587 GeneralReviews = "Products_GeneralReviews",
588 AddAReview = "Products_AddAReview",
589 ProductAssets = "Products_ProductAssets",
590 Variants = "Products_Variants",
591 VariantsList = "Products_VariantsList",
592 IncludingProducts = "Products_IncludingProducts",
593 MinimumQuantity = "Products_MinimumQuantity",
594 StepQuantity = "Products_StepQuantity",
595 PriceWithVat = "Products_PriceWithVat",
596 Quantity = "Products_Quantity",
597 TotalPrice = "Products_TotalPrice",
598 TotalWithVat = "Products_TotalWithVat",
599 RecentSearches = "Products_RecentSearches",
600 ItemNumber = "Products_ItemNumber",
601 UnitPrice = "Products_UnitPrice",
602 ViewFavorites = "Products_ViewFavorites",
603 ChooseList = "Products_ChooseList",
604 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList",
605 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList",
606 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList",
607 NotEligibleForWarranty = "Product_NotEligibleForWarranty",
608 AddToFavoritesLabel = "Products_AddToFavoritesLabel",
609 AddToFavorites = "Products_AddToFavorites",
610 RemoveFromFavorites = "Products_RemoveFromFavorites",
611 OrCreateOne = "Products_OrCreateOne",
612 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt",
613 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove",
614 EnterAListName = "Products_EnterAListName",
615 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists",
616 SeeFavoriteList = "Products_SeeFavoriteList",
617 Compare = "Products_Compare",
618 AddToCompare = "Products_AddToCompare",
619 RemoveFromCompare = "Products_RemoveFromCompare",
620 ViewMore = "Products_ViewMore",
621 RecommendedPrice = "Products_RecommendedPrice",
622 YouSave = "Products_YouSave",
623 SalesUOM = "Products_SalesUOM",
624 AvailablilityDateMessage = "Product_AvailableIn";
625 }
626 public class Cart
627 {
628 public static string
629 CartGeneral = "Cart_CartGeneral",
630 UpdateQuantitiesInCart ="Cart_UpdateQuantitiesInCart",
631 SignInCart = "Cart_SignInCart",
632 InvalidQuantitiesInCart = "Cart_InvalidQuantitiesInCart",
633 PlacedOrderDate = "Cart_PlacedOrderDate",
634 MaxFinalizeDate = "Cart_MaxFinalizeDate",
635 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders",
636 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders",
637 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound",
638 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound",
639 DeliverOrder = "Cart_DeliverOrder",
640 OrderDetails = "Cart_OrderDetails",
641 ApproveOrder = "Cart_ApproveOrder",
642 ApprovedOrder = "Cart_ApprovedOrder",
643 RejectOrder = "Cart_RejectOrder",
644 RejectedOrder = "Cart_RejectedOrder",
645 DeliveredOrder = "Cart_DeliveredOrder",
646 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders",
647 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts",
648 ShoppingCart = "Cart_ShoppingCart",
649 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart",
650 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart",
651 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart",
652 ContinueShopping = "Cart_ContinueShopping",
653 ProceedToCheckout = "Cart_ProceedToCheckout",
654 Earnings = "Cart_Earnings",
655 Points = "Cart_Points",
656 NoPointsFound = "Cart_NoPointsFound",
657 YourPointBalance = "Cart_YourPointBalance",
658 UsedPoints = "Cart_UsedPoints",
659 AddPoints = "Cart_AddPoints",
660 Variant = "Cart_Variant",
661 Unit = "Cart_Unit",
662 Qty = "Cart_Qty",
663 Subtotal = "Cart_Subtotal",
664 Total = "Cart_Total",
665 CannotOrder = "Cart_CannotOrder",
666 RemoveOrderline = "Cart_RemoveOrderline",
667 UpdateOrderline = "Cart_UpdateOrderline",
668 OrderlineUpdating = "Cart_OrderlineUpdating",
669 OrderlineUpdated = "Cart_OrderlineUpdated",
670 OrderlineRemoving = "Cart_OrderlineRemoving",
671 OrderlineRemoved = "Cart_OrderlineRemoved",
672 EmptyCartStart = "Cart_EmptyCartStart",
673 EmptyCartFinished = "Cart_EmptyCartFinished",
674 EmptyCarCheck = "Cart_EmptyCartCheck",
675 SelectShippingOption = "Cart_SelectShippingOption",
676 SelectBillingOption = "Cart_SelectBillingOption",
677 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis",
678 MaximumPointsText = "Cart_MaximumPointsText",
679 EmptyCart = "Cart_EmptyCart",
680 Shipping = "Cart_Shipping",
681 AddToCart = "Cart_AddToCart",
682 BuyAll = "Cart_BuyAll",
683 BuyFor = "Cart_BuyFor",
684 Order = "Cart_Order",
685 OrderID = "Cart_OrderID",
686 Date = "Cart_Date",
687 OrderNumber = "Cart_OrderNumber",
688 OrderNumberNav = "Cart_OrderNumberNav",
689 OrderDate = "Cart_OrderDate",
690 OrderValue = "Cart_OrderValue",
691 ViewOrder = "Cart_ViewOrder",
692 PONumber = "Cart_PONumber",
693 Reorder = "Cart_Reorder",
694 NoOrdersFound = "Cart_NoOrdersFound",
695 Invoice = "Cart_Invoice",
696 ChooseInvoice = "Cart_ChooseInvoice",
697 SearchInvoices = "Cart_SearchInvoices",
698 NoInvoicesFound = "Cart_NoInvoicesFound",
699 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice",
700 InvoiceNumber = "Cart_InvoiceNumber",
701 InvoiceDate = "Cart_InvoiceDate",
702 TrackingNumber = "Cart_TrackingNumber",
703 DeliveryNote = "Cart_DeliveryNote",
704 ViewDeliveryNote = "Cart_ViewDeliveryNote",
705 SelectOrder = "Cart_SelectOrder",
706 Payment = "Cart_Payment",
707 PaymentMethod = "Cart_PaymentMethod",
708 ShippingMethod = "Cart_ShippingMethod",
709 SelectShipping = "Cart_SelectShipping",
710 SelectPayment = "Cart_SelectPayment",
711 BillingAddress = "Cart_BillingAddress",
712 SameBillingAsShipping = "Cart_BillingAsShipping",
713 ShippmentNumber = "Cart_ShippmentNumber",
714 ShippingAddress = "Cart_ShippingAddress",
715 AddAlternativeAdr = "Cart_AddAlternativeAdr",
716 SelectSavedAddress = "Cart_SelectSavedAddress",
717 PaymentAndShipping = "Cart_PaymentAndShipping",
718 RecurringEvery = "Cart_RecurringEvery",
719 RecurringStartDate = "Cart_RecurringStartDate",
720 RecurringEndDate = "Cart_RecurringEndDate",
721 StartDate = "Cart_StartDate",
722 OrderUsedGiftCards = "Cart_OrderUsedGiftCards",
723 GiftCardName = "Cart_GiftCardName",
724 GiftCardCode = "Cart_GiftCardCode",
725 ExpiryDate = "Cart_ExpiryDate",
726 InitialAmount = "Cart_InitialAmount",
727 UsedAmount = "Cart_UsedAmount",
728 RemainingBalance = "Cart_RemainingBalance",
729 Vouchers = "Cart_Vouchers",
730 Voucher = "Cart_Voucher",
731 HasBeenUsed = "Cart_HasBeenUsed ",
732 GiftCardAmount = "Cart_GiftCardAmount",
733 ShopInformation = "Cart_ShopInformation",
734 ShopName = "Cart_ShopName",
735 CardNo = "Cart_CardNo",
736 TransactionNo = "Cart_TransactionNo",
737 TransactionState = "Cart_TransactionState",
738 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder",
739 RecurringOrder = "Cart_RecurringOrder",
740 RecurringOrderSettings = "Cart_RecurringOrderSettings",
741 SaveUsedCard = "Cart_SaveUsedCard",
742 SavedCardName = "Cart_SavedCardName",
743 PayWithASavedCard = "Cart_PayWithASavedCard",
744 CreateRecurringOrder = "Cart_CreateRecurringOrder",
745 IWantMyOrderEvery = "Cart_IWantMyOrderEvery",
746 AndItShouldEndOn = "Cart_AndItShouldEndOn",
747 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart",
748 GoToCheckout = "Cart_GoToCheckout",
749 CreateQuoteRequest = "Cart_CreateQuoteRequest",
750 SubmitQuoteRequest = "Cart_SubmitQuoteRequest",
751 ReviewOrder = "Cart_ReviewOrder",
752 ReviewOrderLine = "Cart_ReviewOrderLine",
753 GetParcelShops = "Cart_GetParcelShops",
754 ChangeParcelShop = "Cart_ChangeParcelShop",
755 ChooseAParcelShop = "Cart_ChooseAParcelShop",
756 ConfirmOrder = "Cart_ConfirmOrder",
757 AppliedToOrder = "Cart_AppliedToOrder",
758 EnterVoucherCode = "Cart_EnterVoucherCode",
759 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr",
760 RequiresAnAddress = "Cart_RequiresAnAddress",
761 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription",
762 NoAddressSelected = "Cart_NoAddressSelected",
763 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare",
764 AddressForm = "Cart_AddressForm",
765 AddressWasSent = "Account_AddressWasSent",
766 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage",
767 ShippingAddressFieldError = "Account_ShippingAddressFieldError",
768 BillingAddressFieldError = "Account_BillingAddressFieldError",
769 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain",
770 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation",
771 OrderEmailText = "Crt_OrderEmailText",
772 CantBePickedUp = "Cart_CantBePickedUp",
773 CreateUserInCheckout = "Cart_CreateUserInCheckout",
774 ProductNoPickup = "Cart_ProductNoPickup",
775 SelectShippingAddress = "Cart_SelectShippingAddress",
776 DiscountStepMessage = "Cart_DiscountStepMessage",
777 ServiceRequestNumber = "Cart_ServiceRequestNumber",
778 InsertAccountEmail = "Cart_InsertAccountEmail",
779 InsertAccountPassword = "Cart_InsertAccountPassword",
780 NoParcelShopsSelected = "Cart_NoParcelShopsSelected",
781 ShippingDiscountMessage = "Cart_ShippingDiscountMessage",
782 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea",
783 SelectBillingAddress = "Cart_SelectBillingAddress",
784 RMAId = "Cart_RMAId",
785 RMAEmailNotification = "Cart_RMAEmailNotification";
786
787 }
788 }
789
790 #line default
791 #line hidden
792
793
794 #line 638 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
795 public RazorEngine.Templating.TemplateWriter RenderFavoriteModalRefactored()
796 {
797 #line default
798 #line hidden
799 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
800
801 #line 639 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
802
803 string favoriteListUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("CustomerFavorites");
804 string favoriteListFeed = "/Default.aspx?ID=" + GetPageIdByNavigationTag("FavoriteListFeed");
805
806
807 #line default
808 #line hidden
809 WriteLiteralTo(__razor_helper_writer, " <div");
810
811 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\"");
812
813 WriteLiteralTo(__razor_helper_writer, ">\t\t\t\t\t\t\t\t\r\n <div");
814
815 WriteLiteralTo(__razor_helper_writer, " id=\"favoriteProductListModal{{productId}}\"");
816
817 WriteLiteralTo(__razor_helper_writer, " data-favorite-modal=\"favoriteProductListModal{{productId}}\"");
818
819 WriteLiteralTo(__razor_helper_writer, " data-heading=\"");
820
821
822 #line 643 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
823 WriteTo(__razor_helper_writer, Translate(Translations.Products.AddToFavorites));
824
825
826 #line default
827 #line hidden
828 WriteLiteralTo(__razor_helper_writer, "\"");
829
830 WriteLiteralTo(__razor_helper_writer, "> \r\n {{#Favorite}}\r\n {{>FavoriteTemplate}}\r\n" +
831 " {{/Favorite}}\r\n \r\n \r\n \r\n <div");
832
833 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap\"");
834
835 WriteLiteralTo(__razor_helper_writer, ">\r\n <form");
836
837 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 34246), Tuple.Create("\"", 34272)
838
839 #line 651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
840 , Tuple.Create(Tuple.Create("", 34255), Tuple.Create<System.Object, System.Int32>(favoriteListFeed
841
842 #line default
843 #line hidden
844 , 34255), false)
845 );
846
847 WriteLiteralTo(__razor_helper_writer, ">\r\n <df-input");
848
849 WriteLiteralTo(__razor_helper_writer, " name=\"Name\"");
850
851 WriteLiteralTo(__razor_helper_writer, " id=\"Name_CreateFavoriteList\"");
852
853 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
854
855 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 34345), Tuple.Create("\"", 34391)
856
857 #line 652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
858 , Tuple.Create(Tuple.Create("", 34359), Tuple.Create<System.Object, System.Int32>(Translate("Account_AddNewList")
859
860 #line default
861 #line hidden
862 , 34359), false)
863 );
864
865 WriteLiteralTo(__razor_helper_writer, " class=\"h5\"");
866
867 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <input");
868
869 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
870
871 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\"");
872
873 WriteLiteralTo(__razor_helper_writer, " value=\"false\"");
874
875 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
876
877 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
878
879 WriteLiteralTo(__razor_helper_writer, " name=\"FavoriteCmd\"");
880
881 WriteLiteralTo(__razor_helper_writer, " value=\"createfavoritelist\"");
882
883 WriteLiteralTo(__razor_helper_writer, "/>\r\n </form>\r\n <button");
884
885 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
886
887 WriteLiteralTo(__razor_helper_writer, " class=\"btn-fill--accent\"");
888
889 WriteLiteralTo(__razor_helper_writer, " data-product-id=\"{{productId}}\"");
890
891 WriteLiteralTo(__razor_helper_writer, " data-role=\"create-favorite-list-and-add-product\"");
892
893 WriteLiteralTo(__razor_helper_writer, " data-message-success=\"{{name}} ");
894
895
896 #line 656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
897 WriteTo(__razor_helper_writer, Translate(Translations.Products.WasAddedToFavoriteList));
898
899
900 #line default
901 #line hidden
902 WriteLiteralTo(__razor_helper_writer, "\"");
903
904 WriteLiteralTo(__razor_helper_writer, ">");
905
906
907 #line 656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
908 WriteTo(__razor_helper_writer, Translate("Adauga"));
909
910
911 #line default
912 #line hidden
913 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </div>\r\n \r\n \r\n \r\n </div>\r" +
914 "\n </div>\r\n");
915
916
917 #line 663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
918
919
920 #line default
921 #line hidden
922 });
923
924 #line 663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
925 }
926 #line default
927 #line hidden
928
929
930 #line 665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
931 public RazorEngine.Templating.TemplateWriter RenderInlineSvg2(string theme = "default", string icon="none.svg")
932 {
933 #line default
934 #line hidden
935 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
936
937 #line 666 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
938
939 var DesignFolder = Pageview.Layout.Design.Name;
940 string themeCookie = HttpContext.Current.Request.Cookies["Theme"] != null ? HttpContext.Current.Request.Cookies["Theme"].Value : theme;
941 var themeNormalized = theme;
942 if (!string.IsNullOrEmpty(themeCookie))
943 {
944 themeNormalized = themeCookie;
945 }
946
947
948
949 #line default
950 #line hidden
951 WriteLiteralTo(__razor_helper_writer, " <div");
952
953 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
954
955 WriteLiteralTo(__razor_helper_writer, ">\r\n");
956
957 WriteLiteralTo(__razor_helper_writer, " ");
958
959
960 #line 676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
961 WriteTo(__razor_helper_writer, System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg")));
962
963
964 #line default
965 #line hidden
966 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
967
968
969 #line 678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
970
971
972 #line default
973 #line hidden
974 });
975
976 #line 678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
977 }
978 #line default
979 #line hidden
980
981
982 #line 1466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
983 public RazorEngine.Templating.TemplateWriter RenderBlockList(List<Block> blocks)
984 {
985 #line default
986 #line hidden
987 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
988
989 #line 1467 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
990
991 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false;
992 blocks = blocks.OrderBy(item => item.SortId).ToList();
993
994 foreach (Block item in blocks)
995 {
996 if (debug) {
997
998
999 #line default
1000 #line hidden
1001 WriteLiteralTo(__razor_helper_writer, " <!-- Block START: ");
1002
1003
1004 #line 1474 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1005 WriteTo(__razor_helper_writer, item.Id);
1006
1007
1008 #line default
1009 #line hidden
1010 WriteLiteralTo(__razor_helper_writer, " -->\r\n");
1011
1012
1013 #line 1475 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1014 }
1015
1016 if (item.Design == null)
1017 {
1018
1019
1020 #line default
1021 #line hidden
1022
1023 #line 1479 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1024 WriteTo(__razor_helper_writer, RenderBlock(item));
1025
1026
1027 #line default
1028 #line hidden
1029
1030 #line 1479 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1031
1032 }
1033 else if (item.Design.RenderType == RenderType.None) {
1034 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : "";
1035
1036
1037
1038 #line default
1039 #line hidden
1040 WriteLiteralTo(__razor_helper_writer, " <div");
1041
1042 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 93490), Tuple.Create("\"", 93514)
1043
1044 #line 1484 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1045 , Tuple.Create(Tuple.Create("", 93498), Tuple.Create<System.Object, System.Int32>(cssClass
1046
1047 #line default
1048 #line hidden
1049 , 93498), false)
1050 , Tuple.Create(Tuple.Create(" ", 93507), Tuple.Create("dw-mod", 93508), true)
1051 );
1052
1053 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1054
1055 WriteLiteralTo(__razor_helper_writer, " ");
1056
1057
1058 #line 1485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1059 WriteTo(__razor_helper_writer, RenderBlock(item));
1060
1061
1062 #line default
1063 #line hidden
1064 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1065
1066
1067 #line 1487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1068 }
1069 else if (item.Design.RenderType != RenderType.Hide)
1070 {
1071 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : "";
1072
1073 if (!item.SkipRenderBlocksList) {
1074 if (item.Design.RenderType == RenderType.Row)
1075 {
1076
1077
1078 #line default
1079 #line hidden
1080 WriteLiteralTo(__razor_helper_writer, " <div");
1081
1082 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 93900), Tuple.Create("\"", 93955)
1083 , Tuple.Create(Tuple.Create("", 93908), Tuple.Create("grid", 93908), true)
1084 , Tuple.Create(Tuple.Create(" ", 93912), Tuple.Create("grid--align-content-start", 93913), true)
1085
1086 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1087 , Tuple.Create(Tuple.Create(" ", 93938), Tuple.Create<System.Object, System.Int32>(cssClass
1088
1089 #line default
1090 #line hidden
1091 , 93939), false)
1092 , Tuple.Create(Tuple.Create(" ", 93948), Tuple.Create("dw-mod", 93949), true)
1093 );
1094
1095 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 93956), Tuple.Create("\"", 93976)
1096 , Tuple.Create(Tuple.Create("", 93961), Tuple.Create("Block__", 93961), true)
1097
1098 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1099 , Tuple.Create(Tuple.Create("", 93968), Tuple.Create<System.Object, System.Int32>(item.Id
1100
1101 #line default
1102 #line hidden
1103 , 93968), false)
1104 );
1105
1106 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1107
1108 WriteLiteralTo(__razor_helper_writer, " ");
1109
1110
1111 #line 1496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1112 WriteTo(__razor_helper_writer, RenderBlock(item));
1113
1114
1115 #line default
1116 #line hidden
1117 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1118
1119
1120 #line 1498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1121 }
1122
1123 if (item.Design.RenderType == RenderType.Column)
1124 {
1125 string hidePadding = item.Design.HidePadding ? "u-no-padding" : "";
1126 string size = item.Design.Size ?? "12";
1127 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size;
1128
1129
1130
1131 #line default
1132 #line hidden
1133 WriteLiteralTo(__razor_helper_writer, " <div");
1134
1135 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 94436), Tuple.Create("\"", 94558)
1136 , Tuple.Create(Tuple.Create("", 94444), Tuple.Create("col-", 94444), true)
1137
1138 #line 1506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1139 , Tuple.Create(Tuple.Create("", 94448), Tuple.Create<System.Object, System.Int32>(item.Design.Size
1140
1141 #line default
1142 #line hidden
1143 , 94448), false)
1144 , Tuple.Create(Tuple.Create(" ", 94465), Tuple.Create("grid__col-md-", 94466), true)
1145
1146 #line 1506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1147 , Tuple.Create(Tuple.Create("", 94479), Tuple.Create<System.Object, System.Int32>(item.Design.Size
1148
1149 #line default
1150 #line hidden
1151 , 94479), false)
1152 , Tuple.Create(Tuple.Create(" ", 94496), Tuple.Create("grid__col-sm-12", 94497), true)
1153 , Tuple.Create(Tuple.Create(" ", 94512), Tuple.Create("grid__col-xs-12", 94513), true)
1154
1155 #line 1506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1156 , Tuple.Create(Tuple.Create(" ", 94528), Tuple.Create<System.Object, System.Int32>(hidePadding
1157
1158 #line default
1159 #line hidden
1160 , 94529), false)
1161
1162 #line 1506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1163 , Tuple.Create(Tuple.Create(" ", 94541), Tuple.Create<System.Object, System.Int32>(cssClass
1164
1165 #line default
1166 #line hidden
1167 , 94542), false)
1168 , Tuple.Create(Tuple.Create(" ", 94551), Tuple.Create("dw-mod", 94552), true)
1169 );
1170
1171 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 94559), Tuple.Create("\"", 94579)
1172 , Tuple.Create(Tuple.Create("", 94564), Tuple.Create("Block__", 94564), true)
1173
1174 #line 1506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1175 , Tuple.Create(Tuple.Create("", 94571), Tuple.Create<System.Object, System.Int32>(item.Id
1176
1177 #line default
1178 #line hidden
1179 , 94571), false)
1180 );
1181
1182 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1183
1184 WriteLiteralTo(__razor_helper_writer, " ");
1185
1186
1187 #line 1507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1188 WriteTo(__razor_helper_writer, RenderBlock(item));
1189
1190
1191 #line default
1192 #line hidden
1193 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1194
1195
1196 #line 1509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1197 }
1198
1199 if (item.Design.RenderType == RenderType.Table)
1200 {
1201
1202
1203 #line default
1204 #line hidden
1205 WriteLiteralTo(__razor_helper_writer, " <table");
1206
1207 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 94786), Tuple.Create("\"", 94816)
1208 , Tuple.Create(Tuple.Create("", 94794), Tuple.Create("table", 94794), true)
1209
1210 #line 1513 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1211 , Tuple.Create(Tuple.Create(" ", 94799), Tuple.Create<System.Object, System.Int32>(cssClass
1212
1213 #line default
1214 #line hidden
1215 , 94800), false)
1216 , Tuple.Create(Tuple.Create(" ", 94809), Tuple.Create("dw-mod", 94810), true)
1217 );
1218
1219 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 94817), Tuple.Create("\"", 94837)
1220 , Tuple.Create(Tuple.Create("", 94822), Tuple.Create("Block__", 94822), true)
1221
1222 #line 1513 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1223 , Tuple.Create(Tuple.Create("", 94829), Tuple.Create<System.Object, System.Int32>(item.Id
1224
1225 #line default
1226 #line hidden
1227 , 94829), false)
1228 );
1229
1230 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1231
1232 WriteLiteralTo(__razor_helper_writer, " ");
1233
1234
1235 #line 1514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1236 WriteTo(__razor_helper_writer, RenderBlock(item));
1237
1238
1239 #line default
1240 #line hidden
1241 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n");
1242
1243
1244 #line 1516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1245 }
1246
1247 if (item.Design.RenderType == RenderType.TableRow)
1248 {
1249
1250
1251 #line default
1252 #line hidden
1253 WriteLiteralTo(__razor_helper_writer, " <tr");
1254
1255 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 95046), Tuple.Create("\"", 95070)
1256
1257 #line 1520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1258 , Tuple.Create(Tuple.Create("", 95054), Tuple.Create<System.Object, System.Int32>(cssClass
1259
1260 #line default
1261 #line hidden
1262 , 95054), false)
1263 , Tuple.Create(Tuple.Create(" ", 95063), Tuple.Create("dw-mod", 95064), true)
1264 );
1265
1266 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 95071), Tuple.Create("\"", 95091)
1267 , Tuple.Create(Tuple.Create("", 95076), Tuple.Create("Block__", 95076), true)
1268
1269 #line 1520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1270 , Tuple.Create(Tuple.Create("", 95083), Tuple.Create<System.Object, System.Int32>(item.Id
1271
1272 #line default
1273 #line hidden
1274 , 95083), false)
1275 );
1276
1277 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1278
1279 WriteLiteralTo(__razor_helper_writer, " ");
1280
1281
1282 #line 1521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1283 WriteTo(__razor_helper_writer, RenderBlock(item));
1284
1285
1286 #line default
1287 #line hidden
1288 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n");
1289
1290
1291 #line 1523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1292 }
1293
1294 if (item.Design.RenderType == RenderType.TableColumn)
1295 {
1296
1297
1298 #line default
1299 #line hidden
1300 WriteLiteralTo(__razor_helper_writer, " <td");
1301
1302 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 95300), Tuple.Create("\"", 95324)
1303
1304 #line 1527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1305 , Tuple.Create(Tuple.Create("", 95308), Tuple.Create<System.Object, System.Int32>(cssClass
1306
1307 #line default
1308 #line hidden
1309 , 95308), false)
1310 , Tuple.Create(Tuple.Create(" ", 95317), Tuple.Create("dw-mod", 95318), true)
1311 );
1312
1313 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 95325), Tuple.Create("\"", 95345)
1314 , Tuple.Create(Tuple.Create("", 95330), Tuple.Create("Block__", 95330), true)
1315
1316 #line 1527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1317 , Tuple.Create(Tuple.Create("", 95337), Tuple.Create<System.Object, System.Int32>(item.Id
1318
1319 #line default
1320 #line hidden
1321 , 95337), false)
1322 );
1323
1324 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1325
1326 WriteLiteralTo(__razor_helper_writer, " ");
1327
1328
1329 #line 1528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1330 WriteTo(__razor_helper_writer, RenderBlock(item));
1331
1332
1333 #line default
1334 #line hidden
1335 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n");
1336
1337
1338 #line 1530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1339 }
1340
1341 if (item.Design.RenderType == RenderType.CardHeader)
1342 {
1343
1344
1345 #line default
1346 #line hidden
1347 WriteLiteralTo(__razor_helper_writer, " <div");
1348
1349 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 95554), Tuple.Create("\"", 95590)
1350 , Tuple.Create(Tuple.Create("", 95562), Tuple.Create("card-header", 95562), true)
1351
1352 #line 1534 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1353 , Tuple.Create(Tuple.Create(" ", 95573), Tuple.Create<System.Object, System.Int32>(cssClass
1354
1355 #line default
1356 #line hidden
1357 , 95574), false)
1358 , Tuple.Create(Tuple.Create(" ", 95583), Tuple.Create("dw-mod", 95584), true)
1359 );
1360
1361 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1362
1363 WriteLiteralTo(__razor_helper_writer, " ");
1364
1365
1366 #line 1535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1367 WriteTo(__razor_helper_writer, RenderBlock(item));
1368
1369
1370 #line default
1371 #line hidden
1372 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1373
1374
1375 #line 1537 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1376 }
1377
1378 if (item.Design.RenderType == RenderType.CardBody)
1379 {
1380
1381
1382 #line default
1383 #line hidden
1384 WriteLiteralTo(__razor_helper_writer, " <div");
1385
1386 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 95798), Tuple.Create("\"", 95827)
1387 , Tuple.Create(Tuple.Create("", 95806), Tuple.Create("card", 95806), true)
1388
1389 #line 1541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1390 , Tuple.Create(Tuple.Create(" ", 95810), Tuple.Create<System.Object, System.Int32>(cssClass
1391
1392 #line default
1393 #line hidden
1394 , 95811), false)
1395 , Tuple.Create(Tuple.Create(" ", 95820), Tuple.Create("dw-mod", 95821), true)
1396 );
1397
1398 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1399
1400 WriteLiteralTo(__razor_helper_writer, " ");
1401
1402
1403 #line 1542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1404 WriteTo(__razor_helper_writer, RenderBlock(item));
1405
1406
1407 #line default
1408 #line hidden
1409 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1410
1411
1412 #line 1544 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1413 }
1414
1415 if (item.Design.RenderType == RenderType.CardFooter)
1416 {
1417
1418
1419 #line default
1420 #line hidden
1421 WriteLiteralTo(__razor_helper_writer, " <div");
1422
1423 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 96037), Tuple.Create("\"", 96073)
1424 , Tuple.Create(Tuple.Create("", 96045), Tuple.Create("card-footer", 96045), true)
1425
1426 #line 1548 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1427 , Tuple.Create(Tuple.Create(" ", 96056), Tuple.Create<System.Object, System.Int32>(cssClass
1428
1429 #line default
1430 #line hidden
1431 , 96057), false)
1432 , Tuple.Create(Tuple.Create(" ", 96066), Tuple.Create("dw-mod", 96067), true)
1433 );
1434
1435 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1436
1437 WriteLiteralTo(__razor_helper_writer, " ");
1438
1439
1440 #line 1549 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1441 WriteTo(__razor_helper_writer, RenderBlock(item));
1442
1443
1444 #line default
1445 #line hidden
1446 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
1447
1448
1449 #line 1551 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1450 }
1451 }
1452 else
1453 {
1454
1455
1456 #line default
1457 #line hidden
1458
1459 #line 1555 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1460 WriteTo(__razor_helper_writer, RenderBlock(item));
1461
1462
1463 #line default
1464 #line hidden
1465
1466 #line 1555 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1467
1468 }
1469 }
1470
1471 if (debug) {
1472
1473
1474 #line default
1475 #line hidden
1476 WriteLiteralTo(__razor_helper_writer, " <!-- Block END: ");
1477
1478
1479 #line 1560 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1480 WriteTo(__razor_helper_writer, item.Id);
1481
1482
1483 #line default
1484 #line hidden
1485 WriteLiteralTo(__razor_helper_writer, " -->\r\n");
1486
1487
1488 #line 1561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1489 }
1490 }
1491
1492
1493 #line default
1494 #line hidden
1495 });
1496
1497 #line 1563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1498 }
1499 #line default
1500 #line hidden
1501
1502
1503 #line 1565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1504 public RazorEngine.Templating.TemplateWriter RenderBlock(Block item)
1505 {
1506 #line default
1507 #line hidden
1508 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1509
1510 #line 1566 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1511
1512 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false;
1513
1514 if (item.Template != null)
1515 {
1516
1517
1518 #line default
1519 #line hidden
1520
1521 #line 1571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1522 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template));
1523
1524
1525 #line default
1526 #line hidden
1527
1528 #line 1571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1529
1530 }
1531
1532 if (item.Component != null)
1533 {
1534 string customSufix = "Custom";
1535 string methodName = item.Component.HelperName;
1536
1537 ComponentBase[] methodParameters = new ComponentBase[1];
1538 methodParameters[0] = item.Component;
1539 Type methodType = this.GetType();
1540
1541 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix);
1542 MethodInfo generalMethod = methodType.GetMethod(methodName);
1543
1544 try {
1545 if (debug) {
1546
1547
1548 #line default
1549 #line hidden
1550 WriteLiteralTo(__razor_helper_writer, " <!-- Component: ");
1551
1552
1553 #line 1588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1554 WriteTo(__razor_helper_writer, methodName.Replace("Render", ""));
1555
1556
1557 #line default
1558 #line hidden
1559 WriteLiteralTo(__razor_helper_writer, " -->\r\n");
1560
1561
1562 #line 1589 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1563 }
1564
1565
1566 #line default
1567 #line hidden
1568
1569 #line 1590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1570 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
1571
1572
1573 #line default
1574 #line hidden
1575
1576 #line 1590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1577 ;
1578 } catch {
1579 try {
1580
1581
1582 #line default
1583 #line hidden
1584
1585 #line 1593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1586 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString());
1587
1588
1589 #line default
1590 #line hidden
1591
1592 #line 1593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1593 ;
1594 } catch(Exception ex) {
1595 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex);
1596 }
1597 }
1598 }
1599
1600 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList)
1601 {
1602
1603
1604 #line default
1605 #line hidden
1606
1607 #line 1602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1608 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList));
1609
1610
1611 #line default
1612 #line hidden
1613
1614 #line 1602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1615
1616 }
1617
1618
1619 #line default
1620 #line hidden
1621 });
1622
1623 #line 1604 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1624 }
1625 #line default
1626 #line hidden
1627
1628
1629 #line 1621 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1630 public RazorEngine.Templating.TemplateWriter Render(ComponentBase component)
1631 {
1632 #line default
1633 #line hidden
1634 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1635
1636 #line 1622 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1637
1638 if (component != null)
1639 {
1640
1641
1642 #line default
1643 #line hidden
1644
1645 #line 1625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1646 WriteTo(__razor_helper_writer, component.Render(this));
1647
1648
1649 #line default
1650 #line hidden
1651
1652 #line 1625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1653
1654 }
1655
1656
1657 #line default
1658 #line hidden
1659 });
1660
1661 #line 1627 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1662 }
1663 #line default
1664 #line hidden
1665
1666
1667 #line 1636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1668 public RazorEngine.Templating.TemplateWriter RenderIcon(Icon settings)
1669 {
1670 #line default
1671 #line hidden
1672 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1673
1674 #line 1637 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1675
1676 if (settings != null)
1677 {
1678 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : "";
1679
1680 if (settings.Name != null)
1681 {
1682 if (string.IsNullOrEmpty(settings.Label))
1683 {
1684
1685
1686 #line default
1687 #line hidden
1688 WriteLiteralTo(__razor_helper_writer, " <i");
1689
1690 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 98683), Tuple.Create("\"", 98741)
1691
1692 #line 1646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1693 , Tuple.Create(Tuple.Create("", 98691), Tuple.Create<System.Object, System.Int32>(settings.Prefix
1694
1695 #line default
1696 #line hidden
1697 , 98691), false)
1698
1699 #line 1646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1700 , Tuple.Create(Tuple.Create(" ", 98707), Tuple.Create<System.Object, System.Int32>(settings.Name
1701
1702 #line default
1703 #line hidden
1704 , 98708), false)
1705
1706 #line 1646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1707 , Tuple.Create(Tuple.Create(" ", 98722), Tuple.Create<System.Object, System.Int32>(settings.CssClass
1708
1709 #line default
1710 #line hidden
1711 , 98723), false)
1712 );
1713
1714 WriteLiteralTo(__razor_helper_writer, " ");
1715
1716
1717 #line 1646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1718 WriteTo(__razor_helper_writer, color);
1719
1720
1721 #line default
1722 #line hidden
1723 WriteLiteralTo(__razor_helper_writer, "></i>\r\n");
1724
1725
1726 #line 1647 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1727 }
1728 else
1729 {
1730 if (settings.LabelPosition == IconLabelPosition.Before)
1731 {
1732
1733
1734 #line default
1735 #line hidden
1736 WriteLiteralTo(__razor_helper_writer, " <div");
1737
1738 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 98920), Tuple.Create("\"", 98980)
1739 , Tuple.Create(Tuple.Create("", 98928), Tuple.Create("u-flex", 98928), true)
1740 , Tuple.Create(Tuple.Create(" ", 98934), Tuple.Create("u-flex--align-items-center", 98935), true)
1741
1742 #line 1652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1743 , Tuple.Create(Tuple.Create(" ", 98961), Tuple.Create<System.Object, System.Int32>(settings.CssClass
1744
1745 #line default
1746 #line hidden
1747 , 98962), false)
1748 );
1749
1750 WriteLiteralTo(__razor_helper_writer, ">");
1751
1752
1753 #line 1652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1754 WriteTo(__razor_helper_writer, settings.Label);
1755
1756
1757 #line default
1758 #line hidden
1759 WriteLiteralTo(__razor_helper_writer, " <i");
1760
1761 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 99000), Tuple.Create("\"", 99053)
1762
1763 #line 1652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1764 , Tuple.Create(Tuple.Create("", 99008), Tuple.Create<System.Object, System.Int32>(settings.Prefix
1765
1766 #line default
1767 #line hidden
1768 , 99008), false)
1769
1770 #line 1652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1771 , Tuple.Create(Tuple.Create(" ", 99024), Tuple.Create<System.Object, System.Int32>(settings.Name
1772
1773 #line default
1774 #line hidden
1775 , 99025), false)
1776 , Tuple.Create(Tuple.Create(" ", 99039), Tuple.Create("u-margin-left", 99040), true)
1777 );
1778
1779 WriteLiteralTo(__razor_helper_writer, " ");
1780
1781
1782 #line 1652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1783 WriteTo(__razor_helper_writer, color);
1784
1785
1786 #line default
1787 #line hidden
1788 WriteLiteralTo(__razor_helper_writer, "></i></div>\r\n");
1789
1790
1791 #line 1653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1792 }
1793 else
1794 {
1795
1796
1797 #line default
1798 #line hidden
1799 WriteLiteralTo(__razor_helper_writer, " <div");
1800
1801 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 99158), Tuple.Create("\"", 99218)
1802 , Tuple.Create(Tuple.Create("", 99166), Tuple.Create("u-flex", 99166), true)
1803 , Tuple.Create(Tuple.Create(" ", 99172), Tuple.Create("u-flex--align-items-center", 99173), true)
1804
1805 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1806 , Tuple.Create(Tuple.Create(" ", 99199), Tuple.Create<System.Object, System.Int32>(settings.CssClass
1807
1808 #line default
1809 #line hidden
1810 , 99200), false)
1811 );
1812
1813 WriteLiteralTo(__razor_helper_writer, "><i");
1814
1815 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 99222), Tuple.Create("\"", 99288)
1816
1817 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1818 , Tuple.Create(Tuple.Create("", 99230), Tuple.Create<System.Object, System.Int32>(settings.Prefix
1819
1820 #line default
1821 #line hidden
1822 , 99230), false)
1823
1824 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1825 , Tuple.Create(Tuple.Create(" ", 99246), Tuple.Create<System.Object, System.Int32>(settings.Name
1826
1827 #line default
1828 #line hidden
1829 , 99247), false)
1830 , Tuple.Create(Tuple.Create(" ", 99261), Tuple.Create("u-margin-right--lg", 99262), true)
1831 , Tuple.Create(Tuple.Create(" ", 99280), Tuple.Create("u-w20px", 99281), true)
1832 );
1833
1834 WriteLiteralTo(__razor_helper_writer, " ");
1835
1836
1837 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1838 WriteTo(__razor_helper_writer, color);
1839
1840
1841 #line default
1842 #line hidden
1843 WriteLiteralTo(__razor_helper_writer, "></i>");
1844
1845
1846 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1847 WriteTo(__razor_helper_writer, settings.Label);
1848
1849
1850 #line default
1851 #line hidden
1852 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
1853
1854
1855 #line 1657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1856 }
1857 }
1858 }
1859 else if (!string.IsNullOrEmpty(settings.Label))
1860 {
1861
1862
1863 #line default
1864 #line hidden
1865
1866 #line 1662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1867 WriteTo(__razor_helper_writer, settings.Label);
1868
1869
1870 #line default
1871 #line hidden
1872
1873 #line 1662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1874
1875 }
1876 }
1877
1878
1879 #line default
1880 #line hidden
1881 });
1882
1883 #line 1665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1884 }
1885 #line default
1886 #line hidden
1887
1888
1889 #line 1673 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1890 public RazorEngine.Templating.TemplateWriter RenderButton(Button settings)
1891 {
1892 #line default
1893 #line hidden
1894 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1895
1896 #line 1674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1897
1898 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null))
1899 {
1900 Dictionary<string, string> attributes = new Dictionary<string, string>();
1901 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>();
1902 if (settings.Disabled) {
1903 attributes.Add("disabled", "true");
1904 classList.Add("disabled");
1905 }
1906
1907 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle))
1908 {
1909 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N");
1910
1911
1912 #line default
1913 #line hidden
1914
1915 #line 1687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1916 WriteTo(__razor_helper_writer, RenderConfirmDialog(settings));
1917
1918
1919 #line default
1920 #line hidden
1921
1922 #line 1687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1923 ;
1924 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true";
1925 }
1926
1927 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
1928 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
1929 if (!string.IsNullOrEmpty(settings.AltText))
1930 {
1931 attributes.Add("title", settings.AltText);
1932 }
1933 else if (!string.IsNullOrEmpty(settings.Title))
1934 {
1935 attributes.Add("title", settings.Title);
1936 }
1937
1938 var onClickEvents = new List<string>();
1939 if (!string.IsNullOrEmpty(settings.OnClick))
1940 {
1941 onClickEvents.Add(settings.OnClick);
1942 }
1943 if (!string.IsNullOrEmpty(settings.Href))
1944 {
1945 onClickEvents.Add("location.href='" + settings.Href + "'");
1946 }
1947 if (onClickEvents.Count > 0)
1948 {
1949 attributes.Add("onClick", string.Join(";", onClickEvents));
1950 }
1951
1952 if (settings.ButtonLayout != ButtonLayout.None)
1953 {
1954 classList.Add("btn");
1955 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower();
1956 if (btnLayout == "linkclean")
1957 {
1958 btnLayout = "link-clean"; //fix
1959 }
1960 classList.Add("btn-fill--" + btnLayout);
1961 }
1962
1963 if (settings.Icon == null)
1964 {
1965 settings.Icon = new Icon();
1966 }
1967
1968 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : "";
1969 settings.Icon.Label = settings.Title;
1970
1971 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower());
1972
1973
1974
1975 #line default
1976 #line hidden
1977 WriteLiteralTo(__razor_helper_writer, " <button");
1978
1979 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 102108), Tuple.Create("\"", 102151)
1980
1981 #line 1737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1982 , Tuple.Create(Tuple.Create("", 102116), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList)
1983
1984 #line default
1985 #line hidden
1986 , 102116), false)
1987 , Tuple.Create(Tuple.Create(" ", 102144), Tuple.Create("dw-mod", 102145), true)
1988 );
1989
1990 WriteLiteralTo(__razor_helper_writer, " ");
1991
1992
1993 #line 1737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
1994 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
1995
1996
1997 #line default
1998 #line hidden
1999 WriteLiteralTo(__razor_helper_writer, " ");
2000
2001
2002 #line 1737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2003 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2004
2005
2006 #line default
2007 #line hidden
2008 WriteLiteralTo(__razor_helper_writer, ">");
2009
2010
2011 #line 1737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2012 WriteTo(__razor_helper_writer, Render(settings.Icon));
2013
2014
2015 #line default
2016 #line hidden
2017 WriteLiteralTo(__razor_helper_writer, "</button>\r\n");
2018
2019
2020 #line 1738 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2021 }
2022
2023
2024 #line default
2025 #line hidden
2026 });
2027
2028 #line 1739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2029 }
2030 #line default
2031 #line hidden
2032
2033
2034 #line 1741 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2035 public RazorEngine.Templating.TemplateWriter RenderConfirmDialog(Button settings)
2036 {
2037 #line default
2038 #line hidden
2039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2040
2041 #line 1742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2042
2043 Modal confirmDialog = new Modal {
2044 Id = settings.Id,
2045 Width = ModalWidth.Sm,
2046 Heading = new Heading
2047 {
2048 Level = 2,
2049 Title = settings.ConfirmTitle
2050 },
2051 BodyText = settings.ConfirmText
2052 };
2053
2054 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"});
2055 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick });
2056
2057
2058
2059 #line default
2060 #line hidden
2061
2062 #line 1757 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2063 WriteTo(__razor_helper_writer, Render(confirmDialog));
2064
2065
2066 #line default
2067 #line hidden
2068
2069 #line 1757 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2070
2071
2072
2073 #line default
2074 #line hidden
2075 });
2076
2077 #line 1758 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2078 }
2079 #line default
2080 #line hidden
2081
2082
2083 #line 1763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2084 public RazorEngine.Templating.TemplateWriter RenderDashboard(Dashboard settings)
2085 {
2086 #line default
2087 #line hidden
2088 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2089
2090 #line 1764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2091
2092 var widgets = settings.GetWidgets();
2093
2094 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor))
2095 {
2096 //set bg color for them
2097
2098 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor);
2099 int r = Convert.ToInt16(color.R);
2100 int g = Convert.ToInt16(color.G);
2101 int b = Convert.ToInt16(color.B);
2102
2103 var count = widgets.Length;
2104 var max = Math.Max(r, Math.Max(g, b));
2105 double step = 255.0 / (max * count);
2106 var i = 0;
2107 foreach (var widget in widgets)
2108 {
2109 i++;
2110
2111 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")";
2112 widget.BackgroundColor = shade;
2113 }
2114 }
2115
2116
2117
2118 #line default
2119 #line hidden
2120 WriteLiteralTo(__razor_helper_writer, " <div");
2121
2122 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 104147), Tuple.Create("\"", 104190)
2123 , Tuple.Create(Tuple.Create("", 104155), Tuple.Create("dashboard", 104155), true)
2124
2125 #line 1789 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2126 , Tuple.Create(Tuple.Create(" ", 104164), Tuple.Create<System.Object, System.Int32>(settings.CssClass
2127
2128 #line default
2129 #line hidden
2130 , 104165), false)
2131 , Tuple.Create(Tuple.Create(" ", 104183), Tuple.Create("dw-mod", 104184), true)
2132 );
2133
2134 WriteLiteralTo(__razor_helper_writer, " ");
2135
2136
2137 #line 1789 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2138 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2139
2140
2141 #line default
2142 #line hidden
2143 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2144
2145
2146 #line 1790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2147
2148
2149 #line default
2150 #line hidden
2151
2152 #line 1790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2153 foreach (var widget in widgets)
2154 {
2155
2156
2157 #line default
2158 #line hidden
2159 WriteLiteralTo(__razor_helper_writer, " <div");
2160
2161 WriteLiteralTo(__razor_helper_writer, " class=\"dashboard__widget\"");
2162
2163 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2164
2165 WriteLiteralTo(__razor_helper_writer, " ");
2166
2167
2168 #line 1793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2169 WriteTo(__razor_helper_writer, Render(widget));
2170
2171
2172 #line default
2173 #line hidden
2174 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
2175
2176
2177 #line 1795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2178 }
2179
2180
2181 #line default
2182 #line hidden
2183 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
2184
2185
2186 #line 1797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2187
2188
2189 #line default
2190 #line hidden
2191 });
2192
2193 #line 1797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2194 }
2195 #line default
2196 #line hidden
2197
2198
2199 #line 1801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2200 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetLink(DashboardWidgetLink settings)
2201 {
2202 #line default
2203 #line hidden
2204 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2205
2206 #line 1802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2207
2208 if (!string.IsNullOrEmpty(settings.Link))
2209 {
2210 var backgroundStyles = "";
2211 if (!string.IsNullOrEmpty(settings.BackgroundColor))
2212 {
2213 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\"";
2214 }
2215
2216
2217
2218 #line default
2219 #line hidden
2220 WriteLiteralTo(__razor_helper_writer, " <a");
2221
2222 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 104876), Tuple.Create("\"", 104897)
2223
2224 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2225 , Tuple.Create(Tuple.Create("", 104883), Tuple.Create<System.Object, System.Int32>(settings.Link
2226
2227 #line default
2228 #line hidden
2229 , 104883), false)
2230 );
2231
2232 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 104898), Tuple.Create("\"", 104951)
2233 , Tuple.Create(Tuple.Create("", 104906), Tuple.Create("widget", 104906), true)
2234 , Tuple.Create(Tuple.Create(" ", 104912), Tuple.Create("widget--link", 104913), true)
2235
2236 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2237 , Tuple.Create(Tuple.Create(" ", 104925), Tuple.Create<System.Object, System.Int32>(settings.CssClass
2238
2239 #line default
2240 #line hidden
2241 , 104926), false)
2242 , Tuple.Create(Tuple.Create(" ", 104944), Tuple.Create("dw-mod", 104945), true)
2243 );
2244
2245 WriteLiteralTo(__razor_helper_writer, " ");
2246
2247
2248 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2249 WriteTo(__razor_helper_writer, backgroundStyles);
2250
2251
2252 #line default
2253 #line hidden
2254 WriteLiteralTo(__razor_helper_writer, " title=\"");
2255
2256
2257 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2258 WriteTo(__razor_helper_writer, settings.Title);
2259
2260
2261 #line default
2262 #line hidden
2263 WriteLiteralTo(__razor_helper_writer, "\" ");
2264
2265
2266 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2267 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2268
2269
2270 #line default
2271 #line hidden
2272 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
2273
2274 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\"");
2275
2276 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2277
2278
2279 #line 1813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2280
2281
2282 #line default
2283 #line hidden
2284
2285 #line 1813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2286 if (settings.Icon != null)
2287 {
2288 settings.Icon.CssClass += "widget__icon";
2289
2290
2291 #line default
2292 #line hidden
2293
2294 #line 1816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2295 WriteTo(__razor_helper_writer, Render(settings.Icon));
2296
2297
2298 #line default
2299 #line hidden
2300
2301 #line 1816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2302
2303 }
2304
2305
2306 #line default
2307 #line hidden
2308 WriteLiteralTo(__razor_helper_writer, " <div");
2309
2310 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\"");
2311
2312 WriteLiteralTo(__razor_helper_writer, ">");
2313
2314
2315 #line 1818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2316 WriteTo(__razor_helper_writer, settings.Title);
2317
2318
2319 #line default
2320 #line hidden
2321 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </a>\r\n");
2322
2323
2324 #line 1821 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2325 }
2326
2327
2328 #line default
2329 #line hidden
2330 });
2331
2332 #line 1822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2333 }
2334 #line default
2335 #line hidden
2336
2337
2338 #line 1826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2339 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetCounter(DashboardWidgetCounter settings)
2340 {
2341 #line default
2342 #line hidden
2343 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2344
2345 #line 1827 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2346
2347 var backgroundStyles = "";
2348 if (!string.IsNullOrEmpty(settings.BackgroundColor))
2349 {
2350 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'";
2351 }
2352
2353
2354
2355 #line default
2356 #line hidden
2357 WriteLiteralTo(__razor_helper_writer, " <div");
2358
2359 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 105787), Tuple.Create("\"", 105827)
2360 , Tuple.Create(Tuple.Create("", 105795), Tuple.Create("widget", 105795), true)
2361
2362 #line 1834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2363 , Tuple.Create(Tuple.Create(" ", 105801), Tuple.Create<System.Object, System.Int32>(settings.CssClass
2364
2365 #line default
2366 #line hidden
2367 , 105802), false)
2368 , Tuple.Create(Tuple.Create(" ", 105820), Tuple.Create("dw-mod", 105821), true)
2369 );
2370
2371 WriteLiteralTo(__razor_helper_writer, " ");
2372
2373
2374 #line 1834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2375 WriteTo(__razor_helper_writer, backgroundStyles);
2376
2377
2378 #line default
2379 #line hidden
2380 WriteLiteralTo(__razor_helper_writer, " ");
2381
2382
2383 #line 1834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2384 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2385
2386
2387 #line default
2388 #line hidden
2389 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
2390
2391 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\"");
2392
2393 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2394
2395
2396 #line 1836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2397
2398
2399 #line default
2400 #line hidden
2401
2402 #line 1836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2403 if (settings.Icon != null)
2404 {
2405 settings.Icon.CssClass += "widget__icon";
2406
2407
2408 #line default
2409 #line hidden
2410
2411 #line 1839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2412 WriteTo(__razor_helper_writer, Render(settings.Icon));
2413
2414
2415 #line default
2416 #line hidden
2417
2418 #line 1839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2419
2420 }
2421
2422
2423 #line default
2424 #line hidden
2425 WriteLiteralTo(__razor_helper_writer, " <div");
2426
2427 WriteLiteralTo(__razor_helper_writer, " class=\"widget__counter\"");
2428
2429 WriteLiteralTo(__razor_helper_writer, ">");
2430
2431
2432 #line 1841 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2433 WriteTo(__razor_helper_writer, settings.Count);
2434
2435
2436 #line default
2437 #line hidden
2438 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div");
2439
2440 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\"");
2441
2442 WriteLiteralTo(__razor_helper_writer, ">");
2443
2444
2445 #line 1842 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2446 WriteTo(__razor_helper_writer, settings.Title);
2447
2448
2449 #line default
2450 #line hidden
2451 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </div>\r\n");
2452
2453
2454 #line 1845 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2455
2456
2457 #line default
2458 #line hidden
2459 });
2460
2461 #line 1845 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2462 }
2463 #line default
2464 #line hidden
2465
2466
2467 #line 1853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2468 public RazorEngine.Templating.TemplateWriter RenderLink(Link settings)
2469 {
2470 #line default
2471 #line hidden
2472 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2473
2474 #line 1854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2475
2476 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null))
2477 {
2478 Dictionary<string, string> attributes = new Dictionary<string, string>();
2479 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>();
2480 if (settings.Disabled)
2481 {
2482 attributes.Add("disabled", "true");
2483 classList.Add("disabled");
2484 }
2485
2486 if (!string.IsNullOrEmpty(settings.AltText))
2487 {
2488 attributes.Add("title", settings.AltText);
2489 }
2490 else if (!string.IsNullOrEmpty(settings.Title))
2491 {
2492 attributes.Add("title", settings.Title);
2493 }
2494
2495 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2496 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2497 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); }
2498 attributes.Add("href", settings.Href);
2499
2500 if (settings.ButtonLayout != ButtonLayout.None)
2501 {
2502 classList.Add("btn");
2503 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower();
2504 if (btnLayout == "linkclean")
2505 {
2506 btnLayout = "link-clean"; //fix
2507 }
2508 classList.Add("btn--" + btnLayout);
2509 }
2510
2511 if (settings.Icon == null)
2512 {
2513 settings.Icon = new Icon();
2514 }
2515 settings.Icon.Label = settings.Title;
2516
2517 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None)
2518 {
2519 settings.Rel = LinkRelType.Noopener;
2520 }
2521 if (settings.Target != LinkTargetType.None)
2522 {
2523 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower());
2524 }
2525 if (settings.Download)
2526 {
2527 attributes.Add("download", "true");
2528 }
2529 if (settings.Rel != LinkRelType.None)
2530 {
2531 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower());
2532 }
2533
2534
2535
2536 #line default
2537 #line hidden
2538 WriteLiteralTo(__razor_helper_writer, " <a");
2539
2540 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 108792), Tuple.Create("\"", 108835)
2541
2542 #line 1913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2543 , Tuple.Create(Tuple.Create("", 108800), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList)
2544
2545 #line default
2546 #line hidden
2547 , 108800), false)
2548 , Tuple.Create(Tuple.Create(" ", 108828), Tuple.Create("dw-mod", 108829), true)
2549 );
2550
2551 WriteLiteralTo(__razor_helper_writer, " ");
2552
2553
2554 #line 1913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2555 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
2556
2557
2558 #line default
2559 #line hidden
2560 WriteLiteralTo(__razor_helper_writer, " ");
2561
2562
2563 #line 1913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2564 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2565
2566
2567 #line default
2568 #line hidden
2569 WriteLiteralTo(__razor_helper_writer, ">");
2570
2571
2572 #line 1913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2573 WriteTo(__razor_helper_writer, Render(settings.Icon));
2574
2575
2576 #line default
2577 #line hidden
2578 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
2579
2580
2581 #line 1914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2582 }
2583
2584
2585 #line default
2586 #line hidden
2587 });
2588
2589 #line 1915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2590 }
2591 #line default
2592 #line hidden
2593
2594
2595 #line 1924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2596 public RazorEngine.Templating.TemplateWriter RenderRating(Rating settings)
2597 {
2598 #line default
2599 #line hidden
2600 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2601
2602 #line 1925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2603
2604 if (settings.Score > 0)
2605 {
2606 int rating = settings.Score;
2607 string iconType = "fa-star";
2608
2609 switch (settings.Type.ToString()) {
2610 case "Stars":
2611 iconType = "fa-star";
2612 break;
2613 case "Hearts":
2614 iconType = "fa-heart";
2615 break;
2616 case "Lemons":
2617 iconType = "fa-lemon";
2618 break;
2619 case "Bombs":
2620 iconType = "fa-bomb";
2621 break;
2622 }
2623
2624
2625
2626 #line default
2627 #line hidden
2628 WriteLiteralTo(__razor_helper_writer, " <div");
2629
2630 WriteLiteralTo(__razor_helper_writer, " class=\"u-ta-right\"");
2631
2632 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2633
2634
2635 #line 1947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2636
2637
2638 #line default
2639 #line hidden
2640
2641 #line 1947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2642 for (int i = 0; i < settings.OutOf; i++)
2643 {
2644
2645
2646 #line default
2647 #line hidden
2648 WriteLiteralTo(__razor_helper_writer, " <i");
2649
2650 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 109855), Tuple.Create("\"", 109902)
2651
2652 #line 1949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2653 , Tuple.Create(Tuple.Create("", 109863), Tuple.Create<System.Object, System.Int32>(rating > i ? "fas" : "far"
2654
2655 #line default
2656 #line hidden
2657 , 109863), false)
2658
2659 #line 1949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2660 , Tuple.Create(Tuple.Create(" ", 109892), Tuple.Create<System.Object, System.Int32>(iconType
2661
2662 #line default
2663 #line hidden
2664 , 109893), false)
2665 );
2666
2667 WriteLiteralTo(__razor_helper_writer, "></i>\r\n");
2668
2669
2670 #line 1950 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2671 }
2672
2673
2674 #line default
2675 #line hidden
2676 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
2677
2678
2679 #line 1952 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2680 }
2681
2682
2683 #line default
2684 #line hidden
2685 });
2686
2687 #line 1953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2688 }
2689 #line default
2690 #line hidden
2691
2692
2693 #line 1961 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2694 public RazorEngine.Templating.TemplateWriter RenderSelectFieldOption(SelectFieldOption settings)
2695 {
2696 #line default
2697 #line hidden
2698 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2699
2700 #line 1962 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2701
2702 Dictionary<string, string> attributes = new Dictionary<string, string>();
2703 if (settings.Checked) { attributes.Add("selected", "true"); }
2704 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2705 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2706 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2707
2708
2709
2710 #line default
2711 #line hidden
2712 WriteLiteralTo(__razor_helper_writer, " <option ");
2713
2714
2715 #line 1969 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2716 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
2717
2718
2719 #line default
2720 #line hidden
2721 WriteLiteralTo(__razor_helper_writer, " ");
2722
2723
2724 #line 1969 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2725 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
2726
2727
2728 #line default
2729 #line hidden
2730 WriteLiteralTo(__razor_helper_writer, ">");
2731
2732
2733 #line 1969 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2734 WriteTo(__razor_helper_writer, settings.Label);
2735
2736
2737 #line default
2738 #line hidden
2739 WriteLiteralTo(__razor_helper_writer, "</option>\r\n");
2740
2741
2742 #line 1970 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2743
2744
2745 #line default
2746 #line hidden
2747 });
2748
2749 #line 1970 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2750 }
2751 #line default
2752 #line hidden
2753
2754
2755 #line 1978 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2756 public RazorEngine.Templating.TemplateWriter RenderNavigation(Navigation settings) {
2757 #line default
2758 #line hidden
2759 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2760
2761 #line 1978 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2762
2763
2764
2765 #line default
2766 #line hidden
2767
2768 #line 1979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2769 WriteTo(__razor_helper_writer, RenderNavigation(new
2770 {
2771 id = settings.Id,
2772 cssclass = settings.CssClass,
2773 startLevel = settings.StartLevel,
2774 endlevel = settings.EndLevel,
2775 expandmode = settings.Expandmode,
2776 sitemapmode = settings.SitemapMode,
2777 template = settings.Template
2778 }));
2779
2780
2781 #line default
2782 #line hidden
2783
2784 #line 1988 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2785
2786
2787
2788 #line default
2789 #line hidden
2790 });
2791
2792 #line 1989 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2793 }
2794 #line default
2795 #line hidden
2796
2797
2798 #line 1996 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2799 public RazorEngine.Templating.TemplateWriter RenderBreadcrumbNavigation(BreadcrumbNavigation settings) {
2800 #line default
2801 #line hidden
2802 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2803
2804 #line 1996 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2805
2806 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id;
2807 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template;
2808 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel;
2809 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel;
2810 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode;
2811 settings.SitemapMode = false;
2812
2813
2814
2815 #line default
2816 #line hidden
2817
2818 #line 2004 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2819 WriteTo(__razor_helper_writer, RenderNavigation(settings));
2820
2821
2822 #line default
2823 #line hidden
2824
2825 #line 2004 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2826
2827
2828
2829 #line default
2830 #line hidden
2831 });
2832
2833 #line 2005 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2834 }
2835 #line default
2836 #line hidden
2837
2838
2839 #line 2012 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2840 public RazorEngine.Templating.TemplateWriter RenderLeftNavigation(LeftNavigation settings) {
2841 #line default
2842 #line hidden
2843 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2844
2845 #line 2012 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2846
2847 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id;
2848 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template;
2849 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel;
2850 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel;
2851 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode;
2852
2853
2854
2855 #line default
2856 #line hidden
2857 WriteLiteralTo(__razor_helper_writer, " <div");
2858
2859 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\"");
2860
2861 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2862
2863 WriteLiteralTo(__razor_helper_writer, " ");
2864
2865
2866 #line 2020 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2867 WriteTo(__razor_helper_writer, RenderNavigation(settings));
2868
2869
2870 #line default
2871 #line hidden
2872 WriteLiteralTo(__razor_helper_writer, " \r\n </div> \r\n");
2873
2874
2875 #line 2022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2876
2877
2878 #line default
2879 #line hidden
2880 });
2881
2882 #line 2022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2883 }
2884 #line default
2885 #line hidden
2886
2887
2888 #line 2029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2889 public RazorEngine.Templating.TemplateWriter RenderHeading(Heading settings)
2890 {
2891 #line default
2892 #line hidden
2893 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2894
2895 #line 2030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2896
2897 if (settings != null && !string.IsNullOrEmpty(settings.Title))
2898 {
2899 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : "";
2900 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div";
2901
2902
2903
2904 #line default
2905 #line hidden
2906
2907 #line 2036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2908 WriteTo(__razor_helper_writer, "<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">");
2909
2910
2911 #line default
2912 #line hidden
2913
2914 #line 2036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2915
2916 if (!string.IsNullOrEmpty(settings.Link))
2917 {
2918
2919
2920 #line default
2921 #line hidden
2922
2923 #line 2039 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2924 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None }));
2925
2926
2927 #line default
2928 #line hidden
2929
2930 #line 2039 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2931
2932 }
2933 else
2934 {
2935 if (settings.Icon == null)
2936 {
2937 settings.Icon = new Icon();
2938 }
2939 settings.Icon.Label = settings.Title;
2940
2941
2942 #line default
2943 #line hidden
2944
2945 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2946 WriteTo(__razor_helper_writer, Render(settings.Icon));
2947
2948
2949 #line default
2950 #line hidden
2951
2952 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2953
2954 }
2955
2956
2957 #line default
2958 #line hidden
2959
2960 #line 2050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2961 WriteTo(__razor_helper_writer, "</" + tagName + ">");
2962
2963
2964 #line default
2965 #line hidden
2966
2967 #line 2050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2968 ;
2969 }
2970
2971
2972 #line default
2973 #line hidden
2974 });
2975
2976 #line 2052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2977 }
2978 #line default
2979 #line hidden
2980
2981
2982 #line 2060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2983 public RazorEngine.Templating.TemplateWriter RenderImage(Image settings)
2984 {
2985 #line default
2986 #line hidden
2987 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2988
2989 #line 2061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
2990
2991 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None)
2992 {
2993 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
2994 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); }
2995
2996 if (settings.Caption != null)
2997 {
2998
2999
3000 #line default
3001 #line hidden
3002 WriteLiteralTo(__razor_helper_writer, " ");
3003
3004 WriteLiteralTo(__razor_helper_writer, "<div>\r\n");
3005
3006
3007 #line 2070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3008 }
3009
3010 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower();
3011 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower();
3012
3013
3014
3015 #line default
3016 #line hidden
3017 WriteLiteralTo(__razor_helper_writer, " <div");
3018
3019 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 114480), Tuple.Create("\"", 114561)
3020 , Tuple.Create(Tuple.Create("", 114488), Tuple.Create("image-filter", 114488), true)
3021 , Tuple.Create(Tuple.Create(" ", 114500), Tuple.Create("image-filter--", 114501), true)
3022
3023 #line 2075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3024 , Tuple.Create(Tuple.Create("", 114515), Tuple.Create<System.Object, System.Int32>(primaryFilterClass
3025
3026 #line default
3027 #line hidden
3028 , 114515), false)
3029 , Tuple.Create(Tuple.Create(" ", 114534), Tuple.Create("u-position-relative", 114535), true)
3030 , Tuple.Create(Tuple.Create(" ", 114554), Tuple.Create("dw-mod", 114555), true)
3031 );
3032
3033 WriteLiteralTo(__razor_helper_writer, " ");
3034
3035
3036 #line 2075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3037 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes));
3038
3039
3040 #line default
3041 #line hidden
3042 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
3043
3044 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 114633), Tuple.Create("\"", 114696)
3045 , Tuple.Create(Tuple.Create("", 114641), Tuple.Create("image-filter", 114641), true)
3046 , Tuple.Create(Tuple.Create(" ", 114653), Tuple.Create("image-filter--", 114654), true)
3047
3048 #line 2076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3049 , Tuple.Create(Tuple.Create("", 114668), Tuple.Create<System.Object, System.Int32>(secondaryFilterClass
3050
3051 #line default
3052 #line hidden
3053 , 114668), false)
3054 , Tuple.Create(Tuple.Create(" ", 114689), Tuple.Create("dw-mod", 114690), true)
3055 );
3056
3057 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3058
3059
3060 #line 2077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3061
3062
3063 #line default
3064 #line hidden
3065
3066 #line 2077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3067 if (settings.Link != null)
3068 {
3069
3070
3071 #line default
3072 #line hidden
3073 WriteLiteralTo(__razor_helper_writer, " <a");
3074
3075 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 114786), Tuple.Create("\"", 114807)
3076
3077 #line 2079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3078 , Tuple.Create(Tuple.Create("", 114793), Tuple.Create<System.Object, System.Int32>(settings.Link
3079
3080 #line default
3081 #line hidden
3082 , 114793), false)
3083 );
3084
3085 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3086
3087 WriteLiteralTo(__razor_helper_writer, " ");
3088
3089
3090 #line 2080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3091 WriteTo(__razor_helper_writer, RenderTheImage(settings));
3092
3093
3094 #line default
3095 #line hidden
3096 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3097
3098
3099 #line 2082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3100 }
3101 else
3102 {
3103
3104
3105 #line default
3106 #line hidden
3107
3108 #line 2085 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3109 WriteTo(__razor_helper_writer, RenderTheImage(settings));
3110
3111
3112 #line default
3113 #line hidden
3114
3115 #line 2085 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3116
3117 }
3118
3119
3120 #line default
3121 #line hidden
3122 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n");
3123
3124
3125 #line 2089 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3126
3127 if (settings.Caption != null)
3128 {
3129
3130
3131 #line default
3132 #line hidden
3133 WriteLiteralTo(__razor_helper_writer, " <span");
3134
3135 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\"");
3136
3137 WriteLiteralTo(__razor_helper_writer, ">");
3138
3139
3140 #line 2092 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3141 WriteTo(__razor_helper_writer, settings.Caption);
3142
3143
3144 #line default
3145 #line hidden
3146 WriteLiteralTo(__razor_helper_writer, "</span>\r\n");
3147
3148 WriteLiteralTo(__razor_helper_writer, " ");
3149
3150 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
3151
3152
3153 #line 2094 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3154 }
3155 }
3156 else
3157 {
3158 if (settings.Caption != null)
3159 {
3160
3161
3162 #line default
3163 #line hidden
3164 WriteLiteralTo(__razor_helper_writer, " ");
3165
3166 WriteLiteralTo(__razor_helper_writer, "<div>\r\n");
3167
3168
3169 #line 2101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3170 }
3171 if (!string.IsNullOrEmpty(settings.Link))
3172 {
3173
3174
3175 #line default
3176 #line hidden
3177 WriteLiteralTo(__razor_helper_writer, " <a");
3178
3179 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 115391), Tuple.Create("\"", 115412)
3180
3181 #line 2104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3182 , Tuple.Create(Tuple.Create("", 115398), Tuple.Create<System.Object, System.Int32>(settings.Link
3183
3184 #line default
3185 #line hidden
3186 , 115398), false)
3187 );
3188
3189 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3190
3191 WriteLiteralTo(__razor_helper_writer, " ");
3192
3193
3194 #line 2105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3195 WriteTo(__razor_helper_writer, RenderTheImage(settings));
3196
3197
3198 #line default
3199 #line hidden
3200 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3201
3202
3203 #line 2107 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3204 }
3205 else
3206 {
3207
3208
3209 #line default
3210 #line hidden
3211
3212 #line 2110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3213 WriteTo(__razor_helper_writer, RenderTheImage(settings));
3214
3215
3216 #line default
3217 #line hidden
3218
3219 #line 2110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3220
3221 }
3222
3223 if (settings.Caption != null)
3224 {
3225
3226
3227 #line default
3228 #line hidden
3229 WriteLiteralTo(__razor_helper_writer, " <span");
3230
3231 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\"");
3232
3233 WriteLiteralTo(__razor_helper_writer, ">");
3234
3235
3236 #line 2115 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3237 WriteTo(__razor_helper_writer, settings.Caption);
3238
3239
3240 #line default
3241 #line hidden
3242 WriteLiteralTo(__razor_helper_writer, "</span>\r\n");
3243
3244 WriteLiteralTo(__razor_helper_writer, " ");
3245
3246 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
3247
3248
3249 #line 2117 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3250 }
3251 }
3252
3253
3254 #line default
3255 #line hidden
3256 });
3257
3258 #line 2119 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3259 }
3260 #line default
3261 #line hidden
3262
3263
3264 #line 2121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3265 public RazorEngine.Templating.TemplateWriter RenderTheImage(Image settings)
3266 {
3267 #line default
3268 #line hidden
3269 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3270
3271 #line 2122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3272
3273 if (settings != null)
3274 {
3275 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg";
3276 string placeholderImage = "/Files/Images/placeholder.gif";
3277 string imageEngine = "/Admin/Public/GetImage.ashx?";
3278
3279 string imageStyle = "";
3280
3281 switch (settings.Style)
3282 {
3283 case ImageStyle.Ball:
3284 imageStyle = "grid__cell-img--ball";
3285 break;
3286
3287 case ImageStyle.Triangle:
3288 imageStyle = "grid__cell-img--triangle";
3289 break;
3290 }
3291
3292 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle)
3293 {
3294 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop;
3295
3296 if (settings.ImageDefault != null)
3297 {
3298 settings.ImageDefault.Height = settings.ImageDefault.Width;
3299 }
3300 if (settings.ImageMedium != null)
3301 {
3302 settings.ImageMedium.Height = settings.ImageMedium.Width;
3303 }
3304 if (settings.ImageSmall != null)
3305 {
3306 settings.ImageSmall.Height = settings.ImageSmall.Width;
3307 }
3308 }
3309
3310 string defaultImage = imageEngine;
3311 string imageSmall = "";
3312 string imageMedium = "";
3313
3314 if (settings.DisableImageEngine)
3315 {
3316 defaultImage = settings.Path;
3317 }
3318 else
3319 {
3320 if (settings.ImageDefault != null)
3321 {
3322 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault);
3323
3324 if (settings.Path.GetType() != typeof(string))
3325 {
3326 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
3327 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
3328 }
3329 else
3330 {
3331 defaultImage += settings.Path != null ? "Image=" + settings.Path : "";
3332 }
3333
3334 defaultImage += "&AlternativeImage=" + alternativeImage;
3335 }
3336
3337 if (settings.ImageSmall != null)
3338 {
3339 imageSmall = "data-src-small=\"" + imageEngine;
3340 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall);
3341
3342 if (settings.Path.GetType() != typeof(string))
3343 {
3344 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
3345 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
3346 }
3347 else
3348 {
3349 imageSmall += settings.Path != null ? "Image=" + settings.Path : "";
3350 }
3351
3352 imageSmall += "&alternativeImage=" + alternativeImage;
3353
3354 imageSmall += "\"";
3355 }
3356
3357 if (settings.ImageMedium != null)
3358 {
3359 imageMedium = "data-src-medium=\"" + imageEngine;
3360 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium);
3361
3362 if (settings.Path.GetType() != typeof(string))
3363 {
3364 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
3365 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
3366 }
3367 else
3368 {
3369 imageMedium += settings.Path != null ? "Image=" + settings.Path : "";
3370 }
3371
3372 imageMedium += "&alternativeImage=" + alternativeImage;
3373
3374 imageMedium += "\"";
3375 }
3376 }
3377
3378 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
3379 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); }
3380 if (!string.IsNullOrEmpty(settings.Title))
3381 {
3382 optionalAttributes.Add("alt", settings.Title);
3383 optionalAttributes.Add("title", settings.Title);
3384 }
3385
3386 if (settings.DisableLazyLoad)
3387 {
3388
3389
3390 #line default
3391 #line hidden
3392 WriteLiteralTo(__razor_helper_writer, " <img");
3393
3394 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 120304), Tuple.Create("\"", 120321)
3395
3396 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3397 , Tuple.Create(Tuple.Create("", 120309), Tuple.Create<System.Object, System.Int32>(settings.Id
3398
3399 #line default
3400 #line hidden
3401 , 120309), false)
3402 );
3403
3404 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 120322), Tuple.Create("\"", 120367)
3405
3406 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3407 , Tuple.Create(Tuple.Create("", 120330), Tuple.Create<System.Object, System.Int32>(imageStyle
3408
3409 #line default
3410 #line hidden
3411 , 120330), false)
3412
3413 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3414 , Tuple.Create(Tuple.Create(" ", 120341), Tuple.Create<System.Object, System.Int32>(settings.CssClass
3415
3416 #line default
3417 #line hidden
3418 , 120342), false)
3419 , Tuple.Create(Tuple.Create(" ", 120360), Tuple.Create("dw-mod", 120361), true)
3420 );
3421
3422 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 120368), Tuple.Create("\"", 120387)
3423
3424 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3425 , Tuple.Create(Tuple.Create("", 120374), Tuple.Create<System.Object, System.Int32>(defaultImage
3426
3427 #line default
3428 #line hidden
3429 , 120374), false)
3430 );
3431
3432 WriteLiteralTo(__razor_helper_writer, " ");
3433
3434
3435 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3436 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes));
3437
3438
3439 #line default
3440 #line hidden
3441 WriteLiteralTo(__razor_helper_writer, " ");
3442
3443
3444 #line 2238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3445 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
3446
3447
3448 #line default
3449 #line hidden
3450 WriteLiteralTo(__razor_helper_writer, " />\r\n");
3451
3452
3453 #line 2239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3454 }
3455 else
3456 {
3457
3458
3459 #line default
3460 #line hidden
3461 WriteLiteralTo(__razor_helper_writer, " <img");
3462
3463 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 120573), Tuple.Create("\"", 120590)
3464
3465 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3466 , Tuple.Create(Tuple.Create("", 120578), Tuple.Create<System.Object, System.Int32>(settings.Id
3467
3468 #line default
3469 #line hidden
3470 , 120578), false)
3471 );
3472
3473 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 120591), Tuple.Create("\"", 120645)
3474 , Tuple.Create(Tuple.Create("", 120599), Tuple.Create("lazyload", 120599), true)
3475
3476 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3477 , Tuple.Create(Tuple.Create(" ", 120607), Tuple.Create<System.Object, System.Int32>(imageStyle
3478
3479 #line default
3480 #line hidden
3481 , 120608), false)
3482
3483 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3484 , Tuple.Create(Tuple.Create(" ", 120619), Tuple.Create<System.Object, System.Int32>(settings.CssClass
3485
3486 #line default
3487 #line hidden
3488 , 120620), false)
3489 , Tuple.Create(Tuple.Create(" ", 120638), Tuple.Create("dw-mod", 120639), true)
3490 );
3491
3492 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 120646), Tuple.Create("\"", 120669)
3493
3494 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3495 , Tuple.Create(Tuple.Create("", 120652), Tuple.Create<System.Object, System.Int32>(placeholderImage
3496
3497 #line default
3498 #line hidden
3499 , 120652), false)
3500 );
3501
3502 WriteLiteralTo(__razor_helper_writer, " data-src=\"");
3503
3504
3505 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3506 WriteTo(__razor_helper_writer, defaultImage);
3507
3508
3509 #line default
3510 #line hidden
3511 WriteLiteralTo(__razor_helper_writer, "\"");
3512
3513 WriteLiteralTo(__razor_helper_writer, " ");
3514
3515
3516 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3517 WriteTo(__razor_helper_writer, imageSmall);
3518
3519
3520 #line default
3521 #line hidden
3522 WriteLiteralTo(__razor_helper_writer, " ");
3523
3524
3525 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3526 WriteTo(__razor_helper_writer, imageMedium);
3527
3528
3529 #line default
3530 #line hidden
3531 WriteLiteralTo(__razor_helper_writer, " ");
3532
3533
3534 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3535 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes));
3536
3537
3538 #line default
3539 #line hidden
3540 WriteLiteralTo(__razor_helper_writer, " ");
3541
3542
3543 #line 2242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3544 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
3545
3546
3547 #line default
3548 #line hidden
3549 WriteLiteralTo(__razor_helper_writer, " />\r\n");
3550
3551
3552 #line 2243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3553 }
3554 }
3555
3556
3557 #line default
3558 #line hidden
3559 });
3560
3561 #line 2245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3562 }
3563 #line default
3564 #line hidden
3565
3566
3567 #line 2252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3568 public RazorEngine.Templating.TemplateWriter RenderFileField(FileField settings)
3569 {
3570 #line default
3571 #line hidden
3572 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3573
3574 #line 2253 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3575
3576 var attributes = new Dictionary<string, string>();
3577 if (string.IsNullOrEmpty(settings.Id))
3578 {
3579 settings.Id = Guid.NewGuid().ToString("N");
3580 }
3581
3582 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
3583 if (settings.Disabled) { attributes.Add("disabled", "true"); }
3584 if (settings.Required) { attributes.Add("required", "true"); }
3585 if (settings.Multiple) { attributes.Add("multiple", "true"); }
3586 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
3587 if (string.IsNullOrEmpty(settings.ChooseFileText))
3588 {
3589 settings.ChooseFileText = Translate("Choose file");
3590 }
3591 if (string.IsNullOrEmpty(settings.NoFilesChosenText))
3592 {
3593 settings.NoFilesChosenText = Translate("No files chosen...");
3594 }
3595 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
3596
3597 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
3598
3599 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)";
3600 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : ""));
3601
3602 attributes.Add("type", "file");
3603 if (settings.Value != null) { attributes.Add("value", settings.Value); }
3604 settings.CssClass = "u-full-width " + settings.CssClass;
3605
3606 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
3607
3608
3609
3610 #line default
3611 #line hidden
3612 WriteLiteralTo(__razor_helper_writer, " <div");
3613
3614 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 122654), Tuple.Create("\"", 122725)
3615 , Tuple.Create(Tuple.Create("", 122662), Tuple.Create("form__field-group", 122662), true)
3616 , Tuple.Create(Tuple.Create(" ", 122679), Tuple.Create("u-full-width", 122680), true)
3617
3618 #line 2286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3619 , Tuple.Create(Tuple.Create(" ", 122692), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
3620
3621 #line default
3622 #line hidden
3623 , 122693), false)
3624 , Tuple.Create(Tuple.Create(" ", 122718), Tuple.Create("dw-mod", 122719), true)
3625 );
3626
3627 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3628
3629
3630 #line 2287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3631
3632
3633 #line default
3634 #line hidden
3635
3636 #line 2287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3637 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
3638 {
3639
3640
3641 #line default
3642 #line hidden
3643 WriteLiteralTo(__razor_helper_writer, " <div");
3644
3645 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
3646
3647 WriteLiteralTo(__razor_helper_writer, "> \r\n");
3648
3649
3650 #line 2290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3651
3652
3653 #line default
3654 #line hidden
3655
3656 #line 2290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3657 if (!string.IsNullOrEmpty(settings.Label)) {
3658
3659 #line default
3660 #line hidden
3661 WriteLiteralTo(__razor_helper_writer, " <label");
3662
3663 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 122928), Tuple.Create("\"", 122946)
3664
3665 #line 2290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3666 , Tuple.Create(Tuple.Create("", 122934), Tuple.Create<System.Object, System.Int32>(settings.Id
3667
3668 #line default
3669 #line hidden
3670 , 122934), false)
3671 );
3672
3673 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
3674
3675 WriteLiteralTo(__razor_helper_writer, ">");
3676
3677
3678 #line 2290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3679 WriteTo(__razor_helper_writer, settings.Label);
3680
3681
3682 #line default
3683 #line hidden
3684 WriteLiteralTo(__razor_helper_writer, "</label> ");
3685
3686
3687 #line 2290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3688 }
3689
3690
3691 #line default
3692 #line hidden
3693 WriteLiteralTo(__razor_helper_writer, " ");
3694
3695
3696 #line 2291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3697 if (settings.Link != null) {
3698
3699
3700 #line default
3701 #line hidden
3702 WriteLiteralTo(__razor_helper_writer, " <div");
3703
3704 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
3705
3706 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3707
3708
3709 #line 2293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3710
3711
3712 #line default
3713 #line hidden
3714
3715 #line 2293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3716 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
3717
3718 #line default
3719 #line hidden
3720 WriteLiteralTo(__razor_helper_writer, "\r\n");
3721
3722 WriteLiteralTo(__razor_helper_writer, " ");
3723
3724
3725 #line 2294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3726 WriteTo(__razor_helper_writer, RenderLink(settings.Link));
3727
3728
3729 #line default
3730 #line hidden
3731 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
3732
3733
3734 #line 2296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3735 }
3736
3737
3738 #line default
3739 #line hidden
3740 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
3741
3742
3743 #line 2298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3744
3745 }
3746
3747
3748 #line default
3749 #line hidden
3750 WriteLiteralTo(__razor_helper_writer, "\r\n");
3751
3752
3753 #line 2301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3754
3755
3756 #line default
3757 #line hidden
3758
3759 #line 2301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3760 if (!string.IsNullOrEmpty(settings.HelpText))
3761 {
3762
3763
3764 #line default
3765 #line hidden
3766 WriteLiteralTo(__razor_helper_writer, " <small");
3767
3768 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
3769
3770 WriteLiteralTo(__razor_helper_writer, ">");
3771
3772
3773 #line 2303 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3774 WriteTo(__razor_helper_writer, settings.HelpText);
3775
3776
3777 #line default
3778 #line hidden
3779 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
3780
3781
3782 #line 2304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3783 }
3784
3785
3786 #line default
3787 #line hidden
3788 WriteLiteralTo(__razor_helper_writer, "\r\n <div");
3789
3790 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi file-input u-no-margin dw-mod\"");
3791
3792 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
3793
3794
3795 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3796 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
3797
3798
3799 #line default
3800 #line hidden
3801 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__real-input\" data-no-files-text=\"");
3802
3803
3804 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3805 WriteTo(__razor_helper_writer, settings.NoFilesChosenText);
3806
3807
3808 #line default
3809 #line hidden
3810 WriteLiteralTo(__razor_helper_writer, "\" data-many-files-text=\"");
3811
3812
3813 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3814 WriteTo(__razor_helper_writer, Translate("files"));
3815
3816
3817 #line default
3818 #line hidden
3819 WriteLiteralTo(__razor_helper_writer, "\" />\r\n <label");
3820
3821 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 123757), Tuple.Create("\"", 123775)
3822
3823 #line 2308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3824 , Tuple.Create(Tuple.Create("", 123763), Tuple.Create<System.Object, System.Int32>(settings.Id
3825
3826 #line default
3827 #line hidden
3828 , 123763), false)
3829 );
3830
3831 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__btn btn--secondary btn dw-mod\"");
3832
3833 WriteLiteralTo(__razor_helper_writer, ">");
3834
3835
3836 #line 2308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3837 WriteTo(__razor_helper_writer, settings.ChooseFileText);
3838
3839
3840 #line default
3841 #line hidden
3842 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label");
3843
3844 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 123879), Tuple.Create("\"", 123897)
3845
3846 #line 2309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3847 , Tuple.Create(Tuple.Create("", 123885), Tuple.Create<System.Object, System.Int32>(settings.Id
3848
3849 #line default
3850 #line hidden
3851 , 123885), false)
3852 );
3853
3854 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 123898), Tuple.Create("\"", 123968)
3855
3856 #line 2309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3857 , Tuple.Create(Tuple.Create("", 123906), Tuple.Create<System.Object, System.Int32>(settings.CssClass
3858
3859 #line default
3860 #line hidden
3861 , 123906), false)
3862 , Tuple.Create(Tuple.Create(" ", 123924), Tuple.Create("file-input__fake-input", 123925), true)
3863 , Tuple.Create(Tuple.Create(" ", 123947), Tuple.Create("js-fake-input", 123948), true)
3864 , Tuple.Create(Tuple.Create(" ", 123961), Tuple.Create("dw-mod", 123962), true)
3865 );
3866
3867 WriteLiteralTo(__razor_helper_writer, ">");
3868
3869
3870 #line 2309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3871 WriteTo(__razor_helper_writer, settings.NoFilesChosenText);
3872
3873
3874 #line default
3875 #line hidden
3876 WriteLiteralTo(__razor_helper_writer, "</label>\r\n");
3877
3878
3879 #line 2310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3880
3881
3882 #line default
3883 #line hidden
3884
3885 #line 2310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3886 if (settings.UploadButton != null)
3887 {
3888 settings.UploadButton.CssClass += " btn--condensed u-no-margin";
3889
3890
3891 #line default
3892 #line hidden
3893
3894 #line 2313 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3895 WriteTo(__razor_helper_writer, RenderButton(settings.UploadButton));
3896
3897
3898 #line default
3899 #line hidden
3900
3901 #line 2313 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3902
3903 }
3904
3905
3906 #line default
3907 #line hidden
3908 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
3909
3910 WriteLiteralTo(__razor_helper_writer, " ");
3911
3912
3913 #line 2316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3914 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
3915
3916
3917 #line default
3918 #line hidden
3919 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
3920
3921
3922 #line 2318 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3923
3924
3925 #line default
3926 #line hidden
3927 });
3928
3929 #line 2318 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3930 }
3931 #line default
3932 #line hidden
3933
3934
3935 #line 2327 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3936 public RazorEngine.Templating.TemplateWriter RenderDateTimeField(DateTimeField settings)
3937 {
3938 #line default
3939 #line hidden
3940 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3941
3942 #line 2328 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3943
3944 if (string.IsNullOrEmpty(settings.Id))
3945 {
3946 settings.Id = Guid.NewGuid().ToString("N");
3947 }
3948
3949 var textField = new TextField {
3950 Name = settings.Name,
3951 Id = settings.Id,
3952 Label = settings.Label,
3953 HelpText = settings.HelpText,
3954 Value = settings.Value,
3955 Disabled = settings.Disabled,
3956 Required = settings.Required,
3957 ErrorMessage = settings.ErrorMessage,
3958 CssClass = settings.CssClass,
3959 WrapperCssClass = settings.WrapperCssClass,
3960 OnChange = settings.OnChange,
3961 OnClick = settings.OnClick,
3962 Link = settings.Link,
3963 ExtraAttributes = settings.ExtraAttributes,
3964 //
3965 Placeholder = settings.Placeholder
3966 };
3967
3968
3969
3970 #line default
3971 #line hidden
3972
3973 #line 2353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3974 WriteTo(__razor_helper_writer, Render(textField));
3975
3976
3977 #line default
3978 #line hidden
3979
3980 #line 2353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
3981
3982
3983 List<string> jsAttributes = new List<string>();
3984
3985 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'");
3986
3987 if (!string.IsNullOrEmpty(settings.DateFormat))
3988 {
3989 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'");
3990 }
3991 if (!string.IsNullOrEmpty(settings.MinDate))
3992 {
3993 jsAttributes.Add("minDate: '" + settings.MinDate + "'");
3994 }
3995 if (!string.IsNullOrEmpty(settings.MaxDate))
3996 {
3997 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'");
3998 }
3999 if (settings.IsInline)
4000 {
4001 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower());
4002 }
4003 if (settings.EnableTime)
4004 {
4005 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower());
4006 }
4007 if (settings.EnableWeekNumbers)
4008 {
4009 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower());
4010 }
4011
4012 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value));
4013
4014
4015
4016 #line default
4017 #line hidden
4018 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", function () {" +
4019 "\r\n flatpickr(\"#");
4020
4021
4022 #line 2388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4023 WriteTo(__razor_helper_writer, textField.Id);
4024
4025
4026 #line default
4027 #line hidden
4028 WriteLiteralTo(__razor_helper_writer, "\", {\r\n");
4029
4030 WriteLiteralTo(__razor_helper_writer, " ");
4031
4032
4033 #line 2389 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4034 WriteTo(__razor_helper_writer, string.Join(",", jsAttributes));
4035
4036
4037 #line default
4038 #line hidden
4039 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n });\r\n </script>\r\n");
4040
4041
4042 #line 2393 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4043
4044
4045 #line default
4046 #line hidden
4047 });
4048
4049 #line 2393 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4050 }
4051 #line default
4052 #line hidden
4053
4054
4055 #line 2400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4056 public RazorEngine.Templating.TemplateWriter RenderTextField(TextField settings)
4057 {
4058 #line default
4059 #line hidden
4060 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
4061
4062 #line 2401 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4063
4064 var attributes = new Dictionary<string, string>();
4065 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
4066 {
4067 settings.Id = Guid.NewGuid().ToString("N");
4068 }
4069
4070 /*base settings*/
4071 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
4072 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
4073 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
4074 if (settings.Disabled) { attributes.Add("disabled", "true"); }
4075 if (settings.Required) { attributes.Add("required", "true"); }
4076 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
4077 /*end*/
4078
4079 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
4080 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
4081 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
4082 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
4083 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); }
4084 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); }
4085 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower());
4086 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); };
4087 if (settings.Value != null) { attributes.Add("value", settings.Value); }
4088
4089 settings.CssClass = "u-full-width " + settings.CssClass;
4090
4091 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
4092
4093 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
4094
4095 string noMargin = "u-no-margin";
4096 if (!settings.ReadOnly) {
4097 noMargin = "";
4098 }
4099
4100
4101
4102 #line default
4103 #line hidden
4104 WriteLiteralTo(__razor_helper_writer, " <div");
4105
4106 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 128938), Tuple.Create("\"", 129019)
4107 , Tuple.Create(Tuple.Create("", 128946), Tuple.Create("form__field-group", 128946), true)
4108 , Tuple.Create(Tuple.Create(" ", 128963), Tuple.Create("u-full-width", 128964), true)
4109
4110 #line 2438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4111 , Tuple.Create(Tuple.Create(" ", 128976), Tuple.Create<System.Object, System.Int32>(noMargin
4112
4113 #line default
4114 #line hidden
4115 , 128977), false)
4116
4117 #line 2438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4118 , Tuple.Create(Tuple.Create(" ", 128986), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
4119
4120 #line default
4121 #line hidden
4122 , 128987), false)
4123 , Tuple.Create(Tuple.Create(" ", 129012), Tuple.Create("dw-mod", 129013), true)
4124 );
4125
4126 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4127
4128
4129 #line 2439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4130
4131
4132 #line default
4133 #line hidden
4134
4135 #line 2439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4136 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
4137 {
4138
4139
4140 #line default
4141 #line hidden
4142 WriteLiteralTo(__razor_helper_writer, " <div");
4143
4144 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
4145
4146 WriteLiteralTo(__razor_helper_writer, "> \r\n");
4147
4148
4149 #line 2442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4150
4151
4152 #line default
4153 #line hidden
4154
4155 #line 2442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4156 if (!string.IsNullOrEmpty(settings.Label)) {
4157
4158 #line default
4159 #line hidden
4160 WriteLiteralTo(__razor_helper_writer, " <label");
4161
4162 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 129222), Tuple.Create("\"", 129240)
4163
4164 #line 2442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4165 , Tuple.Create(Tuple.Create("", 129228), Tuple.Create<System.Object, System.Int32>(settings.Id
4166
4167 #line default
4168 #line hidden
4169 , 129228), false)
4170 );
4171
4172 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
4173
4174 WriteLiteralTo(__razor_helper_writer, ">");
4175
4176
4177 #line 2442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4178 WriteTo(__razor_helper_writer, settings.Label);
4179
4180
4181 #line default
4182 #line hidden
4183 WriteLiteralTo(__razor_helper_writer, "</label> ");
4184
4185
4186 #line 2442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4187 }
4188
4189
4190 #line default
4191 #line hidden
4192 WriteLiteralTo(__razor_helper_writer, " ");
4193
4194
4195 #line 2443 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4196 if (settings.Link != null) {
4197 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
4198
4199
4200
4201 #line default
4202 #line hidden
4203 WriteLiteralTo(__razor_helper_writer, " <div");
4204
4205 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
4206
4207 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4208
4209 WriteLiteralTo(__razor_helper_writer, " ");
4210
4211
4212 #line 2447 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4213 WriteTo(__razor_helper_writer, Render(settings.Link));
4214
4215
4216 #line default
4217 #line hidden
4218 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4219
4220
4221 #line 2449 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4222 }
4223
4224
4225 #line default
4226 #line hidden
4227 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
4228
4229
4230 #line 2451 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4231
4232 }
4233
4234
4235 #line default
4236 #line hidden
4237 WriteLiteralTo(__razor_helper_writer, "\r\n");
4238
4239
4240 #line 2454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4241
4242
4243 #line default
4244 #line hidden
4245
4246 #line 2454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4247 if (!string.IsNullOrEmpty(settings.HelpText))
4248 {
4249
4250
4251 #line default
4252 #line hidden
4253 WriteLiteralTo(__razor_helper_writer, " <small");
4254
4255 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
4256
4257 WriteLiteralTo(__razor_helper_writer, ">");
4258
4259
4260 #line 2456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4261 WriteTo(__razor_helper_writer, settings.HelpText);
4262
4263
4264 #line default
4265 #line hidden
4266 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
4267
4268
4269 #line 2457 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4270 }
4271
4272
4273 #line default
4274 #line hidden
4275 WriteLiteralTo(__razor_helper_writer, "\r\n");
4276
4277
4278 #line 2459 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4279
4280
4281 #line default
4282 #line hidden
4283
4284 #line 2459 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4285 if (settings.ActionButton != null)
4286 {
4287 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
4288
4289
4290 #line default
4291 #line hidden
4292 WriteLiteralTo(__razor_helper_writer, " <div");
4293
4294 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\"");
4295
4296 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
4297
4298
4299 #line 2463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4300 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
4301
4302
4303 #line default
4304 #line hidden
4305 WriteLiteralTo(__razor_helper_writer, " class=\"");
4306
4307
4308 #line 2463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4309 WriteTo(__razor_helper_writer, settings.CssClass);
4310
4311
4312 #line default
4313 #line hidden
4314 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n");
4315
4316 WriteLiteralTo(__razor_helper_writer, " ");
4317
4318
4319 #line 2464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4320 WriteTo(__razor_helper_writer, Render(settings.ActionButton));
4321
4322
4323 #line default
4324 #line hidden
4325 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4326
4327
4328 #line 2466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4329 }
4330 else
4331 {
4332
4333
4334 #line default
4335 #line hidden
4336 WriteLiteralTo(__razor_helper_writer, " <input ");
4337
4338
4339 #line 2469 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4340 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
4341
4342
4343 #line default
4344 #line hidden
4345 WriteLiteralTo(__razor_helper_writer, " class=\"");
4346
4347
4348 #line 2469 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4349 WriteTo(__razor_helper_writer, settings.CssClass);
4350
4351
4352 #line default
4353 #line hidden
4354 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n");
4355
4356
4357 #line 2470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4358 }
4359
4360
4361 #line default
4362 #line hidden
4363 WriteLiteralTo(__razor_helper_writer, "\r\n");
4364
4365 WriteLiteralTo(__razor_helper_writer, " ");
4366
4367
4368 #line 2472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4369 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage }));
4370
4371
4372 #line default
4373 #line hidden
4374 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4375
4376
4377 #line 2474 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4378
4379
4380 #line default
4381 #line hidden
4382 });
4383
4384 #line 2474 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4385 }
4386 #line default
4387 #line hidden
4388
4389
4390 #line 2481 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4391 public RazorEngine.Templating.TemplateWriter RenderNumberField(NumberField settings)
4392 {
4393 #line default
4394 #line hidden
4395 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
4396
4397 #line 2482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4398
4399 var attributes = new Dictionary<string, string>();
4400 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
4401 {
4402 settings.Id = Guid.NewGuid().ToString("N");
4403 }
4404
4405 /*base settings*/
4406 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
4407 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
4408 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
4409 if (settings.Disabled) { attributes.Add("disabled", "true"); }
4410 if (settings.Required) { attributes.Add("required", "true"); }
4411 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
4412 /*end*/
4413
4414 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
4415 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
4416 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
4417 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
4418 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); }
4419 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); }
4420 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); }
4421 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); }
4422 attributes.Add("type", "number");
4423
4424 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
4425
4426
4427
4428 #line default
4429 #line hidden
4430 WriteLiteralTo(__razor_helper_writer, " <div");
4431
4432 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 132282), Tuple.Create("\"", 132353)
4433 , Tuple.Create(Tuple.Create("", 132290), Tuple.Create("form__field-group", 132290), true)
4434 , Tuple.Create(Tuple.Create(" ", 132307), Tuple.Create("u-full-width", 132308), true)
4435
4436 #line 2510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4437 , Tuple.Create(Tuple.Create(" ", 132320), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
4438
4439 #line default
4440 #line hidden
4441 , 132321), false)
4442 , Tuple.Create(Tuple.Create(" ", 132346), Tuple.Create("dw-mod", 132347), true)
4443 );
4444
4445 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4446
4447
4448 #line 2511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4449
4450
4451 #line default
4452 #line hidden
4453
4454 #line 2511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4455 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
4456 {
4457
4458
4459 #line default
4460 #line hidden
4461 WriteLiteralTo(__razor_helper_writer, " <div");
4462
4463 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
4464
4465 WriteLiteralTo(__razor_helper_writer, "> \r\n");
4466
4467
4468 #line 2514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4469
4470
4471 #line default
4472 #line hidden
4473
4474 #line 2514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4475 if (!string.IsNullOrEmpty(settings.Label)) {
4476
4477 #line default
4478 #line hidden
4479 WriteLiteralTo(__razor_helper_writer, " <label");
4480
4481 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 132556), Tuple.Create("\"", 132574)
4482
4483 #line 2514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4484 , Tuple.Create(Tuple.Create("", 132562), Tuple.Create<System.Object, System.Int32>(settings.Id
4485
4486 #line default
4487 #line hidden
4488 , 132562), false)
4489 );
4490
4491 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
4492
4493 WriteLiteralTo(__razor_helper_writer, ">");
4494
4495
4496 #line 2514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4497 WriteTo(__razor_helper_writer, settings.Label);
4498
4499
4500 #line default
4501 #line hidden
4502 WriteLiteralTo(__razor_helper_writer, "</label> ");
4503
4504
4505 #line 2514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4506 }
4507
4508
4509 #line default
4510 #line hidden
4511 WriteLiteralTo(__razor_helper_writer, " ");
4512
4513
4514 #line 2515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4515 if (settings.Link != null) {
4516
4517
4518 #line default
4519 #line hidden
4520 WriteLiteralTo(__razor_helper_writer, " <div");
4521
4522 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
4523
4524 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4525
4526
4527 #line 2517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4528
4529
4530 #line default
4531 #line hidden
4532
4533 #line 2517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4534 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
4535
4536 #line default
4537 #line hidden
4538 WriteLiteralTo(__razor_helper_writer, "\r\n");
4539
4540 WriteLiteralTo(__razor_helper_writer, " ");
4541
4542
4543 #line 2518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4544 WriteTo(__razor_helper_writer, RenderLink(settings.Link));
4545
4546
4547 #line default
4548 #line hidden
4549 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4550
4551
4552 #line 2520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4553 }
4554
4555
4556 #line default
4557 #line hidden
4558 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
4559
4560
4561 #line 2522 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4562
4563 }
4564
4565
4566 #line default
4567 #line hidden
4568 WriteLiteralTo(__razor_helper_writer, "\r\n");
4569
4570
4571 #line 2525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4572
4573
4574 #line default
4575 #line hidden
4576
4577 #line 2525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4578 if (!string.IsNullOrEmpty(settings.HelpText))
4579 {
4580
4581
4582 #line default
4583 #line hidden
4584 WriteLiteralTo(__razor_helper_writer, " <small");
4585
4586 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
4587
4588 WriteLiteralTo(__razor_helper_writer, ">");
4589
4590
4591 #line 2527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4592 WriteTo(__razor_helper_writer, settings.HelpText);
4593
4594
4595 #line default
4596 #line hidden
4597 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
4598
4599
4600 #line 2528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4601 }
4602
4603
4604 #line default
4605 #line hidden
4606 WriteLiteralTo(__razor_helper_writer, "\r\n");
4607
4608
4609 #line 2530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4610
4611
4612 #line default
4613 #line hidden
4614
4615 #line 2530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4616 if (settings.ActionButton != null)
4617 {
4618 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
4619
4620
4621 #line default
4622 #line hidden
4623 WriteLiteralTo(__razor_helper_writer, " <div");
4624
4625 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\"");
4626
4627 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
4628
4629
4630 #line 2534 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4631 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
4632
4633
4634 #line default
4635 #line hidden
4636 WriteLiteralTo(__razor_helper_writer, " class=\"");
4637
4638
4639 #line 2534 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4640 WriteTo(__razor_helper_writer, settings.CssClass);
4641
4642
4643 #line default
4644 #line hidden
4645 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n");
4646
4647 WriteLiteralTo(__razor_helper_writer, " ");
4648
4649
4650 #line 2535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4651 WriteTo(__razor_helper_writer, RenderButton(settings.ActionButton));
4652
4653
4654 #line default
4655 #line hidden
4656 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4657
4658
4659 #line 2537 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4660 }
4661 else
4662 {
4663
4664
4665 #line default
4666 #line hidden
4667 WriteLiteralTo(__razor_helper_writer, " <div");
4668
4669 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\"");
4670
4671 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
4672
4673
4674 #line 2541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4675 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
4676
4677
4678 #line default
4679 #line hidden
4680 WriteLiteralTo(__razor_helper_writer, " class=\"");
4681
4682
4683 #line 2541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4684 WriteTo(__razor_helper_writer, settings.CssClass);
4685
4686
4687 #line default
4688 #line hidden
4689 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n </div>\r\n");
4690
4691
4692 #line 2543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4693 }
4694
4695
4696 #line default
4697 #line hidden
4698 WriteLiteralTo(__razor_helper_writer, "\r\n");
4699
4700 WriteLiteralTo(__razor_helper_writer, " ");
4701
4702
4703 #line 2545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4704 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
4705
4706
4707 #line default
4708 #line hidden
4709 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4710
4711
4712 #line 2547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4713
4714
4715 #line default
4716 #line hidden
4717 });
4718
4719 #line 2547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4720 }
4721 #line default
4722 #line hidden
4723
4724
4725 #line 2555 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4726 public RazorEngine.Templating.TemplateWriter RenderTextareaField(TextareaField settings)
4727 {
4728 #line default
4729 #line hidden
4730 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
4731
4732 #line 2556 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4733
4734 Dictionary<string, string> attributes = new Dictionary<string, string>();
4735 string id = settings.Id;
4736 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id))
4737 {
4738 id = Guid.NewGuid().ToString("N");
4739 }
4740
4741 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); }
4742 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
4743 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
4744 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
4745 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
4746 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
4747 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); }
4748 if (settings.Disabled) { attributes.Add("disabled", "true"); }
4749 if (settings.Required) { attributes.Add("required", "true"); }
4750 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
4751 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); }
4752 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); }
4753 attributes.Add("name", settings.Name);
4754
4755 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
4756
4757
4758
4759 #line default
4760 #line hidden
4761 WriteLiteralTo(__razor_helper_writer, " <div");
4762
4763 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 135546), Tuple.Create("\"", 135604)
4764 , Tuple.Create(Tuple.Create("", 135554), Tuple.Create("form__field-group", 135554), true)
4765
4766 #line 2580 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4767 , Tuple.Create(Tuple.Create(" ", 135571), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
4768
4769 #line default
4770 #line hidden
4771 , 135572), false)
4772 , Tuple.Create(Tuple.Create(" ", 135597), Tuple.Create("dw-mod", 135598), true)
4773 );
4774
4775 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4776
4777
4778 #line 2581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4779
4780
4781 #line default
4782 #line hidden
4783
4784 #line 2581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4785 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
4786 {
4787
4788
4789 #line default
4790 #line hidden
4791 WriteLiteralTo(__razor_helper_writer, " <div");
4792
4793 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
4794
4795 WriteLiteralTo(__razor_helper_writer, "> \r\n");
4796
4797
4798 #line 2584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4799
4800
4801 #line default
4802 #line hidden
4803
4804 #line 2584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4805 if (!string.IsNullOrEmpty(settings.Label)) {
4806
4807 #line default
4808 #line hidden
4809 WriteLiteralTo(__razor_helper_writer, " <label");
4810
4811 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 135807), Tuple.Create("\"", 135825)
4812
4813 #line 2584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4814 , Tuple.Create(Tuple.Create("", 135813), Tuple.Create<System.Object, System.Int32>(settings.Id
4815
4816 #line default
4817 #line hidden
4818 , 135813), false)
4819 );
4820
4821 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
4822
4823 WriteLiteralTo(__razor_helper_writer, ">");
4824
4825
4826 #line 2584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4827 WriteTo(__razor_helper_writer, settings.Label);
4828
4829
4830 #line default
4831 #line hidden
4832 WriteLiteralTo(__razor_helper_writer, "</label> ");
4833
4834
4835 #line 2584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4836 }
4837
4838
4839 #line default
4840 #line hidden
4841 WriteLiteralTo(__razor_helper_writer, " ");
4842
4843
4844 #line 2585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4845 if (settings.Link != null) {
4846
4847
4848 #line default
4849 #line hidden
4850 WriteLiteralTo(__razor_helper_writer, " <div");
4851
4852 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
4853
4854 WriteLiteralTo(__razor_helper_writer, ">\r\n");
4855
4856
4857 #line 2587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4858
4859
4860 #line default
4861 #line hidden
4862
4863 #line 2587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4864 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
4865
4866 #line default
4867 #line hidden
4868 WriteLiteralTo(__razor_helper_writer, "\r\n");
4869
4870 WriteLiteralTo(__razor_helper_writer, " ");
4871
4872
4873 #line 2588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4874 WriteTo(__razor_helper_writer, Render(settings.Link));
4875
4876
4877 #line default
4878 #line hidden
4879 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4880
4881
4882 #line 2590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4883 }
4884
4885
4886 #line default
4887 #line hidden
4888 WriteLiteralTo(__razor_helper_writer, " </div> \r\n");
4889
4890
4891 #line 2592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4892 }
4893
4894
4895 #line default
4896 #line hidden
4897 WriteLiteralTo(__razor_helper_writer, "\r\n");
4898
4899
4900 #line 2594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4901
4902
4903 #line default
4904 #line hidden
4905
4906 #line 2594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4907 if (!string.IsNullOrEmpty(settings.HelpText))
4908 {
4909
4910
4911 #line default
4912 #line hidden
4913 WriteLiteralTo(__razor_helper_writer, " <small");
4914
4915 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
4916
4917 WriteLiteralTo(__razor_helper_writer, ">");
4918
4919
4920 #line 2596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4921 WriteTo(__razor_helper_writer, settings.HelpText);
4922
4923
4924 #line default
4925 #line hidden
4926 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
4927
4928
4929 #line 2597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4930 }
4931
4932
4933 #line default
4934 #line hidden
4935 WriteLiteralTo(__razor_helper_writer, "\r\n <textarea");
4936
4937 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 136351), Tuple.Create("\"", 136397)
4938 , Tuple.Create(Tuple.Create("", 136359), Tuple.Create("u-full-width", 136359), true)
4939
4940 #line 2599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4941 , Tuple.Create(Tuple.Create(" ", 136371), Tuple.Create<System.Object, System.Int32>(settings.CssClass
4942
4943 #line default
4944 #line hidden
4945 , 136372), false)
4946 , Tuple.Create(Tuple.Create(" ", 136390), Tuple.Create("dw-mod", 136391), true)
4947 );
4948
4949 WriteLiteralTo(__razor_helper_writer, " ");
4950
4951
4952 #line 2599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4953 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
4954
4955
4956 #line default
4957 #line hidden
4958 WriteLiteralTo(__razor_helper_writer, " ");
4959
4960
4961 #line 2599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4962 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
4963
4964
4965 #line default
4966 #line hidden
4967 WriteLiteralTo(__razor_helper_writer, ">");
4968
4969
4970 #line 2599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4971 WriteTo(__razor_helper_writer, settings.Value);
4972
4973
4974 #line default
4975 #line hidden
4976 WriteLiteralTo(__razor_helper_writer, "</textarea>\r\n\r\n");
4977
4978 WriteLiteralTo(__razor_helper_writer, " ");
4979
4980
4981 #line 2601 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4982 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage }));
4983
4984
4985 #line default
4986 #line hidden
4987 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
4988
4989
4990 #line 2603 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4991
4992
4993 #line default
4994 #line hidden
4995 });
4996
4997 #line 2603 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
4998 }
4999 #line default
5000 #line hidden
5001
5002
5003 #line 2611 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5004 public RazorEngine.Templating.TemplateWriter RenderHiddenField(HiddenField settings) {
5005 #line default
5006 #line hidden
5007 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
5008
5009 #line 2611 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5010
5011 var attributes = new Dictionary<string, string>();
5012 attributes.Add("type", "hidden");
5013 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
5014 if (settings.Value != null) { attributes.Add("value", settings.Value); }
5015 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
5016
5017
5018
5019 #line default
5020 #line hidden
5021 WriteLiteralTo(__razor_helper_writer, " <input ");
5022
5023
5024 #line 2618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5025 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
5026
5027
5028 #line default
5029 #line hidden
5030 WriteLiteralTo(__razor_helper_writer, " ");
5031
5032
5033 #line 2618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5034 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
5035
5036
5037 #line default
5038 #line hidden
5039 WriteLiteralTo(__razor_helper_writer, "/>\r\n");
5040
5041
5042 #line 2619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5043
5044
5045 #line default
5046 #line hidden
5047 });
5048
5049 #line 2619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5050 }
5051 #line default
5052 #line hidden
5053
5054
5055 #line 2626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5056 public RazorEngine.Templating.TemplateWriter RenderCheckboxField(CheckboxField settings)
5057 {
5058 #line default
5059 #line hidden
5060 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
5061
5062 #line 2627 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5063
5064 var attributes = new Dictionary<string, string>();
5065 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
5066 {
5067 settings.Id = Guid.NewGuid().ToString("N");
5068 }
5069
5070 /*base settings*/
5071 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
5072 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
5073 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
5074 if (settings.Disabled) { attributes.Add("disabled", "true"); }
5075 if (settings.Required) { attributes.Add("required", "true"); }
5076 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
5077 /*end*/
5078
5079 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
5080
5081 attributes.Add("type", "checkbox");
5082 if (settings.Checked) { attributes.Add("checked", "true"); }
5083 settings.CssClass = "form__control " + settings.CssClass;
5084 if (settings.Value != null) { attributes.Add("value", settings.Value); }
5085
5086 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
5087
5088
5089
5090 #line default
5091 #line hidden
5092 WriteLiteralTo(__razor_helper_writer, " <div");
5093
5094 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 138793), Tuple.Create("\"", 138851)
5095 , Tuple.Create(Tuple.Create("", 138801), Tuple.Create("form__field-group", 138801), true)
5096
5097 #line 2652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5098 , Tuple.Create(Tuple.Create(" ", 138818), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
5099
5100 #line default
5101 #line hidden
5102 , 138819), false)
5103 , Tuple.Create(Tuple.Create(" ", 138844), Tuple.Create("dw-mod", 138845), true)
5104 );
5105
5106 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
5107
5108
5109 #line 2653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5110 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
5111
5112
5113 #line default
5114 #line hidden
5115 WriteLiteralTo(__razor_helper_writer, " class=\"");
5116
5117
5118 #line 2653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5119 WriteTo(__razor_helper_writer, settings.CssClass);
5120
5121
5122 #line default
5123 #line hidden
5124 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n");
5125
5126
5127 #line 2654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5128
5129
5130 #line default
5131 #line hidden
5132
5133 #line 2654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5134 if (!string.IsNullOrEmpty(settings.Label))
5135 {
5136
5137
5138 #line default
5139 #line hidden
5140 WriteLiteralTo(__razor_helper_writer, " <label");
5141
5142 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 139040), Tuple.Create("\"", 139058)
5143
5144 #line 2656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5145 , Tuple.Create(Tuple.Create("", 139046), Tuple.Create<System.Object, System.Int32>(settings.Id
5146
5147 #line default
5148 #line hidden
5149 , 139046), false)
5150 );
5151
5152 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\"");
5153
5154 WriteLiteralTo(__razor_helper_writer, ">");
5155
5156
5157 #line 2656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5158 WriteTo(__razor_helper_writer, settings.Label);
5159
5160
5161 #line default
5162 #line hidden
5163 WriteLiteralTo(__razor_helper_writer, "</label>\r\n");
5164
5165
5166 #line 2657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5167 }
5168
5169
5170 #line default
5171 #line hidden
5172 WriteLiteralTo(__razor_helper_writer, "\r\n");
5173
5174
5175 #line 2659 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5176
5177
5178 #line default
5179 #line hidden
5180
5181 #line 2659 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5182 if (settings.Link != null) {
5183
5184
5185 #line default
5186 #line hidden
5187 WriteLiteralTo(__razor_helper_writer, " <span>\r\n");
5188
5189
5190 #line 2661 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5191
5192
5193 #line default
5194 #line hidden
5195
5196 #line 2661 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5197 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
5198
5199 #line default
5200 #line hidden
5201 WriteLiteralTo(__razor_helper_writer, "\r\n");
5202
5203 WriteLiteralTo(__razor_helper_writer, " ");
5204
5205
5206 #line 2662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5207 WriteTo(__razor_helper_writer, RenderLink(settings.Link));
5208
5209
5210 #line default
5211 #line hidden
5212 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n");
5213
5214
5215 #line 2664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5216 }
5217
5218
5219 #line default
5220 #line hidden
5221 WriteLiteralTo(__razor_helper_writer, "\r\n");
5222
5223
5224 #line 2666 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5225
5226
5227 #line default
5228 #line hidden
5229
5230 #line 2666 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5231 if (!string.IsNullOrEmpty(settings.HelpText))
5232 {
5233
5234
5235 #line default
5236 #line hidden
5237 WriteLiteralTo(__razor_helper_writer, " <small");
5238
5239 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text checkbox-help dw-mod\"");
5240
5241 WriteLiteralTo(__razor_helper_writer, ">");
5242
5243
5244 #line 2668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5245 WriteTo(__razor_helper_writer, settings.HelpText);
5246
5247
5248 #line default
5249 #line hidden
5250 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
5251
5252
5253 #line 2669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5254 }
5255
5256
5257 #line default
5258 #line hidden
5259 WriteLiteralTo(__razor_helper_writer, " ");
5260
5261
5262 #line 2670 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5263 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
5264
5265
5266 #line default
5267 #line hidden
5268 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
5269
5270
5271 #line 2672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5272
5273
5274 #line default
5275 #line hidden
5276 });
5277
5278 #line 2672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5279 }
5280 #line default
5281 #line hidden
5282
5283
5284 #line 2680 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5285 public RazorEngine.Templating.TemplateWriter RenderCheckboxListField(CheckboxListField settings)
5286 {
5287 #line default
5288 #line hidden
5289 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
5290
5291 #line 2681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5292
5293
5294
5295 #line default
5296 #line hidden
5297 WriteLiteralTo(__razor_helper_writer, " <div");
5298
5299 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 139824), Tuple.Create("\"", 139898)
5300 , Tuple.Create(Tuple.Create("", 139832), Tuple.Create("form__field-group", 139832), true)
5301
5302 #line 2682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5303 , Tuple.Create(Tuple.Create(" ", 139849), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
5304
5305 #line default
5306 #line hidden
5307 , 139850), false)
5308 , Tuple.Create(Tuple.Create(" ", 139875), Tuple.Create("u-margin-bottom", 139876), true)
5309 , Tuple.Create(Tuple.Create(" ", 139891), Tuple.Create("dw-mod", 139892), true)
5310 );
5311
5312 WriteLiteralTo(__razor_helper_writer, " ");
5313
5314
5315 #line 2682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5316 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
5317
5318
5319 #line default
5320 #line hidden
5321 WriteLiteralTo(__razor_helper_writer, ">\r\n");
5322
5323
5324 #line 2683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5325
5326
5327 #line default
5328 #line hidden
5329
5330 #line 2683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5331 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
5332 {
5333
5334
5335 #line default
5336 #line hidden
5337 WriteLiteralTo(__razor_helper_writer, " <div");
5338
5339 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
5340
5341 WriteLiteralTo(__razor_helper_writer, "> \r\n");
5342
5343
5344 #line 2686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5345
5346
5347 #line default
5348 #line hidden
5349
5350 #line 2686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5351 if (!string.IsNullOrEmpty(settings.Label)) {
5352
5353 #line default
5354 #line hidden
5355 WriteLiteralTo(__razor_helper_writer, " <label");
5356
5357 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 140159), Tuple.Create("\"", 140177)
5358
5359 #line 2686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5360 , Tuple.Create(Tuple.Create("", 140165), Tuple.Create<System.Object, System.Int32>(settings.Id
5361
5362 #line default
5363 #line hidden
5364 , 140165), false)
5365 );
5366
5367 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
5368
5369 WriteLiteralTo(__razor_helper_writer, ">");
5370
5371
5372 #line 2686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5373 WriteTo(__razor_helper_writer, settings.Label);
5374
5375
5376 #line default
5377 #line hidden
5378 WriteLiteralTo(__razor_helper_writer, "</label> ");
5379
5380
5381 #line 2686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5382 }
5383
5384
5385 #line default
5386 #line hidden
5387 WriteLiteralTo(__razor_helper_writer, " ");
5388
5389
5390 #line 2687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5391 if (settings.Link != null) {
5392
5393
5394 #line default
5395 #line hidden
5396 WriteLiteralTo(__razor_helper_writer, " <div");
5397
5398 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
5399
5400 WriteLiteralTo(__razor_helper_writer, ">\r\n");
5401
5402
5403 #line 2689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5404
5405
5406 #line default
5407 #line hidden
5408
5409 #line 2689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5410 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
5411
5412 #line default
5413 #line hidden
5414 WriteLiteralTo(__razor_helper_writer, "\r\n");
5415
5416 WriteLiteralTo(__razor_helper_writer, " ");
5417
5418
5419 #line 2690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5420 WriteTo(__razor_helper_writer, RenderLink(settings.Link));
5421
5422
5423 #line default
5424 #line hidden
5425 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
5426
5427
5428 #line 2692 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5429 }
5430
5431
5432 #line default
5433 #line hidden
5434 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
5435
5436
5437 #line 2694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5438
5439 }
5440
5441
5442 #line default
5443 #line hidden
5444 WriteLiteralTo(__razor_helper_writer, "\r\n <div");
5445
5446 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
5447
5448 WriteLiteralTo(__razor_helper_writer, ">\r\n");
5449
5450
5451 #line 2698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5452
5453
5454 #line default
5455 #line hidden
5456
5457 #line 2698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5458 if (!string.IsNullOrEmpty(settings.HelpText))
5459 {
5460
5461
5462 #line default
5463 #line hidden
5464 WriteLiteralTo(__razor_helper_writer, " <small");
5465
5466 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
5467
5468 WriteLiteralTo(__razor_helper_writer, ">");
5469
5470
5471 #line 2700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5472 WriteTo(__razor_helper_writer, settings.HelpText);
5473
5474
5475 #line default
5476 #line hidden
5477 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
5478
5479
5480 #line 2701 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5481 }
5482
5483
5484 #line default
5485 #line hidden
5486 WriteLiteralTo(__razor_helper_writer, "\r\n");
5487
5488
5489 #line 2703 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5490
5491
5492 #line default
5493 #line hidden
5494
5495 #line 2703 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5496 foreach (var item in settings.Options)
5497 {
5498 if (settings.Required)
5499 {
5500 item.Required = true;
5501 }
5502 if (settings.Disabled)
5503 {
5504 item.Disabled = true;
5505 }
5506 if (!string.IsNullOrEmpty(settings.Name))
5507 {
5508 item.Name = settings.Name;
5509 }
5510 if (!string.IsNullOrEmpty(settings.CssClass))
5511 {
5512 item.CssClass += settings.CssClass;
5513 }
5514
5515 /* value is not supported */
5516
5517 if (!string.IsNullOrEmpty(settings.OnClick))
5518 {
5519 item.OnClick += settings.OnClick;
5520 }
5521 if (!string.IsNullOrEmpty(settings.OnChange))
5522 {
5523 item.OnChange += settings.OnChange;
5524 }
5525
5526
5527 #line default
5528 #line hidden
5529
5530 #line 2732 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5531 WriteTo(__razor_helper_writer, Render(item));
5532
5533
5534 #line default
5535 #line hidden
5536
5537 #line 2732 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5538
5539 }
5540
5541
5542 #line default
5543 #line hidden
5544 WriteLiteralTo(__razor_helper_writer, "\r\n");
5545
5546 WriteLiteralTo(__razor_helper_writer, " ");
5547
5548
5549 #line 2735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5550 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
5551
5552
5553 #line default
5554 #line hidden
5555 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n </div>\r\n");
5556
5557
5558 #line 2739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5559
5560
5561 #line default
5562 #line hidden
5563 });
5564
5565 #line 2739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5566 }
5567 #line default
5568 #line hidden
5569
5570
5571 #line 2744 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5572 public RazorEngine.Templating.TemplateWriter RenderSearch(Search settings)
5573 {
5574 #line default
5575 #line hidden
5576 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
5577
5578 #line 2745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5579
5580 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? "";
5581 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? "";
5582
5583 if (string.IsNullOrEmpty(settings.Id))
5584 {
5585 settings.Id = Guid.NewGuid().ToString("N");
5586 }
5587
5588 var resultAttributes = new Dictionary<string, string>();
5589
5590 if (settings.PageSize != 0)
5591 {
5592 resultAttributes.Add("data-page-size", settings.PageSize.ToString());
5593 }
5594 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl))
5595 {
5596 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl);
5597 if (!string.IsNullOrEmpty(groupValue))
5598 {
5599 resultAttributes.Add("data-selected-group", groupValue);
5600 }
5601 if (!string.IsNullOrEmpty(settings.GroupsParameter))
5602 {
5603 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter);
5604 }
5605 }
5606 resultAttributes.Add("data-force-init", "true");
5607 if (settings.GoToFirstSearchResultOnEnter)
5608 {
5609 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower());
5610 }
5611 if (!string.IsNullOrEmpty(settings.SearchParameter))
5612 {
5613 resultAttributes.Add("data-search-parameter", settings.SearchParameter);
5614 }
5615 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl);
5616 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId);
5617
5618 if (settings.SecondSearchData != null)
5619 {
5620 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl);
5621 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId);
5622 }
5623 if (!string.IsNullOrEmpty(settings.ResultsPageUrl))
5624 {
5625 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl);
5626 }
5627
5628 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
5629
5630 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : "";
5631
5632
5633
5634 #line default
5635 #line hidden
5636 WriteLiteralTo(__razor_helper_writer, " <div");
5637
5638 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 144265), Tuple.Create("\"", 144343)
5639 , Tuple.Create(Tuple.Create("", 144273), Tuple.Create("search", 144273), true)
5640
5641 #line 2798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5642 , Tuple.Create(Tuple.Create(" ", 144279), Tuple.Create<System.Object, System.Int32>(settings.CssClass
5643
5644 #line default
5645 #line hidden
5646 , 144280), false)
5647
5648 #line 2798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5649 , Tuple.Create(Tuple.Create(" ", 144298), Tuple.Create<System.Object, System.Int32>(searchFieldCss
5650
5651 #line default
5652 #line hidden
5653 , 144299), false)
5654 , Tuple.Create(Tuple.Create(" ", 144314), Tuple.Create("js-search-data-source", 144315), true)
5655 , Tuple.Create(Tuple.Create(" ", 144336), Tuple.Create("dw-mod", 144337), true)
5656 );
5657
5658 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 144344), Tuple.Create("\"", 144361)
5659
5660 #line 2798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5661 , Tuple.Create(Tuple.Create("", 144349), Tuple.Create<System.Object, System.Int32>(settings.Id
5662
5663 #line default
5664 #line hidden
5665 , 144349), false)
5666 );
5667
5668 WriteLiteralTo(__razor_helper_writer, " ");
5669
5670
5671 #line 2798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5672 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
5673
5674
5675 #line default
5676 #line hidden
5677 WriteLiteralTo(__razor_helper_writer, ">\r\n");
5678
5679
5680 #line 2799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5681
5682
5683 #line default
5684 #line hidden
5685
5686 #line 2799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5687 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl))
5688 {
5689
5690
5691 #line default
5692 #line hidden
5693 WriteLiteralTo(__razor_helper_writer, " <button");
5694
5695 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
5696
5697 WriteLiteralTo(__razor_helper_writer, " class=\"search__groups-btn dw-mod js-search-groups-btn\"");
5698
5699 WriteLiteralTo(__razor_helper_writer, ">");
5700
5701
5702 #line 2801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5703 WriteTo(__razor_helper_writer, Translate("All"));
5704
5705
5706 #line default
5707 #line hidden
5708 WriteLiteralTo(__razor_helper_writer, "</button>\r\n");
5709
5710 WriteLiteralTo(__razor_helper_writer, " <ul");
5711
5712 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown dropdown--absolute-position dw-mod search__groups-results js-sea" +
5713 "rch-groups-list\"");
5714
5715 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
5716
5717
5718 #line 2803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5719 }
5720
5721
5722 #line default
5723 #line hidden
5724 WriteLiteralTo(__razor_helper_writer, "\r\n <input");
5725
5726 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
5727
5728 WriteLiteralTo(__razor_helper_writer, " class=\"search__field dw-mod js-search-field\"");
5729
5730 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 144812), Tuple.Create("\"", 144847)
5731
5732 #line 2805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5733 , Tuple.Create(Tuple.Create("", 144826), Tuple.Create<System.Object, System.Int32>(settings.Placeholder
5734
5735 #line default
5736 #line hidden
5737 , 144826), false)
5738 );
5739
5740 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 144848), Tuple.Create("\"", 144868)
5741
5742 #line 2805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5743 , Tuple.Create(Tuple.Create("", 144856), Tuple.Create<System.Object, System.Int32>(searchValue
5744
5745 #line default
5746 #line hidden
5747 , 144856), false)
5748 );
5749
5750 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div");
5751
5752 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 144894), Tuple.Create("\"", 145051)
5753 , Tuple.Create(Tuple.Create("", 144902), Tuple.Create("dropdown", 144902), true)
5754 , Tuple.Create(Tuple.Create(" ", 144910), Tuple.Create("dropdown--absolute-position", 144911), true)
5755 , Tuple.Create(Tuple.Create(" ", 144938), Tuple.Create("search__results", 144939), true)
5756 , Tuple.Create(Tuple.Create(" ", 144954), Tuple.Create("dw-mod", 144955), true)
5757 , Tuple.Create(Tuple.Create(" ", 144961), Tuple.Create("js-search-results", 144962), true)
5758
5759 #line 2807 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5760 , Tuple.Create(Tuple.Create(" ", 144979), Tuple.Create<System.Object, System.Int32>(settings.SecondSearchData != null ? "search__results--combined" : ""
5761
5762 #line default
5763 #line hidden
5764 , 144980), false)
5765 );
5766
5767 WriteLiteralTo(__razor_helper_writer, ">\r\n");
5768
5769
5770 #line 2808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5771
5772
5773 #line default
5774 #line hidden
5775
5776 #line 2808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5777 if (settings.SecondSearchData != null)
5778 {
5779
5780
5781 #line default
5782 #line hidden
5783 WriteLiteralTo(__razor_helper_writer, " <div");
5784
5785 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--products dw-mod\"");
5786
5787 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
5788
5789 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header dw-mod\"");
5790
5791 WriteLiteralTo(__razor_helper_writer, ">");
5792
5793
5794 #line 2811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5795 WriteTo(__razor_helper_writer, Translate("Products"));
5796
5797
5798 #line default
5799 #line hidden
5800 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul");
5801
5802 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\"");
5803
5804 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 145375), Tuple.Create("\"", 145406)
5805
5806 #line 2812 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5807 , Tuple.Create(Tuple.Create("", 145380), Tuple.Create<System.Object, System.Int32>(settings.Id
5808
5809 #line default
5810 #line hidden
5811 , 145380), false)
5812 , Tuple.Create(Tuple.Create("", 145394), Tuple.Create("_ResultsList", 145394), true)
5813 );
5814
5815 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
5816
5817
5818 #line 2813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5819
5820
5821 #line default
5822 #line hidden
5823
5824 #line 2813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5825 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl))
5826 {
5827
5828
5829 #line default
5830 #line hidden
5831
5832 #line 2815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5833 WriteTo(__razor_helper_writer, Render(new Link {
5834 Title = Translate("View all"),
5835 CssClass = "js-view-all-button u-margin",
5836 Href = settings.SearchData.ResultsPageUrl
5837 }));
5838
5839
5840 #line default
5841 #line hidden
5842
5843 #line 2819 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5844 ;
5845 }
5846
5847
5848 #line default
5849 #line hidden
5850 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
5851
5852 WriteLiteralTo(__razor_helper_writer, " <div");
5853
5854 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--pages dw-mod\"");
5855
5856 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
5857
5858 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header\"");
5859
5860 WriteLiteralTo(__razor_helper_writer, ">");
5861
5862
5863 #line 2823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5864 WriteTo(__razor_helper_writer, Translate("Pages"));
5865
5866
5867 #line default
5868 #line hidden
5869 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul");
5870
5871 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-second-list\"");
5872
5873 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 146091), Tuple.Create("\"", 146128)
5874
5875 #line 2824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5876 , Tuple.Create(Tuple.Create("", 146096), Tuple.Create<System.Object, System.Int32>(settings.Id
5877
5878 #line default
5879 #line hidden
5880 , 146096), false)
5881 , Tuple.Create(Tuple.Create("", 146110), Tuple.Create("_SecondResultsList", 146110), true)
5882 );
5883
5884 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
5885
5886
5887 #line 2825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5888
5889
5890 #line default
5891 #line hidden
5892
5893 #line 2825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5894 if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl))
5895 {
5896
5897
5898 #line default
5899 #line hidden
5900
5901 #line 2827 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5902 WriteTo(__razor_helper_writer, Render(new Link
5903 {
5904 Title = Translate("View all"),
5905 CssClass = "js-view-all-button u-margin",
5906 Href = settings.SecondSearchData.ResultsPageUrl
5907 }));
5908
5909
5910 #line default
5911 #line hidden
5912
5913 #line 2832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5914 ;
5915 }
5916
5917
5918 #line default
5919 #line hidden
5920 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
5921
5922
5923 #line 2835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5924 }
5925 else
5926 {
5927
5928
5929 #line default
5930 #line hidden
5931 WriteLiteralTo(__razor_helper_writer, " <div");
5932
5933 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--only dw-mod\"");
5934
5935 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul");
5936
5937 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\"");
5938
5939 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 146808), Tuple.Create("\"", 146839)
5940
5941 #line 2839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5942 , Tuple.Create(Tuple.Create("", 146813), Tuple.Create<System.Object, System.Int32>(settings.Id
5943
5944 #line default
5945 #line hidden
5946 , 146813), false)
5947 , Tuple.Create(Tuple.Create("", 146827), Tuple.Create("_ResultsList", 146827), true)
5948 );
5949
5950 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
5951
5952
5953 #line 2840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5954
5955
5956 #line default
5957 #line hidden
5958
5959 #line 2840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5960 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl))
5961 {
5962
5963
5964 #line default
5965 #line hidden
5966
5967 #line 2842 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5968 WriteTo(__razor_helper_writer, Render(new Link {
5969 Title = Translate("View all"),
5970 CssClass = "js-view-all-button u-margin",
5971 Href = settings.SearchData.ResultsPageUrl
5972 }));
5973
5974
5975 #line default
5976 #line hidden
5977
5978 #line 2846 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5979 ;
5980 }
5981
5982
5983 #line default
5984 #line hidden
5985 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
5986
5987
5988 #line 2849 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5989 }
5990
5991
5992 #line default
5993 #line hidden
5994 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n");
5995
5996
5997 #line 2852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
5998
5999
6000 #line default
6001 #line hidden
6002
6003 #line 2852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6004 if (settings.SearchButton != null)
6005 {
6006 settings.SearchButton.CssClass += " search__btn js-search-btn";
6007 if (settings.RenderDefaultSearchIcon)
6008 {
6009 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue };
6010 }
6011
6012
6013 #line default
6014 #line hidden
6015
6016 #line 2859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6017 WriteTo(__razor_helper_writer, Render(settings.SearchButton));
6018
6019
6020 #line default
6021 #line hidden
6022
6023 #line 2859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6024 ;
6025 }
6026
6027
6028 #line default
6029 #line hidden
6030 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
6031
6032
6033 #line 2862 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6034
6035
6036 #line default
6037 #line hidden
6038 });
6039
6040 #line 2862 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6041 }
6042 #line default
6043 #line hidden
6044
6045
6046 #line 2870 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6047 public RazorEngine.Templating.TemplateWriter RenderSelectField(SelectField settings)
6048 {
6049 #line default
6050 #line hidden
6051 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6052
6053 #line 2871 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6054
6055 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
6056 {
6057 settings.Id = Guid.NewGuid().ToString("N");
6058 }
6059
6060
6061
6062 #line default
6063 #line hidden
6064 WriteLiteralTo(__razor_helper_writer, " <div");
6065
6066 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 148115), Tuple.Create("\"", 148186)
6067 , Tuple.Create(Tuple.Create("", 148123), Tuple.Create("form__field-group", 148123), true)
6068 , Tuple.Create(Tuple.Create(" ", 148140), Tuple.Create("u-full-width", 148141), true)
6069
6070 #line 2877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6071 , Tuple.Create(Tuple.Create(" ", 148153), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
6072
6073 #line default
6074 #line hidden
6075 , 148154), false)
6076 , Tuple.Create(Tuple.Create(" ", 148179), Tuple.Create("dw-mod", 148180), true)
6077 );
6078
6079 WriteLiteralTo(__razor_helper_writer, ">\r\n");
6080
6081
6082 #line 2878 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6083
6084
6085 #line default
6086 #line hidden
6087
6088 #line 2878 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6089 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
6090 {
6091
6092
6093 #line default
6094 #line hidden
6095 WriteLiteralTo(__razor_helper_writer, " <div");
6096
6097 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\"");
6098
6099 WriteLiteralTo(__razor_helper_writer, "> \r\n");
6100
6101
6102 #line 2881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6103
6104
6105 #line default
6106 #line hidden
6107
6108 #line 2881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6109 if (!string.IsNullOrEmpty(settings.Label)) {
6110
6111 #line default
6112 #line hidden
6113 WriteLiteralTo(__razor_helper_writer, " <label");
6114
6115 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 148389), Tuple.Create("\"", 148407)
6116
6117 #line 2881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6118 , Tuple.Create(Tuple.Create("", 148395), Tuple.Create<System.Object, System.Int32>(settings.Id
6119
6120 #line default
6121 #line hidden
6122 , 148395), false)
6123 );
6124
6125 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\"");
6126
6127 WriteLiteralTo(__razor_helper_writer, ">");
6128
6129
6130 #line 2881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6131 WriteTo(__razor_helper_writer, settings.Label);
6132
6133
6134 #line default
6135 #line hidden
6136 WriteLiteralTo(__razor_helper_writer, "</label> ");
6137
6138
6139 #line 2881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6140 }
6141
6142
6143 #line default
6144 #line hidden
6145 WriteLiteralTo(__razor_helper_writer, " ");
6146
6147
6148 #line 2882 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6149 if (settings.Link != null) {
6150
6151
6152 #line default
6153 #line hidden
6154 WriteLiteralTo(__razor_helper_writer, " <div");
6155
6156 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\"");
6157
6158 WriteLiteralTo(__razor_helper_writer, ">\r\n");
6159
6160
6161 #line 2884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6162
6163
6164 #line default
6165 #line hidden
6166
6167 #line 2884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6168 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
6169
6170 #line default
6171 #line hidden
6172 WriteLiteralTo(__razor_helper_writer, "\r\n");
6173
6174 WriteLiteralTo(__razor_helper_writer, " ");
6175
6176
6177 #line 2885 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6178 WriteTo(__razor_helper_writer, Render(settings.Link));
6179
6180
6181 #line default
6182 #line hidden
6183 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
6184
6185
6186 #line 2887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6187 }
6188
6189
6190 #line default
6191 #line hidden
6192 WriteLiteralTo(__razor_helper_writer, " </div> \r\n");
6193
6194
6195 #line 2889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6196 }
6197
6198
6199 #line default
6200 #line hidden
6201 WriteLiteralTo(__razor_helper_writer, "\r\n");
6202
6203
6204 #line 2891 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6205
6206
6207 #line default
6208 #line hidden
6209
6210 #line 2891 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6211 if (!string.IsNullOrEmpty(settings.HelpText))
6212 {
6213
6214
6215 #line default
6216 #line hidden
6217 WriteLiteralTo(__razor_helper_writer, " <small");
6218
6219 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
6220
6221 WriteLiteralTo(__razor_helper_writer, ">");
6222
6223
6224 #line 2893 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6225 WriteTo(__razor_helper_writer, settings.HelpText);
6226
6227
6228 #line default
6229 #line hidden
6230 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
6231
6232
6233 #line 2894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6234 }
6235
6236
6237 #line default
6238 #line hidden
6239 WriteLiteralTo(__razor_helper_writer, "\r\n");
6240
6241
6242 #line 2896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6243
6244
6245 #line default
6246 #line hidden
6247
6248 #line 2896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6249 if (settings.ActionButton != null)
6250 {
6251 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
6252
6253
6254 #line default
6255 #line hidden
6256 WriteLiteralTo(__razor_helper_writer, " <div");
6257
6258 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\"");
6259
6260 WriteLiteralTo(__razor_helper_writer, ">\r\n");
6261
6262 WriteLiteralTo(__razor_helper_writer, " ");
6263
6264
6265 #line 2900 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6266 WriteTo(__razor_helper_writer, RenderSelectBase(settings));
6267
6268
6269 #line default
6270 #line hidden
6271 WriteLiteralTo(__razor_helper_writer, "\r\n");
6272
6273 WriteLiteralTo(__razor_helper_writer, " ");
6274
6275
6276 #line 2901 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6277 WriteTo(__razor_helper_writer, Render(settings.ActionButton));
6278
6279
6280 #line default
6281 #line hidden
6282 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
6283
6284
6285 #line 2903 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6286 }
6287 else
6288 {
6289
6290
6291 #line default
6292 #line hidden
6293
6294 #line 2906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6295 WriteTo(__razor_helper_writer, RenderSelectBase(settings));
6296
6297
6298 #line default
6299 #line hidden
6300
6301 #line 2906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6302
6303 }
6304
6305
6306 #line default
6307 #line hidden
6308 WriteLiteralTo(__razor_helper_writer, "\r\n");
6309
6310 WriteLiteralTo(__razor_helper_writer, " ");
6311
6312
6313 #line 2909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6314 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage }));
6315
6316
6317 #line default
6318 #line hidden
6319 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
6320
6321
6322 #line 2911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6323
6324
6325 #line default
6326 #line hidden
6327 });
6328
6329 #line 2911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6330 }
6331 #line default
6332 #line hidden
6333
6334
6335 #line 2913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6336 public RazorEngine.Templating.TemplateWriter RenderSelectBase(SelectField settings)
6337 {
6338 #line default
6339 #line hidden
6340 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6341
6342 #line 2914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6343
6344 var attributes = new Dictionary<string, string>();
6345
6346 /*base settings*/
6347 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
6348 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
6349 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
6350 if (settings.Disabled) { attributes.Add("disabled", "true"); }
6351 if (settings.Required) { attributes.Add("required", "true"); }
6352 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
6353 /*end*/
6354
6355 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
6356
6357
6358
6359 #line default
6360 #line hidden
6361 WriteLiteralTo(__razor_helper_writer, " <select ");
6362
6363
6364 #line 2928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6365 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
6366
6367
6368 #line default
6369 #line hidden
6370 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width ");
6371
6372
6373 #line 2928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6374 WriteTo(__razor_helper_writer, settings.CssClass);
6375
6376
6377 #line default
6378 #line hidden
6379 WriteLiteralTo(__razor_helper_writer, " dw-mod\">\r\n");
6380
6381
6382 #line 2929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6383
6384
6385 #line default
6386 #line hidden
6387
6388 #line 2929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6389 if (settings.Default != null)
6390 {
6391
6392
6393 #line default
6394 #line hidden
6395
6396 #line 2931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6397 WriteTo(__razor_helper_writer, Render(settings.Default));
6398
6399
6400 #line default
6401 #line hidden
6402
6403 #line 2931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6404
6405 }
6406
6407
6408 #line default
6409 #line hidden
6410 WriteLiteralTo(__razor_helper_writer, "\r\n");
6411
6412
6413 #line 2934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6414
6415
6416 #line default
6417 #line hidden
6418
6419 #line 2934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6420 foreach (var item in settings.Options)
6421 {
6422 if (settings.Value != null) {
6423 item.Checked = item.Value == settings.Value;
6424 }
6425
6426
6427 #line default
6428 #line hidden
6429
6430 #line 2939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6431 WriteTo(__razor_helper_writer, Render(item));
6432
6433
6434 #line default
6435 #line hidden
6436
6437 #line 2939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6438
6439 }
6440
6441
6442 #line default
6443 #line hidden
6444 WriteLiteralTo(__razor_helper_writer, " </select>\r\n");
6445
6446
6447 #line 2942 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6448
6449
6450 #line default
6451 #line hidden
6452 });
6453
6454 #line 2942 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6455 }
6456 #line default
6457 #line hidden
6458
6459
6460 #line 2949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6461 public RazorEngine.Templating.TemplateWriter RenderRadioButtonField(RadioButtonField settings)
6462 {
6463 #line default
6464 #line hidden
6465 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6466
6467 #line 2950 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6468
6469 var attributes = new Dictionary<string, string>();
6470 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
6471 {
6472 settings.Id = Guid.NewGuid().ToString("N");
6473 }
6474
6475 /*base settings*/
6476 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
6477 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
6478 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
6479 if (settings.Disabled) { attributes.Add("disabled", "true"); }
6480 if (settings.Required) { attributes.Add("required", "true"); }
6481 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
6482 /*end*/
6483
6484 attributes.Add("type", "radio");
6485 if (settings.Checked) { attributes.Add("checked", "true"); }
6486 settings.CssClass = "form__control " + settings.CssClass;
6487 if (settings.Value != null) { attributes.Add("value", settings.Value); }
6488
6489 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
6490
6491
6492
6493 #line default
6494 #line hidden
6495 WriteLiteralTo(__razor_helper_writer, " <div");
6496
6497 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 152028), Tuple.Create("\"", 152086)
6498 , Tuple.Create(Tuple.Create("", 152036), Tuple.Create("form__field-group", 152036), true)
6499
6500 #line 2973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6501 , Tuple.Create(Tuple.Create(" ", 152053), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
6502
6503 #line default
6504 #line hidden
6505 , 152054), false)
6506 , Tuple.Create(Tuple.Create(" ", 152079), Tuple.Create("dw-mod", 152080), true)
6507 );
6508
6509 WriteLiteralTo(__razor_helper_writer, ">\r\n <input ");
6510
6511
6512 #line 2974 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6513 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
6514
6515
6516 #line default
6517 #line hidden
6518 WriteLiteralTo(__razor_helper_writer, " class=\"");
6519
6520
6521 #line 2974 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6522 WriteTo(__razor_helper_writer, settings.CssClass);
6523
6524
6525 #line default
6526 #line hidden
6527 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n");
6528
6529
6530 #line 2975 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6531
6532
6533 #line default
6534 #line hidden
6535
6536 #line 2975 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6537 if (!string.IsNullOrEmpty(settings.Label))
6538 {
6539
6540
6541 #line default
6542 #line hidden
6543 WriteLiteralTo(__razor_helper_writer, " <label");
6544
6545 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 152275), Tuple.Create("\"", 152293)
6546
6547 #line 2977 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6548 , Tuple.Create(Tuple.Create("", 152281), Tuple.Create<System.Object, System.Int32>(settings.Id
6549
6550 #line default
6551 #line hidden
6552 , 152281), false)
6553 );
6554
6555 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\"");
6556
6557 WriteLiteralTo(__razor_helper_writer, ">");
6558
6559
6560 #line 2977 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6561 WriteTo(__razor_helper_writer, settings.Label);
6562
6563
6564 #line default
6565 #line hidden
6566 WriteLiteralTo(__razor_helper_writer, "</label>\r\n");
6567
6568
6569 #line 2978 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6570 }
6571
6572
6573 #line default
6574 #line hidden
6575 WriteLiteralTo(__razor_helper_writer, " ");
6576
6577
6578 #line 2979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6579 if (!string.IsNullOrEmpty(settings.HelpText))
6580 {
6581
6582
6583 #line default
6584 #line hidden
6585 WriteLiteralTo(__razor_helper_writer, " <small");
6586
6587 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
6588
6589 WriteLiteralTo(__razor_helper_writer, ">");
6590
6591
6592 #line 2981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6593 WriteTo(__razor_helper_writer, settings.HelpText);
6594
6595
6596 #line default
6597 #line hidden
6598 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
6599
6600
6601 #line 2982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6602 }
6603
6604
6605 #line default
6606 #line hidden
6607 WriteLiteralTo(__razor_helper_writer, " ");
6608
6609
6610 #line 2983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6611 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
6612
6613
6614 #line default
6615 #line hidden
6616 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
6617
6618
6619 #line 2985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6620
6621
6622 #line default
6623 #line hidden
6624 });
6625
6626 #line 2985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6627 }
6628 #line default
6629 #line hidden
6630
6631
6632 #line 2993 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6633 public RazorEngine.Templating.TemplateWriter RenderRadioButtonListField(RadioButtonListField settings)
6634 {
6635 #line default
6636 #line hidden
6637 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6638
6639 #line 2994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6640
6641 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
6642
6643
6644
6645 #line default
6646 #line hidden
6647 WriteLiteralTo(__razor_helper_writer, " <div");
6648
6649 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 152968), Tuple.Create("\"", 153042)
6650 , Tuple.Create(Tuple.Create("", 152976), Tuple.Create("form__field-group", 152976), true)
6651
6652 #line 2997 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6653 , Tuple.Create(Tuple.Create(" ", 152993), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass
6654
6655 #line default
6656 #line hidden
6657 , 152994), false)
6658 , Tuple.Create(Tuple.Create(" ", 153019), Tuple.Create("u-margin-bottom", 153020), true)
6659 , Tuple.Create(Tuple.Create(" ", 153035), Tuple.Create("dw-mod", 153036), true)
6660 );
6661
6662 WriteLiteralTo(__razor_helper_writer, " ");
6663
6664
6665 #line 2997 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6666 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
6667
6668
6669 #line default
6670 #line hidden
6671 WriteLiteralTo(__razor_helper_writer, ">\r\n");
6672
6673
6674 #line 2998 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6675
6676
6677 #line default
6678 #line hidden
6679
6680 #line 2998 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6681 if (!string.IsNullOrEmpty(settings.Label))
6682 {
6683
6684
6685 #line default
6686 #line hidden
6687 WriteLiteralTo(__razor_helper_writer, " <label>");
6688
6689
6690 #line 3000 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6691 WriteTo(__razor_helper_writer, settings.Label);
6692
6693
6694 #line default
6695 #line hidden
6696 WriteLiteralTo(__razor_helper_writer, "</label>\r\n");
6697
6698
6699 #line 3001 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6700 }
6701
6702
6703 #line default
6704 #line hidden
6705 WriteLiteralTo(__razor_helper_writer, " ");
6706
6707
6708 #line 3002 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6709 if (!string.IsNullOrEmpty(settings.HelpText))
6710 {
6711
6712
6713 #line default
6714 #line hidden
6715 WriteLiteralTo(__razor_helper_writer, " <small");
6716
6717 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\"");
6718
6719 WriteLiteralTo(__razor_helper_writer, ">");
6720
6721
6722 #line 3004 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6723 WriteTo(__razor_helper_writer, settings.HelpText);
6724
6725
6726 #line default
6727 #line hidden
6728 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
6729
6730
6731 #line 3005 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6732 }
6733
6734
6735 #line default
6736 #line hidden
6737 WriteLiteralTo(__razor_helper_writer, "\r\n");
6738
6739
6740 #line 3007 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6741
6742
6743 #line default
6744 #line hidden
6745
6746 #line 3007 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6747 foreach (var item in settings.Options)
6748 {
6749 if (settings.Required)
6750 {
6751 item.Required = true;
6752 }
6753 if (settings.Disabled)
6754 {
6755 item.Disabled = true;
6756 }
6757 if (!string.IsNullOrEmpty(settings.Name))
6758 {
6759 item.Name = settings.Name;
6760 }
6761 if (settings.Value != null && settings.Value == item.Value)
6762 {
6763 item.Checked = true;
6764 }
6765 if (!string.IsNullOrEmpty(settings.OnClick))
6766 {
6767 item.OnClick += settings.OnClick;
6768 }
6769 if (!string.IsNullOrEmpty(settings.OnChange))
6770 {
6771 item.OnChange += settings.OnChange;
6772 }
6773 if (!string.IsNullOrEmpty(settings.CssClass))
6774 {
6775 item.CssClass += settings.CssClass;
6776 }
6777
6778
6779 #line default
6780 #line hidden
6781
6782 #line 3037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6783 WriteTo(__razor_helper_writer, Render(item));
6784
6785
6786 #line default
6787 #line hidden
6788
6789 #line 3037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6790
6791 }
6792
6793
6794 #line default
6795 #line hidden
6796 WriteLiteralTo(__razor_helper_writer, "\r\n");
6797
6798 WriteLiteralTo(__razor_helper_writer, " ");
6799
6800
6801 #line 3040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6802 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }));
6803
6804
6805 #line default
6806 #line hidden
6807 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
6808
6809
6810 #line 3042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6811
6812
6813 #line default
6814 #line hidden
6815 });
6816
6817 #line 3042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6818 }
6819 #line default
6820 #line hidden
6821
6822
6823 #line 3050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6824 public RazorEngine.Templating.TemplateWriter RenderNotificationMessage(NotificationMessage settings)
6825 {
6826 #line default
6827 #line hidden
6828 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6829
6830 #line 3051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6831
6832 if (!string.IsNullOrEmpty(settings.Message))
6833 {
6834 var attributes = new Dictionary<string, string>();
6835 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
6836
6837 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower();
6838 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower();
6839 string minHeightClass = settings.Icon != null ? "u-min-h70px" : "";
6840
6841
6842
6843 #line default
6844 #line hidden
6845 WriteLiteralTo(__razor_helper_writer, " <div");
6846
6847 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 155234), Tuple.Create("\"", 155397)
6848 , Tuple.Create(Tuple.Create("", 155242), Tuple.Create("notification-message-", 155242), true)
6849
6850 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6851 , Tuple.Create(Tuple.Create("", 155263), Tuple.Create<System.Object, System.Int32>(messageTypeClass
6852
6853 #line default
6854 #line hidden
6855 , 155263), false)
6856 , Tuple.Create(Tuple.Create(" ", 155280), Tuple.Create("notification-message-", 155281), true)
6857
6858 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6859 , Tuple.Create(Tuple.Create("", 155302), Tuple.Create<System.Object, System.Int32>(messageLayoutClass
6860
6861 #line default
6862 #line hidden
6863 , 155302), false)
6864
6865 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6866 , Tuple.Create(Tuple.Create(" ", 155321), Tuple.Create<System.Object, System.Int32>(messageLayoutClass
6867
6868 #line default
6869 #line hidden
6870 , 155322), false)
6871
6872 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6873 , Tuple.Create(Tuple.Create(" ", 155341), Tuple.Create<System.Object, System.Int32>(minHeightClass
6874
6875 #line default
6876 #line hidden
6877 , 155342), false)
6878
6879 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6880 , Tuple.Create(Tuple.Create(" ", 155357), Tuple.Create<System.Object, System.Int32>(settings.CssClass
6881
6882 #line default
6883 #line hidden
6884 , 155358), false)
6885 , Tuple.Create(Tuple.Create(" ", 155376), Tuple.Create("u-full-width", 155377), true)
6886 , Tuple.Create(Tuple.Create(" ", 155389), Tuple.Create("dw-mod", 155391), true)
6887 );
6888
6889 WriteLiteralTo(__razor_helper_writer, " ");
6890
6891
6892 #line 3061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6893 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes));
6894
6895
6896 #line default
6897 #line hidden
6898 WriteLiteralTo(__razor_helper_writer, ">\r\n");
6899
6900
6901 #line 3062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6902
6903
6904 #line default
6905 #line hidden
6906
6907 #line 3062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6908 if (settings.Icon != null) {
6909 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message;
6910
6911
6912 #line default
6913 #line hidden
6914
6915 #line 3064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6916 WriteTo(__razor_helper_writer, Render(settings.Icon));
6917
6918
6919 #line default
6920 #line hidden
6921
6922 #line 3064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6923
6924 } else {
6925
6926
6927 #line default
6928 #line hidden
6929
6930 #line 3066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6931 WriteTo(__razor_helper_writer, settings.Message);
6932
6933
6934 #line default
6935 #line hidden
6936
6937 #line 3066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6938
6939 }
6940
6941
6942 #line default
6943 #line hidden
6944 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
6945
6946
6947 #line 3069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6948 }
6949
6950
6951 #line default
6952 #line hidden
6953 });
6954
6955 #line 3070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6956 }
6957 #line default
6958 #line hidden
6959
6960
6961 #line 3076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6962 public RazorEngine.Templating.TemplateWriter RenderHandlebarsRoot(HandlebarsRoot settings) {
6963 #line default
6964 #line hidden
6965 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
6966
6967 #line 3076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6968
6969 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : "";
6970
6971
6972
6973 #line default
6974 #line hidden
6975 WriteLiteralTo(__razor_helper_writer, " <div");
6976
6977 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 156071), Tuple.Create("\"", 156123)
6978
6979 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6980 , Tuple.Create(Tuple.Create("", 156079), Tuple.Create<System.Object, System.Int32>(settings.CssClass
6981
6982 #line default
6983 #line hidden
6984 , 156079), false)
6985 , Tuple.Create(Tuple.Create(" ", 156097), Tuple.Create("dw-mod", 156098), true)
6986 , Tuple.Create(Tuple.Create(" ", 156104), Tuple.Create("js-handlebars-root", 156105), true)
6987 );
6988
6989 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 156124), Tuple.Create("\"", 156141)
6990
6991 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
6992 , Tuple.Create(Tuple.Create("", 156129), Tuple.Create<System.Object, System.Int32>(settings.Id
6993
6994 #line default
6995 #line hidden
6996 , 156129), false)
6997 );
6998
6999 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
7000
7001
7002 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7003 WriteTo(__razor_helper_writer, settings.ScriptTemplate);
7004
7005
7006 #line default
7007 #line hidden
7008 WriteLiteralTo(__razor_helper_writer, "\"");
7009
7010 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"");
7011
7012
7013 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7014 WriteTo(__razor_helper_writer, settings.FeedUrl);
7015
7016
7017 #line default
7018 #line hidden
7019 WriteLiteralTo(__razor_helper_writer, "\"");
7020
7021 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"");
7022
7023
7024 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7025 WriteTo(__razor_helper_writer, settings.InitOnLoad.ToString());
7026
7027
7028 #line default
7029 #line hidden
7030 WriteLiteralTo(__razor_helper_writer, "\"");
7031
7032 WriteLiteralTo(__razor_helper_writer, " data-preloader=\"");
7033
7034
7035 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7036 WriteTo(__razor_helper_writer, settings.Preloader);
7037
7038
7039 #line default
7040 #line hidden
7041 WriteLiteralTo(__razor_helper_writer, "\"");
7042
7043 WriteLiteralTo(__razor_helper_writer, " ");
7044
7045
7046 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7047 WriteTo(__razor_helper_writer, preRender);
7048
7049
7050 #line default
7051 #line hidden
7052 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7053
7054
7055 #line 3080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7056
7057
7058 #line default
7059 #line hidden
7060
7061 #line 3080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7062 if (settings.SubBlocks != null) {
7063
7064
7065 #line default
7066 #line hidden
7067
7068 #line 3081 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7069 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks));
7070
7071
7072 #line default
7073 #line hidden
7074
7075 #line 3081 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7076
7077 }
7078
7079
7080 #line default
7081 #line hidden
7082 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
7083
7084
7085 #line 3084 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7086
7087
7088 #line default
7089 #line hidden
7090 });
7091
7092 #line 3084 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7093 }
7094 #line default
7095 #line hidden
7096
7097
7098 #line 3093 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7099 public RazorEngine.Templating.TemplateWriter RenderStickersCollection(StickersCollection settings)
7100 {
7101 #line default
7102 #line hidden
7103 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7104
7105 #line 3094 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7106
7107
7108
7109 #line default
7110 #line hidden
7111
7112 #line 3105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7113
7114
7115
7116 #line default
7117 #line hidden
7118 });
7119
7120 #line 3106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7121 }
7122 #line default
7123 #line hidden
7124
7125
7126 #line 3113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7127 public RazorEngine.Templating.TemplateWriter RenderForm(Form settings) {
7128 #line default
7129 #line hidden
7130 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7131
7132 #line 3113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7133
7134 if (settings != null)
7135 {
7136 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
7137 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); };
7138 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); };
7139 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); };
7140 var enctypes = new Dictionary<string, string>
7141 {
7142 { "multipart", "multipart/form-data" },
7143 { "text", "text/plain" },
7144 { "application", "application/x-www-form-urlencoded" }
7145 };
7146 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); };
7147 optionalAttributes.Add("method", settings.Method.ToString());
7148
7149 if (!string.IsNullOrEmpty(settings.FormStartMarkup))
7150 {
7151
7152
7153 #line default
7154 #line hidden
7155
7156 #line 3131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7157 WriteTo(__razor_helper_writer, settings.FormStartMarkup);
7158
7159
7160 #line default
7161 #line hidden
7162
7163 #line 3131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7164
7165 }
7166 else
7167 {
7168
7169
7170 #line default
7171 #line hidden
7172 WriteLiteralTo(__razor_helper_writer, " ");
7173
7174 WriteLiteralTo(__razor_helper_writer, "<form class=\"");
7175
7176
7177 #line 3135 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7178 WriteTo(__razor_helper_writer, settings.CssClass);
7179
7180
7181 #line default
7182 #line hidden
7183 WriteLiteralTo(__razor_helper_writer, " u-no-margin dw-mod\" ");
7184
7185
7186 #line 3135 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7187 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes));
7188
7189
7190 #line default
7191 #line hidden
7192 WriteLiteralTo(__razor_helper_writer, " ");
7193
7194
7195 #line 3135 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7196 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes));
7197
7198
7199 #line default
7200 #line hidden
7201 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7202
7203
7204 #line 3136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7205 }
7206
7207 foreach (var field in settings.GetFields())
7208 {
7209
7210
7211 #line default
7212 #line hidden
7213
7214 #line 3140 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7215 WriteTo(__razor_helper_writer, Render(field));
7216
7217
7218 #line default
7219 #line hidden
7220
7221 #line 3140 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7222
7223 }
7224
7225
7226
7227 #line default
7228 #line hidden
7229 WriteLiteralTo(__razor_helper_writer, " ");
7230
7231 WriteLiteralTo(__razor_helper_writer, "</form>\r\n");
7232
7233
7234 #line 3144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7235 }
7236
7237
7238 #line default
7239 #line hidden
7240 });
7241
7242 #line 3145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7243 }
7244 #line default
7245 #line hidden
7246
7247
7248 #line 3153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7249 public RazorEngine.Templating.TemplateWriter RenderText(Text settings)
7250 {
7251 #line default
7252 #line hidden
7253 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7254
7255 #line 3154 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7256
7257
7258
7259 #line default
7260 #line hidden
7261
7262 #line 3155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7263 WriteTo(__razor_helper_writer, settings.Content);
7264
7265
7266 #line default
7267 #line hidden
7268
7269 #line 3155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7270
7271
7272
7273 #line default
7274 #line hidden
7275 });
7276
7277 #line 3156 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7278 }
7279 #line default
7280 #line hidden
7281
7282
7283 #line 3164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7284 public RazorEngine.Templating.TemplateWriter RenderContentModule(ContentModule settings) {
7285 #line default
7286 #line hidden
7287 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7288
7289 #line 3164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7290
7291 if (!string.IsNullOrEmpty(settings.Content))
7292 {
7293
7294
7295 #line default
7296 #line hidden
7297
7298 #line 3167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7299 WriteTo(__razor_helper_writer, settings.Content);
7300
7301
7302 #line default
7303 #line hidden
7304
7305 #line 3167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7306
7307 }
7308
7309
7310 #line default
7311 #line hidden
7312 });
7313
7314 #line 3169 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7315 }
7316 #line default
7317 #line hidden
7318
7319
7320 #line 3177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7321 public RazorEngine.Templating.TemplateWriter RenderModal(Modal settings) {
7322 #line default
7323 #line hidden
7324 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7325
7326 #line 3177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7327
7328 if (settings != null)
7329 {
7330 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N");
7331
7332 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : "";
7333
7334
7335
7336 #line default
7337 #line hidden
7338 WriteLiteralTo(__razor_helper_writer, " <input");
7339
7340 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
7341
7342 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 159677), Tuple.Create("\"", 159704)
7343
7344 #line 3184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7345 , Tuple.Create(Tuple.Create("", 159682), Tuple.Create<System.Object, System.Int32>(modalId
7346
7347 #line default
7348 #line hidden
7349 , 159682), false)
7350 , Tuple.Create(Tuple.Create("", 159692), Tuple.Create("ModalTrigger", 159692), true)
7351 );
7352
7353 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\"");
7354
7355 WriteLiteralTo(__razor_helper_writer, " ");
7356
7357
7358 #line 3184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7359 WriteTo(__razor_helper_writer, onchange);
7360
7361
7362 #line default
7363 #line hidden
7364 WriteLiteralTo(__razor_helper_writer, " />\r\n");
7365
7366
7367 #line 3185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7368
7369
7370
7371 #line default
7372 #line hidden
7373 WriteLiteralTo(__razor_helper_writer, " <div");
7374
7375 WriteLiteralTo(__razor_helper_writer, " class=\"modal-container\"");
7376
7377 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7378
7379
7380 #line 3187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7381
7382
7383 #line default
7384 #line hidden
7385
7386 #line 3187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7387 if (!settings.DisableDarkOverlay)
7388 {
7389
7390
7391 #line default
7392 #line hidden
7393 WriteLiteralTo(__razor_helper_writer, " <label");
7394
7395 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 159868), Tuple.Create("\"", 159896)
7396
7397 #line 3189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7398 , Tuple.Create(Tuple.Create("", 159874), Tuple.Create<System.Object, System.Int32>(modalId
7399
7400 #line default
7401 #line hidden
7402 , 159874), false)
7403 , Tuple.Create(Tuple.Create("", 159884), Tuple.Create("ModalTrigger", 159884), true)
7404 );
7405
7406 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 159897), Tuple.Create("\"", 159924)
7407
7408 #line 3189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7409 , Tuple.Create(Tuple.Create("", 159902), Tuple.Create<System.Object, System.Int32>(modalId
7410
7411 #line default
7412 #line hidden
7413 , 159902), false)
7414 , Tuple.Create(Tuple.Create("", 159912), Tuple.Create("ModalOverlay", 159912), true)
7415 );
7416
7417 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\"");
7418
7419 WriteLiteralTo(__razor_helper_writer, "></label>\r\n");
7420
7421
7422 #line 3190 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7423 }
7424
7425
7426 #line default
7427 #line hidden
7428 WriteLiteralTo(__razor_helper_writer, " <div");
7429
7430 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 159989), Tuple.Create("\"", 160098)
7431 , Tuple.Create(Tuple.Create("", 159997), Tuple.Create("modal", 159997), true)
7432 , Tuple.Create(Tuple.Create(" ", 160002), Tuple.Create("modal--", 160003), true)
7433
7434 #line 3191 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7435 , Tuple.Create(Tuple.Create("", 160010), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower()
7436
7437 #line default
7438 #line hidden
7439 , 160010), false)
7440 , Tuple.Create(Tuple.Create(" ", 160046), Tuple.Create("modal-height--", 160047), true)
7441
7442 #line 3191 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7443 , Tuple.Create(Tuple.Create("", 160061), Tuple.Create<System.Object, System.Int32>(settings.Height.ToString().ToLower()
7444
7445 #line default
7446 #line hidden
7447 , 160061), false)
7448 );
7449
7450 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 160099), Tuple.Create("\"", 160119)
7451
7452 #line 3191 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7453 , Tuple.Create(Tuple.Create("", 160104), Tuple.Create<System.Object, System.Int32>(modalId
7454
7455 #line default
7456 #line hidden
7457 , 160104), false)
7458 , Tuple.Create(Tuple.Create("", 160114), Tuple.Create("Modal", 160114), true)
7459 );
7460
7461 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7462
7463
7464 #line 3192 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7465
7466
7467 #line default
7468 #line hidden
7469
7470 #line 3192 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7471 if (settings.Heading != null)
7472 {
7473 if (!string.IsNullOrEmpty(settings.Heading.Title))
7474 {
7475
7476
7477 #line default
7478 #line hidden
7479 WriteLiteralTo(__razor_helper_writer, " <div");
7480
7481 WriteLiteralTo(__razor_helper_writer, " class=\"modal__header\"");
7482
7483 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7484
7485 WriteLiteralTo(__razor_helper_writer, " ");
7486
7487
7488 #line 3197 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7489 WriteTo(__razor_helper_writer, Render(settings.Heading));
7490
7491
7492 #line default
7493 #line hidden
7494 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
7495
7496
7497 #line 3199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7498 }
7499 }
7500
7501
7502 #line default
7503 #line hidden
7504 WriteLiteralTo(__razor_helper_writer, " <div");
7505
7506 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 160487), Tuple.Create("\"", 160582)
7507 , Tuple.Create(Tuple.Create("", 160495), Tuple.Create("modal__body", 160495), true)
7508
7509 #line 3201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7510 , Tuple.Create(Tuple.Create(" ", 160506), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : ""
7511
7512 #line default
7513 #line hidden
7514 , 160507), false)
7515 );
7516
7517 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7518
7519
7520 #line 3202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7521
7522
7523 #line default
7524 #line hidden
7525
7526 #line 3202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7527 if (!string.IsNullOrEmpty(settings.BodyText))
7528 {
7529
7530
7531 #line default
7532 #line hidden
7533
7534 #line 3204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7535 WriteTo(__razor_helper_writer, settings.BodyText);
7536
7537
7538 #line default
7539 #line hidden
7540
7541 #line 3204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7542
7543 }
7544
7545
7546 #line default
7547 #line hidden
7548 WriteLiteralTo(__razor_helper_writer, " ");
7549
7550
7551 #line 3206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7552 if (settings.BodyTemplate != null)
7553 {
7554
7555
7556 #line default
7557 #line hidden
7558
7559 #line 3208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7560 WriteTo(__razor_helper_writer, settings.BodyTemplate);
7561
7562
7563 #line default
7564 #line hidden
7565
7566 #line 3208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7567
7568 }
7569
7570
7571 #line default
7572 #line hidden
7573 WriteLiteralTo(__razor_helper_writer, " ");
7574
7575
7576 #line 3210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7577
7578 var actions = settings.GetActions();
7579
7580
7581 #line default
7582 #line hidden
7583 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
7584
7585
7586 #line 3214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7587
7588
7589 #line default
7590 #line hidden
7591
7592 #line 3214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7593 if (actions.Length > 0)
7594 {
7595
7596
7597 #line default
7598 #line hidden
7599 WriteLiteralTo(__razor_helper_writer, " <div");
7600
7601 WriteLiteralTo(__razor_helper_writer, " class=\"modal__footer\"");
7602
7603 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7604
7605
7606 #line 3217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7607
7608
7609 #line default
7610 #line hidden
7611
7612 #line 3217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7613 foreach (var action in actions)
7614 {
7615 if (Pageview.Device.ToString() != "Mobile") {
7616 action.CssClass += " u-no-margin";
7617 } else {
7618 action.CssClass += " u-full-width u-margin-bottom";
7619 }
7620
7621
7622
7623 #line default
7624 #line hidden
7625
7626 #line 3225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7627 WriteTo(__razor_helper_writer, Render(action));
7628
7629
7630 #line default
7631 #line hidden
7632
7633 #line 3225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7634
7635 }
7636
7637
7638 #line default
7639 #line hidden
7640 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
7641
7642
7643 #line 3228 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7644 }
7645
7646
7647 #line default
7648 #line hidden
7649 WriteLiteralTo(__razor_helper_writer, " <label");
7650
7651 WriteLiteralTo(__razor_helper_writer, " class=\"modal__close-btn\"");
7652
7653 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 161688), Tuple.Create("\"", 161716)
7654
7655 #line 3229 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7656 , Tuple.Create(Tuple.Create("", 161694), Tuple.Create<System.Object, System.Int32>(modalId
7657
7658 #line default
7659 #line hidden
7660 , 161694), false)
7661 , Tuple.Create(Tuple.Create("", 161704), Tuple.Create("ModalTrigger", 161704), true)
7662 );
7663
7664 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n");
7665
7666
7667 #line 3232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7668 }
7669
7670
7671 #line default
7672 #line hidden
7673 });
7674
7675 #line 3233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7676 }
7677 #line default
7678 #line hidden
7679
7680
7681 #line 3238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7682 public RazorEngine.Templating.TemplateWriter RenderMediaListItem(MediaListItem settings)
7683 {
7684 #line default
7685 #line hidden
7686 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
7687
7688 #line 3239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7689
7690
7691
7692 #line default
7693 #line hidden
7694 WriteLiteralTo(__razor_helper_writer, " <div");
7695
7696 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161912), Tuple.Create("\"", 161961)
7697 , Tuple.Create(Tuple.Create("", 161920), Tuple.Create("media-list-item", 161920), true)
7698
7699 #line 3240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7700 , Tuple.Create(Tuple.Create(" ", 161935), Tuple.Create<System.Object, System.Int32>(settings.CssClass
7701
7702 #line default
7703 #line hidden
7704 , 161936), false)
7705 , Tuple.Create(Tuple.Create(" ", 161954), Tuple.Create("dw-mod", 161955), true)
7706 );
7707
7708 WriteLiteralTo(__razor_helper_writer, " ");
7709
7710
7711 #line 3240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7712 WriteTo(__razor_helper_writer, !string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : "");
7713
7714
7715 #line default
7716 #line hidden
7717 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7718
7719
7720 #line 3241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7721
7722
7723 #line default
7724 #line hidden
7725
7726 #line 3241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7727 if (!string.IsNullOrEmpty(settings.Label))
7728 {
7729 if (!string.IsNullOrEmpty(settings.Link))
7730 {
7731
7732
7733 #line default
7734 #line hidden
7735
7736 #line 3245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7737 WriteTo(__razor_helper_writer, Render(new Link
7738 {
7739 Href = settings.Link,
7740 CssClass = "media-list-item__sticker dw-mod",
7741 ButtonLayout = ButtonLayout.None,
7742 Title = settings.Label,
7743 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : ""
7744 }));
7745
7746
7747 #line default
7748 #line hidden
7749
7750 #line 3252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7751
7752 }
7753 else if (!string.IsNullOrEmpty(settings.OnClick))
7754 {
7755
7756
7757 #line default
7758 #line hidden
7759 WriteLiteralTo(__razor_helper_writer, " <span");
7760
7761 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker dw-mod\"");
7762
7763 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 162705), Tuple.Create("\"", 162734)
7764
7765 #line 3256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7766 , Tuple.Create(Tuple.Create("", 162715), Tuple.Create<System.Object, System.Int32>(settings.OnClick
7767
7768 #line default
7769 #line hidden
7770 , 162715), false)
7771 );
7772
7773 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
7774
7775 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\"");
7776
7777 WriteLiteralTo(__razor_helper_writer, ">");
7778
7779
7780 #line 3257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7781 WriteTo(__razor_helper_writer, settings.Label);
7782
7783
7784 #line default
7785 #line hidden
7786 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n");
7787
7788
7789 #line 3259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7790 }
7791 else
7792 {
7793
7794
7795 #line default
7796 #line hidden
7797 WriteLiteralTo(__razor_helper_writer, " <span");
7798
7799 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker media-list-item__sticker--no-link dw-mod\"");
7800
7801 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
7802
7803 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\"");
7804
7805 WriteLiteralTo(__razor_helper_writer, ">");
7806
7807
7808 #line 3263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7809 WriteTo(__razor_helper_writer, settings.Label);
7810
7811
7812 #line default
7813 #line hidden
7814 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n");
7815
7816
7817 #line 3265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7818 }
7819 }
7820
7821
7822 #line default
7823 #line hidden
7824 WriteLiteralTo(__razor_helper_writer, " <div");
7825
7826 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__wrap\"");
7827
7828 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
7829
7830 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__info dw-mod\"");
7831
7832 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
7833
7834 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__header dw-mod\"");
7835
7836 WriteLiteralTo(__razor_helper_writer, ">\r\n");
7837
7838
7839 #line 3270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7840
7841
7842 #line default
7843 #line hidden
7844
7845 #line 3270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7846 if (!string.IsNullOrEmpty(settings.Title))
7847 {
7848 if (!string.IsNullOrEmpty(settings.Link))
7849 {
7850
7851
7852 #line default
7853 #line hidden
7854
7855 #line 3274 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7856 WriteTo(__razor_helper_writer, Render(new Link
7857 {
7858 Href = settings.Link,
7859 CssClass = "media-list-item__name dw-mod",
7860 ButtonLayout = ButtonLayout.None,
7861 Title = settings.Title,
7862 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : ""
7863 }));
7864
7865
7866 #line default
7867 #line hidden
7868
7869 #line 3281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7870
7871 }
7872 else if (!string.IsNullOrEmpty(settings.OnClick))
7873 {
7874
7875
7876 #line default
7877 #line hidden
7878 WriteLiteralTo(__razor_helper_writer, " <span");
7879
7880 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name dw-mod\"");
7881
7882 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 164115), Tuple.Create("\"", 164144)
7883
7884 #line 3285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7885 , Tuple.Create(Tuple.Create("", 164125), Tuple.Create<System.Object, System.Int32>(settings.OnClick
7886
7887 #line default
7888 #line hidden
7889 , 164125), false)
7890 );
7891
7892 WriteLiteralTo(__razor_helper_writer, ">");
7893
7894
7895 #line 3285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7896 WriteTo(__razor_helper_writer, settings.Title);
7897
7898
7899 #line default
7900 #line hidden
7901 WriteLiteralTo(__razor_helper_writer, "</span>\r\n");
7902
7903
7904 #line 3286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7905 }
7906 else
7907 {
7908
7909
7910 #line default
7911 #line hidden
7912 WriteLiteralTo(__razor_helper_writer, " <span");
7913
7914 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name media-list-item__name--no-link dw-mod\"");
7915
7916 WriteLiteralTo(__razor_helper_writer, ">");
7917
7918
7919 #line 3289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7920 WriteTo(__razor_helper_writer, settings.Title);
7921
7922
7923 #line default
7924 #line hidden
7925 WriteLiteralTo(__razor_helper_writer, "</span>\r\n");
7926
7927
7928 #line 3290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7929 }
7930 }
7931
7932
7933 #line default
7934 #line hidden
7935 WriteLiteralTo(__razor_helper_writer, "\r\n");
7936
7937
7938 #line 3293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7939
7940
7941 #line default
7942 #line hidden
7943
7944 #line 3293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7945 if (!string.IsNullOrEmpty(settings.Status))
7946 {
7947
7948
7949 #line default
7950 #line hidden
7951 WriteLiteralTo(__razor_helper_writer, " <div");
7952
7953 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__state dw-mod\"");
7954
7955 WriteLiteralTo(__razor_helper_writer, ">");
7956
7957
7958 #line 3295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7959 WriteTo(__razor_helper_writer, settings.Status);
7960
7961
7962 #line default
7963 #line hidden
7964 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
7965
7966
7967 #line 3296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7968 }
7969
7970
7971 #line default
7972 #line hidden
7973 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
7974
7975
7976 #line 3298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7977
7978
7979 #line default
7980 #line hidden
7981
7982 #line 3298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7983
7984 settings.InfoTable.CssClass += " media-list-item__parameters-table";
7985
7986
7987 #line default
7988 #line hidden
7989 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n");
7990
7991 WriteLiteralTo(__razor_helper_writer, " ");
7992
7993
7994 #line 3302 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
7995 WriteTo(__razor_helper_writer, Render(settings.InfoTable));
7996
7997
7998 #line default
7999 #line hidden
8000 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div");
8001
8002 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions dw-mod\"");
8003
8004 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8005
8006 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions-list dw-mod\"");
8007
8008 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8009
8010
8011 #line 3306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8012
8013
8014 #line default
8015 #line hidden
8016
8017 #line 3306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8018
8019 var actions = settings.GetActions();
8020
8021 foreach (ButtonBase action in actions)
8022 {
8023 action.ButtonLayout = ButtonLayout.None;
8024 action.CssClass += " media-list-item__action link";
8025
8026
8027
8028 #line default
8029 #line hidden
8030
8031 #line 3314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8032 WriteTo(__razor_helper_writer, Render(action));
8033
8034
8035 #line default
8036 #line hidden
8037
8038 #line 3314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8039
8040 }
8041
8042
8043 #line default
8044 #line hidden
8045 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n");
8046
8047
8048 #line 3319 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8049
8050
8051 #line default
8052 #line hidden
8053
8054 #line 3319 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8055 if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title))
8056 {
8057 settings.SelectButton.CssClass += " u-no-margin";
8058
8059
8060
8061 #line default
8062 #line hidden
8063 WriteLiteralTo(__razor_helper_writer, " <div");
8064
8065 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__action-button\"");
8066
8067 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8068
8069 WriteLiteralTo(__razor_helper_writer, " ");
8070
8071
8072 #line 3324 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8073 WriteTo(__razor_helper_writer, Render(settings.SelectButton));
8074
8075
8076 #line default
8077 #line hidden
8078 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
8079
8080
8081 #line 3326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8082 }
8083
8084
8085 #line default
8086 #line hidden
8087 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n");
8088
8089
8090 #line 3330 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8091
8092
8093 #line default
8094 #line hidden
8095 });
8096
8097 #line 3330 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8098 }
8099 #line default
8100 #line hidden
8101
8102
8103 #line 3334 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8104 public RazorEngine.Templating.TemplateWriter RenderTable(Table settings)
8105 {
8106 #line default
8107 #line hidden
8108 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8109
8110 #line 3335 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8111
8112 Dictionary<string, string> attributes = new Dictionary<string, string>();
8113 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
8114
8115 var enumToClasses = new Dictionary<TableDesign, string>
8116 {
8117 { TableDesign.Clean, "table--clean" },
8118 { TableDesign.Bordered, "table--bordered" },
8119 { TableDesign.Striped, "table--striped" },
8120 { TableDesign.Hover, "table--hover" },
8121 { TableDesign.Compact, "table--compact" },
8122 { TableDesign.Condensed, "table--condensed" },
8123 { TableDesign.NoTopBorder, "table--no-top-border" }
8124 };
8125 string tableDesignClass = "";
8126 if (settings.Design != TableDesign.None)
8127 {
8128 tableDesignClass = enumToClasses[settings.Design];
8129 }
8130
8131 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); }
8132
8133 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
8134
8135
8136
8137 #line default
8138 #line hidden
8139 WriteLiteralTo(__razor_helper_writer, " <table ");
8140
8141
8142 #line 3359 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8143 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
8144
8145
8146 #line default
8147 #line hidden
8148 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8149
8150
8151 #line 3360 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8152
8153
8154 #line default
8155 #line hidden
8156
8157 #line 3360 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8158 if (settings.Header != null)
8159 {
8160
8161
8162 #line default
8163 #line hidden
8164 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n");
8165
8166 WriteLiteralTo(__razor_helper_writer, " ");
8167
8168
8169 #line 3363 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8170 WriteTo(__razor_helper_writer, Render(settings.Header));
8171
8172
8173 #line default
8174 #line hidden
8175 WriteLiteralTo(__razor_helper_writer, "\r\n </thead>\r\n");
8176
8177
8178 #line 3365 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8179 }
8180
8181
8182 #line default
8183 #line hidden
8184 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n");
8185
8186
8187 #line 3367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8188
8189
8190 #line default
8191 #line hidden
8192
8193 #line 3367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8194 foreach (var row in settings.Rows)
8195 {
8196
8197
8198 #line default
8199 #line hidden
8200
8201 #line 3369 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8202 WriteTo(__razor_helper_writer, Render(row));
8203
8204
8205 #line default
8206 #line hidden
8207
8208 #line 3369 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8209
8210 }
8211
8212
8213 #line default
8214 #line hidden
8215 WriteLiteralTo(__razor_helper_writer, " </tbody>\r\n");
8216
8217
8218 #line 3372 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8219
8220
8221 #line default
8222 #line hidden
8223
8224 #line 3372 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8225 if (settings.Footer != null)
8226 {
8227
8228
8229 #line default
8230 #line hidden
8231 WriteLiteralTo(__razor_helper_writer, " <tfoot>\r\n");
8232
8233 WriteLiteralTo(__razor_helper_writer, " ");
8234
8235
8236 #line 3375 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8237 WriteTo(__razor_helper_writer, Render(settings.Footer));
8238
8239
8240 #line default
8241 #line hidden
8242 WriteLiteralTo(__razor_helper_writer, "\r\n </tfoot>\r\n");
8243
8244
8245 #line 3377 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8246 }
8247
8248
8249 #line default
8250 #line hidden
8251 WriteLiteralTo(__razor_helper_writer, " </table>\r\n");
8252
8253
8254 #line 3379 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8255
8256
8257 #line default
8258 #line hidden
8259 });
8260
8261 #line 3379 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8262 }
8263 #line default
8264 #line hidden
8265
8266
8267 #line 3383 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8268 public RazorEngine.Templating.TemplateWriter RenderTableRow(TableRow settings)
8269 {
8270 #line default
8271 #line hidden
8272 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8273
8274 #line 3384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8275
8276 Dictionary<string, string> attributes = new Dictionary<string, string>();
8277 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
8278
8279 var enumToClasses = new Dictionary<TableRowDesign, string>
8280 {
8281 { TableRowDesign.NoBorder, "table__row--no-border" },
8282 { TableRowDesign.Border, "table__row--border" },
8283 { TableRowDesign.TopBorder, "table__row--top-line" },
8284 { TableRowDesign.BottomBorder, "table__row--bottom-line" },
8285 { TableRowDesign.Solid, "table__row--solid" }
8286 };
8287
8288 string tableRowDesignClass = "";
8289 if (settings.Design != TableRowDesign.None)
8290 {
8291 tableRowDesignClass = enumToClasses[settings.Design];
8292 }
8293
8294 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); }
8295
8296 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
8297
8298
8299
8300 #line default
8301 #line hidden
8302 WriteLiteralTo(__razor_helper_writer, " <tr ");
8303
8304
8305 #line 3407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8306 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes));
8307
8308
8309 #line default
8310 #line hidden
8311 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8312
8313
8314 #line 3408 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8315
8316
8317 #line default
8318 #line hidden
8319
8320 #line 3408 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8321 foreach (var cell in settings.Cells)
8322 {
8323 if (settings.IsHeaderRow)
8324 {
8325 cell.IsHeader = true;
8326 }
8327
8328
8329 #line default
8330 #line hidden
8331
8332 #line 3414 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8333 WriteTo(__razor_helper_writer, Render(cell));
8334
8335
8336 #line default
8337 #line hidden
8338
8339 #line 3414 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8340
8341 }
8342
8343
8344 #line default
8345 #line hidden
8346 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n");
8347
8348
8349 #line 3417 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8350
8351
8352 #line default
8353 #line hidden
8354 });
8355
8356 #line 3417 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8357 }
8358 #line default
8359 #line hidden
8360
8361
8362 #line 3422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8363 public RazorEngine.Templating.TemplateWriter RenderTableCell(TableCell settings)
8364 {
8365 #line default
8366 #line hidden
8367 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8368
8369 #line 3423 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8370
8371 Dictionary<string, string> attributes = new Dictionary<string, string>();
8372 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
8373 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); }
8374 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); }
8375 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); }
8376
8377 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
8378
8379 string tagName = settings.IsHeader ? "th" : "td";
8380
8381
8382
8383 #line default
8384 #line hidden
8385
8386 #line 3434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8387 WriteTo(__razor_helper_writer, "<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">");
8388
8389
8390 #line default
8391 #line hidden
8392
8393 #line 3434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8394
8395
8396
8397 #line default
8398 #line hidden
8399
8400 #line 3435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8401 WriteTo(__razor_helper_writer, settings.Content);
8402
8403
8404 #line default
8405 #line hidden
8406
8407 #line 3435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8408
8409
8410
8411 #line default
8412 #line hidden
8413
8414 #line 3436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8415 WriteTo(__razor_helper_writer, "</" + tagName + ">");
8416
8417
8418 #line default
8419 #line hidden
8420
8421 #line 3436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8422 ;
8423
8424
8425 #line default
8426 #line hidden
8427 });
8428
8429 #line 3437 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8430 }
8431 #line default
8432 #line hidden
8433
8434
8435 #line 3443 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8436 public RazorEngine.Templating.TemplateWriter RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings)
8437 {
8438 #line default
8439 #line hidden
8440 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8441
8442 #line 3444 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8443
8444 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter
8445 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring
8446
8447 if (settings.NumberOfPages > 1)
8448 {
8449 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx";
8450 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation");
8451 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings);
8452
8453
8454
8455 #line default
8456 #line hidden
8457 WriteLiteralTo(__razor_helper_writer, " <div");
8458
8459 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 171063), Tuple.Create("\"", 171115)
8460 , Tuple.Create(Tuple.Create("", 171071), Tuple.Create("pager", 171071), true)
8461 , Tuple.Create(Tuple.Create(" ", 171076), Tuple.Create("u-margin-top", 171077), true)
8462 , Tuple.Create(Tuple.Create(" ", 171089), Tuple.Create("dw-mod", 171090), true)
8463
8464 #line 3454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8465 , Tuple.Create(Tuple.Create(" ", 171096), Tuple.Create<System.Object, System.Int32>(settings.CssClass
8466
8467 #line default
8468 #line hidden
8469 , 171097), false)
8470 );
8471
8472 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 171116), Tuple.Create("\"", 171139)
8473
8474 #line 3454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8475 , Tuple.Create(Tuple.Create("", 171129), Tuple.Create<System.Object, System.Int32>(ariaLabel
8476
8477 #line default
8478 #line hidden
8479 , 171129), false)
8480 );
8481
8482 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8483
8484
8485 #line 3455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8486
8487
8488 #line default
8489 #line hidden
8490
8491 #line 3455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8492 if (settings.ShowPagingInfo)
8493 {
8494
8495
8496 #line default
8497 #line hidden
8498 WriteLiteralTo(__razor_helper_writer, " <div");
8499
8500 WriteLiteralTo(__razor_helper_writer, " class=\"pager__info dw-mod\"");
8501
8502 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8503
8504 WriteLiteralTo(__razor_helper_writer, " ");
8505
8506
8507 #line 3458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8508 WriteTo(__razor_helper_writer, Translate("Page"));
8509
8510
8511 #line default
8512 #line hidden
8513 WriteLiteralTo(__razor_helper_writer, " ");
8514
8515
8516 #line 3458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8517 WriteTo(__razor_helper_writer, settings.CurrentPageNumber);
8518
8519
8520 #line default
8521 #line hidden
8522 WriteLiteralTo(__razor_helper_writer, " ");
8523
8524
8525 #line 3458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8526 WriteTo(__razor_helper_writer, Translate("of"));
8527
8528
8529 #line default
8530 #line hidden
8531 WriteLiteralTo(__razor_helper_writer, " ");
8532
8533
8534 #line 3458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8535 WriteTo(__razor_helper_writer, settings.NumberOfPages);
8536
8537
8538 #line default
8539 #line hidden
8540 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
8541
8542
8543 #line 3460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8544 }
8545
8546
8547 #line default
8548 #line hidden
8549 WriteLiteralTo(__razor_helper_writer, " <ul");
8550
8551 WriteLiteralTo(__razor_helper_writer, " class=\"pager__list dw-mod\"");
8552
8553 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8554
8555
8556 #line 3462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8557
8558
8559 #line default
8560 #line hidden
8561
8562 #line 3462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8563 if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls)
8564 {
8565
8566
8567 #line default
8568 #line hidden
8569
8570 #line 3464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8571 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon }));
8572
8573
8574 #line default
8575 #line hidden
8576
8577 #line 3464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8578
8579 }
8580
8581
8582 #line default
8583 #line hidden
8584 WriteLiteralTo(__razor_helper_writer, " ");
8585
8586
8587 #line 3466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8588 if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls)
8589 {
8590
8591
8592 #line default
8593 #line hidden
8594
8595 #line 3468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8596 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon }));
8597
8598
8599 #line default
8600 #line hidden
8601
8602 #line 3468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8603
8604 }
8605
8606
8607 #line default
8608 #line hidden
8609 WriteLiteralTo(__razor_helper_writer, " ");
8610
8611
8612 #line 3470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8613 if (settings.GetPages().Any())
8614 {
8615 foreach (var page in settings.GetPages())
8616 {
8617
8618
8619 #line default
8620 #line hidden
8621
8622 #line 3474 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8623 WriteTo(__razor_helper_writer, Render(page));
8624
8625
8626 #line default
8627 #line hidden
8628
8629 #line 3474 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8630
8631 }
8632 }
8633 else
8634 {
8635 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++)
8636 {
8637 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString());
8638
8639
8640 #line default
8641 #line hidden
8642
8643 #line 3482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8644 WriteTo(__razor_helper_writer, Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) }));
8645
8646
8647 #line default
8648 #line hidden
8649
8650 #line 3482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8651 ;
8652 }
8653 }
8654
8655
8656 #line default
8657 #line hidden
8658 WriteLiteralTo(__razor_helper_writer, " ");
8659
8660
8661 #line 3485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8662 if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls)
8663 {
8664
8665
8666 #line default
8667 #line hidden
8668
8669 #line 3487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8670 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon }));
8671
8672
8673 #line default
8674 #line hidden
8675
8676 #line 3487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8677
8678 }
8679
8680
8681 #line default
8682 #line hidden
8683 WriteLiteralTo(__razor_helper_writer, " ");
8684
8685
8686 #line 3489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8687 if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls)
8688 {
8689
8690
8691 #line default
8692 #line hidden
8693
8694 #line 3491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8695 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon }));
8696
8697
8698 #line default
8699 #line hidden
8700
8701 #line 3491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8702
8703 }
8704
8705
8706 #line default
8707 #line hidden
8708 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n");
8709
8710
8711 #line 3495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8712 }
8713
8714
8715 #line default
8716 #line hidden
8717 });
8718
8719 #line 3496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8720 }
8721 #line default
8722 #line hidden
8723
8724
8725 #line 3498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8726 public RazorEngine.Templating.TemplateWriter RenderPaginationItem(PaginationItem settings)
8727 {
8728 #line default
8729 #line hidden
8730 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8731
8732 #line 3499 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8733
8734 if (settings.Icon == null)
8735 {
8736 settings.Icon = new Icon();
8737 }
8738
8739 settings.Icon.Label = settings.Label;
8740
8741
8742 #line default
8743 #line hidden
8744 WriteLiteralTo(__razor_helper_writer, " <li");
8745
8746 WriteLiteralTo(__razor_helper_writer, " class=\"pager__btn dw-mod\"");
8747
8748 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8749
8750
8751 #line 3507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8752
8753
8754 #line default
8755 #line hidden
8756
8757 #line 3507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8758 if (settings.IsActive)
8759 {
8760
8761
8762 #line default
8763 #line hidden
8764 WriteLiteralTo(__razor_helper_writer, " <span");
8765
8766 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num pager__num--current dw-mod\"");
8767
8768 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8769
8770 WriteLiteralTo(__razor_helper_writer, " ");
8771
8772
8773 #line 3510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8774 WriteTo(__razor_helper_writer, Render(settings.Icon));
8775
8776
8777 #line default
8778 #line hidden
8779 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n");
8780
8781
8782 #line 3512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8783 }
8784 else
8785 {
8786
8787
8788 #line default
8789 #line hidden
8790 WriteLiteralTo(__razor_helper_writer, " <a");
8791
8792 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 173800), Tuple.Create("\"", 173821)
8793
8794 #line 3515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8795 , Tuple.Create(Tuple.Create("", 173807), Tuple.Create<System.Object, System.Int32>(settings.Link
8796
8797 #line default
8798 #line hidden
8799 , 173807), false)
8800 );
8801
8802 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num dw-mod text-decoration-none\"");
8803
8804 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8805
8806 WriteLiteralTo(__razor_helper_writer, " ");
8807
8808
8809 #line 3516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8810 WriteTo(__razor_helper_writer, Render(settings.Icon));
8811
8812
8813 #line default
8814 #line hidden
8815 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
8816
8817
8818 #line 3518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8819 }
8820
8821
8822 #line default
8823 #line hidden
8824 WriteLiteralTo(__razor_helper_writer, " </li>\r\n");
8825
8826
8827 #line 3520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8828
8829
8830 #line default
8831 #line hidden
8832 });
8833
8834 #line 3520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8835 }
8836 #line default
8837 #line hidden
8838
8839
8840 #line 3538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8841 public RazorEngine.Templating.TemplateWriter RenderArticleBanner(dynamic settings) {
8842 #line default
8843 #line hidden
8844 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
8845
8846 #line 3538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8847
8848 dynamic[] methodParameters = new dynamic[1];
8849 methodParameters[0] = settings;
8850 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerCustom");
8851
8852 if (customMethod != null)
8853 {
8854
8855
8856 #line default
8857 #line hidden
8858
8859 #line 3545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8860 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
8861
8862
8863 #line default
8864 #line hidden
8865
8866 #line 3545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8867 ;
8868 } else {
8869 settings.Layout = ArticleHeaderLayout.Banner;
8870
8871 if (settings.Image != null)
8872 {
8873 if (settings.Image.Path != null)
8874 {
8875
8876
8877 #line default
8878 #line hidden
8879 WriteLiteralTo(__razor_helper_writer, " <div");
8880
8881 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide\"");
8882
8883 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8884
8885 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
8886
8887 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8888
8889 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero\"");
8890
8891 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8892
8893 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero__content\"");
8894
8895 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8896
8897 WriteLiteralTo(__razor_helper_writer, " class=\"block-container flex-wrap align-items-center h-100\"");
8898
8899 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 100rem;\"");
8900
8901 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
8902
8903 WriteLiteralTo(__razor_helper_writer, " class=\"c0 p-5 article-detail-hero__backdrop\"");
8904
8905 WriteLiteralTo(__razor_helper_writer, ">\r\n");
8906
8907
8908 #line 3559 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8909
8910
8911 #line default
8912 #line hidden
8913
8914 #line 3559 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8915 if (!String.IsNullOrEmpty(settings.Heading))
8916 {
8917
8918
8919 #line default
8920 #line hidden
8921 WriteLiteralTo(__razor_helper_writer, " <h1");
8922
8923 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__title h1 mb-2\"");
8924
8925 WriteLiteralTo(__razor_helper_writer, ">");
8926
8927
8928 #line 3561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8929 WriteTo(__razor_helper_writer, settings.Heading);
8930
8931
8932 #line default
8933 #line hidden
8934 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n");
8935
8936
8937 #line 3562 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8938 }
8939
8940
8941 #line default
8942 #line hidden
8943 WriteLiteralTo(__razor_helper_writer, " ");
8944
8945
8946 #line 3563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8947 if (!String.IsNullOrEmpty(settings.Subheading))
8948 {
8949
8950
8951 #line default
8952 #line hidden
8953 WriteLiteralTo(__razor_helper_writer, " <div");
8954
8955 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subtitle h3 weight-normal mb-2\"");
8956
8957 WriteLiteralTo(__razor_helper_writer, ">");
8958
8959
8960 #line 3565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8961 WriteTo(__razor_helper_writer, settings.Subheading);
8962
8963
8964 #line default
8965 #line hidden
8966 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
8967
8968
8969 #line 3566 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8970 }
8971
8972
8973 #line default
8974 #line hidden
8975
8976 #line 3567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8977
8978
8979
8980 #line default
8981 #line hidden
8982
8983 #line 3568 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8984
8985
8986
8987 #line default
8988 #line hidden
8989
8990 #line 3569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8991
8992
8993
8994 #line default
8995 #line hidden
8996
8997 #line 3570 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
8998
8999
9000
9001 #line default
9002 #line hidden
9003
9004 #line 3571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9005
9006
9007
9008 #line default
9009 #line hidden
9010
9011 #line 3572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9012
9013
9014
9015 #line default
9016 #line hidden
9017 WriteLiteralTo(__razor_helper_writer, " ");
9018
9019
9020 #line 3573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9021 if (!String.IsNullOrEmpty(settings.Link))
9022 {
9023
9024
9025 #line default
9026 #line hidden
9027
9028 #line 3575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9029 WriteTo(__razor_helper_writer, RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}));
9030
9031
9032 #line default
9033 #line hidden
9034
9035 #line 3575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9036
9037 }
9038
9039
9040 #line default
9041 #line hidden
9042 WriteLiteralTo(__razor_helper_writer, " ");
9043
9044
9045 #line 3577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9046 if (settings.ExternalParagraphId != 0)
9047 {
9048
9049
9050 #line default
9051 #line hidden
9052
9053 #line 3579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9054 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId));
9055
9056
9057 #line default
9058 #line hidden
9059
9060 #line 3579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9061
9062 }
9063
9064
9065 #line default
9066 #line hidden
9067 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div" +
9068 ">\r\n </div>\r\n <div");
9069
9070 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero__image\"");
9071
9072 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
9073
9074 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 177368), Tuple.Create("\"", 177532)
9075 , Tuple.Create(Tuple.Create("", 177374), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression" +
9076 "=20&DoNotUpscale=True&FillCanvas=False&Image=", 177374), true)
9077
9078 #line 3585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9079 , Tuple.Create(Tuple.Create("", 177512), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
9080
9081 #line default
9082 #line hidden
9083 , 177512), false)
9084 );
9085
9086 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&" +
9087 "Compression=95&DoNotUpscale=True&FillCanvas=False&Image=");
9088
9089
9090 #line 3585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9091 WriteTo(__razor_helper_writer, settings.Image.Path);
9092
9093
9094 #line default
9095 #line hidden
9096 WriteLiteralTo(__razor_helper_writer, "\"");
9097
9098 WriteLiteralTo(__razor_helper_writer, " class=\"object-fit-cover h-100 block w-100 lazyload\"");
9099
9100 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </div>\r\n " +
9101 " </div>\r\n </div>\r\n");
9102
9103
9104 #line 3590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9105 }
9106 else
9107 {
9108 settings.Layout = ArticleHeaderLayout.Clean;
9109
9110
9111 #line default
9112 #line hidden
9113
9114 #line 3594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9115 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
9116
9117
9118 #line default
9119 #line hidden
9120
9121 #line 3594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9122 ;
9123 }
9124 }
9125 else
9126 {
9127 settings.Layout = ArticleHeaderLayout.Clean;
9128
9129
9130 #line default
9131 #line hidden
9132
9133 #line 3600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9134 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
9135
9136
9137 #line default
9138 #line hidden
9139
9140 #line 3600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9141 ;
9142 }
9143 }
9144
9145
9146 #line default
9147 #line hidden
9148 });
9149
9150 #line 3603 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9151 }
9152 #line default
9153 #line hidden
9154
9155
9156 #line 3614 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9157 public RazorEngine.Templating.TemplateWriter RenderTitle(){
9158 #line default
9159 #line hidden
9160 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
9161
9162 #line 3614 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9163
9164
9165
9166 #line default
9167 #line hidden
9168 WriteLiteralTo(__razor_helper_writer, " <h2");
9169
9170 WriteLiteralTo(__razor_helper_writer, " class=\"h1 letter-spacing mb-2\"");
9171
9172 WriteLiteralTo(__razor_helper_writer, ">");
9173
9174
9175 #line 3615 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9176 WriteTo(__razor_helper_writer, Pageview.Item["Title"].ToString());
9177
9178
9179 #line default
9180 #line hidden
9181 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n");
9182
9183
9184 #line 3616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9185
9186
9187 #line default
9188 #line hidden
9189 });
9190
9191 #line 3616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9192 }
9193 #line default
9194 #line hidden
9195
9196
9197 #line 3618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9198 public RazorEngine.Templating.TemplateWriter RenderArticleHeader(ArticleHeader settings) {
9199 #line default
9200 #line hidden
9201 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
9202
9203 #line 3618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9204
9205 dynamic[] methodParameters = new dynamic[1];
9206 methodParameters[0] = settings;
9207 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleHeaderCustom");
9208
9209 if (customMethod != null)
9210 {
9211
9212
9213 #line default
9214 #line hidden
9215
9216 #line 3625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9217 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
9218
9219
9220 #line default
9221 #line hidden
9222
9223 #line 3625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9224 ;
9225 } else {
9226 switch (settings.Layout)
9227 {
9228 case ArticleHeaderLayout.Clean:
9229
9230
9231 #line default
9232 #line hidden
9233
9234 #line 3630 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9235 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
9236
9237
9238 #line default
9239 #line hidden
9240
9241 #line 3630 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9242 ;
9243 break;
9244 case ArticleHeaderLayout.Split:
9245
9246
9247 #line default
9248 #line hidden
9249
9250 #line 3633 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9251 WriteTo(__razor_helper_writer, RenderArticleSplitHeader(settings));
9252
9253
9254 #line default
9255 #line hidden
9256
9257 #line 3633 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9258 ;
9259 break;
9260 case ArticleHeaderLayout.Banner:
9261
9262
9263 #line default
9264 #line hidden
9265
9266 #line 3636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9267 WriteTo(__razor_helper_writer, RenderArticleBannerHeader(settings));
9268
9269
9270 #line default
9271 #line hidden
9272
9273 #line 3636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9274 ;
9275 break;
9276 case ArticleHeaderLayout.Overlay:
9277
9278
9279 #line default
9280 #line hidden
9281
9282 #line 3639 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9283 WriteTo(__razor_helper_writer, RenderArticleOverlayHeader(settings));
9284
9285
9286 #line default
9287 #line hidden
9288
9289 #line 3639 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9290 ;
9291 break;
9292 default:
9293
9294
9295 #line default
9296 #line hidden
9297
9298 #line 3642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9299 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
9300
9301
9302 #line default
9303 #line hidden
9304
9305 #line 3642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9306 ;
9307 break;
9308 }
9309 }
9310
9311
9312 #line default
9313 #line hidden
9314 });
9315
9316 #line 3646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9317 }
9318 #line default
9319 #line hidden
9320
9321
9322 #line 3648 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9323 public RazorEngine.Templating.TemplateWriter RenderArticleCleanHeader(ArticleHeader settings) {
9324 #line default
9325 #line hidden
9326 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
9327
9328 #line 3648 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9329
9330 dynamic[] methodParameters = new dynamic[1];
9331 methodParameters[0] = settings;
9332 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleCleanHeaderCustom");
9333
9334
9335 #line default
9336 #line hidden
9337 WriteLiteralTo(__razor_helper_writer, " <div");
9338
9339 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container\"");
9340
9341 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
9342
9343 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
9344
9345 WriteLiteralTo(__razor_helper_writer, ">\r\n");
9346
9347
9348 #line 3654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9349
9350
9351 #line default
9352 #line hidden
9353
9354 #line 3654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9355 if (customMethod != null)
9356 {
9357
9358
9359 #line default
9360 #line hidden
9361
9362 #line 3656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9363 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
9364
9365
9366 #line default
9367 #line hidden
9368
9369 #line 3656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9370 ;
9371 }
9372 else
9373 {
9374 if (settings.Category.HasValue() || settings.Author.HasValue() || settings.Date.HasValue() || settings.RatingOutOf != 0)
9375 {
9376 if (settings.Category.HasValue())
9377 {
9378
9379
9380 #line default
9381 #line hidden
9382 WriteLiteralTo(__razor_helper_writer, " <div");
9383
9384 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__category\"");
9385
9386 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 180457), Tuple.Create("\"", 180495)
9387 , Tuple.Create(Tuple.Create("", 180465), Tuple.Create("color:", 180465), true)
9388
9389 #line 3664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9390 , Tuple.Create(Tuple.Create(" ", 180471), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor
9391
9392 #line default
9393 #line hidden
9394 , 180472), false)
9395 );
9396
9397 WriteLiteralTo(__razor_helper_writer, ">");
9398
9399
9400 #line 3664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9401 WriteTo(__razor_helper_writer, settings.Category);
9402
9403
9404 #line default
9405 #line hidden
9406 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
9407
9408
9409 #line 3665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9410 }
9411
9412 if (settings.Author.HasValue() || settings.Date.HasValue())
9413 {
9414
9415
9416 #line default
9417 #line hidden
9418 WriteLiteralTo(__razor_helper_writer, " <small");
9419
9420 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__info mb-2\"");
9421
9422 WriteLiteralTo(__razor_helper_writer, ">");
9423
9424
9425 #line 3669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9426 WriteTo(__razor_helper_writer, settings.Author);
9427
9428
9429 #line default
9430 #line hidden
9431 WriteLiteralTo(__razor_helper_writer, " ");
9432
9433
9434 #line 3669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9435 WriteTo(__razor_helper_writer, settings.Date);
9436
9437
9438 #line default
9439 #line hidden
9440 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
9441
9442
9443 #line 3670 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9444 }
9445 if (settings.RatingOutOf != 0)
9446 {
9447
9448
9449 #line default
9450 #line hidden
9451
9452 #line 3673 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9453 WriteTo(__razor_helper_writer, RenderRating(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf }));
9454
9455
9456 #line default
9457 #line hidden
9458
9459 #line 3673 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9460
9461 }
9462 }
9463 if (settings.Heading.HasValue())
9464 {
9465
9466
9467 #line default
9468 #line hidden
9469 WriteLiteralTo(__razor_helper_writer, " <h1");
9470
9471 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__title h1 mb-2\"");
9472
9473 WriteLiteralTo(__razor_helper_writer, ">");
9474
9475
9476 #line 3678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9477 WriteTo(__razor_helper_writer, settings.Heading);
9478
9479
9480 #line default
9481 #line hidden
9482 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n");
9483
9484
9485 #line 3679 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9486 }
9487
9488 if (settings.Image != null)
9489 {
9490 if (settings.Image.Path != null)
9491 {
9492
9493
9494 #line default
9495 #line hidden
9496 WriteLiteralTo(__razor_helper_writer, " <div");
9497
9498 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__image mb-2\"");
9499
9500 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
9501
9502 WriteLiteralTo(__razor_helper_writer, " class=\"lazyload w-100\"");
9503
9504 WriteLiteralTo(__razor_helper_writer, " width=\"1920\"");
9505
9506 WriteLiteralTo(__razor_helper_writer, " height=\"1080\"");
9507
9508 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 181511), Tuple.Create("\"", 181675)
9509 , Tuple.Create(Tuple.Create("", 181517), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression" +
9510 "=20&DoNotUpscale=True&FillCanvas=False&Image=", 181517), true)
9511
9512 #line 3686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9513 , Tuple.Create(Tuple.Create("", 181655), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
9514
9515 #line default
9516 #line hidden
9517 , 181655), false)
9518 );
9519
9520 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&" +
9521 "Compression=95&DoNotUpscale=True&FillCanvas=False&Image=");
9522
9523
9524 #line 3686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9525 WriteTo(__razor_helper_writer, settings.Image.Path);
9526
9527
9528 #line default
9529 #line hidden
9530 WriteLiteralTo(__razor_helper_writer, "\"");
9531
9532 WriteLiteralTo(__razor_helper_writer, " />\r\n </div>\r\n");
9533
9534
9535 #line 3688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9536 }
9537 }
9538
9539 if (settings.Subheading.HasValue())
9540 {
9541
9542
9543 #line default
9544 #line hidden
9545 WriteLiteralTo(__razor_helper_writer, " <h3");
9546
9547 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subtitle h3 weight-normal mb-2 color-muted hidden\"");
9548
9549 WriteLiteralTo(__razor_helper_writer, ">");
9550
9551
9552 #line 3693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9553 WriteTo(__razor_helper_writer, settings.Subheading);
9554
9555
9556 #line default
9557 #line hidden
9558 WriteLiteralTo(__razor_helper_writer, "</h3> \r\n");
9559
9560
9561 #line 3694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9562 }
9563 if (settings.Link.HasValue())
9564 {
9565
9566
9567 #line default
9568 #line hidden
9569 WriteLiteralTo(__razor_helper_writer, " <div");
9570
9571 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__button\"");
9572
9573 WriteLiteralTo(__razor_helper_writer, ">\r\n");
9574
9575 WriteLiteralTo(__razor_helper_writer, " ");
9576
9577
9578 #line 3698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9579 WriteTo(__razor_helper_writer, RenderButton(new Button { Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout }));
9580
9581
9582 #line default
9583 #line hidden
9584 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
9585
9586
9587 #line 3700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9588 }
9589
9590 if (settings.ExternalParagraphId != 0)
9591 {
9592
9593
9594 #line default
9595 #line hidden
9596
9597 #line 3704 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9598 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId));
9599
9600
9601 #line default
9602 #line hidden
9603
9604 #line 3704 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9605
9606 }
9607 }
9608
9609
9610 #line default
9611 #line hidden
9612 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n");
9613
9614
9615 #line 3709 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9616
9617
9618 #line default
9619 #line hidden
9620 });
9621
9622 #line 3709 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9623 }
9624 #line default
9625 #line hidden
9626
9627
9628 #line 3711 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9629 public RazorEngine.Templating.TemplateWriter RenderArticleSplitHeader(ArticleHeader settings) {
9630 #line default
9631 #line hidden
9632 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
9633
9634 #line 3711 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9635
9636 dynamic[] methodParameters = new dynamic[1];
9637 methodParameters[0] = settings;
9638 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSplitHeaderCustom");
9639
9640 if (customMethod != null)
9641 {
9642
9643
9644 #line default
9645 #line hidden
9646
9647 #line 3718 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9648 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
9649
9650
9651 #line default
9652 #line hidden
9653
9654 #line 3718 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9655 ;
9656 }
9657 else
9658 {
9659 if (settings.Image != null)
9660 {
9661 if (settings.Image.Path != null)
9662 {
9663
9664
9665 #line default
9666 #line hidden
9667 WriteLiteralTo(__razor_helper_writer, " <div");
9668
9669 WriteLiteralTo(__razor_helper_writer, " class=\"grid-xs-2 bg-neutral\"");
9670
9671 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
9672
9673 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header__split mb-2 mb-xs-0 px-2 flex-wrap align-items-cen" +
9674 "ter\"");
9675
9676 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
9677
9678 WriteLiteralTo(__razor_helper_writer, " class=\"c0\"");
9679
9680 WriteLiteralTo(__razor_helper_writer, ">\r\n");
9681
9682
9683 #line 3729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9684
9685
9686 #line default
9687 #line hidden
9688
9689 #line 3729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9690 if (settings.Category.HasValue())
9691 {
9692
9693
9694 #line default
9695 #line hidden
9696 WriteLiteralTo(__razor_helper_writer, " <div");
9697
9698 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__category\"");
9699
9700 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 183549), Tuple.Create("\"", 183587)
9701 , Tuple.Create(Tuple.Create("", 183557), Tuple.Create("color:", 183557), true)
9702
9703 #line 3731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9704 , Tuple.Create(Tuple.Create(" ", 183563), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor
9705
9706 #line default
9707 #line hidden
9708 , 183564), false)
9709 );
9710
9711 WriteLiteralTo(__razor_helper_writer, ">");
9712
9713
9714 #line 3731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9715 WriteTo(__razor_helper_writer, settings.Category);
9716
9717
9718 #line default
9719 #line hidden
9720 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
9721
9722
9723 #line 3732 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9724 }
9725
9726
9727 #line default
9728 #line hidden
9729 WriteLiteralTo(__razor_helper_writer, " ");
9730
9731
9732 #line 3733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9733 if (settings.Heading.HasValue())
9734 {
9735
9736
9737 #line default
9738 #line hidden
9739 WriteLiteralTo(__razor_helper_writer, " <h1");
9740
9741 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__title h1 mb-2\"");
9742
9743 WriteLiteralTo(__razor_helper_writer, ">");
9744
9745
9746 #line 3735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9747 WriteTo(__razor_helper_writer, settings.Heading);
9748
9749
9750 #line default
9751 #line hidden
9752 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n");
9753
9754
9755 #line 3736 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9756 }
9757
9758
9759 #line default
9760 #line hidden
9761 WriteLiteralTo(__razor_helper_writer, " ");
9762
9763
9764 #line 3737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9765 if (settings.Subheading.HasValue())
9766 {
9767
9768
9769 #line default
9770 #line hidden
9771 WriteLiteralTo(__razor_helper_writer, " <h3");
9772
9773 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subtitle h3 weight-normal mb-2 color-muted\"");
9774
9775 WriteLiteralTo(__razor_helper_writer, ">");
9776
9777
9778 #line 3739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9779 WriteTo(__razor_helper_writer, settings.Subheading);
9780
9781
9782 #line default
9783 #line hidden
9784 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
9785
9786
9787 #line 3740 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9788 }
9789
9790
9791 #line default
9792 #line hidden
9793 WriteLiteralTo(__razor_helper_writer, " ");
9794
9795
9796 #line 3741 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9797 if (settings.Author.HasValue() || settings.Date.HasValue())
9798 {
9799
9800
9801 #line default
9802 #line hidden
9803 WriteLiteralTo(__razor_helper_writer, " <small");
9804
9805 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__info mb-2\"");
9806
9807 WriteLiteralTo(__razor_helper_writer, ">");
9808
9809
9810 #line 3743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9811 WriteTo(__razor_helper_writer, settings.Author);
9812
9813
9814 #line default
9815 #line hidden
9816 WriteLiteralTo(__razor_helper_writer, " ");
9817
9818
9819 #line 3743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9820 WriteTo(__razor_helper_writer, settings.Date);
9821
9822
9823 #line default
9824 #line hidden
9825 WriteLiteralTo(__razor_helper_writer, "</small>\r\n");
9826
9827
9828 #line 3744 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9829 }
9830
9831
9832 #line default
9833 #line hidden
9834 WriteLiteralTo(__razor_helper_writer, " ");
9835
9836
9837 #line 3745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9838 if (settings.RatingOutOf != 0)
9839 {
9840
9841
9842 #line default
9843 #line hidden
9844
9845 #line 3747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9846 WriteTo(__razor_helper_writer, RenderRating(new Rating {Score = settings.RatingScore, OutOf = settings.RatingOutOf}));
9847
9848
9849 #line default
9850 #line hidden
9851
9852 #line 3747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9853
9854 }
9855
9856
9857 #line default
9858 #line hidden
9859 WriteLiteralTo(__razor_helper_writer, " ");
9860
9861
9862 #line 3749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9863 if (settings.Link.HasValue())
9864 {
9865
9866
9867 #line default
9868 #line hidden
9869 WriteLiteralTo(__razor_helper_writer, " <div");
9870
9871 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__button\"");
9872
9873 WriteLiteralTo(__razor_helper_writer, ">\r\n");
9874
9875 WriteLiteralTo(__razor_helper_writer, " ");
9876
9877
9878 #line 3752 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9879 WriteTo(__razor_helper_writer, RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}));
9880
9881
9882 #line default
9883 #line hidden
9884 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
9885
9886
9887 #line 3754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9888 }
9889
9890
9891 #line default
9892 #line hidden
9893 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n\r\n " +
9894 " <div");
9895
9896 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__image mb-2 mb-xs-0\"");
9897
9898 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
9899
9900 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 185087), Tuple.Create("\"", 185251)
9901 , Tuple.Create(Tuple.Create("", 185093), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression" +
9902 "=95&DoNotUpscale=True&FillCanvas=False&Image=", 185093), true)
9903
9904 #line 3759 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9905 , Tuple.Create(Tuple.Create("", 185231), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
9906
9907 #line default
9908 #line hidden
9909 , 185231), false)
9910 );
9911
9912 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </div>\r\n");
9913
9914
9915 #line 3762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9916 if (settings.ExternalParagraphId != 0)
9917 {
9918
9919
9920 #line default
9921 #line hidden
9922
9923 #line 3764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9924 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId));
9925
9926
9927 #line default
9928 #line hidden
9929
9930 #line 3764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9931
9932 }
9933 }
9934 }
9935 else
9936 {
9937
9938
9939 #line default
9940 #line hidden
9941
9942 #line 3770 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9943 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
9944
9945
9946 #line default
9947 #line hidden
9948
9949 #line 3770 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9950 ;
9951 }
9952 }
9953
9954
9955 #line default
9956 #line hidden
9957 });
9958
9959 #line 3773 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9960 }
9961 #line default
9962 #line hidden
9963
9964
9965 #line 3775 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9966 public RazorEngine.Templating.TemplateWriter RenderArticleOverlayHeader(ArticleHeader settings) {
9967 #line default
9968 #line hidden
9969 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
9970
9971 #line 3775 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9972
9973 dynamic[] methodParameters = new dynamic[1];
9974 methodParameters[0] = settings;
9975 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleOverlayHeaderCustom");
9976
9977 if (customMethod != null)
9978 {
9979
9980
9981 #line default
9982 #line hidden
9983
9984 #line 3782 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9985 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
9986
9987
9988 #line default
9989 #line hidden
9990
9991 #line 3782 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
9992 ;
9993 }
9994 else
9995 {
9996 if (settings.Image != null)
9997 {
9998 if (settings.Image.Path != null)
9999 {
10000 if (settings.ExternalParagraphId == 0)
10001 {
10002
10003
10004 #line default
10005 #line hidden
10006 WriteLiteralTo(__razor_helper_writer, " <div");
10007
10008 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide\"");
10009
10010 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10011
10012 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
10013
10014 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10015
10016 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero\"");
10017
10018 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10019
10020 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero__content\"");
10021
10022 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10023
10024 WriteLiteralTo(__razor_helper_writer, " class=\"block-container flex-wrap align-items-top h-100\"");
10025
10026 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10027
10028 WriteLiteralTo(__razor_helper_writer, " class=\"c0 mt-4\"");
10029
10030 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10031
10032
10033 #line 3798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10034
10035
10036 #line default
10037 #line hidden
10038
10039 #line 3798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10040 if (!String.IsNullOrEmpty(settings.Heading))
10041 {
10042
10043
10044 #line default
10045 #line hidden
10046 WriteLiteralTo(__razor_helper_writer, " <h1");
10047
10048 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__title h1 mb-2\"");
10049
10050 WriteLiteralTo(__razor_helper_writer, ">");
10051
10052
10053 #line 3800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10054 WriteTo(__razor_helper_writer, settings.Heading);
10055
10056
10057 #line default
10058 #line hidden
10059 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n");
10060
10061
10062 #line 3801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10063 }
10064
10065
10066 #line default
10067 #line hidden
10068 WriteLiteralTo(__razor_helper_writer, " ");
10069
10070
10071 #line 3802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10072 if (!String.IsNullOrEmpty(settings.Subheading))
10073 {
10074
10075
10076 #line default
10077 #line hidden
10078 WriteLiteralTo(__razor_helper_writer, " <div");
10079
10080 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subtitle h3 weight-normal mb-2\"");
10081
10082 WriteLiteralTo(__razor_helper_writer, ">");
10083
10084
10085 #line 3804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10086 WriteTo(__razor_helper_writer, settings.Subheading);
10087
10088
10089 #line default
10090 #line hidden
10091 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
10092
10093
10094 #line 3805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10095 }
10096
10097
10098 #line default
10099 #line hidden
10100 WriteLiteralTo(__razor_helper_writer, " ");
10101
10102
10103 #line 3806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10104 if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date))
10105 {
10106
10107
10108 #line default
10109 #line hidden
10110 WriteLiteralTo(__razor_helper_writer, " <div");
10111
10112 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__info mb-2\"");
10113
10114 WriteLiteralTo(__razor_helper_writer, ">");
10115
10116
10117 #line 3808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10118 WriteTo(__razor_helper_writer, settings.Author);
10119
10120
10121 #line default
10122 #line hidden
10123 WriteLiteralTo(__razor_helper_writer, " ");
10124
10125
10126 #line 3808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10127 WriteTo(__razor_helper_writer, settings.Date);
10128
10129
10130 #line default
10131 #line hidden
10132 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
10133
10134
10135 #line 3809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10136 }
10137
10138
10139 #line default
10140 #line hidden
10141 WriteLiteralTo(__razor_helper_writer, " ");
10142
10143
10144 #line 3810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10145 if (!String.IsNullOrEmpty(settings.Link))
10146 {
10147
10148
10149 #line default
10150 #line hidden
10151 WriteLiteralTo(__razor_helper_writer, " <div");
10152
10153 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__button\"");
10154
10155 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10156
10157 WriteLiteralTo(__razor_helper_writer, " ");
10158
10159
10160 #line 3813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10161 WriteTo(__razor_helper_writer, RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}));
10162
10163
10164 #line default
10165 #line hidden
10166 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
10167
10168
10169 #line 3815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10170 }
10171
10172
10173 #line default
10174 #line hidden
10175 WriteLiteralTo(__razor_helper_writer, " ");
10176
10177
10178 #line 3816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10179 if (settings.ExternalParagraphId != 0)
10180 {
10181
10182
10183 #line default
10184 #line hidden
10185
10186 #line 3818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10187 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId));
10188
10189
10190 #line default
10191 #line hidden
10192
10193 #line 3818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10194
10195 }
10196
10197
10198 #line default
10199 #line hidden
10200 WriteLiteralTo(__razor_helper_writer, " </div>\r\n " +
10201 " </div>\r\n </div>\r\n " +
10202 " <div");
10203
10204 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail-hero__image\"");
10205
10206 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
10207
10208 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 188584), Tuple.Create("\"", 188748)
10209 , Tuple.Create(Tuple.Create("", 188590), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression" +
10210 "=20&DoNotUpscale=True&FillCanvas=False&Image=", 188590), true)
10211
10212 #line 3824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10213 , Tuple.Create(Tuple.Create("", 188728), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
10214
10215 #line default
10216 #line hidden
10217 , 188728), false)
10218 );
10219
10220 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&" +
10221 "Compression=95&DoNotUpscale=True&FillCanvas=False&Image=");
10222
10223
10224 #line 3824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10225 WriteTo(__razor_helper_writer, settings.Image.Path);
10226
10227
10228 #line default
10229 #line hidden
10230 WriteLiteralTo(__razor_helper_writer, "\"");
10231
10232 WriteLiteralTo(__razor_helper_writer, " class=\"object-fit-cover h-100 block w-100 lazyload\"");
10233
10234 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </div>\r\n " +
10235 " </div>\r\n </div>\r\n");
10236
10237
10238 #line 3829 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10239 }
10240 else
10241 {
10242
10243
10244 #line default
10245 #line hidden
10246
10247 #line 3832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10248 WriteTo(__razor_helper_writer, RenderArticleBanner(settings));
10249
10250
10251 #line default
10252 #line hidden
10253
10254 #line 3832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10255 ;
10256 }
10257 }
10258 }
10259 else
10260 {
10261
10262
10263 #line default
10264 #line hidden
10265
10266 #line 3838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10267 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings));
10268
10269
10270 #line default
10271 #line hidden
10272
10273 #line 3838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10274 ;
10275 }
10276 }
10277
10278
10279 #line default
10280 #line hidden
10281 });
10282
10283 #line 3841 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10284 }
10285 #line default
10286 #line hidden
10287
10288
10289 #line 3843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10290 public RazorEngine.Templating.TemplateWriter RenderArticleBannerHeader(dynamic settings) {
10291 #line default
10292 #line hidden
10293 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10294
10295 #line 3843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10296
10297 dynamic[] methodParameters = new dynamic[1];
10298 methodParameters[0] = settings;
10299 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerHeaderCustom");
10300
10301 if (customMethod != null)
10302 {
10303
10304
10305 #line default
10306 #line hidden
10307
10308 #line 3850 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10309 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10310
10311
10312 #line default
10313 #line hidden
10314
10315 #line 3850 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10316 ;
10317 }
10318 else
10319 {
10320
10321
10322 #line default
10323 #line hidden
10324
10325 #line 3854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10326 WriteTo(__razor_helper_writer, RenderArticleBanner(settings));
10327
10328
10329 #line default
10330 #line hidden
10331
10332 #line 3854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10333 ;
10334 }
10335
10336
10337 #line default
10338 #line hidden
10339 });
10340
10341 #line 3856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10342 }
10343 #line default
10344 #line hidden
10345
10346
10347 #line 3867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10348 public RazorEngine.Templating.TemplateWriter RenderArticleBodyRow(ArticleBodyRow settings)
10349 {
10350 #line default
10351 #line hidden
10352 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10353
10354 #line 3868 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10355
10356 dynamic[] methodParameters = new dynamic[1];
10357 methodParameters[0] = settings;
10358 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBodyRowCustom");
10359
10360 if (customMethod != null)
10361 {
10362
10363
10364 #line default
10365 #line hidden
10366
10367 #line 3875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10368 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10369
10370
10371 #line default
10372 #line hidden
10373
10374 #line 3875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10375 ;
10376 } else {
10377
10378
10379 #line default
10380 #line hidden
10381
10382 #line 3877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10383 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks));
10384
10385
10386 #line default
10387 #line hidden
10388
10389 #line 3877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10390
10391 }
10392
10393
10394 #line default
10395 #line hidden
10396 });
10397
10398 #line 3879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10399 }
10400 #line default
10401 #line hidden
10402
10403
10404 #line 3888 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10405 public RazorEngine.Templating.TemplateWriter RenderArticleImage(ArticleImage settings)
10406 {
10407 #line default
10408 #line hidden
10409 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10410
10411 #line 3889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10412
10413 dynamic[] methodParameters = new dynamic[1];
10414 methodParameters[0] = settings;
10415 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleImageCustom");
10416
10417 if (customMethod != null)
10418 {
10419
10420
10421 #line default
10422 #line hidden
10423
10424 #line 3896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10425 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10426
10427
10428 #line default
10429 #line hidden
10430
10431 #line 3896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10432 ;
10433 }
10434 else
10435 {
10436 if (settings.Image != null)
10437 {
10438 if (settings.Image.Path != null)
10439 {
10440
10441
10442 #line default
10443 #line hidden
10444 WriteLiteralTo(__razor_helper_writer, " <img");
10445
10446 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&" +
10447 "Format=jpg&Resolution=72&Image=");
10448
10449
10450 #line 3904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10451 WriteTo(__razor_helper_writer, settings.Image.Path);
10452
10453
10454 #line default
10455 #line hidden
10456 WriteLiteralTo(__razor_helper_writer, "\"");
10457
10458 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-auto block lazyload\"");
10459
10460 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 191439), Tuple.Create("\"", 191574)
10461 , Tuple.Create(Tuple.Create("", 191445), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&" +
10462 "amp;Resolution=20&Image=", 191445), true)
10463
10464 #line 3904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10465 , Tuple.Create(Tuple.Create("", 191554), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
10466
10467 #line default
10468 #line hidden
10469 , 191554), false)
10470 );
10471
10472 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10473
10474
10475 #line 3905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10476 }
10477 }
10478 }
10479
10480
10481 #line default
10482 #line hidden
10483 });
10484
10485 #line 3908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10486 }
10487 #line default
10488 #line hidden
10489
10490
10491 #line 3916 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10492 public RazorEngine.Templating.TemplateWriter RenderArticleSubHeader(ArticleSubHeader settings)
10493 {
10494 #line default
10495 #line hidden
10496 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10497
10498 #line 3917 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10499
10500 dynamic[] methodParameters = new dynamic[1];
10501 methodParameters[0] = settings;
10502 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSubHeaderCustom");
10503
10504 if (customMethod != null)
10505 {
10506
10507
10508 #line default
10509 #line hidden
10510
10511 #line 3924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10512 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10513
10514
10515 #line default
10516 #line hidden
10517
10518 #line 3924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10519 ;
10520 } else {
10521 if (!String.IsNullOrEmpty(settings.Title))
10522 {
10523
10524
10525 #line default
10526 #line hidden
10527 WriteLiteralTo(__razor_helper_writer, " <div");
10528
10529 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow\"");
10530
10531 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10532
10533 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
10534
10535 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2");
10536
10537 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h3\"");
10538
10539 WriteLiteralTo(__razor_helper_writer, ">");
10540
10541
10542 #line 3930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10543 WriteTo(__razor_helper_writer, settings.Title);
10544
10545
10546 #line default
10547 #line hidden
10548 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n </div>\r\n");
10549
10550
10551 #line 3933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10552 }
10553 }
10554
10555
10556 #line default
10557 #line hidden
10558 });
10559
10560 #line 3935 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10561 }
10562 #line default
10563 #line hidden
10564
10565
10566 #line 3945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10567 public RazorEngine.Templating.TemplateWriter RenderArticleText(ArticleText settings)
10568 {
10569 #line default
10570 #line hidden
10571 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10572
10573 #line 3946 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10574
10575 dynamic[] methodParameters = new dynamic[1];
10576 methodParameters[0] = settings;
10577 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom");
10578
10579 if (customMethod != null)
10580 {
10581
10582
10583 #line default
10584 #line hidden
10585
10586 #line 3953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10587 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10588
10589
10590 #line default
10591 #line hidden
10592
10593 #line 3953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10594 ;
10595 } else {
10596 if (settings.Text.HasValue())
10597 {
10598
10599
10600 #line default
10601 #line hidden
10602 WriteLiteralTo(__razor_helper_writer, " <div");
10603
10604 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow mt-2 mb-3\"");
10605
10606 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10607
10608 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
10609
10610 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10611
10612 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__content font-size-20\"");
10613
10614 WriteLiteralTo(__razor_helper_writer, ">");
10615
10616
10617 #line 3959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10618 WriteTo(__razor_helper_writer, settings.Text);
10619
10620
10621 #line default
10622 #line hidden
10623 WriteLiteralTo(__razor_helper_writer, "</div> \r\n </div>\r\n </div>\r\n");
10624
10625
10626 #line 3962 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10627
10628 }
10629 }
10630
10631
10632 #line default
10633 #line hidden
10634 });
10635
10636 #line 3965 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10637 }
10638 #line default
10639 #line hidden
10640
10641
10642 #line 3974 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10643 public RazorEngine.Templating.TemplateWriter RenderArticleQuote(ArticleQuote settings)
10644 {
10645 #line default
10646 #line hidden
10647 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10648
10649 #line 3975 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10650
10651 dynamic[] methodParameters = new dynamic[1];
10652 methodParameters[0] = settings;
10653 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleQuoteCustom");
10654
10655 if (customMethod != null)
10656 {
10657
10658
10659 #line default
10660 #line hidden
10661
10662 #line 3982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10663 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10664
10665
10666 #line default
10667 #line hidden
10668
10669 #line 3982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10670 ;
10671 } else {
10672 string text = Regex.Replace(settings.Text, "<.*?>", String.Empty);
10673
10674
10675
10676 #line default
10677 #line hidden
10678 WriteLiteralTo(__razor_helper_writer, " <div");
10679
10680 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow\"");
10681
10682 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10683
10684 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
10685
10686 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10687
10688
10689 #line 3988 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10690
10691
10692 #line default
10693 #line hidden
10694
10695 #line 3988 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10696 if (settings.Image != null)
10697 {
10698 if (settings.Image.Path != null)
10699 {
10700
10701
10702 #line default
10703 #line hidden
10704 WriteLiteralTo(__razor_helper_writer, " <div");
10705
10706 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-3\"");
10707
10708 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
10709
10710 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell-img\"");
10711
10712 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10713
10714
10715 #line 3994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10716
10717
10718 #line default
10719 #line hidden
10720
10721 #line 3994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10722
10723 settings.Image.Title = !String.IsNullOrEmpty(settings.Image.Title) ? settings.Image.Title : settings.Author;
10724 settings.Image.CssClass += " article__image article__image--ball";
10725 settings.Image.ImageDefault.Width = 200;
10726 settings.Image.ImageDefault.Height = 200;
10727
10728
10729 #line default
10730 #line hidden
10731 WriteLiteralTo(__razor_helper_writer, "\r\n");
10732
10733 WriteLiteralTo(__razor_helper_writer, " ");
10734
10735
10736 #line 4000 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10737 WriteTo(__razor_helper_writer, RenderImage(settings.Image));
10738
10739
10740 #line default
10741 #line hidden
10742 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n");
10743
10744
10745 #line 4003 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10746 }
10747 }
10748
10749
10750 #line default
10751 #line hidden
10752 WriteLiteralTo(__razor_helper_writer, " <div");
10753
10754 WriteLiteralTo(__razor_helper_writer, " class=\"bg-neutral h4 my-5 p-5 article-detail__quote relative overflow-hidden\"");
10755
10756 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10757
10758
10759 #line 4006 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10760
10761
10762 #line default
10763 #line hidden
10764
10765 #line 4006 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10766 if (!String.IsNullOrEmpty(settings.Text))
10767 {
10768
10769
10770 #line default
10771 #line hidden
10772 WriteLiteralTo(__razor_helper_writer, " <div");
10773
10774 WriteLiteralTo(__razor_helper_writer, " class=\"ico quote--start\"");
10775
10776 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
10777
10778 WriteLiteralTo(__razor_helper_writer, " width=\'512\'");
10779
10780 WriteLiteralTo(__razor_helper_writer, " height=\'512\'");
10781
10782 WriteLiteralTo(__razor_helper_writer, " viewBox=\'0 0 512 512\'");
10783
10784 WriteLiteralTo(__razor_helper_writer, "><line");
10785
10786 WriteLiteralTo(__razor_helper_writer, " x1=\'118\'");
10787
10788 WriteLiteralTo(__razor_helper_writer, " y1=\'304\'");
10789
10790 WriteLiteralTo(__razor_helper_writer, " x2=\'394\'");
10791
10792 WriteLiteralTo(__razor_helper_writer, " y2=\'304\'");
10793
10794 WriteLiteralTo(__razor_helper_writer, " style=\'fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:s" +
10795 "quare;stroke-linejoin:round;stroke-width:44px\'");
10796
10797 WriteLiteralTo(__razor_helper_writer, "/><line");
10798
10799 WriteLiteralTo(__razor_helper_writer, " x1=\'118\'");
10800
10801 WriteLiteralTo(__razor_helper_writer, " y1=\'208\'");
10802
10803 WriteLiteralTo(__razor_helper_writer, " x2=\'394\'");
10804
10805 WriteLiteralTo(__razor_helper_writer, " y2=\'208\'");
10806
10807 WriteLiteralTo(__razor_helper_writer, " style=\'fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:s" +
10808 "quare;stroke-linejoin:round;stroke-width:44px\'");
10809
10810 WriteLiteralTo(__razor_helper_writer, "/></svg> \r\n </div>\r\n");
10811
10812 WriteLiteralTo(__razor_helper_writer, " <div");
10813
10814 WriteLiteralTo(__razor_helper_writer, " class=\"ico quote--end\"");
10815
10816 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
10817
10818 WriteLiteralTo(__razor_helper_writer, " width=\'512\'");
10819
10820 WriteLiteralTo(__razor_helper_writer, " height=\'512\'");
10821
10822 WriteLiteralTo(__razor_helper_writer, " viewBox=\'0 0 512 512\'");
10823
10824 WriteLiteralTo(__razor_helper_writer, "><line");
10825
10826 WriteLiteralTo(__razor_helper_writer, " x1=\'118\'");
10827
10828 WriteLiteralTo(__razor_helper_writer, " y1=\'304\'");
10829
10830 WriteLiteralTo(__razor_helper_writer, " x2=\'394\'");
10831
10832 WriteLiteralTo(__razor_helper_writer, " y2=\'304\'");
10833
10834 WriteLiteralTo(__razor_helper_writer, " style=\'fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:s" +
10835 "quare;stroke-linejoin:round;stroke-width:44px\'");
10836
10837 WriteLiteralTo(__razor_helper_writer, "/><line");
10838
10839 WriteLiteralTo(__razor_helper_writer, " x1=\'118\'");
10840
10841 WriteLiteralTo(__razor_helper_writer, " y1=\'208\'");
10842
10843 WriteLiteralTo(__razor_helper_writer, " x2=\'394\'");
10844
10845 WriteLiteralTo(__razor_helper_writer, " y2=\'208\'");
10846
10847 WriteLiteralTo(__razor_helper_writer, " style=\'fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:s" +
10848 "quare;stroke-linejoin:round;stroke-width:44px\'");
10849
10850 WriteLiteralTo(__razor_helper_writer, "/></svg> \r\n </div>\r\n");
10851
10852 WriteLiteralTo(__razor_helper_writer, " <div");
10853
10854 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__quote__content relative\"");
10855
10856 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10857
10858 WriteLiteralTo(__razor_helper_writer, " ");
10859
10860
10861 #line 4015 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10862 WriteTo(__razor_helper_writer, settings.Text);
10863
10864
10865 #line default
10866 #line hidden
10867 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
10868
10869
10870 #line 4017 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10871
10872 }
10873
10874
10875 #line default
10876 #line hidden
10877 WriteLiteralTo(__razor_helper_writer, " ");
10878
10879
10880 #line 4019 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10881 if (!String.IsNullOrEmpty(settings.Author))
10882 {
10883
10884
10885 #line default
10886 #line hidden
10887 WriteLiteralTo(__razor_helper_writer, " <div");
10888
10889 WriteLiteralTo(__razor_helper_writer, " class=\"article__quote-author dw-mod\"");
10890
10891 WriteLiteralTo(__razor_helper_writer, ">\r\n - ");
10892
10893
10894 #line 4022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10895 WriteTo(__razor_helper_writer, settings.Author);
10896
10897
10898 #line default
10899 #line hidden
10900 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
10901
10902
10903 #line 4024 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10904 }
10905
10906
10907 #line default
10908 #line hidden
10909 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n");
10910
10911
10912 #line 4028 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10913 }
10914
10915
10916 #line default
10917 #line hidden
10918 });
10919
10920 #line 4029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10921 }
10922 #line default
10923 #line hidden
10924
10925
10926 #line 4037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10927 public RazorEngine.Templating.TemplateWriter RenderArticleInfoTable(ArticleInfoTable settings)
10928 {
10929 #line default
10930 #line hidden
10931 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
10932
10933 #line 4038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10934
10935 dynamic[] methodParameters = new dynamic[1];
10936 methodParameters[0] = settings;
10937 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleInfoTableCustom");
10938
10939 if (customMethod != null)
10940 {
10941
10942
10943 #line default
10944 #line hidden
10945
10946 #line 4045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10947 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
10948
10949
10950 #line default
10951 #line hidden
10952
10953 #line 4045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10954 ;
10955 } else {
10956
10957
10958 #line default
10959 #line hidden
10960 WriteLiteralTo(__razor_helper_writer, " <div");
10961
10962 WriteLiteralTo(__razor_helper_writer, " class=\"grid-md-2\"");
10963
10964 WriteLiteralTo(__razor_helper_writer, ">\r\n");
10965
10966
10967 #line 4048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10968
10969
10970 #line default
10971 #line hidden
10972
10973 #line 4048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10974 foreach (var row in settings.Rows)
10975 {
10976 string iconColor = row.IconColor != null ? row.IconColor : "u-brand-color-two";
10977
10978 if (!String.IsNullOrEmpty(row.Icon))
10979 {
10980
10981
10982 #line default
10983 #line hidden
10984 WriteLiteralTo(__razor_helper_writer, " <div><i");
10985
10986 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 197769), Tuple.Create("\"", 197807)
10987
10988 #line 4054 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10989 , Tuple.Create(Tuple.Create("", 197777), Tuple.Create<System.Object, System.Int32>(row.Icon
10990
10991 #line default
10992 #line hidden
10993 , 197777), false)
10994 , Tuple.Create(Tuple.Create(" ", 197786), Tuple.Create("fa-2x", 197787), true)
10995
10996 #line 4054 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
10997 , Tuple.Create(Tuple.Create(" ", 197792), Tuple.Create<System.Object, System.Int32>(row.IconColor
10998
10999 #line default
11000 #line hidden
11001 , 197793), false)
11002 );
11003
11004 WriteLiteralTo(__razor_helper_writer, "></i></div>\r\n");
11005
11006
11007 #line 4055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11008 }
11009
11010
11011 #line default
11012 #line hidden
11013 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <div>");
11014
11015
11016 #line 4057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11017 WriteTo(__razor_helper_writer, row.Title);
11018
11019
11020 #line default
11021 #line hidden
11022 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
11023
11024
11025 #line 4058 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11026
11027
11028 #line default
11029 #line hidden
11030
11031 #line 4058 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11032 if (!String.IsNullOrEmpty(row.SubTitle))
11033 {
11034 if (row.Link == null)
11035 {
11036
11037
11038 #line default
11039 #line hidden
11040 WriteLiteralTo(__razor_helper_writer, " <div>");
11041
11042
11043 #line 4062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11044 WriteTo(__razor_helper_writer, row.SubTitle);
11045
11046
11047 #line default
11048 #line hidden
11049 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
11050
11051
11052 #line 4063 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11053 }
11054 else
11055 {
11056
11057
11058 #line default
11059 #line hidden
11060 WriteLiteralTo(__razor_helper_writer, " <a");
11061
11062 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 198234), Tuple.Create("\"", 198250)
11063
11064 #line 4066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11065 , Tuple.Create(Tuple.Create("", 198241), Tuple.Create<System.Object, System.Int32>(row.Link
11066
11067 #line default
11068 #line hidden
11069 , 198241), false)
11070 );
11071
11072 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-inherit\"");
11073
11074 WriteLiteralTo(__razor_helper_writer, ">");
11075
11076
11077 #line 4066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11078 WriteTo(__razor_helper_writer, row.SubTitle);
11079
11080
11081 #line default
11082 #line hidden
11083 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
11084
11085
11086 #line 4067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11087 }
11088 }
11089
11090
11091 #line default
11092 #line hidden
11093 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
11094
11095
11096 #line 4070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11097 }
11098
11099
11100 #line default
11101 #line hidden
11102 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
11103
11104
11105 #line 4072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11106 }
11107
11108
11109 #line default
11110 #line hidden
11111 });
11112
11113 #line 4073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11114 }
11115 #line default
11116 #line hidden
11117
11118
11119 #line 4081 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11120 public RazorEngine.Templating.TemplateWriter RenderArticleGalleryModal(ArticleGalleryModal settings)
11121 {
11122 #line default
11123 #line hidden
11124 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11125
11126 #line 4082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11127
11128 dynamic[] methodParameters = new dynamic[1];
11129 methodParameters[0] = settings;
11130 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
11131
11132 if (customMethod != null)
11133 {
11134
11135
11136 #line default
11137 #line hidden
11138
11139 #line 4089 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11140 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11141
11142
11143 #line default
11144 #line hidden
11145
11146 #line 4089 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11147 ;
11148 }
11149 else
11150 {
11151
11152
11153 #line default
11154 #line hidden
11155 WriteLiteralTo(__razor_helper_writer, " <input");
11156
11157 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
11158
11159 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGalleryModalTrigger\"");
11160
11161 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\"");
11162
11163 WriteLiteralTo(__razor_helper_writer, " />\r\n");
11164
11165 WriteLiteralTo(__razor_helper_writer, " <div");
11166
11167 WriteLiteralTo(__razor_helper_writer, " class=\"modal-container\"");
11168
11169 WriteLiteralTo(__razor_helper_writer, ">\r\n <label");
11170
11171 WriteLiteralTo(__razor_helper_writer, " for=\"ParagraphGalleryModalTrigger\"");
11172
11173 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGalleryModalOverlay\"");
11174
11175 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\"");
11176
11177 WriteLiteralTo(__razor_helper_writer, "></label>\r\n <div");
11178
11179 WriteLiteralTo(__razor_helper_writer, " class=\"modal modal--full\"");
11180
11181 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGalleryModal\"");
11182
11183 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
11184
11185 WriteLiteralTo(__razor_helper_writer, " class=\"modal__body modal__body--full\"");
11186
11187 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
11188
11189 WriteLiteralTo(__razor_helper_writer, " class=\"modal__image-min-size-wrapper\"");
11190
11191 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
11192
11193 WriteLiteralTo(__razor_helper_writer, " src=\"/Files/Images/placeholder.gif\"");
11194
11195 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGallery\"");
11196
11197 WriteLiteralTo(__razor_helper_writer, " class=\"modal--full__img\"");
11198
11199 WriteLiteralTo(__razor_helper_writer, " alt=\"\"");
11200
11201 WriteLiteralTo(__razor_helper_writer, ">\r\n </div>\r\n <div");
11202
11203 WriteLiteralTo(__razor_helper_writer, " class=\"modal__images-counter\"");
11204
11205 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGallery_counter\"");
11206
11207 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <button");
11208
11209 WriteLiteralTo(__razor_helper_writer, " class=\"modal__prev-btn\"");
11210
11211 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGallery_prev\"");
11212
11213 WriteLiteralTo(__razor_helper_writer, " onclick=\"Gallery.prevImage(\'ParagraphGallery\')\"");
11214
11215 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
11216
11217 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
11218
11219 WriteLiteralTo(__razor_helper_writer, " class=\"far fa-angle-left\"");
11220
11221 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n <button");
11222
11223 WriteLiteralTo(__razor_helper_writer, " class=\"modal__next-btn\"");
11224
11225 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGallery_next\"");
11226
11227 WriteLiteralTo(__razor_helper_writer, " onclick=\"Gallery.nextImage(\'ParagraphGallery\')\"");
11228
11229 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
11230
11231 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
11232
11233 WriteLiteralTo(__razor_helper_writer, " class=\"far fa-angle-right\"");
11234
11235 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n </div>\r\n <la" +
11236 "bel");
11237
11238 WriteLiteralTo(__razor_helper_writer, " class=\"modal__close-btn\"");
11239
11240 WriteLiteralTo(__razor_helper_writer, " for=\"ParagraphGalleryModalTrigger\"");
11241
11242 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n");
11243
11244
11245 #line 4112 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11246 }
11247
11248
11249 #line default
11250 #line hidden
11251 });
11252
11253 #line 4113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11254 }
11255 #line default
11256 #line hidden
11257
11258
11259 #line 4122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11260 public RazorEngine.Templating.TemplateWriter RenderArticleRelated(ArticleRelated settings)
11261 {
11262 #line default
11263 #line hidden
11264 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11265
11266 #line 4123 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11267
11268 //string cardClass = Pageview.Device.ToString() != "Tablet" ? "card u-color-light--bg u-full-height" : "";
11269 //string cardFooterClass = Pageview.Device.ToString() != "Tablet" ? "card-footer u-color-light--bg" : "";
11270
11271
11272
11273 #line default
11274 #line hidden
11275 WriteLiteralTo(__razor_helper_writer, " <section");
11276
11277 WriteLiteralTo(__razor_helper_writer, " class=\"col-12 related\"");
11278
11279 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2");
11280
11281 WriteLiteralTo(__razor_helper_writer, " class=\"article__header\"");
11282
11283 WriteLiteralTo(__razor_helper_writer, ">");
11284
11285
11286 #line 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11287 WriteTo(__razor_helper_writer, settings.Title);
11288
11289
11290 #line default
11291 #line hidden
11292 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n\r\n <div");
11293
11294 WriteLiteralTo(__razor_helper_writer, " class=\"js-handlebars-root\"");
11295
11296 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 200914), Tuple.Create("\"", 200962)
11297
11298 #line 4130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11299 , Tuple.Create(Tuple.Create("", 200919), Tuple.Create<System.Object, System.Int32>(settings.Title.Replace(" ", String.Empty)
11300
11301 #line default
11302 #line hidden
11303 , 200919), false)
11304 );
11305
11306 WriteLiteralTo(__razor_helper_writer, " data-template=\"RelatedSimpleTemplate\"");
11307
11308 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"/Default.aspx?ID=");
11309
11310
11311 #line 4130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11312 WriteTo(__razor_helper_writer, settings.FeedPageId);
11313
11314
11315 #line default
11316 #line hidden
11317 WriteLiteralTo(__razor_helper_writer, "&");
11318
11319
11320 #line 4130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11321 WriteTo(__razor_helper_writer, settings.Query);
11322
11323
11324 #line default
11325 #line hidden
11326 WriteLiteralTo(__razor_helper_writer, "&ExcludeItemID=");
11327
11328
11329 #line 4130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11330 WriteTo(__razor_helper_writer, settings.CurrentPageId);
11331
11332
11333 #line default
11334 #line hidden
11335 WriteLiteralTo(__razor_helper_writer, "&PageSize=");
11336
11337
11338 #line 4130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11339 WriteTo(__razor_helper_writer, settings.PageSize);
11340
11341
11342 #line default
11343 #line hidden
11344 WriteLiteralTo(__razor_helper_writer, "\"");
11345
11346 WriteLiteralTo(__razor_helper_writer, "></div>\r\n\r\n <script");
11347
11348 WriteLiteralTo(__razor_helper_writer, " id=\"RelatedSimpleTemplate\"");
11349
11350 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
11351
11352 WriteLiteralTo(__razor_helper_writer, @">
11353 {{#.}}
11354 <div class=""grid"">
11355 {{#Cases}}
11356 <div class=""col-4"">
11357 <a href=""{{link}}"">
11358 {{#if image}}
11359 <div class=""flex-img image-hover__wrapper"">
11360 <img class=""img-fluid lazyload"" loading=""lazy"" src=""/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&DoNotUpscale=True&Compression=75&image={{image}}"" alt=""{{title}}"" />
11361 </div>
11362 {{/if}}
11363
11364 <div class=""card"">
11365 <h3 class=""article-list__item-header"">{{title}}</h3>
11366 <p class=""article__summary"">{{summary}}</p>
11367 </div>
11368 </a>
11369 </div>
11370 {{/Cases}}
11371 </div>
11372 {{/.}}
11373 </script>
11374 </section>
11375 ");
11376
11377
11378 #line 4155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11379
11380
11381 #line default
11382 #line hidden
11383 });
11384
11385 #line 4155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11386 }
11387 #line default
11388 #line hidden
11389
11390
11391 #line 4165 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11392 public RazorEngine.Templating.TemplateWriter RenderArticleMenu(ArticleMenu settings)
11393 {
11394 #line default
11395 #line hidden
11396 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11397
11398 #line 4166 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11399
11400 dynamic[] methodParameters = new dynamic[1];
11401 methodParameters[0] = settings;
11402 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuCustom");
11403
11404 if (customMethod != null)
11405 {
11406
11407
11408 #line default
11409 #line hidden
11410
11411 #line 4173 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11412 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11413
11414
11415 #line default
11416 #line hidden
11417
11418 #line 4173 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11419 ;
11420 } else {
11421 if (settings.Title.HasValue()) {
11422
11423
11424 #line default
11425 #line hidden
11426 WriteLiteralTo(__razor_helper_writer, " <h3>");
11427
11428
11429 #line 4176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11430 WriteTo(__razor_helper_writer, settings.Title);
11431
11432
11433 #line default
11434 #line hidden
11435 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
11436
11437
11438 #line 4177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11439 }
11440
11441
11442
11443 #line default
11444 #line hidden
11445 WriteLiteralTo(__razor_helper_writer, " <ul");
11446
11447 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left\"");
11448
11449 WriteLiteralTo(__razor_helper_writer, ">\r\n");
11450
11451
11452 #line 4180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11453
11454
11455 #line default
11456 #line hidden
11457
11458 #line 4180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11459 foreach (var item in settings.Items)
11460 {
11461
11462
11463 #line default
11464 #line hidden
11465
11466 #line 4182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11467 WriteTo(__razor_helper_writer, RenderArticleMenuItem(item));
11468
11469
11470 #line default
11471 #line hidden
11472
11473 #line 4182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11474
11475 }
11476
11477
11478 #line default
11479 #line hidden
11480 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n");
11481
11482
11483 #line 4185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11484 }
11485
11486
11487 #line default
11488 #line hidden
11489 });
11490
11491 #line 4186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11492 }
11493 #line default
11494 #line hidden
11495
11496
11497 #line 4188 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11498 public RazorEngine.Templating.TemplateWriter RenderArticleMenuItem(ArticleMenuItem settings)
11499 {
11500 #line default
11501 #line hidden
11502 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11503
11504 #line 4189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11505
11506 dynamic[] methodParameters = new dynamic[1];
11507 methodParameters[0] = settings;
11508 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuItemCustom");
11509
11510 if (customMethod != null)
11511 {
11512
11513
11514 #line default
11515 #line hidden
11516
11517 #line 4196 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11518 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11519
11520
11521 #line default
11522 #line hidden
11523
11524 #line 4196 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11525 ;
11526 } else {
11527 string link = !String.IsNullOrEmpty(settings.Link) ? settings.Link : "#";
11528
11529 if (settings.Title.HasValue()) {
11530
11531
11532 #line default
11533 #line hidden
11534 WriteLiteralTo(__razor_helper_writer, " <li");
11535
11536 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left__item\"");
11537
11538 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
11539
11540 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 203714), Tuple.Create("\"", 203726)
11541
11542 #line 4202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11543 , Tuple.Create(Tuple.Create("", 203721), Tuple.Create<System.Object, System.Int32>(link
11544
11545 #line default
11546 #line hidden
11547 , 203721), false)
11548 );
11549
11550 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 203727), Tuple.Create("\"", 203754)
11551
11552 #line 4202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11553 , Tuple.Create(Tuple.Create("", 203737), Tuple.Create<System.Object, System.Int32>(settings.OnClick
11554
11555 #line default
11556 #line hidden
11557 , 203737), false)
11558 );
11559
11560 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left__link\"");
11561
11562 WriteLiteralTo(__razor_helper_writer, ">");
11563
11564
11565 #line 4202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11566 WriteTo(__razor_helper_writer, settings.Title);
11567
11568
11569 #line default
11570 #line hidden
11571 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
11572
11573
11574 #line 4204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11575 }
11576 }
11577
11578
11579 #line default
11580 #line hidden
11581 });
11582
11583 #line 4206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11584 }
11585 #line default
11586 #line hidden
11587
11588
11589 #line 4214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11590 public RazorEngine.Templating.TemplateWriter RenderArticleList(ArticleList settings)
11591 {
11592 #line default
11593 #line hidden
11594 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11595
11596 #line 4215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11597
11598 dynamic[] methodParameters = new dynamic[1];
11599 methodParameters[0] = settings;
11600 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCustom");
11601
11602 if (customMethod != null)
11603 {
11604
11605
11606 #line default
11607 #line hidden
11608
11609 #line 4222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11610 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11611
11612
11613 #line default
11614 #line hidden
11615
11616 #line 4222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11617 ;
11618 } else {
11619 if (Pageview != null)
11620 {
11621 bool isParagraph = Pageview.CurrentParagraph != null ? true : false;
11622 string[] sortArticlesListBy = new string[2];
11623
11624 if (isParagraph) {
11625 sortArticlesListBy = Pageview.CurrentParagraph.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString()) ? Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" };
11626 }
11627 else {
11628 sortArticlesListBy = Pageview.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.Item["SortArticlesListBy"].ToString()) ? Pageview.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" };
11629 }
11630
11631 string sourcePage = settings.SourcePage != null ? settings.SourcePage : Pageview.ID.ToString();
11632
11633
11634
11635 #line default
11636 #line hidden
11637
11638 #line 4238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11639 WriteTo(__razor_helper_writer, RenderItemList(new
11640 {
11641 ItemType = !String.IsNullOrEmpty(settings.ItemType) ? settings.ItemType : "DynamicArticle",
11642 ListSourceType = settings.SourceType,
11643 ListSourcePage = sourcePage,
11644 ItemFieldsList = "*",
11645 Filter = settings.Filter,
11646 ListOrderBy = sortArticlesListBy[0],
11647 ListOrderByDirection = sortArticlesListBy[1],
11648 ListSecondOrderBy = sortArticlesListBy[0] == "Date" ? "InFocusSortId" : "Date",
11649 ListSecondOrderByDirection = "ASC",
11650 IncludeAllChildItems = true,
11651 ListTemplate = settings.Template,
11652 ListPageSize = settings.PageSize.ToString()
11653 }));
11654
11655
11656 #line default
11657 #line hidden
11658
11659 #line 4252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11660 ;
11661 }
11662 }
11663
11664
11665 #line default
11666 #line hidden
11667 });
11668
11669 #line 4255 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11670 }
11671 #line default
11672 #line hidden
11673
11674
11675 #line 4263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11676 public RazorEngine.Templating.TemplateWriter RenderArticleSummary(ArticleSummary settings)
11677 {
11678 #line default
11679 #line hidden
11680 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11681
11682 #line 4264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11683
11684 dynamic[] methodParameters = new dynamic[1];
11685 methodParameters[0] = settings;
11686 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSummaryCustom");
11687
11688 if (customMethod != null)
11689 {
11690
11691
11692 #line default
11693 #line hidden
11694
11695 #line 4271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11696 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11697
11698
11699 #line default
11700 #line hidden
11701
11702 #line 4271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11703 ;
11704 } else {
11705 if (settings.Text.HasValue())
11706 {
11707
11708
11709 #line default
11710 #line hidden
11711 WriteLiteralTo(__razor_helper_writer, " <div");
11712
11713 WriteLiteralTo(__razor_helper_writer, " class=\"article__summary\"");
11714
11715 WriteLiteralTo(__razor_helper_writer, ">");
11716
11717
11718 #line 4275 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11719 WriteTo(__razor_helper_writer, settings.Text);
11720
11721
11722 #line default
11723 #line hidden
11724 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
11725
11726
11727 #line 4276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11728 }
11729 }
11730
11731
11732 #line default
11733 #line hidden
11734 });
11735
11736 #line 4278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11737 }
11738 #line default
11739 #line hidden
11740
11741
11742 #line 4285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11743 public RazorEngine.Templating.TemplateWriter RenderArticleListCategoryFilter(ArticleListCategoryFilter settings)
11744 {
11745 #line default
11746 #line hidden
11747 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11748
11749 #line 4286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11750
11751 dynamic[] methodParameters = new dynamic[1];
11752 methodParameters[0] = settings;
11753 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCategoryFilterCustom");
11754
11755 if (customMethod != null)
11756 {
11757
11758
11759 #line default
11760 #line hidden
11761
11762 #line 4293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11763 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
11764
11765
11766 #line default
11767 #line hidden
11768
11769 #line 4293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11770 ;
11771 } else {
11772 string pageId = Pageview.ID.ToString();
11773 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("sourcePage")) ? HttpContext.Current.Request.QueryString.Get("sourcePage") : Translate("All");
11774 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString());
11775
11776 foreach (var option in settings.Categories)
11777 {
11778 selectedFilter = selectedFilter == option.Value ? option.Key : selectedFilter;
11779 }
11780
11781 if (selectedFilter == pageId)
11782 {
11783 selectedFilter = Translate(Translations.General.All);
11784 }
11785
11786
11787
11788 #line default
11789 #line hidden
11790 WriteLiteralTo(__razor_helper_writer, " <div");
11791
11792 WriteLiteralTo(__razor_helper_writer, " class=\"col-3 article__sort mb-3\"");
11793
11794 WriteLiteralTo(__razor_helper_writer, ">\r\n <p>");
11795
11796
11797 #line 4310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11798 WriteTo(__razor_helper_writer, Translate("Category"));
11799
11800
11801 #line default
11802 #line hidden
11803 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <df-select");
11804
11805 WriteLiteralTo(__razor_helper_writer, " name=\"CategorySelector\"");
11806
11807 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
11808
11809 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 208235), Tuple.Create("\"", 208285)
11810
11811 #line 4311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11812 , Tuple.Create(Tuple.Create("", 208249), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.All)
11813
11814 #line default
11815 #line hidden
11816 , 208249), false)
11817 );
11818
11819 WriteAttributeTo(__razor_helper_writer, "selected", Tuple.Create(" selected=\"", 208286), Tuple.Create("\"", 208312)
11820
11821 #line 4311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11822 , Tuple.Create(Tuple.Create("", 208297), Tuple.Create<System.Object, System.Int32>(selectedFilter
11823
11824 #line default
11825 #line hidden
11826 , 208297), false)
11827 );
11828
11829 WriteLiteralTo(__razor_helper_writer, " data-role=\"sort\"");
11830
11831 WriteLiteralTo(__razor_helper_writer, ">\r\n");
11832
11833
11834 #line 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11835
11836
11837 #line default
11838 #line hidden
11839
11840 #line 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11841 foreach (var option in settings.Categories)
11842 {
11843
11844
11845 #line default
11846 #line hidden
11847 WriteLiteralTo(__razor_helper_writer, " <df-option");
11848
11849 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 208444), Tuple.Create("\"", 208474)
11850
11851 #line 4314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11852 , Tuple.Create(Tuple.Create("", 208452), Tuple.Create<System.Object, System.Int32>(Translate(option.Key)
11853
11854 #line default
11855 #line hidden
11856 , 208452), false)
11857 );
11858
11859 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 208475), Tuple.Create("\"", 208583)
11860 , Tuple.Create(Tuple.Create("", 208483), Tuple.Create("[{", 208483), true)
11861 , Tuple.Create(Tuple.Create(" ", 208485), Tuple.Create("\'sourceType\':", 208486), true)
11862 , Tuple.Create(Tuple.Create(" ", 208499), Tuple.Create("\'Page\',", 208500), true)
11863 , Tuple.Create(Tuple.Create(" ", 208507), Tuple.Create("\'sourcePage\':", 208508), true)
11864 , Tuple.Create(Tuple.Create(" ", 208521), Tuple.Create("\'", 208522), true)
11865
11866 #line 4314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11867 , Tuple.Create(Tuple.Create("", 208523), Tuple.Create<System.Object, System.Int32>(option.Key.ToLower() == "all" ? pageId : option.Value
11868
11869 #line default
11870 #line hidden
11871 , 208523), false)
11872 , Tuple.Create(Tuple.Create("", 208579), Tuple.Create("\'", 208579), true)
11873 , Tuple.Create(Tuple.Create(" ", 208580), Tuple.Create("}]", 208581), true)
11874 );
11875
11876 WriteLiteralTo(__razor_helper_writer, " data-source-page = \'");
11877
11878
11879 #line 4314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11880 WriteTo(__razor_helper_writer, option.Key.ToLower() == "all" ? pageId : option.Value);
11881
11882
11883 #line default
11884 #line hidden
11885 WriteLiteralTo(__razor_helper_writer, "\'><span>");
11886
11887
11888 #line 4314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11889 WriteTo(__razor_helper_writer, Translate(option.Key));
11890
11891
11892 #line default
11893 #line hidden
11894 WriteLiteralTo(__razor_helper_writer, "</span></df-option>\r\n");
11895
11896
11897 #line 4315 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11898 }
11899
11900
11901 #line default
11902 #line hidden
11903 WriteLiteralTo(__razor_helper_writer, " </df-select>\r\n </div>\r\n");
11904
11905
11906 #line 4318 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11907 }
11908
11909
11910 #line default
11911 #line hidden
11912 });
11913
11914 #line 4319 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11915 }
11916 #line default
11917 #line hidden
11918
11919
11920 #line 4327 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11921 public RazorEngine.Templating.TemplateWriter RenderArticleListFilter(ArticleListFilter settings)
11922 {
11923 #line default
11924 #line hidden
11925 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
11926
11927 #line 4328 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11928
11929 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get(settings.SystemName)) ? HttpContext.Current.Request.QueryString.Get(settings.SystemName) : Translate("All");
11930 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString());
11931 string pageId = Pageview.ID.ToString();
11932
11933 if (settings.Options != null)
11934 {
11935 foreach (var option in settings.Options)
11936 {
11937 selectedFilter = selectedFilter == option.Value ? option.Name : selectedFilter;
11938 }
11939
11940
11941
11942 #line default
11943 #line hidden
11944 WriteLiteralTo(__razor_helper_writer, " <df-select");
11945
11946 WriteLiteralTo(__razor_helper_writer, " name=\"CategorySelector\"");
11947
11948 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
11949
11950 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 209652), Tuple.Create("\"", 209702)
11951
11952 #line 4340 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11953 , Tuple.Create(Tuple.Create("", 209666), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.All)
11954
11955 #line default
11956 #line hidden
11957 , 209666), false)
11958 );
11959
11960 WriteAttributeTo(__razor_helper_writer, "selected", Tuple.Create(" selected=\"", 209703), Tuple.Create("\"", 209729)
11961
11962 #line 4340 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11963 , Tuple.Create(Tuple.Create("", 209714), Tuple.Create<System.Object, System.Int32>(selectedFilter
11964
11965 #line default
11966 #line hidden
11967 , 209714), false)
11968 );
11969
11970 WriteLiteralTo(__razor_helper_writer, " data-role=\"sort\"");
11971
11972 WriteLiteralTo(__razor_helper_writer, ">\r\n");
11973
11974
11975 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11976
11977
11978 #line default
11979 #line hidden
11980
11981 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11982 foreach (var option in settings.Options)
11983 {
11984
11985
11986 #line default
11987 #line hidden
11988 WriteLiteralTo(__razor_helper_writer, "\t\t\t\t<df-option");
11989
11990 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 209834), Tuple.Create("\"", 209865)
11991
11992 #line 4343 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
11993 , Tuple.Create(Tuple.Create("", 209842), Tuple.Create<System.Object, System.Int32>(Translate(option.Name)
11994
11995 #line default
11996 #line hidden
11997 , 209842), false)
11998 );
11999
12000 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 209866), Tuple.Create("\"", 209919)
12001 , Tuple.Create(Tuple.Create("", 209874), Tuple.Create("[(", 209874), true)
12002 , Tuple.Create(Tuple.Create(" ", 209876), Tuple.Create("\'", 209877), true)
12003
12004 #line 4343 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12005 , Tuple.Create(Tuple.Create("", 209878), Tuple.Create<System.Object, System.Int32>(settings.SystemName
12006
12007 #line default
12008 #line hidden
12009 , 209878), false)
12010 , Tuple.Create(Tuple.Create("", 209898), Tuple.Create("\',", 209898), true)
12011 , Tuple.Create(Tuple.Create(" ", 209900), Tuple.Create("\'", 209901), true)
12012
12013 #line 4343 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12014 , Tuple.Create(Tuple.Create("", 209902), Tuple.Create<System.Object, System.Int32>(option.Value
12015
12016 #line default
12017 #line hidden
12018 , 209902), false)
12019 , Tuple.Create(Tuple.Create("", 209915), Tuple.Create("\'", 209915), true)
12020 , Tuple.Create(Tuple.Create(" ", 209916), Tuple.Create(")]", 209917), true)
12021 );
12022
12023 WriteLiteralTo(__razor_helper_writer, "><span>");
12024
12025
12026 #line 4343 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12027 WriteTo(__razor_helper_writer, Translate(option.Name));
12028
12029
12030 #line default
12031 #line hidden
12032 WriteLiteralTo(__razor_helper_writer, "</span></df-option>\r\n");
12033
12034
12035 #line 4344 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12036 }
12037
12038
12039 #line default
12040 #line hidden
12041 WriteLiteralTo(__razor_helper_writer, " </df-select>\r\n");
12042
12043
12044 #line 4346 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12045 }
12046
12047
12048 #line default
12049 #line hidden
12050 });
12051
12052 #line 4347 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12053 }
12054 #line default
12055 #line hidden
12056
12057
12058 #line 4355 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12059 public RazorEngine.Templating.TemplateWriter RenderArticleListSearch(ArticleListSearch settings)
12060 {
12061 #line default
12062 #line hidden
12063 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12064
12065 #line 4356 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12066
12067 dynamic[] methodParameters = new dynamic[1];
12068 methodParameters[0] = settings;
12069 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListSearchCustom");
12070
12071 if (customMethod != null)
12072 {
12073
12074
12075 #line default
12076 #line hidden
12077
12078 #line 4363 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12079 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
12080
12081
12082 #line default
12083 #line hidden
12084
12085 #line 4363 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12086 ;
12087 } else {
12088 string searchString = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("Title")) ? HttpContext.Current.Request.QueryString.Get("Title").Trim('*') : "";
12089
12090
12091
12092 #line default
12093 #line hidden
12094 WriteLiteralTo(__razor_helper_writer, " <div");
12095
12096 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead\"");
12097
12098 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
12099
12100 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
12101
12102 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead-search-field\"");
12103
12104 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 210896), Tuple.Create("\"", 210938)
12105
12106 #line 4368 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12107 , Tuple.Create(Tuple.Create("", 210910), Tuple.Create<System.Object, System.Int32>(Translate("Search in list")
12108
12109 #line default
12110 #line hidden
12111 , 210910), false)
12112 );
12113
12114 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 210939), Tuple.Create("\"", 210960)
12115
12116 #line 4368 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12117 , Tuple.Create(Tuple.Create("", 210947), Tuple.Create<System.Object, System.Int32>(searchString
12118
12119 #line default
12120 #line hidden
12121 , 210947), false)
12122 );
12123
12124 WriteLiteralTo(__razor_helper_writer, " id=\"ArticleListSearchInput\"");
12125
12126 WriteLiteralTo(__razor_helper_writer, " onchange=\"QueryArray.setParameterInCurrentURL(\'Title\', \'*\' + document.getElement" +
12127 "ById(\'ArticleListSearchInput\').value + \'*\')\"");
12128
12129 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
12130
12131 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
12132
12133 WriteLiteralTo(__razor_helper_writer, " class=\"btn\"");
12134
12135 WriteLiteralTo(__razor_helper_writer, "><i");
12136
12137 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-search\"");
12138
12139 WriteLiteralTo(__razor_helper_writer, "></i></button>\r\n </div>\r\n");
12140
12141
12142 #line 4371 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12143 }
12144
12145
12146 #line default
12147 #line hidden
12148 });
12149
12150 #line 4372 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12151 }
12152 #line default
12153 #line hidden
12154
12155
12156 #line 4380 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12157 public RazorEngine.Templating.TemplateWriter RenderArticleListNoResultsInfo(ArticleListNoResultsInfo settings)
12158 {
12159 #line default
12160 #line hidden
12161 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12162
12163 #line 4381 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12164
12165 dynamic[] methodParameters = new dynamic[1];
12166 methodParameters[0] = settings;
12167 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListNoResultsInfoCustom");
12168
12169 if (customMethod != null)
12170 {
12171
12172
12173 #line default
12174 #line hidden
12175
12176 #line 4388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12177 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
12178
12179
12180 #line default
12181 #line hidden
12182
12183 #line 4388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12184 ;
12185 } else {
12186
12187
12188 #line default
12189 #line hidden
12190
12191 #line 4390 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12192 WriteTo(__razor_helper_writer, Translate(settings.Message));
12193
12194
12195 #line default
12196 #line hidden
12197
12198 #line 4390 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12199
12200 }
12201
12202
12203 #line default
12204 #line hidden
12205 });
12206
12207 #line 4392 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12208 }
12209 #line default
12210 #line hidden
12211
12212
12213 #line 4402 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12214 public RazorEngine.Templating.TemplateWriter RenderArticleListItem(ArticleListItem settings)
12215 {
12216 #line default
12217 #line hidden
12218 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12219
12220 #line 4403 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12221
12222 switch (settings.Type) {
12223 case ArticleListItemType.Card:
12224
12225
12226 #line default
12227 #line hidden
12228
12229 #line 4406 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12230 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings));
12231
12232
12233 #line default
12234 #line hidden
12235
12236 #line 4406 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12237 ;
12238 break;
12239 case ArticleListItemType.List:
12240
12241
12242 #line default
12243 #line hidden
12244
12245 #line 4409 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12246 WriteTo(__razor_helper_writer, RenderArticleListItemList(settings));
12247
12248
12249 #line default
12250 #line hidden
12251
12252 #line 4409 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12253 ;
12254 break;
12255 case ArticleListItemType.Simple:
12256
12257
12258 #line default
12259 #line hidden
12260
12261 #line 4412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12262 WriteTo(__razor_helper_writer, RenderArticleListItemSimple(settings));
12263
12264
12265 #line default
12266 #line hidden
12267
12268 #line 4412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12269 ;
12270 break;
12271 default:
12272
12273
12274 #line default
12275 #line hidden
12276
12277 #line 4415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12278 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings));
12279
12280
12281 #line default
12282 #line hidden
12283
12284 #line 4415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12285 ;
12286 break;
12287 }
12288
12289
12290 #line default
12291 #line hidden
12292 });
12293
12294 #line 4418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12295 }
12296 #line default
12297 #line hidden
12298
12299
12300 #line 4420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12301 public RazorEngine.Templating.TemplateWriter RenderArticleListItemCard(ArticleListItem settings) {
12302 #line default
12303 #line hidden
12304 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12305
12306 #line 4420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12307
12308
12309
12310 #line default
12311 #line hidden
12312 WriteLiteralTo(__razor_helper_writer, " <a");
12313
12314 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 212776), Tuple.Create("\"", 212797)
12315
12316 #line 4421 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12317 , Tuple.Create(Tuple.Create("", 212783), Tuple.Create<System.Object, System.Int32>(settings.Link
12318
12319 #line default
12320 #line hidden
12321 , 212783), false)
12322 );
12323
12324 WriteLiteralTo(__razor_helper_writer, " class=\"article__item__link text-decoration-none\"");
12325
12326 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12327
12328
12329 #line 4422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12330
12331
12332 #line default
12333 #line hidden
12334
12335 #line 4422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12336 if (settings.Logo != null)
12337 {
12338 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=75&DoNotUpscale=True&image=" + settings.Image.Path + "); background-size: cover;" : "";
12339 settings.Logo.ImageDefault.Crop = 5;
12340 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width;
12341 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height;
12342
12343
12344 #line default
12345 #line hidden
12346 WriteLiteralTo(__razor_helper_writer, " <div");
12347
12348 WriteLiteralTo(__razor_helper_writer, " class=\"image-hover__wrapper layered-image layered-image--tinted\"");
12349
12350 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 213555), Tuple.Create("\"", 213579)
12351
12352 #line 4428 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12353 , Tuple.Create(Tuple.Create("", 213563), Tuple.Create<System.Object, System.Int32>(backgroundImage
12354
12355 #line default
12356 #line hidden
12357 , 213563), false)
12358 );
12359
12360 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12361
12362
12363 #line 4429 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12364
12365
12366 #line default
12367 #line hidden
12368
12369 #line 4429 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12370 if (settings.Stickers != null)
12371 {
12372 if (settings.Stickers.Position != StickersListPosition.Custom)
12373 {
12374
12375
12376 #line default
12377 #line hidden
12378
12379 #line 4433 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12380 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12381
12382
12383 #line default
12384 #line hidden
12385
12386 #line 4433 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12387 ;
12388 }
12389 }
12390
12391
12392 #line default
12393 #line hidden
12394 WriteLiteralTo(__razor_helper_writer, " ");
12395
12396
12397 #line 4436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12398 WriteTo(__razor_helper_writer, RenderImage(settings.Logo));
12399
12400
12401 #line default
12402 #line hidden
12403 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
12404
12405
12406 #line 4438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12407 } else if (settings.Image != null)
12408 {
12409
12410
12411 #line default
12412 #line hidden
12413 WriteLiteralTo(__razor_helper_writer, " <div");
12414
12415 WriteLiteralTo(__razor_helper_writer, " class=\"article__item__image mb-2 w-100\"");
12416
12417 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12418
12419
12420 #line 4441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12421
12422
12423 #line default
12424 #line hidden
12425
12426 #line 4441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12427 if (settings.Stickers != null)
12428 {
12429 if (settings.Stickers.Position != StickersListPosition.Custom)
12430 {
12431
12432
12433 #line default
12434 #line hidden
12435
12436 #line 4445 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12437 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12438
12439
12440 #line default
12441 #line hidden
12442
12443 #line 4445 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12444 ;
12445 }
12446 }
12447
12448
12449 #line default
12450 #line hidden
12451 WriteLiteralTo(__razor_helper_writer, " <img");
12452
12453 WriteLiteralTo(__razor_helper_writer, " class=\"article__item__image img-fluid lazyload w-100\"");
12454
12455 WriteLiteralTo(__razor_helper_writer, " width=\"680\"");
12456
12457 WriteLiteralTo(__razor_helper_writer, " height=\"314\"");
12458
12459 WriteLiteralTo(__razor_helper_writer, " loading=\"lazy\"");
12460
12461 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 214508), Tuple.Create("\"", 214637)
12462 , Tuple.Create(Tuple.Create("", 214514), Tuple.Create("/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&Format=webP&Quality=10&Do" +
12463 "NotUpscale=True&image=", 214514), true)
12464
12465 #line 4448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12466 , Tuple.Create(Tuple.Create("", 214617), Tuple.Create<System.Object, System.Int32>(settings.Image.Path
12467
12468 #line default
12469 #line hidden
12470 , 214617), false)
12471 );
12472
12473 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&Format=webP&Qu" +
12474 "ality=85&DoNotUpscale=True&image=");
12475
12476
12477 #line 4448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12478 WriteTo(__razor_helper_writer, settings.Image.Path);
12479
12480
12481 #line default
12482 #line hidden
12483 WriteLiteralTo(__razor_helper_writer, "\"");
12484
12485 WriteLiteralTo(__razor_helper_writer, " alt=\"\"");
12486
12487 WriteLiteralTo(__razor_helper_writer, " />\r\n </div>\r\n");
12488
12489
12490 #line 4450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12491 }
12492
12493
12494 #line default
12495 #line hidden
12496 WriteLiteralTo(__razor_helper_writer, "\r\n");
12497
12498
12499 #line 4452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12500
12501
12502 #line default
12503 #line hidden
12504
12505 #line 4452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12506 if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary))
12507 {
12508 if (settings.Stickers != null)
12509 {
12510 if (settings.Stickers.Position == StickersListPosition.Custom)
12511 {
12512
12513
12514 #line default
12515 #line hidden
12516
12517 #line 4458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12518 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12519
12520
12521 #line default
12522 #line hidden
12523
12524 #line 4458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12525 ;
12526 }
12527 }
12528 if (!String.IsNullOrEmpty(settings.Title))
12529 {
12530
12531
12532 #line default
12533 #line hidden
12534 WriteLiteralTo(__razor_helper_writer, " <h3");
12535
12536 WriteLiteralTo(__razor_helper_writer, " class=\"article__item__title mb-1 h4 weight-normal\"");
12537
12538 WriteLiteralTo(__razor_helper_writer, ">");
12539
12540
12541 #line 4463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12542 WriteTo(__razor_helper_writer, settings.Title);
12543
12544
12545 #line default
12546 #line hidden
12547 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
12548
12549
12550 #line 4464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12551 }
12552 if (!String.IsNullOrEmpty(settings.SubTitle))
12553 {
12554
12555
12556 #line default
12557 #line hidden
12558 WriteLiteralTo(__razor_helper_writer, " <div");
12559
12560 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info\"");
12561
12562 WriteLiteralTo(__razor_helper_writer, ">");
12563
12564
12565 #line 4467 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12566 WriteTo(__razor_helper_writer, settings.SubTitle);
12567
12568
12569 #line default
12570 #line hidden
12571 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
12572
12573
12574 #line 4468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12575 }
12576 if (!String.IsNullOrEmpty(settings.Summary))
12577 {
12578
12579
12580 #line default
12581 #line hidden
12582 WriteLiteralTo(__razor_helper_writer, " <p");
12583
12584 WriteLiteralTo(__razor_helper_writer, " class=\"article__item__summary\"");
12585
12586 WriteLiteralTo(__razor_helper_writer, ">");
12587
12588
12589 #line 4471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12590 WriteTo(__razor_helper_writer, settings.Summary);
12591
12592
12593 #line default
12594 #line hidden
12595 WriteLiteralTo(__razor_helper_writer, "</p>\r\n");
12596
12597
12598 #line 4472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12599 }
12600 }
12601
12602
12603 #line default
12604 #line hidden
12605 WriteLiteralTo(__razor_helper_writer, " </a>\r\n");
12606
12607
12608 #line 4475 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12609
12610
12611 #line default
12612 #line hidden
12613 });
12614
12615 #line 4475 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12616 }
12617 #line default
12618 #line hidden
12619
12620
12621 #line 4477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12622 public RazorEngine.Templating.TemplateWriter RenderArticleListItemList(ArticleListItem settings) {
12623 #line default
12624 #line hidden
12625 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12626
12627 #line 4477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12628
12629
12630
12631 #line default
12632 #line hidden
12633 WriteLiteralTo(__razor_helper_writer, " <a");
12634
12635 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 215850), Tuple.Create("\"", 215871)
12636
12637 #line 4478 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12638 , Tuple.Create(Tuple.Create("", 215857), Tuple.Create<System.Object, System.Int32>(settings.Link
12639
12640 #line default
12641 #line hidden
12642 , 215857), false)
12643 );
12644
12645 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
12646
12647 WriteLiteralTo(__razor_helper_writer, " class=\"grid\"");
12648
12649 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
12650
12651 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-3\"");
12652
12653 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>\r\n");
12654
12655
12656 #line 4482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12657
12658
12659 #line default
12660 #line hidden
12661
12662 #line 4482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12663 if (settings.Logo != null)
12664 {
12665 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=75&DoNotUpscale=True&image=" + settings.Image.Path + "); background-size: cover;" : "";
12666 settings.Logo.ImageDefault.Crop = 5;
12667 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width;
12668 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height;
12669
12670
12671 #line default
12672 #line hidden
12673 WriteLiteralTo(__razor_helper_writer, " <div");
12674
12675 WriteLiteralTo(__razor_helper_writer, " class=\"image-hover__wrapper layered-image layered-image--tinted\"");
12676
12677 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 216757), Tuple.Create("\"", 216781)
12678
12679 #line 4488 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12680 , Tuple.Create(Tuple.Create("", 216765), Tuple.Create<System.Object, System.Int32>(backgroundImage
12681
12682 #line default
12683 #line hidden
12684 , 216765), false)
12685 );
12686
12687 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12688
12689
12690 #line 4489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12691
12692
12693 #line default
12694 #line hidden
12695
12696 #line 4489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12697 if (settings.Stickers != null)
12698 {
12699 if (settings.Stickers.Position != StickersListPosition.Custom)
12700 {
12701
12702
12703 #line default
12704 #line hidden
12705
12706 #line 4493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12707 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12708
12709
12710 #line default
12711 #line hidden
12712
12713 #line 4493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12714 ;
12715 }
12716 }
12717
12718
12719 #line default
12720 #line hidden
12721 WriteLiteralTo(__razor_helper_writer, " ");
12722
12723
12724 #line 4496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12725 WriteTo(__razor_helper_writer, RenderImage(settings.Logo));
12726
12727
12728 #line default
12729 #line hidden
12730 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
12731
12732
12733 #line 4498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12734 } else if (settings.Image != null)
12735 {
12736
12737
12738 #line default
12739 #line hidden
12740 WriteLiteralTo(__razor_helper_writer, " <div");
12741
12742 WriteLiteralTo(__razor_helper_writer, " class=\"flex-img image-hover__wrapper\"");
12743
12744 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12745
12746
12747 #line 4501 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12748
12749
12750 #line default
12751 #line hidden
12752
12753 #line 4501 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12754 if (settings.Stickers != null)
12755 {
12756 if (settings.Stickers.Position != StickersListPosition.Custom)
12757 {
12758
12759
12760 #line default
12761 #line hidden
12762
12763 #line 4505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12764 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12765
12766
12767 #line default
12768 #line hidden
12769
12770 #line 4505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12771 ;
12772 }
12773 }
12774
12775
12776 #line default
12777 #line hidden
12778 WriteLiteralTo(__razor_helper_writer, " ");
12779
12780
12781 #line 4508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12782 WriteTo(__razor_helper_writer, RenderImage(settings.Image));
12783
12784
12785 #line default
12786 #line hidden
12787 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
12788
12789
12790 #line 4510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12791 }
12792
12793
12794 #line default
12795 #line hidden
12796 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n\r\n");
12797
12798
12799 #line 4514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12800
12801
12802 #line default
12803 #line hidden
12804
12805 #line 4514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12806 if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary))
12807 {
12808
12809
12810 #line default
12811 #line hidden
12812 WriteLiteralTo(__razor_helper_writer, " <div");
12813
12814 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-9\"");
12815
12816 WriteLiteralTo(__razor_helper_writer, ">\r\n");
12817
12818
12819 #line 4517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12820
12821
12822 #line default
12823 #line hidden
12824
12825 #line 4517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12826 if (!String.IsNullOrEmpty(settings.Title))
12827 {
12828
12829
12830 #line default
12831 #line hidden
12832 WriteLiteralTo(__razor_helper_writer, " <h3");
12833
12834 WriteLiteralTo(__razor_helper_writer, " class=\"test h3 weight-normal\"");
12835
12836 WriteLiteralTo(__razor_helper_writer, ">");
12837
12838
12839 #line 4519 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12840 WriteTo(__razor_helper_writer, settings.Title);
12841
12842
12843 #line default
12844 #line hidden
12845 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
12846
12847
12848 #line 4520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12849 }
12850
12851
12852 #line default
12853 #line hidden
12854 WriteLiteralTo(__razor_helper_writer, " ");
12855
12856
12857 #line 4521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12858 if (settings.Stickers != null)
12859 {
12860 if (settings.Stickers.Position == StickersListPosition.Custom)
12861 {
12862
12863
12864 #line default
12865 #line hidden
12866
12867 #line 4525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12868 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
12869
12870
12871 #line default
12872 #line hidden
12873
12874 #line 4525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12875 ;
12876 }
12877 }
12878
12879
12880 #line default
12881 #line hidden
12882 WriteLiteralTo(__razor_helper_writer, " ");
12883
12884
12885 #line 4528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12886 if (!String.IsNullOrEmpty(settings.SubTitle))
12887 {
12888
12889
12890 #line default
12891 #line hidden
12892 WriteLiteralTo(__razor_helper_writer, " <div");
12893
12894 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info\"");
12895
12896 WriteLiteralTo(__razor_helper_writer, ">");
12897
12898
12899 #line 4530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12900 WriteTo(__razor_helper_writer, settings.SubTitle);
12901
12902
12903 #line default
12904 #line hidden
12905 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
12906
12907
12908 #line 4531 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12909 }
12910
12911
12912 #line default
12913 #line hidden
12914 WriteLiteralTo(__razor_helper_writer, " ");
12915
12916
12917 #line 4532 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12918 if (!String.IsNullOrEmpty(settings.Summary))
12919 {
12920
12921
12922 #line default
12923 #line hidden
12924 WriteLiteralTo(__razor_helper_writer, " <p");
12925
12926 WriteLiteralTo(__razor_helper_writer, " class=\"article__summary\"");
12927
12928 WriteLiteralTo(__razor_helper_writer, ">");
12929
12930
12931 #line 4534 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12932 WriteTo(__razor_helper_writer, settings.Summary);
12933
12934
12935 #line default
12936 #line hidden
12937 WriteLiteralTo(__razor_helper_writer, "</p>\r\n");
12938
12939
12940 #line 4535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12941 }
12942
12943
12944 #line default
12945 #line hidden
12946 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
12947
12948
12949 #line 4537 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12950 }
12951
12952
12953 #line default
12954 #line hidden
12955 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </a>\r\n");
12956
12957
12958 #line 4540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12959
12960
12961 #line default
12962 #line hidden
12963 });
12964
12965 #line 4540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12966 }
12967 #line default
12968 #line hidden
12969
12970
12971 #line 4542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12972 public RazorEngine.Templating.TemplateWriter RenderArticleListItemSimple(ArticleListItem settings) {
12973 #line default
12974 #line hidden
12975 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
12976
12977 #line 4542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12978
12979
12980
12981 #line default
12982 #line hidden
12983 WriteLiteralTo(__razor_helper_writer, " <div");
12984
12985 WriteLiteralTo(__razor_helper_writer, " class=\"col-4\"");
12986
12987 WriteLiteralTo(__razor_helper_writer, ">RenderArticleListCategoryFilter\r\n <a");
12988
12989 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 219297), Tuple.Create("\"", 219318)
12990
12991 #line 4544 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
12992 , Tuple.Create(Tuple.Create("", 219304), Tuple.Create<System.Object, System.Int32>(settings.Link
12993
12994 #line default
12995 #line hidden
12996 , 219304), false)
12997 );
12998
12999 WriteLiteralTo(__razor_helper_writer, ">\r\n");
13000
13001
13002 #line 4545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13003
13004
13005 #line default
13006 #line hidden
13007
13008 #line 4545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13009 if (!String.IsNullOrEmpty(settings.Title))
13010 {
13011
13012
13013 #line default
13014 #line hidden
13015 WriteLiteralTo(__razor_helper_writer, " <div");
13016
13017 WriteLiteralTo(__razor_helper_writer, " class=\"article-list-item__header\"");
13018
13019 WriteLiteralTo(__razor_helper_writer, ">");
13020
13021
13022 #line 4547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13023 WriteTo(__razor_helper_writer, settings.Title);
13024
13025
13026 #line default
13027 #line hidden
13028 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
13029
13030
13031 #line 4548 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13032 }
13033
13034
13035 #line default
13036 #line hidden
13037 WriteLiteralTo(__razor_helper_writer, " ");
13038
13039
13040 #line 4549 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13041 if (!String.IsNullOrEmpty(settings.SubTitle))
13042 {
13043
13044
13045 #line default
13046 #line hidden
13047 WriteLiteralTo(__razor_helper_writer, " <div");
13048
13049 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info\"");
13050
13051 WriteLiteralTo(__razor_helper_writer, ">");
13052
13053
13054 #line 4551 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13055 WriteTo(__razor_helper_writer, settings.SubTitle);
13056
13057
13058 #line default
13059 #line hidden
13060 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
13061
13062
13063 #line 4552 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13064 }
13065
13066
13067 #line default
13068 #line hidden
13069 WriteLiteralTo(__razor_helper_writer, " </a>\r\n </div>\r\n");
13070
13071
13072 #line 4555 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13073
13074
13075 #line default
13076 #line hidden
13077 });
13078
13079 #line 4555 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13080 }
13081 #line default
13082 #line hidden
13083
13084
13085 #line 4562 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13086 public RazorEngine.Templating.TemplateWriter RenderArticleAuthorAndDate(ArticleAuthorAndDate settings)
13087 {
13088 #line default
13089 #line hidden
13090 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13091
13092 #line 4563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13093
13094 dynamic[] methodParameters = new dynamic[1];
13095 methodParameters[0] = settings;
13096 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleAuthorAndDateCustom");
13097
13098 if (customMethod != null)
13099 {
13100
13101
13102 #line default
13103 #line hidden
13104
13105 #line 4570 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13106 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
13107
13108
13109 #line default
13110 #line hidden
13111
13112 #line 4570 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13113 ;
13114 } else {
13115
13116
13117 #line default
13118 #line hidden
13119 WriteLiteralTo(__razor_helper_writer, " <small");
13120
13121 WriteLiteralTo(__razor_helper_writer, " class=\"article__subscription\"");
13122
13123 WriteLiteralTo(__razor_helper_writer, ">\r\n");
13124
13125
13126 #line 4573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13127
13128
13129 #line default
13130 #line hidden
13131
13132 #line 4573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13133 if (settings.Author.HasValue() && string.IsNullOrWhiteSpace(settings.Date))
13134 {
13135
13136
13137 #line default
13138 #line hidden
13139 WriteLiteralTo(__razor_helper_writer, " ");
13140
13141
13142 #line 4575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13143 WriteTo(__razor_helper_writer, Translate(Translations.General.Written));
13144
13145
13146 #line default
13147 #line hidden
13148 WriteLiteralTo(__razor_helper_writer, "\r\n");
13149
13150
13151 #line 4576 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13152 }
13153
13154
13155 #line default
13156 #line hidden
13157 WriteLiteralTo(__razor_helper_writer, " ");
13158
13159
13160 #line 4577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13161 if (settings.Author.HasValue())
13162 {
13163
13164
13165 #line default
13166 #line hidden
13167 WriteLiteralTo(__razor_helper_writer, " ");
13168
13169
13170 #line 4579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13171 WriteTo(__razor_helper_writer, Translate(Translations.General.By));
13172
13173
13174 #line default
13175 #line hidden
13176 WriteLiteralTo(__razor_helper_writer, " ");
13177
13178
13179 #line 4579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13180 WriteTo(__razor_helper_writer, settings.Author);
13181
13182
13183 #line default
13184 #line hidden
13185 WriteLiteralTo(__razor_helper_writer, "\r\n");
13186
13187
13188 #line 4580 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13189 }
13190
13191
13192 #line default
13193 #line hidden
13194 WriteLiteralTo(__razor_helper_writer, " ");
13195
13196
13197 #line 4581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13198 if (!string.IsNullOrWhiteSpace(settings.Date))
13199 {
13200
13201
13202 #line default
13203 #line hidden
13204 WriteLiteralTo(__razor_helper_writer, " ");
13205
13206
13207 #line 4583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13208 WriteTo(__razor_helper_writer, Translate(Translations.General.On));
13209
13210
13211 #line default
13212 #line hidden
13213 WriteLiteralTo(__razor_helper_writer, " ");
13214
13215
13216 #line 4583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13217 WriteTo(__razor_helper_writer, settings.Date);
13218
13219
13220 #line default
13221 #line hidden
13222 WriteLiteralTo(__razor_helper_writer, "\r\n");
13223
13224
13225 #line 4584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13226 }
13227
13228
13229 #line default
13230 #line hidden
13231 WriteLiteralTo(__razor_helper_writer, " </small>\r\n");
13232
13233
13234 #line 4586 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13235 }
13236
13237
13238 #line default
13239 #line hidden
13240 });
13241
13242 #line 4587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13243 }
13244 #line default
13245 #line hidden
13246
13247
13248 #line 4594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13249 public RazorEngine.Templating.TemplateWriter RenderArticleLink(ArticleLink settings)
13250 {
13251 #line default
13252 #line hidden
13253 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13254
13255 #line 4595 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13256
13257 dynamic[] methodParameters = new dynamic[1];
13258 methodParameters[0] = settings;
13259 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleLinkCustom");
13260
13261 if (customMethod != null)
13262 {
13263
13264
13265 #line default
13266 #line hidden
13267
13268 #line 4602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13269 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
13270
13271
13272 #line default
13273 #line hidden
13274
13275 #line 4602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13276 ;
13277 } else {
13278 if (!String.IsNullOrEmpty(settings.Title))
13279 {
13280
13281
13282 #line default
13283 #line hidden
13284
13285 #line 4606 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13286 WriteTo(__razor_helper_writer, RenderButton(settings));
13287
13288
13289 #line default
13290 #line hidden
13291
13292 #line 4606 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13293
13294 }
13295 }
13296
13297
13298 #line default
13299 #line hidden
13300 });
13301
13302 #line 4609 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13303 }
13304 #line default
13305 #line hidden
13306
13307
13308 #line 4618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13309 public RazorEngine.Templating.TemplateWriter RenderArticleCarousel(ArticleCarousel settings)
13310 {
13311 #line default
13312 #line hidden
13313 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13314
13315 #line 4619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13316
13317 dynamic[] methodParameters = new dynamic[1];
13318 methodParameters[0] = settings;
13319 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
13320
13321 if (customMethod != null)
13322 {
13323
13324
13325 #line default
13326 #line hidden
13327
13328 #line 4626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13329 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
13330
13331
13332 #line default
13333 #line hidden
13334
13335 #line 4626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13336 ;
13337 } else {
13338
13339
13340 #line default
13341 #line hidden
13342 WriteLiteralTo(__razor_helper_writer, " <div");
13343
13344 WriteLiteralTo(__razor_helper_writer, " class=\"carousel\"");
13345
13346 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 222108), Tuple.Create("\"", 222134)
13347 , Tuple.Create(Tuple.Create("", 222113), Tuple.Create("carousel_", 222113), true)
13348
13349 #line 4628 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13350 , Tuple.Create(Tuple.Create("", 222122), Tuple.Create<System.Object, System.Int32>(settings.Id
13351
13352 #line default
13353 #line hidden
13354 , 222122), false)
13355 );
13356
13357 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
13358
13359 WriteLiteralTo(__razor_helper_writer, " class=\"carousel__container js-carousel-slides\"");
13360
13361 WriteLiteralTo(__razor_helper_writer, ">\r\n");
13362
13363 WriteLiteralTo(__razor_helper_writer, " ");
13364
13365
13366 #line 4630 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13367 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks));
13368
13369
13370 #line default
13371 #line hidden
13372 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n");
13373
13374
13375 #line 4633 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13376
13377
13378 #line default
13379 #line hidden
13380
13381 #line 4633 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13382 WriteTo(__razor_helper_writer, SnippetStart("BottomJS"));
13383
13384
13385 #line default
13386 #line hidden
13387
13388 #line 4633 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13389
13390
13391
13392 #line default
13393 #line hidden
13394 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded" +
13395 "\", function () { \r\n new CarouselModule(\"#car" +
13396 "ousel_");
13397
13398
13399 #line 4636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13400 WriteTo(__razor_helper_writer, settings.Id);
13401
13402
13403 #line default
13404 #line hidden
13405 WriteLiteralTo(__razor_helper_writer, "\", {\r\n slideTime: 0,\r\n dots: true\r\n" +
13406 " });\r\n });\r\n </script>\r\n");
13407
13408
13409 #line 4642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13410
13411
13412 #line default
13413 #line hidden
13414
13415 #line 4642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13416 WriteTo(__razor_helper_writer, SnippetEnd("BottomJS"));
13417
13418
13419 #line default
13420 #line hidden
13421
13422 #line 4642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13423
13424 }
13425
13426
13427 #line default
13428 #line hidden
13429 });
13430
13431 #line 4644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13432 }
13433 #line default
13434 #line hidden
13435
13436
13437 #line 4646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13438 public RazorEngine.Templating.TemplateWriter RenderArticleCarouselSlide(ArticleCarouselSlide settings)
13439 {
13440 #line default
13441 #line hidden
13442 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13443
13444 #line 4647 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13445
13446 dynamic[] methodParameters = new dynamic[1];
13447 methodParameters[0] = settings;
13448 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
13449
13450 if (customMethod != null)
13451 {
13452
13453
13454 #line default
13455 #line hidden
13456
13457 #line 4654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13458 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
13459
13460
13461 #line default
13462 #line hidden
13463
13464 #line 4654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13465 ;
13466 }
13467 else
13468 {
13469 string imageEngine = "/Admin/Public/GetImage.ashx?";
13470
13471 string defaultImage = settings.ImageSettings != null ? imageEngine : settings.Image;
13472 if (settings.ImageSettings != null)
13473 {
13474 defaultImage += settings.ImageSettings.Width != 0 ? "Width=" + settings.ImageSettings.Width + "&" : "";
13475 defaultImage += settings.ImageSettings.Height != 0 ? "Height=" + settings.ImageSettings.Height + "&" : "";
13476 defaultImage += "Crop=" + settings.ImageSettings.Crop + "&";
13477 defaultImage += "Compression=" + settings.ImageSettings.Compression + "&";
13478 defaultImage += "DoNotUpscale=" + settings.ImageSettings.DoNotUpscale.ToString() + "&";
13479 defaultImage += "FillCanvas=" + settings.ImageSettings.FillCanvas.ToString() + "&";
13480 }
13481 defaultImage += "&Image=" + settings.Image;
13482
13483
13484
13485 #line default
13486 #line hidden
13487 WriteLiteralTo(__razor_helper_writer, " <div");
13488
13489 WriteLiteralTo(__razor_helper_writer, " class=\"carousel__slide u-min-h300px\"");
13490
13491 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 224064), Tuple.Create("\"", 224132)
13492 , Tuple.Create(Tuple.Create("", 224072), Tuple.Create("background-size:cover;", 224072), true)
13493 , Tuple.Create(Tuple.Create(" ", 224094), Tuple.Create("background-image:url(\'", 224095), true)
13494
13495 #line 4672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13496 , Tuple.Create(Tuple.Create("", 224117), Tuple.Create<System.Object, System.Int32>(defaultImage
13497
13498 #line default
13499 #line hidden
13500 , 224117), false)
13501 , Tuple.Create(Tuple.Create("", 224130), Tuple.Create("\')", 224130), true)
13502 );
13503
13504 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
13505
13506 WriteLiteralTo(__razor_helper_writer, " class=\"article-carousel-item__wrap\"");
13507
13508 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 224186), Tuple.Create("\"", 224207)
13509
13510 #line 4673 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13511 , Tuple.Create(Tuple.Create("", 224193), Tuple.Create<System.Object, System.Int32>(settings.Link
13512
13513 #line default
13514 #line hidden
13515 , 224193), false)
13516 );
13517
13518 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 224208), Tuple.Create("\"", 224231)
13519
13520 #line 4673 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13521 , Tuple.Create(Tuple.Create("", 224216), Tuple.Create<System.Object, System.Int32>(settings.Title
13522
13523 #line default
13524 #line hidden
13525 , 224216), false)
13526 );
13527
13528 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2");
13529
13530 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-header\"");
13531
13532 WriteLiteralTo(__razor_helper_writer, ">");
13533
13534
13535 #line 4674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13536 WriteTo(__razor_helper_writer, settings.Title);
13537
13538
13539 #line default
13540 #line hidden
13541 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n <div");
13542
13543 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-info\"");
13544
13545 WriteLiteralTo(__razor_helper_writer, ">\r\n");
13546
13547
13548 #line 4676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13549
13550
13551 #line default
13552 #line hidden
13553
13554 #line 4676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13555 if (settings.Stickers != null)
13556 {
13557 settings.Stickers.Position = StickersListPosition.Custom;
13558
13559
13560 #line default
13561 #line hidden
13562
13563 #line 4679 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13564 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers));
13565
13566
13567 #line default
13568 #line hidden
13569
13570 #line 4679 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13571 ;
13572 }
13573
13574
13575 #line default
13576 #line hidden
13577 WriteLiteralTo(__razor_helper_writer, "\r\n <small");
13578
13579 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-top--lg u-color-light\"");
13580
13581 WriteLiteralTo(__razor_helper_writer, ">\r\n");
13582
13583
13584 #line 4683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13585
13586
13587 #line default
13588 #line hidden
13589
13590 #line 4683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13591 if (!(string.IsNullOrWhiteSpace(settings.Author) && string.IsNullOrWhiteSpace(settings.Date)))
13592 {
13593
13594
13595 #line default
13596 #line hidden
13597 WriteLiteralTo(__razor_helper_writer, " ");
13598
13599
13600 #line 4685 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13601 WriteTo(__razor_helper_writer, Translate(Translations.General.Written));
13602
13603
13604 #line default
13605 #line hidden
13606 WriteLiteralTo(__razor_helper_writer, "\r\n");
13607
13608
13609 #line 4686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13610 }
13611
13612
13613 #line default
13614 #line hidden
13615 WriteLiteralTo(__razor_helper_writer, " ");
13616
13617
13618 #line 4687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13619 if (!string.IsNullOrWhiteSpace(settings.Author))
13620 {
13621
13622
13623 #line default
13624 #line hidden
13625 WriteLiteralTo(__razor_helper_writer, " ");
13626
13627
13628 #line 4689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13629 WriteTo(__razor_helper_writer, Translate(Translations.General.By));
13630
13631
13632 #line default
13633 #line hidden
13634 WriteLiteralTo(__razor_helper_writer, " ");
13635
13636
13637 #line 4689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13638 WriteTo(__razor_helper_writer, settings.Author);
13639
13640
13641 #line default
13642 #line hidden
13643 WriteLiteralTo(__razor_helper_writer, "\r\n");
13644
13645
13646 #line 4690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13647 }
13648
13649
13650 #line default
13651 #line hidden
13652 WriteLiteralTo(__razor_helper_writer, " ");
13653
13654
13655 #line 4691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13656 if (!string.IsNullOrWhiteSpace(settings.Date))
13657 {
13658
13659
13660 #line default
13661 #line hidden
13662 WriteLiteralTo(__razor_helper_writer, " ");
13663
13664
13665 #line 4693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13666 WriteTo(__razor_helper_writer, Translate(Translations.General.On));
13667
13668
13669 #line default
13670 #line hidden
13671 WriteLiteralTo(__razor_helper_writer, " ");
13672
13673
13674 #line 4693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13675 WriteTo(__razor_helper_writer, settings.Date);
13676
13677
13678 #line default
13679 #line hidden
13680 WriteLiteralTo(__razor_helper_writer, "\r\n");
13681
13682
13683 #line 4694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13684 }
13685
13686
13687 #line default
13688 #line hidden
13689 WriteLiteralTo(__razor_helper_writer, " </small>\r\n </div>\r\n\r\n <h3");
13690
13691 WriteLiteralTo(__razor_helper_writer, " class=\"article__summary u-color-light\"");
13692
13693 WriteLiteralTo(__razor_helper_writer, ">");
13694
13695
13696 #line 4698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13697 WriteTo(__razor_helper_writer, settings.Summary);
13698
13699
13700 #line default
13701 #line hidden
13702 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n </a>\r\n");
13703
13704
13705 #line 4700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13706
13707
13708 #line default
13709 #line hidden
13710
13711 #line 4700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13712 if (settings.UseFilters == true)
13713 {
13714
13715
13716 #line default
13717 #line hidden
13718 WriteLiteralTo(__razor_helper_writer, " <div");
13719
13720 WriteLiteralTo(__razor_helper_writer, " class=\"background-image image-filter image-filter--darken\"");
13721
13722 WriteLiteralTo(__razor_helper_writer, "></div>\r\n");
13723
13724
13725 #line 4703 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13726 }
13727
13728
13729 #line default
13730 #line hidden
13731 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
13732
13733
13734 #line 4705 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13735 }
13736
13737
13738 #line default
13739 #line hidden
13740 });
13741
13742 #line 4706 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13743 }
13744 #line default
13745 #line hidden
13746
13747
13748 #line 4715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13749 public RazorEngine.Templating.TemplateWriter RenderArticleVideo(ArticleVideo settings)
13750 {
13751 #line default
13752 #line hidden
13753 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13754
13755 #line 4716 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13756
13757 dynamic[] methodParameters = new dynamic[1];
13758 methodParameters[0] = settings;
13759 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom");
13760
13761 if (customMethod != null)
13762 {
13763
13764
13765 #line default
13766 #line hidden
13767
13768 #line 4723 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13769 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString());
13770
13771
13772 #line default
13773 #line hidden
13774
13775 #line 4723 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13776 ;
13777 } else {
13778 if (settings.Url != null)
13779 {
13780 //getting video ID from youtube URL
13781 string videoCode = settings.Url;
13782 Regex regex = new Regex(@".be\/(.[^?]*)");
13783 Match match = regex.Match(videoCode);
13784 string videoId = "";
13785 if (match.Success)
13786 {
13787 videoId = match.Groups[1].Value;
13788 }
13789 else
13790 {
13791 regex = new Regex(@"v=([^&]+)");
13792 match = regex.Match(videoCode);
13793 if (match.Success)
13794 {
13795 videoId = match.Groups[1].Value;
13796 }
13797 }
13798
13799 int autoPlay = settings.AutoPlay == "true" ? 1 : 0;
13800
13801
13802
13803 #line default
13804 #line hidden
13805 WriteLiteralTo(__razor_helper_writer, " <div");
13806
13807 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide my-3\"");
13808
13809 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
13810
13811 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
13812
13813 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
13814
13815 WriteLiteralTo(__razor_helper_writer, " class=\"video-container\"");
13816
13817 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe");
13818
13819 WriteLiteralTo(__razor_helper_writer, " width=\"560\"");
13820
13821 WriteLiteralTo(__razor_helper_writer, " height=\"315\"");
13822
13823 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 227348), Tuple.Create("\"", 227407)
13824 , Tuple.Create(Tuple.Create("", 227354), Tuple.Create("https://www.youtube-nocookie.com/embed/", 227354), true)
13825
13826 #line 4751 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13827 , Tuple.Create(Tuple.Create("", 227393), Tuple.Create<System.Object, System.Int32>(videoId
13828
13829 #line default
13830 #line hidden
13831 , 227393), false)
13832 , Tuple.Create(Tuple.Create("", 227401), Tuple.Create("?rel=0", 227401), true)
13833 );
13834
13835 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\"");
13836
13837 WriteLiteralTo(__razor_helper_writer, " allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pic" +
13838 "ture-in-picture\"");
13839
13840 WriteLiteralTo(__razor_helper_writer, " allowfullscreen></iframe>\r\n ");
13841
13842 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n </div>\r\n </div>\r\n");
13843
13844
13845 #line 4756 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13846
13847 }
13848 }
13849
13850
13851 #line default
13852 #line hidden
13853 });
13854
13855 #line 4759 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13856 }
13857 #line default
13858 #line hidden
13859
13860
13861 #line 4766 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13862 public RazorEngine.Templating.TemplateWriter RenderArticleItemGallery(IList<ItemViewModel> gallery) {
13863 #line default
13864 #line hidden
13865 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
13866
13867 #line 4766 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13868
13869 if (gallery != null && gallery.Count > 0)
13870 {
13871 int count = 1;
13872
13873 foreach (var item in gallery)
13874 {
13875 if (item.GetFile("ImagePath") != null)
13876 {
13877 string image = item.GetFile("ImagePath").PathUrlEncoded;
13878 string imagePrefix = "/Admin/Public/GetImage.ashx?width=1200&height=820&crop=5&Compression=75&DoNotUpscale=1&image=";
13879 int imagesCount = gallery.Count;
13880
13881 if (count == 1)
13882 {
13883
13884
13885 #line default
13886 #line hidden
13887 WriteLiteralTo(__razor_helper_writer, " <label");
13888
13889 WriteLiteralTo(__razor_helper_writer, " class=\"gallery\"");
13890
13891 WriteLiteralTo(__razor_helper_writer, " for=\"ParagraphGalleryModalTrigger\"");
13892
13893 WriteLiteralTo(__razor_helper_writer, " onclick=\"Gallery.openImage(this.querySelector(\'.js-gallery\'))\"");
13894
13895 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
13896
13897 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__main-image\"");
13898
13899 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
13900
13901 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 228763), Tuple.Create("\"", 228887)
13902 , Tuple.Create(Tuple.Create("", 228769), Tuple.Create("/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=7" +
13903 "5&DoNotUpscale=1&image=", 228769), true)
13904
13905 #line 4783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13906 , Tuple.Create(Tuple.Create("", 228881), Tuple.Create<System.Object, System.Int32>(image
13907
13908 #line default
13909 #line hidden
13910 , 228881), false)
13911 );
13912
13913 WriteLiteralTo(__razor_helper_writer, " class=\"flex-img js-gallery\"");
13914
13915 WriteLiteralTo(__razor_helper_writer, " alt=\"\"");
13916
13917 WriteLiteralTo(__razor_helper_writer, " data-for=\"ParagraphGallery\"");
13918
13919 WriteLiteralTo(__razor_helper_writer, " data-image=\"");
13920
13921
13922 #line 4783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13923 WriteTo(__razor_helper_writer, imagePrefix);
13924
13925
13926 #line default
13927 #line hidden
13928
13929 #line 4783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13930 WriteTo(__razor_helper_writer, image);
13931
13932
13933 #line default
13934 #line hidden
13935 WriteLiteralTo(__razor_helper_writer, "\"");
13936
13937 WriteLiteralTo(__razor_helper_writer, " />\r\n </span>\r\n <span");
13938
13939 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter\"");
13940
13941 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
13942
13943 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-camera fa-2x\"");
13944
13945 WriteLiteralTo(__razor_helper_writer, "></i> <span");
13946
13947 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter__number\"");
13948
13949 WriteLiteralTo(__razor_helper_writer, ">");
13950
13951
13952 #line 4786 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13953 WriteTo(__razor_helper_writer, imagesCount);
13954
13955
13956 #line default
13957 #line hidden
13958 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <span");
13959
13960 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter__text\"");
13961
13962 WriteLiteralTo(__razor_helper_writer, ">");
13963
13964
13965 #line 4787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13966 WriteTo(__razor_helper_writer, Translate("See all"));
13967
13968
13969 #line default
13970 #line hidden
13971 WriteLiteralTo(__razor_helper_writer, " <i");
13972
13973 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-angle-right\"");
13974
13975 WriteLiteralTo(__razor_helper_writer, "></i></span>\r\n </span>\r\n </label>\r\n");
13976
13977
13978 #line 4790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13979 }
13980 else
13981 {
13982
13983
13984 #line default
13985 #line hidden
13986 WriteLiteralTo(__razor_helper_writer, " <div");
13987
13988 WriteLiteralTo(__razor_helper_writer, " class=\"u-hidden js-gallery\"");
13989
13990 WriteLiteralTo(__razor_helper_writer, " data-for=\"ParagraphGallery\"");
13991
13992 WriteLiteralTo(__razor_helper_writer, " data-image=\"");
13993
13994
13995 #line 4793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
13996 WriteTo(__razor_helper_writer, imagePrefix);
13997
13998
13999 #line default
14000 #line hidden
14001
14002 #line 4793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14003 WriteTo(__razor_helper_writer, image);
14004
14005
14006 #line default
14007 #line hidden
14008 WriteLiteralTo(__razor_helper_writer, "\"");
14009
14010 WriteLiteralTo(__razor_helper_writer, "></div>\r\n");
14011
14012
14013 #line 4794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14014 }
14015
14016 count++;
14017 }
14018 }
14019
14020
14021 #line default
14022 #line hidden
14023
14024 #line 4799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14025 WriteTo(__razor_helper_writer, RenderArticleGalleryModal(new ArticleGalleryModal()));
14026
14027
14028 #line default
14029 #line hidden
14030
14031 #line 4799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14032
14033 }
14034
14035
14036 #line default
14037 #line hidden
14038 });
14039
14040 #line 4801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14041 }
14042 #line default
14043 #line hidden
14044
14045
14046 #line 4803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14047 public RazorEngine.Templating.TemplateWriter RenderMobileFilters(List<Block> subBlocks)
14048 {
14049 #line default
14050 #line hidden
14051 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14052
14053 #line 4804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14054
14055 if (subBlocks.Count > 0)
14056 {
14057
14058
14059 #line default
14060 #line hidden
14061 WriteLiteralTo(__razor_helper_writer, " <div");
14062
14063 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-12\"");
14064
14065 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
14066
14067 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
14068
14069 WriteLiteralTo(__razor_helper_writer, " id=\"CheckFilters\"");
14070
14071 WriteLiteralTo(__razor_helper_writer, " class=\"js-remember-state u-hidden\"");
14072
14073 WriteLiteralTo(__razor_helper_writer, " data-expand=\"CheckFilters\"");
14074
14075 WriteLiteralTo(__razor_helper_writer, " />\r\n <div");
14076
14077 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-margin-bottom dw-mod\"");
14078
14079 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\"");
14080
14081 WriteLiteralTo(__razor_helper_writer, ">\r\n");
14082
14083 WriteLiteralTo(__razor_helper_writer, " ");
14084
14085
14086 #line 4810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14087 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
14088
14089
14090 #line default
14091 #line hidden
14092 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n <label");
14093
14094 WriteLiteralTo(__razor_helper_writer, " for=\"CheckFilters\"");
14095
14096 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn--secondary btn--full dw-mod js-expand-hide\"");
14097
14098 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\"");
14099
14100 WriteLiteralTo(__razor_helper_writer, ">");
14101
14102
14103 #line 4812 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14104 WriteTo(__razor_helper_writer, Translate("Select filters"));
14105
14106
14107 #line default
14108 #line hidden
14109 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label");
14110
14111 WriteLiteralTo(__razor_helper_writer, " for=\"CheckFilters\"");
14112
14113 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn--secondary btn--full dw-mod expandable--collapsed\"");
14114
14115 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\"");
14116
14117 WriteLiteralTo(__razor_helper_writer, ">");
14118
14119
14120 #line 4813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14121 WriteTo(__razor_helper_writer, Translate("Close filters"));
14122
14123
14124 #line default
14125 #line hidden
14126 WriteLiteralTo(__razor_helper_writer, "</label>\r\n </div>\r\n");
14127
14128
14129 #line 4815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14130 }
14131
14132
14133 #line default
14134 #line hidden
14135 });
14136
14137 #line 4816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14138 }
14139 #line default
14140 #line hidden
14141
14142
14143 #line 4822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14144 public RazorEngine.Templating.TemplateWriter RenderInlineSvg(string theme = "default", string icon="none.svg")
14145 {
14146 #line default
14147 #line hidden
14148 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14149
14150 #line 4823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14151
14152 var DesignFolder = Pageview.Layout.Design.Name;
14153 // string themeCookie = HttpContext.Current.Request.Cookies["Theme"] != null ? HttpContext.Current.Request.Cookies["Theme"].Value : theme;
14154 // var themeNormalized = theme;
14155 // if (!string.IsNullOrEmpty(themeCookie))
14156 // {
14157 // themeNormalized = themeCookie;
14158 // }
14159 var themeNormalized = "decocenter";
14160
14161
14162
14163 #line default
14164 #line hidden
14165 WriteLiteralTo(__razor_helper_writer, " <div");
14166
14167 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
14168
14169 WriteLiteralTo(__razor_helper_writer, ">\r\n");
14170
14171 WriteLiteralTo(__razor_helper_writer, " ");
14172
14173
14174 #line 4834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14175 WriteTo(__razor_helper_writer, System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg")));
14176
14177
14178 #line default
14179 #line hidden
14180 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
14181
14182
14183 #line 4836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14184
14185
14186 #line default
14187 #line hidden
14188 });
14189
14190 #line 4836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14191 }
14192 #line default
14193 #line hidden
14194
14195
14196 #line 4838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14197
14198 public class ArticleImageContainerAware : ComponentBase
14199 {
14200 public string Link { get; set; }
14201 public string Layout { get; set; }
14202 public string Alt { get; set; }
14203 }
14204 public class ArticleHeadingRefactored : ComponentBase
14205 {
14206 public string Value { get; set; }
14207 public string Tag { get; set; }
14208 }
14209 public class ArticleSubHeadingRefactored : ComponentBase
14210 {
14211 public string Value { get; set; }
14212 public string Tag { get; set; }
14213 }
14214 public class ArticleVideoRefactored : ComponentBase
14215 {
14216 public string Url { get; set; }
14217 public string AutoPlay { get; set; }
14218 public string Layout { get; set; }
14219 }
14220
14221 #line default
14222 #line hidden
14223
14224
14225 #line 4863 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14226 public RazorEngine.Templating.TemplateWriter RenderArticleImageContainerAware (ArticleImageContainerAware settings) {
14227 #line default
14228 #line hidden
14229 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14230
14231 #line 4863 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14232
14233 switch (settings.Layout)
14234 {
14235 case "banner":
14236
14237
14238 #line default
14239 #line hidden
14240 WriteLiteralTo(__razor_helper_writer, " <div");
14241
14242 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide\"");
14243
14244 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14245
14246 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14247
14248 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
14249
14250 WriteLiteralTo(__razor_helper_writer, " src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"" +
14251 "");
14252
14253 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&R" +
14254 "esolution=72&Image=");
14255
14256
14257 #line 4869 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14258 WriteTo(__razor_helper_writer, settings.Link);
14259
14260
14261 #line default
14262 #line hidden
14263 WriteLiteralTo(__razor_helper_writer, "\"");
14264
14265 WriteLiteralTo(__razor_helper_writer, " data-srcset=\"\"");
14266
14267 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-auto block lazyload\"");
14268
14269 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 232567), Tuple.Create("\"", 232587)
14270
14271 #line 4869 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14272 , Tuple.Create(Tuple.Create("", 232574), Tuple.Create<System.Object, System.Int32>(settings.Alt
14273
14274 #line default
14275 #line hidden
14276 , 232574), false)
14277 );
14278
14279 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n");
14280
14281
14282 #line 4872 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14283 break;
14284 case "wide":
14285
14286
14287 #line default
14288 #line hidden
14289 WriteLiteralTo(__razor_helper_writer, " <div");
14290
14291 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container\"");
14292
14293 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14294
14295 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14296
14297 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
14298
14299 WriteLiteralTo(__razor_helper_writer, " src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"" +
14300 "");
14301
14302 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&R" +
14303 "esolution=72&Image=");
14304
14305
14306 #line 4876 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14307 WriteTo(__razor_helper_writer, settings.Link);
14308
14309
14310 #line default
14311 #line hidden
14312 WriteLiteralTo(__razor_helper_writer, "\"");
14313
14314 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-auto block lazyload\"");
14315
14316 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 232996), Tuple.Create("\"", 233105)
14317 , Tuple.Create(Tuple.Create("", 233002), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=2" +
14318 "0&Image=", 233002), true)
14319
14320 #line 4876 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14321 , Tuple.Create(Tuple.Create("", 233091), Tuple.Create<System.Object, System.Int32>(settings.Link
14322
14323 #line default
14324 #line hidden
14325 , 233091), false)
14326 );
14327
14328 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n");
14329
14330
14331 #line 4879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14332 break;
14333 case "straight":
14334
14335
14336 #line default
14337 #line hidden
14338 WriteLiteralTo(__razor_helper_writer, " <div");
14339
14340 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow\"");
14341
14342 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14343
14344 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14345
14346 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
14347
14348 WriteLiteralTo(__razor_helper_writer, " src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"" +
14349 "");
14350
14351 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&R" +
14352 "esolution=72&Image=");
14353
14354
14355 #line 4883 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14356 WriteTo(__razor_helper_writer, settings.Link);
14357
14358
14359 #line default
14360 #line hidden
14361 WriteLiteralTo(__razor_helper_writer, "\"");
14362
14363 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-auto block lazyload\"");
14364
14365 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 233528), Tuple.Create("\"", 233548)
14366
14367 #line 4883 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14368 , Tuple.Create(Tuple.Create("", 233535), Tuple.Create<System.Object, System.Int32>(settings.Alt
14369
14370 #line default
14371 #line hidden
14372 , 233535), false)
14373 );
14374
14375 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n");
14376
14377
14378 #line 4886 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14379 break;
14380 default:
14381
14382
14383 #line default
14384 #line hidden
14385 WriteLiteralTo(__razor_helper_writer, " <div");
14386
14387 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide\"");
14388
14389 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14390
14391 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14392
14393 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
14394
14395 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&" +
14396 "Resolution=72&Image=");
14397
14398
14399 #line 4890 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14400 WriteTo(__razor_helper_writer, settings.Link);
14401
14402
14403 #line default
14404 #line hidden
14405 WriteLiteralTo(__razor_helper_writer, "\"");
14406
14407 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-auto block lazyload\"");
14408
14409 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 233883), Tuple.Create("\"", 233903)
14410
14411 #line 4890 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14412 , Tuple.Create(Tuple.Create("", 233890), Tuple.Create<System.Object, System.Int32>(settings.Alt
14413
14414 #line default
14415 #line hidden
14416 , 233890), false)
14417 );
14418
14419 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n");
14420
14421
14422 #line 4893 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14423 break;
14424 }
14425
14426
14427
14428 #line default
14429 #line hidden
14430 });
14431
14432 #line 4896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14433 }
14434 #line default
14435 #line hidden
14436
14437
14438 #line 4898 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14439 public RazorEngine.Templating.TemplateWriter RenderArticleHeadingRefactored (ArticleHeadingRefactored settings)
14440 {
14441 #line default
14442 #line hidden
14443 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14444
14445 #line 4899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14446
14447
14448
14449 #line default
14450 #line hidden
14451 WriteLiteralTo(__razor_helper_writer, " <div");
14452
14453 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow\"");
14454
14455 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14456
14457 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14458
14459 WriteLiteralTo(__razor_helper_writer, ">\r\n");
14460
14461
14462 #line 4902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14463
14464
14465 #line default
14466 #line hidden
14467
14468 #line 4902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14469 switch (settings.Tag)
14470 {
14471 case "2":
14472
14473
14474 #line default
14475 #line hidden
14476 WriteLiteralTo(__razor_helper_writer, " <h2");
14477
14478 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14479
14480 WriteLiteralTo(__razor_helper_writer, ">");
14481
14482
14483 #line 4905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14484 WriteTo(__razor_helper_writer, settings.Value);
14485
14486
14487 #line default
14488 #line hidden
14489 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n");
14490
14491
14492 #line 4906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14493 break;
14494 case "3":
14495
14496
14497 #line default
14498 #line hidden
14499 WriteLiteralTo(__razor_helper_writer, " <h3");
14500
14501 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14502
14503 WriteLiteralTo(__razor_helper_writer, ">");
14504
14505
14506 #line 4908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14507 WriteTo(__razor_helper_writer, settings.Value);
14508
14509
14510 #line default
14511 #line hidden
14512 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
14513
14514
14515 #line 4909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14516 break;
14517 case "4":
14518
14519
14520 #line default
14521 #line hidden
14522 WriteLiteralTo(__razor_helper_writer, " <h4");
14523
14524 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14525
14526 WriteLiteralTo(__razor_helper_writer, ">");
14527
14528
14529 #line 4911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14530 WriteTo(__razor_helper_writer, settings.Value);
14531
14532
14533 #line default
14534 #line hidden
14535 WriteLiteralTo(__razor_helper_writer, "</h4>\r\n");
14536
14537
14538 #line 4912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14539 break;
14540 case "5":
14541
14542
14543 #line default
14544 #line hidden
14545 WriteLiteralTo(__razor_helper_writer, " <h5");
14546
14547 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14548
14549 WriteLiteralTo(__razor_helper_writer, ">");
14550
14551
14552 #line 4914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14553 WriteTo(__razor_helper_writer, settings.Value);
14554
14555
14556 #line default
14557 #line hidden
14558 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n");
14559
14560
14561 #line 4915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14562 break;
14563 case "0":
14564
14565
14566 #line default
14567 #line hidden
14568 WriteLiteralTo(__razor_helper_writer, " <div");
14569
14570 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14571
14572 WriteLiteralTo(__razor_helper_writer, ">");
14573
14574
14575 #line 4917 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14576 WriteTo(__razor_helper_writer, settings.Value);
14577
14578
14579 #line default
14580 #line hidden
14581 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
14582
14583
14584 #line 4918 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14585 break;
14586 default:
14587
14588
14589 #line default
14590 #line hidden
14591 WriteLiteralTo(__razor_helper_writer, " <h2");
14592
14593 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__header h2\"");
14594
14595 WriteLiteralTo(__razor_helper_writer, ">");
14596
14597
14598 #line 4920 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14599 WriteTo(__razor_helper_writer, settings.Value);
14600
14601
14602 #line default
14603 #line hidden
14604 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n");
14605
14606
14607 #line 4921 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14608 break;
14609 }
14610
14611
14612 #line default
14613 #line hidden
14614 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n");
14615
14616
14617 #line 4925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14618
14619
14620 #line default
14621 #line hidden
14622 });
14623
14624 #line 4925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14625 }
14626 #line default
14627 #line hidden
14628
14629
14630 #line 4927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14631 public RazorEngine.Templating.TemplateWriter RenderArticleSubHeadingRefactored (ArticleSubHeadingRefactored settings)
14632 {
14633 #line default
14634 #line hidden
14635 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14636
14637 #line 4928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14638
14639
14640
14641 #line default
14642 #line hidden
14643 WriteLiteralTo(__razor_helper_writer, " <div");
14644
14645 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow my-2\"");
14646
14647 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14648
14649 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14650
14651 WriteLiteralTo(__razor_helper_writer, ">\r\n");
14652
14653
14654 #line 4931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14655
14656
14657 #line default
14658 #line hidden
14659
14660 #line 4931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14661 switch(settings.Tag) {
14662 case "2":
14663
14664
14665 #line default
14666 #line hidden
14667 WriteLiteralTo(__razor_helper_writer, " <h2");
14668
14669 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14670
14671 WriteLiteralTo(__razor_helper_writer, ">");
14672
14673
14674 #line 4933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14675 WriteTo(__razor_helper_writer, settings.Value);
14676
14677
14678 #line default
14679 #line hidden
14680 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n");
14681
14682
14683 #line 4934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14684 break;
14685 case "3":
14686
14687
14688 #line default
14689 #line hidden
14690 WriteLiteralTo(__razor_helper_writer, " <h3");
14691
14692 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14693
14694 WriteLiteralTo(__razor_helper_writer, ">");
14695
14696
14697 #line 4936 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14698 WriteTo(__razor_helper_writer, settings.Value);
14699
14700
14701 #line default
14702 #line hidden
14703 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
14704
14705
14706 #line 4937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14707 break;
14708 case "4":
14709
14710
14711 #line default
14712 #line hidden
14713 WriteLiteralTo(__razor_helper_writer, " <h4");
14714
14715 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14716
14717 WriteLiteralTo(__razor_helper_writer, ">");
14718
14719
14720 #line 4939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14721 WriteTo(__razor_helper_writer, settings.Value);
14722
14723
14724 #line default
14725 #line hidden
14726 WriteLiteralTo(__razor_helper_writer, "</h4>\r\n");
14727
14728
14729 #line 4940 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14730 break;
14731 case "5":
14732
14733
14734 #line default
14735 #line hidden
14736 WriteLiteralTo(__razor_helper_writer, " <h5");
14737
14738 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14739
14740 WriteLiteralTo(__razor_helper_writer, ">");
14741
14742
14743 #line 4942 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14744 WriteTo(__razor_helper_writer, settings.Value);
14745
14746
14747 #line default
14748 #line hidden
14749 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n");
14750
14751
14752 #line 4943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14753 break;
14754 case "0":
14755
14756
14757 #line default
14758 #line hidden
14759 WriteLiteralTo(__razor_helper_writer, " <div");
14760
14761 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14762
14763 WriteLiteralTo(__razor_helper_writer, ">");
14764
14765
14766 #line 4945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14767 WriteTo(__razor_helper_writer, settings.Value);
14768
14769
14770 #line default
14771 #line hidden
14772 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
14773
14774
14775 #line 4946 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14776 break;
14777 default:
14778
14779
14780 #line default
14781 #line hidden
14782 WriteLiteralTo(__razor_helper_writer, " <h3");
14783
14784 WriteLiteralTo(__razor_helper_writer, " class=\"article-detail__subheading h3\"");
14785
14786 WriteLiteralTo(__razor_helper_writer, ">");
14787
14788
14789 #line 4948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14790 WriteTo(__razor_helper_writer, settings.Value);
14791
14792
14793 #line default
14794 #line hidden
14795 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n");
14796
14797
14798 #line 4949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14799 break;
14800 }
14801
14802
14803 #line default
14804 #line hidden
14805 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n");
14806
14807
14808 #line 4953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14809
14810
14811 #line default
14812 #line hidden
14813 });
14814
14815 #line 4953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14816 }
14817 #line default
14818 #line hidden
14819
14820
14821 #line 4955 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14822 public RazorEngine.Templating.TemplateWriter RenderArticleVideoRefactored (ArticleVideoRefactored settings) {
14823 #line default
14824 #line hidden
14825 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
14826
14827 #line 4955 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14828
14829 //getting video ID from youtube URL
14830 string videoCode = settings.Url;
14831 Regex regex = new Regex(@".be\/(.[^?]*)");
14832 Match match = regex.Match(videoCode);
14833 string videoId = "";
14834 if (match.Success)
14835 {
14836 videoId = match.Groups[1].Value;
14837 }
14838 else
14839 {
14840 regex = new Regex(@"v=([^&]+)");
14841 match = regex.Match(videoCode);
14842 if (match.Success)
14843 {
14844 videoId = match.Groups[1].Value;
14845 }
14846 }
14847
14848 int autoPlay = settings.AutoPlay == "true" ? 1 : 0;
14849
14850 switch (settings.Layout)
14851 {
14852 case "banner":
14853
14854
14855 #line default
14856 #line hidden
14857 WriteLiteralTo(__razor_helper_writer, " <div");
14858
14859 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide my-3\"");
14860
14861 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14862
14863 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14864
14865 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14866
14867 WriteLiteralTo(__razor_helper_writer, " class=\"video-container\"");
14868
14869 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe");
14870
14871 WriteLiteralTo(__razor_helper_writer, " width=\"560\"");
14872
14873 WriteLiteralTo(__razor_helper_writer, " height=\"315\"");
14874
14875 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 236601), Tuple.Create("\"", 236660)
14876 , Tuple.Create(Tuple.Create("", 236607), Tuple.Create("https://www.youtube-nocookie.com/embed/", 236607), true)
14877
14878 #line 4983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14879 , Tuple.Create(Tuple.Create("", 236646), Tuple.Create<System.Object, System.Int32>(videoId
14880
14881 #line default
14882 #line hidden
14883 , 236646), false)
14884 , Tuple.Create(Tuple.Create("", 236654), Tuple.Create("?rel=0", 236654), true)
14885 );
14886
14887 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\"");
14888
14889 WriteLiteralTo(__razor_helper_writer, " allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pic" +
14890 "ture-in-picture\"");
14891
14892 WriteLiteralTo(__razor_helper_writer, " allowfullscreen></iframe>\r\n </div> \r\n </div>\r\n </div>" +
14893 "\r\n");
14894
14895
14896 #line 4987 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14897 break;
14898 case "wide":
14899
14900
14901 #line default
14902 #line hidden
14903 WriteLiteralTo(__razor_helper_writer, " <div");
14904
14905 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container my-3\"");
14906
14907 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14908
14909 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14910
14911 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14912
14913 WriteLiteralTo(__razor_helper_writer, " class=\"video-container\"");
14914
14915 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe");
14916
14917 WriteLiteralTo(__razor_helper_writer, " width=\"560\"");
14918
14919 WriteLiteralTo(__razor_helper_writer, " height=\"315\"");
14920
14921 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 237072), Tuple.Create("\"", 237131)
14922 , Tuple.Create(Tuple.Create("", 237078), Tuple.Create("https://www.youtube-nocookie.com/embed/", 237078), true)
14923
14924 #line 4992 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14925 , Tuple.Create(Tuple.Create("", 237117), Tuple.Create<System.Object, System.Int32>(videoId
14926
14927 #line default
14928 #line hidden
14929 , 237117), false)
14930 , Tuple.Create(Tuple.Create("", 237125), Tuple.Create("?rel=0", 237125), true)
14931 );
14932
14933 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\"");
14934
14935 WriteLiteralTo(__razor_helper_writer, " allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pic" +
14936 "ture-in-picture\"");
14937
14938 WriteLiteralTo(__razor_helper_writer, " allowfullscreen></iframe>\r\n </div> \r\n </div>\r\n </div" +
14939 ">\r\n");
14940
14941
14942 #line 4996 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14943 break;
14944 case "straight":
14945
14946
14947 #line default
14948 #line hidden
14949 WriteLiteralTo(__razor_helper_writer, " <div");
14950
14951 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--narrow my-3\"");
14952
14953 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14954
14955 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
14956
14957 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
14958
14959 WriteLiteralTo(__razor_helper_writer, " class=\"video-container\"");
14960
14961 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe");
14962
14963 WriteLiteralTo(__razor_helper_writer, " width=\"560\"");
14964
14965 WriteLiteralTo(__razor_helper_writer, " height=\"315\"");
14966
14967 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 237557), Tuple.Create("\"", 237616)
14968 , Tuple.Create(Tuple.Create("", 237563), Tuple.Create("https://www.youtube-nocookie.com/embed/", 237563), true)
14969
14970 #line 5001 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14971 , Tuple.Create(Tuple.Create("", 237602), Tuple.Create<System.Object, System.Int32>(videoId
14972
14973 #line default
14974 #line hidden
14975 , 237602), false)
14976 , Tuple.Create(Tuple.Create("", 237610), Tuple.Create("?rel=0", 237610), true)
14977 );
14978
14979 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\"");
14980
14981 WriteLiteralTo(__razor_helper_writer, " allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pic" +
14982 "ture-in-picture\"");
14983
14984 WriteLiteralTo(__razor_helper_writer, " allowfullscreen></iframe>\r\n </div> \r\n </div>\r\n </div" +
14985 ">\r\n");
14986
14987
14988 #line 5005 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
14989 break;
14990 default:
14991
14992
14993 #line default
14994 #line hidden
14995 WriteLiteralTo(__razor_helper_writer, " <div");
14996
14997 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container--wide my-3\"");
14998
14999 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15000
15001 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
15002
15003 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15004
15005 WriteLiteralTo(__razor_helper_writer, " class=\"video-container\"");
15006
15007 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe");
15008
15009 WriteLiteralTo(__razor_helper_writer, " width=\"560\"");
15010
15011 WriteLiteralTo(__razor_helper_writer, " height=\"315\"");
15012
15013 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 238034), Tuple.Create("\"", 238093)
15014 , Tuple.Create(Tuple.Create("", 238040), Tuple.Create("https://www.youtube-nocookie.com/embed/", 238040), true)
15015
15016 #line 5010 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15017 , Tuple.Create(Tuple.Create("", 238079), Tuple.Create<System.Object, System.Int32>(videoId
15018
15019 #line default
15020 #line hidden
15021 , 238079), false)
15022 , Tuple.Create(Tuple.Create("", 238087), Tuple.Create("?rel=0", 238087), true)
15023 );
15024
15025 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\"");
15026
15027 WriteLiteralTo(__razor_helper_writer, " allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pic" +
15028 "ture-in-picture\"");
15029
15030 WriteLiteralTo(__razor_helper_writer, " allowfullscreen></iframe>\r\n </div> \r\n </div>\r\n </div" +
15031 ">\r\n");
15032
15033
15034 #line 5014 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15035 break;
15036 }
15037
15038
15039
15040 #line default
15041 #line hidden
15042 });
15043
15044 #line 5017 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15045 }
15046 #line default
15047 #line hidden
15048
15049
15050 #line 5020 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15051
15052 public class ButtonRefactored : ComponentBase
15053 {
15054 public string Style { get; set; }
15055 public string Theme { get; set; }
15056 public string CssClass { get; set; }
15057 public string Attributes { get; set; }
15058 public string Label { get; set; }
15059 public string AriaLabel { get; set; }
15060 public string Type { get; set; }
15061 }
15062 public class LinkRefactored : ComponentBase
15063 {
15064 public string Style { get; set; }
15065 public string Theme { get; set; }
15066 public string CssClass { get; set; }
15067 public string Attributes { get; set; }
15068 public string Label { get; set; }
15069 public string URL { get; set; }
15070 }
15071
15072 #line default
15073 #line hidden
15074
15075
15076 #line 5042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15077 public RazorEngine.Templating.TemplateWriter RenderButtonRefactored (ButtonRefactored settings) {
15078 #line default
15079 #line hidden
15080 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
15081
15082 #line 5042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15083
15084 if (settings != null && !string.IsNullOrEmpty(settings.Label))
15085 {
15086 string btnStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill";
15087 string btnTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted";
15088 string btnType = !string.IsNullOrEmpty(settings.Type) ? settings.Type : "button";
15089 string btnAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : "";
15090 string btnAriaLabel = !string.IsNullOrEmpty(settings.AriaLabel) ? settings.AriaLabel : settings.Label;
15091
15092
15093 #line default
15094 #line hidden
15095 WriteLiteralTo(__razor_helper_writer, " <button");
15096
15097 WriteAttributeTo(__razor_helper_writer, "type", Tuple.Create(" type=\"", 239631), Tuple.Create("\"", 239646)
15098
15099 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15100 , Tuple.Create(Tuple.Create("", 239638), Tuple.Create<System.Object, System.Int32>(btnType
15101
15102 #line default
15103 #line hidden
15104 , 239638), false)
15105 );
15106
15107 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 239647), Tuple.Create("\"", 239698)
15108 , Tuple.Create(Tuple.Create("", 239655), Tuple.Create("btn-", 239655), true)
15109
15110 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15111 , Tuple.Create(Tuple.Create("", 239659), Tuple.Create<System.Object, System.Int32>(btnStyle
15112
15113 #line default
15114 #line hidden
15115 , 239659), false)
15116 , Tuple.Create(Tuple.Create("", 239668), Tuple.Create("--", 239668), true)
15117
15118 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15119 , Tuple.Create(Tuple.Create("", 239670), Tuple.Create<System.Object, System.Int32>(btnTheme
15120
15121 #line default
15122 #line hidden
15123 , 239670), false)
15124
15125 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15126 , Tuple.Create(Tuple.Create(" ", 239679), Tuple.Create<System.Object, System.Int32>(settings.CssClass
15127
15128 #line default
15129 #line hidden
15130 , 239680), false)
15131 );
15132
15133 WriteLiteralTo(__razor_helper_writer, " ");
15134
15135
15136 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15137 WriteTo(__razor_helper_writer, btnAttributes);
15138
15139
15140 #line default
15141 #line hidden
15142 WriteLiteralTo(__razor_helper_writer, " aria-label=\"\">");
15143
15144
15145 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15146 WriteTo(__razor_helper_writer, settings.Label);
15147
15148
15149 #line default
15150 #line hidden
15151 WriteLiteralTo(__razor_helper_writer, "</button> \r\n");
15152
15153
15154 #line 5051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15155 }
15156
15157
15158 #line default
15159 #line hidden
15160 });
15161
15162 #line 5052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15163 }
15164 #line default
15165 #line hidden
15166
15167
15168 #line 5053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15169 public RazorEngine.Templating.TemplateWriter RenderLinkRefactored (LinkRefactored settings) {
15170 #line default
15171 #line hidden
15172 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
15173
15174 #line 5053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15175
15176 if (settings != null && !string.IsNullOrEmpty(settings.URL) && !string.IsNullOrEmpty(settings.Label))
15177 {
15178 string linkStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill";
15179 string linkTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted";
15180 string linkAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : "";
15181
15182
15183 #line default
15184 #line hidden
15185 WriteLiteralTo(__razor_helper_writer, " <a");
15186
15187 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 240220), Tuple.Create("\"", 240240)
15188
15189 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15190 , Tuple.Create(Tuple.Create("", 240227), Tuple.Create<System.Object, System.Int32>(settings.URL
15191
15192 #line default
15193 #line hidden
15194 , 240227), false)
15195 );
15196
15197 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 240241), Tuple.Create("\"", 240298)
15198 , Tuple.Create(Tuple.Create("", 240249), Tuple.Create("btn", 240249), true)
15199 , Tuple.Create(Tuple.Create(" ", 240252), Tuple.Create("btn-", 240253), true)
15200
15201 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15202 , Tuple.Create(Tuple.Create("", 240257), Tuple.Create<System.Object, System.Int32>(linkStyle
15203
15204 #line default
15205 #line hidden
15206 , 240257), false)
15207 , Tuple.Create(Tuple.Create("", 240267), Tuple.Create("--", 240267), true)
15208
15209 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15210 , Tuple.Create(Tuple.Create("", 240269), Tuple.Create<System.Object, System.Int32>(linkTheme
15211
15212 #line default
15213 #line hidden
15214 , 240269), false)
15215
15216 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15217 , Tuple.Create(Tuple.Create(" ", 240279), Tuple.Create<System.Object, System.Int32>(settings.CssClass
15218
15219 #line default
15220 #line hidden
15221 , 240280), false)
15222 );
15223
15224 WriteLiteralTo(__razor_helper_writer, " ");
15225
15226
15227 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15228 WriteTo(__razor_helper_writer, linkAttributes);
15229
15230
15231 #line default
15232 #line hidden
15233 WriteLiteralTo(__razor_helper_writer, ">");
15234
15235
15236 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15237 WriteTo(__razor_helper_writer, settings.Label);
15238
15239
15240 #line default
15241 #line hidden
15242 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
15243
15244
15245 #line 5060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15246 }
15247
15248
15249 #line default
15250 #line hidden
15251 });
15252
15253 #line 5061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15254 }
15255 #line default
15256 #line hidden
15257
15258
15259 #line 5095 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15260 public RazorEngine.Templating.TemplateWriter RenderGoogleTagManager() {
15261 #line default
15262 #line hidden
15263 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
15264
15265 #line 5095 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15266
15267 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
15268
15269 if (areaInfo.GoogleTagManagerID.HasValue())
15270 {
15271 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false;
15272 if (!debugSpeedTest)
15273 {
15274
15275
15276 #line default
15277 #line hidden
15278 WriteLiteralTo(__razor_helper_writer, @" <script>
15279 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
15280 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
15281 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
15282 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
15283 })(window,document,'script','dataLayer','");
15284
15285
15286 #line 5108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15287 WriteTo(__razor_helper_writer, areaInfo.GoogleTagManagerID);
15288
15289
15290 #line default
15291 #line hidden
15292 WriteLiteralTo(__razor_helper_writer, "\');\r\n </script>\r\n");
15293
15294 WriteLiteralTo(__razor_helper_writer, " <!-- Google Tag Manager (noscript) -->\r\n");
15295
15296 WriteLiteralTo(__razor_helper_writer, " <noscript>\r\n <iframe");
15297
15298 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 242033), Tuple.Create("\"", 242111)
15299 , Tuple.Create(Tuple.Create("", 242039), Tuple.Create("https://www.googletagmanager.com/ns.html?id=", 242039), true)
15300
15301 #line 5112 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15302 , Tuple.Create(Tuple.Create("", 242083), Tuple.Create<System.Object, System.Int32>(areaInfo.GoogleTagManagerID
15303
15304 #line default
15305 #line hidden
15306 , 242083), false)
15307 );
15308
15309 WriteLiteralTo(__razor_helper_writer, "\r\n height=\"0\"");
15310
15311 WriteLiteralTo(__razor_helper_writer, " width=\"0\"");
15312
15313 WriteLiteralTo(__razor_helper_writer, " style=\"display:none;visibility:hidden\"");
15314
15315 WriteLiteralTo(__razor_helper_writer, "></iframe>\r\n </noscript>\r\n");
15316
15317 WriteLiteralTo(__razor_helper_writer, " <!-- End Google Tag Manager (noscript) -->\r\n");
15318
15319
15320 #line 5116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15321 }
15322 }
15323
15324
15325 #line default
15326 #line hidden
15327 });
15328
15329 #line 5118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15330 }
15331 #line default
15332 #line hidden
15333
15334
15335 #line 5120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15336 public RazorEngine.Templating.TemplateWriter RenderFacebookPixel() {
15337 #line default
15338 #line hidden
15339 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
15340
15341 #line 5120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15342
15343 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
15344
15345 if (areaInfo.FacebookPixelID.HasValue())
15346 {
15347
15348
15349 #line default
15350 #line hidden
15351 WriteLiteralTo(__razor_helper_writer, " <!-- Facebook Pixel Code -->\r\n");
15352
15353 WriteLiteralTo(__razor_helper_writer, @" <script>
15354 !function(f,b,e,v,n,t,s)
15355 {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
15356 n.callMethod.apply(n,arguments):n.queue.push(arguments)};
15357 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
15358 n.queue=[];t=b.createElement(e);t.async=!0;
15359 t.src=v;s=b.getElementsByTagName(e)[0];
15360 s.parentNode.insertBefore(t,s)}(window, document,'script',
15361 'https://connect.facebook.net/en_US/fbevents.js');
15362 fbq('init', '");
15363
15364
15365 #line 5135 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15366 WriteTo(__razor_helper_writer, areaInfo.FacebookPixelID);
15367
15368
15369 #line default
15370 #line hidden
15371 WriteLiteralTo(__razor_helper_writer, "\');\r\n fbq(\'track\', \'PageView\');\r\n </script>\r\n");
15372
15373 WriteLiteralTo(__razor_helper_writer, " <noscript><img");
15374
15375 WriteLiteralTo(__razor_helper_writer, " height=\"1\"");
15376
15377 WriteLiteralTo(__razor_helper_writer, " width=\"1\"");
15378
15379 WriteLiteralTo(__razor_helper_writer, " style=\"display:none\"");
15380
15381 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 243141), Tuple.Create("\"", 243226)
15382 , Tuple.Create(Tuple.Create("", 243147), Tuple.Create("https://www.facebook.com/tr?id=", 243147), true)
15383
15384 #line 5138 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15385 , Tuple.Create(Tuple.Create("", 243178), Tuple.Create<System.Object, System.Int32>(areaInfo.FacebookPixelID
15386
15387 #line default
15388 #line hidden
15389 , 243178), false)
15390 , Tuple.Create(Tuple.Create("", 243203), Tuple.Create("&ev=PageView&noscript=1", 243203), true)
15391 );
15392
15393 WriteLiteralTo(__razor_helper_writer, " alt=\"\"");
15394
15395 WriteLiteralTo(__razor_helper_writer, " /></noscript>\r\n");
15396
15397
15398 #line 5139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15399 }
15400
15401
15402 #line default
15403 #line hidden
15404 });
15405
15406 #line 5140 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15407 }
15408 #line default
15409 #line hidden
15410
15411
15412 #line 5163 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15413 public RazorEngine.Templating.TemplateWriter LoginModal() {
15414 #line default
15415 #line hidden
15416 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
15417
15418 #line 5163 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15419
15420 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
15421 string userSignedInErrorText = "";
15422 string loginJsonPage = GetPageIdByNavigationTag("LoginJSON").ToString();
15423 var cultureInfo = Pageview.Area;
15424 var countryService = new Dynamicweb.Ecommerce.International.CountryService();
15425 var DesignFolder = Pageview.Layout.Design.Name;
15426
15427 if (Model.LogOnFailed) {
15428 switch (Model.LogOnFailedReason)
15429 {
15430 case LogOnFailedReason.PasswordLengthInvalid:
15431 userSignedInErrorText = Translate(Translations.Account.PasswordLengthIsInvalid);
15432 break;
15433 case LogOnFailedReason.IncorrectLogin:
15434 userSignedInErrorText = Translate(Translations.Account.InvalidEmailOrPassword);
15435 break;
15436 case LogOnFailedReason.ExceededFailedLogOnLimit:
15437 userSignedInErrorText = Translate(Translations.Account.LimitOfAllowedLoginAttempts);
15438 break;
15439 case LogOnFailedReason.LoginLocked:
15440 userSignedInErrorText = Translate(Translations.Account.TheUserAccountIsTemporarilyLocked);
15441 break;
15442 case LogOnFailedReason.PasswordExpired:
15443 userSignedInErrorText = Translate(Translations.Account.ThePasswordHasExpired);
15444 break;
15445 default:
15446 userSignedInErrorText = Translate(Translations.Account.AnUnknownErrorOccured);
15447 break;
15448 }
15449 }
15450
15451
15452
15453 #line default
15454 #line hidden
15455 WriteLiteralTo(__razor_helper_writer, " <df-modal");
15456
15457 WriteLiteralTo(__razor_helper_writer, " id=\"SignInModal\"");
15458
15459 WriteLiteralTo(__razor_helper_writer, " class=\"login-container align-items-center\"");
15460
15461 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <span");
15462
15463 WriteLiteralTo(__razor_helper_writer, " class=\"login__form-wrapper grid-md-12 gap-0\"");
15464
15465 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15466
15467 WriteLiteralTo(__razor_helper_writer, " class=\"content__login col-md-5 bg-brand color-light px-4 py-2 align-items-center" +
15468 " flex-wrap text-center\"");
15469
15470 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15471
15472 WriteLiteralTo(__razor_helper_writer, " class=\"c0 w-100\"");
15473
15474 WriteLiteralTo(__razor_helper_writer, ">\r\n");
15475
15476
15477 #line 5200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15478
15479
15480 #line default
15481 #line hidden
15482
15483 #line 5200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15484 if (!string.IsNullOrEmpty(areaInfo.FooterLogo))
15485 {
15486
15487
15488 #line default
15489 #line hidden
15490 WriteLiteralTo(__razor_helper_writer, " <div");
15491
15492 WriteLiteralTo(__razor_helper_writer, " class=\"content__login-img mb-2\"");
15493
15494 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
15495
15496 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 245944), Tuple.Create("\"", 245974)
15497
15498 #line 5203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15499 , Tuple.Create(Tuple.Create("", 245951), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink
15500
15501 #line default
15502 #line hidden
15503 , 245951), false)
15504 );
15505
15506 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap w-100 align-items-center justify-content-center\"");
15507
15508 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
15509
15510 WriteLiteralTo(__razor_helper_writer, " class=\"logo__img lazyload\"");
15511
15512 WriteLiteralTo(__razor_helper_writer, " loading=\"lazy\"");
15513
15514 WriteLiteralTo(__razor_helper_writer, " width=\"200\"");
15515
15516 WriteLiteralTo(__razor_helper_writer, " height=\"40\"");
15517
15518 WriteLiteralTo(__razor_helper_writer, " src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"" +
15519 "");
15520
15521 WriteLiteralTo(__razor_helper_writer, " data-src=\"");
15522
15523
15524 #line 5204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15525 WriteTo(__razor_helper_writer, areaInfo.FooterLogo);
15526
15527
15528 #line default
15529 #line hidden
15530 WriteLiteralTo(__razor_helper_writer, "\"");
15531
15532 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 246263), Tuple.Create("\"", 246306)
15533
15534 #line 5204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15535 , Tuple.Create(Tuple.Create("", 246269), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo)
15536
15537 #line default
15538 #line hidden
15539 , 246269), false)
15540 );
15541
15542 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n </div>\r\n");
15543
15544
15545 #line 5207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15546 }
15547
15548
15549 #line default
15550 #line hidden
15551 WriteLiteralTo(__razor_helper_writer, " <div");
15552
15553 WriteLiteralTo(__razor_helper_writer, " class=\"content__login-text\"");
15554
15555 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5");
15556
15557 WriteLiteralTo(__razor_helper_writer, " class=\"h3\"");
15558
15559 WriteLiteralTo(__razor_helper_writer, ">");
15560
15561
15562 #line 5209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15563 WriteTo(__razor_helper_writer, Translate(Translations.General.LoginModalHeading));
15564
15565
15566 #line default
15567 #line hidden
15568 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n <p>");
15569
15570
15571 #line 5210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15572 WriteTo(__razor_helper_writer, Translate(Translations.General.LoginModalSubHeading));
15573
15574
15575 #line default
15576 #line hidden
15577 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n </div>\r\n\r\n " +
15578 " </div>\r\n <div");
15579
15580 WriteLiteralTo(__razor_helper_writer, " class=\"form__section col-md-7 p-4\"");
15581
15582 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15583
15584 WriteLiteralTo(__razor_helper_writer, " class=\"tab\"");
15585
15586 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
15587
15588 WriteLiteralTo(__razor_helper_writer, " class=\"tablinks\"");
15589
15590 WriteLiteralTo(__razor_helper_writer, " data-tab=\"Login\"");
15591
15592 WriteLiteralTo(__razor_helper_writer, "><span");
15593
15594 WriteLiteralTo(__razor_helper_writer, " class=\"h5 px-2 px-xs-3\"");
15595
15596 WriteLiteralTo(__razor_helper_writer, ">");
15597
15598
15599 #line 5217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15600 WriteTo(__razor_helper_writer, Translate(Translations.Account.LogIn));
15601
15602
15603 #line default
15604 #line hidden
15605 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n <div");
15606
15607 WriteLiteralTo(__razor_helper_writer, " class=\"tablinks\"");
15608
15609 WriteLiteralTo(__razor_helper_writer, " data-tab=\"CreateAccount\"");
15610
15611 WriteLiteralTo(__razor_helper_writer, "><span");
15612
15613 WriteLiteralTo(__razor_helper_writer, " class=\"h5 px-2 px-xs-3\"");
15614
15615 WriteLiteralTo(__razor_helper_writer, ">");
15616
15617
15618 #line 5218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15619 WriteTo(__razor_helper_writer, Translate(Translations.Account.CreateAccount));
15620
15621
15622 #line default
15623 #line hidden
15624 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n <div");
15625
15626 WriteLiteralTo(__razor_helper_writer, " class=\"tablinks\"");
15627
15628 WriteLiteralTo(__razor_helper_writer, " data-tab=\"CreateDesignerAccount\"");
15629
15630 WriteLiteralTo(__razor_helper_writer, "><span");
15631
15632 WriteLiteralTo(__razor_helper_writer, " class=\"h5 px-2 px-xs-3\"");
15633
15634 WriteLiteralTo(__razor_helper_writer, ">");
15635
15636
15637 #line 5219 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15638 WriteTo(__razor_helper_writer, Translate("Solicita cont designer"));
15639
15640
15641 #line default
15642 #line hidden
15643 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n </div>\r\n <div");
15644
15645 WriteLiteralTo(__razor_helper_writer, " id=\"Login\"");
15646
15647 WriteLiteralTo(__razor_helper_writer, " class=\"tab-content\"");
15648
15649 WriteLiteralTo(__razor_helper_writer, ">\r\n <form");
15650
15651 WriteLiteralTo(__razor_helper_writer, " method=\"post\"");
15652
15653 WriteLiteralTo(__razor_helper_writer, " id=\"Modal__LoginForm\"");
15654
15655 WriteLiteralTo(__razor_helper_writer, " class=\"items-vertical\"");
15656
15657 WriteLiteralTo(__razor_helper_writer, " data-json-page=\"/Default.aspx?ID=");
15658
15659
15660 #line 5222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15661 WriteTo(__razor_helper_writer, loginJsonPage);
15662
15663
15664 #line default
15665 #line hidden
15666 WriteLiteralTo(__razor_helper_writer, "\"");
15667
15668 WriteLiteralTo(__razor_helper_writer, " data-role=\"login\"");
15669
15670 WriteLiteralTo(__razor_helper_writer, " data-empty-fields=\"");
15671
15672
15673 #line 5222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15674 WriteTo(__razor_helper_writer, Translate(Translations.Account.EmptyFields));
15675
15676
15677 #line default
15678 #line hidden
15679 WriteLiteralTo(__razor_helper_writer, "\"");
15680
15681 WriteLiteralTo(__razor_helper_writer, " novalidate> \r\n <input");
15682
15683 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15684
15685 WriteLiteralTo(__razor_helper_writer, " name=\"ID\"");
15686
15687 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 247691), Tuple.Create("\"", 247715)
15688
15689 #line 5223 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15690 , Tuple.Create(Tuple.Create("", 247699), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId
15691
15692 #line default
15693 #line hidden
15694 , 247699), false)
15695 );
15696
15697 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input");
15698
15699 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15700
15701 WriteLiteralTo(__razor_helper_writer, " name=\"DWExtranetUsernameRemember\"");
15702
15703 WriteLiteralTo(__razor_helper_writer, " value=\"True\"");
15704
15705 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input");
15706
15707 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15708
15709 WriteLiteralTo(__razor_helper_writer, " name=\"DWExtranetPasswordRemember\"");
15710
15711 WriteLiteralTo(__razor_helper_writer, " value=\"True\"");
15712
15713 WriteLiteralTo(__razor_helper_writer, "/>\r\n <df-input");
15714
15715 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
15716
15717 WriteLiteralTo(__razor_helper_writer, " type=\"email\"");
15718
15719 WriteLiteralTo(__razor_helper_writer, " name=\"username\"");
15720
15721 WriteLiteralTo(__razor_helper_writer, " id=\"Modal__username\"");
15722
15723 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 248018), Tuple.Create("\"", 248064)
15724
15725 #line 5226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15726 , Tuple.Create(Tuple.Create("", 248026), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email)
15727
15728 #line default
15729 #line hidden
15730 , 248026), false)
15731 );
15732
15733 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
15734
15735 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n <df-input");
15736
15737 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
15738
15739 WriteLiteralTo(__razor_helper_writer, " type=\"password\"");
15740
15741 WriteLiteralTo(__razor_helper_writer, " name=\"password\"");
15742
15743 WriteLiteralTo(__razor_helper_writer, " id=\"Modal__password\"");
15744
15745 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 248200), Tuple.Create("\"", 248249)
15746
15747 #line 5227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15748 , Tuple.Create(Tuple.Create("", 248208), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password)
15749
15750 #line default
15751 #line hidden
15752 , 248208), false)
15753 );
15754
15755 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
15756
15757 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n ");
15758
15759 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\r\n <df-checkbox");
15760
15761 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
15762
15763 WriteLiteralTo(__razor_helper_writer, " name=\"Autologin\"");
15764
15765 WriteLiteralTo(__razor_helper_writer, " id=\"Modal__Autologin\"");
15766
15767 WriteLiteralTo(__razor_helper_writer, " value=\"True\"");
15768
15769 WriteLiteralTo(__razor_helper_writer, " checked><span>");
15770
15771
15772 #line 5231 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15773 WriteTo(__razor_helper_writer, Translate(Translations.Account.RememberMe));
15774
15775
15776 #line default
15777 #line hidden
15778 WriteLiteralTo(__razor_helper_writer, "</span></df-checkbox>\r\n\r\n <div");
15779
15780 WriteLiteralTo(__razor_helper_writer, " class=\"login__actions flex-wrap align-items-center child-mr-2\"");
15781
15782 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
15783
15784 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
15785
15786 WriteLiteralTo(__razor_helper_writer, " class=\"btn-fill--accent\"");
15787
15788 WriteLiteralTo(__razor_helper_writer, " name=\"LoginAction\"");
15789
15790 WriteLiteralTo(__razor_helper_writer, " value=\"Login\"");
15791
15792 WriteLiteralTo(__razor_helper_writer, ">");
15793
15794
15795 #line 5234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15796 WriteTo(__razor_helper_writer, Translate(Translations.Account.SignIn));
15797
15798
15799 #line default
15800 #line hidden
15801 WriteLiteralTo(__razor_helper_writer, "</button>\r\n <a");
15802
15803 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 248864), Tuple.Create("\"", 248903)
15804
15805 #line 5235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15806 , Tuple.Create(Tuple.Create("", 248871), Tuple.Create<System.Object, System.Int32>(areaInfo.ForgotPasswordPageLink
15807
15808 #line default
15809 #line hidden
15810 , 248871), false)
15811 );
15812
15813 WriteLiteralTo(__razor_helper_writer, " class=\"forgot--password\"");
15814
15815 WriteLiteralTo(__razor_helper_writer, ">");
15816
15817
15818 #line 5235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15819 WriteTo(__razor_helper_writer, Translate(Translations.Account.ForgotYourPassword));
15820
15821
15822 #line default
15823 #line hidden
15824 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n\r\n </form>\r\n " +
15825 " </div>\r\n <div");
15826
15827 WriteLiteralTo(__razor_helper_writer, " id=\"CreateAccount\"");
15828
15829 WriteLiteralTo(__razor_helper_writer, " class=\"tab-content\"");
15830
15831 WriteLiteralTo(__razor_helper_writer, ">\r\n <form");
15832
15833 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagementEditForm\"");
15834
15835 WriteLiteralTo(__razor_helper_writer, " method=\"post\"");
15836
15837 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 249225), Tuple.Create("\"", 249283)
15838
15839 #line 5241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15840 , Tuple.Create(Tuple.Create("", 249234), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
15841
15842 #line default
15843 #line hidden
15844 , 249234), false)
15845
15846 #line 5241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15847 , Tuple.Create(Tuple.Create("", 249253), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID
15848
15849 #line default
15850 #line hidden
15851 , 249253), false)
15852 );
15853
15854 WriteLiteralTo(__razor_helper_writer, " class=\"items-vertical\"");
15855
15856 WriteLiteralTo(__razor_helper_writer, " data-role=\"create-account\"");
15857
15858 WriteLiteralTo(__razor_helper_writer, " data-empty-fields=\"");
15859
15860
15861 #line 5241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15862 WriteTo(__razor_helper_writer, Translate(Translations.Account.EmptyFields));
15863
15864
15865 #line default
15866 #line hidden
15867 WriteLiteralTo(__razor_helper_writer, "\"");
15868
15869 WriteLiteralTo(__razor_helper_writer, " data-password-match=\"");
15870
15871
15872 #line 5241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15873 WriteTo(__razor_helper_writer, Translate(Translations.Account.PasswordsNoMatch));
15874
15875
15876 #line default
15877 #line hidden
15878 WriteLiteralTo(__razor_helper_writer, "\"");
15879
15880 WriteLiteralTo(__razor_helper_writer, " novalidate>\r\n <input");
15881
15882 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15883
15884 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagementForm\"");
15885
15886 WriteLiteralTo(__razor_helper_writer, " value=\"1\"");
15887
15888 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15889
15890 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15891
15892 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_CountryCode\"");
15893
15894 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 249659), Tuple.Create("\"", 249695)
15895
15896 #line 5243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15897 , Tuple.Create(Tuple.Create("", 249667), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCountryCode
15898
15899 #line default
15900 #line hidden
15901 , 249667), false)
15902 );
15903
15904 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15905
15906 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15907
15908 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Country\"");
15909
15910 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 249782), Tuple.Create("\"", 249850)
15911
15912 #line 5244 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15913 , Tuple.Create(Tuple.Create("", 249790), Tuple.Create<System.Object, System.Int32>(countryService.GetCountry(cultureInfo.EcomCountryCode).Name
15914
15915 #line default
15916 #line hidden
15917 , 249790), false)
15918 );
15919
15920 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15921
15922 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15923
15924 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Currency\"");
15925
15926 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 249938), Tuple.Create("\"", 249973)
15927
15928 #line 5245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15929 , Tuple.Create(Tuple.Create("", 249946), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCurrencyId
15930
15931 #line default
15932 #line hidden
15933 , 249946), false)
15934 );
15935
15936 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15937
15938 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15939
15940 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_ShopId\"");
15941
15942 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 250059), Tuple.Create("\"", 250090)
15943
15944 #line 5246 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15945 , Tuple.Create(Tuple.Create("", 250067), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomShopId
15946
15947 #line default
15948 #line hidden
15949 , 250067), false)
15950 );
15951
15952 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15953
15954 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
15955
15956 WriteLiteralTo(__razor_helper_writer, " class=\"hide\"");
15957
15958 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_DisableLivePrices\"");
15959
15960 WriteLiteralTo(__razor_helper_writer, " value=\"1\"");
15961
15962 WriteLiteralTo(__razor_helper_writer, " checked=\"checked\"");
15963
15964 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
15965
15966 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
15967
15968 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Name\"");
15969
15970 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
15971
15972 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n\r\n <df-input");
15973
15974 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
15975
15976 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
15977
15978 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_LastName\"");
15979
15980 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 250427), Tuple.Create("\"", 250476)
15981
15982 #line 5251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15983 , Tuple.Create(Tuple.Create("", 250435), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LastName)
15984
15985 #line default
15986 #line hidden
15987 , 250435), false)
15988 );
15989
15990 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
15991
15992
15993 #line 5251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
15994 WriteTo(__razor_helper_writer, Translate(Translations.Account.LastNameCannotBeEmpty));
15995
15996
15997 #line default
15998 #line hidden
15999 WriteLiteralTo(__razor_helper_writer, "\"");
16000
16001 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16002
16003 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n <df-input");
16004
16005 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16006
16007 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
16008
16009 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_FirstName\"");
16010
16011 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 250684), Tuple.Create("\"", 250734)
16012
16013 #line 5252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16014 , Tuple.Create(Tuple.Create("", 250692), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.FirstName)
16015
16016 #line default
16017 #line hidden
16018 , 250692), false)
16019 );
16020
16021 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16022
16023
16024 #line 5252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16025 WriteTo(__razor_helper_writer, Translate(Translations.Account.FirstNameCannotBeEmpty));
16026
16027
16028 #line default
16029 #line hidden
16030 WriteLiteralTo(__razor_helper_writer, "\"");
16031
16032 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16033
16034 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n\r\n <df-input");
16035
16036 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16037
16038 WriteLiteralTo(__razor_helper_writer, " type=\"email\"");
16039
16040 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Email\"");
16041
16042 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 250942), Tuple.Create("\"", 250988)
16043
16044 #line 5254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16045 , Tuple.Create(Tuple.Create("", 250950), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email)
16046
16047 #line default
16048 #line hidden
16049 , 250950), false)
16050 );
16051
16052 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16053
16054 WriteLiteralTo(__razor_helper_writer, " required");
16055
16056 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16057
16058
16059 #line 5254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16060 WriteTo(__razor_helper_writer, Translate(Translations.Account.EmailCannotBeEmpty));
16061
16062
16063 #line default
16064 #line hidden
16065 WriteLiteralTo(__razor_helper_writer, "\"");
16066
16067 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <df-input");
16068
16069 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16070
16071 WriteLiteralTo(__razor_helper_writer, " type=\"password\"");
16072
16073 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_NewPassword\"");
16074
16075 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 251199), Tuple.Create("\"", 251248)
16076
16077 #line 5255 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16078 , Tuple.Create(Tuple.Create("", 251207), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password)
16079
16080 #line default
16081 #line hidden
16082 , 251207), false)
16083 );
16084
16085 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16086
16087 WriteLiteralTo(__razor_helper_writer, " required");
16088
16089 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16090
16091
16092 #line 5255 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16093 WriteTo(__razor_helper_writer, Translate(Translations.Account.PasswordFieldCannotBeEmpty));
16094
16095
16096 #line default
16097 #line hidden
16098 WriteLiteralTo(__razor_helper_writer, "\"");
16099
16100 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <df-input");
16101
16102 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16103
16104 WriteLiteralTo(__razor_helper_writer, " type=\"password\"");
16105
16106 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_NewPasswordConfirm\"");
16107
16108 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 251474), Tuple.Create("\"", 251530)
16109
16110 #line 5256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16111 , Tuple.Create(Tuple.Create("", 251482), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ConfirmPassword)
16112
16113 #line default
16114 #line hidden
16115 , 251482), false)
16116 );
16117
16118 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16119
16120 WriteLiteralTo(__razor_helper_writer, " required");
16121
16122 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16123
16124
16125 #line 5256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16126 WriteTo(__razor_helper_writer, Translate(Translations.Account.NewPasswordConfimShouldNotBeEmpty));
16127
16128
16129 #line default
16130 #line hidden
16131 WriteLiteralTo(__razor_helper_writer, "\"");
16132
16133 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n\r\n <div");
16134
16135 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16136
16137 WriteLiteralTo(__razor_helper_writer, ">\r\n <df-checkbox");
16138
16139 WriteLiteralTo(__razor_helper_writer, " data-accept-terms=\"");
16140
16141
16142 #line 5259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16143 WriteTo(__razor_helper_writer, Translate("Accept T&C"));
16144
16145
16146 #line default
16147 #line hidden
16148 WriteLiteralTo(__razor_helper_writer, "\"");
16149
16150 WriteLiteralTo(__razor_helper_writer, " value=\"yes\"");
16151
16152 WriteLiteralTo(__razor_helper_writer, " id=\"EcomOrderCustomerAcceptedLogin\"");
16153
16154 WriteLiteralTo(__razor_helper_writer, " name=\"EcomOrderCustomerAccepted\"");
16155
16156 WriteLiteralTo(__razor_helper_writer, "><span><a");
16157
16158 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 251880), Tuple.Create("\"", 251987)
16159
16160 #line 5259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16161 , Tuple.Create(Tuple.Create("", 251887), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
16162
16163 #line default
16164 #line hidden
16165 , 251887), false)
16166
16167 #line 5259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16168 , Tuple.Create(Tuple.Create("", 251906), Tuple.Create<System.Object, System.Int32>(areaInfo.TermsAndConditions.ID
16169
16170 #line default
16171 #line hidden
16172 , 251906), false)
16173 , Tuple.Create(Tuple.Create("", 251937), Tuple.Create("&LayoutTemplate=Designs/", 251937), true)
16174
16175 #line 5259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16176 , Tuple.Create(Tuple.Create("", 251961), Tuple.Create<System.Object, System.Int32>(DesignFolder
16177
16178 #line default
16179 #line hidden
16180 , 251961), false)
16181 , Tuple.Create(Tuple.Create("", 251974), Tuple.Create("/clean.cshtml", 251974), true)
16182 );
16183
16184 WriteLiteralTo(__razor_helper_writer, " id=\"asyncTerms\"");
16185
16186 WriteLiteralTo(__razor_helper_writer, "><span>");
16187
16188
16189 #line 5259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16190 WriteTo(__razor_helper_writer, Translate(Translations.General.IAcceptTheTermsAndConditions));
16191
16192
16193 #line default
16194 #line hidden
16195 WriteLiteralTo(__razor_helper_writer, "</span></a></span></df-checkbox>\r\n \r\n " +
16196 " </div>\r\n <button");
16197
16198 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
16199
16200 WriteLiteralTo(__razor_helper_writer, " class=\"btn-fill--accent\"");
16201
16202 WriteLiteralTo(__razor_helper_writer, " id=\"submitter\"");
16203
16204 WriteLiteralTo(__razor_helper_writer, ">");
16205
16206
16207 #line 5262 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16208 WriteTo(__razor_helper_writer, Translate(Translations.Account.CreateYourNewAccount));
16209
16210
16211 #line default
16212 #line hidden
16213 WriteLiteralTo(__razor_helper_writer, "</button>\r\n\r\n </form>\r\n </div>\r\n " +
16214 " <div");
16215
16216 WriteLiteralTo(__razor_helper_writer, " id=\"CreateDesignerAccount\"");
16217
16218 WriteLiteralTo(__razor_helper_writer, " class=\"tab-content\"");
16219
16220 WriteLiteralTo(__razor_helper_writer, ">\r\n <form");
16221
16222 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagementEditForm\"");
16223
16224 WriteLiteralTo(__razor_helper_writer, " method=\"post\"");
16225
16226 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 252540), Tuple.Create("\"", 252629)
16227
16228 #line 5267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16229 , Tuple.Create(Tuple.Create("", 252549), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
16230
16231 #line default
16232 #line hidden
16233 , 252549), false)
16234
16235 #line 5267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16236 , Tuple.Create(Tuple.Create("", 252568), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("CreateDesignerAccount").ToString()
16237
16238 #line default
16239 #line hidden
16240 , 252568), false)
16241 );
16242
16243 WriteLiteralTo(__razor_helper_writer, " class=\"items-vertical\"");
16244
16245 WriteLiteralTo(__razor_helper_writer, " data-role=\"create-account\"");
16246
16247 WriteLiteralTo(__razor_helper_writer, " data-empty-fields=\"");
16248
16249
16250 #line 5267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16251 WriteTo(__razor_helper_writer, Translate(Translations.Account.EmptyFields));
16252
16253
16254 #line default
16255 #line hidden
16256 WriteLiteralTo(__razor_helper_writer, "\"");
16257
16258 WriteLiteralTo(__razor_helper_writer, " data-password-match=\"");
16259
16260
16261 #line 5267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16262 WriteTo(__razor_helper_writer, Translate(Translations.Account.PasswordsNoMatch));
16263
16264
16265 #line default
16266 #line hidden
16267 WriteLiteralTo(__razor_helper_writer, "\"");
16268
16269 WriteLiteralTo(__razor_helper_writer, " novalidate>\r\n <input");
16270
16271 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16272
16273 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagementForm\"");
16274
16275 WriteLiteralTo(__razor_helper_writer, " value=\"1\"");
16276
16277 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16278
16279 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16280
16281 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_CountryCode\"");
16282
16283 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 253005), Tuple.Create("\"", 253041)
16284
16285 #line 5269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16286 , Tuple.Create(Tuple.Create("", 253013), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCountryCode
16287
16288 #line default
16289 #line hidden
16290 , 253013), false)
16291 );
16292
16293 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16294
16295 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16296
16297 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Country\"");
16298
16299 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 253128), Tuple.Create("\"", 253196)
16300
16301 #line 5270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16302 , Tuple.Create(Tuple.Create("", 253136), Tuple.Create<System.Object, System.Int32>(countryService.GetCountry(cultureInfo.EcomCountryCode).Name
16303
16304 #line default
16305 #line hidden
16306 , 253136), false)
16307 );
16308
16309 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16310
16311 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16312
16313 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Currency\"");
16314
16315 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 253284), Tuple.Create("\"", 253319)
16316
16317 #line 5271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16318 , Tuple.Create(Tuple.Create("", 253292), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCurrencyId
16319
16320 #line default
16321 #line hidden
16322 , 253292), false)
16323 );
16324
16325 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16326
16327 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16328
16329 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_ShopId\"");
16330
16331 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 253405), Tuple.Create("\"", 253436)
16332
16333 #line 5272 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16334 , Tuple.Create(Tuple.Create("", 253413), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomShopId
16335
16336 #line default
16337 #line hidden
16338 , 253413), false)
16339 );
16340
16341 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16342
16343 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
16344
16345 WriteLiteralTo(__razor_helper_writer, " class=\"hide\"");
16346
16347 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_DisableLivePrices\"");
16348
16349 WriteLiteralTo(__razor_helper_writer, " value=\"1\"");
16350
16351 WriteLiteralTo(__razor_helper_writer, " checked=\"checked\"");
16352
16353 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
16354
16355 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
16356
16357 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Name\"");
16358
16359 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16360
16361 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n\r\n <df-input");
16362
16363 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16364
16365 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
16366
16367 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_LastName\"");
16368
16369 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 253773), Tuple.Create("\"", 253822)
16370
16371 #line 5277 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16372 , Tuple.Create(Tuple.Create("", 253781), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LastName)
16373
16374 #line default
16375 #line hidden
16376 , 253781), false)
16377 );
16378
16379 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16380
16381
16382 #line 5277 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16383 WriteTo(__razor_helper_writer, Translate(Translations.Account.LastNameCannotBeEmpty));
16384
16385
16386 #line default
16387 #line hidden
16388 WriteLiteralTo(__razor_helper_writer, "\"");
16389
16390 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16391
16392 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n <df-input");
16393
16394 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16395
16396 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
16397
16398 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_FirstName\"");
16399
16400 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 254030), Tuple.Create("\"", 254080)
16401
16402 #line 5278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16403 , Tuple.Create(Tuple.Create("", 254038), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.FirstName)
16404
16405 #line default
16406 #line hidden
16407 , 254038), false)
16408 );
16409
16410 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16411
16412
16413 #line 5278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16414 WriteTo(__razor_helper_writer, Translate(Translations.Account.FirstNameCannotBeEmpty));
16415
16416
16417 #line default
16418 #line hidden
16419 WriteLiteralTo(__razor_helper_writer, "\"");
16420
16421 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16422
16423 WriteLiteralTo(__razor_helper_writer, " required></df-input>\r\n\r\n <df-input");
16424
16425 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16426
16427 WriteLiteralTo(__razor_helper_writer, " type=\"email\"");
16428
16429 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_Email\"");
16430
16431 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 254288), Tuple.Create("\"", 254334)
16432
16433 #line 5280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16434 , Tuple.Create(Tuple.Create("", 254296), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email)
16435
16436 #line default
16437 #line hidden
16438 , 254296), false)
16439 );
16440
16441 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16442
16443 WriteLiteralTo(__razor_helper_writer, " required");
16444
16445 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16446
16447
16448 #line 5280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16449 WriteTo(__razor_helper_writer, Translate(Translations.Account.EmailCannotBeEmpty));
16450
16451
16452 #line default
16453 #line hidden
16454 WriteLiteralTo(__razor_helper_writer, "\"");
16455
16456 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <df-input");
16457
16458 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16459
16460 WriteLiteralTo(__razor_helper_writer, " type=\"password\"");
16461
16462 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_NewPassword\"");
16463
16464 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 254545), Tuple.Create("\"", 254594)
16465
16466 #line 5281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16467 , Tuple.Create(Tuple.Create("", 254553), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password)
16468
16469 #line default
16470 #line hidden
16471 , 254553), false)
16472 );
16473
16474 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16475
16476 WriteLiteralTo(__razor_helper_writer, " required");
16477
16478 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16479
16480
16481 #line 5281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16482 WriteTo(__razor_helper_writer, Translate(Translations.Account.PasswordFieldCannotBeEmpty));
16483
16484
16485 #line default
16486 #line hidden
16487 WriteLiteralTo(__razor_helper_writer, "\"");
16488
16489 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <df-input");
16490
16491 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16492
16493 WriteLiteralTo(__razor_helper_writer, " type=\"password\"");
16494
16495 WriteLiteralTo(__razor_helper_writer, " name=\"UserManagement_Form_NewPasswordConfirm\"");
16496
16497 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 254820), Tuple.Create("\"", 254876)
16498
16499 #line 5282 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16500 , Tuple.Create(Tuple.Create("", 254828), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ConfirmPassword)
16501
16502 #line default
16503 #line hidden
16504 , 254828), false)
16505 );
16506
16507 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
16508
16509 WriteLiteralTo(__razor_helper_writer, " required");
16510
16511 WriteLiteralTo(__razor_helper_writer, " data-error-message=\"");
16512
16513
16514 #line 5282 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16515 WriteTo(__razor_helper_writer, Translate(Translations.Account.NewPasswordConfimShouldNotBeEmpty));
16516
16517
16518 #line default
16519 #line hidden
16520 WriteLiteralTo(__razor_helper_writer, "\"");
16521
16522 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n\r\n <div");
16523
16524 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
16525
16526 WriteLiteralTo(__razor_helper_writer, ">\r\n <df-checkbox");
16527
16528 WriteLiteralTo(__razor_helper_writer, " data-accept-terms=\"");
16529
16530
16531 #line 5285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16532 WriteTo(__razor_helper_writer, Translate("Accept T&C"));
16533
16534
16535 #line default
16536 #line hidden
16537 WriteLiteralTo(__razor_helper_writer, "\"");
16538
16539 WriteLiteralTo(__razor_helper_writer, " value=\"yes\"");
16540
16541 WriteLiteralTo(__razor_helper_writer, " id=\"EcomOrderCustomerAcceptedLogin\"");
16542
16543 WriteLiteralTo(__razor_helper_writer, " name=\"EcomOrderCustomerAccepted\"");
16544
16545 WriteLiteralTo(__razor_helper_writer, "><span><a");
16546
16547 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 255226), Tuple.Create("\"", 255333)
16548
16549 #line 5285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16550 , Tuple.Create(Tuple.Create("", 255233), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
16551
16552 #line default
16553 #line hidden
16554 , 255233), false)
16555
16556 #line 5285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16557 , Tuple.Create(Tuple.Create("", 255252), Tuple.Create<System.Object, System.Int32>(areaInfo.TermsAndConditions.ID
16558
16559 #line default
16560 #line hidden
16561 , 255252), false)
16562 , Tuple.Create(Tuple.Create("", 255283), Tuple.Create("&LayoutTemplate=Designs/", 255283), true)
16563
16564 #line 5285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16565 , Tuple.Create(Tuple.Create("", 255307), Tuple.Create<System.Object, System.Int32>(DesignFolder
16566
16567 #line default
16568 #line hidden
16569 , 255307), false)
16570 , Tuple.Create(Tuple.Create("", 255320), Tuple.Create("/clean.cshtml", 255320), true)
16571 );
16572
16573 WriteLiteralTo(__razor_helper_writer, " id=\"asyncTerms\"");
16574
16575 WriteLiteralTo(__razor_helper_writer, "><span>");
16576
16577
16578 #line 5285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16579 WriteTo(__razor_helper_writer, Translate(Translations.General.IAcceptTheTermsAndConditions));
16580
16581
16582 #line default
16583 #line hidden
16584 WriteLiteralTo(__razor_helper_writer, "</span></a></span></df-checkbox>\r\n \r\n " +
16585 " </div>\r\n <button");
16586
16587 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
16588
16589 WriteLiteralTo(__razor_helper_writer, " class=\"btn-fill--accent\"");
16590
16591 WriteLiteralTo(__razor_helper_writer, " id=\"submitter\"");
16592
16593 WriteLiteralTo(__razor_helper_writer, ">");
16594
16595
16596 #line 5288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16597 WriteTo(__razor_helper_writer, Translate(Translations.Account.CreateYourNewAccount));
16598
16599
16600 #line default
16601 #line hidden
16602 WriteLiteralTo(__razor_helper_writer, "</button>\r\n\r\n </form>\r\n </div>\r\n " +
16603 " </div>\r\n </span>\r\n \r\n </df-modal>\r\n");
16604
16605
16606 #line 5296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16607
16608
16609
16610 #line default
16611 #line hidden
16612 });
16613
16614 #line 5297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16615 }
16616 #line default
16617 #line hidden
16618
16619
16620 #line 5308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16621
16622 BlocksPage mobileHeaderBlocksPage = BlocksPage.GetBlockPage("Master");
16623
16624 #line default
16625 #line hidden
16626
16627
16628 #line 5501 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16629 public RazorEngine.Templating.TemplateWriter RenderMobileCartInitialization()
16630 {
16631 #line default
16632 #line hidden
16633 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16634
16635 #line 5502 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16636
16637 int miniCartFeedPageId = GetPageIdByNavigationTag("MiniCartFeed");
16638
16639
16640 #line default
16641 #line hidden
16642 WriteLiteralTo(__razor_helper_writer, " <script>\r\n window.cartId = \"");
16643
16644
16645 #line 5505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16646 WriteTo(__razor_helper_writer, miniCartFeedPageId);
16647
16648
16649 #line default
16650 #line hidden
16651 WriteLiteralTo(__razor_helper_writer, "\";\r\n </script>\r\n");
16652
16653
16654 #line 5507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16655
16656
16657 #line default
16658 #line hidden
16659 });
16660
16661 #line 5507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16662 }
16663 #line default
16664 #line hidden
16665
16666
16667 #line 5509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16668 public RazorEngine.Templating.TemplateWriter RenderMobileTop() {
16669 #line default
16670 #line hidden
16671 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16672
16673 #line 5509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16674
16675 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileTop").OrderBy(item => item.SortId).ToList();
16676
16677
16678 #line default
16679 #line hidden
16680
16681 #line 5511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16682 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
16683
16684
16685 #line default
16686 #line hidden
16687
16688 #line 5511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16689
16690
16691
16692 #line default
16693 #line hidden
16694 });
16695
16696 #line 5512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16697 }
16698 #line default
16699 #line hidden
16700
16701
16702 #line 5514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16703 public RazorEngine.Templating.TemplateWriter RenderMobileHeaderNavigation() {
16704 #line default
16705 #line hidden
16706 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16707
16708 #line 5514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16709
16710 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderNavigation").OrderBy(item => item.SortId).ToList();
16711
16712
16713 #line default
16714 #line hidden
16715 WriteLiteralTo(__razor_helper_writer, " <ul");
16716
16717 WriteLiteralTo(__razor_helper_writer, " class=\"menu\"");
16718
16719 WriteLiteralTo(__razor_helper_writer, ">\r\n");
16720
16721 WriteLiteralTo(__razor_helper_writer, " ");
16722
16723
16724 #line 5517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16725 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
16726
16727
16728 #line default
16729 #line hidden
16730 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n");
16731
16732
16733 #line 5519 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16734
16735
16736 #line default
16737 #line hidden
16738 });
16739
16740 #line 5519 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16741 }
16742 #line default
16743 #line hidden
16744
16745
16746 #line 5521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16747 public RazorEngine.Templating.TemplateWriter RenderMobileHeaderNavigationTrigger() {
16748 #line default
16749 #line hidden
16750 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16751
16752 #line 5521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16753
16754
16755
16756 #line default
16757 #line hidden
16758 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <label");
16759
16760 WriteLiteralTo(__razor_helper_writer, " for=\"MobileNavTrigger\"");
16761
16762 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-nav-trigger-button\"");
16763
16764 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </li>\r\n");
16765
16766
16767 #line 5525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16768
16769
16770 #line default
16771 #line hidden
16772 });
16773
16774 #line 5525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16775 }
16776 #line default
16777 #line hidden
16778
16779
16780 #line 5527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16781 public RazorEngine.Templating.TemplateWriter RenderMobileHeaderLogo() {
16782 #line default
16783 #line hidden
16784 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16785
16786 #line 5527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16787
16788 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderLogo").OrderBy(item => item.SortId).ToList();
16789
16790 var mobileTopLayout = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetString("Design")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
16791 //string centeredLogo = mobileTopLayout != "nav-right" ? "u-ta-center" : "";
16792 string firstPageId = Model.Area.FirstActivePage.ID.ToString();
16793 string businessName = Model.Area.Item.GetItem("Settings").GetString("BusinessName");
16794
16795 string mobileLogo = "/Files/Images/logo-dynamicweb.png";
16796 if (Model.Area.Item.GetItem("Layout").GetItem("MobileTop") != null && Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetFile("Logo") != null)
16797 {
16798 mobileLogo = Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetFile("Logo").PathUrlEncoded;
16799 }
16800
16801 if (Path.GetExtension(mobileLogo).ToLower() != ".svg")
16802 {
16803 mobileLogo = "/Admin/Public/GetImage.ashx?height=40&crop=5&Compression=75&image=" + mobileLogo;
16804 }
16805 else
16806 {
16807 mobileLogo = HttpUtility.UrlDecode(mobileLogo);
16808 }
16809
16810 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
16811 var DesignFolder = Pageview.Layout.Design.Name;
16812
16813
16814
16815 #line default
16816 #line hidden
16817 WriteLiteralTo(__razor_helper_writer, " <div");
16818
16819 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__logo hidden\"");
16820
16821 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
16822
16823 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 264942), Tuple.Create("\"", 264978)
16824 , Tuple.Create(Tuple.Create("", 264949), Tuple.Create("/Default.aspx?ID=", 264949), true)
16825
16826 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16827 , Tuple.Create(Tuple.Create("", 264966), Tuple.Create<System.Object, System.Int32>(firstPageId
16828
16829 #line default
16830 #line hidden
16831 , 264966), false)
16832 );
16833
16834 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__logo__item\"");
16835
16836 WriteLiteralTo(__razor_helper_writer, "> <img");
16837
16838 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 265012), Tuple.Create("\"", 265029)
16839
16840 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16841 , Tuple.Create(Tuple.Create("", 265018), Tuple.Create<System.Object, System.Int32>(mobileLogo
16842
16843 #line default
16844 #line hidden
16845 , 265018), false)
16846 );
16847
16848 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 265030), Tuple.Create("\"", 265049)
16849
16850 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16851 , Tuple.Create(Tuple.Create("", 265036), Tuple.Create<System.Object, System.Int32>(businessName
16852
16853 #line default
16854 #line hidden
16855 , 265036), false)
16856 );
16857
16858 WriteLiteralTo(__razor_helper_writer, "/> </a>\r\n \r\n ");
16859
16860 WriteLiteralTo(__razor_helper_writer, "\r\n ");
16861
16862 WriteLiteralTo(__razor_helper_writer, "\r\n ");
16863
16864 WriteLiteralTo(__razor_helper_writer, "\r\n ");
16865
16866 WriteLiteralTo(__razor_helper_writer, "\r\n ");
16867
16868 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
16869
16870
16871 #line 5562 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16872
16873
16874
16875
16876 #line default
16877 #line hidden
16878
16879 #line 5564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16880 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
16881
16882
16883 #line default
16884 #line hidden
16885
16886 #line 5564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16887
16888
16889
16890 #line default
16891 #line hidden
16892 });
16893
16894 #line 5565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16895 }
16896 #line default
16897 #line hidden
16898
16899
16900 #line 5567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16901 public RazorEngine.Templating.TemplateWriter RenderMobileContactContainer() {
16902 #line default
16903 #line hidden
16904 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
16905
16906 #line 5567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16907
16908 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
16909 var DesignFolder = Pageview.Layout.Design.Name;
16910
16911
16912 #line default
16913 #line hidden
16914 WriteLiteralTo(__razor_helper_writer, " <div");
16915
16916 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-contact__container hidden\"");
16917
16918 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
16919
16920 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-contact__content\"");
16921
16922 WriteLiteralTo(__razor_helper_writer, ">\r\n");
16923
16924
16925 #line 5572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16926
16927
16928 #line default
16929 #line hidden
16930
16931 #line 5572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16932 if (!string.IsNullOrEmpty(areaInfo.ContactNumber))
16933 {
16934
16935
16936 #line default
16937 #line hidden
16938 WriteLiteralTo(__razor_helper_writer, " <a");
16939
16940 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 265793), Tuple.Create("\"", 265827)
16941 , Tuple.Create(Tuple.Create("", 265800), Tuple.Create("tel:", 265800), true)
16942
16943 #line 5574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16944 , Tuple.Create(Tuple.Create("", 265804), Tuple.Create<System.Object, System.Int32>(areaInfo.ContactNumber
16945
16946 #line default
16947 #line hidden
16948 , 265804), false)
16949 );
16950
16951 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--dark\"");
16952
16953 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
16954
16955 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 265865), Tuple.Create("\"", 265932)
16956 , Tuple.Create(Tuple.Create("", 265871), Tuple.Create("/Files/Templates/Designs/", 265871), true)
16957
16958 #line 5574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16959 , Tuple.Create(Tuple.Create("", 265896), Tuple.Create<System.Object, System.Int32>(DesignFolder
16960
16961 #line default
16962 #line hidden
16963 , 265896), false)
16964 , Tuple.Create(Tuple.Create("", 265909), Tuple.Create("/icons/default/call.svg", 265909), true)
16965 );
16966
16967 WriteLiteralTo(__razor_helper_writer, "></ion-icon><span>");
16968
16969
16970 #line 5574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16971 WriteTo(__razor_helper_writer, areaInfo.ContactNumber);
16972
16973
16974 #line default
16975 #line hidden
16976 WriteLiteralTo(__razor_helper_writer, "</span></a> \r\n");
16977
16978
16979 #line 5575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16980 }
16981
16982
16983 #line default
16984 #line hidden
16985 WriteLiteralTo(__razor_helper_writer, " ");
16986
16987
16988 #line 5576 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
16989 if (!string.IsNullOrEmpty(areaInfo.ContactEmail))
16990 {
16991
16992
16993 #line default
16994 #line hidden
16995 WriteLiteralTo(__razor_helper_writer, " <a");
16996
16997 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 266103), Tuple.Create("\"", 266139)
16998 , Tuple.Create(Tuple.Create("", 266110), Tuple.Create("mailto:", 266110), true)
16999
17000 #line 5578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17001 , Tuple.Create(Tuple.Create("", 266117), Tuple.Create<System.Object, System.Int32>(areaInfo.ContactEmail
17002
17003 #line default
17004 #line hidden
17005 , 266117), false)
17006 );
17007
17008 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--dark\"");
17009
17010 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17011
17012 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 266177), Tuple.Create("\"", 266244)
17013 , Tuple.Create(Tuple.Create("", 266183), Tuple.Create("/Files/Templates/Designs/", 266183), true)
17014
17015 #line 5578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17016 , Tuple.Create(Tuple.Create("", 266208), Tuple.Create<System.Object, System.Int32>(DesignFolder
17017
17018 #line default
17019 #line hidden
17020 , 266208), false)
17021 , Tuple.Create(Tuple.Create("", 266221), Tuple.Create("/icons/default/mail.svg", 266221), true)
17022 );
17023
17024 WriteLiteralTo(__razor_helper_writer, "></ion-icon><span>");
17025
17026
17027 #line 5578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17028 WriteTo(__razor_helper_writer, areaInfo.ContactEmail);
17029
17030
17031 #line default
17032 #line hidden
17033 WriteLiteralTo(__razor_helper_writer, "</span></a> \r\n");
17034
17035
17036 #line 5579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17037 }
17038
17039
17040 #line default
17041 #line hidden
17042 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div> \r\n");
17043
17044
17045 #line 5582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17046
17047
17048 #line default
17049 #line hidden
17050 });
17051
17052 #line 5582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17053 }
17054 #line default
17055 #line hidden
17056
17057
17058 #line 5584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17059 public RazorEngine.Templating.TemplateWriter RenderMobileTopActions() {
17060 #line default
17061 #line hidden
17062 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17063
17064 #line 5584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17065
17066 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderActions").OrderBy(item => item.SortId).ToList();
17067
17068
17069
17070 #line default
17071 #line hidden
17072 WriteLiteralTo(__razor_helper_writer, " <div");
17073
17074 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__actions hidden\"");
17075
17076 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
17077
17078 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__actions__content\"");
17079
17080 WriteLiteralTo(__razor_helper_writer, ">\r\n");
17081
17082 WriteLiteralTo(__razor_helper_writer, " ");
17083
17084
17085 #line 5589 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17086 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
17087
17088
17089 #line default
17090 #line hidden
17091 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n </div>\r\n");
17092
17093
17094 #line 5593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17095
17096
17097 #line default
17098 #line hidden
17099 });
17100
17101 #line 5593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17102 }
17103 #line default
17104 #line hidden
17105
17106
17107 #line 5596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17108 public RazorEngine.Templating.TemplateWriter RenderMobileTopUser() {
17109 #line default
17110 #line hidden
17111 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17112
17113 #line 5596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17114
17115
17116 bool navigationItemsHideSignIn = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSignIn");
17117 string userInitials = "";
17118 int pageId = Model.TopPage.ID;
17119 int createAccountPageId = GetPageIdByNavigationTag("CreateAccount");
17120 int myDashboardPageId = GetPageIdByNavigationTag("CustomerDashboard");
17121 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
17122 int myOrdersPageId = GetPageIdByNavigationTag("CustomerOrders");
17123 int myFavoritesPageId = GetPageIdByNavigationTag("CustomerFavorites");
17124 int mySavedCardsPageId = GetPageIdByNavigationTag("SavedCards");
17125 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
17126 bool hideCreateAccountLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideCreateAccount");
17127 bool hideMyProfileLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideProfile");
17128 bool hideMyOrdersLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideOrders");
17129 bool hideMySavedCardsLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideSavedCards");
17130 bool hideMyFavoritesLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideFavorites");
17131 bool hideForgotPasswordLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideForgotPasswordLink");
17132
17133 string linkStart = "/Default.aspx?ID=";
17134 if (Model.CurrentUser.ID <= 0)
17135 {
17136 linkStart += signInProfilePageId + "&RedirectPageId=";
17137 }
17138
17139 string forgotPasswordPageLink = "/Default.aspx?ID=" + signInProfilePageId + "&LoginAction=Recovery";
17140 string myProfilePageLink = linkStart + myProfilePageId;
17141 string myOrdersPageLink = linkStart + myOrdersPageId;
17142 string myFavoritesPageLink = linkStart + myFavoritesPageId;
17143 string mySavedCardsPageLink = linkStart + mySavedCardsPageId;
17144
17145 string profileIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon") != null ? Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue : "fa fa-user";
17146 string favoritesIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon").SelectedValue : "fa fa-star";
17147
17148 if (Model.CurrentUser.ID != 0)
17149 {
17150 if (!String.IsNullOrEmpty(Model.CurrentUser.Name))
17151 {
17152 string[] names = Model.CurrentUser.Name.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
17153 userInitials += Model.CurrentUser.Name.Substring(0, 1);
17154
17155 if (names.Length > 1)
17156 {
17157 userInitials += names[names.Length - 1].Substring(0, 1);
17158 }
17159 }
17160 else
17161 {
17162 userInitials += Model.CurrentUser.FirstName != null && Model.CurrentUser.FirstName != "" ? Model.CurrentUser.FirstName.Substring(0, 1) : "";
17163 userInitials += Model.CurrentUser.LastName != null && Model.CurrentUser.LastName != "" ? Model.CurrentUser.LastName.Substring(0, 1) : "";
17164 userInitials += userInitials.Length == 1 && Model.CurrentUser.FirstName != null && Model.CurrentUser.FirstName.Length > 1 ? Model.CurrentUser.FirstName.Substring(1, 2) : "";
17165 userInitials += userInitials == "" && Model.CurrentUser.Email != null && Model.CurrentUser.Email.Length > 1 ? Model.CurrentUser.Email.Substring(0, 2) : "";
17166 userInitials += userInitials == "" ? Model.CurrentUser.UserName.Substring(0, 2) : "";
17167 }
17168 }
17169
17170 string topLayout = Model.Area.Item.GetItem("Layout").GetItem("Header").GetList("TopLayout") != null ? Model.Area.Item.GetItem("Layout").GetItem("Header").GetList("TopLayout").SelectedValue : "normal";
17171 string menuLinkClass = topLayout != "normal" ? "menu__link menu__link--icon" : "header-menu__link header-menu__link--icon";
17172
17173
17174
17175 #line default
17176 #line hidden
17177 WriteLiteralTo(__razor_helper_writer, " <li");
17178
17179 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-user\"");
17180
17181 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
17182
17183 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 270802), Tuple.Create("\"", 270824)
17184
17185 #line 5656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17186 , Tuple.Create(Tuple.Create("", 270810), Tuple.Create<System.Object, System.Int32>(menuLinkClass
17187
17188 #line default
17189 #line hidden
17190 , 270810), false)
17191 );
17192
17193 WriteLiteralTo(__razor_helper_writer, ">\r\n");
17194
17195
17196 #line 5657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17197
17198
17199 #line default
17200 #line hidden
17201
17202 #line 5657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17203 if (Model.CurrentUser.ID <= 0)
17204 {
17205
17206
17207 #line default
17208 #line hidden
17209 WriteLiteralTo(__razor_helper_writer, " <label");
17210
17211 WriteLiteralTo(__razor_helper_writer, " for=\"SignInModalTrigger\"");
17212
17213 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17214
17215 WriteLiteralTo(__razor_helper_writer, " src=\"/Files/Templates/Designs/Wizaris/icons/default/account.svg\"");
17216
17217 WriteLiteralTo(__razor_helper_writer, "></ion-icon></label>\r\n");
17218
17219
17220 #line 5660 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17221 }
17222 else
17223 {
17224
17225
17226 #line default
17227 #line hidden
17228 WriteLiteralTo(__razor_helper_writer, " <a");
17229
17230 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 271098), Tuple.Create("\"", 271140)
17231 , Tuple.Create(Tuple.Create("", 271105), Tuple.Create("/default.aspx?ID=", 271105), true)
17232
17233 #line 5663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17234 , Tuple.Create(Tuple.Create("", 271122), Tuple.Create<System.Object, System.Int32>(myDashboardPageId
17235
17236 #line default
17237 #line hidden
17238 , 271122), false)
17239 );
17240
17241 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-inherit\"");
17242
17243 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17244
17245 WriteLiteralTo(__razor_helper_writer, " src=\"/Files/Templates/Designs/Wizaris/icons/default/account.svg\"");
17246
17247 WriteLiteralTo(__razor_helper_writer, "></ion-icon></a>\r\n");
17248
17249
17250 #line 5664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17251 }
17252
17253
17254 #line default
17255 #line hidden
17256 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </li>\r\n");
17257
17258
17259 #line 5667 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17260
17261
17262 #line default
17263 #line hidden
17264 });
17265
17266 #line 5667 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17267 }
17268 #line default
17269 #line hidden
17270
17271
17272 #line 5669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17273 public RazorEngine.Templating.TemplateWriter RenderMobileTopSearch() {
17274 #line default
17275 #line hidden
17276 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17277
17278 #line 5669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17279
17280
17281
17282 #line default
17283 #line hidden
17284 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <label");
17285
17286 WriteLiteralTo(__razor_helper_writer, " for=\"MobileSearchTrigger\"");
17287
17288 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
17289
17290 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 271407), Tuple.Create("\"", 271516)
17291
17292 #line 5672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17293 , Tuple.Create(Tuple.Create("", 271415), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue
17294
17295 #line default
17296 #line hidden
17297 , 271415), false)
17298 , Tuple.Create(Tuple.Create(" ", 271508), Tuple.Create("fa-1_5x", 271509), true)
17299 );
17300
17301 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </label>\r\n </li>\r\n");
17302
17303
17304 #line 5675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17305
17306
17307 #line default
17308 #line hidden
17309 });
17310
17311 #line 5675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17312 }
17313 #line default
17314 #line hidden
17315
17316
17317 #line 5677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17318 public RazorEngine.Templating.TemplateWriter RenderMobileMiniCart() {
17319 #line default
17320 #line hidden
17321 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17322
17323 #line 5677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17324
17325 int miniCartFeedPageId = GetPageIdByNavigationTag("MiniCartFeed");
17326 int cartPageId = GetPageIdByNavigationTag("CartPage");
17327 double cartProductsCount = Model.Cart.TotalProductsCount;
17328 var DesignFolder = Pageview.Layout.Design.Name;
17329
17330
17331
17332 #line default
17333 #line hidden
17334 WriteLiteralTo(__razor_helper_writer, " <button");
17335
17336 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__minicart__trigger btn-icon\"");
17337
17338 WriteLiteralTo(__razor_helper_writer, " data-role=\"minicart-trigger\"");
17339
17340 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
17341
17342 WriteLiteralTo(__razor_helper_writer, " id=\"cartCounterMobile\"");
17343
17344 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__counter__content\"");
17345
17346 WriteLiteralTo(__razor_helper_writer, " data-template=\"MiniCartCounterContent\"");
17347
17348 WriteLiteralTo(__razor_helper_writer, " data-json=\"/Default.aspx?ID=3352\"");
17349
17350 WriteLiteralTo(__razor_helper_writer, " ></div>\r\n </button>\r\n");
17351
17352
17353 #line 5686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17354
17355
17356
17357 #line default
17358 #line hidden
17359 });
17360
17361 #line 5687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17362 }
17363 #line default
17364 #line hidden
17365
17366
17367 #line 5689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17368 public RazorEngine.Templating.TemplateWriter RenderMobileTopSearchBar()
17369 {
17370 #line default
17371 #line hidden
17372 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17373
17374 #line 5690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17375
17376 string searchFeedId = "";
17377 string searchSecondFeedId = "";
17378 int groupsFeedId;
17379 int productsPageId = GetPageIdByNavigationTag("ProductsPage");
17380 string contentSearchPageLink = GetPageIdByNavigationTag("ContentSearchResults") + "&Areaid=" + Model.Area.ID;
17381 string resultPageLink;
17382 string searchPlaceholder;
17383 string searchType = "product-search";
17384 string searchTemplate;
17385 string searchContentTemplate = "";
17386 string searchValue = HttpContext.Current.Request.QueryString.Get("Search") ?? "";
17387 bool showGroups = true;
17388
17389 if (Model.Area.Item.GetItem("Layout").GetList("TopSearch").SelectedValue == "contentSearch")
17390 {
17391 searchFeedId = GetPageIdByNavigationTag("ContentSearchFeed") + "&Areaid=" + Model.Area.ID + "&pagesOnly=true";
17392 resultPageLink = contentSearchPageLink;
17393 searchPlaceholder = Translate("Search page");
17394 groupsFeedId = 0;
17395 searchType = "content-search";
17396 searchTemplate = "SearchPagesTemplate";
17397 showGroups = false;
17398 }
17399 else if (Model.Area.Item.GetItem("Layout").GetList("TopSearch").SelectedValue == "combinedSearch")
17400 {
17401 searchFeedId = productsPageId + "&feed=true";
17402 searchSecondFeedId = GetPageIdByNavigationTag("ContentSearchFeed") + "&Areaid=" + Model.Area.ID + "&pagesOnly=true";
17403 resultPageLink = Converter.ToString(productsPageId);
17404 searchPlaceholder = Translate("Search products or pages");
17405 groupsFeedId = GetPageIdByNavigationTag("ProductGroupsFeed");
17406 searchType = "combined-search";
17407 searchTemplate = "SearchProductsTemplateWrap";
17408 searchContentTemplate = "SearchPagesTemplateWrap";
17409 showGroups = Model.Area.Item.GetItem("Layout").GetBoolean("ShowGroupsSelector");
17410 }
17411 else
17412 {
17413 resultPageLink = Converter.ToString(productsPageId);
17414 searchFeedId = productsPageId + "&feed=true";
17415 groupsFeedId = GetPageIdByNavigationTag("ProductGroupsFeed");
17416 searchPlaceholder = Translate("Search products");
17417 searchTemplate = "SearchProductsTemplate";
17418 searchType = "product-search";
17419 showGroups = Model.Area.Item.GetItem("Layout").GetBoolean("ShowGroupsSelector");
17420 }
17421
17422
17423
17424
17425
17426 #line default
17427 #line hidden
17428 WriteLiteralTo(__razor_helper_writer, " <div");
17429
17430 WriteLiteralTo(__razor_helper_writer, " class=\"search S\"");
17431
17432 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
17433
17434 WriteLiteralTo(__razor_helper_writer, "\r\n <input");
17435
17436 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
17437
17438 WriteLiteralTo(__razor_helper_writer, " class=\"js-typeahead-search-field u-w160px u-no-margin\"");
17439
17440 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 274854), Tuple.Create("\"", 274886)
17441
17442 #line 5742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17443 , Tuple.Create(Tuple.Create("", 274868), Tuple.Create<System.Object, System.Int32>(searchPlaceholder
17444
17445 #line default
17446 #line hidden
17447 , 274868), false)
17448 );
17449
17450 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 274887), Tuple.Create("\"", 274907)
17451
17452 #line 5742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17453 , Tuple.Create(Tuple.Create("", 274895), Tuple.Create<System.Object, System.Int32>(searchValue
17454
17455 #line default
17456 #line hidden
17457 , 274895), false)
17458 );
17459
17460 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
17461
17462 WriteLiteralTo(__razor_helper_writer, "\r\n <button");
17463
17464 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
17465
17466 WriteLiteralTo(__razor_helper_writer, "><i");
17467
17468 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 275833), Tuple.Create("\"", 275934)
17469
17470 #line 5754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17471 , Tuple.Create(Tuple.Create("", 275841), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue
17472
17473 #line default
17474 #line hidden
17475 , 275841), false)
17476 );
17477
17478 WriteLiteralTo(__razor_helper_writer, "></i></button>\r\n ");
17479
17480 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
17481
17482 WriteLiteralTo(__razor_helper_writer, " <div");
17483
17484 WriteLiteralTo(__razor_helper_writer, " class=\"nav--header C\"");
17485
17486 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul");
17487
17488 WriteLiteralTo(__razor_helper_writer, " class=\"menu\"");
17489
17490 WriteLiteralTo(__razor_helper_writer, ">\r\n <li>\r\n <label");
17491
17492 WriteLiteralTo(__razor_helper_writer, " for=\"MobileSearchTrigger\"");
17493
17494 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
17495
17496 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-times fa-1_5x\"");
17497
17498 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </label>\r\n </li>\r\n </ul>\r\n </div>\r\n");
17499
17500
17501 #line 5766 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17502
17503
17504 #line default
17505 #line hidden
17506 });
17507
17508 #line 5766 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17509 }
17510 #line default
17511 #line hidden
17512
17513
17514 #line 5768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17515 public RazorEngine.Templating.TemplateWriter RenderMiniCartCounterContentRefactored()
17516 {
17517 #line default
17518 #line hidden
17519 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17520
17521 #line 5769 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17522
17523 var DesignFolder = Pageview.Layout.Design.Name;
17524 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
17525
17526
17527 #line default
17528 #line hidden
17529 WriteLiteralTo(__razor_helper_writer, " <script");
17530
17531 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartCounterContent\"");
17532
17533 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
17534
17535 WriteLiteralTo(__razor_helper_writer, ">\r\n {{#.}}\r\n {{#ifCond numberofproducts \'>\' 0}} \r\n");
17536
17537 WriteLiteralTo(__razor_helper_writer, " ");
17538
17539
17540 #line 5775 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17541 WriteTo(__razor_helper_writer, RenderInlineSvg("default","cart-on"));
17542
17543
17544 #line default
17545 #line hidden
17546 WriteLiteralTo(__razor_helper_writer, "\r\n {{else}}\r\n");
17547
17548 WriteLiteralTo(__razor_helper_writer, " ");
17549
17550
17551 #line 5777 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17552 WriteTo(__razor_helper_writer, RenderInlineSvg("default","cart"));
17553
17554
17555 #line default
17556 #line hidden
17557 WriteLiteralTo(__razor_helper_writer, "\r\n {{/ifCond}}\r\n \r\n {{/.}}\r\n </script>\r\n");
17558
17559
17560 #line 5782 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17561
17562
17563 #line default
17564 #line hidden
17565 });
17566
17567 #line 5782 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17568 }
17569 #line default
17570 #line hidden
17571
17572
17573 #line 5784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17574 public RazorEngine.Templating.TemplateWriter RenderMobileHamburger() {
17575 #line default
17576 #line hidden
17577 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17578
17579 #line 5784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17580
17581 var DesignFolder = Pageview.Layout.Design.Name;
17582
17583
17584 #line default
17585 #line hidden
17586
17587 #line 5786 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17588
17589
17590
17591 #line default
17592 #line hidden
17593
17594 #line 5787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17595
17596
17597
17598 #line default
17599 #line hidden
17600
17601 #line 5788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17602
17603
17604
17605 #line default
17606 #line hidden
17607
17608 #line 5789 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17609
17610
17611
17612 #line default
17613 #line hidden
17614
17615 #line 5790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17616
17617
17618
17619 #line default
17620 #line hidden
17621
17622 #line 5791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17623
17624
17625
17626 #line default
17627 #line hidden
17628
17629 #line 5792 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17630
17631
17632
17633 #line default
17634 #line hidden
17635 WriteLiteralTo(__razor_helper_writer, " <button");
17636
17637 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
17638
17639 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__navigation__trigger btn-icon\"");
17640
17641 WriteLiteralTo(__razor_helper_writer, " data-role=\"open-mobile-menu\"");
17642
17643 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open menu\"");
17644
17645 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17646
17647 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 277297), Tuple.Create("\"", 277364)
17648 , Tuple.Create(Tuple.Create("", 277303), Tuple.Create("/Files/Templates/Designs/", 277303), true)
17649
17650 #line 5793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17651 , Tuple.Create(Tuple.Create("", 277328), Tuple.Create<System.Object, System.Int32>(DesignFolder
17652
17653 #line default
17654 #line hidden
17655 , 277328), false)
17656 , Tuple.Create(Tuple.Create("", 277341), Tuple.Create("/icons/default/menu.svg", 277341), true)
17657 );
17658
17659 WriteLiteralTo(__razor_helper_writer, "></ion-icon></button>\r\n");
17660
17661
17662 #line 5794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17663
17664
17665 #line default
17666 #line hidden
17667 });
17668
17669 #line 5794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17670 }
17671 #line default
17672 #line hidden
17673
17674
17675 #line 5797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17676 public RazorEngine.Templating.TemplateWriter RenderMobileSearch() {
17677 #line default
17678 #line hidden
17679 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17680
17681 #line 5797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17682
17683 var DesignFolder = Pageview.Layout.Design.Name;
17684
17685
17686 #line default
17687 #line hidden
17688 WriteLiteralTo(__razor_helper_writer, " <button");
17689
17690 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__search__trigger btn-icon\"");
17691
17692 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
17693
17694 WriteLiteralTo(__razor_helper_writer, " data-role=\"open-mobile-search\"");
17695
17696 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open search\"");
17697
17698 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17699
17700 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 277612), Tuple.Create("\"", 277681)
17701 , Tuple.Create(Tuple.Create("", 277618), Tuple.Create("/Files/Templates/Designs/", 277618), true)
17702
17703 #line 5799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17704 , Tuple.Create(Tuple.Create("", 277643), Tuple.Create<System.Object, System.Int32>(DesignFolder
17705
17706 #line default
17707 #line hidden
17708 , 277643), false)
17709 , Tuple.Create(Tuple.Create("", 277656), Tuple.Create("/icons/default/search.svg", 277656), true)
17710 );
17711
17712 WriteLiteralTo(__razor_helper_writer, "></ion-icon></button>\r\n");
17713
17714
17715 #line 5800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17716
17717
17718 #line default
17719 #line hidden
17720 });
17721
17722 #line 5800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17723 }
17724 #line default
17725 #line hidden
17726
17727
17728 #line 5802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17729 public RazorEngine.Templating.TemplateWriter RenderListItemMobile(string link, string text, string icon = null, string cssClass = "") {
17730 #line default
17731 #line hidden
17732 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17733
17734 #line 5802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17735
17736
17737
17738 #line default
17739 #line hidden
17740 WriteLiteralTo(__razor_helper_writer, " <div");
17741
17742 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
17743
17744 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
17745
17746 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 277844), Tuple.Create("\"", 277856)
17747
17748 #line 5804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17749 , Tuple.Create(Tuple.Create("", 277851), Tuple.Create<System.Object, System.Int32>(link
17750
17751 #line default
17752 #line hidden
17753 , 277851), false)
17754 );
17755
17756 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--brand\"");
17757
17758 WriteLiteralTo(__razor_helper_writer, ">\r\n");
17759
17760
17761 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17762
17763
17764 #line default
17765 #line hidden
17766
17767 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17768 if (icon.HasValue()){
17769
17770 #line default
17771 #line hidden
17772 WriteLiteralTo(__razor_helper_writer, "<ion-icon");
17773
17774 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 277931), Tuple.Create("\"", 277942)
17775
17776 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17777 , Tuple.Create(Tuple.Create("", 277937), Tuple.Create<System.Object, System.Int32>(icon
17778
17779 #line default
17780 #line hidden
17781 , 277937), false)
17782 );
17783
17784 WriteLiteralTo(__razor_helper_writer, "></ion-icon>");
17785
17786
17787 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17788 }
17789
17790 #line default
17791 #line hidden
17792 WriteLiteralTo(__razor_helper_writer, "<span>");
17793
17794
17795 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17796 WriteTo(__razor_helper_writer, text);
17797
17798
17799 #line default
17800 #line hidden
17801 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </div>\r\n");
17802
17803
17804 #line 5808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17805
17806
17807 #line default
17808 #line hidden
17809 });
17810
17811 #line 5808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17812 }
17813 #line default
17814 #line hidden
17815
17816
17817 #line 5810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17818 public RazorEngine.Templating.TemplateWriter RenderMobileUser() {
17819 #line default
17820 #line hidden
17821 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
17822
17823 #line 5810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17824
17825 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
17826 var user = User.GetCurrentExtranetUser();
17827 var DesignFolder = Pageview.Layout.Design.Name;
17828
17829
17830 if (!areaInfo.NavigationItemsHideSignIn)
17831 {
17832
17833 if (user == null)
17834 {
17835
17836
17837
17838 #line default
17839 #line hidden
17840 WriteLiteralTo(__razor_helper_writer, " <div");
17841
17842 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__profile\"");
17843
17844 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
17845
17846 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
17847
17848 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon mobile__profile__trigger\"");
17849
17850 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open profile action menu\"");
17851
17852 WriteLiteralTo(__razor_helper_writer, ">\r\n <ion-icon");
17853
17854 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 278485), Tuple.Create("\"", 278555)
17855 , Tuple.Create(Tuple.Create("", 278491), Tuple.Create("/Files/Templates/Designs/", 278491), true)
17856
17857 #line 5824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17858 , Tuple.Create(Tuple.Create("", 278516), Tuple.Create<System.Object, System.Int32>(DesignFolder
17859
17860 #line default
17861 #line hidden
17862 , 278516), false)
17863 , Tuple.Create(Tuple.Create("", 278529), Tuple.Create("/icons/default/account.svg", 278529), true)
17864 );
17865
17866 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n <div");
17867
17868 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__profile__details\"");
17869
17870 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
17871
17872 WriteLiteralTo(__razor_helper_writer, " class=\"list\"");
17873
17874 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
17875
17876 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
17877
17878 WriteLiteralTo(__razor_helper_writer, "> <a");
17879
17880 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 278738), Tuple.Create("\"", 278794)
17881
17882 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17883 , Tuple.Create(Tuple.Create("", 278745), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
17884
17885 #line default
17886 #line hidden
17887 , 278745), false)
17888
17889 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17890 , Tuple.Create(Tuple.Create("", 278764), Tuple.Create<System.Object, System.Int32>(areaInfo.SignInProfilePage.ID
17891
17892 #line default
17893 #line hidden
17894 , 278764), false)
17895 );
17896
17897 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--brand header__profile__login btn-login\"");
17898
17899 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 278856), Tuple.Create("\"", 278902)
17900
17901 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17902 , Tuple.Create(Tuple.Create("", 278864), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LogIn)
17903
17904 #line default
17905 #line hidden
17906 , 278864), false)
17907 );
17908
17909 WriteLiteralTo(__razor_helper_writer, " data-tab=\"Login\"");
17910
17911 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17912
17913 WriteLiteralTo(__razor_helper_writer, " name=\"log-out-outline\"");
17914
17915 WriteLiteralTo(__razor_helper_writer, "></ion-icon><span>");
17916
17917
17918 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17919 WriteTo(__razor_helper_writer, Translate(Translations.Account.LogIn));
17920
17921
17922 #line default
17923 #line hidden
17924 WriteLiteralTo(__razor_helper_writer, "</span></a> </div>\r\n \r\n");
17925
17926
17927 #line 5830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17928
17929
17930 #line default
17931 #line hidden
17932
17933 #line 5830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17934 if (!areaInfo.HideCreateAccountLink)
17935
17936 {
17937
17938
17939 #line default
17940 #line hidden
17941 WriteLiteralTo(__razor_helper_writer, " <div");
17942
17943 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
17944
17945 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <a");
17946
17947 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 279280), Tuple.Create("\"", 279336)
17948
17949 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17950 , Tuple.Create(Tuple.Create("", 279287), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
17951
17952 #line default
17953 #line hidden
17954 , 279287), false)
17955
17956 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17957 , Tuple.Create(Tuple.Create("", 279306), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID
17958
17959 #line default
17960 #line hidden
17961 , 279306), false)
17962 );
17963
17964 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--accent btn-create-account\"");
17965
17966 WriteLiteralTo(__razor_helper_writer, " data-tab=\"CreateAccount\"");
17967
17968 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
17969
17970 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 279420), Tuple.Create("\"", 279494)
17971 , Tuple.Create(Tuple.Create("", 279426), Tuple.Create("/Files/Templates/Designs/", 279426), true)
17972
17973 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17974 , Tuple.Create(Tuple.Create("", 279451), Tuple.Create<System.Object, System.Int32>(DesignFolder
17975
17976 #line default
17977 #line hidden
17978 , 279451), false)
17979 , Tuple.Create(Tuple.Create("", 279464), Tuple.Create("/icons/default/account_add.svg", 279464), true)
17980 );
17981
17982 WriteLiteralTo(__razor_helper_writer, "></ion-icon><span>");
17983
17984
17985 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17986 WriteTo(__razor_helper_writer, Translate(Translations.Account.CreateAccount));
17987
17988
17989 #line default
17990 #line hidden
17991 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </div> \r\n");
17992
17993
17994 #line 5837 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
17995 }
17996
17997
17998 #line default
17999 #line hidden
18000 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div>\r\n " +
18001 " </div> \r\n");
18002
18003
18004 #line 5842 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18005 }
18006 else {
18007
18008
18009 #line default
18010 #line hidden
18011 WriteLiteralTo(__razor_helper_writer, " <div");
18012
18013 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__profile\"");
18014
18015 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
18016
18017 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
18018
18019 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon mobile__profile__trigger\"");
18020
18021 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open profile action menu\"");
18022
18023 WriteLiteralTo(__razor_helper_writer, ">\r\n <sup>");
18024
18025
18026 #line 5846 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18027 WriteTo(__razor_helper_writer, user.GetInitials());
18028
18029
18030 #line default
18031 #line hidden
18032 WriteLiteralTo(__razor_helper_writer, "</sup>\r\n <ion-icon");
18033
18034 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 280022), Tuple.Create("\"", 280092)
18035 , Tuple.Create(Tuple.Create("", 280028), Tuple.Create("/Files/Templates/Designs/", 280028), true)
18036
18037 #line 5847 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18038 , Tuple.Create(Tuple.Create("", 280053), Tuple.Create<System.Object, System.Int32>(DesignFolder
18039
18040 #line default
18041 #line hidden
18042 , 280053), false)
18043 , Tuple.Create(Tuple.Create("", 280066), Tuple.Create("/icons/default/account.svg", 280066), true)
18044 );
18045
18046 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n <div");
18047
18048 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__profile__details\"");
18049
18050 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
18051
18052 WriteLiteralTo(__razor_helper_writer, " class=\"list\"");
18053
18054 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
18055
18056 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
18057
18058 WriteLiteralTo(__razor_helper_writer, "> <a");
18059
18060 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 280275), Tuple.Create("\"", 280335)
18061 , Tuple.Create(Tuple.Create("", 280282), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 280282), true)
18062
18063 #line 5851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18064 , Tuple.Create(Tuple.Create("", 280319), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId
18065
18066 #line default
18067 #line hidden
18068 , 280319), false)
18069 );
18070
18071 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-border--dark mobile__profile__logout\"");
18072
18073 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 280389), Tuple.Create("\"", 280437)
18074
18075 #line 5851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18076 , Tuple.Create(Tuple.Create("", 280397), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.SignOut)
18077
18078 #line default
18079 #line hidden
18080 , 280397), false)
18081 );
18082
18083 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
18084
18085 WriteLiteralTo(__razor_helper_writer, " name=\"log-out-outline\"");
18086
18087 WriteLiteralTo(__razor_helper_writer, "></ion-icon><span>");
18088
18089
18090 #line 5851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18091 WriteTo(__razor_helper_writer, Translate(Translations.Account.SignOut));
18092
18093
18094 #line default
18095 #line hidden
18096 WriteLiteralTo(__razor_helper_writer, "</span></a> </div>\r\n\r\n");
18097
18098
18099 #line 5853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18100
18101
18102 #line default
18103 #line hidden
18104
18105 #line 5853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18106 if (!areaInfo.HideMyProfileLink)
18107 {
18108
18109
18110 #line default
18111 #line hidden
18112
18113 #line 5855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18114 WriteTo(__razor_helper_writer, RenderListItemMobile(areaInfo.LinkStart + areaInfo.CustomerDashboardPage.ID, Translate(Translations.Account.MyProfile), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/account.svg"));
18115
18116
18117 #line default
18118 #line hidden
18119
18120 #line 5855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18121
18122 }
18123
18124
18125 #line default
18126 #line hidden
18127 WriteLiteralTo(__razor_helper_writer, " ");
18128
18129
18130 #line 5857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18131 if (!areaInfo.HideMyOrdersLink)
18132 {
18133
18134
18135 #line default
18136 #line hidden
18137
18138 #line 5859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18139 WriteTo(__razor_helper_writer, RenderListItemMobile(areaInfo.LinkStart + areaInfo.CustomerOrdersPage.ID, Translate(Translations.Account.MyOrders), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/view-details.svg"));
18140
18141
18142 #line default
18143 #line hidden
18144
18145 #line 5859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18146
18147 }
18148
18149
18150 #line default
18151 #line hidden
18152 WriteLiteralTo(__razor_helper_writer, " ");
18153
18154
18155 #line 5861 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18156 if (!areaInfo.HideMyFavorites)
18157 {
18158
18159
18160 #line default
18161 #line hidden
18162
18163 #line 5863 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18164 WriteTo(__razor_helper_writer, RenderListItemMobile(areaInfo.LinkStart + areaInfo.MyFavoritesPage.ID, Translate(Translations.Account.MyFavorites), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/favorites-on.svg"));
18165
18166
18167 #line default
18168 #line hidden
18169
18170 #line 5863 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18171
18172 }
18173
18174
18175 #line default
18176 #line hidden
18177 WriteLiteralTo(__razor_helper_writer, " ");
18178
18179
18180 #line 5865 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18181 if (!areaInfo.HideMySavedCardsLink)
18182 {
18183
18184
18185 #line default
18186 #line hidden
18187
18188 #line 5867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18189 WriteTo(__razor_helper_writer, RenderListItemMobile(areaInfo.LinkStart + areaInfo.SavedCardsPage.ID, Translate(Translations.Account.MySavedCards), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/card.svg"));
18190
18191
18192 #line default
18193 #line hidden
18194
18195 #line 5867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18196
18197 }
18198
18199
18200 #line default
18201 #line hidden
18202 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n");
18203
18204
18205 #line 5875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18206
18207
18208
18209 }
18210 }
18211
18212
18213
18214 #line default
18215 #line hidden
18216 });
18217
18218 #line 5881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18219 }
18220 #line default
18221 #line hidden
18222
18223
18224 #line 5895 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18225
18226 BlocksPage mobileNavigationBlocksPage = BlocksPage.GetBlockPage("Master");
18227
18228 #line default
18229 #line hidden
18230
18231
18232 #line 6023 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18233 public RazorEngine.Templating.TemplateWriter MobileNavigation()
18234 {
18235 #line default
18236 #line hidden
18237 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18238
18239 #line 6024 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18240
18241 List<Block> subBlocks = this.mobileNavigationBlocksPage.GetBlockListById("MobileNavigation").OrderBy(item => item.SortId).ToList();
18242 string mobileTopDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design") != null ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
18243 string position = mobileTopDesign == "nav-left" || mobileTopDesign == "nav-search-left" ? "left" : "right";
18244
18245
18246
18247 #line default
18248 #line hidden
18249 WriteLiteralTo(__razor_helper_writer, " <!-- Trigger for mobile navigation -->\r\n");
18250
18251
18252 #line 6030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18253
18254
18255 #line default
18256 #line hidden
18257
18258 #line 6030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18259
18260
18261
18262
18263 #line default
18264 #line hidden
18265 WriteLiteralTo(__razor_helper_writer, " <!-- Mobile navigation -->\r\n");
18266
18267
18268 #line 6033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18269
18270
18271 #line default
18272 #line hidden
18273
18274 #line 6033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18275 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
18276
18277
18278 #line default
18279 #line hidden
18280
18281 #line 6033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18282
18283
18284
18285
18286 #line default
18287 #line hidden
18288
18289 #line 6035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18290
18291
18292
18293 #line default
18294 #line hidden
18295 });
18296
18297 #line 6036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18298 }
18299 #line default
18300 #line hidden
18301
18302
18303 #line 6038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18304 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationSignIn()
18305 {
18306 #line default
18307 #line hidden
18308 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18309
18310 #line 6039 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18311
18312 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
18313 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
18314 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
18315 string myProfilePageLink = linkStart + myProfilePageId;
18316 string userName = Model.CurrentUser.FirstName ?? "";
18317 userName += " " + (Model.CurrentUser.LastName ?? "");
18318 userName += userName == "" && Model.CurrentUser.UserName != null ? Model.CurrentUser.UserName : "";
18319
18320
18321
18322 #line default
18323 #line hidden
18324 WriteLiteralTo(__razor_helper_writer, " <ul");
18325
18326 WriteLiteralTo(__razor_helper_writer, " class=\"RenderMobileNavigationSignIn\"");
18327
18328 WriteLiteralTo(__razor_helper_writer, "> \r\n <li>\r\n <a");
18329
18330 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 288974), Tuple.Create("\"", 288999)
18331
18332 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18333 , Tuple.Create(Tuple.Create("", 288981), Tuple.Create<System.Object, System.Int32>(myProfilePageLink
18334
18335 #line default
18336 #line hidden
18337 , 288981), false)
18338 );
18339
18340 WriteLiteralTo(__razor_helper_writer, "><i");
18341
18342 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 289003), Tuple.Create("\"", 289134)
18343
18344 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18345 , Tuple.Create(Tuple.Create("", 289011), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue
18346
18347 #line default
18348 #line hidden
18349 , 289011), false)
18350 , Tuple.Create(Tuple.Create(" ", 289111), Tuple.Create("menu-mobile__link-icon", 289112), true)
18351 );
18352
18353 WriteLiteralTo(__razor_helper_writer, "></i> ");
18354
18355
18356 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18357 WriteTo(__razor_helper_writer, userName);
18358
18359
18360 #line default
18361 #line hidden
18362 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n </ul>\r\n");
18363
18364
18365 #line 6053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18366
18367
18368 #line default
18369 #line hidden
18370 });
18371
18372 #line 6053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18373 }
18374 #line default
18375 #line hidden
18376
18377
18378 #line 6055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18379 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationMenu()
18380 {
18381 #line default
18382 #line hidden
18383 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18384
18385 #line 6056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18386
18387 bool isSlidesDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetList("Design").SelectedValue == "Slides";
18388 string menuTemplate = isSlidesDesign ? "BaseMenuForMobileSlides.xslt" : "BaseMenuForMobileExpandable.xslt";
18389 string levels = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetString("Levels")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetString("Levels") : "4";
18390 bool renderPagesInToolBar = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("RenderPagesInToolBar");
18391 int startLevel = renderPagesInToolBar ? 1 : 0;
18392
18393 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
18394 var productsPageId = areaInfo.ProductsPage.ID;
18395 var mobileNavigationSettings = new Dynamicweb.Frontend.Navigation.NavigationSettings()
18396 {
18397 StartLevel = 1,
18398 StopLevel = 5,
18399 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
18400 };
18401 NavigationTreeViewModel mobileNavigation = GetNavigation(mobileNavigationSettings);
18402
18403
18404
18405
18406 #line default
18407 #line hidden
18408 WriteLiteralTo(__razor_helper_writer, " <div");
18409
18410 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__navigation p-3 hidden bg-light\"");
18411
18412 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
18413
18414 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
18415
18416 WriteLiteralTo(__razor_helper_writer, " aria-label=\"close mobile navigation\"");
18417
18418 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon icon-xl\"");
18419
18420 WriteLiteralTo(__razor_helper_writer, " data-role=\"close-mobile-menu\"");
18421
18422 WriteLiteralTo(__razor_helper_writer, ">\r\n");
18423
18424 WriteLiteralTo(__razor_helper_writer, " ");
18425
18426
18427 #line 6076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18428 WriteTo(__razor_helper_writer, RenderInlineSvg("default","close-raw"));
18429
18430
18431 #line default
18432 #line hidden
18433 WriteLiteralTo(__razor_helper_writer, "\r\n </button>\r\n\r\n");
18434
18435 WriteLiteralTo(__razor_helper_writer, " ");
18436
18437
18438 #line 6079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18439 WriteTo(__razor_helper_writer, ShowMobileNavigationTreeDropdown(mobileNavigation.Nodes.ToList(), 1));
18440
18441
18442 #line default
18443 #line hidden
18444 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n ");
18445
18446 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\r\n\r\n\r\n ");
18447
18448 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
18449
18450 WriteLiteralTo(__razor_helper_writer, " <div");
18451
18452 WriteLiteralTo(__razor_helper_writer, " class=\"mobile__navigation__backdrop hidden-md\"");
18453
18454 WriteLiteralTo(__razor_helper_writer, "></div>\r\n");
18455
18456
18457 #line 6097 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18458
18459
18460 #line default
18461 #line hidden
18462 });
18463
18464 #line 6097 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18465 }
18466 #line default
18467 #line hidden
18468
18469
18470 #line 6099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18471 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationActions()
18472 {
18473 #line default
18474 #line hidden
18475 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18476
18477 #line 6100 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18478
18479 List<Block> subBlocks = this.mobileNavigationBlocksPage.GetBlockListById("MobileNavigationActions").OrderBy(item => item.SortId).ToList(); ;
18480
18481
18482
18483 #line default
18484 #line hidden
18485
18486 #line 6103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18487
18488
18489
18490 #line default
18491 #line hidden
18492
18493 #line 6104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18494
18495
18496
18497 #line default
18498 #line hidden
18499
18500 #line 6105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18501
18502
18503
18504 #line default
18505 #line hidden
18506 });
18507
18508 #line 6106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18509 }
18510 #line default
18511 #line hidden
18512
18513
18514 #line 6108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18515 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationSignInAction()
18516 {
18517 #line default
18518 #line hidden
18519 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18520
18521 #line 6109 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18522
18523
18524
18525 #line default
18526 #line hidden
18527 WriteLiteralTo(__razor_helper_writer, " <li");
18528
18529 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__item\"");
18530
18531 WriteLiteralTo(__razor_helper_writer, ">\r\n <label");
18532
18533 WriteLiteralTo(__razor_helper_writer, " for=\"SignInModalTrigger\"");
18534
18535 WriteLiteralTo(__razor_helper_writer, " onclick=\"document.getElementById(\'MobileNavTrigger\').checked = false;\"");
18536
18537 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__link dw-mod menu-mobile__link--highlighted\"");
18538
18539 WriteLiteralTo(__razor_helper_writer, "><i");
18540
18541 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 291757), Tuple.Create("\"", 291888)
18542
18543 #line 6111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18544 , Tuple.Create(Tuple.Create("", 291765), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue
18545
18546 #line default
18547 #line hidden
18548 , 291765), false)
18549 , Tuple.Create(Tuple.Create(" ", 291865), Tuple.Create("menu-mobile__link-icon", 291866), true)
18550 );
18551
18552 WriteLiteralTo(__razor_helper_writer, "></i> ");
18553
18554
18555 #line 6111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18556 WriteTo(__razor_helper_writer, Translate("Sign in"));
18557
18558
18559 #line default
18560 #line hidden
18561 WriteLiteralTo(__razor_helper_writer, "</label>\r\n </li>\r\n");
18562
18563
18564 #line 6113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18565
18566
18567 #line default
18568 #line hidden
18569 });
18570
18571 #line 6113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18572 }
18573 #line default
18574 #line hidden
18575
18576
18577 #line 6115 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18578 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationCreateAccountAction()
18579 {
18580 #line default
18581 #line hidden
18582 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18583
18584 #line 6116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18585
18586 int createAccountPageId = GetPageIdByNavigationTag("CreateAccount");
18587
18588
18589
18590 #line default
18591 #line hidden
18592 WriteLiteralTo(__razor_helper_writer, " <li");
18593
18594 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__item\"");
18595
18596 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
18597
18598 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 292120), Tuple.Create("\"", 292164)
18599 , Tuple.Create(Tuple.Create("", 292127), Tuple.Create("/Default.aspx?ID=", 292127), true)
18600
18601 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18602 , Tuple.Create(Tuple.Create("", 292144), Tuple.Create<System.Object, System.Int32>(createAccountPageId
18603
18604 #line default
18605 #line hidden
18606 , 292144), false)
18607 );
18608
18609 WriteLiteralTo(__razor_helper_writer, "><i");
18610
18611 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 292168), Tuple.Create("\"", 292299)
18612
18613 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18614 , Tuple.Create(Tuple.Create("", 292176), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue
18615
18616 #line default
18617 #line hidden
18618 , 292176), false)
18619 , Tuple.Create(Tuple.Create(" ", 292276), Tuple.Create("menu-mobile__link-icon", 292277), true)
18620 );
18621
18622 WriteLiteralTo(__razor_helper_writer, "></i> ");
18623
18624
18625 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18626 WriteTo(__razor_helper_writer, Translate("Create account"));
18627
18628
18629 #line default
18630 #line hidden
18631 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18632
18633
18634 #line 6122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18635
18636
18637 #line default
18638 #line hidden
18639 });
18640
18641 #line 6122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18642 }
18643 #line default
18644 #line hidden
18645
18646
18647 #line 6124 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18648 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationProfileAction()
18649 {
18650 #line default
18651 #line hidden
18652 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18653
18654 #line 6125 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18655
18656 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
18657 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
18658 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
18659 string myProfilePageLink = linkStart + myProfilePageId;
18660
18661
18662
18663 #line default
18664 #line hidden
18665 WriteLiteralTo(__razor_helper_writer, " <li");
18666
18667 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__item\"");
18668
18669 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
18670
18671 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 292796), Tuple.Create("\"", 292821)
18672
18673 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18674 , Tuple.Create(Tuple.Create("", 292803), Tuple.Create<System.Object, System.Int32>(myProfilePageLink
18675
18676 #line default
18677 #line hidden
18678 , 292803), false)
18679 );
18680
18681 WriteLiteralTo(__razor_helper_writer, "><i");
18682
18683 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 292825), Tuple.Create("\"", 292956)
18684
18685 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18686 , Tuple.Create(Tuple.Create("", 292833), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue
18687
18688 #line default
18689 #line hidden
18690 , 292833), false)
18691 , Tuple.Create(Tuple.Create(" ", 292933), Tuple.Create("menu-mobile__link-icon", 292934), true)
18692 );
18693
18694 WriteLiteralTo(__razor_helper_writer, "></i> ");
18695
18696
18697 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18698 WriteTo(__razor_helper_writer, Translate("My Profile"));
18699
18700
18701 #line default
18702 #line hidden
18703 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18704
18705
18706 #line 6134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18707
18708
18709 #line default
18710 #line hidden
18711 });
18712
18713 #line 6134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18714 }
18715 #line default
18716 #line hidden
18717
18718
18719 #line 6136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18720 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationOrdersAction()
18721 {
18722 #line default
18723 #line hidden
18724 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18725
18726 #line 6137 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18727
18728 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
18729 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
18730 int myOrdersPageId = GetPageIdByNavigationTag("CustomerOrders");
18731 string myOrdersPageLink = linkStart + myOrdersPageId;
18732 string ordersIcon = "fas fa-list";
18733
18734
18735
18736 #line default
18737 #line hidden
18738 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a");
18739
18740 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 293458), Tuple.Create("\"", 293482)
18741
18742 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18743 , Tuple.Create(Tuple.Create("", 293465), Tuple.Create<System.Object, System.Int32>(myOrdersPageLink
18744
18745 #line default
18746 #line hidden
18747 , 293465), false)
18748 );
18749
18750 WriteLiteralTo(__razor_helper_writer, "><i");
18751
18752 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 293486), Tuple.Create("\"", 293528)
18753
18754 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18755 , Tuple.Create(Tuple.Create("", 293494), Tuple.Create<System.Object, System.Int32>(ordersIcon
18756
18757 #line default
18758 #line hidden
18759 , 293494), false)
18760 , Tuple.Create(Tuple.Create(" ", 293505), Tuple.Create("menu-mobile__link-icon", 293506), true)
18761 );
18762
18763 WriteLiteralTo(__razor_helper_writer, "></i> ");
18764
18765
18766 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18767 WriteTo(__razor_helper_writer, Translate("My Orders"));
18768
18769
18770 #line default
18771 #line hidden
18772 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18773
18774
18775 #line 6147 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18776
18777
18778 #line default
18779 #line hidden
18780 });
18781
18782 #line 6147 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18783 }
18784 #line default
18785 #line hidden
18786
18787
18788 #line 6149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18789 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationFavoritesAction()
18790 {
18791 #line default
18792 #line hidden
18793 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18794
18795 #line 6150 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18796
18797 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
18798 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
18799 int myFavoritesPageId = GetPageIdByNavigationTag("CustomerFavorites");
18800 string myFavoritesPageLink = linkStart + myFavoritesPageId;
18801 string favoritesIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon").SelectedValue : "fa fa-star";
18802
18803
18804
18805
18806 #line default
18807 #line hidden
18808 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a");
18809
18810 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 294248), Tuple.Create("\"", 294275)
18811
18812 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18813 , Tuple.Create(Tuple.Create("", 294255), Tuple.Create<System.Object, System.Int32>(myFavoritesPageLink
18814
18815 #line default
18816 #line hidden
18817 , 294255), false)
18818 );
18819
18820 WriteLiteralTo(__razor_helper_writer, "><i");
18821
18822 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 294279), Tuple.Create("\"", 294324)
18823
18824 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18825 , Tuple.Create(Tuple.Create("", 294287), Tuple.Create<System.Object, System.Int32>(favoritesIcon
18826
18827 #line default
18828 #line hidden
18829 , 294287), false)
18830 , Tuple.Create(Tuple.Create(" ", 294301), Tuple.Create("menu-mobile__link-icon", 294302), true)
18831 );
18832
18833 WriteLiteralTo(__razor_helper_writer, "></i> ");
18834
18835
18836 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18837 WriteTo(__razor_helper_writer, Translate("My Favorites"));
18838
18839
18840 #line default
18841 #line hidden
18842 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18843
18844
18845 #line 6161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18846
18847
18848 #line default
18849 #line hidden
18850 });
18851
18852 #line 6161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18853 }
18854 #line default
18855 #line hidden
18856
18857
18858 #line 6163 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18859 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationSavedCardsAction()
18860 {
18861 #line default
18862 #line hidden
18863 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18864
18865 #line 6164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18866
18867 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
18868 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
18869 int mySavedCardsPageId = GetPageIdByNavigationTag("SavedCards");
18870 string mySavedCardsPageLink = linkStart + mySavedCardsPageId;
18871 string savedCardsIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SavedCards") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SavedCards").SelectedValue : "fas fa-credit-card";
18872
18873
18874
18875 #line default
18876 #line hidden
18877 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a");
18878
18879 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 295047), Tuple.Create("\"", 295075)
18880
18881 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18882 , Tuple.Create(Tuple.Create("", 295054), Tuple.Create<System.Object, System.Int32>(mySavedCardsPageLink
18883
18884 #line default
18885 #line hidden
18886 , 295054), false)
18887 );
18888
18889 WriteLiteralTo(__razor_helper_writer, "><i");
18890
18891 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 295079), Tuple.Create("\"", 295125)
18892
18893 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18894 , Tuple.Create(Tuple.Create("", 295087), Tuple.Create<System.Object, System.Int32>(savedCardsIcon
18895
18896 #line default
18897 #line hidden
18898 , 295087), false)
18899 , Tuple.Create(Tuple.Create(" ", 295102), Tuple.Create("menu-mobile__link-icon", 295103), true)
18900 );
18901
18902 WriteLiteralTo(__razor_helper_writer, "></i> ");
18903
18904
18905 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18906 WriteTo(__razor_helper_writer, Translate("My Saved Cards"));
18907
18908
18909 #line default
18910 #line hidden
18911 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18912
18913
18914 #line 6174 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18915
18916
18917 #line default
18918 #line hidden
18919 });
18920
18921 #line 6174 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18922 }
18923 #line default
18924 #line hidden
18925
18926
18927 #line 6176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18928 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationSignOutAction()
18929 {
18930 #line default
18931 #line hidden
18932 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
18933
18934 #line 6177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18935
18936 int pageId = Model.TopPage.ID;
18937 string signOutIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignOutIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignOutIcon").SelectedValue : "far fa-sign-out-alt";
18938
18939
18940
18941 #line default
18942 #line hidden
18943 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a");
18944
18945 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 295537), Tuple.Create("\"", 295588)
18946 , Tuple.Create(Tuple.Create("", 295544), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 295544), true)
18947
18948 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18949 , Tuple.Create(Tuple.Create("", 295581), Tuple.Create<System.Object, System.Int32>(pageId
18950
18951 #line default
18952 #line hidden
18953 , 295581), false)
18954 );
18955
18956 WriteLiteralTo(__razor_helper_writer, "><i");
18957
18958 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 295592), Tuple.Create("\"", 295635)
18959
18960 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18961 , Tuple.Create(Tuple.Create("", 295600), Tuple.Create<System.Object, System.Int32>(signOutIcon
18962
18963 #line default
18964 #line hidden
18965 , 295600), false)
18966 , Tuple.Create(Tuple.Create(" ", 295612), Tuple.Create("menu-mobile__link-icon", 295613), true)
18967 );
18968
18969 WriteLiteralTo(__razor_helper_writer, "></i> ");
18970
18971
18972 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18973 WriteTo(__razor_helper_writer, Translate("Sign out"));
18974
18975
18976 #line default
18977 #line hidden
18978 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
18979
18980
18981 #line 6184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18982
18983
18984 #line default
18985 #line hidden
18986 });
18987
18988 #line 6184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18989 }
18990 #line default
18991 #line hidden
18992
18993
18994 #line 6186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
18995 public RazorEngine.Templating.TemplateWriter RenderMobileNavigationLanguagesAction()
18996 {
18997 #line default
18998 #line hidden
18999 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19000
19001 #line 6187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19002
19003 bool isSlidesDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetList("Design").SelectedValue == "Slides";
19004
19005 string selectedLanguage = "";
19006 foreach (var lang in Model.Languages)
19007 {
19008 if (lang.IsCurrent)
19009 {
19010 selectedLanguage = lang.Name;
19011 }
19012 }
19013
19014
19015
19016 #line default
19017 #line hidden
19018 WriteLiteralTo(__razor_helper_writer, " <li>\r\n");
19019
19020
19021 #line 6200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19022
19023
19024 #line default
19025 #line hidden
19026
19027 #line 6200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19028 if (isSlidesDesign)
19029 {
19030
19031
19032 #line default
19033 #line hidden
19034 WriteLiteralTo(__razor_helper_writer, " <input");
19035
19036 WriteLiteralTo(__razor_helper_writer, " id=\"MobileMenuCheck_Language\"");
19037
19038 WriteLiteralTo(__razor_helper_writer, " type=\"radio\"");
19039
19040 WriteLiteralTo(__razor_helper_writer, " class=\"expand-trigger\"");
19041
19042 WriteLiteralTo(__razor_helper_writer, " name=\"mobile-menu-level-1\"");
19043
19044 WriteLiteralTo(__razor_helper_writer, " onclick=\"goToLevel(1);\"");
19045
19046 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19047
19048
19049 #line 6203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19050 }
19051 else
19052 {
19053
19054
19055 #line default
19056 #line hidden
19057 WriteLiteralTo(__razor_helper_writer, " <input");
19058
19059 WriteLiteralTo(__razor_helper_writer, " id=\"MobileMenuCheck_Language\"");
19060
19061 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\"");
19062
19063 WriteLiteralTo(__razor_helper_writer, " class=\"expand-trigger\"");
19064
19065 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19066
19067
19068 #line 6207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19069 }
19070
19071
19072 #line default
19073 #line hidden
19074 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <label");
19075
19076 WriteLiteralTo(__razor_helper_writer, " for=\"MobileMenuCheck_Language\"");
19077
19078 WriteLiteralTo(__razor_helper_writer, "><i");
19079
19080 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 296455), Tuple.Create("\"", 296581)
19081
19082 #line 6209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19083 , Tuple.Create(Tuple.Create("", 296463), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("LanguageIcon").SelectedValue
19084
19085 #line default
19086 #line hidden
19087 , 296463), false)
19088 , Tuple.Create(Tuple.Create(" ", 296558), Tuple.Create("menu-mobile__link-icon", 296559), true)
19089 );
19090
19091 WriteLiteralTo(__razor_helper_writer, "></i> ");
19092
19093
19094 #line 6209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19095 WriteTo(__razor_helper_writer, selectedLanguage);
19096
19097
19098 #line default
19099 #line hidden
19100 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label");
19101
19102 WriteLiteralTo(__razor_helper_writer, " for=\"MobileMenuCheck_Language\"");
19103
19104 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n <ul>\r\n");
19105
19106
19107 #line 6213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19108
19109
19110 #line default
19111 #line hidden
19112
19113 #line 6213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19114 if (isSlidesDesign)
19115 {
19116
19117
19118 #line default
19119 #line hidden
19120 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <div>\r\n <input");
19121
19122 WriteLiteralTo(__razor_helper_writer, " id=\"MobileMenuCheck_Language_back\"");
19123
19124 WriteLiteralTo(__razor_helper_writer, " type=\"radio\"");
19125
19126 WriteLiteralTo(__razor_helper_writer, " class=\"expand-trigger\"");
19127
19128 WriteLiteralTo(__razor_helper_writer, " name=\"mobile-menu-level-1\"");
19129
19130 WriteLiteralTo(__razor_helper_writer, " onclick=\"goToLevel(0);\"");
19131
19132 WriteLiteralTo(__razor_helper_writer, " />\r\n <label");
19133
19134 WriteLiteralTo(__razor_helper_writer, " for=\"MobileMenuCheck_Language_back\"");
19135
19136 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__trigger menu-mobile__trigger--back\"");
19137
19138 WriteLiteralTo(__razor_helper_writer, "></label>\r\n <label");
19139
19140 WriteLiteralTo(__razor_helper_writer, " for=\"MobileMenuCheck_Language_back\"");
19141
19142 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__link\"");
19143
19144 WriteLiteralTo(__razor_helper_writer, ">");
19145
19146
19147 #line 6219 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19148 WriteTo(__razor_helper_writer, Translate("Back"));
19149
19150
19151 #line default
19152 #line hidden
19153 WriteLiteralTo(__razor_helper_writer, "</label>\r\n </div>\r\n </li>\r\n");
19154
19155
19156 #line 6222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19157 }
19158
19159
19160 #line default
19161 #line hidden
19162 WriteLiteralTo(__razor_helper_writer, " ");
19163
19164
19165 #line 6223 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19166 foreach (var lang in Model.Languages)
19167 {
19168
19169
19170 #line default
19171 #line hidden
19172 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a");
19173
19174 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 297391), Tuple.Create("\"", 297428)
19175 , Tuple.Create(Tuple.Create("", 297398), Tuple.Create("/Default.aspx?ID=", 297398), true)
19176
19177 #line 6226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19178 , Tuple.Create(Tuple.Create("", 297415), Tuple.Create<System.Object, System.Int32>(lang.Page.ID
19179
19180 #line default
19181 #line hidden
19182 , 297415), false)
19183 );
19184
19185 WriteLiteralTo(__razor_helper_writer, ">");
19186
19187
19188 #line 6226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19189 WriteTo(__razor_helper_writer, lang.Name);
19190
19191
19192 #line default
19193 #line hidden
19194 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
19195
19196
19197 #line 6228 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19198 }
19199
19200
19201 #line default
19202 #line hidden
19203 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </li>\r\n");
19204
19205
19206 #line 6231 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19207
19208
19209 #line default
19210 #line hidden
19211 });
19212
19213 #line 6231 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19214 }
19215 #line default
19216 #line hidden
19217
19218
19219 #line 6233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19220 public RazorEngine.Templating.TemplateWriter ShowMobileNavigationTreeDropdown(IList<NavigationTreeNodeViewModel> nodes, int level)
19221 {
19222 #line default
19223 #line hidden
19224 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19225
19226 #line 6234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19227
19228
19229
19230 #line default
19231 #line hidden
19232 WriteLiteralTo(__razor_helper_writer, " <ul");
19233
19234 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 h-100 overflow-y-auto pt-4 relative mobile-navigation--slider\"");
19235
19236 WriteLiteralTo(__razor_helper_writer, " id=\"mobilenavigation\"");
19237
19238 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19239
19240
19241 #line 6236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19242
19243
19244 #line default
19245 #line hidden
19246
19247 #line 6236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19248 for (int i = 0; i < nodes.Count; ++i)
19249 {
19250 var node = nodes[i];
19251 var children = node.Nodes.ToList();
19252 int id = node.PageId;
19253 int megaMenuPageID = GetPageIdByNavigationTag("MegaMenu");
19254 if(megaMenuPageID != 0 )
19255 {
19256 var menuParagraphs = Dynamicweb.Services.Paragraphs.GetParagraphsByPageId(GetPageIdByNavigationTag("MegaMenu"));
19257 //if(menuParagraphs.Any())
19258 //{
19259 //foreach(var paragraph in menuParagraphs)
19260 //{
19261 //@:@RenderParagraphContent(paragraph.ID)
19262 //}
19263 //}
19264 }
19265
19266
19267
19268
19269
19270 #line default
19271 #line hidden
19272 WriteLiteralTo(__razor_helper_writer, " <li");
19273
19274 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 298453), Tuple.Create("\"", 298521)
19275 , Tuple.Create(Tuple.Create("", 298461), Tuple.Create("menu-mobile__item", 298461), true)
19276
19277 #line 6256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19278 , Tuple.Create(Tuple.Create(" ", 298478), Tuple.Create<System.Object, System.Int32>(node.InPath ? "menu__item--active" : ""
19279
19280 #line default
19281 #line hidden
19282 , 298479), false)
19283 );
19284
19285 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
19286
19287 WriteLiteralTo(__razor_helper_writer, " class=\"menu-mobile__link__wrap\"");
19288
19289 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
19290
19291 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 298600), Tuple.Create("\"", 298617)
19292
19293 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19294 , Tuple.Create(Tuple.Create("", 298607), Tuple.Create<System.Object, System.Int32>(node.Link
19295
19296 #line default
19297 #line hidden
19298 , 298607), false)
19299 );
19300
19301 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 298618), Tuple.Create("\"", 298727)
19302 , Tuple.Create(Tuple.Create("", 298626), Tuple.Create("menu-mobile__link", 298626), true)
19303 , Tuple.Create(Tuple.Create(" ", 298643), Tuple.Create("text-decoration-none", 298644), true)
19304 , Tuple.Create(Tuple.Create(" ", 298664), Tuple.Create("menu-mobile__link--level-", 298665), true)
19305
19306 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19307 , Tuple.Create(Tuple.Create("", 298690), Tuple.Create<System.Object, System.Int32>(level
19308
19309 #line default
19310 #line hidden
19311 , 298690), false)
19312 , Tuple.Create(Tuple.Create(" ", 298698), Tuple.Create("py-2", 298699), true)
19313 , Tuple.Create(Tuple.Create(" ", 298703), Tuple.Create("flex-wrap", 298704), true)
19314 , Tuple.Create(Tuple.Create(" ", 298713), Tuple.Create("space-between", 298714), true)
19315 );
19316
19317 WriteLiteralTo(__razor_helper_writer, " data-mega-menu=\"");
19318
19319
19320 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19321 WriteTo(__razor_helper_writer, node.PageId);
19322
19323
19324 #line default
19325 #line hidden
19326 WriteLiteralTo(__razor_helper_writer, "\"");
19327
19328 WriteLiteralTo(__razor_helper_writer, "><span");
19329
19330 WriteLiteralTo(__razor_helper_writer, " class=\"label\"");
19331
19332 WriteLiteralTo(__razor_helper_writer, ">");
19333
19334
19335 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19336 WriteTo(__razor_helper_writer, node.Name);
19337
19338
19339 #line default
19340 #line hidden
19341 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n");
19342
19343 WriteLiteralTo(__razor_helper_writer, "\r\n");
19344
19345 WriteLiteralTo(__razor_helper_writer, "\r\n");
19346
19347 WriteLiteralTo(__razor_helper_writer, "\r\n");
19348
19349 WriteLiteralTo(__razor_helper_writer, "\r\n");
19350
19351 WriteLiteralTo(__razor_helper_writer, "\r\n");
19352
19353 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </li>\r\n");
19354
19355
19356 #line 6267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19357
19358 }
19359
19360
19361 #line default
19362 #line hidden
19363 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n");
19364
19365
19366 #line 6270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19367
19368
19369 #line default
19370 #line hidden
19371 });
19372
19373 #line 6270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19374 }
19375 #line default
19376 #line hidden
19377
19378
19379 #line 6280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19380
19381 BlocksPage headerBlocksPage = BlocksPage.GetBlockPage("Master");
19382
19383 #line default
19384 #line hidden
19385
19386
19387 #line 6393 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19388 public RazorEngine.Templating.TemplateWriter RenderDesktopLogo()
19389 {
19390 #line default
19391 #line hidden
19392 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19393
19394 #line 6394 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19395
19396 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
19397 var logo = "";
19398 var user = User.GetCurrentExtranetUser();
19399 string cssClassCustom = user != null && Model.SecondaryUsers.Count > 0 ? "mb-2 mt-0" : "my-2";
19400
19401 if (Path.GetExtension(areaInfo.Logo).ToLower() != ".svg")
19402 {
19403 // logo = "/Admin/Public/GetImage.ashx?height=" + Converter.ToString(areaInfo.LogoHeight) + "&crop=5&Compression=75&image=" + areaInfo.Logo;
19404 logo = "/Admin/Public/GetImage.ashx?width=100&height=99&crop=5&Compression=75&image=" + areaInfo.Logo;
19405 }
19406 else
19407 {
19408 logo = HttpUtility.UrlDecode(areaInfo.Logo);
19409 }
19410
19411
19412
19413 #line default
19414 #line hidden
19415 WriteLiteralTo(__razor_helper_writer, " <a");
19416
19417 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 303686), Tuple.Create("\"", 303716)
19418
19419 #line 6410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19420 , Tuple.Create(Tuple.Create("", 303693), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink
19421
19422 #line default
19423 #line hidden
19424 , 303693), false)
19425 );
19426
19427 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 303717), Tuple.Create("\"", 303759)
19428 , Tuple.Create(Tuple.Create("", 303725), Tuple.Create("header__logo", 303725), true)
19429 , Tuple.Create(Tuple.Create(" ", 303737), Tuple.Create("block", 303738), true)
19430
19431 #line 6410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19432 , Tuple.Create(Tuple.Create(" ", 303743), Tuple.Create<System.Object, System.Int32>(cssClassCustom
19433
19434 #line default
19435 #line hidden
19436 , 303744), false)
19437 );
19438
19439 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
19440
19441 WriteLiteralTo(__razor_helper_writer, " class=\"header__logo__img\"");
19442
19443 WriteLiteralTo(__razor_helper_writer, " width=\"350\"");
19444
19445 WriteLiteralTo(__razor_helper_writer, " height=\"66.08\"");
19446
19447 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 303828), Tuple.Create("\"", 303848)
19448
19449 #line 6411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19450 , Tuple.Create(Tuple.Create("", 303834), Tuple.Create<System.Object, System.Int32>(areaInfo.Logo
19451
19452 #line default
19453 #line hidden
19454 , 303834), false)
19455 );
19456
19457 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 303849), Tuple.Create("\"", 303892)
19458
19459 #line 6411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19460 , Tuple.Create(Tuple.Create("", 303855), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo)
19461
19462 #line default
19463 #line hidden
19464 , 303855), false)
19465 );
19466
19467 WriteLiteralTo(__razor_helper_writer, " />\r\n </a>\r\n");
19468
19469
19470 #line 6413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19471
19472
19473 #line default
19474 #line hidden
19475 });
19476
19477 #line 6413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19478 }
19479 #line default
19480 #line hidden
19481
19482
19483 #line 6435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19484 public RazorEngine.Templating.TemplateWriter RenderDesktopMenu()
19485 {
19486 #line default
19487 #line hidden
19488 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19489
19490 #line 6436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19491
19492 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
19493 var productsPageId = areaInfo.ProductsPage.ID;
19494 var navigationSettingsMain = new Dynamicweb.Frontend.Navigation.NavigationSettings()
19495 {
19496 StartLevel = 1,
19497 StopLevel = 5,
19498 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
19499 };
19500 NavigationTreeViewModel navigation2 = GetNavigation(navigationSettingsMain);
19501
19502 if (areaInfo.IsMegaMenu)
19503 {
19504
19505
19506 #line default
19507 #line hidden
19508
19509 #line 6449 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19510 WriteTo(__razor_helper_writer, ShowNavigationTreeMegamenu(navigation2.Nodes.First(n => n.PageId == productsPageId).Nodes.ToList(), 1));
19511
19512
19513 #line default
19514 #line hidden
19515
19516 #line 6449 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19517
19518 }
19519 else
19520 {
19521
19522
19523 #line default
19524 #line hidden
19525
19526 #line 6453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19527 WriteTo(__razor_helper_writer, ShowNavigationTreeDropdown(navigation2.Nodes.ToList(), 1));
19528
19529
19530 #line default
19531 #line hidden
19532
19533 #line 6453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19534
19535 }
19536
19537
19538 #line default
19539 #line hidden
19540 });
19541
19542 #line 6455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19543 }
19544 #line default
19545 #line hidden
19546
19547
19548 #line 6457 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19549 public RazorEngine.Templating.TemplateWriter ShowNavigationTreeMegamenu(IList<NavigationTreeNodeViewModel> nodes, int level)
19550 {
19551 #line default
19552 #line hidden
19553 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19554
19555 #line 6458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19556
19557 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
19558 var DesignFolder = Pageview.Layout.Design.Name;
19559
19560
19561 #line default
19562 #line hidden
19563 WriteLiteralTo(__razor_helper_writer, " <ul");
19564
19565 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 305313), Tuple.Create("\"", 305419)
19566
19567 #line 6461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19568 , Tuple.Create(Tuple.Create("", 305321), Tuple.Create<System.Object, System.Int32>(level == 1 ? "nav--primary" : "megamenu__nav"
19569
19570 #line default
19571 #line hidden
19572 , 305321), false)
19573 , Tuple.Create(Tuple.Create(" ", 305369), Tuple.Create("menu-level-", 305370), true)
19574
19575 #line 6461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19576 , Tuple.Create(Tuple.Create("", 305381), Tuple.Create<System.Object, System.Int32>(level
19577
19578 #line default
19579 #line hidden
19580 , 305381), false)
19581 , Tuple.Create(Tuple.Create(" ", 305389), Tuple.Create("flex-wrap", 305390), true)
19582 , Tuple.Create(Tuple.Create(" ", 305399), Tuple.Create("align-items-center", 305401), true)
19583 );
19584
19585 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19586
19587
19588 #line 6462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19589
19590
19591 #line default
19592 #line hidden
19593
19594 #line 6462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19595 if (level == 1) {
19596
19597
19598 #line default
19599 #line hidden
19600 WriteLiteralTo(__razor_helper_writer, " <li");
19601
19602 WriteLiteralTo(__razor_helper_writer, " class=\"home\"");
19603
19604 WriteLiteralTo(__razor_helper_writer, "><a");
19605
19606 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 305482), Tuple.Create("\"", 305512)
19607
19608 #line 6463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19609 , Tuple.Create(Tuple.Create("", 305489), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink
19610
19611 #line default
19612 #line hidden
19613 , 305489), false)
19614 );
19615
19616 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-icon home text-decoration-none\"");
19617
19618 WriteLiteralTo(__razor_helper_writer, " aria-label=\"home\"");
19619
19620 WriteLiteralTo(__razor_helper_writer, ">");
19621
19622
19623 #line 6463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19624 WriteTo(__razor_helper_writer, RenderInlineSvg("default","home"));
19625
19626
19627 #line default
19628 #line hidden
19629 WriteLiteralTo(__razor_helper_writer, "</a></li>\r\n");
19630
19631
19632 #line 6464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19633 }
19634
19635
19636 #line default
19637 #line hidden
19638 WriteLiteralTo(__razor_helper_writer, " ");
19639
19640
19641 #line 6465 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19642 for (int i = 0; i < nodes.Count; ++i)
19643 {
19644 var node = nodes[i];
19645 var children = node.Nodes.ToList();
19646
19647
19648
19649 #line default
19650 #line hidden
19651 WriteLiteralTo(__razor_helper_writer, " <li");
19652
19653 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 305804), Tuple.Create("\"", 305866)
19654
19655 #line 6470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19656 , Tuple.Create(Tuple.Create("", 305812), Tuple.Create<System.Object, System.Int32>(level == 1 && children.Any() ? "megamenu__nav" : ""
19657
19658 #line default
19659 #line hidden
19660 , 305812), false)
19661 );
19662
19663 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
19664
19665 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 305888), Tuple.Create("\"", 305905)
19666
19667 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19668 , Tuple.Create(Tuple.Create("", 305895), Tuple.Create<System.Object, System.Int32>(node.Link
19669
19670 #line default
19671 #line hidden
19672 , 305895), false)
19673 );
19674
19675 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 305906), Tuple.Create("\"", 305940)
19676 , Tuple.Create(Tuple.Create("", 305914), Tuple.Create("megamenu__category--", 305914), true)
19677
19678 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19679 , Tuple.Create(Tuple.Create("", 305934), Tuple.Create<System.Object, System.Int32>(level
19680
19681 #line default
19682 #line hidden
19683 , 305934), false)
19684 );
19685
19686 WriteLiteralTo(__razor_helper_writer, " data-menu=\"");
19687
19688
19689 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19690 WriteTo(__razor_helper_writer, node.Name.ToLower());
19691
19692
19693 #line default
19694 #line hidden
19695 WriteLiteralTo(__razor_helper_writer, "\"");
19696
19697 WriteLiteralTo(__razor_helper_writer, ">");
19698
19699
19700 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19701 WriteTo(__razor_helper_writer, node.Name);
19702
19703
19704 #line default
19705 #line hidden
19706 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
19707
19708
19709 #line 6472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19710
19711
19712 #line default
19713 #line hidden
19714
19715 #line 6472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19716 if (children.Any())
19717 {
19718 if (level == 1)
19719 {
19720
19721
19722 #line default
19723 #line hidden
19724 WriteLiteralTo(__razor_helper_writer, " <div");
19725
19726 WriteLiteralTo(__razor_helper_writer, " class=\"megamenu__container\"");
19727
19728 WriteLiteralTo(__razor_helper_writer, " style=\"--columns: repeat(3,1fr) auto\"");
19729
19730 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19731
19732
19733 #line 6477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19734
19735
19736 #line default
19737 #line hidden
19738
19739 #line 6477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19740 for (int j = 0; j < 4; ++j)
19741 {
19742
19743
19744 #line default
19745 #line hidden
19746
19747 #line 6479 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19748 WriteTo(__razor_helper_writer, ShowNavigationTreeMegamenu(children.Where((n, index) => index % 4 == j).ToList(), level + 1));
19749
19750
19751 #line default
19752 #line hidden
19753
19754 #line 6479 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19755
19756 }
19757
19758
19759 #line default
19760 #line hidden
19761 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
19762
19763
19764 #line 6482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19765 }
19766 else
19767 {
19768
19769
19770 #line default
19771 #line hidden
19772
19773 #line 6485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19774 WriteTo(__razor_helper_writer, ShowNavigationTreeMegamenu(children, level + 1));
19775
19776
19777 #line default
19778 #line hidden
19779
19780 #line 6485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19781
19782 }
19783 }
19784
19785
19786 #line default
19787 #line hidden
19788 WriteLiteralTo(__razor_helper_writer, " </li>\r\n");
19789
19790
19791 #line 6489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19792 }
19793
19794
19795 #line default
19796 #line hidden
19797 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n");
19798
19799
19800 #line 6491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19801
19802
19803 #line default
19804 #line hidden
19805 });
19806
19807 #line 6491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19808 }
19809 #line default
19810 #line hidden
19811
19812
19813 #line 6493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19814 public RazorEngine.Templating.TemplateWriter ShowNavigationTreeDropdown(IList<NavigationTreeNodeViewModel> nodes, int level)
19815 {
19816 #line default
19817 #line hidden
19818 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
19819
19820 #line 6494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19821
19822
19823
19824 #line default
19825 #line hidden
19826 WriteLiteralTo(__razor_helper_writer, "\t<div");
19827
19828 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap justify-content-center\"");
19829
19830 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\r\n <ul");
19831
19832 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 306872), Tuple.Create("\"", 306955)
19833
19834 #line 6497 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19835 , Tuple.Create(Tuple.Create("", 306880), Tuple.Create<System.Object, System.Int32>(level == 1 ? "nav--default mx-auto hidden inline-flex-md" : "menu w-100"
19836
19837 #line default
19838 #line hidden
19839 , 306880), false)
19840 );
19841
19842 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19843
19844
19845 #line 6498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19846
19847
19848 #line default
19849 #line hidden
19850
19851 #line 6498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19852 for (int i = 0; i < nodes.Count; ++i)
19853 {
19854 var node = nodes[i];
19855 var children = node.Nodes.ToList();
19856
19857
19858
19859 #line default
19860 #line hidden
19861 WriteLiteralTo(__razor_helper_writer, " <li");
19862
19863 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 307128), Tuple.Create("\"", 307189)
19864 , Tuple.Create(Tuple.Create("", 307136), Tuple.Create("menu__item", 307136), true)
19865
19866 #line 6503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19867 , Tuple.Create(Tuple.Create(" ", 307146), Tuple.Create<System.Object, System.Int32>(node.InPath ? "menu__item--active" : ""
19868
19869 #line default
19870 #line hidden
19871 , 307147), false)
19872 );
19873
19874 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
19875
19876 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 307211), Tuple.Create("\"", 307228)
19877
19878 #line 6504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19879 , Tuple.Create(Tuple.Create("", 307218), Tuple.Create<System.Object, System.Int32>(node.Link
19880
19881 #line default
19882 #line hidden
19883 , 307218), false)
19884 );
19885
19886 WriteLiteralTo(__razor_helper_writer, " class=\"menu-dropdown__link text-decoration-none py-2 px-3 block w-100 font-conde" +
19887 "nsed h-100\"");
19888
19889 WriteLiteralTo(__razor_helper_writer, " data-mega-menu-old=\"");
19890
19891
19892 #line 6504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19893 WriteTo(__razor_helper_writer, node.Name.ToLower());
19894
19895
19896 #line default
19897 #line hidden
19898 WriteLiteralTo(__razor_helper_writer, "\"");
19899
19900 WriteLiteralTo(__razor_helper_writer, " data-mega-menu=\"");
19901
19902
19903 #line 6504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19904 WriteTo(__razor_helper_writer, node.PageId);
19905
19906
19907 #line default
19908 #line hidden
19909 WriteLiteralTo(__razor_helper_writer, "\"");
19910
19911 WriteLiteralTo(__razor_helper_writer, ">");
19912
19913
19914 #line 6504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19915 WriteTo(__razor_helper_writer, node.Name);
19916
19917
19918 #line default
19919 #line hidden
19920 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
19921
19922
19923 #line 6505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19924
19925
19926 #line default
19927 #line hidden
19928
19929 #line 6505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19930 if (children.Any())
19931 {
19932
19933
19934 #line default
19935 #line hidden
19936 WriteLiteralTo(__razor_helper_writer, " <div");
19937
19938 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 307491), Tuple.Create("\"", 307529)
19939 , Tuple.Create(Tuple.Create("", 307499), Tuple.Create("level-", 307499), true)
19940
19941 #line 6507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19942 , Tuple.Create(Tuple.Create("", 307505), Tuple.Create<System.Object, System.Int32>(level
19943
19944 #line default
19945 #line hidden
19946 , 307505), false)
19947 , Tuple.Create(Tuple.Create(" ", 307513), Tuple.Create("bg-light", 307514), true)
19948 , Tuple.Create(Tuple.Create(" ", 307522), Tuple.Create("border", 307523), true)
19949 );
19950
19951 WriteLiteralTo(__razor_helper_writer, ">\r\n");
19952
19953 WriteLiteralTo(__razor_helper_writer, " ");
19954
19955
19956 #line 6508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19957 WriteTo(__razor_helper_writer, ShowNavigationTreeDropdown(children, level + 1));
19958
19959
19960 #line default
19961 #line hidden
19962 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
19963
19964
19965 #line 6510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19966 }
19967
19968
19969 #line default
19970 #line hidden
19971 WriteLiteralTo(__razor_helper_writer, " </li>\r\n");
19972
19973
19974 #line 6512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19975 }
19976
19977
19978 #line default
19979 #line hidden
19980 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n\t\r\n\t</div>\r\n");
19981
19982
19983 #line 6516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19984
19985
19986 #line default
19987 #line hidden
19988 });
19989
19990 #line 6516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19991 }
19992 #line default
19993 #line hidden
19994
19995
19996 #line 6541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
19997 public RazorEngine.Templating.TemplateWriter RenderDesktopActionsMenu()
19998 {
19999 #line default
20000 #line hidden
20001 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20002
20003 #line 6542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20004
20005 List<Block> subBlocks = this.headerBlocksPage.GetBlockListById("MasterDesktopActionsMenu").OrderBy(item => item.SortId).ToList();
20006
20007
20008
20009 #line default
20010 #line hidden
20011
20012 #line 6545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20013 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
20014
20015
20016 #line default
20017 #line hidden
20018
20019 #line 6545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20020
20021
20022
20023 #line default
20024 #line hidden
20025 });
20026
20027 #line 6546 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20028 }
20029 #line default
20030 #line hidden
20031
20032
20033 #line 6567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20034 public RazorEngine.Templating.TemplateWriter RenderLanguageSelector()
20035 {
20036 #line default
20037 #line hidden
20038 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20039
20040 #line 6568 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20041
20042 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
20043 //
20044
20045
20046 #line default
20047 #line hidden
20048
20049 #line 6571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20050
20051
20052
20053 #line default
20054 #line hidden
20055
20056 #line 6572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20057
20058
20059
20060 #line default
20061 #line hidden
20062
20063 #line 6573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20064
20065
20066
20067 #line default
20068 #line hidden
20069
20070 #line 6574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20071
20072
20073
20074 #line default
20075 #line hidden
20076
20077 #line 6575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20078
20079
20080
20081 #line default
20082 #line hidden
20083
20084 #line 6576 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20085
20086
20087
20088 #line default
20089 #line hidden
20090
20091 #line 6577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20092
20093
20094
20095 #line default
20096 #line hidden
20097
20098 #line 6578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20099
20100
20101
20102 #line default
20103 #line hidden
20104
20105 #line 6579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20106
20107
20108
20109 #line default
20110 #line hidden
20111
20112 #line 6580 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20113
20114
20115
20116 #line default
20117 #line hidden
20118
20119 #line 6581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20120
20121
20122
20123 #line default
20124 #line hidden
20125
20126 #line 6582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20127
20128
20129
20130 #line default
20131 #line hidden
20132
20133 #line 6583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20134
20135
20136
20137 #line default
20138 #line hidden
20139
20140 #line 6584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20141
20142
20143
20144 #line default
20145 #line hidden
20146
20147 #line 6585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20148
20149
20150
20151 #line default
20152 #line hidden
20153
20154 #line 6586 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20155
20156
20157
20158 #line default
20159 #line hidden
20160
20161 #line 6587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20162
20163
20164
20165 #line default
20166 #line hidden
20167
20168 #line 6588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20169
20170
20171
20172 #line default
20173 #line hidden
20174
20175 #line 6589 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20176
20177
20178
20179 #line default
20180 #line hidden
20181
20182 #line 6590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20183
20184
20185
20186 #line default
20187 #line hidden
20188
20189 #line 6591 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20190
20191
20192
20193 #line default
20194 #line hidden
20195
20196 #line 6592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20197
20198
20199
20200 #line default
20201 #line hidden
20202
20203 #line 6593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20204
20205
20206
20207 #line default
20208 #line hidden
20209
20210 #line 6594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20211
20212
20213
20214 #line default
20215 #line hidden
20216
20217 #line 6595 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20218
20219
20220
20221 #line default
20222 #line hidden
20223
20224 #line 6596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20225
20226
20227
20228 #line default
20229 #line hidden
20230
20231 #line 6597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20232
20233
20234
20235 #line default
20236 #line hidden
20237
20238 #line 6598 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20239
20240
20241
20242 #line default
20243 #line hidden
20244
20245 #line 6599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20246
20247
20248
20249 #line default
20250 #line hidden
20251
20252 #line 6600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20253
20254
20255
20256 #line default
20257 #line hidden
20258
20259 #line 6601 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20260
20261
20262
20263 #line default
20264 #line hidden
20265
20266 #line 6602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20267
20268
20269
20270 #line default
20271 #line hidden
20272
20273 #line 6603 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20274
20275
20276
20277 #line default
20278 #line hidden
20279
20280 #line 6604 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20281
20282
20283
20284 #line default
20285 #line hidden
20286
20287 #line 6605 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20288
20289
20290
20291 #line default
20292 #line hidden
20293
20294 #line 6606 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20295
20296
20297
20298 #line default
20299 #line hidden
20300
20301 #line 6607 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20302
20303
20304
20305 #line default
20306 #line hidden
20307
20308 #line 6608 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20309
20310
20311
20312 #line default
20313 #line hidden
20314
20315 #line 6609 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20316
20317
20318 //
20319
20320
20321 #line default
20322 #line hidden
20323 WriteLiteralTo(__razor_helper_writer, " <div");
20324
20325 WriteLiteralTo(__razor_helper_writer, " class=\"language-switcher\"");
20326
20327 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
20328
20329 WriteLiteralTo(__razor_helper_writer, " class=\"hidden flex-md flex-wrap align-items-center\"");
20330
20331 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
20332
20333 WriteLiteralTo(__razor_helper_writer, "\r\n");
20334
20335 WriteLiteralTo(__razor_helper_writer, " ");
20336
20337
20338 #line 6616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20339 WriteTo(__razor_helper_writer, RenderLanguages());
20340
20341
20342 #line default
20343 #line hidden
20344 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div");
20345
20346 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-md flex-wrap align-items-center\"");
20347
20348 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
20349
20350 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
20351
20352 WriteLiteralTo(__razor_helper_writer, " aria-label=\"language\"");
20353
20354 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-border--brand active align-self-top\"");
20355
20356 WriteLiteralTo(__razor_helper_writer, " data-role=\"language-mobile-switcher\"");
20357
20358 WriteLiteralTo(__razor_helper_writer, ">RO</button>\r\n <div");
20359
20360 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\"");
20361
20362 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
20363
20364 WriteLiteralTo(__razor_helper_writer, " id=\"languages\"");
20365
20366 WriteLiteralTo(__razor_helper_writer, " class=\"languages flex-wrap p-1\"");
20367
20368 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
20369
20370 WriteLiteralTo(__razor_helper_writer, "\r\n");
20371
20372 WriteLiteralTo(__razor_helper_writer, " ");
20373
20374
20375 #line 6624 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20376 WriteTo(__razor_helper_writer, RenderLanguages());
20377
20378
20379 #line default
20380 #line hidden
20381 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n </div>\r\n </div>\r\n </div>\r\n");
20382
20383
20384 #line 6629 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20385
20386
20387 #line default
20388 #line hidden
20389 });
20390
20391 #line 6629 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20392 }
20393 #line default
20394 #line hidden
20395
20396
20397 #line 6631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20398 public RazorEngine.Templating.TemplateWriter RenderLanguages()
20399 {
20400 #line default
20401 #line hidden
20402 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20403
20404 #line 6632 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20405
20406 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
20407 foreach (var lang in Model.Languages)
20408 {
20409 var area = Dynamicweb.Services.Areas.GetArea(lang.ID);
20410 string langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + "\"></span>" + lang.Name;
20411 string cultureName = Regex.Replace(area.CultureInfo.NativeName, @" ?\(.*?\)", string.Empty);
20412 cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1);
20413 string activeClass = area.ID == Pageview.Area.ID ? "active" : "";
20414 //string frontpageLink = area.Frontpage;
20415 //string frontpageLink = "/Default.aspx?AreaID=" + Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID;
20416 //string frontpageLink = area.ID == 23 ? "/en" : "/";
20417 string frontpageLink = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Default.aspx?ID=" + Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID);
20418 string friendlyLink = area.ID == 21 ? "/" : Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + lang.FirstPage.ID);
20419
20420
20421 if (areaInfo.LanguageViewType == "flag-culture")
20422 {
20423 langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + " \"></span> " + cultureName;
20424 }
20425
20426 if (areaInfo.LanguageViewType == "flag")
20427 {
20428 langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + " \"></span>";
20429 }
20430
20431 if (areaInfo.LanguageViewType == "name")
20432 {
20433 langInfo = lang.Name;
20434 }
20435
20436 if (areaInfo.LanguageViewType == "culture")
20437 {
20438 langInfo = cultureName;
20439 }
20440
20441
20442
20443 #line default
20444 #line hidden
20445 WriteLiteralTo(__razor_helper_writer, " <a");
20446
20447 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 313922), Tuple.Create("\"", 313979)
20448 , Tuple.Create(Tuple.Create("", 313930), Tuple.Create("btn", 313930), true)
20449 , Tuple.Create(Tuple.Create(" ", 313933), Tuple.Create("btn-border--brand", 313934), true)
20450
20451 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20452 , Tuple.Create(Tuple.Create(" ", 313951), Tuple.Create<System.Object, System.Int32>(activeClass
20453
20454 #line default
20455 #line hidden
20456 , 313952), false)
20457 , Tuple.Create(Tuple.Create(" ", 313964), Tuple.Create("align-self-top", 313965), true)
20458 );
20459
20460 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 313980), Tuple.Create("\"", 314000)
20461
20462 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20463 , Tuple.Create(Tuple.Create("", 313987), Tuple.Create<System.Object, System.Int32>(friendlyLink
20464
20465 #line default
20466 #line hidden
20467 , 313987), false)
20468 );
20469
20470 WriteLiteralTo(__razor_helper_writer, ">");
20471
20472
20473 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20474 WriteTo(__razor_helper_writer, Translate("LanguageSwitcher_" + cultureName, cultureName));
20475
20476
20477 #line default
20478 #line hidden
20479 WriteLiteralTo(__razor_helper_writer, " ");
20480
20481
20482 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20483 WriteTo(__razor_helper_writer, area.Frontpage);
20484
20485
20486 #line default
20487 #line hidden
20488 WriteLiteralTo(__razor_helper_writer, "</a> \r\n");
20489
20490
20491 #line 6669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20492
20493
20494
20495
20496 }
20497
20498
20499 #line default
20500 #line hidden
20501 });
20502
20503 #line 6674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20504 }
20505 #line default
20506 #line hidden
20507
20508
20509 #line 6715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20510 public RazorEngine.Templating.TemplateWriter RenderMendolaClubRefactor(User user)
20511 {
20512 #line default
20513 #line hidden
20514 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20515
20516 #line 6716 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20517
20518 //Gold, Platinium, Black
20519 var partnerRange = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_PartnerRange", StringComparison.OrdinalIgnoreCase)).Value;
20520 var meterPoints = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_MeterPoints", StringComparison.OrdinalIgnoreCase)).Value;
20521 string myCard = Translate("Account_MyCard","My card");
20522 string myCardLevel = Translate("Account_MyCard_" + partnerRange.ToString(),partnerRange.ToString());
20523 string myCardMeterPoints = Translate("Account_MyCard_MeterPoints","Meter Points");
20524 string userName = user.Name;
20525 string userCompany = user.Company != "" ? "(" + user.Company + ")" : "";
20526 string welcomeMessage = Translate("General_Welcome");
20527
20528
20529
20530 #line default
20531 #line hidden
20532 WriteLiteralTo(__razor_helper_writer, " <div");
20533
20534 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap justify-content-center text-center color-dark mt-2\"");
20535
20536 WriteLiteralTo(__razor_helper_writer, "><span");
20537
20538 WriteLiteralTo(__razor_helper_writer, " class=\"w-100\"");
20539
20540 WriteLiteralTo(__razor_helper_writer, ">");
20541
20542
20543 #line 6727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20544 WriteTo(__razor_helper_writer, welcomeMessage);
20545
20546
20547 #line default
20548 #line hidden
20549 WriteLiteralTo(__razor_helper_writer, "</span> <span");
20550
20551 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold\"");
20552
20553 WriteLiteralTo(__razor_helper_writer, ">");
20554
20555
20556 #line 6727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20557 WriteTo(__razor_helper_writer, userName);
20558
20559
20560 #line default
20561 #line hidden
20562 WriteLiteralTo(__razor_helper_writer, " ");
20563
20564
20565 #line 6727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20566 WriteTo(__razor_helper_writer, userCompany);
20567
20568
20569 #line default
20570 #line hidden
20571 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n");
20572
20573 WriteLiteralTo(__razor_helper_writer, " <div");
20574
20575 WriteLiteralTo(__razor_helper_writer, " class=\"mendola-club-points flex-wrap justify-content-center hidden-sm color-dark" +
20576 " mt-2 mx-2 pb-2 border-bottom\"");
20577
20578 WriteLiteralTo(__razor_helper_writer, "><span");
20579
20580 WriteLiteralTo(__razor_helper_writer, " class=\"mendola-club-points__label font-sm text-center inline-flex justify-conten" +
20581 "t-center\"");
20582
20583 WriteLiteralTo(__razor_helper_writer, " style=\"width: min-content;\"");
20584
20585 WriteLiteralTo(__razor_helper_writer, "><span");
20586
20587 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 316543), Tuple.Create("\"", 316569)
20588 , Tuple.Create(Tuple.Create("", 316551), Tuple.Create("width-", 316551), true)
20589
20590 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20591 , Tuple.Create(Tuple.Create("", 316557), Tuple.Create<System.Object, System.Int32>(myCardLevel
20592
20593 #line default
20594 #line hidden
20595 , 316557), false)
20596 );
20597
20598 WriteLiteralTo(__razor_helper_writer, ">");
20599
20600
20601 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20602 WriteTo(__razor_helper_writer, myCard);
20603
20604
20605 #line default
20606 #line hidden
20607 WriteLiteralTo(__razor_helper_writer, "</span> <span");
20608
20609 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold text-uppercase\"");
20610
20611 WriteLiteralTo(__razor_helper_writer, ">");
20612
20613
20614 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20615 WriteTo(__razor_helper_writer, myCardLevel);
20616
20617
20618 #line default
20619 #line hidden
20620 WriteLiteralTo(__razor_helper_writer, "</span></span> <span");
20621
20622 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 316659), Tuple.Create("\"", 316736)
20623 , Tuple.Create(Tuple.Create("", 316667), Tuple.Create("ml-1", 316667), true)
20624 , Tuple.Create(Tuple.Create(" ", 316671), Tuple.Create("inline-flex", 316672), true)
20625 , Tuple.Create(Tuple.Create(" ", 316683), Tuple.Create("justify-content-center", 316684), true)
20626 , Tuple.Create(Tuple.Create(" ", 316706), Tuple.Create("text-center", 316707), true)
20627 , Tuple.Create(Tuple.Create(" ", 316718), Tuple.Create("card-", 316719), true)
20628
20629 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20630 , Tuple.Create(Tuple.Create("", 316724), Tuple.Create<System.Object, System.Int32>(myCardLevel
20631
20632 #line default
20633 #line hidden
20634 , 316724), false)
20635 );
20636
20637 WriteLiteralTo(__razor_helper_writer, " style=\"width: 8rem;\"");
20638
20639 WriteLiteralTo(__razor_helper_writer, "><span");
20640
20641 WriteLiteralTo(__razor_helper_writer, " class=\"font-md weight-bold font-regular \"");
20642
20643 WriteLiteralTo(__razor_helper_writer, ">");
20644
20645
20646 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20647 WriteTo(__razor_helper_writer, meterPoints.ToString());
20648
20649
20650 #line default
20651 #line hidden
20652 WriteLiteralTo(__razor_helper_writer, "</span> <span");
20653
20654 WriteLiteralTo(__razor_helper_writer, " class=\"font-xs text-uppercase\"");
20655
20656 WriteLiteralTo(__razor_helper_writer, ">");
20657
20658
20659 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20660 WriteTo(__razor_helper_writer, myCardMeterPoints);
20661
20662
20663 #line default
20664 #line hidden
20665 WriteLiteralTo(__razor_helper_writer, "</span></span></div>\r\n");
20666
20667
20668 #line 6729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20669
20670
20671 #line default
20672 #line hidden
20673 });
20674
20675 #line 6729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20676 }
20677 #line default
20678 #line hidden
20679
20680
20681 #line 6731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20682 public RazorEngine.Templating.TemplateWriter MobileNavigationTrigger()
20683 {
20684 #line default
20685 #line hidden
20686 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20687
20688 #line 6732 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20689
20690
20691
20692 #line default
20693 #line hidden
20694 WriteLiteralTo(__razor_helper_writer, " <div");
20695
20696 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap justify-content-center align-items-start hidden-md\"");
20697
20698 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
20699
20700 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
20701
20702 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon btn-sm\"");
20703
20704 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open profile action menu\"");
20705
20706 WriteLiteralTo(__razor_helper_writer, " data-role=\"open-mobile-menu\"");
20707
20708 WriteLiteralTo(__razor_helper_writer, ">\r\n");
20709
20710 WriteLiteralTo(__razor_helper_writer, " ");
20711
20712
20713 #line 6735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20714 WriteTo(__razor_helper_writer, RenderInlineSvg("default","menu"));
20715
20716
20717 #line default
20718 #line hidden
20719 WriteLiteralTo(__razor_helper_writer, "\r\n </button>\r\n ");
20720
20721 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n");
20722
20723
20724 #line 6739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20725
20726
20727 #line default
20728 #line hidden
20729 });
20730
20731 #line 6739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20732 }
20733 #line default
20734 #line hidden
20735
20736
20737 #line 6742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20738 public RazorEngine.Templating.TemplateWriter RenderSignIn()
20739 {
20740 #line default
20741 #line hidden
20742 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
20743
20744 #line 6743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20745
20746 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
20747 var user = User.GetCurrentExtranetUser();
20748 var DesignFolder = Pageview.Layout.Design.Name;
20749 var userType = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value.ToString() : "";
20750 bool showMyOrders = true;
20751 string UserType = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
20752 bool isDesigner = UserType == "designer";
20753 switch (userType)
20754 {
20755 case "Type 1":
20756 //showMyOrders = true;
20757 break;
20758 case "Type 6":
20759 showMyOrders = false;
20760 break;
20761 case "Type 8":
20762 //showMyOrders = true;
20763 break;
20764 case "Type 9":
20765 showMyOrders = false;
20766 break;
20767 default:
20768 showMyOrders = true;
20769 break;
20770 }
20771
20772
20773 if (!areaInfo.NavigationItemsHideSignIn)
20774 {
20775
20776 if (user == null)
20777 {
20778 string message = Translate("Contacteaza-ne");
20779 int signInPageLink = GetPageIdByNavigationTag("SignInPage");
20780 int loginRedirectTemporaryLink = 0;//GetPageIdByNavigationTag("LoginRedirectTemporary");
20781 int signInLink = loginRedirectTemporaryLink > 0 ? loginRedirectTemporaryLink : signInPageLink;
20782
20783 if (!areaInfo.HideCreateAccountLink)
20784 {
20785
20786
20787 #line default
20788 #line hidden
20789 WriteLiteralTo(__razor_helper_writer, " <a");
20790
20791 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 318966), Tuple.Create("\"", 319022)
20792
20793 #line 6783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20794 , Tuple.Create(Tuple.Create("", 318973), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
20795
20796 #line default
20797 #line hidden
20798 , 318973), false)
20799
20800 #line 6783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20801 , Tuple.Create(Tuple.Create("", 318992), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID
20802
20803 #line default
20804 #line hidden
20805 , 318992), false)
20806 );
20807
20808 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--accent btn-create-account hidden inline-flex-md \"");
20809
20810 WriteLiteralTo(__razor_helper_writer, " data-tab=\"CreateAccount\"");
20811
20812 WriteLiteralTo(__razor_helper_writer, ">");
20813
20814
20815 #line 6783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20816 WriteTo(__razor_helper_writer, Translate(Translations.Account.CreateAccount));
20817
20818
20819 #line default
20820 #line hidden
20821 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
20822
20823
20824 #line 6784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20825 }
20826
20827
20828
20829 #line default
20830 #line hidden
20831 WriteLiteralTo(__razor_helper_writer, " <div");
20832
20833 WriteLiteralTo(__razor_helper_writer, " class=\"inline-flex justify-content-center\"");
20834
20835 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
20836
20837 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 319264), Tuple.Create("\'", 319301)
20838
20839 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20840 , Tuple.Create(Tuple.Create("", 319271), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
20841
20842 #line default
20843 #line hidden
20844 , 319271), false)
20845
20846 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20847 , Tuple.Create(Tuple.Create("", 319290), Tuple.Create<System.Object, System.Int32>(signInLink
20848
20849 #line default
20850 #line hidden
20851 , 319290), false)
20852 );
20853
20854 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 319302), Tuple.Create("\"", 319357)
20855
20856 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20857 , Tuple.Create(Tuple.Create("", 319315), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.MyProfile)
20858
20859 #line default
20860 #line hidden
20861 , 319315), false)
20862 );
20863
20864 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-icon btn-sm\"");
20865
20866 WriteLiteralTo(__razor_helper_writer, ">\r\n");
20867
20868 WriteLiteralTo(__razor_helper_writer, " ");
20869
20870
20871 #line 6788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20872 WriteTo(__razor_helper_writer, RenderInlineSvg("default","account"));
20873
20874
20875 #line default
20876 #line hidden
20877 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </div> \r\n");
20878
20879
20880 #line 6791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20881
20882 } else {
20883
20884
20885 #line default
20886 #line hidden
20887 WriteLiteralTo(__razor_helper_writer, " <div");
20888
20889 WriteLiteralTo(__razor_helper_writer, " class=\"header__profile inline-flex justify-content-center\"");
20890
20891 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
20892
20893 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
20894
20895 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon btn-sm header__profile__icon\"");
20896
20897 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open profile action menu\"");
20898
20899 WriteLiteralTo(__razor_helper_writer, ">\r\n");
20900
20901 WriteLiteralTo(__razor_helper_writer, " ");
20902
20903
20904 #line 6795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20905 WriteTo(__razor_helper_writer, RenderInlineSvg("default","account"));
20906
20907
20908 #line default
20909 #line hidden
20910 WriteLiteralTo(__razor_helper_writer, "\r\n </button>\r\n <div");
20911
20912 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\"");
20913
20914 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
20915
20916 WriteLiteralTo(__razor_helper_writer, " id=\"header__profile__details\"");
20917
20918 WriteLiteralTo(__razor_helper_writer, " class=\"header__profile__details \"");
20919
20920 WriteLiteralTo(__razor_helper_writer, ">\r\n");
20921
20922
20923 #line 6799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20924
20925
20926 #line default
20927 #line hidden
20928
20929 #line 6799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20930 if(user != null) {
20931
20932
20933 #line default
20934 #line hidden
20935 WriteLiteralTo(__razor_helper_writer, " <div");
20936
20937 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-sm\"");
20938
20939 WriteLiteralTo(__razor_helper_writer, ">\r\n");
20940
20941 WriteLiteralTo(__razor_helper_writer, " ");
20942
20943
20944 #line 6801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20945 WriteTo(__razor_helper_writer, RenderMendolaClubRefactor(user));
20946
20947
20948 #line default
20949 #line hidden
20950 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
20951
20952
20953 #line 6803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20954 }
20955
20956
20957 #line default
20958 #line hidden
20959 WriteLiteralTo(__razor_helper_writer, " <div");
20960
20961 WriteLiteralTo(__razor_helper_writer, " class=\"list\"");
20962
20963 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n");
20964
20965
20966 #line 6806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20967
20968
20969 #line default
20970 #line hidden
20971
20972 #line 6806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20973 if (!areaInfo.HideMyProfileLink)
20974 {
20975
20976
20977 #line default
20978 #line hidden
20979
20980 #line 6808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20981 WriteTo(__razor_helper_writer, RenderListItem(areaInfo.LinkStart + areaInfo.CustomerDashboardPage.ID, Translate(Translations.Account.MyProfile), "account"));
20982
20983
20984 #line default
20985 #line hidden
20986
20987 #line 6808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20988
20989 }
20990
20991
20992 #line default
20993 #line hidden
20994 WriteLiteralTo(__razor_helper_writer, " ");
20995
20996
20997 #line 6810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
20998 if (!areaInfo.HideMyOrdersLink && showMyOrders && !isDesigner)
20999 {
21000
21001
21002 #line default
21003 #line hidden
21004
21005 #line 6812 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21006 WriteTo(__razor_helper_writer, RenderListItem(areaInfo.LinkStart + areaInfo.CustomerOrdersPage.ID, Translate(Translations.Account.MyOrders), "view-details"));
21007
21008
21009 #line default
21010 #line hidden
21011
21012 #line 6812 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21013
21014 }
21015
21016
21017 #line default
21018 #line hidden
21019 WriteLiteralTo(__razor_helper_writer, " ");
21020
21021
21022 #line 6814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21023 if (!areaInfo.HideSignInFavorites)
21024 {
21025
21026
21027
21028 #line default
21029 #line hidden
21030
21031 #line 6817 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21032 WriteTo(__razor_helper_writer, RenderListItem(areaInfo.LinkStart + areaInfo.MyFavoritesPage.ID, Translate(Translations.Account.MyFavorites), "favorites-off", "hidden-xs"));
21033
21034
21035 #line default
21036 #line hidden
21037
21038 #line 6817 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21039
21040
21041 }
21042
21043
21044 #line default
21045 #line hidden
21046 WriteLiteralTo(__razor_helper_writer, " ");
21047
21048
21049 #line 6820 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21050 if (!areaInfo.HideMySavedCardsLink)
21051 {
21052
21053
21054 #line default
21055 #line hidden
21056
21057 #line 6822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21058 WriteTo(__razor_helper_writer, RenderListItem(areaInfo.LinkStart + areaInfo.SavedCardsPage.ID, Translate(Translations.Account.MySavedCards), "card"));
21059
21060
21061 #line default
21062 #line hidden
21063
21064 #line 6822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21065
21066 }
21067
21068
21069 #line default
21070 #line hidden
21071 WriteLiteralTo(__razor_helper_writer, "\r\n");
21072
21073
21074 #line 6825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21075
21076
21077 #line default
21078 #line hidden
21079
21080 #line 6825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21081 if (user != null && 1 == 2)
21082 {
21083 //var agents = user.GetUsersThatCanSetMeAsSecondary();//.Where(x=>x.Groups.Contains(y=>y.ID == 8404));
21084 var agents = user.GetUsersAndGroupsThatCanSetMeAsSecondary().OfType<User>().Where(u => !string.IsNullOrEmpty(u.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_TeamCode", StringComparison.OrdinalIgnoreCase)).Value as string));
21085
21086 string message = Translate("Contacteaza-ne");
21087 if (agents.Any())
21088 {
21089 foreach (var agent in agents.Take(1))
21090 {
21091 var userGroups = agent.Groups.Select(x => x.ID).ToList();
21092
21093 string secondaryUserName = agent.Name != null && agent.Name != "" ? agent.Name : "";
21094 string secondaryUserPhone = agent.Phone != null && agent.Phone != "" ? agent.Phone : "";
21095 string secondaryUserEmail = agent.Email != null && agent.Email != "" ? agent.Email : "";
21096 string secondaryUserImage = agent.Image != null && agent.Image != "" ? agent.Image : "/Files/Images/no-user.jpg";
21097 string secondaryUserInitials = agent.GetInitials();
21098
21099 string imageresizeURL = "/Admin/Public/GetImage.ashx?width=150&height=150&crop=0&Compression=75&FillCanvas=true&DoNotUpscale=true&image=";
21100 secondaryUserImage = secondaryUserImage.HasValue() ? String.Format("<div class=\"margin-bottom-1rem\"><img class=\"grid__cell-img--left b-lazy b-loaded\" src=\"{0}{1}\"></div>", imageresizeURL, secondaryUserImage) : "";
21101 secondaryUserName = secondaryUserName.HasValue() ? String.Format("<div><h5>{0}</h5></div>", secondaryUserName) : "";
21102 secondaryUserPhone = secondaryUserPhone.HasValue() ? String.Format("<div><a class=\"df-agent-info\" href='tel:{0}'>{0}</a></div>", secondaryUserPhone) : "";
21103 secondaryUserEmail = secondaryUserEmail.HasValue() ? String.Format("<div><a class=\"df-agent-info\" href='mailto:{0}'>{0}</a></div>", secondaryUserEmail) : "";
21104
21105
21106 //if(isSales){
21107
21108
21109 #line default
21110 #line hidden
21111 WriteLiteralTo(__razor_helper_writer, " ");
21112
21113 WriteLiteralTo(__razor_helper_writer, "\r\n");
21114
21115 WriteLiteralTo(__razor_helper_writer, " ");
21116
21117
21118 #line 6852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21119 WriteTo(__razor_helper_writer, SnippetStart("SalesAgentProfileComplete"));
21120
21121
21122 #line default
21123 #line hidden
21124 WriteLiteralTo(__razor_helper_writer, "\r\n <div");
21125
21126 WriteLiteralTo(__razor_helper_writer, " class=\"df-agent-card\"");
21127
21128 WriteLiteralTo(__razor_helper_writer, ">\r\n <h4");
21129
21130 WriteLiteralTo(__razor_helper_writer, " class=\"margin-bottom-1rem\"");
21131
21132 WriteLiteralTo(__razor_helper_writer, ">");
21133
21134
21135 #line 6854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21136 WriteTo(__razor_helper_writer, Translate("Agent", "Agent"));
21137
21138
21139 #line default
21140 #line hidden
21141 WriteLiteralTo(__razor_helper_writer, "</h4>\r\n");
21142
21143 WriteLiteralTo(__razor_helper_writer, " ");
21144
21145
21146 #line 6855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21147 WriteTo(__razor_helper_writer, secondaryUserImage);
21148
21149
21150 #line default
21151 #line hidden
21152 WriteLiteralTo(__razor_helper_writer, "\r\n");
21153
21154 WriteLiteralTo(__razor_helper_writer, " ");
21155
21156
21157 #line 6856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21158 WriteTo(__razor_helper_writer, secondaryUserName);
21159
21160
21161 #line default
21162 #line hidden
21163 WriteLiteralTo(__razor_helper_writer, "\r\n");
21164
21165 WriteLiteralTo(__razor_helper_writer, " ");
21166
21167
21168 #line 6857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21169 WriteTo(__razor_helper_writer, secondaryUserPhone);
21170
21171
21172 #line default
21173 #line hidden
21174 WriteLiteralTo(__razor_helper_writer, "\r\n");
21175
21176 WriteLiteralTo(__razor_helper_writer, " ");
21177
21178
21179 #line 6858 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21180 WriteTo(__razor_helper_writer, secondaryUserEmail);
21181
21182
21183 #line default
21184 #line hidden
21185 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
21186
21187 WriteLiteralTo(__razor_helper_writer, " ");
21188
21189
21190 #line 6860 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21191 WriteTo(__razor_helper_writer, SnippetEnd("SalesAgentProfileComplete"));
21192
21193
21194 #line default
21195 #line hidden
21196 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
21197
21198 WriteLiteralTo(__razor_helper_writer, " ");
21199
21200
21201 #line 6862 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21202 WriteTo(__razor_helper_writer, SnippetStart("SalesAgentProfileSimple"));
21203
21204
21205 #line default
21206 #line hidden
21207 WriteLiteralTo(__razor_helper_writer, "\r\n <div");
21208
21209 WriteLiteralTo(__razor_helper_writer, " class=\"agent\"");
21210
21211 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
21212
21213 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
21214
21215 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon agent__icon\"");
21216
21217 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open sales agent action menu\"");
21218
21219 WriteLiteralTo(__razor_helper_writer, ">\r\n <ion-icon");
21220
21221 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 324570), Tuple.Create("\"", 324650)
21222 , Tuple.Create(Tuple.Create("", 324576), Tuple.Create("/Files/Templates/Designs/", 324576), true)
21223
21224 #line 6865 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21225 , Tuple.Create(Tuple.Create("", 324601), Tuple.Create<System.Object, System.Int32>(DesignFolder
21226
21227 #line default
21228 #line hidden
21229 , 324601), false)
21230 , Tuple.Create(Tuple.Create("", 324614), Tuple.Create("/icons/default/help-circle-sharp.svg", 324614), true)
21231 );
21232
21233 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n " +
21234 " <div");
21235
21236 WriteLiteralTo(__razor_helper_writer, " class=\"agent__details \"");
21237
21238 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
21239
21240 WriteLiteralTo(__razor_helper_writer, " class=\"list\"");
21241
21242 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
21243
21244 WriteLiteralTo(__razor_helper_writer, " class=\"agent-info\"");
21245
21246 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
21247
21248 WriteLiteralTo(__razor_helper_writer, " class=\"item h5 agent__name\"");
21249
21250 WriteLiteralTo(__razor_helper_writer, ">");
21251
21252
21253 #line 6870 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21254 WriteTo(__razor_helper_writer, agent.Name);
21255
21256
21257 #line default
21258 #line hidden
21259 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
21260
21261 WriteLiteralTo(__razor_helper_writer, " ");
21262
21263
21264 #line 6871 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21265 WriteTo(__razor_helper_writer, RenderListItem("tel:" + agent.Phone, agent.Phone, "call"));
21266
21267
21268 #line default
21269 #line hidden
21270 WriteLiteralTo(__razor_helper_writer, "\r\n");
21271
21272 WriteLiteralTo(__razor_helper_writer, " ");
21273
21274
21275 #line 6872 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21276 WriteTo(__razor_helper_writer, RenderListItem("mailto:" + agent.Email, agent.Email, "mail"));
21277
21278
21279 #line default
21280 #line hidden
21281 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <" +
21282 "/div>\r\n </div>\r\n </d" +
21283 "iv>\r\n");
21284
21285 WriteLiteralTo(__razor_helper_writer, " ");
21286
21287
21288 #line 6877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21289 WriteTo(__razor_helper_writer, SnippetEnd("SalesAgentProfileSimple"));
21290
21291
21292 #line default
21293 #line hidden
21294 WriteLiteralTo(__razor_helper_writer, "\r\n ");
21295
21296 WriteLiteralTo(__razor_helper_writer, "\r\n");
21297
21298
21299 #line 6879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21300 //}
21301 string messengerPhone = agent.Phone != "" ? agent.Phone : areaInfo.ContactNumber;
21302
21303
21304 }
21305 }
21306 }
21307
21308
21309 #line default
21310 #line hidden
21311 WriteLiteralTo(__razor_helper_writer, " <div");
21312
21313 WriteLiteralTo(__razor_helper_writer, " class=\"item\"");
21314
21315 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
21316
21317 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 325744), Tuple.Create("\"", 325804)
21318 , Tuple.Create(Tuple.Create("", 325751), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 325751), true)
21319
21320 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21321 , Tuple.Create(Tuple.Create("", 325788), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId
21322
21323 #line default
21324 #line hidden
21325 , 325788), false)
21326 );
21327
21328 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 py-1 btn btn-fill--light justify-content-start h5\"");
21329
21330 WriteLiteralTo(__razor_helper_writer, " icon-position=\"left\"");
21331
21332 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 325890), Tuple.Create("\"", 325938)
21333
21334 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21335 , Tuple.Create(Tuple.Create("", 325898), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.SignOut)
21336
21337 #line default
21338 #line hidden
21339 , 325898), false)
21340 );
21341
21342 WriteLiteralTo(__razor_helper_writer, "><span>");
21343
21344
21345 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21346 WriteTo(__razor_helper_writer, Translate(Translations.Account.SignOut));
21347
21348
21349 #line default
21350 #line hidden
21351 WriteLiteralTo(__razor_helper_writer, "</span><span");
21352
21353 WriteLiteralTo(__razor_helper_writer, " class=\"icon\"");
21354
21355 WriteLiteralTo(__razor_helper_writer, ">");
21356
21357
21358 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21359 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "log-out"));
21360
21361
21362 #line default
21363 #line hidden
21364 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </div>\r\n\r\n </div>\r\n " +
21365 " </div>\r\n </div>\r\n </div>\r\n");
21366
21367
21368 #line 6894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21369
21370
21371
21372 }
21373
21374
21375 }
21376
21377
21378 #line default
21379 #line hidden
21380 });
21381
21382 #line 6901 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21383 }
21384 #line default
21385 #line hidden
21386
21387
21388 #line 6905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21389 public RazorEngine.Templating.TemplateWriter RenderAgentInfo()
21390 {
21391 #line default
21392 #line hidden
21393 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21394
21395 #line 6906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21396
21397
21398
21399 #line default
21400 #line hidden
21401 WriteLiteralTo(__razor_helper_writer, " ");
21402
21403 WriteLiteralTo(__razor_helper_writer, "\r\n");
21404
21405 WriteLiteralTo(__razor_helper_writer, " ");
21406
21407
21408 #line 6908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21409 WriteTo(__razor_helper_writer, RenderSnippet("SalesAgentProfileSimple"));
21410
21411
21412 #line default
21413 #line hidden
21414 WriteLiteralTo(__razor_helper_writer, "\r\n ");
21415
21416 WriteLiteralTo(__razor_helper_writer, "\r\n");
21417
21418
21419 #line 6910 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21420
21421
21422 #line default
21423 #line hidden
21424 });
21425
21426 #line 6910 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21427 }
21428 #line default
21429 #line hidden
21430
21431
21432 #line 6912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21433 public RazorEngine.Templating.TemplateWriter RenderListItem(string link = "", string text = "", string icon = "bug", string cssClass = "") {
21434 #line default
21435 #line hidden
21436 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21437
21438 #line 6912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21439
21440 if(text.HasValue()){
21441
21442
21443 #line default
21444 #line hidden
21445 WriteLiteralTo(__razor_helper_writer, " <div");
21446
21447 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 326528), Tuple.Create("\"", 326550)
21448 , Tuple.Create(Tuple.Create("", 326536), Tuple.Create("item", 326536), true)
21449
21450 #line 6914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21451 , Tuple.Create(Tuple.Create(" ", 326540), Tuple.Create<System.Object, System.Int32>(cssClass
21452
21453 #line default
21454 #line hidden
21455 , 326541), false)
21456 );
21457
21458 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
21459
21460 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 326564), Tuple.Create("\"", 326576)
21461
21462 #line 6915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21463 , Tuple.Create(Tuple.Create("", 326571), Tuple.Create<System.Object, System.Int32>(link
21464
21465 #line default
21466 #line hidden
21467 , 326571), false)
21468 );
21469
21470 WriteLiteralTo(__razor_helper_writer, " class=\"w-100 py-1 btn btn-fill--light justify-content-start h5\"");
21471
21472 WriteLiteralTo(__razor_helper_writer, " icon-position=\"left\"");
21473
21474 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>");
21475
21476
21477 #line 6916 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21478 WriteTo(__razor_helper_writer, text);
21479
21480
21481 #line default
21482 #line hidden
21483 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <span");
21484
21485 WriteLiteralTo(__razor_helper_writer, " class=\"icon\"");
21486
21487 WriteLiteralTo(__razor_helper_writer, ">");
21488
21489
21490 #line 6917 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21491 WriteTo(__razor_helper_writer, RenderInlineSvg("default",icon));
21492
21493
21494 #line default
21495 #line hidden
21496 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </div>\r\n");
21497
21498
21499 #line 6920 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21500 }
21501
21502
21503 #line default
21504 #line hidden
21505 });
21506
21507 #line 6921 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21508 }
21509 #line default
21510 #line hidden
21511
21512
21513 #line 6923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21514 public RazorEngine.Templating.TemplateWriter RenderSeparator()
21515 {
21516 #line default
21517 #line hidden
21518 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21519
21520 #line 6924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21521
21522
21523
21524 #line default
21525 #line hidden
21526 WriteLiteralTo(__razor_helper_writer, " <li> </li>\r\n");
21527
21528
21529 #line 6926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21530
21531
21532 #line default
21533 #line hidden
21534 });
21535
21536 #line 6926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21537 }
21538 #line default
21539 #line hidden
21540
21541
21542 #line 6948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21543 public RazorEngine.Templating.TemplateWriter RenderHeaderFavorites()
21544 {
21545 #line default
21546 #line hidden
21547 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21548
21549 #line 6949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21550
21551 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
21552 var user = User.GetCurrentExtranetUser();
21553 if(user == null) {
21554
21555
21556 #line default
21557 #line hidden
21558 WriteLiteralTo(__razor_helper_writer, " <div");
21559
21560 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\"");
21561
21562 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
21563
21564 WriteLiteralTo(__razor_helper_writer, " class=\"header__favorites inline-flex justify-content-center align-items-start hi" +
21565 "dden flex-xs\"");
21566
21567 WriteLiteralTo(__razor_helper_writer, " data-tooltip-content=\"");
21568
21569
21570 #line 6954 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21571 WriteTo(__razor_helper_writer, Translate(Translations.Account.LoginToViewFavorites));
21572
21573
21574 #line default
21575 #line hidden
21576 WriteLiteralTo(__razor_helper_writer, "\"");
21577
21578 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
21579
21580 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-icon btn-sm h-unset\"");
21581
21582 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Favorites\"");
21583
21584 WriteLiteralTo(__razor_helper_writer, ">\r\n");
21585
21586 WriteLiteralTo(__razor_helper_writer, " ");
21587
21588
21589 #line 6956 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21590 WriteTo(__razor_helper_writer, RenderInlineSvg("default","favorites-off"));
21591
21592
21593 #line default
21594 #line hidden
21595 WriteLiteralTo(__razor_helper_writer, "\r\n </button>\r\n ");
21596
21597 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n");
21598
21599
21600 #line 6961 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21601 }
21602 else
21603 {
21604
21605
21606
21607 #line default
21608 #line hidden
21609 WriteLiteralTo(__razor_helper_writer, " <div");
21610
21611 WriteLiteralTo(__razor_helper_writer, " class=\"header__favorites inline-flex justify-content-center align-items-start hi" +
21612 "dden flex-xs\"");
21613
21614 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
21615
21616 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 328289), Tuple.Create("\"", 328343)
21617
21618 #line 6966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21619 , Tuple.Create(Tuple.Create("", 328296), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
21620
21621 #line default
21622 #line hidden
21623 , 328296), false)
21624
21625 #line 6966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21626 , Tuple.Create(Tuple.Create("", 328315), Tuple.Create<System.Object, System.Int32>(areaInfo.MyFavoritesPage.ID
21627
21628 #line default
21629 #line hidden
21630 , 328315), false)
21631 );
21632
21633 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-icon btn-sm h-unset\"");
21634
21635 WriteLiteralTo(__razor_helper_writer, ">\r\n");
21636
21637 WriteLiteralTo(__razor_helper_writer, " ");
21638
21639
21640 #line 6967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21641 WriteTo(__razor_helper_writer, RenderInlineSvg("default","favorites-off"));
21642
21643
21644 #line default
21645 #line hidden
21646 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n ");
21647
21648 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
21649
21650
21651 #line 6971 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21652
21653 }
21654
21655
21656 #line default
21657 #line hidden
21658 });
21659
21660 #line 6973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21661 }
21662 #line default
21663 #line hidden
21664
21665
21666 #line 6982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21667
21668 public static string FormatPriceDecimals (string formattedPrice)
21669 {
21670 if(formattedPrice != "")
21671 {
21672 if(formattedPrice.IndexOf(",") > 0 && formattedPrice.IndexOf(" ") > 0)
21673 {
21674 formattedPrice = formattedPrice.Replace(",", ",<sup>");
21675 formattedPrice = formattedPrice.Replace(" ", "</sup> ");
21676 }
21677 }
21678 return formattedPrice;
21679 }
21680
21681 #line default
21682 #line hidden
21683
21684
21685 #line 7036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21686 public RazorEngine.Templating.TemplateWriter RenderMiniCartHeaderTrigger()
21687 {
21688 #line default
21689 #line hidden
21690 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21691
21692 #line 7037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21693
21694 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
21695 var DesignFolder = Pageview.Layout.Design.Name;
21696 string cartProductsCount = Model.Cart.TotalProductsCount.ToString();
21697 string cartProductsTotalPriceReformated = Model.Cart.TotalPrice != null ? FormatPriceDecimals(Model.Cart.TotalPrice.Price.Formatted) : "";
21698 // if(areaInfo.ShowPrice) {
21699
21700
21701 #line default
21702 #line hidden
21703 WriteLiteralTo(__razor_helper_writer, " <div");
21704
21705 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap align-items-center justify-content-center\"");
21706
21707 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
21708
21709 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon btn-sm\"");
21710
21711 WriteLiteralTo(__razor_helper_writer, " data-role=\"minicart-trigger\"");
21712
21713 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
21714
21715 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap place-items-center\"");
21716
21717 WriteLiteralTo(__razor_helper_writer, " id=\"cartCounter\"");
21718
21719 WriteLiteralTo(__razor_helper_writer, " data-template=\"MiniCartCounterContent\"");
21720
21721 WriteLiteralTo(__razor_helper_writer, " data-order-feed=\"");
21722
21723
21724 #line 7045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21725 WriteTo(__razor_helper_writer, areaInfo.LinkStart);
21726
21727
21728 #line default
21729 #line hidden
21730
21731 #line 7045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21732 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
21733
21734
21735 #line default
21736 #line hidden
21737 WriteLiteralTo(__razor_helper_writer, "\"");
21738
21739 WriteLiteralTo(__razor_helper_writer, " data-json=\"");
21740
21741
21742 #line 7045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21743 WriteTo(__razor_helper_writer, areaInfo.LinkStart);
21744
21745
21746 #line default
21747 #line hidden
21748
21749 #line 7045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21750 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
21751
21752
21753 #line default
21754 #line hidden
21755 WriteLiteralTo(__razor_helper_writer, "\"");
21756
21757 WriteLiteralTo(__razor_helper_writer, ">\r\n");
21758
21759
21760 #line 7046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21761
21762
21763 #line default
21764 #line hidden
21765
21766 #line 7046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21767 if (Model.Cart.TotalProductsCount > 0)
21768 {
21769
21770
21771 #line default
21772 #line hidden
21773
21774 #line 7048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21775 WriteTo(__razor_helper_writer, RenderInlineSvg("default","cart-on"));
21776
21777
21778 #line default
21779 #line hidden
21780
21781 #line 7048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21782
21783 }
21784 else
21785 {
21786
21787
21788 #line default
21789 #line hidden
21790
21791 #line 7052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21792 WriteTo(__razor_helper_writer, RenderInlineSvg("default","cart"));
21793
21794
21795 #line default
21796 #line hidden
21797
21798 #line 7052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21799
21800 }
21801
21802
21803 #line default
21804 #line hidden
21805 WriteLiteralTo(__razor_helper_writer, " </span>\r\n </button>\r\n ");
21806
21807 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n </div>\r\n");
21808
21809
21810 #line 7059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21811
21812
21813 #line default
21814 #line hidden
21815
21816 #line 7059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21817
21818
21819
21820 #line default
21821 #line hidden
21822
21823 #line 7060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21824
21825
21826
21827 #line default
21828 #line hidden
21829
21830 #line 7061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21831
21832
21833
21834 #line default
21835 #line hidden
21836
21837 #line 7062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21838
21839
21840
21841 #line default
21842 #line hidden
21843
21844 #line 7063 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21845
21846
21847
21848 #line default
21849 #line hidden
21850
21851 #line 7064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21852
21853
21854
21855 #line default
21856 #line hidden
21857
21858 #line 7065 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21859
21860
21861
21862 #line default
21863 #line hidden
21864
21865 #line 7066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21866
21867
21868
21869 #line default
21870 #line hidden
21871
21872 #line 7067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21873
21874
21875 // }
21876
21877
21878
21879 #line default
21880 #line hidden
21881 });
21882
21883 #line 7071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21884 }
21885 #line default
21886 #line hidden
21887
21888
21889 #line 7097 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21890 public RazorEngine.Templating.TemplateWriter RenderDownloadCart()
21891 {
21892 #line default
21893 #line hidden
21894 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21895
21896 #line 7098 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21897
21898 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
21899
21900
21901
21902 #line default
21903 #line hidden
21904 WriteLiteralTo(__razor_helper_writer, " <a");
21905
21906 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 333422), Tuple.Create("\"", 333477)
21907
21908 #line 7101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21909 , Tuple.Create(Tuple.Create("", 333429), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
21910
21911 #line default
21912 #line hidden
21913 , 333429), false)
21914
21915 #line 7101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21916 , Tuple.Create(Tuple.Create("", 333448), Tuple.Create<System.Object, System.Int32>(areaInfo.DownloadCartPage.ID
21917
21918 #line default
21919 #line hidden
21920 , 333448), false)
21921 );
21922
21923 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
21924
21925 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-cart-arrow-down fa-1_5x\"");
21926
21927 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </a>\r\n");
21928
21929
21930 #line 7104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21931
21932
21933 #line default
21934 #line hidden
21935 });
21936
21937 #line 7104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21938 }
21939 #line default
21940 #line hidden
21941
21942
21943 #line 7113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21944
21945 public class SearchConfiguration
21946 {
21947 public string
21948 searchFeedId,
21949 searchSecondFeedId,
21950 resultPageLink,
21951 searchPlaceholder,
21952 searchType,
21953 searchTemplate,
21954 searchContentTemplate,
21955 searchValue;
21956
21957 public bool
21958 showGroups;
21959
21960 public int
21961 groupsFeedId;
21962
21963 public SearchConfiguration()
21964 {
21965 searchFeedId = "";
21966 searchSecondFeedId = "";
21967 searchType = "product-search";
21968 searchContentTemplate = "";
21969 showGroups = true;
21970 }
21971 }
21972
21973 #line default
21974 #line hidden
21975
21976
21977 #line 7176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21978 public RazorEngine.Templating.TemplateWriter RenderHeaderSearchIcon()
21979 {
21980 #line default
21981 #line hidden
21982 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
21983
21984 #line 7177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
21985
21986
21987
21988 #line default
21989 #line hidden
21990 WriteLiteralTo(__razor_helper_writer, " <div");
21991
21992 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap justify-content-center align-items-start\"");
21993
21994 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
21995
21996 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
21997
21998 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon btn-sm\"");
21999
22000 WriteLiteralTo(__razor_helper_writer, " aria-label=\"Open Search\"");
22001
22002 WriteLiteralTo(__razor_helper_writer, " data-role=\"open-search-bar\"");
22003
22004 WriteLiteralTo(__razor_helper_writer, ">\r\n");
22005
22006 WriteLiteralTo(__razor_helper_writer, " ");
22007
22008
22009 #line 7180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22010 WriteTo(__razor_helper_writer, RenderInlineSvg("default","search"));
22011
22012
22013 #line default
22014 #line hidden
22015 WriteLiteralTo(__razor_helper_writer, "\r\n </button>\r\n ");
22016
22017 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n");
22018
22019
22020 #line 7184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22021
22022
22023 #line default
22024 #line hidden
22025 });
22026
22027 #line 7184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22028 }
22029 #line default
22030 #line hidden
22031
22032
22033 #line 7186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22034 public RazorEngine.Templating.TemplateWriter RenderSearch(string type = "mini-search")
22035 {
22036 #line default
22037 #line hidden
22038 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22039
22040 #line 7187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22041
22042 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
22043
22044 SearchConfiguration searchConfiguration = null;
22045
22046 switch (areaInfo.SearchType) {
22047 case "contentSearch":
22048 searchConfiguration = new SearchConfiguration() {
22049 searchFeedId = areaInfo.ContentSearchFeedPage + "&Areaid=" + areaInfo.AreaId + "&pagesOnly=true",
22050 resultPageLink = areaInfo.LinkStart + areaInfo.ContentSearchFeedPage.ID,
22051 searchPlaceholder = Translate(Translations.General.SearchPage),
22052 groupsFeedId = 0,
22053 searchType = "content-search",
22054 searchTemplate = "SearchPagesTemplate",
22055 showGroups = false
22056 };
22057 break;
22058 case "combinedSearch":
22059 searchConfiguration = new SearchConfiguration() {
22060 searchFeedId = areaInfo.ProductsPage.ID + "&feed=true",
22061 searchSecondFeedId = areaInfo.ContentSearchFeedPage.ID + "&Areaid=" + areaInfo.AreaId + "&pagesOnly=true",
22062 resultPageLink = Converter.ToString(areaInfo.ProductsPage.ID),
22063 searchPlaceholder = Translate(Translations.Products.SearchProductsOrPages),
22064 groupsFeedId = areaInfo.ProductGroupsFeedPage.ID,
22065 searchType = "combined-search",
22066 searchTemplate = "SearchProductsTemplateWrap",
22067 searchContentTemplate = "SearchPagesTemplateWrap",
22068 showGroups = areaInfo.ShowGroupsSelector
22069 };
22070 break;
22071 default: //productSearch
22072 searchConfiguration = new SearchConfiguration() {
22073 resultPageLink = Converter.ToString(GetPageIdByNavigationTag("ProductsPage")),
22074 searchFeedId = GetPageIdByNavigationTag("ProductsPage") + "&feed=true",
22075 groupsFeedId = areaInfo.ProductGroupsFeedPage.ID,
22076 searchPlaceholder = Translate(Translations.Products.SearchProducts),
22077 searchTemplate = "SearchProductsTemplate",
22078 searchType = "product-search",
22079 showGroups = areaInfo.ShowGroupsSelector
22080 };
22081 break;
22082 }
22083 searchConfiguration.searchValue = HttpContext.Current.Request.QueryString.Get("Search") ?? "";
22084
22085 if (type == "mini-search") {
22086
22087
22088 #line default
22089 #line hidden
22090
22091 #line 7232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22092
22093 } else {
22094
22095
22096 #line default
22097 #line hidden
22098
22099 #line 7234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22100 WriteTo(__razor_helper_writer, RenderSearchBar(searchConfiguration));
22101
22102
22103 #line default
22104 #line hidden
22105
22106 #line 7234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22107
22108 }
22109
22110
22111 #line default
22112 #line hidden
22113 });
22114
22115 #line 7236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22116 }
22117 #line default
22118 #line hidden
22119
22120
22121 #line 7238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22122 public RazorEngine.Templating.TemplateWriter RenderSearchBar(SearchConfiguration options)
22123 {
22124 #line default
22125 #line hidden
22126 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22127
22128 #line 7239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22129
22130 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
22131 var categoriesFeed = GetPageIdByNavigationTag("SearchCategoriesFeed");
22132 var searchPageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + options.resultPageLink);
22133 var DesignFolder = Pageview.Layout.Design.Name;
22134 if (options.showGroups)
22135 {
22136
22137
22138 #line default
22139 #line hidden
22140 WriteLiteralTo(__razor_helper_writer, " <button");
22141
22142 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
22143
22144 WriteLiteralTo(__razor_helper_writer, " data-group-id=\"all\"");
22145
22146 WriteLiteralTo(__razor_helper_writer, ">");
22147
22148
22149 #line 7246 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22150 WriteTo(__razor_helper_writer, Translate(Translations.General.All));
22151
22152
22153 #line default
22154 #line hidden
22155 WriteLiteralTo(__razor_helper_writer, "</button>\r\n");
22156
22157 WriteLiteralTo(__razor_helper_writer, " <ul");
22158
22159 WriteLiteralTo(__razor_helper_writer, " id=\"ProductSearchBarGroupsContent\"");
22160
22161 WriteLiteralTo(__razor_helper_writer, " data-template=\"SearchGroupsTemplate\"");
22162
22163 WriteLiteralTo(__razor_helper_writer, " data-recent-searched-template=\"RecentSearchesTemplate\"");
22164
22165 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"/Default.aspx?ID=");
22166
22167
22168 #line 7247 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22169 WriteTo(__razor_helper_writer, options.groupsFeedId);
22170
22171
22172 #line default
22173 #line hidden
22174 WriteLiteralTo(__razor_helper_writer, "&feedType=productGroups\"");
22175
22176 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22177
22178 WriteLiteralTo(__razor_helper_writer, " data-preloader=\"minimal\"");
22179
22180 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
22181
22182
22183 #line 7248 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22184 }
22185
22186
22187 #line default
22188 #line hidden
22189 WriteLiteralTo(__razor_helper_writer, " <div");
22190
22191 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead__container\"");
22192
22193 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22194
22195 WriteLiteralTo(__razor_helper_writer, " class=\"c0 bg-light\"");
22196
22197 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22198
22199 WriteLiteralTo(__razor_helper_writer, " id=\"headerSearch\"");
22200
22201 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead w-100 relative mx-auto flex-wrap w-100\"");
22202
22203 WriteLiteralTo(__razor_helper_writer, ">\r\n <form");
22204
22205 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 339143), Tuple.Create("\"", 339166)
22206
22207 #line 7252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22208 , Tuple.Create(Tuple.Create("", 339152), Tuple.Create<System.Object, System.Int32>(searchPageUrl
22209
22210 #line default
22211 #line hidden
22212 , 339152), false)
22213 );
22214
22215 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead__input flex-wrap w-100\"");
22216
22217 WriteLiteralTo(__razor_helper_writer, " method=\"GET\"");
22218
22219 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
22220
22221 WriteLiteralTo(__razor_helper_writer, "\r\n <df-input");
22222
22223 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
22224
22225 WriteLiteralTo(__razor_helper_writer, " name=\"Search\"");
22226
22227 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 339371), Tuple.Create("\"", 339399)
22228
22229 #line 7254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22230 , Tuple.Create(Tuple.Create("", 339379), Tuple.Create<System.Object, System.Int32>(options.searchValue
22231
22232 #line default
22233 #line hidden
22234 , 339379), false)
22235 );
22236
22237 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 339400), Tuple.Create("\"", 339434)
22238
22239 #line 7254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22240 , Tuple.Create(Tuple.Create("", 339408), Tuple.Create<System.Object, System.Int32>(options.searchPlaceholder
22241
22242 #line default
22243 #line hidden
22244 , 339408), false)
22245 );
22246
22247 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n <button");
22248
22249 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
22250
22251 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon icon-xl color-brand typeahead__loading mx-1 hidden\"");
22252
22253 WriteLiteralTo(__razor_helper_writer, ">");
22254
22255
22256 #line 7255 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22257 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "refresh"));
22258
22259
22260 #line default
22261 #line hidden
22262 WriteLiteralTo(__razor_helper_writer, "</button>\r\n <button");
22263
22264 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
22265
22266 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon icon-xl mx-1\"");
22267
22268 WriteLiteralTo(__razor_helper_writer, " data-role=\"close-typeahead\"");
22269
22270 WriteLiteralTo(__razor_helper_writer, ">");
22271
22272
22273 #line 7256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22274 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "close-raw"));
22275
22276
22277 #line default
22278 #line hidden
22279 WriteLiteralTo(__razor_helper_writer, "</button>\r\n <button");
22280
22281 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
22282
22283 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon icon-xl typeahead__submit\"");
22284
22285 WriteLiteralTo(__razor_helper_writer, ">");
22286
22287
22288 #line 7257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22289 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "search"));
22290
22291
22292 #line default
22293 #line hidden
22294 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </form>\r\n\r\n");
22295
22296
22297 #line 7260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22298
22299
22300 #line default
22301 #line hidden
22302
22303 #line 7260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22304 if (!options.searchSecondFeedId.HasValue())
22305 {
22306
22307
22308 #line default
22309 #line hidden
22310 WriteLiteralTo(__razor_helper_writer, " <div");
22311
22312 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead__results border p-2 bg-light hidden\"");
22313
22314 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul");
22315
22316 WriteLiteralTo(__razor_helper_writer, " id=\"ProductSearchBarContent\"");
22317
22318 WriteLiteralTo(__razor_helper_writer, " class=\"grid-xs-2 grid-md-3 gap-2 child-mb-2\"");
22319
22320 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22321
22322
22323 #line 7263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22324 WriteTo(__razor_helper_writer, options.searchTemplate);
22325
22326
22327 #line default
22328 #line hidden
22329 WriteLiteralTo(__razor_helper_writer, "\"");
22330
22331 WriteLiteralTo(__razor_helper_writer, " data-recent-searched-template=\"RecentSearchesTemplate\"");
22332
22333 WriteLiteralTo(__razor_helper_writer, " data-feed=\"/Default.aspx?ID=");
22334
22335
22336 #line 7263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22337 WriteTo(__razor_helper_writer, options.searchFeedId);
22338
22339
22340 #line default
22341 #line hidden
22342 WriteLiteralTo(__razor_helper_writer, "&feedType=productsOnly&pagesize=10\"");
22343
22344 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22345
22346 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n </div>\r\n");
22347
22348
22349 #line 7265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22350 }
22351 else
22352 {
22353
22354
22355 #line default
22356 #line hidden
22357 WriteLiteralTo(__razor_helper_writer, " <div");
22358
22359 WriteLiteralTo(__razor_helper_writer, " class=\"typeapead__results two-columns\"");
22360
22361 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22362
22363 WriteLiteralTo(__razor_helper_writer, " id=\"ProductSearchBarContent\"");
22364
22365 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22366
22367
22368 #line 7269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22369 WriteTo(__razor_helper_writer, options.searchTemplate);
22370
22371
22372 #line default
22373 #line hidden
22374 WriteLiteralTo(__razor_helper_writer, "\"");
22375
22376 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22377
22378 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <div");
22379
22380 WriteLiteralTo(__razor_helper_writer, " id=\"ContentSearchBarContent\"");
22381
22382 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22383
22384
22385 #line 7270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22386 WriteTo(__razor_helper_writer, options.searchContentTemplate);
22387
22388
22389 #line default
22390 #line hidden
22391 WriteLiteralTo(__razor_helper_writer, "\"");
22392
22393 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22394
22395 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </div>\r\n");
22396
22397
22398 #line 7272 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22399 }
22400
22401
22402 #line default
22403 #line hidden
22404 WriteLiteralTo(__razor_helper_writer, " <div");
22405
22406 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead__backdrop\"");
22407
22408 WriteLiteralTo(__razor_helper_writer, " data-role=\"close-typeahead\"");
22409
22410 WriteLiteralTo(__razor_helper_writer, "></div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n");
22411
22412
22413 #line 7278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22414
22415
22416
22417
22418 #line default
22419 #line hidden
22420 });
22421
22422 #line 7280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22423 }
22424 #line default
22425 #line hidden
22426
22427
22428 #line 7282 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22429 public RazorEngine.Templating.TemplateWriter RenderMiniSearch(SearchConfiguration options)
22430 {
22431 #line default
22432 #line hidden
22433 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22434
22435 #line 7283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22436
22437
22438
22439 #line default
22440 #line hidden
22441 WriteLiteralTo(__razor_helper_writer, " <div");
22442
22443 WriteLiteralTo(__razor_helper_writer, " onmouseover=\"document.getElementById(\'headerSearch\').focus()\"");
22444
22445 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n <df-input");
22446
22447 WriteLiteralTo(__razor_helper_writer, " id=\"headerSearch\"");
22448
22449 WriteLiteralTo(__razor_helper_writer, " type=\"text\"");
22450
22451 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 341193), Tuple.Create("\"", 341221)
22452
22453 #line 7286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22454 , Tuple.Create(Tuple.Create("", 341201), Tuple.Create<System.Object, System.Int32>(options.searchValue
22455
22456 #line default
22457 #line hidden
22458 , 341201), false)
22459 );
22460
22461 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 341222), Tuple.Create("\"", 341256)
22462
22463 #line 7286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22464 , Tuple.Create(Tuple.Create("", 341230), Tuple.Create<System.Object, System.Int32>(options.searchPlaceholder
22465
22466 #line default
22467 #line hidden
22468 , 341230), false)
22469 );
22470
22471 WriteLiteralTo(__razor_helper_writer, " mask=\"^[A-Za-z]+$\"");
22472
22473 WriteLiteralTo(__razor_helper_writer, "></df-input>\r\n");
22474
22475
22476 #line 7287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22477
22478
22479 #line default
22480 #line hidden
22481
22482 #line 7287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22483 if (!options.searchSecondFeedId.HasValue())
22484 {
22485
22486
22487 #line default
22488 #line hidden
22489 WriteLiteralTo(__razor_helper_writer, " <ul");
22490
22491 WriteLiteralTo(__razor_helper_writer, " id=\"ProductSearchBarContent\"");
22492
22493 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22494
22495
22496 #line 7289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22497 WriteTo(__razor_helper_writer, options.searchTemplate);
22498
22499
22500 #line default
22501 #line hidden
22502 WriteLiteralTo(__razor_helper_writer, "\"");
22503
22504 WriteLiteralTo(__razor_helper_writer, " data-recent-searched-template=\"RecentSearchesTemplate\"");
22505
22506 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"/Default.aspx?ID=");
22507
22508
22509 #line 7289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22510 WriteTo(__razor_helper_writer, options.searchFeedId);
22511
22512
22513 #line default
22514 #line hidden
22515 WriteLiteralTo(__razor_helper_writer, "&feedType=productsOnly\"");
22516
22517 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22518
22519 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n");
22520
22521
22522 #line 7290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22523 }
22524 else
22525 {
22526
22527
22528 #line default
22529 #line hidden
22530 WriteLiteralTo(__razor_helper_writer, " <div");
22531
22532 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown\"");
22533
22534 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22535
22536 WriteLiteralTo(__razor_helper_writer, " id=\"ProductSearchBarContent\"");
22537
22538 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22539
22540
22541 #line 7294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22542 WriteTo(__razor_helper_writer, options.searchTemplate);
22543
22544
22545 #line default
22546 #line hidden
22547 WriteLiteralTo(__razor_helper_writer, "\"");
22548
22549 WriteLiteralTo(__razor_helper_writer, " data-feed=\"/Default.aspx?ID=");
22550
22551
22552 #line 7294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22553 WriteTo(__razor_helper_writer, options.searchFeedId);
22554
22555
22556 #line default
22557 #line hidden
22558 WriteLiteralTo(__razor_helper_writer, "&feedType=productsOnly&pagesize=10\"");
22559
22560 WriteLiteralTo(__razor_helper_writer, " data-recent-searched-template=\"RecentSearchesTemplate\"");
22561
22562 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22563
22564 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <div");
22565
22566 WriteLiteralTo(__razor_helper_writer, " id=\"ContentSearchBarContent\"");
22567
22568 WriteLiteralTo(__razor_helper_writer, " data-template=\"");
22569
22570
22571 #line 7295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22572 WriteTo(__razor_helper_writer, options.searchContentTemplate);
22573
22574
22575 #line default
22576 #line hidden
22577 WriteLiteralTo(__razor_helper_writer, "\"");
22578
22579 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"/Default.aspx?ID=");
22580
22581
22582 #line 7295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22583 WriteTo(__razor_helper_writer, options.searchSecondFeedId);
22584
22585
22586 #line default
22587 #line hidden
22588 WriteLiteralTo(__razor_helper_writer, "\"");
22589
22590 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\"false\"");
22591
22592 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </div>\r\n");
22593
22594
22595 #line 7297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22596 }
22597
22598
22599 #line default
22600 #line hidden
22601 WriteLiteralTo(__razor_helper_writer, " </div> \r\n");
22602
22603
22604 #line 7299 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22605
22606
22607 #line default
22608 #line hidden
22609 });
22610
22611 #line 7299 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22612 }
22613 #line default
22614 #line hidden
22615
22616
22617 #line 7326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22618 public RazorEngine.Templating.TemplateWriter RenderHeaderMendolaClub(User user)
22619 {
22620 #line default
22621 #line hidden
22622 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22623
22624 #line 7327 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22625
22626
22627 bool isDesigner = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase)).Value.ToString() == "designer" : false;
22628 string mendolaCard = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_Mendola_card", StringComparison.OrdinalIgnoreCase)).Value.ToString();
22629 string designerPoints = !string.IsNullOrEmpty(mendolaCard) ? mendolaCard : "0";
22630 //Gold, Platinium, Black, Blue
22631 var partnerRange = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_PartnerRange", StringComparison.OrdinalIgnoreCase)).Value;
22632 var meterPoints = isDesigner ? designerPoints : user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_MeterPoints", StringComparison.OrdinalIgnoreCase)).Value;
22633 var userType = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value;
22634 string userTypeLevel = userType != null ? userType.ToString() : "";
22635 bool showMendolaClub = true;
22636 switch (userTypeLevel)
22637 {
22638 case "Type 1":
22639 //showMendolaClub = true;
22640 break;
22641 case "Type 6":
22642 showMendolaClub = false;
22643 break;
22644 case "Type 8":
22645 //showMendolaClub = true;
22646 break;
22647 case "Type 9":
22648 showMendolaClub = false;
22649 break;
22650 default:
22651 showMendolaClub = true;
22652 break;
22653 }
22654
22655
22656
22657 if(showMendolaClub || isDesigner)
22658 {
22659 string myCard = Translate("Account_MyCard","My card");
22660 string myCardLevel = isDesigner ? Translate("Blue"): Translate("Account_MyCard_" + partnerRange.ToString(),partnerRange.ToString());
22661 string myCardMeterPoints = isDesigner? Translate("Puncte") : Translate("Account_MyCard_MeterPoints","Meter Points");
22662
22663
22664 #line default
22665 #line hidden
22666 WriteLiteralTo(__razor_helper_writer, " <span");
22667
22668 WriteLiteralTo(__razor_helper_writer, " class=\"mendola-club-points flex-wrap hidden flex-sm\"");
22669
22670 WriteLiteralTo(__razor_helper_writer, "><span");
22671
22672 WriteLiteralTo(__razor_helper_writer, " class=\"mendola-club-points__label font-sm text-center inline-flex justify-conten" +
22673 "t-center\"");
22674
22675 WriteLiteralTo(__razor_helper_writer, " style=\"width: min-content;\"");
22676
22677 WriteLiteralTo(__razor_helper_writer, "><span");
22678
22679 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 345037), Tuple.Create("\"", 345063)
22680 , Tuple.Create(Tuple.Create("", 345045), Tuple.Create("width-", 345045), true)
22681
22682 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22683 , Tuple.Create(Tuple.Create("", 345051), Tuple.Create<System.Object, System.Int32>(myCardLevel
22684
22685 #line default
22686 #line hidden
22687 , 345051), false)
22688 );
22689
22690 WriteLiteralTo(__razor_helper_writer, ">");
22691
22692
22693 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22694 WriteTo(__razor_helper_writer, myCard);
22695
22696
22697 #line default
22698 #line hidden
22699 WriteLiteralTo(__razor_helper_writer, "</span> <span");
22700
22701 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold text-uppercase\"");
22702
22703 WriteLiteralTo(__razor_helper_writer, ">");
22704
22705
22706 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22707 WriteTo(__razor_helper_writer, myCardLevel);
22708
22709
22710 #line default
22711 #line hidden
22712 WriteLiteralTo(__razor_helper_writer, "</span></span> <span");
22713
22714 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 345153), Tuple.Create("\"", 345230)
22715 , Tuple.Create(Tuple.Create("", 345161), Tuple.Create("ml-1", 345161), true)
22716 , Tuple.Create(Tuple.Create(" ", 345165), Tuple.Create("inline-flex", 345166), true)
22717 , Tuple.Create(Tuple.Create(" ", 345177), Tuple.Create("justify-content-center", 345178), true)
22718 , Tuple.Create(Tuple.Create(" ", 345200), Tuple.Create("text-center", 345201), true)
22719 , Tuple.Create(Tuple.Create(" ", 345212), Tuple.Create("card-", 345213), true)
22720
22721 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22722 , Tuple.Create(Tuple.Create("", 345218), Tuple.Create<System.Object, System.Int32>(myCardLevel
22723
22724 #line default
22725 #line hidden
22726 , 345218), false)
22727 );
22728
22729 WriteLiteralTo(__razor_helper_writer, " style=\"width: 8rem;\"");
22730
22731 WriteLiteralTo(__razor_helper_writer, "><span");
22732
22733 WriteLiteralTo(__razor_helper_writer, " class=\"font-md weight-bold font-regular flex-wrap \"");
22734
22735 WriteLiteralTo(__razor_helper_writer, " style=\"align-content: center;\"");
22736
22737 WriteLiteralTo(__razor_helper_writer, ">");
22738
22739
22740 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22741 WriteTo(__razor_helper_writer, meterPoints.ToString());
22742
22743
22744 #line default
22745 #line hidden
22746 WriteLiteralTo(__razor_helper_writer, "</span> <span");
22747
22748 WriteLiteralTo(__razor_helper_writer, " class=\"font-xs text-uppercase w-100\"");
22749
22750 WriteLiteralTo(__razor_helper_writer, ">");
22751
22752
22753 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22754 WriteTo(__razor_helper_writer, myCardMeterPoints);
22755
22756
22757 #line default
22758 #line hidden
22759 WriteLiteralTo(__razor_helper_writer, "</span></span></span>\r\n");
22760
22761
22762 #line 7365 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22763 }
22764
22765
22766 #line default
22767 #line hidden
22768 });
22769
22770 #line 7366 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22771 }
22772 #line default
22773 #line hidden
22774
22775
22776 #line 7387 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22777 public RazorEngine.Templating.TemplateWriter RenderNavigationMegaMenu()
22778 {
22779 #line default
22780 #line hidden
22781 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22782
22783 #line 7388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22784
22785
22786 int megaMenuPageID = GetPageIdByNavigationTag("MegaMenu");
22787 if(megaMenuPageID != 0 )
22788 {
22789 var menuParagraphs = Dynamicweb.Services.Paragraphs.GetParagraphsByPageId(GetPageIdByNavigationTag("MegaMenu"));
22790 //PageView megaMenuPage = PageView.GetPageviewByPageID(GetPageIdByNavigationTag("MegaMenu"));
22791 if(menuParagraphs.Any())
22792 {
22793 foreach(var paragraph in menuParagraphs)
22794 {
22795
22796
22797 #line default
22798 #line hidden
22799 WriteLiteralTo(__razor_helper_writer, " ");
22800
22801
22802 #line 7399 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22803 WriteTo(__razor_helper_writer, RenderParagraphContent(paragraph.ID));
22804
22805
22806 #line default
22807 #line hidden
22808 WriteLiteralTo(__razor_helper_writer, "\r\n");
22809
22810
22811 #line 7400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22812 }
22813 }
22814 }
22815
22816
22817
22818 #line default
22819 #line hidden
22820
22821 #line 7473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22822
22823
22824
22825
22826 #line default
22827 #line hidden
22828
22829 #line 7561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22830
22831
22832
22833
22834 #line default
22835 #line hidden
22836
22837 #line 7682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22838
22839
22840
22841
22842 #line default
22843 #line hidden
22844
22845 #line 7728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22846
22847
22848
22849
22850 #line default
22851 #line hidden
22852 });
22853
22854 #line 7730 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22855 }
22856 #line default
22857 #line hidden
22858
22859
22860 #line 7733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22861 public RazorEngine.Templating.TemplateWriter RenderHeaderBottom()
22862 {
22863 #line default
22864 #line hidden
22865 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22866
22867 #line 7734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22868
22869 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterHeaderBottom").OrderBy(item => item.SortId).ToList();
22870 if (subBlocks.Count > 0)
22871 {
22872
22873
22874 #line default
22875 #line hidden
22876 WriteLiteralTo(__razor_helper_writer, " <div");
22877
22878 WriteLiteralTo(__razor_helper_writer, " class=\"header__bottom section__container container bg-neutral-light\"");
22879
22880 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22881
22882 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
22883
22884 WriteLiteralTo(__razor_helper_writer, ">\r\n");
22885
22886 WriteLiteralTo(__razor_helper_writer, " ");
22887
22888
22889 #line 7740 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22890 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
22891
22892
22893 #line default
22894 #line hidden
22895 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n");
22896
22897
22898 #line 7743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22899 }
22900
22901
22902 #line default
22903 #line hidden
22904 });
22905
22906 #line 7744 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22907 }
22908 #line default
22909 #line hidden
22910
22911
22912 #line 7746 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22913 public RazorEngine.Templating.TemplateWriter RenderHeaderMiddle()
22914 {
22915 #line default
22916 #line hidden
22917 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22918
22919 #line 7747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22920
22921 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterHeaderMiddle").OrderBy(item => item.SortId).ToList();
22922 if (subBlocks.Count > 0)
22923 {
22924
22925
22926 #line default
22927 #line hidden
22928 WriteLiteralTo(__razor_helper_writer, " <div");
22929
22930 WriteLiteralTo(__razor_helper_writer, " class=\"header__middle section__container container\"");
22931
22932 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22933
22934 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
22935
22936 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22937
22938 WriteLiteralTo(__razor_helper_writer, " class=\"header__middle__content grid align-items-center gap-2 gap-md-1 gap-xl-3\"");
22939
22940 WriteLiteralTo(__razor_helper_writer, ">\r\n");
22941
22942 WriteLiteralTo(__razor_helper_writer, " ");
22943
22944
22945 #line 7754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22946 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
22947
22948
22949 #line default
22950 #line hidden
22951 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div>\r\n </div>\r\n");
22952
22953
22954 #line 7758 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22955 }
22956
22957
22958 #line default
22959 #line hidden
22960 });
22961
22962 #line 7759 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22963 }
22964 #line default
22965 #line hidden
22966
22967
22968 #line 7761 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22969 public RazorEngine.Templating.TemplateWriter RenderHeaderTop()
22970 {
22971 #line default
22972 #line hidden
22973 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
22974
22975 #line 7762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
22976
22977 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeaderTop").OrderBy(item => item.SortId).ToList();
22978 if (subBlocks.Count > 0)
22979 {
22980
22981
22982 #line default
22983 #line hidden
22984 WriteLiteralTo(__razor_helper_writer, " <div");
22985
22986 WriteLiteralTo(__razor_helper_writer, " class=\"header__top small\"");
22987
22988 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22989
22990 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container\"");
22991
22992 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22993
22994 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
22995
22996 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
22997
22998 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap space-between\"");
22999
23000 WriteLiteralTo(__razor_helper_writer, ">\r\n");
23001
23002 WriteLiteralTo(__razor_helper_writer, " ");
23003
23004
23005 #line 7770 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23006 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
23007
23008
23009 #line default
23010 #line hidden
23011 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div>\r\n </div>\r\n " +
23012 " </div>\r\n");
23013
23014
23015 #line 7775 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23016 }
23017
23018
23019 #line default
23020 #line hidden
23021 });
23022
23023 #line 7776 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23024 }
23025 #line default
23026 #line hidden
23027
23028
23029 #line 7778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23030 public RazorEngine.Templating.TemplateWriter RenderHeaderContactLinks()
23031 {
23032 #line default
23033 #line hidden
23034 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23035
23036 #line 7779 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23037
23038 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
23039 var DesignFolder = Pageview.Layout.Design.Name;
23040 string email = areaInfo.ContactEmail;
23041 string phone = areaInfo.ContactNumber;
23042
23043 if(!string.IsNullOrEmpty(email) || !string.IsNullOrEmpty(phone))
23044 {
23045
23046
23047 #line default
23048 #line hidden
23049 WriteLiteralTo(__razor_helper_writer, " <div");
23050
23051 WriteLiteralTo(__razor_helper_writer, " class=\"c0 flex-wrap child-mr-2\"");
23052
23053 WriteLiteralTo(__razor_helper_writer, ">\r\n");
23054
23055
23056 #line 7788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23057
23058
23059 #line default
23060 #line hidden
23061
23062 #line 7788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23063 if (!string.IsNullOrEmpty(phone) & 1==2)
23064 {
23065
23066
23067 #line default
23068 #line hidden
23069 WriteLiteralTo(__razor_helper_writer, " <a");
23070
23071 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 372512), Tuple.Create("\"", 372529)
23072 , Tuple.Create(Tuple.Create("", 372519), Tuple.Create("tel:", 372519), true)
23073
23074 #line 7790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23075 , Tuple.Create(Tuple.Create("", 372523), Tuple.Create<System.Object, System.Int32>(phone
23076
23077 #line default
23078 #line hidden
23079 , 372523), false)
23080 );
23081
23082 WriteLiteralTo(__razor_helper_writer, " class=\"text-decoration-none\"");
23083
23084 WriteLiteralTo(__razor_helper_writer, ">");
23085
23086
23087 #line 7790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23088 WriteTo(__razor_helper_writer, RenderInlineSvg("default","call"));
23089
23090
23091 #line default
23092 #line hidden
23093 WriteLiteralTo(__razor_helper_writer, " <span");
23094
23095 WriteLiteralTo(__razor_helper_writer, " class=\"ml-1\"");
23096
23097 WriteLiteralTo(__razor_helper_writer, ">");
23098
23099
23100 #line 7790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23101 WriteTo(__razor_helper_writer, phone);
23102
23103
23104 #line default
23105 #line hidden
23106 WriteLiteralTo(__razor_helper_writer, "</span></a> \r\n");
23107
23108
23109 #line 7791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23110 }
23111
23112
23113 #line default
23114 #line hidden
23115 WriteLiteralTo(__razor_helper_writer, " ");
23116
23117
23118 #line 7792 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23119 if (!string.IsNullOrEmpty(email) & 1==2)
23120 {
23121
23122
23123 #line default
23124 #line hidden
23125 WriteLiteralTo(__razor_helper_writer, " <a");
23126
23127 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 372744), Tuple.Create("\"", 372764)
23128 , Tuple.Create(Tuple.Create("", 372751), Tuple.Create("mailto:", 372751), true)
23129
23130 #line 7794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23131 , Tuple.Create(Tuple.Create("", 372758), Tuple.Create<System.Object, System.Int32>(email
23132
23133 #line default
23134 #line hidden
23135 , 372758), false)
23136 );
23137
23138 WriteLiteralTo(__razor_helper_writer, " class=\"text-decoration-none\"");
23139
23140 WriteLiteralTo(__razor_helper_writer, ">");
23141
23142
23143 #line 7794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23144 WriteTo(__razor_helper_writer, RenderInlineSvg("default","mail"));
23145
23146
23147 #line default
23148 #line hidden
23149 WriteLiteralTo(__razor_helper_writer, " <span");
23150
23151 WriteLiteralTo(__razor_helper_writer, " class=\"ml-1\"");
23152
23153 WriteLiteralTo(__razor_helper_writer, ">");
23154
23155
23156 #line 7794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23157 WriteTo(__razor_helper_writer, email);
23158
23159
23160 #line default
23161 #line hidden
23162 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n");
23163
23164
23165 #line 7795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23166
23167 }
23168
23169
23170 #line default
23171 #line hidden
23172 WriteLiteralTo(__razor_helper_writer, " </div> \r\n");
23173
23174
23175 #line 7798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23176 }
23177
23178
23179
23180 #line default
23181 #line hidden
23182 });
23183
23184 #line 7800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23185 }
23186 #line default
23187 #line hidden
23188
23189
23190 #line 7802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23191 public RazorEngine.Templating.TemplateWriter RenderHeaderTopNavigation()
23192 {
23193 #line default
23194 #line hidden
23195 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23196
23197 #line 7803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23198
23199 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
23200 var DesignFolder = Pageview.Layout.Design.Name;
23201 string email = areaInfo.ContactEmail;
23202 string phone = areaInfo.ContactNumber;
23203 var user = User.GetCurrentExtranetUser();
23204 string userName = user.Name;
23205 string userCompany = user.Company != "" ? "(" + user.Company + ")" : "";
23206 string welcomeMessage = Translate("General_Welcome");
23207
23208 if (areaInfo.RenderPagesInToolBar)
23209 {
23210
23211
23212 #line default
23213 #line hidden
23214 WriteLiteralTo(__razor_helper_writer, " <div");
23215
23216 WriteLiteralTo(__razor_helper_writer, " class=\"c1 nav__header--top flex-wrap align-items-center child-ml-2 py-1 py-sm-2 " +
23217 "w-100 w-sm-unset space-between\"");
23218
23219 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n ");
23220
23221 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
23222
23223
23224 #line 7824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23225
23226
23227 #line default
23228 #line hidden
23229
23230 #line 7824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23231 if (!string.IsNullOrEmpty(phone))
23232 {
23233
23234
23235 #line default
23236 #line hidden
23237 WriteLiteralTo(__razor_helper_writer, " <a");
23238
23239 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 373901), Tuple.Create("\"", 373918)
23240 , Tuple.Create(Tuple.Create("", 373908), Tuple.Create("tel:", 373908), true)
23241
23242 #line 7826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23243 , Tuple.Create(Tuple.Create("", 373912), Tuple.Create<System.Object, System.Int32>(phone
23244
23245 #line default
23246 #line hidden
23247 , 373912), false)
23248 );
23249
23250 WriteLiteralTo(__razor_helper_writer, " class=\"text-decoration-none\"");
23251
23252 WriteLiteralTo(__razor_helper_writer, ">");
23253
23254
23255 #line 7826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23256 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "call"));
23257
23258
23259 #line default
23260 #line hidden
23261 WriteLiteralTo(__razor_helper_writer, " <span");
23262
23263 WriteLiteralTo(__razor_helper_writer, " class=\"ml-1\"");
23264
23265 WriteLiteralTo(__razor_helper_writer, ">");
23266
23267
23268 #line 7826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23269 WriteTo(__razor_helper_writer, phone);
23270
23271
23272 #line default
23273 #line hidden
23274 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n");
23275
23276
23277 #line 7827 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23278 }
23279
23280
23281 #line default
23282 #line hidden
23283 WriteLiteralTo(__razor_helper_writer, " ");
23284
23285
23286 #line 7828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23287 if (!string.IsNullOrEmpty(email))
23288 {
23289
23290
23291 #line default
23292 #line hidden
23293 WriteLiteralTo(__razor_helper_writer, " <a");
23294
23295 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 374109), Tuple.Create("\"", 374129)
23296 , Tuple.Create(Tuple.Create("", 374116), Tuple.Create("mailto:", 374116), true)
23297
23298 #line 7830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23299 , Tuple.Create(Tuple.Create("", 374123), Tuple.Create<System.Object, System.Int32>(email
23300
23301 #line default
23302 #line hidden
23303 , 374123), false)
23304 );
23305
23306 WriteLiteralTo(__razor_helper_writer, " class=\"text-decoration-none\"");
23307
23308 WriteLiteralTo(__razor_helper_writer, ">");
23309
23310
23311 #line 7830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23312 WriteTo(__razor_helper_writer, RenderInlineSvg("default", "mail"));
23313
23314
23315 #line default
23316 #line hidden
23317 WriteLiteralTo(__razor_helper_writer, " <span");
23318
23319 WriteLiteralTo(__razor_helper_writer, " class=\"ml-1\"");
23320
23321 WriteLiteralTo(__razor_helper_writer, ">");
23322
23323
23324 #line 7830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23325 WriteTo(__razor_helper_writer, email);
23326
23327
23328 #line default
23329 #line hidden
23330 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n");
23331
23332
23333 #line 7831 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23334
23335 }
23336
23337
23338 #line default
23339 #line hidden
23340 WriteLiteralTo(__razor_helper_writer, " <span");
23341
23342 WriteLiteralTo(__razor_helper_writer, " class=\"hidden inline-block-sm\"");
23343
23344 WriteLiteralTo(__razor_helper_writer, ">");
23345
23346
23347 #line 7833 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23348 WriteTo(__razor_helper_writer, welcomeMessage);
23349
23350
23351 #line default
23352 #line hidden
23353 WriteLiteralTo(__razor_helper_writer, " <span");
23354
23355 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold\"");
23356
23357 WriteLiteralTo(__razor_helper_writer, ">");
23358
23359
23360 #line 7833 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23361 WriteTo(__razor_helper_writer, userName);
23362
23363
23364 #line default
23365 #line hidden
23366 WriteLiteralTo(__razor_helper_writer, " ");
23367
23368
23369 #line 7833 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23370 WriteTo(__razor_helper_writer, userCompany);
23371
23372
23373 #line default
23374 #line hidden
23375 WriteLiteralTo(__razor_helper_writer, "</span></span>\r\n\r\n \r\n </div>\r\n");
23376
23377
23378 #line 7837 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23379 }
23380
23381
23382 #line default
23383 #line hidden
23384 });
23385
23386 #line 7838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23387 }
23388 #line default
23389 #line hidden
23390
23391
23392 #line 7840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23393 public RazorEngine.Templating.TemplateWriter RenderDesktopNavigation()
23394 {
23395 #line default
23396 #line hidden
23397 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23398
23399 #line 7841 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23400
23401 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopNavigation").OrderBy(item => item.SortId).ToList();
23402
23403
23404 #line default
23405 #line hidden
23406 WriteLiteralTo(__razor_helper_writer, " <nav");
23407
23408 WriteLiteralTo(__razor_helper_writer, " class=\"nav--primary M\"");
23409
23410 WriteLiteralTo(__razor_helper_writer, ">\r\n");
23411
23412 WriteLiteralTo(__razor_helper_writer, " ");
23413
23414
23415 #line 7844 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23416 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
23417
23418
23419 #line default
23420 #line hidden
23421 WriteLiteralTo(__razor_helper_writer, "\r\n </nav>\r\n");
23422
23423
23424 #line 7846 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23425
23426
23427 #line default
23428 #line hidden
23429 });
23430
23431 #line 7846 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23432 }
23433 #line default
23434 #line hidden
23435
23436
23437 #line 7848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23438 public RazorEngine.Templating.TemplateWriter RenderDesktopExtra()
23439 {
23440 #line default
23441 #line hidden
23442 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23443
23444 #line 7849 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23445
23446 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopExtra").OrderBy(item => item.SortId).ToList();
23447
23448 if (subBlocks.Count > 0)
23449 {
23450
23451
23452 #line default
23453 #line hidden
23454
23455 #line 7854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23456 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
23457
23458
23459 #line default
23460 #line hidden
23461
23462 #line 7854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23463
23464 }
23465
23466
23467 #line default
23468 #line hidden
23469 });
23470
23471 #line 7856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23472 }
23473 #line default
23474 #line hidden
23475
23476
23477 #line 7895 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23478 public RazorEngine.Templating.TemplateWriter RenderImpersonationBar()
23479 {
23480 #line default
23481 #line hidden
23482 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23483
23484 #line 7896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23485
23486 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
23487 var user = User.GetCurrentExtranetUser();
23488 var secondaryUser = user.CurrentSecondaryUser;
23489 var DesignFolder = Pageview.Layout.Design.Name;
23490
23491
23492
23493 #line default
23494 #line hidden
23495 WriteLiteralTo(__razor_helper_writer, " <div");
23496
23497 WriteLiteralTo(__razor_helper_writer, " class=\"impersonation\"");
23498
23499 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
23500
23501 WriteLiteralTo(__razor_helper_writer, " class=\"impersonation-bar flex-wrap align-items-center space-between font-md\"");
23502
23503 WriteLiteralTo(__razor_helper_writer, ">\r\n");
23504
23505
23506 #line 7904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23507
23508
23509 #line default
23510 #line hidden
23511
23512 #line 7904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23513 if (secondaryUser != null && secondaryUser.ID > 0)
23514 {
23515 string username = "";
23516 if (!string.IsNullOrEmpty(secondaryUser.FirstName) && !string.IsNullOrEmpty(secondaryUser.LastName))
23517 {
23518 username = secondaryUser.FirstName + " " + secondaryUser.LastName;
23519 }
23520 else if (!string.IsNullOrEmpty(secondaryUser.Name))
23521 {
23522 username = secondaryUser.Name;
23523 }
23524 else if (!string.IsNullOrEmpty(secondaryUser.Email))
23525 {
23526 username = secondaryUser.Email;
23527 }
23528 else
23529 {
23530 username = secondaryUser.UserName;
23531 }
23532
23533
23534 #line default
23535 #line hidden
23536 WriteLiteralTo(__razor_helper_writer, " <div");
23537
23538 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap align-items-center\"");
23539
23540 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
23541
23542 WriteLiteralTo(__razor_helper_writer, " class=\"ico mr-1\"");
23543
23544 WriteLiteralTo(__razor_helper_writer, "><svg");
23545
23546 WriteLiteralTo(__razor_helper_writer, " xmlns=\'http://www.w3.org/2000/svg\'");
23547
23548 WriteLiteralTo(__razor_helper_writer, " width=\"16\"");
23549
23550 WriteLiteralTo(__razor_helper_writer, " height=\"16\"");
23551
23552 WriteLiteralTo(__razor_helper_writer, " viewBox=\'0 0 512 512\'");
23553
23554 WriteLiteralTo(__razor_helper_writer, "><circle");
23555
23556 WriteLiteralTo(__razor_helper_writer, " cx=\'152\'");
23557
23558 WriteLiteralTo(__razor_helper_writer, " cy=\'184\'");
23559
23560 WriteLiteralTo(__razor_helper_writer, " r=\'72\'");
23561
23562 WriteLiteralTo(__razor_helper_writer, "/><path");
23563
23564 WriteLiteralTo(__razor_helper_writer, " d=\'M234 296c-28.16-14.3-59.24-20-82-20-44.58 0-136 27.34-136 82v42h150v-16.07c0-" +
23565 "19 8-38.05 22-53.93 11.17-12.68 26.81-24.45 46-34z\'");
23566
23567 WriteLiteralTo(__razor_helper_writer, "/><path");
23568
23569 WriteLiteralTo(__razor_helper_writer, " d=\'M340 288c-52.07 0-156 32.16-156 96v48h312v-48c0-63.84-103.93-96-156-96z\'");
23570
23571 WriteLiteralTo(__razor_helper_writer, "/><circle");
23572
23573 WriteLiteralTo(__razor_helper_writer, " cx=\'340\'");
23574
23575 WriteLiteralTo(__razor_helper_writer, " cy=\'168\'");
23576
23577 WriteLiteralTo(__razor_helper_writer, " r=\'88\'");
23578
23579 WriteLiteralTo(__razor_helper_writer, "/></svg></div>\r\n <form");
23580
23581 WriteLiteralTo(__razor_helper_writer, " method=\"post\"");
23582
23583 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
23584
23585 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
23586
23587 WriteLiteralTo(__razor_helper_writer, " name=\"DwExtranetRemoveSecondaryUser\"");
23588
23589 WriteLiteralTo(__razor_helper_writer, " class=\"pl-1 pr-0\"");
23590
23591 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 377746), Tuple.Create("\"", 377804)
23592
23593 #line 7926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23594 , Tuple.Create(Tuple.Create("", 377754), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.StopImpersonation)
23595
23596 #line default
23597 #line hidden
23598 , 377754), false)
23599 );
23600
23601 WriteLiteralTo(__razor_helper_writer, ">\r\n </form>\r\n </div>\r\n");
23602
23603 WriteLiteralTo(__razor_helper_writer, " <div");
23604
23605 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-impersonation-icon\"");
23606
23607 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
23608
23609 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
23610
23611 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon btn-icon--light icon-lg btn-inline h-unset\"");
23612
23613 WriteLiteralTo(__razor_helper_writer, " data-tooltip-content=\"");
23614
23615
23616 #line 7930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23617 WriteTo(__razor_helper_writer, username);
23618
23619
23620 #line default
23621 #line hidden
23622 WriteLiteralTo(__razor_helper_writer, " ");
23623
23624
23625 #line 7930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23626 WriteTo(__razor_helper_writer, Translate(Translations.Account.IsImpersonating));
23627
23628
23629 #line default
23630 #line hidden
23631 WriteLiteralTo(__razor_helper_writer, " ");
23632
23633
23634 #line 7930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23635 WriteTo(__razor_helper_writer, Pageview.User.UserName);
23636
23637
23638 #line default
23639 #line hidden
23640 WriteLiteralTo(__razor_helper_writer, "\"");
23641
23642 WriteLiteralTo(__razor_helper_writer, "><div");
23643
23644 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
23645
23646 WriteLiteralTo(__razor_helper_writer, "><svg");
23647
23648 WriteLiteralTo(__razor_helper_writer, " xmlns=\"http://www.w3.org/2000/svg\"");
23649
23650 WriteLiteralTo(__razor_helper_writer, " width=\"512\"");
23651
23652 WriteLiteralTo(__razor_helper_writer, " height=\"512\"");
23653
23654 WriteLiteralTo(__razor_helper_writer, " viewBox=\"0 0 512 512\"");
23655
23656 WriteLiteralTo(__razor_helper_writer, "><title>ionicons-v5-a</title><path");
23657
23658 WriteLiteralTo(__razor_helper_writer, " d=\"M448,256c0-106-86-192-192-192S64,150,64,256s86,192,192,192S448,362,448,256Z\"");
23659
23660 WriteLiteralTo(__razor_helper_writer, " style=\"fill:none;stroke:var(--icon-color, var(--color-content));stroke-miterlimi" +
23661 "t:10;stroke-width:32px\"");
23662
23663 WriteLiteralTo(__razor_helper_writer, "/><path");
23664
23665 WriteLiteralTo(__razor_helper_writer, " d=\"M250.26,166.05,256,288l5.73-121.95a5.74,5.74,0,0,0-5.79-6h0A5.74,5.74,0,0,0,2" +
23666 "50.26,166.05Z\"");
23667
23668 WriteLiteralTo(__razor_helper_writer, " style=\"fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:r" +
23669 "ound;stroke-linejoin:round;stroke-width:32px\"");
23670
23671 WriteLiteralTo(__razor_helper_writer, "/><path");
23672
23673 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--icon-color, var(--color-content)\"");
23674
23675 WriteLiteralTo(__razor_helper_writer, " d=\"M256,367.91a20,20,0,1,1,20-20A20,20,0,0,1,256,367.91Z\"");
23676
23677 WriteLiteralTo(__razor_helper_writer, "/></svg></div></button>\r\n </div>\r\n");
23678
23679
23680 #line 7932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23681 }
23682 else
23683 {
23684
23685
23686 #line default
23687 #line hidden
23688 WriteLiteralTo(__razor_helper_writer, " <div");
23689
23690 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap align-items-center\"");
23691
23692 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
23693
23694 WriteLiteralTo(__razor_helper_writer, " class=\"ico mr-1\"");
23695
23696 WriteLiteralTo(__razor_helper_writer, "><svg");
23697
23698 WriteLiteralTo(__razor_helper_writer, " xmlns=\'http://www.w3.org/2000/svg\'");
23699
23700 WriteLiteralTo(__razor_helper_writer, " width=\"16\"");
23701
23702 WriteLiteralTo(__razor_helper_writer, " height=\"16\"");
23703
23704 WriteLiteralTo(__razor_helper_writer, " viewBox=\'0 0 512 512\'");
23705
23706 WriteLiteralTo(__razor_helper_writer, "><circle");
23707
23708 WriteLiteralTo(__razor_helper_writer, " cx=\'152\'");
23709
23710 WriteLiteralTo(__razor_helper_writer, " cy=\'184\'");
23711
23712 WriteLiteralTo(__razor_helper_writer, " r=\'72\'");
23713
23714 WriteLiteralTo(__razor_helper_writer, "/><path");
23715
23716 WriteLiteralTo(__razor_helper_writer, " d=\'M234 296c-28.16-14.3-59.24-20-82-20-44.58 0-136 27.34-136 82v42h150v-16.07c0-" +
23717 "19 8-38.05 22-53.93 11.17-12.68 26.81-24.45 46-34z\'");
23718
23719 WriteLiteralTo(__razor_helper_writer, "/><path");
23720
23721 WriteLiteralTo(__razor_helper_writer, " d=\'M340 288c-52.07 0-156 32.16-156 96v48h312v-48c0-63.84-103.93-96-156-96z\'");
23722
23723 WriteLiteralTo(__razor_helper_writer, "/><circle");
23724
23725 WriteLiteralTo(__razor_helper_writer, " cx=\'340\'");
23726
23727 WriteLiteralTo(__razor_helper_writer, " cy=\'168\'");
23728
23729 WriteLiteralTo(__razor_helper_writer, " r=\'88\'");
23730
23731 WriteLiteralTo(__razor_helper_writer, "/></svg></div>\r\n <a");
23732
23733 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 379382), Tuple.Create("\"", 379438)
23734
23735 #line 7937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23736 , Tuple.Create(Tuple.Create("", 379389), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
23737
23738 #line default
23739 #line hidden
23740 , 379389), false)
23741
23742 #line 7937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23743 , Tuple.Create(Tuple.Create("", 379408), Tuple.Create<System.Object, System.Int32>(areaInfo.ImpersonationPage.ID
23744
23745 #line default
23746 #line hidden
23747 , 379408), false)
23748 );
23749
23750 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 379439), Tuple.Create("\"", 379495)
23751
23752 #line 7937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23753 , Tuple.Create(Tuple.Create("", 379447), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ViewListOfUsers)
23754
23755 #line default
23756 #line hidden
23757 , 379447), false)
23758 );
23759
23760 WriteLiteralTo(__razor_helper_writer, ">");
23761
23762
23763 #line 7937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23764 WriteTo(__razor_helper_writer, Translate(Translations.Account.ViewListOfUsers));
23765
23766
23767 #line default
23768 #line hidden
23769 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n");
23770
23771
23772 #line 7939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23773 }
23774
23775
23776 #line default
23777 #line hidden
23778 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div>\r\n");
23779
23780
23781 #line 7943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23782
23783
23784 #line default
23785 #line hidden
23786 });
23787
23788 #line 7943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23789 }
23790 #line default
23791 #line hidden
23792
23793
23794 #line 8059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23795 public RazorEngine.Templating.TemplateWriter RenderInlineSvgMiniCart(string theme = "default", string icon="none.svg")
23796 {
23797 #line default
23798 #line hidden
23799 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23800
23801 #line 8060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23802
23803 var DesignFolder = Pageview.Layout.Design.Name;
23804 var themeNormalized = "decocenter";
23805
23806
23807
23808 #line default
23809 #line hidden
23810 WriteLiteralTo(__razor_helper_writer, " <div");
23811
23812 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
23813
23814 WriteLiteralTo(__razor_helper_writer, ">\r\n");
23815
23816 WriteLiteralTo(__razor_helper_writer, " ");
23817
23818
23819 #line 8065 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23820 WriteTo(__razor_helper_writer, System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg")));
23821
23822
23823 #line default
23824 #line hidden
23825 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
23826
23827
23828 #line 8067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23829
23830
23831 #line default
23832 #line hidden
23833 });
23834
23835 #line 8067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23836 }
23837 #line default
23838 #line hidden
23839
23840
23841 #line 8069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23842 public RazorEngine.Templating.TemplateWriter RenderMiniCartScriptsTableTemplates()
23843 {
23844 #line default
23845 #line hidden
23846 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23847
23848 #line 8070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23849
23850
23851
23852 #line default
23853 #line hidden
23854 WriteLiteralTo(__razor_helper_writer, " <script");
23855
23856 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartOrderline\"");
23857
23858 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
23859
23860 WriteLiteralTo(__razor_helper_writer, @">
23861 {{#unless isEmpty}}
23862 <tr>
23863 <td><a href=""{{link}}"" class=""{{hideimage}}""><img class=""b-lazy"" src=""/Files/Images/placeholder.gif"" data-src=""/Admin/Public/GetImage.ashx?width=50&height=50&crop=5&Compression=75&image={{image}}"" alt=""{{name}}"" title=""{{name}}""></a></td>
23864 <td>
23865 <a href=""{{link}}"" title=""{{name}}"">{{name}}</a>
23866 {{#if variantname}}
23867 <a href=""{{link}}"">{{variantname}}</a>
23868 {{/if}}
23869 {{#if unitname}}
23870 <div>{{unitname}}</div>
23871 {{/if}}
23872 </td>
23873 <td>{{quantity}}</td>
23874 <td>
23875 {{#if pointsTotal}}
23876 <span>{{pointsTotal}}</span> ");
23877
23878
23879 #line 8087 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23880 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Points));
23881
23882
23883 #line default
23884 #line hidden
23885 WriteLiteralTo(__razor_helper_writer, "\r\n {{else}}\r\n {{totalprice}}\r\n " +
23886 " {{/if}}\r\n </td>\r\n </tr>\r\n {{/unless}" +
23887 "}\r\n </script>\r\n");
23888
23889
23890 #line 8095 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23891
23892
23893
23894 #line default
23895 #line hidden
23896 WriteLiteralTo(__razor_helper_writer, " <script");
23897
23898 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartOrderlineDiscount\"");
23899
23900 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
23901
23902 WriteLiteralTo(__razor_helper_writer, @">
23903 {{#unless isEmpty}}
23904 <tr>
23905 <td> </td>
23906 <td><div>{{name}}</div></td>
23907 <td> </td>
23908 <td>{{totalprice}}</td>
23909 </tr>
23910 {{/unless}}
23911 </script>
23912 ");
23913
23914
23915 #line 8106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23916
23917
23918 #line default
23919 #line hidden
23920 });
23921
23922 #line 8106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23923 }
23924 #line default
23925 #line hidden
23926
23927
23928 #line 8108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23929 public RazorEngine.Templating.TemplateWriter RenderMiniCartScriptsListTemplates()
23930 {
23931 #line default
23932 #line hidden
23933 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
23934
23935 #line 8109 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23936
23937 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
23938 var DesignFolder = Pageview.Layout.Design.Name;
23939
23940
23941
23942 #line default
23943 #line hidden
23944 WriteLiteralTo(__razor_helper_writer, " <script");
23945
23946 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartOrderline\"");
23947
23948 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
23949
23950 WriteLiteralTo(__razor_helper_writer, @">
23951 {{#unless isEmpty}}
23952 <div class=""c0 p-2"">
23953 <div class=""item grid align-items-center"">
23954 <div class=""item__image"">
23955 <a href=""{{link}}"" class=""flex-wrap align-items-center h-100 {{hideimage}}"">
23956 <img class=""lazyload"" loading=""lazy"" width=""50"" height=""50"" src=""data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="" data-src=""/Admin/Public/GetImage.ashx?width=50&height=50&crop=5&Compression=75&image={{image}}"" alt=""{{name}}"" title=""{{name}}"">
23957 </a>
23958 </div>
23959 <div class=""item__content"">
23960 <div class=""c0 flex-wrap"">
23961 <a href=""{{link}}"" class=""item__title text-decoration-none w-100 weight-bold font-product"" data-tooltip-content=""{{name}}"">{{name}}</a>
23962 {{#if variantname}}
23963 <div>");
23964
23965
23966 #line 8126 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23967 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Variant));
23968
23969
23970 #line default
23971 #line hidden
23972 WriteLiteralTo(__razor_helper_writer, ": {{variantname}}</div>\r\n {{/if}}\r\n " +
23973 " {{#if unitname}}\r\n <div>");
23974
23975
23976 #line 8129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23977 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Unit));
23978
23979
23980 #line default
23981 #line hidden
23982 WriteLiteralTo(__razor_helper_writer, @": {{unitname}}</div>
23983 {{/if}}
23984 <div class=""item__number font-sm color-muted"">{{productnumber}}</div>
23985 <div class=""item__orderline__info small w-100 flex-wrap align-items-center"">
23986 {{#if totalprice}}
23987 <span class=""inline-flex align-items-center mr-1"">
23988 <span class=""item__price color-brand"">{{{totalprice}}}</span>
23989 </span>
23990 (<span class=""item__quantity"">{{quantity}}</span> <span class=""icon-xs"">");
23991
23992
23993 #line 8137 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
23994 WriteTo(__razor_helper_writer, RenderInlineSvg("default","close-raw"));
23995
23996
23997 #line default
23998 #line hidden
23999 WriteLiteralTo(__razor_helper_writer, @"</span> <span class=""item__unitprice weight-normal font-md"">{{{unitprice}}}</span>)</div>
24000 {{else}}
24001 (<span class=""item__quantity"">{{quantity}}</span>)</div>
24002 {{/if}}
24003 <div class=""item__actions flex-wrap w-100 mt-1"">
24004 <button type=""button"" class=""btn-link small icon-md text-transform-none child-mr-1"" data-role=""delete-orderline"" message-success=""");
24005
24006
24007 #line 8142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24008 WriteTo(__razor_helper_writer, Translate(Translations.Cart.OrderlineRemoved));
24009
24010
24011 #line default
24012 #line hidden
24013 WriteLiteralTo(__razor_helper_writer, "\" aria-label=\"");
24014
24015
24016 #line 8142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24017 WriteTo(__razor_helper_writer, Translate(Translations.Cart.RemoveOrderline));
24018
24019
24020 #line default
24021 #line hidden
24022 WriteLiteralTo(__razor_helper_writer, "\" data-url=\"/Default.aspx?ID=");
24023
24024
24025 #line 8142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24026 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
24027
24028
24029 #line default
24030 #line hidden
24031 WriteLiteralTo(__razor_helper_writer, "&CartCmd=DelOrderLine&key={{orderLineId}}&redirect=false\"\r\ndata-action=\"/Default." +
24032 "aspx?ID=");
24033
24034
24035 #line 8143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24036 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
24037
24038
24039 #line default
24040 #line hidden
24041 WriteLiteralTo(__razor_helper_writer, "&CartCmd=UpdateOrderlines&QuantityOrderLine{{orderLineId}}=0&redirect=false\">");
24042
24043
24044 #line 8143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24045 WriteTo(__razor_helper_writer, RenderInlineSvg("default","delete"));
24046
24047
24048 #line default
24049 #line hidden
24050 WriteLiteralTo(__razor_helper_writer, "<span>");
24051
24052
24053 #line 8143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24054 WriteTo(__razor_helper_writer, Translate(Translations.General.Remove));
24055
24056
24057 #line default
24058 #line hidden
24059 WriteLiteralTo(__razor_helper_writer, "</span></button>\r\n </div>\r\n </div> " +
24060 " \r\n </div>\r\n </div>\r\n </div>\r\n " +
24061 " {{/unless}}\r\n </script>\r\n");
24062
24063
24064 #line 8151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24065
24066
24067
24068 #line default
24069 #line hidden
24070 WriteLiteralTo(__razor_helper_writer, " <script");
24071
24072 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartOrderlineDiscount\"");
24073
24074 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
24075
24076 WriteLiteralTo(__razor_helper_writer, @">
24077 {{#unless isEmpty}}
24078 {{#if totalprice}}
24079 <div class=""item item--discount flex-wrap space-between p-2"">
24080 <div class=""item__title item__title--discount flex-wrap child-mr-2"">
24081 <span class=""ico icon-lg"">");
24082
24083
24084 #line 8157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24085 WriteTo(__razor_helper_writer, RenderInlineSvgMiniCart("default","discount"));
24086
24087
24088 #line default
24089 #line hidden
24090 WriteLiteralTo(__razor_helper_writer, " </span> <span>{{orderLineCampaignName}}</span>\r\n\t\t\t\t</div> \r\n <di" +
24091 "v class=\"item__price price item__price--discount\">{{{totalprice}}}</div>\r\n " +
24092 " </div>\r\n {{/if}}\r\n {{/unless}}\r\n </script>\r\n");
24093
24094
24095 #line 8164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24096
24097
24098 #line default
24099 #line hidden
24100 });
24101
24102 #line 8164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24103 }
24104 #line default
24105 #line hidden
24106
24107
24108 #line 8166 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24109 public RazorEngine.Templating.TemplateWriter RenderMiniCartScriptTemplates()
24110 {
24111 #line default
24112 #line hidden
24113 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24114
24115 #line 8167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24116
24117 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMiniCartTemplates").OrderBy(item => item.SortId).ToList();
24118
24119
24120
24121 #line default
24122 #line hidden
24123 WriteLiteralTo(__razor_helper_writer, " <script");
24124
24125 WriteLiteralTo(__razor_helper_writer, " id=\"MiniCartContent\"");
24126
24127 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
24128
24129 WriteLiteralTo(__razor_helper_writer, @">
24130 {{#.}}
24131 {{#ifCond discountStepMessage '!==' """"}}
24132 <div class=""cart__step__discount"">{{discountStepMessage}}</div>
24133 {{/ifCond}}
24134 {{#each ErrorMessages}}
24135 <div class=""{{cssClass}}"">{{text}}</div>
24136 {{/each}}
24137 {{#unless isEmpty}}
24138 ");
24139
24140 WriteLiteralTo(__razor_helper_writer, " ");
24141
24142
24143 #line 8179 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24144 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
24145
24146
24147 #line default
24148 #line hidden
24149 WriteLiteralTo(__razor_helper_writer, "\r\n {{/unless}}\r\n {{/.}}\r\n </script>\r\n");
24150
24151
24152 #line 8183 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24153
24154
24155 #line default
24156 #line hidden
24157 });
24158
24159 #line 8183 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24160 }
24161 #line default
24162 #line hidden
24163
24164
24165 #line 8185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24166 public RazorEngine.Templating.TemplateWriter RenderMiniCartOrderLinesTable()
24167 {
24168 #line default
24169 #line hidden
24170 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24171
24172 #line 8186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24173
24174 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList();
24175
24176
24177
24178 #line default
24179 #line hidden
24180 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <table>\r\n");
24181
24182 WriteLiteralTo(__razor_helper_writer, " ");
24183
24184
24185 #line 8191 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24186 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
24187
24188
24189 #line default
24190 #line hidden
24191 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n </div>\r\n");
24192
24193
24194 #line 8194 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24195
24196
24197 #line default
24198 #line hidden
24199 });
24200
24201 #line 8194 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24202 }
24203 #line default
24204 #line hidden
24205
24206
24207 #line 8196 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24208 public RazorEngine.Templating.TemplateWriter RenderMiniCartOrderLinesBlocks()
24209 {
24210 #line default
24211 #line hidden
24212 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24213
24214 #line 8197 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24215
24216 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList();
24217
24218
24219
24220 #line default
24221 #line hidden
24222 WriteLiteralTo(__razor_helper_writer, " <div>\r\n");
24223
24224 WriteLiteralTo(__razor_helper_writer, " ");
24225
24226
24227 #line 8201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24228 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
24229
24230
24231 #line default
24232 #line hidden
24233 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
24234
24235
24236 #line 8203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24237
24238
24239 #line default
24240 #line hidden
24241 });
24242
24243 #line 8203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24244 }
24245 #line default
24246 #line hidden
24247
24248
24249 #line 8205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24250 public RazorEngine.Templating.TemplateWriter RenderMiniCartOrderLinesHeader()
24251 {
24252 #line default
24253 #line hidden
24254 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24255
24256 #line 8206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24257
24258
24259
24260 #line default
24261 #line hidden
24262 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n <tr>\r\n <td> </td>\r\n <td>");
24263
24264
24265 #line 8210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24266 WriteTo(__razor_helper_writer, Translate(Translations.Products.Product));
24267
24268
24269 #line default
24270 #line hidden
24271 WriteLiteralTo(__razor_helper_writer, "</td>\r\n <td>");
24272
24273
24274 #line 8211 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24275 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Qty));
24276
24277
24278 #line default
24279 #line hidden
24280 WriteLiteralTo(__razor_helper_writer, "</td>\r\n <td");
24281
24282 WriteLiteralTo(__razor_helper_writer, " width=\"120\"");
24283
24284 WriteLiteralTo(__razor_helper_writer, ">");
24285
24286
24287 #line 8212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24288 WriteTo(__razor_helper_writer, Translate(Translations.Products.Price));
24289
24290
24291 #line default
24292 #line hidden
24293 WriteLiteralTo(__razor_helper_writer, "</td>\r\n </tr>\r\n </thead>\r\n");
24294
24295
24296 #line 8215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24297
24298
24299 #line default
24300 #line hidden
24301 });
24302
24303 #line 8215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24304 }
24305 #line default
24306 #line hidden
24307
24308
24309 #line 8217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24310 public RazorEngine.Templating.TemplateWriter RenderMiniCartOrderLinesList()
24311 {
24312 #line default
24313 #line hidden
24314 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24315
24316 #line 8218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24317
24318
24319
24320 #line default
24321 #line hidden
24322 WriteLiteralTo(__razor_helper_writer, " ");
24323
24324 WriteLiteralTo(__razor_helper_writer, @"
24325 {{#OrderLines}}
24326 {{#ifCond template ""==="" ""CartOrderline""}}
24327 {{>MiniCartOrderline}}
24328 {{/ifCond}}
24329 {{#ifCond template ""==="" ""CartOrderlineMobile""}}
24330 {{>MiniCartOrderline}}
24331 {{/ifCond}}
24332 {{#ifCond template ""==="" ""CartOrderlineDiscount""}}
24333 {{>MiniCartOrderlineDiscount}}
24334 {{/ifCond}}
24335 {{/OrderLines}}
24336 ");
24337
24338 WriteLiteralTo(__razor_helper_writer, "\r\n");
24339
24340
24341 #line 8232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24342
24343
24344 #line default
24345 #line hidden
24346 });
24347
24348 #line 8232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24349 }
24350 #line default
24351 #line hidden
24352
24353
24354 #line 8234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24355 public RazorEngine.Templating.TemplateWriter RenderMiniCartFees()
24356 {
24357 #line default
24358 #line hidden
24359 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24360
24361 #line 8235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24362
24363
24364
24365 #line default
24366 #line hidden
24367 WriteLiteralTo(__razor_helper_writer, " ");
24368
24369 WriteLiteralTo(__razor_helper_writer, "\r\n {{#if totalprice}}\r\n\t\t<div");
24370
24371 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__fees child-mb-1 mb-1 small\"");
24372
24373 WriteLiteralTo(__razor_helper_writer, ">\r\n \t\r\n \t<div");
24374
24375 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__shipping flex-wrap space-between\"");
24376
24377 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
24378
24379 WriteLiteralTo(__razor_helper_writer, " class=\"block\"");
24380
24381 WriteLiteralTo(__razor_helper_writer, ">");
24382
24383
24384 #line 8241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24385 WriteTo(__razor_helper_writer, Translate("Products_Delivery"));
24386
24387
24388 #line default
24389 #line hidden
24390 WriteLiteralTo(__razor_helper_writer, "</span>\t\r\n \t<span");
24391
24392 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold inline-flex align-items-center\"");
24393
24394 WriteLiteralTo(__razor_helper_writer, ">{{{shippingfee}}}</span>\r\n \t</div>\r\n\t\t</div>\r\n {{/if}}\r\n ");
24395
24396 WriteLiteralTo(__razor_helper_writer, "\r\n");
24397
24398
24399 #line 8247 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24400
24401
24402 #line default
24403 #line hidden
24404 });
24405
24406 #line 8247 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24407 }
24408 #line default
24409 #line hidden
24410
24411
24412 #line 8249 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24413 public RazorEngine.Templating.TemplateWriter RenderMiniCartFooter()
24414 {
24415 #line default
24416 #line hidden
24417 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24418
24419 #line 8250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24420
24421 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartFooter").OrderBy(item => item.SortId).ToList();
24422
24423
24424
24425 #line default
24426 #line hidden
24427 WriteLiteralTo(__razor_helper_writer, " <div");
24428
24429 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__footer sticky--bottom p-2\"");
24430
24431 WriteLiteralTo(__razor_helper_writer, ">\r\n");
24432
24433 WriteLiteralTo(__razor_helper_writer, " ");
24434
24435
24436 #line 8254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24437 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
24438
24439
24440 #line default
24441 #line hidden
24442 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
24443
24444
24445 #line 8256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24446
24447
24448 #line default
24449 #line hidden
24450 });
24451
24452 #line 8256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24453 }
24454 #line default
24455 #line hidden
24456
24457
24458 #line 8258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24459 public RazorEngine.Templating.TemplateWriter RenderMiniCartActions()
24460 {
24461 #line default
24462 #line hidden
24463 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24464
24465 #line 8259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24466
24467 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
24468 var DesignFolder = Pageview.Layout.Design.Name;
24469
24470
24471 #line default
24472 #line hidden
24473 WriteLiteralTo(__razor_helper_writer, " <div");
24474
24475 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__actions mt-2 grid-auto-1\"");
24476
24477 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
24478
24479 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
24480
24481 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon icon-lg\"");
24482
24483 WriteLiteralTo(__razor_helper_writer, " data-role=\"empty-cart\"");
24484
24485 WriteLiteralTo(__razor_helper_writer, " data-action=\"/Default.aspx?ID=");
24486
24487
24488 #line 8263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24489 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
24490
24491
24492 #line default
24493 #line hidden
24494 WriteLiteralTo(__razor_helper_writer, "&cartcmd=emptycart&redirect=false\"");
24495
24496 WriteAttributeTo(__razor_helper_writer, "message-success", Tuple.Create(" message-success=\"", 391792), Tuple.Create("\"", 391849)
24497
24498 #line 8263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24499 , Tuple.Create(Tuple.Create("", 391810), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.EmptyCart)
24500
24501 #line default
24502 #line hidden
24503 , 391810), false)
24504 );
24505
24506 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 391850), Tuple.Create("\"", 391897)
24507
24508 #line 8263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24509 , Tuple.Create(Tuple.Create("", 391858), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.EmptyCart)
24510
24511 #line default
24512 #line hidden
24513 , 391858), false)
24514 );
24515
24516 WriteLiteralTo(__razor_helper_writer, " data-tooltip-content=\"");
24517
24518
24519 #line 8263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24520 WriteTo(__razor_helper_writer, Translate(Translations.Cart.EmptyCart));
24521
24522
24523 #line default
24524 #line hidden
24525 WriteLiteralTo(__razor_helper_writer, "\"");
24526
24527 WriteLiteralTo(__razor_helper_writer, ">");
24528
24529
24530 #line 8263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24531 WriteTo(__razor_helper_writer, RenderInlineSvg("default","delete"));
24532
24533
24534 #line default
24535 #line hidden
24536 WriteLiteralTo(__razor_helper_writer, "</button>\r\n <a");
24537
24538 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-fill--buy w-100\"");
24539
24540 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 392052), Tuple.Create("\"", 392099)
24541
24542 #line 8264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24543 , Tuple.Create(Tuple.Create("", 392059), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
24544
24545 #line default
24546 #line hidden
24547 , 392059), false)
24548
24549 #line 8264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24550 , Tuple.Create(Tuple.Create("", 392078), Tuple.Create<System.Object, System.Int32>(areaInfo.CartPage.ID
24551
24552 #line default
24553 #line hidden
24554 , 392078), false)
24555 );
24556
24557 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 392100), Tuple.Create("\"", 392155)
24558
24559 #line 8264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24560 , Tuple.Create(Tuple.Create("", 392108), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.ProceedToCheckout)
24561
24562 #line default
24563 #line hidden
24564 , 392108), false)
24565 );
24566
24567 WriteLiteralTo(__razor_helper_writer, "><span>");
24568
24569
24570 #line 8264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24571 WriteTo(__razor_helper_writer, Translate(Translations.Cart.ProceedToCheckout));
24572
24573
24574 #line default
24575 #line hidden
24576 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n\t</div>\r\n");
24577
24578
24579 #line 8266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24580
24581
24582
24583 #line default
24584 #line hidden
24585 });
24586
24587 #line 8267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24588 }
24589 #line default
24590 #line hidden
24591
24592
24593 #line 8269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24594 public RazorEngine.Templating.TemplateWriter RenderMiniCartPoints()
24595 {
24596 #line default
24597 #line hidden
24598 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24599
24600 #line 8270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24601
24602
24603
24604 #line default
24605 #line hidden
24606 WriteLiteralTo(__razor_helper_writer, " ");
24607
24608 WriteLiteralTo(__razor_helper_writer, "\r\n {{#if earnings}}\r\n <div");
24609
24610 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__points mb-1 small flex-wrap space-between\"");
24611
24612 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>");
24613
24614
24615 #line 8274 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24616 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Earnings));
24617
24618
24619 #line default
24620 #line hidden
24621 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div");
24622
24623 WriteLiteralTo(__razor_helper_writer, " class=\"weight-bold font-price\"");
24624
24625 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>{{earnings}}</span> ");
24626
24627
24628 #line 8276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24629 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Points));
24630
24631
24632 #line default
24633 #line hidden
24634 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n {{/if}}\r\n ");
24635
24636 WriteLiteralTo(__razor_helper_writer, " \r\n");
24637
24638
24639 #line 8281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24640
24641
24642 #line default
24643 #line hidden
24644 });
24645
24646 #line 8281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24647 }
24648 #line default
24649 #line hidden
24650
24651
24652 #line 8283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24653 public RazorEngine.Templating.TemplateWriter RenderMiniCartTotal()
24654 {
24655 #line default
24656 #line hidden
24657 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24658
24659 #line 8284 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24660
24661
24662
24663 #line default
24664 #line hidden
24665 WriteLiteralTo(__razor_helper_writer, " ");
24666
24667 WriteLiteralTo(__razor_helper_writer, "\r\n {{#if totalprice}}\r\n <div");
24668
24669 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__summary child-mb-1 mb-1 small\"");
24670
24671 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t<div");
24672
24673 WriteLiteralTo(__razor_helper_writer, " class=\"item flex-wrap space-between\"");
24674
24675 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t\t<span");
24676
24677 WriteLiteralTo(__razor_helper_writer, " class=\"block\"");
24678
24679 WriteLiteralTo(__razor_helper_writer, ">");
24680
24681
24682 #line 8289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24683 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Total));
24684
24685
24686 #line default
24687 #line hidden
24688 WriteLiteralTo(__razor_helper_writer, "</span>\r\n \t\t<span");
24689
24690 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__total weight-bold inline-flex align-items-center color-brand\"");
24691
24692 WriteLiteralTo(__razor_helper_writer, ">{{{totalprice}}}</span>\r\n\t\t\t</div>\r\n </div>\r\n {{/if}}\r\n ");
24693
24694 WriteLiteralTo(__razor_helper_writer, " \r\n");
24695
24696
24697 #line 8295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24698
24699
24700 #line default
24701 #line hidden
24702 });
24703
24704 #line 8295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24705 }
24706 #line default
24707 #line hidden
24708
24709
24710 #line 8298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24711 public RazorEngine.Templating.TemplateWriter RenderMiniCartPanelDesign()
24712 {
24713 #line default
24714 #line hidden
24715 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24716
24717 #line 8299 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24718
24719 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
24720 var DesignFolder = Pageview.Layout.Design.Name;
24721
24722
24723
24724 #line default
24725 #line hidden
24726 WriteLiteralTo(__razor_helper_writer, " <div");
24727
24728 WriteLiteralTo(__razor_helper_writer, " class=\"minicart animate__faster\"");
24729
24730 WriteLiteralTo(__razor_helper_writer, " id=\"minicart\"");
24731
24732 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
24733
24734 WriteLiteralTo(__razor_helper_writer, " class=\"minicart__header grid-auto-1 sticky--top bg-brand color-light align-items" +
24735 "-center gap-0\"");
24736
24737 WriteLiteralTo(__razor_helper_writer, ">\r\n <button");
24738
24739 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon minicart__close child-mr-2\"");
24740
24741 WriteLiteralTo(__razor_helper_writer, " data-role=\"minicart-trigger\"");
24742
24743 WriteLiteralTo(__razor_helper_writer, ">");
24744
24745
24746 #line 8305 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24747 WriteTo(__razor_helper_writer, RenderInlineSvg("default","close-raw"));
24748
24749
24750 #line default
24751 #line hidden
24752 WriteLiteralTo(__razor_helper_writer, "</button>\r\n <span");
24753
24754 WriteLiteralTo(__razor_helper_writer, " class=\"block minicart__heading h5 font-heading\"");
24755
24756 WriteLiteralTo(__razor_helper_writer, ">");
24757
24758
24759 #line 8306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24760 WriteTo(__razor_helper_writer, Translate(Translations.Cart.ShoppingCart));
24761
24762
24763 #line default
24764 #line hidden
24765 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n \r\n <div");
24766
24767 WriteLiteralTo(__razor_helper_writer, " id=\"miniCartContent\"");
24768
24769 WriteLiteralTo(__razor_helper_writer, " data-template=\"MiniCartContent\"");
24770
24771 WriteLiteralTo(__razor_helper_writer, " data-json=\"");
24772
24773
24774 #line 8309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24775 WriteTo(__razor_helper_writer, areaInfo.LinkStart);
24776
24777
24778 #line default
24779 #line hidden
24780
24781 #line 8309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24782 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
24783
24784
24785 #line default
24786 #line hidden
24787 WriteLiteralTo(__razor_helper_writer, "&feedType=MiniCart\"");
24788
24789 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </div>\r\n");
24790
24791
24792 #line 8311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24793
24794
24795 #line default
24796 #line hidden
24797 });
24798
24799 #line 8311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24800 }
24801 #line default
24802 #line hidden
24803
24804
24805 #line 8349 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24806 public RazorEngine.Templating.TemplateWriter RenderAddToCartNotificationModal()
24807 {
24808 #line default
24809 #line hidden
24810 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24811
24812 #line 8350 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24813
24814
24815
24816 #line default
24817 #line hidden
24818 WriteLiteralTo(__razor_helper_writer, " <div");
24819
24820 WriteLiteralTo(__razor_helper_writer, " id=\"LastAddedProductModal\"");
24821
24822 WriteLiteralTo(__razor_helper_writer, " data-template=\"LastAddedProductTemplate\"");
24823
24824 WriteLiteralTo(__razor_helper_writer, "></div>\r\n");
24825
24826
24827 #line 8352 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24828
24829
24830 #line default
24831 #line hidden
24832 });
24833
24834 #line 8352 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24835 }
24836 #line default
24837 #line hidden
24838
24839
24840 #line 8354 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24841 public RazorEngine.Templating.TemplateWriter RenderAddToCartNotificationModalScript()
24842 {
24843 #line default
24844 #line hidden
24845 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24846
24847 #line 8355 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24848
24849 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
24850
24851
24852
24853 #line default
24854 #line hidden
24855 WriteLiteralTo(__razor_helper_writer, " <script");
24856
24857 WriteLiteralTo(__razor_helper_writer, " id=\"LastAddedProductTemplate\"");
24858
24859 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
24860
24861 WriteLiteralTo(__razor_helper_writer, @">
24862 <!-- Trigger for the login modal -->
24863 <input type=""checkbox"" id=""LastAddedProductModalTrigger"" class=""modal-trigger"" />
24864
24865 <!-- Login modal -->
24866 <div class=""modal-container"">
24867 <label for=""LastAddedProductModalTrigger"" class=""modal-overlay""></label>
24868 <div class=""modal modal--md"">
24869 <div class=""modal__header"">
24870 <h2>");
24871
24872
24873 #line 8367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24874 WriteTo(__razor_helper_writer, Translate(Translations.Cart.ProductIsAddedToTheCart));
24875
24876
24877 #line default
24878 #line hidden
24879 WriteLiteralTo(__razor_helper_writer, @"</h2>
24880 </div>
24881 <div class=""modal__body"">
24882 <a href=""{{productInfo.link}}"">
24883 <img src=""{{productInfo.image}}"" alt=""{{productInfo.name}}"" class=""dw-mod"" />
24884 </a>
24885 <span>{{quantity}}</span> x
24886 <div>{{productInfo.name}}</div>
24887 {{#if productInfo.variantName}}
24888 <small class=""u-margin-bottom-5px"">{{productInfo.variantName}}</small>
24889 {{/if}}
24890 {{#if productInfo.unitName}}
24891 <small class=""u-margin-bottom-5px"">{{productInfo.unitName}}</small>
24892 {{/if}}
24893 </div>
24894 <div class=""modal__footer"">
24895 <label for=""LastAddedProductModalTrigger"">");
24896
24897
24898 #line 8383 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24899 WriteTo(__razor_helper_writer, Translate(Translations.Cart.ContinueShopping));
24900
24901
24902 #line default
24903 #line hidden
24904 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <a href=\"");
24905
24906
24907 #line 8384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24908 WriteTo(__razor_helper_writer, areaInfo.LinkStart);
24909
24910
24911 #line default
24912 #line hidden
24913
24914 #line 8384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24915 WriteTo(__razor_helper_writer, areaInfo.CartPage.ID);
24916
24917
24918 #line default
24919 #line hidden
24920 WriteLiteralTo(__razor_helper_writer, "\">");
24921
24922
24923 #line 8384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24924 WriteTo(__razor_helper_writer, Translate(Translations.Cart.ProceedToCheckout));
24925
24926
24927 #line default
24928 #line hidden
24929 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n <label for=\"LastAddedProductModalTr" +
24930 "igger\"></label>\r\n </div>\r\n </div>\r\n </script>\r\n");
24931
24932 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\'addToCart\', function (event) {\r\n" +
24933 " Cart.ShowLastAddedProductModal(event.detail);\r\n });\r\n </sc" +
24934 "ript>\r\n");
24935
24936
24937 #line 8395 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24938
24939
24940 #line default
24941 #line hidden
24942 });
24943
24944 #line 8395 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24945 }
24946 #line default
24947 #line hidden
24948
24949
24950 #line 8397 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24951 public RazorEngine.Templating.TemplateWriter RenderAddToCartNotificationToggleScript()
24952 {
24953 #line default
24954 #line hidden
24955 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
24956
24957 #line 8398 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24958
24959 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
24960
24961
24962 #line default
24963 #line hidden
24964 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\'addToCart\', function () {\r\n " +
24965 " Cart.ToggleMiniCart(\'miniCartTrigger\', \'miniCart\', \'cartCounter\', \'");
24966
24967
24968 #line 8402 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24969 WriteTo(__razor_helper_writer, areaInfo.MiniCartFeedPage.ID);
24970
24971
24972 #line default
24973 #line hidden
24974 WriteLiteralTo(__razor_helper_writer, "\');\r\n });\r\n </script>\r\n");
24975
24976
24977 #line 8405 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24978
24979
24980 #line default
24981 #line hidden
24982 });
24983
24984 #line 8405 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24985 }
24986 #line default
24987 #line hidden
24988
24989
24990 #line 8416 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24991
24992 BlocksPage footerBlocksPage = BlocksPage.GetBlockPage("Master");
24993
24994 #line default
24995 #line hidden
24996
24997
24998 #line 8776 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
24999 public RazorEngine.Templating.TemplateWriter RenderFooter(Df.Dw.Rapido.AreaInfo areaInfo) {
25000 #line default
25001 #line hidden
25002 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25003
25004 #line 8776 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25005
25006 List<Block> subBlocks = this.footerBlocksPage.GetBlockListById("MasterFooterContent").OrderBy(item => item.SortId).ToList();
25007 string footerClass = "footer__theme-" + areaInfo.FooterLayout;
25008
25009
25010 #line default
25011 #line hidden
25012 WriteLiteralTo(__razor_helper_writer, " <footer");
25013
25014 WriteLiteralTo(__razor_helper_writer, " class=\"footer bg-neutral pb-0 pt-3 py-lg-4 mt-4\"");
25015
25016 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
25017
25018 WriteLiteralTo(__razor_helper_writer, " class=\"section__container container\"");
25019
25020 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
25021
25022 WriteLiteralTo(__razor_helper_writer, " class=\"section__content\"");
25023
25024 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
25025
25026 WriteLiteralTo(__razor_helper_writer, " class=\"block w-100\"");
25027
25028 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
25029
25030 WriteLiteralTo(__razor_helper_writer, " class=\"grid-1 grid-md-8 grid-lg-4\"");
25031
25032 WriteLiteralTo(__razor_helper_writer, ">\r\n");
25033
25034 WriteLiteralTo(__razor_helper_writer, " ");
25035
25036
25037 #line 8784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25038 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
25039
25040
25041 #line default
25042 #line hidden
25043 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n </div>\r\n " +
25044 " </div>\r\n </footer>\r\n");
25045
25046
25047 #line 8790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25048
25049
25050
25051
25052
25053 #line default
25054 #line hidden
25055
25056 #line 8793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25057
25058
25059
25060 #line default
25061 #line hidden
25062 });
25063
25064 #line 8794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25065 }
25066 #line default
25067 #line hidden
25068
25069
25070 #line 8797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25071 public RazorEngine.Templating.TemplateWriter RenderFooterLogo(Df.Dw.Rapido.AreaInfo areaInfo)
25072 {
25073 #line default
25074 #line hidden
25075 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25076
25077 #line 8798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25078
25079 var footerLogo = "";
25080 if (Path.GetExtension(areaInfo.FooterLogo).ToLower() != ".svg")
25081 {
25082 footerLogo = "/Admin/Public/GetImage.ashx?height=60&crop=5&Compression=75&image=" + areaInfo.FooterLogo;
25083 }
25084 else
25085 {
25086 footerLogo = HttpUtility.UrlDecode(areaInfo.FooterLogo);
25087 }
25088
25089
25090
25091
25092 #line default
25093 #line hidden
25094 WriteLiteralTo(__razor_helper_writer, " <a");
25095
25096 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 411110), Tuple.Create("\"", 411140)
25097
25098 #line 8810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25099 , Tuple.Create(Tuple.Create("", 411117), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink
25100
25101 #line default
25102 #line hidden
25103 , 411117), false)
25104 );
25105
25106 WriteLiteralTo(__razor_helper_writer, " class=\"footer__logo block mb-2\"");
25107
25108 WriteLiteralTo(__razor_helper_writer, ">\r\n <img");
25109
25110 WriteLiteralTo(__razor_helper_writer, " width=\"300\"");
25111
25112 WriteLiteralTo(__razor_helper_writer, " height=\"57\"");
25113
25114 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 411216), Tuple.Create("\"", 411242)
25115
25116 #line 8811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25117 , Tuple.Create(Tuple.Create("", 411222), Tuple.Create<System.Object, System.Int32>(areaInfo.FooterLogo
25118
25119 #line default
25120 #line hidden
25121 , 411222), false)
25122 );
25123
25124 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 411243), Tuple.Create("\"", 411286)
25125
25126 #line 8811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25127 , Tuple.Create(Tuple.Create("", 411249), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo)
25128
25129 #line default
25130 #line hidden
25131 , 411249), false)
25132 );
25133
25134 WriteLiteralTo(__razor_helper_writer, " />\r\n </a> \r\n");
25135
25136
25137 #line 8813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25138
25139
25140
25141 #line default
25142 #line hidden
25143 });
25144
25145 #line 8814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25146 }
25147 #line default
25148 #line hidden
25149
25150
25151 #line 8815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25152 public RazorEngine.Templating.TemplateWriter RenderFooterTopCenterContentB2B()
25153 {
25154 #line default
25155 #line hidden
25156 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25157
25158 #line 8816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25159
25160
25161
25162 #line default
25163 #line hidden
25164 WriteLiteralTo(__razor_helper_writer, " <div");
25165
25166 WriteLiteralTo(__razor_helper_writer, " class=\"grid-2 w-100\"");
25167
25168 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
25169
25170 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 12rem;\"");
25171
25172 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
25173
25174 WriteLiteralTo(__razor_helper_writer, " xmlns=\"http://www.w3.org/2000/svg\"");
25175
25176 WriteLiteralTo(__razor_helper_writer, " viewBox=\"0 0 130.63 44.65\"");
25177
25178 WriteLiteralTo(__razor_helper_writer, "> \r\n <g");
25179
25180 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_2\"");
25181
25182 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 2\"");
25183
25184 WriteLiteralTo(__razor_helper_writer, ">\r\n <g");
25185
25186 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_1-2\"");
25187
25188 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 1\"");
25189
25190 WriteLiteralTo(__razor_helper_writer, ">\r\n <g>\r\n <g>\r\n <path");
25191
25192 WriteLiteralTo(__razor_helper_writer, " d=\"M17.21,44.65h-.82v-10h.82Z\"");
25193
25194 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25195
25196 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25197
25198 WriteLiteralTo(__razor_helper_writer, " d=\"M30.43,44.65l-5-8.61v8.61h-.86v-10h.86l5,8.6v-8.6h.82v10Z\"");
25199
25200 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25201
25202 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25203
25204 WriteLiteralTo(__razor_helper_writer, " d=\"M45.27,34.61v.86H42.36v9.18H41.5V35.47H38.59v-.86Z\"");
25205
25206 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25207
25208 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25209
25210 WriteLiteralTo(__razor_helper_writer, " d=\"M53.45,35.47v5.41h5v.84h-5v2.11h5.84v.82H52.61v-10h6.68v.86Z\"");
25211
25212 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25213
25214 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25215
25216 WriteLiteralTo(__razor_helper_writer, " d=\"M70,41.3l2.49,3.35h-.82L69.15,41.3H67.49v3.35h-.86v-10H70a3.35,3.35,0,0,1,0,6" +
25217 ".69Zm0-.82A2.52,2.52,0,0,0,72.5,38,2.48,2.48,0,0,0,70,35.47H67.49v5H70Z\"");
25218
25219 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25220
25221 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25222
25223 WriteLiteralTo(__razor_helper_writer, " d=\"M81.49,44.65h-.82v-10h.82Z\"");
25224
25225 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25226
25227 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25228
25229 WriteLiteralTo(__razor_helper_writer, " d=\"M98.9,39.64a5,5,0,1,1-5-5A5,5,0,0,1,98.9,39.64Zm-.85,0a4.18,4.18,0,1,0-4.17,4" +
25230 ".19A4.17,4.17,0,0,0,98.05,39.64Z\"");
25231
25232 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25233
25234 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25235
25236 WriteLiteralTo(__razor_helper_writer, " d=\"M109.62,41.3l2.49,3.35h-.82l-2.53-3.35H107.1v3.35h-.86v-10h3.38a3.35,3.35,0,0" +
25237 ",1,0,6.69Zm0-.82A2.52,2.52,0,0,0,112.11,38a2.48,2.48,0,0,0-2.49-2.48H107.1v5h2.5" +
25238 "2Z\"");
25239
25240 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25241
25242 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n <path");
25243
25244 WriteLiteralTo(__razor_helper_writer, " d=\"M19.67,24.81V14.33A3,3,0,0,0,16.38,11a3,3,0,0,0-3.29,3.29V24.81H9.84V14.33A3," +
25245 "3,0,0,0,6.55,11a3,3,0,0,0-3.29,3.29V24.81H0V14.33C0,9.8,2,7.78,6.55,7.78a7.85,7." +
25246 "85,0,0,1,4.21,1l.71.45.7-.45a7.85,7.85,0,0,1,4.21-1c4.53,0,6.55,2,6.55,6.55V24.8" +
25247 "1Z\"");
25248
25249 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25250
25251 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25252
25253 WriteLiteralTo(__razor_helper_writer, " d=\"M59.89,24.81V16.3C59.89,13,58,11,54.63,11S49.38,13,49.38,16.3v8.51H46.12V16.3" +
25254 "c0-5.81,2.71-8.52,8.51-8.52s8.52,2.71,8.52,8.52v8.51Z\"");
25255
25256 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25257
25258 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25259
25260 WriteLiteralTo(__razor_helper_writer, @" d=""M74.8,25.13c-5.8,0-8.51-2.7-8.51-8.51S69,8.1,74.8,8.1h5.26V.23h3.26V16.62C83.32,22.43,80.61,25.13,74.8,25.13Zm-.29-13.77c-3.18,0-4.91,1.82-5,5.25a5.19,5.19,0,0,0,1.29,3.89,5.33,5.33,0,0,0,4,1.37c3.34,0,5.26-1.91,5.26-5.25a5.26,5.26,0,0,0-1.29-4A5.35,5.35,0,0,0,75,11.34c-.32,0-.51,0-.51,0Z""");
25261
25262 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25263
25264 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25265
25266 WriteLiteralTo(__razor_helper_writer, " d=\"M94.85,25.13c-5.81,0-8.52-2.7-8.52-8.51S89,8.1,94.85,8.1s8.51,2.71,8.51,8.52S" +
25267 "100.66,25.13,94.85,25.13Zm0-13.77c-3.34,0-5.26,1.92-5.26,5.26s1.92,5.25,5.26,5.2" +
25268 "5,5.25-1.91,5.25-5.25S98.19,11.36,94.85,11.36Z\"");
25269
25270 WriteLiteralTo(__razor_helper_writer, " fill=\"#ff8300\"");
25271
25272 WriteLiteralTo(__razor_helper_writer, "/>\r\n <rect");
25273
25274 WriteLiteralTo(__razor_helper_writer, " x=\"106.85\"");
25275
25276 WriteLiteralTo(__razor_helper_writer, " width=\"3.26\"");
25277
25278 WriteLiteralTo(__razor_helper_writer, " height=\"24.9\"");
25279
25280 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25281
25282 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25283
25284 WriteLiteralTo(__razor_helper_writer, " d=\"M122.12,8c5.81,0,8.51,2.7,8.51,8.51V25h-8.51c-5.81,0-8.51-2.7-8.51-8.51S116.3" +
25285 "1,8,122.12,8Zm5.26,13.77V16.5c0-3.34-1.92-5.26-5.26-5.26s-5.26,1.92-5.26,5.26,1." +
25286 "92,5.26,5.26,5.26Z\"");
25287
25288 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25289
25290 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25291
25292 WriteLiteralTo(__razor_helper_writer, " d=\"M34.59,24.81c-5.81,0-8.52-2.7-8.52-8.51s2.71-8.52,8.52-8.52,8.51,2.71,8.51,8." +
25293 "52v1H29.38l.13.61c.54,2.37,2.34,3.68,5.08,3.68h6.62v3.24Zm0-13.77c-2.49,0-4.24,1" +
25294 ".09-4.92,3.07l-.23.66H39.73l-.22-.66C38.82,12.13,37.07,11,34.59,11Z\"");
25295
25296 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25297
25298 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n\r\n </div>\r\n " +
25299 " <div");
25300
25301 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 16rem;\"");
25302
25303 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
25304
25305 WriteLiteralTo(__razor_helper_writer, " xmlns=\"http://www.w3.org/2000/svg\"");
25306
25307 WriteLiteralTo(__razor_helper_writer, " viewBox=\"0 0 152.75 47.06\"");
25308
25309 WriteLiteralTo(__razor_helper_writer, "> \r\n <g");
25310
25311 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_2\"");
25312
25313 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 2\"");
25314
25315 WriteLiteralTo(__razor_helper_writer, ">\r\n <g");
25316
25317 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_1-2\"");
25318
25319 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 1\"");
25320
25321 WriteLiteralTo(__razor_helper_writer, ">\r\n <g>\r\n <path");
25322
25323 WriteLiteralTo(__razor_helper_writer, @" d=""M21.11.84c2.17,1.1,2.84,3.57,2.83,5.72,0,4.69-3.59,16.06-4.28,20.62-.3,2-.92,4.83-1.24,7.73.21-8.71,2.86-18.62,3.52-20.94,2.41-8.51.53-11.87-.83-13.13M24.18,0a5.55,5.55,0,0,1,4.5,5.43c0,4.69-2.84,12.61-3.53,17.18-.17,1.12-.45,2.51-.74,4-.37,3.07-.75,7.74.52,11,2.32,5.91,11.58,3.45,13.42,2.9A13,13,0,0,0,41,39.35,23.54,23.54,0,0,0,24.18,0m-6,38.58c-.67-9.41,2.71-22,3.46-24.69C24.69,3.27,20.83.82,20.05.45a4.27,4.27,0,0,0-.56-.11,23.54,23.54,0,0,0,3.39,46.72c-3.54-1.31-4.6-4.7-4.66-8.48m14,3.19c-3.38,0-6.34-1.09-7.51-4.06a19.32,19.32,0,0,1-.85-7.55c-.86,6.49-.32,13.41,9.09,12.11a22.33,22.33,0,0,0,6.26-1.76c-.26.1-.51.19-.76.26a22.2,22.2,0,0,1-6.23,1""");
25324
25325 WriteLiteralTo(__razor_helper_writer, " fill=\"#ee7e22\"");
25326
25327 WriteLiteralTo(__razor_helper_writer, "/>\r\n <g>\r\n <rect");
25328
25329 WriteLiteralTo(__razor_helper_writer, " x=\"62.45\"");
25330
25331 WriteLiteralTo(__razor_helper_writer, " y=\"10.14\"");
25332
25333 WriteLiteralTo(__razor_helper_writer, " width=\"1.66\"");
25334
25335 WriteLiteralTo(__razor_helper_writer, " height=\"14.73\"");
25336
25337 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25338
25339 WriteLiteralTo(__razor_helper_writer, "/>\r\n <polygon");
25340
25341 WriteLiteralTo(__razor_helper_writer, " points=\"68.43 10.14 70.12 10.14 75.49 18.18 80.85 10.14 82.54 10.14 82.54 24.87 " +
25342 "80.87 24.87 80.87 12.94 75.5 20.83 75.42 20.83 70.05 12.96 70.05 24.87 68.43 24." +
25343 "87 68.43 10.14\"");
25344
25345 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25346
25347 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25348
25349 WriteLiteralTo(__razor_helper_writer, " d=\"M92.16,10h1.55l6.72,14.84H98.64L96.92,21h-8l-1.75,3.89H85.44Zm4.1,9.43L92.92," +
25350 "12l-3.37,7.49Z\"");
25351
25352 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25353
25354 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25355
25356 WriteLiteralTo(__razor_helper_writer, @" d=""M101.82,17.55v0a7.4,7.4,0,0,1,7.39-7.63,7.76,7.76,0,0,1,5.49,2l-1.07,1.27a6.23,6.23,0,0,0-4.48-1.69,5.76,5.76,0,0,0-5.61,6v.05c0,3.51,2.26,6.12,5.84,6.12a6.94,6.94,0,0,0,4.25-1.47V18.49h-4.48V17h6.08v5.87a8.94,8.94,0,0,1-5.92,2.25,7.22,7.22,0,0,1-7.49-7.57""");
25357
25358 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25359
25360 WriteLiteralTo(__razor_helper_writer, "/>\r\n <rect");
25361
25362 WriteLiteralTo(__razor_helper_writer, " x=\"119.12\"");
25363
25364 WriteLiteralTo(__razor_helper_writer, " y=\"10.14\"");
25365
25366 WriteLiteralTo(__razor_helper_writer, " width=\"1.66\"");
25367
25368 WriteLiteralTo(__razor_helper_writer, " height=\"14.73\"");
25369
25370 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25371
25372 WriteLiteralTo(__razor_helper_writer, "/>\r\n <polygon");
25373
25374 WriteLiteralTo(__razor_helper_writer, " points=\"125.1 10.14 126.66 10.14 135.94 21.95 135.94 10.14 137.56 10.14 137.56 2" +
25375 "4.87 136.24 24.87 126.72 12.79 126.72 24.87 125.1 24.87 125.1 10.14\"");
25376
25377 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25378
25379 WriteLiteralTo(__razor_helper_writer, "/>\r\n <polygon");
25380
25381 WriteLiteralTo(__razor_helper_writer, " points=\"141.73 10.14 152.38 10.14 152.38 11.65 143.4 11.65 143.4 16.68 151.44 16" +
25382 ".68 151.44 18.2 143.4 18.2 143.4 23.36 152.49 23.36 152.49 24.87 141.73 24.87 14" +
25383 "1.73 10.14\"");
25384
25385 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25386
25387 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25388
25389 WriteLiteralTo(__razor_helper_writer, @" d=""M67,37h-.25l-.59,0c-.29,0-.88,0-1.79,0H63.26l-.45,0-.48,0Q62,37,62,36.92c0-.05,0-.07.13-.07a1,1,0,0,0,.6-.19.8.8,0,0,0,.23-.45A11.77,11.77,0,0,0,63,34.62V33A5.23,5.23,0,0,0,63,32a.74.74,0,0,0-.28-.47.83.83,0,0,0-.48-.18c-.1,0-.14,0-.14-.1s0-.08.12-.08h.12c.47,0,1,.05,1.64.05h.78c.08,0,.12,0,.12.08s0,.08-.13.08a1,1,0,0,0-.52.13.68.68,0,0,0-.28.28,2.06,2.06,0,0,0-.07.63l0,2.09v1.17a3.51,3.51,0,0,0,0,.71.61.61,0,0,0,.19.29.81.81,0,0,0,.54.14l.79,0a1.88,1.88,0,0,0,1.09-.59,3.25,3.25,0,0,0,.64-.91q0-.12.12-.12s.07,0,.07.11,0,.38-.12.88-.14.8-.16.88""");
25390
25391 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25392
25393 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25394
25395 WriteLiteralTo(__razor_helper_writer, @" d=""M68.72,31.13l.8,0,1.24,0c.14,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a7.11,7.11,0,0,0,.08,1,.55.55,0,0,0,.17.27.9.9,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1l-.94,0q-.15,0-.15-.09t.12-.09c.28,0,.44-.1.48-.28a9.79,9.79,0,0,0,.08-1.69c0-.92,0-1.67,0-2.24a2.89,2.89,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.09,0-.13,0-.13-.1s0-.08.1-.08""");
25396
25397 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25398
25399 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25400
25401 WriteLiteralTo(__razor_helper_writer, @" d=""M75.44,37.06h-.26c-.14-.44-.36-1.05-.65-1.82l-.84-2.15a10.22,10.22,0,0,0-.54-1.25.94.94,0,0,0-.3-.34,1,1,0,0,0-.41-.11c-.08,0-.11,0-.11-.08s0-.08.11-.08h2.32c.14,0,.21,0,.21.07s0,.1-.14.1c-.39,0-.58.17-.58.5a2.63,2.63,0,0,0,0,.38c0,.17.1.39.18.64s.28.78.57,1.56.47,1.27.55,1.45l.94-2.62a6.3,6.3,0,0,0,.41-1.4c0-.31-.19-.49-.57-.52-.08,0-.12,0-.12-.08s0-.06,0-.07h2a.07.07,0,0,1,0,.06c0,.06-.06.09-.18.11a.74.74,0,0,0-.49.24,2.85,2.85,0,0,0-.32.46c-.1.18-.38.89-.82,2.13-.15.44-.51,1.38-1.06,2.82""");
25402
25403 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25404
25405 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25406
25407 WriteLiteralTo(__razor_helper_writer, @" d=""M79.7,31.13l.8,0,1.24,0c.14,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a9.13,9.13,0,0,0,.08,1,.55.55,0,0,0,.17.27.9.9,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1l-.94,0q-.15,0-.15-.09t.12-.09c.28,0,.44-.1.48-.28a10.33,10.33,0,0,0,.07-1.69c0-.92,0-1.67,0-2.24a2.67,2.67,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.09,0-.13,0-.13-.1s0-.08.1-.08""");
25408
25409 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25410
25411 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25412
25413 WriteLiteralTo(__razor_helper_writer, @" d=""M84.83,31.21c.17.23.48.6.91,1.11L87.16,34l1.36,1.57c0-.53,0-1.22,0-2.08,0-.64,0-1.07,0-1.28a.82.82,0,0,0-.3-.55.9.9,0,0,0-.63-.22c-.12,0-.18,0-.18-.07a.08.08,0,0,1,0-.07,4,4,0,0,1,.59,0l.94,0h.69c.1,0,.14,0,.14.07s0,.08-.12.08a1.12,1.12,0,0,0-.64.24.79.79,0,0,0-.23.53c0,.23,0,1,0,2.32l-.05,2.34c0,.12,0,.17-.08.17a.07.07,0,0,1-.06,0,3.67,3.67,0,0,1-.4-.44l-.88-1c-.35-.39-.63-.72-.83-1-.44-.53-.71-.86-.83-1a6.08,6.08,0,0,1-.75-.88c0-.09-.1-.13-.14-.13s0,.06,0,.17v.69c0,.87,0,1.56.07,2.08a3.34,3.34,0,0,0,.15.92,1,1,0,0,0,.27.27.69.69,0,0,0,.41.13c.19,0,.29,0,.29.11s-.06.08-.17.08H83.63c-.1,0-.15,0-.15-.08s0-.09.14-.09a.87.87,0,0,0,.73-.24,1.9,1.9,0,0,0,.18-1l0-1.56a9.48,9.48,0,0,0-.07-1.62,2,2,0,0,0-.34-.59.87.87,0,0,0-.6-.4c-.1,0-.15,0-.15-.08s.07-.08.2-.08Z""");
25414
25415 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25416
25417 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25418
25419 WriteLiteralTo(__razor_helper_writer, @" d=""M96.7,33s-.08,0-.12-.14a3.08,3.08,0,0,0-1-1.23,2.11,2.11,0,0,0-1.27-.43,2,2,0,0,0-1.07.33,2.37,2.37,0,0,0-.84,1,3.45,3.45,0,0,0-.33,1.49A3,3,0,0,0,92.79,36a2.11,2.11,0,0,0,1.68.82,1.41,1.41,0,0,0,.61-.12,1.57,1.57,0,0,0,.48-.31,1.2,1.2,0,0,0,.27-.31,1.94,1.94,0,0,0,0-.54,1.58,1.58,0,0,0-.19-1,.74.74,0,0,0-.62-.23h-.13c-.09,0-.13,0-.13-.08s0-.11.14-.11h1.23l1.23,0c.07,0,.1,0,.1.1s0,.09-.12.1a1.22,1.22,0,0,0-.44.12.36.36,0,0,0-.21.21,1.32,1.32,0,0,0,0,.4,6.36,6.36,0,0,1,0,1.14,2.88,2.88,0,0,1-.82.46,3.57,3.57,0,0,1-1.56.37A3.24,3.24,0,0,1,92,36.23a2.74,2.74,0,0,1-.92-2.11,3,3,0,0,1,1.63-2.69A3.32,3.32,0,0,1,94.29,31a3.56,3.56,0,0,1,1.58.42.91.91,0,0,0,.34.12.24.24,0,0,0,.21-.12c0-.07.09-.1.12-.1s.11.09.12.26.06.67.13,1.23c0,0,0,0,0,.08s0,.1-.1.1""");
25420
25421 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25422
25423 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25424
25425 WriteLiteralTo(__razor_helper_writer, @" d=""M105.46,31.42l-.49,0a2,2,0,0,0-1.39.4,1.51,1.51,0,0,0-.49.71c0,.08-.06.11-.12.11a.12.12,0,0,1-.09,0,13.66,13.66,0,0,1,.18-1.42h.27c.23,0,.54,0,.92,0s1,0,1.91,0,1.45,0,1.72,0,.57,0,1,0a4.6,4.6,0,0,1,.07.66c0,.26,0,.45.06.55v.08c0,.07,0,.1-.09.1a.17.17,0,0,1-.1,0s-.08-.11-.16-.25a2.18,2.18,0,0,0-.48-.54,1.17,1.17,0,0,0-.56-.24,8.81,8.81,0,0,0-1.23-.07c0,.44-.06.95-.06,1.52a23.48,23.48,0,0,0,.13,3.35q.12.51.87.51c.12,0,.18,0,.18.08s-.06.08-.17.08H104.6c-.07,0-.1,0-.1-.08s.07-.08.21-.08a.8.8,0,0,0,.56-.2.76.76,0,0,0,.25-.53c0-.23,0-.87,0-1.94s0-1.82-.09-2.71""");
25426
25427 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25428
25429 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25430
25431 WriteLiteralTo(__razor_helper_writer, @" d=""M115,31.23a11.32,11.32,0,0,1,.25,1.39s0,0,0,0l-.07,0a3.62,3.62,0,0,0-.58-.75,2,2,0,0,0-.56-.37,3.15,3.15,0,0,0-1-.1,5.52,5.52,0,0,0-1,.07.24.24,0,0,0,0,.16v.12a17.9,17.9,0,0,0,0,1.91,1.42,1.42,0,0,0,0,.19h.46a1.53,1.53,0,0,0,.81-.17,1.39,1.39,0,0,0,.43-.71c0-.07.05-.1.09-.1s.08,0,.08.13v.18a5.58,5.58,0,0,0,0,.72c0,.4,0,.76,0,1.09,0,.1,0,.15-.08.15s-.07,0-.08-.11a1.13,1.13,0,0,0-.39-.75,2.4,2.4,0,0,0-1.29-.23c0,.21,0,.56,0,1a6.59,6.59,0,0,0,.07,1.19.63.63,0,0,0,.32.4,1.76,1.76,0,0,0,.85.15,2.16,2.16,0,0,0,2.23-1.19c0-.1.08-.14.12-.14s.07,0,.07.09a.25.25,0,0,1,0,.12c0,.05-.06.26-.13.62,0,.08-.07.31-.17.7h-1.85l-1.17,0c-.51,0-1,0-1.37,0a4.69,4.69,0,0,1-.62,0,.06.06,0,0,1,0,0c0-.06,0-.09.14-.09a.71.71,0,0,0,.65-.26,3.21,3.21,0,0,0,.15-1.27V33.52c0-.17,0-.5,0-1a7.76,7.76,0,0,0,0-.82.35.35,0,0,0-.14-.2,1.3,1.3,0,0,0-.5-.2c-.07,0-.11,0-.11-.1s0-.08.16-.08l.9.05c.32,0,1.1,0,2.35,0H115""");
25432
25433 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25434
25435 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25436
25437 WriteLiteralTo(__razor_helper_writer, @" d=""M120.08,33.56c.15-.18.34-.44.59-.79s.39-.58.44-.68a.6.6,0,0,0,.07-.27.34.34,0,0,0-.17-.3.77.77,0,0,0-.37-.12c-.12,0-.19,0-.19-.1s.09-.07.28-.07h2.08s0,0,0,.07-.06.08-.17.08a1.33,1.33,0,0,0-.75.28,5.31,5.31,0,0,0-1,1.1c-.42.56-.65.89-.7,1a25.49,25.49,0,0,0,1.82,2.5,1.52,1.52,0,0,0,1,.59c.1,0,.16,0,.16.09s-.06.08-.17.08l-.37,0-.77,0c-.42,0-.81,0-1.18,0h-.15c-.14,0-.21,0-.21-.08s0-.09.12-.09c.37,0,.56-.12.56-.35a6.58,6.58,0,0,0-1.3-2.06,8.71,8.71,0,0,0-.71,1,3.07,3.07,0,0,0-.57,1c0,.11.07.19.22.27a1.19,1.19,0,0,0,.54.14c.11,0,.17,0,.17.09s-.06.08-.16.08h-.16l-.91,0a9,9,0,0,0-1.09,0q-.18,0-.18-.09s0-.08.13-.08a1.38,1.38,0,0,0,.55-.11,1.21,1.21,0,0,0,.42-.31,11.33,11.33,0,0,0,.76-1c.39-.56.66-.95.81-1.19a19.2,19.2,0,0,0-1.88-2.51,1.37,1.37,0,0,0-.79-.31c-.08,0-.12,0-.12-.08s.07-.08.22-.08h2.53a.08.08,0,0,1,0,.07.08.08,0,0,1,0,.07l-.29,0a.54.54,0,0,0-.26.09.26.26,0,0,0-.11.19,2.57,2.57,0,0,0,.43.78,10.8,10.8,0,0,0,.79,1.09""");
25438
25439 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25440
25441 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25442
25443 WriteLiteralTo(__razor_helper_writer, @" d=""M126.79,31.42l-.49,0a2,2,0,0,0-1.38.4,1.47,1.47,0,0,0-.5.71c0,.08-.06.11-.12.11a.12.12,0,0,1-.09,0,13.66,13.66,0,0,1,.18-1.42h.27c.23,0,.53,0,.92,0s1,0,1.91,0,1.45,0,1.72,0,.57,0,1,0a6.62,6.62,0,0,1,.08.66,4,4,0,0,0,.05.55v.08c0,.07,0,.1-.09.1a.17.17,0,0,1-.1,0l-.17-.25a2,2,0,0,0-.47-.54,1.17,1.17,0,0,0-.56-.24,8.81,8.81,0,0,0-1.23-.07c0,.44,0,.95,0,1.52a24.27,24.27,0,0,0,.12,3.35q.12.51.87.51c.12,0,.18,0,.18.08s-.06.08-.17.08h-2.72c-.07,0-.11,0-.11-.08s.07-.08.21-.08a.77.77,0,0,0,.81-.73c0-.23,0-.87,0-1.94s0-1.82-.09-2.71""");
25444
25445 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25446
25447 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25448
25449 WriteLiteralTo(__razor_helper_writer, @" d=""M131.87,31.13l.8,0,1.24,0c.15,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a7.11,7.11,0,0,0,.08,1,.55.55,0,0,0,.17.27.94.94,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1L132,37c-.11,0-.16,0-.16-.09s0-.09.12-.09c.28,0,.44-.1.48-.28a9.79,9.79,0,0,0,.08-1.69c0-.92,0-1.67,0-2.24a2.89,2.89,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.08,0-.13,0-.13-.1s0-.08.1-.08""");
25450
25451 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25452
25453 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25454
25455 WriteLiteralTo(__razor_helper_writer, @" d=""M140.57,37h-.24l-.6,0c-.28,0-.88,0-1.78,0h-1.13l-.45,0-.47,0c-.22,0-.34,0-.34-.09s.05-.07.14-.07a.93.93,0,0,0,.59-.19.75.75,0,0,0,.23-.45,11.08,11.08,0,0,0,.07-1.59V33a6.09,6.09,0,0,0-.07-1.07.83.83,0,0,0-.28-.47.86.86,0,0,0-.49-.18c-.09,0-.14,0-.14-.1s0-.08.13-.08h.11c.47,0,1,.05,1.65.05h.78c.08,0,.12,0,.12.08s0,.08-.13.08a1,1,0,0,0-.52.13.63.63,0,0,0-.28.28,1.78,1.78,0,0,0-.07.63l0,2.09v1.17a3.26,3.26,0,0,0,0,.71.55.55,0,0,0,.19.29.78.78,0,0,0,.53.14l.79,0a1.82,1.82,0,0,0,1.09-.59,3.05,3.05,0,0,0,.64-.91q.06-.12.12-.12c.05,0,.08,0,.08.11s-.05.38-.13.88-.14.8-.16.88""");
25456
25457 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25458
25459 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25460
25461 WriteLiteralTo(__razor_helper_writer, @" d=""M146.72,31.23a13.64,13.64,0,0,1,.25,1.39s0,0-.05,0a.09.09,0,0,1-.06,0,3.62,3.62,0,0,0-.59-.75,1.87,1.87,0,0,0-.56-.37,3.11,3.11,0,0,0-1-.1,5.71,5.71,0,0,0-1,.07.32.32,0,0,0,0,.16s0,.06,0,.12c0,.23,0,.87,0,1.91v.19h.46a1.53,1.53,0,0,0,.81-.17,1.4,1.4,0,0,0,.44-.71c0-.07.05-.1.09-.1s.08,0,.08.13l0,.18c0,.23,0,.47,0,.72,0,.4,0,.76,0,1.09,0,.1,0,.15-.08.15s-.07,0-.08-.11a1.18,1.18,0,0,0-.4-.75,2.36,2.36,0,0,0-1.29-.23c0,.21,0,.56,0,1a5.73,5.73,0,0,0,.07,1.19.65.65,0,0,0,.31.4,1.81,1.81,0,0,0,.86.15,2.14,2.14,0,0,0,2.22-1.19c0-.1.08-.14.13-.14s.07,0,.07.09a.5.5,0,0,1,0,.12c0,.05-.06.26-.13.62,0,.08-.07.31-.17.7h-1.85L144,37c-.52,0-1,0-1.37,0a4.43,4.43,0,0,1-.62,0s0,0,0,0,0-.09.15-.09a.68.68,0,0,0,.64-.26,3.14,3.14,0,0,0,.16-1.27v-.9l0-.85c0-.17,0-.5,0-1a6.49,6.49,0,0,0-.06-.82.38.38,0,0,0-.13-.2,1.38,1.38,0,0,0-.5-.2c-.08,0-.12,0-.12-.1s.06-.08.16-.08l.9.05c.32,0,1.1,0,2.35,0h1.26""");
25462
25463 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25464
25465 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
25466
25467 WriteLiteralTo(__razor_helper_writer, @" d=""M151.85,31.49a.63.63,0,0,0,.16-.25c0-.07.06-.11.1-.11s0,0,.08.05.05.32.09.64l.11.83c0,.05,0,.08-.1.08s-.07,0-.09-.09a2.49,2.49,0,0,0-.7-1,1.54,1.54,0,0,0-1-.38,1,1,0,0,0-.81.32,1.06,1.06,0,0,0-.27.69.79.79,0,0,0,.3.67,3.92,3.92,0,0,0,1.22.53,5.35,5.35,0,0,1,1,.42,1.63,1.63,0,0,1,.56.55,1.36,1.36,0,0,1,.23.77,1.66,1.66,0,0,1-.58,1.25,2,2,0,0,1-1.41.56,2.86,2.86,0,0,1-1.53-.48.57.57,0,0,0-.19.3c0,.09-.06.14-.11.14s-.09-.06-.11-.18-.06-.7-.13-1.72a.11.11,0,0,1,.1,0s.08,0,.1.1c.46,1.14,1.09,1.71,1.91,1.71a1.23,1.23,0,0,0,.94-.37,1.17,1.17,0,0,0,.34-.84,1,1,0,0,0-.18-.6,1.31,1.31,0,0,0-.49-.44,5.91,5.91,0,0,0-.95-.38,3.9,3.9,0,0,1-1.14-.51,1.42,1.42,0,0,1-.45-.54,1.45,1.45,0,0,1-.14-.59,1.35,1.35,0,0,1,.53-1,1.92,1.92,0,0,1,1.31-.46,1.94,1.94,0,0,1,.61.1,3.09,3.09,0,0,1,.67.28""");
25468
25469 WriteLiteralTo(__razor_helper_writer, " fill=\"#5e5f5f\"");
25470
25471 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </s" +
25472 "vg>\r\n\r\n </div>\r\n </div>\r\n");
25473
25474
25475 #line 8882 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25476
25477
25478 #line default
25479 #line hidden
25480 });
25481
25482 #line 8882 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25483 }
25484 #line default
25485 #line hidden
25486
25487
25488 #line 8883 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25489 public RazorEngine.Templating.TemplateWriter RenderFooterColumn(string header, string content, IList<ItemViewModel> links, string className = "column") {
25490 #line default
25491 #line hidden
25492 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25493
25494 #line 8883 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25495
25496
25497
25498
25499
25500 #line default
25501 #line hidden
25502 WriteLiteralTo(__razor_helper_writer, " <div");
25503
25504 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 426262), Tuple.Create("\"", 426280)
25505
25506 #line 8886 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25507 , Tuple.Create(Tuple.Create("", 426270), Tuple.Create<System.Object, System.Int32>(className
25508
25509 #line default
25510 #line hidden
25511 , 426270), false)
25512 );
25513
25514 WriteLiteralTo(__razor_helper_writer, ">\r\n");
25515
25516
25517 #line 8887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25518
25519
25520 #line default
25521 #line hidden
25522
25523 #line 8887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25524 if (!string.IsNullOrEmpty(header))
25525 {
25526
25527
25528 #line default
25529 #line hidden
25530 WriteLiteralTo(__razor_helper_writer, " <h6");
25531
25532 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 mb-2 weight-bold\"");
25533
25534 WriteLiteralTo(__razor_helper_writer, ">");
25535
25536
25537 #line 8889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25538 WriteTo(__razor_helper_writer, header);
25539
25540
25541 #line default
25542 #line hidden
25543 WriteLiteralTo(__razor_helper_writer, "</h6> \r\n");
25544
25545
25546 #line 8890 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25547 }
25548
25549
25550 #line default
25551 #line hidden
25552 WriteLiteralTo(__razor_helper_writer, " \r\n");
25553
25554
25555 #line 8892 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25556
25557
25558 #line default
25559 #line hidden
25560
25561 #line 8892 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25562 if(links.Any()){
25563
25564
25565 #line default
25566 #line hidden
25567 WriteLiteralTo(__razor_helper_writer, " <nav");
25568
25569 WriteLiteralTo(__razor_helper_writer, " class=\"footer-links child-mb-1 font-md\"");
25570
25571 WriteLiteralTo(__razor_helper_writer, ">\r\n");
25572
25573
25574 #line 8894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25575
25576
25577 #line default
25578 #line hidden
25579
25580 #line 8894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25581 foreach(var pageLink in links){
25582 string link = pageLink.GetString("Link");
25583 string title = pageLink.GetString("Title");
25584 string icon = pageLink.GetString("Icon");
25585 string newWindow = pageLink.GetBoolean("NewWindow") ? " target=\"_blank\"" : "";
25586
25587 if (!string.IsNullOrEmpty(newWindow))
25588 {
25589
25590
25591 #line default
25592 #line hidden
25593 WriteLiteralTo(__razor_helper_writer, " <a");
25594
25595 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 426997), Tuple.Create("\"", 427009)
25596
25597 #line 8902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25598 , Tuple.Create(Tuple.Create("", 427004), Tuple.Create<System.Object, System.Int32>(link
25599
25600 #line default
25601 #line hidden
25602 , 427004), false)
25603 );
25604
25605 WriteLiteralTo(__razor_helper_writer, " ");
25606
25607
25608 #line 8902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25609 WriteTo(__razor_helper_writer, newWindow);
25610
25611
25612 #line default
25613 #line hidden
25614 WriteLiteralTo(__razor_helper_writer, " rel=\"noreferrer\" class=\"footer-links__link block w-100\">");
25615
25616
25617 #line 8902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25618 WriteTo(__razor_helper_writer, icon);
25619
25620
25621 #line default
25622 #line hidden
25623 WriteLiteralTo(__razor_helper_writer, " ");
25624
25625
25626 #line 8902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25627 WriteTo(__razor_helper_writer, title);
25628
25629
25630 #line default
25631 #line hidden
25632 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
25633
25634
25635 #line 8903 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25636 }
25637 else
25638 {
25639
25640
25641 #line default
25642 #line hidden
25643 WriteLiteralTo(__razor_helper_writer, " <a");
25644
25645 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 427194), Tuple.Create("\"", 427206)
25646
25647 #line 8906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25648 , Tuple.Create(Tuple.Create("", 427201), Tuple.Create<System.Object, System.Int32>(link
25649
25650 #line default
25651 #line hidden
25652 , 427201), false)
25653 );
25654
25655 WriteLiteralTo(__razor_helper_writer, " class=\"footer-links__link block w-100\"");
25656
25657 WriteLiteralTo(__razor_helper_writer, ">");
25658
25659
25660 #line 8906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25661 WriteTo(__razor_helper_writer, icon);
25662
25663
25664 #line default
25665 #line hidden
25666 WriteLiteralTo(__razor_helper_writer, " ");
25667
25668
25669 #line 8906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25670 WriteTo(__razor_helper_writer, title);
25671
25672
25673 #line default
25674 #line hidden
25675 WriteLiteralTo(__razor_helper_writer, "</a> \r\n");
25676
25677
25678 #line 8907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25679 }
25680
25681
25682 }
25683
25684
25685 #line default
25686 #line hidden
25687 WriteLiteralTo(__razor_helper_writer, " </nav>\r\n");
25688
25689
25690 #line 8912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25691 }else{
25692 if (!string.IsNullOrEmpty(header))
25693 {
25694
25695
25696 #line default
25697 #line hidden
25698 WriteLiteralTo(__razor_helper_writer, " <div");
25699
25700 WriteLiteralTo(__razor_helper_writer, " class=\"content\"");
25701
25702 WriteLiteralTo(__razor_helper_writer, ">\r\n");
25703
25704 WriteLiteralTo(__razor_helper_writer, " ");
25705
25706
25707 #line 8916 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25708 WriteTo(__razor_helper_writer, content);
25709
25710
25711 #line default
25712 #line hidden
25713 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
25714
25715
25716 #line 8918 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25717 }
25718
25719 }
25720
25721
25722 #line default
25723 #line hidden
25724 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
25725
25726
25727 #line 8922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25728
25729
25730
25731 #line default
25732 #line hidden
25733 });
25734
25735 #line 8923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25736 }
25737 #line default
25738 #line hidden
25739
25740
25741 #line 8925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25742 public RazorEngine.Templating.TemplateWriter RenderFooterNewsletterSignUp(Df.Dw.Rapido.AreaInfo areaInfo) {
25743 #line default
25744 #line hidden
25745 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25746
25747 #line 8925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25748
25749 if (Model.Area.Item.GetItem("Layout").GetBoolean("FooterNewsletterSignUp"))
25750 {
25751
25752
25753
25754 #line default
25755 #line hidden
25756 WriteLiteralTo(__razor_helper_writer, " <div");
25757
25758 WriteLiteralTo(__razor_helper_writer, " class=\"newsletter\"");
25759
25760 WriteLiteralTo(__razor_helper_writer, "> \r\n\t\t<h6");
25761
25762 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 mb-2 weight-bold\"");
25763
25764 WriteLiteralTo(__razor_helper_writer, ">");
25765
25766
25767 #line 8930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25768 WriteTo(__razor_helper_writer, Translate(Translations.General.SubscribeToNewsletter));
25769
25770
25771 #line default
25772 #line hidden
25773 WriteLiteralTo(__razor_helper_writer, "</h6>\r\n \r\n <form");
25774
25775 WriteLiteralTo(__razor_helper_writer, " class=\"form block w-100\"");
25776
25777 WriteLiteralTo(__razor_helper_writer, " id=\"NewsletterRedirect\"");
25778
25779 WriteLiteralTo(__razor_helper_writer, " name=\"NewsletterRedirect\"");
25780
25781 WriteLiteralTo(__razor_helper_writer, " action=\'/Default.aspx\'");
25782
25783 WriteLiteralTo(__razor_helper_writer, " method=\"get\"");
25784
25785 WriteLiteralTo(__razor_helper_writer, " enctype=\"multipart/form-data\"");
25786
25787 WriteLiteralTo(__razor_helper_writer, ">\r\n <input");
25788
25789 WriteLiteralTo(__razor_helper_writer, " name=\"ID\"");
25790
25791 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 428118), Tuple.Create("\"", 428159)
25792
25793 #line 8933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25794 , Tuple.Create(Tuple.Create("", 428126), Tuple.Create<System.Object, System.Int32>(areaInfo.NewsletterSignUpPage.ID
25795
25796 #line default
25797 #line hidden
25798 , 428126), false)
25799 );
25800
25801 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
25802
25803 WriteLiteralTo(__razor_helper_writer, " />\r\n ");
25804
25805 WriteLiteralTo(__razor_helper_writer, "\r\n <div");
25806
25807 WriteLiteralTo(__razor_helper_writer, " class=\"newsletter__container flex-wrap\"");
25808
25809 WriteLiteralTo(__razor_helper_writer, ">\r\n <df-input");
25810
25811 WriteLiteralTo(__razor_helper_writer, " name=\"NewsletterEmail\"");
25812
25813 WriteLiteralTo(__razor_helper_writer, " id=\"NewsletterEmail\"");
25814
25815 WriteLiteralTo(__razor_helper_writer, " type=\"email\"");
25816
25817 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\'", 428421), Tuple.Create("\'", 428484)
25818
25819 #line 8936 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25820 , Tuple.Create(Tuple.Create("", 428435), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress)
25821
25822 #line default
25823 #line hidden
25824 , 428435), false)
25825 );
25826
25827 WriteLiteralTo(__razor_helper_writer, " value=\"\"");
25828
25829 WriteLiteralTo(__razor_helper_writer, " ></df-input>\r\n <button");
25830
25831 WriteLiteralTo(__razor_helper_writer, " type=\"submit\"");
25832
25833 WriteLiteralTo(__razor_helper_writer, " class=\"btn-fill--brand\"");
25834
25835 WriteLiteralTo(__razor_helper_writer, " id=\"Submitter\"");
25836
25837 WriteLiteralTo(__razor_helper_writer, ">");
25838
25839
25840 #line 8937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25841 WriteTo(__razor_helper_writer, Translate(Translations.General.Go));
25842
25843
25844 #line default
25845 #line hidden
25846 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </div>\r\n </form>\r\n \r\n </div>\r\n");
25847
25848
25849 #line 8942 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25850 }
25851
25852
25853 #line default
25854 #line hidden
25855 });
25856
25857 #line 8943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25858 }
25859 #line default
25860 #line hidden
25861
25862
25863 #line 8945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25864 public RazorEngine.Templating.TemplateWriter RenderFooterSocialLinks(Df.Dw.Rapido.AreaInfo areaInfo) {
25865 #line default
25866 #line hidden
25867 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25868
25869 #line 8945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25870
25871 if (areaInfo.FooterSocialLinks != null && areaInfo.FooterSocialLinks.Count > 0)
25872 {
25873
25874
25875
25876 #line default
25877 #line hidden
25878 WriteLiteralTo(__razor_helper_writer, " <div");
25879
25880 WriteLiteralTo(__razor_helper_writer, " class=\"contact__social-media flex-wrap align-items-center child-mr-2 child-mr-xx" +
25881 "l-4\"");
25882
25883 WriteLiteralTo(__razor_helper_writer, ">\r\n <h6");
25884
25885 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 weight-bold w-100 w-md-auto mb-2 mb-md-0\"");
25886
25887 WriteLiteralTo(__razor_helper_writer, ">");
25888
25889
25890 #line 8950 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25891 WriteTo(__razor_helper_writer, Translate(Translations.General.SocialLinks));
25892
25893
25894 #line default
25895 #line hidden
25896 WriteLiteralTo(__razor_helper_writer, "</h6> \r\n");
25897
25898
25899 #line 8951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25900
25901
25902 #line default
25903 #line hidden
25904
25905 #line 8951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25906 foreach (var socialitem in areaInfo.FooterSocialLinks)
25907 {
25908 var socialIcon = socialitem.GetValue("Icon") as Dynamicweb.Frontend.ListViewModel;
25909 string socialIconClass = socialIcon.SelectedValue;
25910 string socialIconTitle = socialIcon.SelectedName.ToLower();
25911 string socialLink = socialitem.GetString("Link");
25912
25913
25914
25915 #line default
25916 #line hidden
25917 WriteLiteralTo(__razor_helper_writer, " <a");
25918
25919 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 429521), Tuple.Create("\"", 429539)
25920
25921 #line 8958 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25922 , Tuple.Create(Tuple.Create("", 429528), Tuple.Create<System.Object, System.Int32>(socialLink
25923
25924 #line default
25925 #line hidden
25926 , 429528), false)
25927 );
25928
25929 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\"");
25930
25931 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 429556), Tuple.Create("\"", 429604)
25932 , Tuple.Create(Tuple.Create("", 429564), Tuple.Create("btn", 429564), true)
25933 , Tuple.Create(Tuple.Create(" ", 429567), Tuple.Create("btn-icon", 429568), true)
25934 , Tuple.Create(Tuple.Create(" ", 429576), Tuple.Create("btn-md", 429577), true)
25935 , Tuple.Create(Tuple.Create(" ", 429583), Tuple.Create("btn-", 429584), true)
25936
25937 #line 8958 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25938 , Tuple.Create(Tuple.Create("", 429588), Tuple.Create<System.Object, System.Int32>(socialIconTitle
25939
25940 #line default
25941 #line hidden
25942 , 429588), false)
25943 );
25944
25945 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 429605), Tuple.Create("\"", 429629)
25946
25947 #line 8958 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25948 , Tuple.Create(Tuple.Create("", 429613), Tuple.Create<System.Object, System.Int32>(socialIconTitle
25949
25950 #line default
25951 #line hidden
25952 , 429613), false)
25953 );
25954
25955 WriteLiteralTo(__razor_helper_writer, " rel=\"noopener\"");
25956
25957 WriteLiteralTo(__razor_helper_writer, " class=\"\"");
25958
25959 WriteLiteralTo(__razor_helper_writer, ">");
25960
25961
25962 #line 8958 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25963 WriteTo(__razor_helper_writer, RenderInlineSvg("default","logo-" + socialIconTitle));
25964
25965
25966 #line default
25967 #line hidden
25968 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
25969
25970
25971 #line 8959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25972 }
25973
25974
25975 #line default
25976 #line hidden
25977 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
25978
25979
25980 #line 8961 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25981 }
25982
25983
25984 #line default
25985 #line hidden
25986 });
25987
25988 #line 8962 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25989 }
25990 #line default
25991 #line hidden
25992
25993
25994 #line 8964 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
25995 public RazorEngine.Templating.TemplateWriter RenderFooterPartnerShops() {
25996 #line default
25997 #line hidden
25998 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
25999
26000 #line 8964 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26001
26002
26003
26004 #line default
26005 #line hidden
26006 WriteLiteralTo(__razor_helper_writer, " <a");
26007
26008 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 429799), Tuple.Create("\'", 429869)
26009 , Tuple.Create(Tuple.Create("", 429806), Tuple.Create("/Default.aspx?ID=", 429806), true)
26010
26011 #line 8965 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26012 , Tuple.Create(Tuple.Create("", 429823), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("MagazinePartenere")
26013
26014 #line default
26015 #line hidden
26016 , 429823), false)
26017 );
26018
26019 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-link\"");
26020
26021 WriteLiteralTo(__razor_helper_writer, "><span");
26022
26023 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 weight-bold text-transform-none\"");
26024
26025 WriteLiteralTo(__razor_helper_writer, ">");
26026
26027
26028 #line 8965 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26029 WriteTo(__razor_helper_writer, Translate("Gaseste Magazin Partener"));
26030
26031
26032 #line default
26033 #line hidden
26034 WriteLiteralTo(__razor_helper_writer, "</span> <span");
26035
26036 WriteLiteralTo(__razor_helper_writer, " class=\"icon ml-2\"");
26037
26038 WriteLiteralTo(__razor_helper_writer, " style=\"--icon-size: 3rem;\"");
26039
26040 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
26041
26042 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
26043
26044 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
26045
26046 WriteLiteralTo(__razor_helper_writer, " xmlns=\"http://www.w3.org/2000/svg\"");
26047
26048 WriteLiteralTo(__razor_helper_writer, " viewBox=\"0 0 28.7 23.23\"");
26049
26050 WriteLiteralTo(__razor_helper_writer, "> \r\n <g");
26051
26052 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_2\"");
26053
26054 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 2\"");
26055
26056 WriteLiteralTo(__razor_helper_writer, ">\r\n <g");
26057
26058 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_1-2\"");
26059
26060 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 1\"");
26061
26062 WriteLiteralTo(__razor_helper_writer, ">\r\n <g>\r\n <path");
26063
26064 WriteLiteralTo(__razor_helper_writer, " d=\"M5.52,17.25a.37.37,0,0,0,.4-.4V15.36a.37.37,0,0,0-.4-.4.39.39,0,0,0-.4.4v1.49" +
26065 "A.39.39,0,0,0,5.52,17.25Z\"");
26066
26067 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26068
26069 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
26070
26071 WriteLiteralTo(__razor_helper_writer, @" d=""M22,17.91l5.33,5.32,1.42-1.42-5.32-5.33A7,7,0,0,0,22.06,6.7a.66.66,0,0,0,0-.14.3.3,0,0,0-.05-.2L18.3.2A.41.41,0,0,0,18,0H3.73a.51.51,0,0,0-.35.2L.05,6.36s0,.1,0,.2A3.08,3.08,0,0,0,1.64,9.25V20.58H.35v0a.36.36,0,0,0-.35.4.39.39,0,0,0,.35.4H21.73a.4.4,0,0,0,0-.8H20.48V18.75A6.67,6.67,0,0,0,22,17.91Zm5.8,3.9-.47.47-4.8-4.79.15-.15.18-.18L23,17ZM17.7.75l3.14,5.18a6.66,6.66,0,0,0-1.92-.63,7.24,7.24,0,0,0-2.46,0L14.86.75Zm-6.32,0h2.69L15.73,5.5a7.52,7.52,0,0,0-1.54.66H11.38Zm1.77,6.16a7.23,7.23,0,0,0-1.1,1.18,2.37,2.37,0,0,1-.62-1.18ZM10.64.75V6.16H5.77L7.66.75Zm0,6.16A2.25,2.25,0,0,1,8.4,8.8,2.31,2.31,0,0,1,6.16,6.91ZM3.93.75H6.86L5,6.16H1ZM.8,6.91H5.32A2.25,2.25,0,0,1,3.08,8.8,2.34,2.34,0,0,1,.8,6.91ZM8.6,20.53h-4V11.38h4Zm11.09,0H9.35V11a.39.39,0,0,0-.4-.4H4.18a.39.39,0,0,0-.4.4v9.54H2.34V9.5h.05a2.86,2.86,0,0,0,.69.1A3,3,0,0,0,5.72,8,3,3,0,0,0,11,8a2.75,2.75,0,0,0,.61.79,7,7,0,0,0-.83,4.65,3.89,3.89,0,0,0,.12.49v3.52c0,.25.2.4.4.4h2.13A7,7,0,0,0,19.69,19Zm-8-3.48V15.88a7.36,7.36,0,0,0,.92,1.22Zm4.8,1.43A6.39,6.39,0,1,1,24,11,6.38,6.38,0,0,1,16.48,18.53Z""");
26072
26073 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26074
26075 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n\r\n </div>\r\n " +
26076 " </span></a>\r\n");
26077
26078
26079 #line 8980 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26080
26081
26082
26083 #line default
26084 #line hidden
26085 });
26086
26087 #line 8981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26088 }
26089 #line default
26090 #line hidden
26091
26092
26093 #line 8982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26094 public RazorEngine.Templating.TemplateWriter RenderFooterNewsletter() {
26095 #line default
26096 #line hidden
26097 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26098
26099 #line 8982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26100
26101 int newsletterPageID = GetPageIdByNavigationTag("NewsletterSignUp");
26102
26103
26104 #line default
26105 #line hidden
26106 WriteLiteralTo(__razor_helper_writer, " <a");
26107
26108 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 431755), Tuple.Create("\"", 431796)
26109 , Tuple.Create(Tuple.Create("", 431762), Tuple.Create("/Default.aspx?ID=", 431762), true)
26110
26111 #line 8984 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26112 , Tuple.Create(Tuple.Create("", 431779), Tuple.Create<System.Object, System.Int32>(newsletterPageID
26113
26114 #line default
26115 #line hidden
26116 , 431779), false)
26117 );
26118
26119 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-link\"");
26120
26121 WriteLiteralTo(__razor_helper_writer, "><span");
26122
26123 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 weight-bold text-transform-none\"");
26124
26125 WriteLiteralTo(__razor_helper_writer, ">");
26126
26127
26128 #line 8984 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26129 WriteTo(__razor_helper_writer, Translate(Translations.General.SubscribeToNewsletter));
26130
26131
26132 #line default
26133 #line hidden
26134 WriteLiteralTo(__razor_helper_writer, "</span> <span");
26135
26136 WriteLiteralTo(__razor_helper_writer, " class=\"icon ml-2\"");
26137
26138 WriteLiteralTo(__razor_helper_writer, " style=\"--icon-size: 4rem\"");
26139
26140 WriteLiteralTo(__razor_helper_writer, ">\r\n <div");
26141
26142 WriteLiteralTo(__razor_helper_writer, " class=\"ico\"");
26143
26144 WriteLiteralTo(__razor_helper_writer, ">\r\n <svg");
26145
26146 WriteLiteralTo(__razor_helper_writer, " xmlns=\"http://www.w3.org/2000/svg\"");
26147
26148 WriteLiteralTo(__razor_helper_writer, " viewBox=\"0 0 43.08 17.46\"");
26149
26150 WriteLiteralTo(__razor_helper_writer, "> \r\n <g");
26151
26152 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_2\"");
26153
26154 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 2\"");
26155
26156 WriteLiteralTo(__razor_helper_writer, ">\r\n <g");
26157
26158 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_1-2\"");
26159
26160 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 1\"");
26161
26162 WriteLiteralTo(__razor_helper_writer, ">\r\n <g>\r\n <g");
26163
26164 WriteLiteralTo(__razor_helper_writer, " id=\"Layer_2-2\"");
26165
26166 WriteLiteralTo(__razor_helper_writer, " data-name=\"Layer 2\"");
26167
26168 WriteLiteralTo(__razor_helper_writer, ">\r\n <path");
26169
26170 WriteLiteralTo(__razor_helper_writer, @" d=""M40.08,0H21.82a3,3,0,0,0-3,3V14.46a3,3,0,0,0,3,3H40.08a3,3,0,0,0,3-3V3A3,3,0,0,0,40.08,0ZM34,8.58,41.73,1.9A2,2,0,0,1,42.05,3V14.46a2,2,0,0,1-.22.89ZM40.08,1a1.91,1.91,0,0,1,.9.23L31.25,9.64a.5.5,0,0,1-.63,0L20.89,1.23A2,2,0,0,1,21.82,1Zm-20,14.35a1.88,1.88,0,0,1-.26-.89V3a2,2,0,0,1,.32-1.1l7.73,6.68Zm1.74,1.08a2,2,0,0,1-1.09-.33l7.91-6.86L30,10.39a1.47,1.47,0,0,0,1.93,0l1.34-1.15,7.93,6.86a2,2,0,0,1-1.09.33Z""");
26171
26172 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26173
26174 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n <g>\r\n <line");
26175
26176 WriteLiteralTo(__razor_helper_writer, " x1=\"0.5\"");
26177
26178 WriteLiteralTo(__razor_helper_writer, " y1=\"0.65\"");
26179
26180 WriteLiteralTo(__razor_helper_writer, " x2=\"18\"");
26181
26182 WriteLiteralTo(__razor_helper_writer, " y2=\"0.65\"");
26183
26184 WriteLiteralTo(__razor_helper_writer, " fill=\"#fff\"");
26185
26186 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
26187
26188 WriteLiteralTo(__razor_helper_writer, " d=\"M18,1.15H.5A.5.5,0,0,1,0,.65.5.5,0,0,1,.5.15H18a.5.5,0,0,1,.5.5A.5.5,0,0,1,18" +
26189 ",1.15Z\"");
26190
26191 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26192
26193 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n <g>\r\n <line");
26194
26195 WriteLiteralTo(__razor_helper_writer, " x1=\"3.96\"");
26196
26197 WriteLiteralTo(__razor_helper_writer, " y1=\"3.86\"");
26198
26199 WriteLiteralTo(__razor_helper_writer, " x2=\"16.8\"");
26200
26201 WriteLiteralTo(__razor_helper_writer, " y2=\"3.86\"");
26202
26203 WriteLiteralTo(__razor_helper_writer, " fill=\"#fff\"");
26204
26205 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
26206
26207 WriteLiteralTo(__razor_helper_writer, " d=\"M16.8,4.36H4a.5.5,0,0,1-.5-.5.51.51,0,0,1,.5-.5H16.8a.51.51,0,0,1,.5.5A.5.5,0" +
26208 ",0,1,16.8,4.36Z\"");
26209
26210 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26211
26212 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n <g>\r\n <line");
26213
26214 WriteLiteralTo(__razor_helper_writer, " x1=\"7.87\"");
26215
26216 WriteLiteralTo(__razor_helper_writer, " y1=\"7.08\"");
26217
26218 WriteLiteralTo(__razor_helper_writer, " x2=\"16.04\"");
26219
26220 WriteLiteralTo(__razor_helper_writer, " y2=\"7.08\"");
26221
26222 WriteLiteralTo(__razor_helper_writer, " fill=\"#fff\"");
26223
26224 WriteLiteralTo(__razor_helper_writer, "/>\r\n <path");
26225
26226 WriteLiteralTo(__razor_helper_writer, " d=\"M16,7.58H7.88a.5.5,0,0,1-.5-.5.5.5,0,0,1,.5-.5H16a.5.5,0,0,1,.5.5A.5.5,0,0,1," +
26227 "16,7.58Z\"");
26228
26229 WriteLiteralTo(__razor_helper_writer, " fill=\"var(--color-brand)\"");
26230
26231 WriteLiteralTo(__razor_helper_writer, "/>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </s" +
26232 "vg>\r\n\r\n </div>\r\n </span></a>\r\n");
26233
26234
26235 #line 9012 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26236
26237
26238
26239 #line default
26240 #line hidden
26241 });
26242
26243 #line 9013 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26244 }
26245 #line default
26246 #line hidden
26247
26248
26249 #line 9014 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26250 public RazorEngine.Templating.TemplateWriter RenderFooterPayments(Df.Dw.Rapido.AreaInfo areaInfo) {
26251 #line default
26252 #line hidden
26253 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26254
26255 #line 9014 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26256
26257
26258
26259 #line default
26260 #line hidden
26261 WriteLiteralTo(__razor_helper_writer, " <div");
26262
26263 WriteLiteralTo(__razor_helper_writer, " class=\"payment--icons\"");
26264
26265 WriteLiteralTo(__razor_helper_writer, ">\r\n");
26266
26267
26268 #line 9016 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26269
26270
26271 #line default
26272 #line hidden
26273
26274 #line 9016 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26275 foreach (var payment in areaInfo.FooterPayments)
26276 {
26277 var paymentItem = payment.GetValue("CardTypeOrVerifiedPayment") as Dynamicweb.Frontend.ListViewModel;
26278 string paymentImage = null;
26279 string paymentTitle = paymentItem.SelectedName;
26280 ListOptionViewModel selected = paymentItem.SelectedOptions.FirstOrDefault();
26281 if (selected != null)
26282 {
26283 paymentImage = selected.Icon;
26284 }
26285
26286
26287
26288 #line default
26289 #line hidden
26290 WriteLiteralTo(__razor_helper_writer, " <img");
26291
26292 WriteLiteralTo(__razor_helper_writer, " class=\"b-lazy\"");
26293
26294 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 434257), Tuple.Create("\"", 434335)
26295 , Tuple.Create(Tuple.Create("", 434263), Tuple.Create("/Admin/Public/GetImage.ashx?height=40&Compression=75&image=", 434263), true)
26296
26297 #line 9027 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26298 , Tuple.Create(Tuple.Create("", 434322), Tuple.Create<System.Object, System.Int32>(paymentImage
26299
26300 #line default
26301 #line hidden
26302 , 434322), false)
26303 );
26304
26305 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 434336), Tuple.Create("\"", 434355)
26306
26307 #line 9027 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26308 , Tuple.Create(Tuple.Create("", 434342), Tuple.Create<System.Object, System.Int32>(paymentTitle
26309
26310 #line default
26311 #line hidden
26312 , 434342), false)
26313 );
26314
26315 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 434356), Tuple.Create("\"", 434377)
26316
26317 #line 9027 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26318 , Tuple.Create(Tuple.Create("", 434364), Tuple.Create<System.Object, System.Int32>(paymentTitle
26319
26320 #line default
26321 #line hidden
26322 , 434364), false)
26323 );
26324
26325 WriteLiteralTo(__razor_helper_writer, " />\r\n");
26326
26327
26328 #line 9028 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26329 }
26330
26331
26332 #line default
26333 #line hidden
26334 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
26335
26336
26337 #line 9030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26338
26339
26340 #line default
26341 #line hidden
26342 });
26343
26344 #line 9030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26345 }
26346 #line default
26347 #line hidden
26348
26349
26350 #line 9032 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26351 public RazorEngine.Templating.TemplateWriter RenderFooterCopyright(Df.Dw.Rapido.AreaInfo areaInfo) {
26352 #line default
26353 #line hidden
26354 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26355
26356 #line 9032 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26357
26358
26359
26360 #line default
26361 #line hidden
26362 WriteLiteralTo(__razor_helper_writer, " <span");
26363
26364 WriteLiteralTo(__razor_helper_writer, " class=\"h5 font-condensed order-1 order-xs-0 mt-2 mt-xs-0 font-md\"");
26365
26366 WriteLiteralTo(__razor_helper_writer, ">");
26367
26368
26369 #line 9033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26370 WriteTo(__razor_helper_writer, areaInfo.FooterCopyrightText);
26371
26372
26373 #line default
26374 #line hidden
26375 WriteLiteralTo(__razor_helper_writer, "</span>\r\n");
26376
26377
26378 #line 9034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26379
26380
26381 #line default
26382 #line hidden
26383 });
26384
26385 #line 9034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26386 }
26387 #line default
26388 #line hidden
26389
26390
26391 #line 9036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26392 public RazorEngine.Templating.TemplateWriter RenderFooterAddress(Df.Dw.Rapido.AreaInfo areaInfo)
26393 {
26394 #line default
26395 #line hidden
26396 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26397
26398 #line 9037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26399
26400
26401
26402 #line default
26403 #line hidden
26404 WriteLiteralTo(__razor_helper_writer, " <h6");
26405
26406 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h5 weight-bold mb-2\"");
26407
26408 WriteLiteralTo(__razor_helper_writer, ">");
26409
26410
26411 #line 9038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26412 WriteTo(__razor_helper_writer, Translate(Translations.General.Contact));
26413
26414
26415 #line default
26416 #line hidden
26417 WriteLiteralTo(__razor_helper_writer, "</h6>\r\n");
26418
26419 WriteLiteralTo(__razor_helper_writer, " <div");
26420
26421 WriteLiteralTo(__razor_helper_writer, " class=\"company-address font-md\"");
26422
26423 WriteLiteralTo(__razor_helper_writer, ">\r\n <p>");
26424
26425
26426 #line 9040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26427 WriteTo(__razor_helper_writer, areaInfo.CompanyAddressStreetAddress);
26428
26429
26430 #line default
26431 #line hidden
26432 WriteLiteralTo(__razor_helper_writer, ", ");
26433
26434
26435 #line 9040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26436 WriteTo(__razor_helper_writer, areaInfo.CompanyAddressPostalCode);
26437
26438
26439 #line default
26440 #line hidden
26441 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <p>");
26442
26443
26444 #line 9041 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26445 WriteTo(__razor_helper_writer, areaInfo.CompanyAddressCity);
26446
26447
26448 #line default
26449 #line hidden
26450 WriteLiteralTo(__razor_helper_writer, ", ");
26451
26452
26453 #line 9041 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26454 WriteTo(__razor_helper_writer, areaInfo.CompanyAddressRegion);
26455
26456
26457 #line default
26458 #line hidden
26459 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <p>");
26460
26461
26462 #line 9042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26463 WriteTo(__razor_helper_writer, areaInfo.CompanyAddressCountry);
26464
26465
26466 #line default
26467 #line hidden
26468 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <p>");
26469
26470
26471 #line 9043 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26472 WriteTo(__razor_helper_writer, areaInfo.ContactEmail);
26473
26474
26475 #line default
26476 #line hidden
26477 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <p>");
26478
26479
26480 #line 9044 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26481 WriteTo(__razor_helper_writer, areaInfo.ContactNumber);
26482
26483
26484 #line default
26485 #line hidden
26486 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n");
26487
26488
26489 #line 9046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26490
26491
26492
26493 #line default
26494 #line hidden
26495 });
26496
26497 #line 9047 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26498 }
26499 #line default
26500 #line hidden
26501
26502
26503 #line 9048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26504 public RazorEngine.Templating.TemplateWriter RenderBeInspired()
26505 {
26506 #line default
26507 #line hidden
26508 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26509
26510 #line 9049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26511
26512
26513
26514 #line default
26515 #line hidden
26516 WriteLiteralTo(__razor_helper_writer, " <div");
26517
26518 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap align-items-center\"");
26519
26520 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5");
26521
26522 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h4 weight-normal\"");
26523
26524 WriteLiteralTo(__razor_helper_writer, ">Be Inspired</h5>\r\n </div>\r\n");
26525
26526
26527 #line 9053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26528
26529
26530 #line default
26531 #line hidden
26532 });
26533
26534 #line 9053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26535 }
26536 #line default
26537 #line hidden
26538
26539
26540 #line 9054 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26541 public RazorEngine.Templating.TemplateWriter RenderGetConnected()
26542 {
26543 #line default
26544 #line hidden
26545 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26546
26547 #line 9055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26548
26549
26550
26551 #line default
26552 #line hidden
26553 WriteLiteralTo(__razor_helper_writer, " <div");
26554
26555 WriteLiteralTo(__razor_helper_writer, " class=\"flex-wrap align-items-center\"");
26556
26557 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5");
26558
26559 WriteLiteralTo(__razor_helper_writer, " class=\"footer__heading h4 weight-normal\"");
26560
26561 WriteLiteralTo(__razor_helper_writer, ">Get Connected</h5>\r\n </div>\r\n");
26562
26563
26564 #line 9059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26565
26566
26567 #line default
26568 #line hidden
26569 });
26570
26571 #line 9059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26572 }
26573 #line default
26574 #line hidden
26575
26576
26577 #line 9060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26578 public RazorEngine.Templating.TemplateWriter RenderCompareModule() {
26579 #line default
26580 #line hidden
26581 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26582
26583 #line 9060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26584
26585 var compareMaxItems = Pageview.Device.ToString() == "Mobile" ? "2" : "3";
26586 var DesignFolder = Pageview.Layout.Design.Name;
26587
26588
26589 #line default
26590 #line hidden
26591 WriteLiteralTo(__razor_helper_writer, " <div");
26592
26593 WriteLiteralTo(__razor_helper_writer, " class=\"row compareWrapper hidden\"");
26594
26595 WriteLiteralTo(__razor_helper_writer, " \r\n data-compare-new-list=\"");
26596
26597
26598 #line 9064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26599 WriteTo(__razor_helper_writer, Translate("Compare new list"));
26600
26601
26602 #line default
26603 #line hidden
26604 WriteLiteralTo(__razor_helper_writer, "\"");
26605
26606 WriteLiteralTo(__razor_helper_writer, "\r\n data-compare-keep-list=\"");
26607
26608
26609 #line 9065 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26610 WriteTo(__razor_helper_writer, Translate("Compare keep list"));
26611
26612
26613 #line default
26614 #line hidden
26615 WriteLiteralTo(__razor_helper_writer, "\"");
26616
26617 WriteLiteralTo(__razor_helper_writer, "\r\n data-compare-different-group=\"");
26618
26619
26620 #line 9066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26621 WriteTo(__razor_helper_writer, Translate("Compare product is in different group"));
26622
26623
26624 #line default
26625 #line hidden
26626 WriteLiteralTo(__razor_helper_writer, "\"");
26627
26628 WriteLiteralTo(__razor_helper_writer, "\r\n data-compare-list-full=\"");
26629
26630
26631 #line 9067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26632 WriteTo(__razor_helper_writer, Translate("Compare list is full"));
26633
26634
26635 #line default
26636 #line hidden
26637 WriteLiteralTo(__razor_helper_writer, "\"");
26638
26639 WriteLiteralTo(__razor_helper_writer, " data-compare-max-items=\"");
26640
26641
26642 #line 9067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26643 WriteTo(__razor_helper_writer, compareMaxItems);
26644
26645
26646 #line default
26647 #line hidden
26648 WriteLiteralTo(__razor_helper_writer, "\"");
26649
26650 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n <div");
26651
26652 WriteLiteralTo(__razor_helper_writer, " class=\"compareHeader\"");
26653
26654 WriteLiteralTo(__razor_helper_writer, ">\r\n <span> ");
26655
26656
26657 #line 9070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26658 WriteTo(__razor_helper_writer, Translate("Compare products"));
26659
26660
26661 #line default
26662 #line hidden
26663 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <button");
26664
26665 WriteLiteralTo(__razor_helper_writer, " id=\"collapseCompareWrapper\"");
26666
26667 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon\"");
26668
26669 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 436169), Tuple.Create("\"", 436207)
26670
26671 #line 9071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26672 , Tuple.Create(Tuple.Create("", 436177), Tuple.Create<System.Object, System.Int32>(Translate("Compare products")
26673
26674 #line default
26675 #line hidden
26676 , 436177), false)
26677 );
26678
26679 WriteLiteralTo(__razor_helper_writer, ">");
26680
26681
26682 #line 9071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26683 WriteTo(__razor_helper_writer, RenderInlineSvg("default","compare"));
26684
26685
26686 #line default
26687 #line hidden
26688 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </div> \r\n\r\n <div");
26689
26690 WriteLiteralTo(__razor_helper_writer, " class=\"compareList\"");
26691
26692 WriteLiteralTo(__razor_helper_writer, "></div> \r\n <div");
26693
26694 WriteLiteralTo(__razor_helper_writer, " class=\"compareButton\"");
26695
26696 WriteLiteralTo(__razor_helper_writer, "><a");
26697
26698 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-border--dark\"");
26699
26700 WriteLiteralTo(__razor_helper_writer, " id=\"df-compare\"");
26701
26702 WriteLiteralTo(__razor_helper_writer, " data-initial-link=\"/Default.aspx?ID=");
26703
26704
26705 #line 9075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26706 WriteTo(__razor_helper_writer, GetPageIdByNavigationTag("ProductsPage"));
26707
26708
26709 #line default
26710 #line hidden
26711 WriteLiteralTo(__razor_helper_writer, "&compare=\"");
26712
26713 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 436488), Tuple.Create("\"", 436562)
26714 , Tuple.Create(Tuple.Create("", 436495), Tuple.Create("/Default.aspx?ID=", 436495), true)
26715
26716 #line 9075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26717 , Tuple.Create(Tuple.Create("", 436512), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage")
26718
26719 #line default
26720 #line hidden
26721 , 436512), false)
26722 , Tuple.Create(Tuple.Create("", 436553), Tuple.Create("&compare=", 436553), true)
26723 );
26724
26725 WriteLiteralTo(__razor_helper_writer, ">");
26726
26727
26728 #line 9075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26729 WriteTo(__razor_helper_writer, Translate("Compare products"));
26730
26731
26732 #line default
26733 #line hidden
26734 WriteLiteralTo(__razor_helper_writer, "</a></div> \r\n </div> \r\n");
26735
26736
26737 #line 9077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26738
26739
26740 #line default
26741 #line hidden
26742 });
26743
26744 #line 9077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26745 }
26746 #line default
26747 #line hidden
26748
26749
26750 #line 9099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26751 public RazorEngine.Templating.TemplateWriter RenderMasterScriptReferences() {
26752 #line default
26753 #line hidden
26754 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26755
26756 #line 9099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26757
26758
26759
26760 #line default
26761 #line hidden
26762
26763 #line 9100 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26764
26765
26766
26767 #line default
26768 #line hidden
26769
26770 #line 9101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26771
26772
26773
26774
26775 #line default
26776 #line hidden
26777
26778 #line 9103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26779 WriteTo(__razor_helper_writer, RenderSnippet("Script"));
26780
26781
26782 #line default
26783 #line hidden
26784
26785 #line 9103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26786
26787
26788
26789 #line default
26790 #line hidden
26791 });
26792
26793 #line 9104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26794 }
26795 #line default
26796 #line hidden
26797
26798
26799 #line 9131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26800 public RazorEngine.Templating.TemplateWriter RenderSearchScriptTemplates()
26801 {
26802 #line default
26803 #line hidden
26804 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
26805
26806 #line 9132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26807
26808 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
26809 var user = User.GetCurrentExtranetUser();
26810 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null;
26811 var DesignFolder = Pageview.Layout.Design.Name;
26812
26813
26814
26815 #line default
26816 #line hidden
26817 WriteLiteralTo(__razor_helper_writer, " <script");
26818
26819 WriteLiteralTo(__razor_helper_writer, " id=\"SearchGroupsTemplate\"");
26820
26821 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
26822
26823 WriteLiteralTo(__razor_helper_writer, ">\r\n {{#.}}\r\n <li class=\"dropdown__item\" onclick=\"Search.UpdateG" +
26824 "roupSelection(this)\" data-group-id=\"{{id}}\">{{name}}</li>\r\n {{/.}}\r\n <" +
26825 "/script>\r\n");
26826
26827
26828 #line 9143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26829
26830
26831
26832 #line default
26833 #line hidden
26834 WriteLiteralTo(__razor_helper_writer, " <script");
26835
26836 WriteLiteralTo(__razor_helper_writer, " id=\"SearchProductsTemplate\"");
26837
26838 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
26839
26840 WriteLiteralTo(__razor_helper_writer, ">\r\n {{#each this}}\r\n {{#Product}}\r\n {{#ifCond te" +
26841 "mplate \"!==\" \"SearchMore\"}}\r\n <li class=\"item bg-neutral p-2\"" +
26842 ">\r\n");
26843
26844
26845 #line 9149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26846
26847
26848 #line default
26849 #line hidden
26850
26851 #line 9149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26852 if (areaInfo.FacebookPixelID.HasValue())
26853 {
26854
26855
26856 #line default
26857 #line hidden
26858 WriteLiteralTo(__razor_helper_writer, " ");
26859
26860 WriteLiteralTo(__razor_helper_writer, "{{{facebookPixelSearch name number priceDouble currency searchParameter}}}");
26861
26862 WriteLiteralTo(__razor_helper_writer, "\r\n");
26863
26864
26865 #line 9152 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26866 }
26867
26868
26869 #line default
26870 #line hidden
26871 WriteLiteralTo(__razor_helper_writer, " ");
26872
26873
26874 #line 9153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26875 if (areaInfo.GoogleTagManagerID.HasValue())
26876 {
26877
26878
26879 #line default
26880 #line hidden
26881 WriteLiteralTo(__razor_helper_writer, " ");
26882
26883 WriteLiteralTo(__razor_helper_writer, "{{{googleEnchantImpression \'Search results\' currency googleImpression}}}");
26884
26885 WriteLiteralTo(__razor_helper_writer, "\r\n");
26886
26887
26888 #line 9156 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26889 }
26890
26891
26892 #line default
26893 #line hidden
26894 WriteLiteralTo(__razor_helper_writer, @"
26895 <a href=""{{link}}"" onclick=""{{googleImpressionClick}}"" class=""item__title grid-auto-1 text-decoration-none"" title=""{{name}}"">
26896 <img class=""lazyload item__image"" loading=""lazy"" width=""45"" height=""36"" src=""/Admin/Public/GetImage.ashx?width=45&height=36&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image=%2fImages%2fmissing_image.jpg"" data-src=""/Admin/Public/GetImage.ashx?width=45&height=36&crop=5&FillCanvas=True&Compression=75&image={{image}}"" alt=""{{name}}"">
26897
26898 <div class=""item__name order--1"">{{name}}</div>
26899 ");
26900
26901
26902 #line 9162 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26903
26904
26905 #line default
26906 #line hidden
26907
26908 #line 9162 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26909 if (areaInfo.ShowPrice && !onlyPreview)
26910 {
26911 if (areaInfo.PointShopOnly)
26912 {
26913
26914
26915 #line default
26916 #line hidden
26917 WriteLiteralTo(__razor_helper_writer, " ");
26918
26919 WriteLiteralTo(__razor_helper_writer, "\r\n {{#if havePointPrice}}\r\n " +
26920 " <span>{{points}}</span> ");
26921
26922
26923 #line 9168 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26924 WriteTo(__razor_helper_writer, Translate(Translations.Cart.Points));
26925
26926
26927 #line default
26928 #line hidden
26929 WriteLiteralTo(__razor_helper_writer, "\r\n {{else}}\r\n " +
26930 " <small>");
26931
26932
26933 #line 9170 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26934 WriteTo(__razor_helper_writer, Translate(Translations.General.NotAvailable));
26935
26936
26937 #line default
26938 #line hidden
26939 WriteLiteralTo(__razor_helper_writer, @"</small>
26940 {{/if}}
26941 {{#unless canBePurchasedWithPoints}}
26942 {{#if havePointPrice}}
26943 <small>");
26944
26945
26946 #line 9174 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26947 WriteTo(__razor_helper_writer, Translate(Translations.Cart.NotEnoughPointsToBuyThis));
26948
26949
26950 #line default
26951 #line hidden
26952 WriteLiteralTo(__razor_helper_writer, "</small>\r\n {{/if}}\r\n " +
26953 " {{/unless}}\r\n " +
26954 " ");
26955
26956 WriteLiteralTo(__razor_helper_writer, "\r\n");
26957
26958
26959 #line 9178 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26960 }
26961 else
26962 {
26963
26964
26965 #line default
26966 #line hidden
26967 WriteLiteralTo(__razor_helper_writer, " <div>{{price}}</div>\r\n");
26968
26969
26970 #line 9182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26971 }
26972 }
26973
26974
26975 #line default
26976 #line hidden
26977 WriteLiteralTo(__razor_helper_writer, " \r\n </a>\r\n " +
26978 " <div class=\"item__actions hidden\">\r\n");
26979
26980
26981 #line 9187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26982
26983
26984 #line default
26985 #line hidden
26986
26987 #line 9187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
26988 if (areaInfo.ProductListShowCartButton && !onlyPreview) {
26989 if (areaInfo.PointShopOnly)
26990 {
26991
26992
26993 #line default
26994 #line hidden
26995 WriteLiteralTo(__razor_helper_writer, " <button");
26996
26997 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
26998
26999 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon--dark {{hideBuyOptions}} js-ignore-click-outside {{#unless canBe" +
27000 "PurchasedWithPoints}}js-stay-disabled{{/unless}}\"");
27001
27002 WriteLiteralTo(__razor_helper_writer, " name=\"CartCmd\"");
27003
27004 WriteLiteralTo(__razor_helper_writer, " value=\"addWithPoints\"");
27005
27006 WriteLiteralTo(__razor_helper_writer, @"
27007 onclick=""Cart.AddToCart(event, {
27008 id: '{{productId}}',
27009 quantity: 1,
27010 buyForPoints: true,
27011 productInfo: {{productInfo}}
27012 }); {{facebookPixelAction}}""");
27013
27014 WriteLiteralTo(__razor_helper_writer, " {{disabledBuyButton}}>\r\n <ion-icon");
27015
27016 WriteLiteralTo(__razor_helper_writer, " name=\"arrow-forward\"");
27017
27018 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n");
27019
27020
27021 #line 9199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27022 } else {
27023
27024
27025 #line default
27026 #line hidden
27027 WriteLiteralTo(__razor_helper_writer, " <form>\r\n " +
27028 " <input");
27029
27030 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
27031
27032 WriteLiteralTo(__razor_helper_writer, " name=\"ProductID\"");
27033
27034 WriteLiteralTo(__razor_helper_writer, " value=\"{{productId}}\"");
27035
27036 WriteLiteralTo(__razor_helper_writer, " />\r\n ");
27037
27038 WriteLiteralTo(__razor_helper_writer, "\r\n <input");
27039
27040 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
27041
27042 WriteLiteralTo(__razor_helper_writer, " name=\"ID\"");
27043
27044 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 443265), Tuple.Create("\"", 443313)
27045
27046 #line 9203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27047 , Tuple.Create(Tuple.Create("", 443273), Tuple.Create<System.Object, System.Int32>(areaInfo.MiniCartFeedPage.ID.ToString()
27048
27049 #line default
27050 #line hidden
27051 , 443273), false)
27052 );
27053
27054 WriteLiteralTo(__razor_helper_writer, " />\r\n <input");
27055
27056 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
27057
27058 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\"");
27059
27060 WriteLiteralTo(__razor_helper_writer, " value=\"false\"");
27061
27062 WriteLiteralTo(__razor_helper_writer, " />\r\n <input");
27063
27064 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\"");
27065
27066 WriteLiteralTo(__razor_helper_writer, " name=\"CartCmd\"");
27067
27068 WriteLiteralTo(__razor_helper_writer, " value=\"add\"");
27069
27070 WriteLiteralTo(__razor_helper_writer, " />\r\n <df-quantity");
27071
27072 WriteLiteralTo(__razor_helper_writer, " name=\"Quantity\"");
27073
27074 WriteLiteralTo(__razor_helper_writer, " value=\"1\"");
27075
27076 WriteLiteralTo(__razor_helper_writer, " class=\"item__quantity\"");
27077
27078 WriteLiteralTo(__razor_helper_writer, "></df-quantity>\r\n <button");
27079
27080 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
27081
27082 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon {{hideBuyOptions}} item__addToCart\"");
27083
27084 WriteLiteralTo(__razor_helper_writer, " data-role=\"add-to-cart\"");
27085
27086 WriteAttributeTo(__razor_helper_writer, "message-success", Tuple.Create(" message-success=\"", 443777), Tuple.Create("\"", 443848)
27087
27088 #line 9207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27089 , Tuple.Create(Tuple.Create("", 443795), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.ProductIsAddedToTheCart)
27090
27091 #line default
27092 #line hidden
27093 , 443795), false)
27094 );
27095
27096 WriteLiteralTo(__razor_helper_writer, ">\r\n <ion-icon");
27097
27098 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 443913), Tuple.Create("\"", 443980)
27099 , Tuple.Create(Tuple.Create("", 443919), Tuple.Create("/Files/Templates/Designs/", 443919), true)
27100
27101 #line 9208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27102 , Tuple.Create(Tuple.Create("", 443944), Tuple.Create<System.Object, System.Int32>(DesignFolder
27103
27104 #line default
27105 #line hidden
27106 , 443944), false)
27107 , Tuple.Create(Tuple.Create("", 443957), Tuple.Create("/icons/default/cart.svg", 443957), true)
27108 );
27109
27110 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n " +
27111 " </form>\r\n");
27112
27113
27114 #line 9211 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27115 }
27116
27117
27118 #line default
27119 #line hidden
27120 WriteLiteralTo(__razor_helper_writer, " <a");
27121
27122 WriteLiteralTo(__razor_helper_writer, " href=\"{{link}}\"");
27123
27124 WriteLiteralTo(__razor_helper_writer, " onclick=\"{{googleImpressionClick}}\"");
27125
27126 WriteLiteralTo(__razor_helper_writer, " class=\"btn-icon--dark hidden {{hideViewMore}}\"");
27127
27128 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 444275), Tuple.Create("\"", 444320)
27129
27130 #line 9212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27131 , Tuple.Create(Tuple.Create("", 444283), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.View)
27132
27133 #line default
27134 #line hidden
27135 , 444283), false)
27136 );
27137
27138 WriteLiteralTo(__razor_helper_writer, "><ion-icon");
27139
27140 WriteLiteralTo(__razor_helper_writer, " name=\"arrow-forward\"");
27141
27142 WriteLiteralTo(__razor_helper_writer, "></ion-icon></a>\r\n");
27143
27144
27145 #line 9213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27146 }
27147 else if (areaInfo.ProductListShowViewButton)
27148 {
27149
27150
27151 #line default
27152 #line hidden
27153 WriteLiteralTo(__razor_helper_writer, " <a");
27154
27155 WriteLiteralTo(__razor_helper_writer, " href=\"{{link}}\"");
27156
27157 WriteLiteralTo(__razor_helper_writer, " onclick=\"{{googleImpressionClick}}\"");
27158
27159 WriteLiteralTo(__razor_helper_writer, " class=\"btn js-ignore-click-outside\"");
27160
27161 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 444644), Tuple.Create("\"", 444689)
27162
27163 #line 9216 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27164 , Tuple.Create(Tuple.Create("", 444652), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.View)
27165
27166 #line default
27167 #line hidden
27168 , 444652), false)
27169 );
27170
27171 WriteLiteralTo(__razor_helper_writer, ">");
27172
27173
27174 #line 9216 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27175 WriteTo(__razor_helper_writer, Translate(Translations.General.View));
27176
27177
27178 #line default
27179 #line hidden
27180 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
27181
27182
27183 #line 9217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27184 }
27185
27186
27187 #line default
27188 #line hidden
27189 WriteLiteralTo(__razor_helper_writer, " ");
27190
27191
27192 #line 9218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27193 if (areaInfo.ProductListShowAddToDownloadButton)
27194 {
27195
27196
27197 #line default
27198 #line hidden
27199 WriteLiteralTo(__razor_helper_writer, " <button");
27200
27201 WriteLiteralTo(__razor_helper_writer, " type=\"button\"");
27202
27203 WriteLiteralTo(__razor_helper_writer, " class=\"btn js-add-to-downloads\"");
27204
27205 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 444976), Tuple.Create("\"", 445020)
27206
27207 #line 9220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27208 , Tuple.Create(Tuple.Create("", 444984), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Add)
27209
27210 #line default
27211 #line hidden
27212 , 444984), false)
27213 );
27214
27215 WriteLiteralTo(__razor_helper_writer, " data-product-id=\"{{productId}}\"");
27216
27217 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
27218
27219 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-plus js-button-icon\"");
27220
27221 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n");
27222
27223
27224 #line 9223 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27225 }
27226
27227
27228 #line default
27229 #line hidden
27230 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </li>\r\n {{" +
27231 "/ifCond}}\r\n {{#ifCond template \"===\" \"SearchMore\"}}\r\n " +
27232 " ");
27233
27234 WriteLiteralTo(__razor_helper_writer, "\r\n <li class=\"item item--full {{stickToBottom}}\">\r\n " +
27235 " \t<button type=\"button\" class=\"btn-link typeahead__submit icon-right py-" +
27236 "1\" data-results-page=\"/Default.aspx?ID=");
27237
27238
27239 #line 9230 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27240 WriteTo(__razor_helper_writer, areaInfo.ProductsPage.ID);
27241
27242
27243 #line default
27244 #line hidden
27245 WriteLiteralTo(__razor_helper_writer, "\"><span>");
27246
27247
27248 #line 9230 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27249 WriteTo(__razor_helper_writer, Translate(Translations.General.ViewAll));
27250
27251
27252 #line default
27253 #line hidden
27254 WriteLiteralTo(__razor_helper_writer, "</span></button>\r\n </li>\r\n {{/ifCond}}\r\n " +
27255 " {{/Product}}\r\n {{else}}\r\n <li class=\"dropdown__item\">\r\n");
27256
27257 WriteLiteralTo(__razor_helper_writer, " ");
27258
27259
27260 #line 9236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27261 WriteTo(__razor_helper_writer, Translate(Translations.General.YourSearchGave0Results));
27262
27263
27264 #line default
27265 #line hidden
27266 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n {{/each}}\r\n </script>\r\n");
27267
27268
27269 #line 9240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27270
27271
27272
27273 #line default
27274 #line hidden
27275 WriteLiteralTo(__razor_helper_writer, " <script");
27276
27277 WriteLiteralTo(__razor_helper_writer, " id=\"RecentSearchesTemplate\"");
27278
27279 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27280
27281 WriteLiteralTo(__razor_helper_writer, ">\r\n <li class=\"recent-searches-header\">\r\n <h4>");
27282
27283
27284 #line 9243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27285 WriteTo(__razor_helper_writer, Translate(Translations.Products.RecentSearches));
27286
27287
27288 #line default
27289 #line hidden
27290 WriteLiteralTo(__razor_helper_writer, "</h4>\r\n <button class=\"clear-recent-searches\"> Clear </button>\r\n " +
27291 " </li> \r\n {{#each RecentSearches}}\r\n <li> {{this}} </li>\r" +
27292 "\n {{/each}} \r\n </script>\r\n");
27293
27294
27295 #line 9250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27296
27297
27298
27299 #line default
27300 #line hidden
27301 WriteLiteralTo(__razor_helper_writer, "\t<script");
27302
27303 WriteLiteralTo(__razor_helper_writer, " id=\"SearchCategoriesTemplate\"");
27304
27305 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27306
27307 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<df-select id=\"headerSearch__categories\" name=\"headerSearch__categories\" va" +
27308 "lue=\"\" label=\"");
27309
27310
27311 #line 9252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27312 WriteTo(__razor_helper_writer, Translate(Translations.Products.Categories));
27313
27314
27315 #line default
27316 #line hidden
27317 WriteLiteralTo(__razor_helper_writer, "\"> \r\n\t\t{{#each this}}\r\n\t\t\t<df-option value=\"{{id}}\" label=\"{{name}}\"><span>{{name" +
27318 "}}</span></df-option>\r\n\t\t{{/each}}\r\n </df-select>\r\n\t\t\r\n\t</script>\r\n");
27319
27320
27321 #line 9259 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27322
27323
27324
27325 #line default
27326 #line hidden
27327 WriteLiteralTo(__razor_helper_writer, " <script");
27328
27329 WriteLiteralTo(__razor_helper_writer, " id=\"SearchMoreProducts\"");
27330
27331 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27332
27333 WriteLiteralTo(__razor_helper_writer, ">\r\n <li class=\"dropdown__item {{stickToBottom}}\">\r\n <button typ" +
27334 "e=\"button\" class=\"btn\" data-results-page=\"/Default.aspx?ID=");
27335
27336
27337 #line 9262 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27338 WriteTo(__razor_helper_writer, areaInfo.ProductsPage.ID);
27339
27340
27341 #line default
27342 #line hidden
27343 WriteLiteralTo(__razor_helper_writer, "\"> ");
27344
27345
27346 #line 9262 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27347 WriteTo(__razor_helper_writer, Translate(Translations.General.ViewAll));
27348
27349
27350 #line default
27351 #line hidden
27352 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </li>\r\n </script>\r\n");
27353
27354
27355 #line 9265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27356
27357
27358
27359 #line default
27360 #line hidden
27361 WriteLiteralTo(__razor_helper_writer, " <script");
27362
27363 WriteLiteralTo(__razor_helper_writer, " id=\"SearchMorePages\"");
27364
27365 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27366
27367 WriteLiteralTo(__razor_helper_writer, ">\r\n <li class=\"dropdown__item {{stickToBottom}}\">\r\n\t\t\t<button type=\"button" +
27368 "\" class=\"btn\" data-results-page=\"/Default.aspx?ID=");
27369
27370
27371 #line 9268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27372 WriteTo(__razor_helper_writer, areaInfo.ProductsPage.ID);
27373
27374
27375 #line default
27376 #line hidden
27377 WriteLiteralTo(__razor_helper_writer, "\"> ");
27378
27379
27380 #line 9268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27381 WriteTo(__razor_helper_writer, Translate(Translations.General.ViewAll));
27382
27383
27384 #line default
27385 #line hidden
27386 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </li>\r\n </script>\r\n");
27387
27388
27389 #line 9271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27390
27391
27392
27393 #line default
27394 #line hidden
27395 WriteLiteralTo(__razor_helper_writer, " <script");
27396
27397 WriteLiteralTo(__razor_helper_writer, " id=\"SearchPagesTemplate\"");
27398
27399 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27400
27401 WriteLiteralTo(__razor_helper_writer, @">
27402 {{#each .}}
27403 {{#ifCond template ""!=="" ""SearchMore""}}
27404 <li class=""dropdown__item"">
27405 <a href=""/Default.aspx?ID={{id}}"" class=""js-typeahead-link"">
27406 <i class=""fa {{icon}}""></i>
27407 <div class=""js-typeahead-name"">{{name}}</div>
27408 </a>
27409 </li>
27410 {{/ifCond}}
27411 {{#ifCond template ""==="" ""SearchMore""}}
27412 {{>SearchMorePages}}
27413 {{/ifCond}}
27414 {{else}}
27415 <li>
27416 ");
27417
27418 WriteLiteralTo(__razor_helper_writer, " ");
27419
27420
27421 #line 9287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27422 WriteTo(__razor_helper_writer, Translate(Translations.General.YourSearchGave0Results));
27423
27424
27425 #line default
27426 #line hidden
27427 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n {{/each}}\r\n </script>\r\n");
27428
27429
27430 #line 9291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27431
27432
27433
27434 #line default
27435 #line hidden
27436 WriteLiteralTo(__razor_helper_writer, " <script");
27437
27438 WriteLiteralTo(__razor_helper_writer, " id=\"SearchPagesTemplateWrap\"");
27439
27440 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27441
27442 WriteLiteralTo(__razor_helper_writer, ">\r\n <div class=\"dropdown__column-header\">");
27443
27444
27445 #line 9293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27446 WriteTo(__razor_helper_writer, Translate(Translations.General.Pages));
27447
27448
27449 #line default
27450 #line hidden
27451 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul class=\"dropdown__list\">\r\n {{>SearchPagesTemplate}}" +
27452 "\r\n </ul>\r\n </script>\r\n");
27453
27454
27455 #line 9298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27456
27457
27458
27459 #line default
27460 #line hidden
27461 WriteLiteralTo(__razor_helper_writer, " <script");
27462
27463 WriteLiteralTo(__razor_helper_writer, " id=\"SearchProductsTemplateWrap\"");
27464
27465 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27466
27467 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>");
27468
27469
27470 #line 9300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27471 WriteTo(__razor_helper_writer, Translate(Translations.Products.ProductsGeneral));
27472
27473
27474 #line default
27475 #line hidden
27476 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul>\r\n {{>SearchProductsTemplate}}\r\n </ul>\r\n " +
27477 " </script>\r\n");
27478
27479
27480 #line 9305 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27481
27482
27483
27484
27485 #line default
27486 #line hidden
27487 });
27488
27489 #line 9307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27490 }
27491 #line default
27492 #line hidden
27493
27494
27495 #line 9331 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27496 public RazorEngine.Templating.TemplateWriter RenderPrimaryBottomSnippets() {
27497 #line default
27498 #line hidden
27499 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27500
27501 #line 9331 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27502
27503 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
27504
27505 if (areaInfo.IsWireframeMode)
27506 {
27507
27508
27509 #line default
27510 #line hidden
27511 WriteLiteralTo(__razor_helper_writer, " <script>\r\n Wireframe.Init(true);\r\n </script>\r\n");
27512
27513
27514 #line 9339 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27515 }
27516
27517
27518 if (areaInfo.GoogleTagManagerID.HasValue())
27519 {
27520
27521
27522 #line default
27523 #line hidden
27524 WriteLiteralTo(__razor_helper_writer, @" <script>
27525 document.addEventListener('addToCart', function(event) {
27526 var googleImpression = event.detail.productInfo.googleImpression;
27527 dataLayer.push({
27528 'event': 'addToCart',
27529 'ecommerce': {
27530 'currencyCode': '");
27531
27532
27533 #line 9350 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27534 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Services.Currencies.GetDefaultCurrency().Code);
27535
27536
27537 #line default
27538 #line hidden
27539 WriteLiteralTo(__razor_helper_writer, @"',
27540 'add': {
27541 'products': [{
27542 'name': googleImpression.name,
27543 'id': googleImpression.id,
27544 'price': googleImpression.price,
27545 'brand': googleImpression.brand,
27546 'category': googleImpression.category,
27547 'variant': googleImpression.variant,
27548 'quantity': event.detail.quantity
27549 }]
27550 }
27551 }
27552 });
27553 });
27554 </script>
27555 ");
27556
27557
27558 #line 9366 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27559 }
27560
27561 //if digitalwarehouse
27562 if (Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("ShowDownloadCart"))
27563 {
27564 string cartContextId = Converter.ToString(HttpContext.Current.Application["DownloadCartContext"]);
27565
27566 if (!cartContextId.HasValue()) {
27567 var moduleProps = Dynamicweb.Modules.Properties.GetParagraphModuleSettings(GetPageIdByNavigationTag("DownloadCart"), "eCom_CartV2");
27568 var cartSettings = new Dynamicweb.Ecommerce.Cart.ModuleSettings(moduleProps);
27569 cartContextId = cartSettings.OrderContextID;
27570 HttpContext.Current.Application["DownloadCartContext"] = cartContextId;
27571 }
27572
27573
27574
27575 #line default
27576 #line hidden
27577 WriteLiteralTo(__razor_helper_writer, " <script>\r\n let downloadCart = new DownloadCart({\r\n " +
27578 " cartPageId: ");
27579
27580
27581 #line 9382 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27582 WriteTo(__razor_helper_writer, GetPageIdByNavigationTag("MiniCartFeed"));
27583
27584
27585 #line default
27586 #line hidden
27587 WriteLiteralTo(__razor_helper_writer, ",\r\n contextId: \"");
27588
27589
27590 #line 9383 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27591 WriteTo(__razor_helper_writer, cartContextId);
27592
27593
27594 #line default
27595 #line hidden
27596 WriteLiteralTo(__razor_helper_writer, "\",\r\n addButtonText: \"");
27597
27598
27599 #line 9384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27600 WriteTo(__razor_helper_writer, Translate(Translations.General.Add));
27601
27602
27603 #line default
27604 #line hidden
27605 WriteLiteralTo(__razor_helper_writer, "\",\r\n removeButtonText: \"");
27606
27607
27608 #line 9385 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27609 WriteTo(__razor_helper_writer, Translate(Translations.General.Remove));
27610
27611
27612 #line default
27613 #line hidden
27614 WriteLiteralTo(__razor_helper_writer, "\"\r\n });\r\n </script>\r\n");
27615
27616
27617 #line 9388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27618 }
27619
27620
27621 #line default
27622 #line hidden
27623 WriteLiteralTo(__razor_helper_writer, " <!--$$Javascripts-->\r\n");
27624
27625
27626 #line 9390 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27627
27628
27629
27630 #line default
27631 #line hidden
27632
27633 #line 9391 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27634 WriteTo(__razor_helper_writer, RenderSnippet("Messenger"));
27635
27636
27637 #line default
27638 #line hidden
27639
27640 #line 9391 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27641
27642
27643
27644 #line default
27645 #line hidden
27646 });
27647
27648 #line 9392 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27649 }
27650 #line default
27651 #line hidden
27652
27653
27654 #line 9416 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27655 public RazorEngine.Templating.TemplateWriter RenderStickersTemplateRefactored() {
27656 #line default
27657 #line hidden
27658 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27659
27660 #line 9416 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27661
27662
27663
27664 #line default
27665 #line hidden
27666 WriteLiteralTo(__razor_helper_writer, " <script");
27667
27668 WriteLiteralTo(__razor_helper_writer, " id=\"StickersContainer\"");
27669
27670 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27671
27672 WriteLiteralTo(__razor_helper_writer, ">\r\n <div class=\"stickers-container stickers-container--{{position}}\">\r\n " +
27673 " <div class=\"list\">\r\n {{#Stickers}}\r\n {{>Stick" +
27674 "er}}\r\n {{/Stickers}}\r\n </div>\r\n </div>\r\n </scrip" +
27675 "t>\r\n");
27676
27677
27678 #line 9426 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27679
27680
27681
27682 #line default
27683 #line hidden
27684 WriteLiteralTo(__razor_helper_writer, " <script");
27685
27686 WriteLiteralTo(__razor_helper_writer, " id=\"Sticker\"");
27687
27688 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27689
27690 WriteLiteralTo(__razor_helper_writer, ">\r\n <div class=\"list-item\">\r\n <div class=\"sticker {{className}}" +
27691 " font-sm px-2 py-1\">{{text}}</div>\r\n </div> \r\n </script>\r\n");
27692
27693
27694 #line 9432 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27695
27696
27697
27698 #line default
27699 #line hidden
27700 WriteLiteralTo(__razor_helper_writer, " <script");
27701
27702 WriteLiteralTo(__razor_helper_writer, " id=\"MiniSticker\"");
27703
27704 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\"");
27705
27706 WriteLiteralTo(__razor_helper_writer, ">\r\n <div class=\"sticker stickers-container__tag--micro {{className}}\">{{te" +
27707 "xt}}</div>\r\n </script>\r\n");
27708
27709
27710 #line 9436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27711
27712
27713 #line default
27714 #line hidden
27715 });
27716
27717 #line 9436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27718 }
27719 #line default
27720 #line hidden
27721
27722
27723 #line 9486 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27724 public RazorEngine.Templating.TemplateWriter RenderDesktopToolsCustom()
27725 {
27726 #line default
27727 #line hidden
27728 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27729
27730 #line 9487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27731
27732 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopTools").OrderBy(item => item.SortId).ToList();
27733
27734 if (subBlocks.Count > 0)
27735 {
27736
27737
27738 #line default
27739 #line hidden
27740 WriteLiteralTo(__razor_helper_writer, " <div");
27741
27742 WriteLiteralTo(__razor_helper_writer, " class=\"m\"");
27743
27744 WriteLiteralTo(__razor_helper_writer, ">");
27745
27746
27747 #line 9492 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27748 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
27749
27750
27751 #line default
27752 #line hidden
27753 WriteLiteralTo(__razor_helper_writer, "</div>\r\n");
27754
27755
27756 #line 9493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27757 }
27758
27759
27760 #line default
27761 #line hidden
27762 });
27763
27764 #line 9494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27765 }
27766 #line default
27767 #line hidden
27768
27769
27770 #line 9496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27771 public RazorEngine.Templating.TemplateWriter RenderDesktopToolsTextCustom()
27772 {
27773 #line default
27774 #line hidden
27775 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27776
27777 #line 9497 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27778
27779 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
27780
27781 if (areaInfo.ToolsText.HasValue())
27782 {
27783
27784
27785 #line default
27786 #line hidden
27787 WriteLiteralTo(__razor_helper_writer, " <div");
27788
27789 WriteLiteralTo(__razor_helper_writer, " class=\"nav--tertiary m1\"");
27790
27791 WriteLiteralTo(__razor_helper_writer, ">\r\n <span><i");
27792
27793 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 455131), Tuple.Create("\"", 455158)
27794
27795 #line 9503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27796 , Tuple.Create(Tuple.Create("", 455139), Tuple.Create<System.Object, System.Int32>(areaInfo.PhoneIcon
27797
27798 #line default
27799 #line hidden
27800 , 455139), false)
27801 );
27802
27803 WriteLiteralTo(__razor_helper_writer, "></i> ");
27804
27805
27806 #line 9503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27807 WriteTo(__razor_helper_writer, areaInfo.ContactNumber);
27808
27809
27810 #line default
27811 #line hidden
27812 WriteLiteralTo(__razor_helper_writer, "</span> \r\n <span><i");
27813
27814 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 455218), Tuple.Create("\"", 455245)
27815
27816 #line 9504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27817 , Tuple.Create(Tuple.Create("", 455226), Tuple.Create<System.Object, System.Int32>(areaInfo.EmailIcon
27818
27819 #line default
27820 #line hidden
27821 , 455226), false)
27822 );
27823
27824 WriteLiteralTo(__razor_helper_writer, "></i> ");
27825
27826
27827 #line 9504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27828 WriteTo(__razor_helper_writer, areaInfo.ContactEmail);
27829
27830
27831 #line default
27832 #line hidden
27833 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div> \r\n");
27834
27835
27836 #line 9506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27837 }
27838
27839
27840 #line default
27841 #line hidden
27842 });
27843
27844 #line 9507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27845 }
27846 #line default
27847 #line hidden
27848
27849
27850 #line 9509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27851 public RazorEngine.Templating.TemplateWriter RenderDesktopToolsNavigationCustom()
27852 {
27853 #line default
27854 #line hidden
27855 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27856
27857 #line 9510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27858
27859 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
27860
27861
27862
27863 #line default
27864 #line hidden
27865
27866 #line 9514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27867
27868
27869
27870 #line default
27871 #line hidden
27872 WriteLiteralTo(__razor_helper_writer, " <div");
27873
27874 WriteLiteralTo(__razor_helper_writer, " class=\"nav--secondary m2\"");
27875
27876 WriteLiteralTo(__razor_helper_writer, ">\r\n ");
27877
27878 WriteLiteralTo(__razor_helper_writer, "\r\n Urmareste comanda\r\n");
27879
27880 WriteLiteralTo(__razor_helper_writer, " ");
27881
27882
27883 #line 9522 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27884 WriteTo(__razor_helper_writer, RenderLanguageSelectorCustom());
27885
27886
27887 #line default
27888 #line hidden
27889 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n");
27890
27891
27892 #line 9524 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27893
27894
27895 #line default
27896 #line hidden
27897
27898 #line 9524 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27899
27900
27901
27902 #line default
27903 #line hidden
27904 });
27905
27906 #line 9525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27907 }
27908 #line default
27909 #line hidden
27910
27911
27912 #line 9527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27913 public RazorEngine.Templating.TemplateWriter RenderLanguageSelectorCustom()
27914 {
27915 #line default
27916 #line hidden
27917 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
27918
27919 #line 9528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27920
27921 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
27922
27923 if (Model.Languages.Count > 1)
27924 {
27925
27926
27927
27928 #line default
27929 #line hidden
27930 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <i");
27931
27932 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 455957), Tuple.Create("\"", 455987)
27933
27934 #line 9535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27935 , Tuple.Create(Tuple.Create("", 455965), Tuple.Create<System.Object, System.Int32>(areaInfo.LanguageIcon
27936
27937 #line default
27938 #line hidden
27939 , 455965), false)
27940 );
27941
27942 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </div>\r\n");
27943
27944 WriteLiteralTo(__razor_helper_writer, " <div>\r\n");
27945
27946
27947 #line 9538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27948
27949
27950 #line default
27951 #line hidden
27952
27953 #line 9538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27954 foreach (var lang in Model.Languages)
27955 {
27956 string langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + "\"></span>" + lang.Name;
27957 string cultureName = Regex.Replace(Dynamicweb.Services.Areas.GetArea(lang.ID).CultureInfo.NativeName, @" ?\(.*?\)", string.Empty);
27958 cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1);
27959
27960 if (areaInfo.LanguageViewType == "flag-culture")
27961 {
27962 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span> " + cultureName;
27963 }
27964
27965 if (areaInfo.LanguageViewType == "flag")
27966 {
27967 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span>";
27968 }
27969
27970 if (areaInfo.LanguageViewType == "name")
27971 {
27972 langInfo = lang.Name;
27973 }
27974
27975 if (areaInfo.LanguageViewType == "culture")
27976 {
27977 langInfo = cultureName;
27978 }
27979
27980
27981
27982 #line default
27983 #line hidden
27984 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <a");
27985
27986 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 457367), Tuple.Create("\"", 457449)
27987
27988 #line 9565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27989 , Tuple.Create(Tuple.Create("", 457374), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart
27990
27991 #line default
27992 #line hidden
27993 , 457374), false)
27994
27995 #line 9565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
27996 , Tuple.Create(Tuple.Create("", 457393), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID
27997
27998 #line default
27999 #line hidden
28000 , 457393), false)
28001 );
28002
28003 WriteLiteralTo(__razor_helper_writer, ">");
28004
28005
28006 #line 9565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28007 WriteTo(__razor_helper_writer, langInfo);
28008
28009
28010 #line default
28011 #line hidden
28012 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n");
28013
28014
28015 #line 9567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28016 }
28017
28018
28019 #line default
28020 #line hidden
28021 WriteLiteralTo(__razor_helper_writer, " </div>\r\n");
28022
28023
28024 #line 9569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28025 }
28026
28027
28028 #line default
28029 #line hidden
28030 });
28031
28032 #line 9570 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28033 }
28034 #line default
28035 #line hidden
28036
28037
28038 #line 9575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28039
28040 public class ManifestIcon
28041 {
28042 public string
28043 src,
28044 type,
28045 sizes;
28046 }
28047
28048 public class Manifest
28049 {
28050 public string
28051 name,
28052 short_name,
28053 start_url,
28054 display,
28055 background_color,
28056 theme_color;
28057 public List<ManifestIcon> icons;
28058 }
28059
28060 #line default
28061 #line hidden
28062
28063
28064 #line 9734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28065 public RazorEngine.Templating.TemplateWriter RenderMasterHeader()
28066 {
28067 #line default
28068 #line hidden
28069 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
28070
28071 #line 9734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28072
28073
28074 #line default
28075 #line hidden
28076
28077 #line 9735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28078
28079 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
28080 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeader").OrderBy(item => item.SortId).ToList();
28081
28082
28083
28084 #line default
28085 #line hidden
28086 WriteLiteralTo(__razor_helper_writer, "\t\t<header");
28087
28088 WriteLiteralTo(__razor_helper_writer, " class=\"header fixed bg-light\"");
28089
28090 WriteLiteralTo(__razor_helper_writer, ">\r\n");
28091
28092 WriteLiteralTo(__razor_helper_writer, "\t\t\t");
28093
28094
28095 #line 9740 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28096 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
28097
28098
28099 #line default
28100 #line hidden
28101 WriteLiteralTo(__razor_helper_writer, "\r\n\t\t</header>\r\n");
28102
28103
28104 #line 9742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28105
28106
28107 #line default
28108 #line hidden
28109 });
28110
28111 #line 9742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28112 }
28113 #line default
28114 #line hidden
28115
28116
28117 #line 9744 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28118 public RazorEngine.Templating.TemplateWriter RenderMain()
28119 {
28120 #line default
28121 #line hidden
28122 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
28123
28124 #line 9744 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28125
28126
28127 #line default
28128 #line hidden
28129
28130 #line 9745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28131
28132 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMain").OrderBy(item => item.SortId).ToList();
28133
28134
28135
28136 #line default
28137 #line hidden
28138
28139 #line 9748 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28140 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks));
28141
28142
28143 #line default
28144 #line hidden
28145
28146 #line 9748 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28147
28148
28149
28150 #line default
28151 #line hidden
28152 });
28153
28154 #line 9749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28155 }
28156 #line default
28157 #line hidden
28158
28159
28160 #line 9751 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28161 public RazorEngine.Templating.TemplateWriter RenderPageContent()
28162 {
28163 #line default
28164 #line hidden
28165 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
28166
28167 #line 9751 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28168
28169
28170 #line default
28171 #line hidden
28172
28173 #line 9752 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28174
28175
28176
28177 #line default
28178 #line hidden
28179 WriteLiteralTo(__razor_helper_writer, "\t\t");
28180
28181 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
28182
28183 WriteLiteralTo(__razor_helper_writer, "\r\n");
28184
28185
28186 #line 9758 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28187 WriteTo(__razor_helper_writer, Model.Grid("Grid", "Grid", "default:true;sort:1", "Pages"));
28188
28189
28190 #line default
28191 #line hidden
28192 WriteLiteralTo(__razor_helper_writer, "\r\n");
28193
28194 WriteLiteralTo(__razor_helper_writer, "\r\n");
28195
28196
28197 #line 9760 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28198
28199
28200 #line default
28201 #line hidden
28202 });
28203
28204 #line 9760 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28205 }
28206 #line default
28207 #line hidden
28208
28209
28210 public RazorEngine_64a8cc8b72324581817b399c0c1aa293() {
28211 }
28212
28213 public override void Execute() {
28214 WriteLiteral("\r\n");
28215
28216
28217 #line 18 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28218 if(!System.Web.HttpContext.Current.Request.Cookies.AllKeys.Contains("Theme")) {
28219 System.Web.HttpContext.Current.Response.Cookies["Theme"].Value = "decocenter";
28220 }
28221
28222
28223 #line default
28224 #line hidden
28225 WriteLiteral("\r\n");
28226
28227 WriteLiteral("\r\n");
28228
28229 WriteLiteral("\r\n");
28230
28231 WriteLiteral("\r\n\r\n\r\n");
28232
28233 WriteLiteral("\r\n");
28234
28235 WriteLiteral("\r\n");
28236
28237 WriteLiteral("\r\n");
28238
28239 WriteLiteral("\r\n");
28240
28241 WriteLiteral("\r\n");
28242
28243 WriteLiteral("\r\n\r\n\r\n");
28244
28245
28246 #line 682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28247 Write(SnippetStart("BottomJS"));
28248
28249
28250 #line default
28251 #line hidden
28252 WriteLiteral("\r\n");
28253
28254
28255 #line 683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28256
28257 var areaInfoProductItemGrid = Df.Dw.Rapido.AreaInfo.Current();
28258 var DesignFolderProductItemGrid = Pageview.Layout.Design.Name;
28259 var userIsLoggedInProductItemGrid = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
28260
28261
28262 #line default
28263 #line hidden
28264 WriteLiteral("\r\n \r\n<script");
28265
28266 WriteLiteral(" id=\"ProductGridItem\"");
28267
28268 WriteLiteral(" type=\"text/x-template\"");
28269
28270 WriteLiteral(">\r\n {{#.}}\r\n <input type=\"hidden\" name=\"ProductLoopCounter{{id}" +
28271 "}\" value=\"{{id}}\" />\r\n <input type=\"hidden\" name=\"ProductID{{id}}\" va" +
28272 "lue=\"{{productId}}\" />\r\n <div class=\"product-item--grid borde border" +
28273 "-0\">\r\n <div class=\"c00 grid\">\r\n <div class=\"c0" +
28274 "\">\r\n <div class=\"product-item__image flex-wrap justify-co" +
28275 "ntent-center\">\r\n <a href=\"{{link}}\" onclick=\"{{google" +
28276 "ImpressionClick}}\" title=\"{{name}}\" class=\"image-hover__wrapper block w-100 mb-2" +
28277 " relative\">\r\n <img class=\"lazyload w-100\" width=\"" +
28278 "620\" height=\"416\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAA" +
28279 "BAAEAAAICTAEAOw==\"\r\n data-src=\"/Admin/Public" +
28280 "/GetImage.ashx?width=620&height=416&crop=5&Compression=95&DoNotUpscale=true&Fill" +
28281 "Canvas=true&image={{image}}\" alt=\"{{name}}\" \r\n " +
28282 " style=\"aspect-ratio: 620 / 416\" /> \r\n " +
28283 " {{#StickersContainers}}\r\n " +
28284 " {{>StickersContainer}}\r\n {{/StickersContainers" +
28285 "}}\r\n {{#if showPrices}} \r\n " +
28286 " {{#if Prices}}\r\n {{#displ" +
28287 "ayPromoPrice Prices}}{{/displayPromoPrice}}\r\n " +
28288 " {{/if}} \r\n {{/if}}\r\n " +
28289 " </a>\r\n {{#if showFavoriteLink}}\r\n " +
28290 " {{#if isFavoriteInAtLeastOneList}}\r\n " +
28291 " <button class=\"product-item__favorite on btn-fill--bran" +
28292 "d border-circle btn-icon icon-md\" aria-label=\"Open favorites list\" has-variants=" +
28293 "\"{{hasVariants}}\" data-modal-open=\"favoriteProductListModal{{productId}}\">\r\n");
28294
28295 WriteLiteral(" ");
28296
28297
28298 #line 713 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28299 Write(RenderInlineSvg2("default","favorites-on"));
28300
28301
28302 #line default
28303 #line hidden
28304 WriteLiteral(@"
28305 </button>
28306 {{else}}
28307 <button class=""product-item__favorite off btn-fill--muted border-circle btn-icon icon-md"" aria-label=""Open favorites list"" has-variants=""{{hasVariants}}"" data-modal-open=""favoriteProductListModal{{productId}}"">
28308 ");
28309
28310 WriteLiteral(" ");
28311
28312
28313 #line 717 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28314 Write(RenderInlineSvg2("default","favorites-off"));
28315
28316
28317 #line default
28318 #line hidden
28319 WriteLiteral("\r\n </button>\r\n " +
28320 " {{/if}}\r\n");
28321
28322 WriteLiteral("\t\t\t\t\t\t\t ");
28323
28324
28325 #line 720 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28326 Write(RenderFavoriteModalRefactored());
28327
28328
28329 #line default
28330 #line hidden
28331 WriteLiteral(@"
28332 {{/if}}
28333 </div>
28334 </div>
28335 <div class=""c2 w-100"">
28336 <a href=""{{link}}"" onclick=""{{googleImpressionClick}}"" title=""{{name}}"" class=""product-item__title text-decoration-none w-100 block"" data-tooltip-content=""{{name}}"">{{name}}</a>
28337 </div>
28338 <div class=""c1 flex-wrap justify-content-center"">
28339 ");
28340
28341 WriteLiteral("\r\n {{#if showProductNumber}}\r\n " +
28342 " <div class=\"product-item__number small color-muted w-100 flex-wrap\"><span class" +
28343 "=\"mr-1 hidden\">");
28344
28345
28346 #line 734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28347 Write(Translate(Translations.Products.ProductNumber));
28348
28349
28350 #line default
28351 #line hidden
28352 WriteLiteral(":</span><span>{{number}}</span></div>\r\n {{/if}}\r\n " +
28353 " {{#if manufacturer/name}}\r\n <div class" +
28354 "=\"product-item__number small color-muted w-100 flex-wrap\"><span class=\"mr-1 hidd" +
28355 "en\">");
28356
28357
28358 #line 737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28359 Write(Translate(Translations.Products.Brand));
28360
28361
28362 #line default
28363 #line hidden
28364 WriteLiteral(@":</span><span>{{manufacturer/name}}</span></div>
28365 {{/if}}
28366 </div>
28367
28368 <div class=""c3 align-self-end hidden"">
28369 <div class=""prices text-center"">
28370 {{#if discount}}
28371 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block"">{{{discount}}}</span>
28372 {{/if}}
28373 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block"">{{{priceWithoutVAT}}}</span>
28374 {{#if showPriceWithoutVAT}}
28375 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithoutVAT}}}</span>
28376 {{#if showPriceWithVAT}}
28377 <small>{{{priceWithVAT}}} ");
28378
28379
28380 #line 750 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28381 Write(Translate(Translations.Products.InclVAT));
28382
28383
28384 #line default
28385 #line hidden
28386 WriteLiteral(@"</small>
28387 {{/if}}
28388 {{else}}
28389 {{#if showPriceWithVAT}}
28390 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithVAT}}}</span>
28391 {{/if}}
28392 {{/if}}
28393 </div>
28394 </div>
28395 <div class=""c4 align-self-end flex-wrap space-between align-items-center my-1 hidden"">
28396 <div class=""stock"">
28397 {{#ifCond stockValue '>' 0}}
28398 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok"">
28399 ");
28400
28401 WriteLiteral(" ");
28402
28403
28404 #line 763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28405 Write(RenderInlineSvg2("default","stock-ok"));
28406
28407
28408 #line default
28409 #line hidden
28410 WriteLiteral(" ");
28411
28412
28413 #line 763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28414 Write(Translate(Translations.Products.InStock));
28415
28416
28417 #line default
28418 #line hidden
28419 WriteLiteral("</div>\r\n {{else}}\r\n <di" +
28420 "v class=\"product-item__stock weight-bold text-uppercase color-stock-none\">");
28421
28422
28423 #line 765 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28424 Write(RenderInlineSvg2("default","stock-none"));
28425
28426
28427 #line default
28428 #line hidden
28429 WriteLiteral(" ");
28430
28431
28432 #line 765 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28433 Write(Translate(Translations.Products.OutOfStock));
28434
28435
28436 #line default
28437 #line hidden
28438 WriteLiteral("</div>\r\n {{/ifCond}}\r\n </div>\r\n" +
28439 " <button name=\"Compare{{productId}}{{variantId}}\" class=\"" +
28440 "btn btn-fill--accent compare-trigger color-muted\" data-compare data-tooltip=\"");
28441
28442
28443 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28444 Write(Translate(Translations.Products.AddToCompare));
28445
28446
28447 #line default
28448 #line hidden
28449 WriteLiteral("\" data-add-compare=\'");
28450
28451
28452 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28453 Write(Translate(Translations.Products.AddToCompare));
28454
28455
28456 #line default
28457 #line hidden
28458 WriteLiteral("\' data-remove-compare=\'");
28459
28460
28461 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28462 Write(Translate(Translations.Products.RemoveFromCompare));
28463
28464
28465 #line default
28466 #line hidden
28467 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>");
28468
28469
28470 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28471 Write(Translate(Translations.Products.AddToCompare));
28472
28473
28474 #line default
28475 #line hidden
28476 WriteLiteral(@"</span></button>
28477 </div>
28478 </div>
28479 <div class=""c01 align-self-end hidden"">
28480 <div class=""c5"">
28481 {{#if allowAddToCart}}
28482 <div class=""actions"">
28483 {{#ifCond stockValue '>' 0}}
28484 <form>
28485 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" />
28486 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" />
28487 <input type=""hidden"" name=""ID"" value=""");
28488
28489
28490 #line 779 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28491 Write(areaInfoProductItemGrid.MiniCartFeedPage.ID.ToString());
28492
28493
28494 #line default
28495 #line hidden
28496 WriteLiteral(@""" />
28497 <input type=""hidden"" name=""redirect"" value=""false"" />
28498 <input type=""hidden"" name=""CartCmd"" value=""add"" />
28499 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity hidden"" name=""Quantity"" value=""1"" min=""1"" max=""{{stockValue}}""></df-quantity>
28500 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy {{disabledBuyButton}} w-100""
28501 icon-position=""right""
28502 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}}
28503 data-role=""add-to-cart""
28504 message-success=""");
28505
28506
28507 #line 787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28508 Write(Translate(Translations.Cart.ProductIsAddedToTheCart));
28509
28510
28511 #line default
28512 #line hidden
28513 WriteLiteral("\"\r\n >\r\n " +
28514 " <span>");
28515
28516
28517 #line 789 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28518 Write(Translate(Translations.Cart.AddToCart));
28519
28520
28521 #line default
28522 #line hidden
28523 WriteLiteral("</span>\r\n <span class=\"icon\">\r\n");
28524
28525 WriteLiteral(" ");
28526
28527
28528 #line 791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28529 Write(RenderInlineSvg2("default","cart"));
28530
28531
28532 #line default
28533 #line hidden
28534 WriteLiteral(@"
28535 </span>
28536
28537 </button>
28538 </form>
28539 {{else}}
28540 <div class=""stock-notif-translates""
28541 data-notification-already-sent=""");
28542
28543
28544 #line 798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28545 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent));
28546
28547
28548 #line default
28549 #line hidden
28550 WriteLiteral("\"\r\n data-notification-registered=\"");
28551
28552
28553 #line 799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28554 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered));
28555
28556
28557 #line default
28558 #line hidden
28559 WriteLiteral("\"></div>\r\n ");
28560
28561 WriteLiteral("\r\n");
28562
28563
28564 #line 801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28565
28566
28567 #line default
28568 #line hidden
28569
28570 #line 801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28571 if (userIsLoggedInProductItemGrid)
28572 {
28573
28574
28575 #line default
28576 #line hidden
28577 WriteLiteral(" ");
28578
28579 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
28580
28581 WriteLiteral("\r\n");
28582
28583 WriteLiteral(" <button");
28584
28585 WriteLiteral(" type=\"button\"");
28586
28587 WriteLiteral(" class=\"btn-fill--muted w-100\"");
28588
28589 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\"");
28590
28591 WriteLiteral(" data-notified=\"false\"");
28592
28593 WriteLiteral(" data-user-logged-in=\"true\"");
28594
28595 WriteLiteral(">\r\n");
28596
28597 WriteLiteral(" ");
28598
28599
28600 #line 805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28601 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
28602
28603
28604 #line default
28605 #line hidden
28606 WriteLiteral("\r\n </button>\r\n");
28607
28608
28609 #line 807 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28610
28611
28612
28613 #line default
28614 #line hidden
28615 WriteLiteral(" ");
28616
28617 WriteLiteral("{{else}}");
28618
28619 WriteLiteral("\r\n");
28620
28621 WriteLiteral(" <button");
28622
28623 WriteLiteral(" type=\"button\"");
28624
28625 WriteLiteral(" class=\"btn-fill--muted w-100\"");
28626
28627 WriteLiteral(" data-notified=\"true\"");
28628
28629 WriteLiteral(" data-user-logged-in=\"true\"");
28630
28631 WriteLiteral(">\r\n");
28632
28633 WriteLiteral(" ");
28634
28635
28636 #line 810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28637 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
28638
28639
28640 #line default
28641 #line hidden
28642 WriteLiteral("\r\n </button>\r\n");
28643
28644 WriteLiteral(" ");
28645
28646 WriteLiteral("{{/ifCond}}");
28647
28648 WriteLiteral("\r\n");
28649
28650
28651 #line 813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28652
28653 }
28654 else
28655 {
28656
28657
28658 #line default
28659 #line hidden
28660 WriteLiteral(" ");
28661
28662 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
28663
28664 WriteLiteral("\r\n");
28665
28666 WriteLiteral(" <button");
28667
28668 WriteLiteral(" type=\"button\"");
28669
28670 WriteLiteral(" class=\"btn-fill--muted w-100\"");
28671
28672 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\"");
28673
28674 WriteLiteral(" data-notified=\"false\"");
28675
28676 WriteLiteral(" data-user-logged-in=\"false\"");
28677
28678 WriteLiteral(">\r\n");
28679
28680 WriteLiteral(" ");
28681
28682
28683 #line 819 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28684 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
28685
28686
28687 #line default
28688 #line hidden
28689 WriteLiteral("\r\n </button>\r\n");
28690
28691 WriteLiteral(" <df-modal");
28692
28693 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\"");
28694
28695 WriteLiteral("\r\n data-product-name=\"{{name}}\"");
28696
28697 WriteAttribute("heading", Tuple.Create("\r\n heading=\"", 47038), Tuple.Create("\"", 47152)
28698
28699 #line 823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28700 , Tuple.Create(Tuple.Create("", 47097), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock)
28701
28702 #line default
28703 #line hidden
28704 , 47097), false)
28705 );
28706
28707 WriteLiteral(">\r\n <span>\r\n " +
28708 " {{#ifCond notificationRegistered \'==\' false}}\r\n " +
28709 " <form");
28710
28711 WriteLiteral(" name=\"{{productId}}\"");
28712
28713 WriteAttribute("action", Tuple.Create(" action=\"", 47393), Tuple.Create("\"", 47460)
28714 , Tuple.Create(Tuple.Create("", 47402), Tuple.Create("/Default.aspx?ID=", 47402), true)
28715
28716 #line 826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28717 , Tuple.Create(Tuple.Create("", 47419), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage")
28718
28719 #line default
28720 #line hidden
28721 , 47419), false)
28722 );
28723
28724 WriteLiteral(">\r\n <input");
28725
28726 WriteLiteral(" type=\"hidden\"");
28727
28728 WriteLiteral(" name=\"ProductID\"");
28729
28730 WriteLiteral(" id=\"ProductID\"");
28731
28732 WriteLiteral(" value=\"{{productId}}\"");
28733
28734 WriteLiteral(" />\r\n <input");
28735
28736 WriteLiteral(" type=\"hidden\"");
28737
28738 WriteLiteral(" name=\"VariantID\"");
28739
28740 WriteLiteral(" id=\"VariantID\"");
28741
28742 WriteLiteral(" value=\"{{variantId}}\"");
28743
28744 WriteLiteral(" />\r\n <input");
28745
28746 WriteLiteral(" type=\"hidden\"");
28747
28748 WriteLiteral(" name=\"CartCmd\"");
28749
28750 WriteLiteral(" id=\"CartCmd\"");
28751
28752 WriteLiteral(" value=\"createnotificationforthisproduct\"");
28753
28754 WriteLiteral(" />\r\n <df-input requir" +
28755 "ed");
28756
28757 WriteLiteral(" type=\"email\"");
28758
28759 WriteLiteral(" class=\"mb-3\"");
28760
28761 WriteLiteral(" id=\"NotificationEmail\"");
28762
28763 WriteLiteral(" name=\"NotificationEmail\"");
28764
28765 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 48049), Tuple.Create("\"", 48112)
28766
28767 #line 830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28768 , Tuple.Create(Tuple.Create("", 48063), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress)
28769
28770 #line default
28771 #line hidden
28772 , 48063), false)
28773 );
28774
28775 WriteLiteral("></df-input>\r\n <button" +
28776 "");
28777
28778 WriteLiteral(" type=\"submit\"");
28779
28780 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\"");
28781
28782 WriteLiteral(">");
28783
28784
28785 #line 831 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28786 Write(Translate(Translations.Account.CreateRequest));
28787
28788
28789 #line default
28790 #line hidden
28791 WriteLiteral("</button>\r\n </form>\r\n " +
28792 " {{else}}\r\n " +
28793 " <p>");
28794
28795
28796 #line 834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28797 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent));
28798
28799
28800 #line default
28801 #line hidden
28802 WriteLiteral("</p>\r\n {{/ifCond}}\r\n " +
28803 " </span>\r\n " +
28804 " </df-modal>\r\n");
28805
28806 WriteLiteral(" ");
28807
28808 WriteLiteral("{{else}}");
28809
28810 WriteLiteral("\r\n");
28811
28812 WriteLiteral(" <button");
28813
28814 WriteLiteral(" type=\"button\"");
28815
28816 WriteLiteral(" class=\"btn-fill--muted w-100\"");
28817
28818 WriteLiteral(" data-notified=\"true\"");
28819
28820 WriteLiteral(" data-user-logged-in=\"false\"");
28821
28822 WriteLiteral(">\r\n");
28823
28824 WriteLiteral(" ");
28825
28826
28827 #line 840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28828 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
28829
28830
28831 #line default
28832 #line hidden
28833 WriteLiteral("\r\n </button>\r\n");
28834
28835 WriteLiteral(" ");
28836
28837 WriteLiteral("{{/ifCond}}");
28838
28839 WriteLiteral("\r\n");
28840
28841
28842 #line 843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28843 }
28844
28845
28846 #line default
28847 #line hidden
28848 WriteLiteral(" {{/ifCond}}\r\n </div>\r\n" +
28849 " {{else}}\r\n <div class=\"action" +
28850 "s\">\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" ti" +
28851 "tle=\"");
28852
28853
28854 #line 848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28855 Write(Translate(Translations.Products.ViewMore));
28856
28857
28858 #line default
28859 #line hidden
28860 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">");
28861
28862
28863 #line 848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28864 Write(Translate(Translations.Products.ViewMore));
28865
28866
28867 #line default
28868 #line hidden
28869 WriteLiteral("</a>\r\n </div>\r\n {{/if}}\r\n " +
28870 " </div>\r\n </div>\r\n </div>\r\n {{/.}}" +
28871 "\r\n </script>\r\n\r\n\r\n\t<script");
28872
28873 WriteLiteral(" id=\"ProductGridItemList\"");
28874
28875 WriteLiteral(" type=\"text/x-template\"");
28876
28877 WriteLiteral(@">
28878 {{#.}}
28879 <div id=""Product{{id}}"" data-template=""ProductGridItem"" class=""product-item col-6 col-lg-3 col-xxl-2 "">
28880 {{#Product}}
28881 {{>ProductGridItem}}
28882 {{/Product}}
28883 </div>
28884 {{/.}}
28885 </script>
28886 ");
28887
28888
28889 #line 867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28890 Write(SnippetEnd("BottomJS"));
28891
28892
28893 #line default
28894 #line hidden
28895 WriteLiteral("\r\n");
28896
28897 WriteLiteral("\r\n");
28898
28899 WriteLiteral("\r\n");
28900
28901 WriteLiteral("\r\n");
28902
28903 WriteLiteral("\r\n\r\n\r\n");
28904
28905
28906 #line 880 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28907 Write(SnippetStart("BottomJS"));
28908
28909
28910 #line default
28911 #line hidden
28912 WriteLiteral(" \r\n");
28913
28914
28915 #line 881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28916
28917 var areaInfoProductItemList = Df.Dw.Rapido.AreaInfo.Current();
28918 var DesignFolderProductItemList = Pageview.Layout.Design.Name;
28919 var userIsLoggedInProductItemList = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
28920 //string salesUOMProductItemList = GetString("Ecom:Product:Field.SalesUOM.Value");
28921
28922
28923 #line default
28924 #line hidden
28925 WriteLiteral(" \r\n \r" +
28926 "\n <script");
28927
28928 WriteLiteral(" id=\"ProductItemContainer\"");
28929
28930 WriteLiteral(" type=\"text/x-template\"");
28931
28932 WriteLiteral(">\r\n\t {{#.}}\r\n\t <div id=\"Product{{id}}\" data-template=\"ProductItem\" clas" +
28933 "s=\"product-item\">\r\n\t\t {{#Product}}\r\n\t\t {{>ProductItem}}\r\n\t\t " +
28934 " {{/Product}}\r\n\t </div>\r\n\t {{/.}}\r\n </script>\r\n\r\n<script");
28935
28936 WriteLiteral(" id=\"ProductListItem\"");
28937
28938 WriteLiteral(" type=\"text/x-template\"");
28939
28940 WriteLiteral(">\r\n\t {{#.}}\r\n {{#if googleImpression}}\r\n <text>{{{go" +
28941 "ogleEnchantImpression \'Product catalogue\' currency googleImpression}}}</text>\r\n " +
28942 " {{/if}}\r\n\t <input type=\"hidden\" name=\"ProductLoopCounter{{id}}" +
28943 "\" value=\"{{id}}\" />\r\n\t <input type=\"hidden\" name=\"ProductID{{id}}\" value=" +
28944 "\"{{productId}}\" />\r\n\t <input type=\"hidden\" value=\"{{variantid}}\" name=\"Va" +
28945 "riantID{{id}}\" id=\"Variant_{{id}}\" /> \r\n <div class=\"produc" +
28946 "t-item--list p-2\"> \r\n <div class=\"c0\">\r\n <div" +
28947 " class=\"product-item__image\">\r\n <a href=\"{{link}}\" onclic" +
28948 "k=\"{{googleImpressionClick}}\" title=\"{{name}}\" class=\"image-hover__wrapper\">\r\n " +
28949 " <img class=\"b-lazy\" src=\"/Admin/Public/GetImage.ashx?w" +
28950 "idth=160&height=160&crop=5&Compression=75&DoNotUpscale=true&" +
28951 "FillCanvas=true&image={{image}}\" \r\n data-src" +
28952 "=\"/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Compressio" +
28953 "n=75&DoNotUpscale=true&FillCanvas=true&image={{image}}\" alt=\"{{name}" +
28954 "}\" />\r\n {{#if secondaryImage}}\r\n " +
28955 " <img class=\"b-lazy\" data-secondary-image-src=\"/Admin/Public/GetImage" +
28956 ".ashx?width=160&height=160&crop=5&Compression=75&FillCanvas=true" +
28957 "&DoNotUpscale=true&image={{secondaryImage}}\" alt=\"{{name}}\" />\r\n " +
28958 " {{/if}} \r\n " +
28959 " {{#StickersContainers}}\r\n {{>StickersCont" +
28960 "ainer}}\r\n {{/StickersContainers}}\r\n " +
28961 " </a>\r\n </div>\r\n </div>\r\n " +
28962 "<div class=\"c1\">\r\n <a href=\"{{link}}\" onclick=\"{{googleImpres" +
28963 "sionClick}}\" title=\"{{name}}\" class=\"product-item__title text-decoration-none\">{" +
28964 "{name}}</a>\r\n <div class=\"c11 flex-wrap child-mr-2 align-item" +
28965 "s-center\">\r\n {{#if showProductNumber}}\r\n " +
28966 " <div class=\"product-item__number small color-muted\"><span class=\"mr-1" +
28967 " hidden\">");
28968
28969
28970 #line 925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28971 Write(Translate(Translations.Products.ProductNumber));
28972
28973
28974 #line default
28975 #line hidden
28976 WriteLiteral(@":</span><span>{{number}}</span></div>
28977 {{/if}}
28978 <div class=""rating--stars my-1"">
28979 {{#each ratingStars as |item|}}
28980 <ion-icon src=""/Files/Templates/Designs/");
28981
28982
28983 #line 929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28984 Write(DesignFolderProductItemList);
28985
28986
28987 #line default
28988 #line hidden
28989 WriteLiteral(@"/icons/default/{{item}}""></ion-icon>
28990 {{/each}}
28991 </div>
28992 </div>
28993
28994 {{#if manufacturer/name}}
28995 <div class=""product-item__number"">");
28996
28997
28998 #line 935 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
28999 Write(Translate(Translations.Products.Brand));
29000
29001
29002 #line default
29003 #line hidden
29004 WriteLiteral(@": <span>{{manufacturer/name}}</span></div>
29005 {{/if}}
29006
29007
29008 </div>
29009 <div class=""c2"">
29010 <div class=""stock"">
29011 {{#ifCond stockValue '>' 0}}
29012 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok""><ion-icon src=""/Files/Templates/Designs/");
29013
29014
29015 #line 943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29016 Write(DesignFolderProductItemList);
29017
29018
29019 #line default
29020 #line hidden
29021 WriteLiteral("/icons/default/stock-ok.svg\"></ion-icon> ");
29022
29023
29024 #line 943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29025 Write(Translate(Translations.Products.InStock));
29026
29027
29028 #line default
29029 #line hidden
29030 WriteLiteral("</div> \r\n {{else}}\r\n <div class" +
29031 "=\"product-item__stock weight-bold text-uppercase color-stock-none\"><ion-icon src" +
29032 "=\"/Files/Templates/Designs/");
29033
29034
29035 #line 945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29036 Write(DesignFolderProductItemList);
29037
29038
29039 #line default
29040 #line hidden
29041 WriteLiteral("/icons/default/stock-none.svg\"></ion-icon> ");
29042
29043
29044 #line 945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29045 Write(Translate(Translations.Products.OutOfStock));
29046
29047
29048 #line default
29049 #line hidden
29050 WriteLiteral(@"</div>
29051 {{/ifCond}}
29052 </div>
29053 </div>
29054 <div class=""c3"">
29055 {{#if description}}
29056 <div class=""product-item__description"">
29057 {{{description}}}
29058 </div>
29059 {{/if}}
29060 </div>
29061 <div class=""c4 flex-wrap"">
29062 <div class=""prices align-self-end"">
29063 {{#if recommendedPrice}}
29064 <span class=""product-item__price--recommended my-1 inline-block"">");
29065
29066
29067 #line 959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29068 Write(Translate(Translations.Products.RecommendedPrice));
29069
29070
29071 #line default
29072 #line hidden
29073 WriteLiteral(@" {{{recommendedPrice}}}</span>
29074 {{/if}}
29075 {{#if discount}}
29076 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}"">{{{discount}}}</span>
29077 {{/if}}
29078 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}"">{{{priceWithoutVAT}}}</span>
29079
29080 {{#if showPriceWithoutVAT}}
29081 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithoutVAT}}}</span>
29082 {{#if showPriceWithVAT}}
29083 <small>{{{priceWithVAT}}} ");
29084
29085
29086 #line 969 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29087 Write(Translate(Translations.Products.InclVAT));
29088
29089
29090 #line default
29091 #line hidden
29092 WriteLiteral(@"</small>
29093 {{/if}}
29094 {{else}}
29095 {{#if showPriceWithVAT}}
29096 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithVAT}}}</span>
29097 {{/if}}
29098 {{/if}}
29099 </div>
29100 <div class=""product-item__extra"">
29101 {{#if discountAmount}}
29102 <span class=""product-item__price--discount"">");
29103
29104
29105 #line 979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29106 Write(Translate(Translations.Products.YouSave));
29107
29108
29109 #line default
29110 #line hidden
29111 WriteLiteral(" {{discountPercentage}} ({{discountAmount}})</span>\r\n {{/i" +
29112 "f}}\r\n {{#if unitContent}}\r\n <span>" +
29113 "");
29114
29115
29116 #line 982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29117 Write(Translate(Translations.Products.SalesUOM));
29118
29119
29120 #line default
29121 #line hidden
29122 WriteLiteral(" {{unitContent}}</span>\r\n {{/if}}\r\n " +
29123 " {{#ifCond minimumQuantity \'>\' 1}}\r\n <span>");
29124
29125
29126 #line 985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29127 Write(Translate(Translations.Products.MinimumQuantity));
29128
29129
29130 #line default
29131 #line hidden
29132 WriteLiteral(" {{minimumQuantity}} ");
29133
29134
29135 #line 985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29136 Write(Translate(Translations.Products.Buc));
29137
29138
29139 #line default
29140 #line hidden
29141 WriteLiteral("</span>\r\n {{/ifCond}}\r\n {{#if promi" +
29142 "sedReceiptDate}}\r\n <span class=\"product-item__promised--d" +
29143 "ate\">{{promisedReceiptDate}}</span>\r\n {{/if}}\r\n " +
29144 " </div>\r\n </div>\r\n \r\n <div" +
29145 " class=\"c5 flex-wrap align-items-center\"> \r\n\t\t\t\t\t<div class=\"c51\"> " +
29146 " \r\n <div class=\"product__icons child-mr-1\">\r\n " +
29147 " {{#if productFields/icon1}}\r\n <img" +
29148 " alt=\"{{productFields/icon1Alt}}\" data-tooltip-content=\"{{productFields/icon1Alt" +
29149 "}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&height=40&cro" +
29150 "p=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{pro" +
29151 "ductFields/icon1}}\" />\r\n {{/if}}\r\n " +
29152 " {{#if productFields/icon2}}\r\n <img alt=\"{{p" +
29153 "roductFields/icon2Alt}}\" data-tooltip-content=\"{{productFields/icon2Alt}}\" class" +
29154 "=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&C" +
29155 "ompression=75&DoNotUpscale=true&FillCanvas=true&image={{productField" +
29156 "s/icon2}}\" />\r\n {{/if}}\r\n " +
29157 " {{#if productFields/icon3}}\r\n <img alt=\"{{productFie" +
29158 "lds/icon3Alt}}\" data-tooltip-content=\"{{productFields/icon3Alt}}\" class=\"item\" s" +
29159 "rc=\"/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compressio" +
29160 "n=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon3}}" +
29161 "\" />\r\n {{/if}}\r\n {{#if pr" +
29162 "oductFields/icon4}}\r\n <img alt=\"{{productFields/icon4" +
29163 "Alt}}\" data-tooltip-content=\"{{productFields/icon4Alt}}\" class=\"item\" src=\"/Admi" +
29164 "n/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&" +
29165 "DoNotUpscale=true&FillCanvas=true&image={{productFields/icon4}}\" />\r\n " +
29166 " {{/if}}\r\n {{#if productFiel" +
29167 "ds/icon5}}\r\n <img alt=\"{{productFields/icon5Alt}}\" da" +
29168 "ta-tooltip-content=\"{{productFields/icon5Alt}}\" class=\"item\" src=\"/Admin/Public/" +
29169 "GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpsc" +
29170 "ale=true&FillCanvas=true&image={{productFields/icon5}}\" />\r\n " +
29171 " {{/if}}\r\n {{#if productFields/icon6}" +
29172 "}\r\n <img alt=\"{{productFields/icon6Alt}}\" data-toolti" +
29173 "p-content=\"{{productFields/icon6Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage." +
29174 "ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&" +
29175 "amp;FillCanvas=true&image={{productFields/icon6}}\" />\r\n " +
29176 " {{/if}}\r\n {{#if productFields/icon7}}\r\n " +
29177 " <img alt=\"{{productFields/icon7Alt}}\" data-tooltip-content" +
29178 "=\"{{productFields/icon7Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?widt" +
29179 "h=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillC" +
29180 "anvas=true&image={{productFields/icon7}}\" />\r\n {" +
29181 "{/if}}\r\n {{#if productFields/icon8}}\r\n " +
29182 " <img alt=\"{{productFields/icon8Alt}}\" data-tooltip-content=\"{{produ" +
29183 "ctFields/icon8Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&" +
29184 "height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=tru" +
29185 "e&image={{productFields/icon8}}\" />\r\n {{/if}}\r\n " +
29186 " </div> \r\n <div class=\"list\"> " +
29187 " \r\n {{#if showFavoriteLink}}" +
29188 " \r\n\t\t\t\t\t\t\t\t\t<div class=\"item\">\r\n {{#ifCond isF" +
29189 "avoriteInAtLeastOneList \"==\" \"true\"}}\r\n <b" +
29190 "utton class=\"product-item__favorite on btn-icon\" data-tooltip-content=\"");
29191
29192
29193 #line 1025 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29194 Write(Translate(Translations.Products.RemoveFromFavorites));
29195
29196
29197 #line default
29198 #line hidden
29199 WriteLiteral("\" aria-label=\"Open favorites list\" has-variants=\"{{hasVariants}}\" onclick=\"openMo" +
29200 "dal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " +
29201 " <ion-icon src=\"/Files/Templates/Designs/");
29202
29203
29204 #line 1026 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29205 Write(DesignFolderProductItemList);
29206
29207
29208 #line default
29209 #line hidden
29210 WriteLiteral("/icons/default/favorites-on.svg\"></ion-icon>\r\n " +
29211 " </button>\r\n {{else}}\r\n " +
29212 " <button class=\"product-item__favorite off btn-icon\" data-tool" +
29213 "tip-content=\"");
29214
29215
29216 #line 1029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29217 Write(Translate(Translations.Products.AddToFavorites));
29218
29219
29220 #line default
29221 #line hidden
29222 WriteLiteral("\" aria-label=\"Open favorites list\" has-variants=\"{{hasVariants}}\" onclick=\"openMo" +
29223 "dal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " +
29224 " <ion-icon src=\"/Files/Templates/Designs/");
29225
29226
29227 #line 1030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29228 Write(DesignFolderProductItemList);
29229
29230
29231 #line default
29232 #line hidden
29233 WriteLiteral(@"/icons/default/favorites-off.svg""></ion-icon>
29234 </button>
29235 {{/ifCond}}
29236
29237 <df-modal id=""favoriteProductListModal{{productId}}""
29238 data-was-added-to-list=""");
29239
29240
29241 #line 1035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29242 Write(Translate(Translations.Products.WasAddedToFavoriteList));
29243
29244
29245 #line default
29246 #line hidden
29247 WriteLiteral("\"\r\n data-was-removed-from-list=\"");
29248
29249
29250 #line 1036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29251 Write(Translate(Translations.Products.WasRemovedFromFavoriteList));
29252
29253
29254 #line default
29255 #line hidden
29256 WriteLiteral("\"\r\n data-product-name=\"{{name}}\" \r\n " +
29257 " heading=\"");
29258
29259
29260 #line 1038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29261 Write(Translate(Translations.Products.AddToFavorites));
29262
29263
29264 #line default
29265 #line hidden
29266 WriteLiteral(@""">
29267 <span>
29268 {{#Favorite}}
29269 {{>FavoriteTemplate}}
29270 {{/Favorite}}
29271
29272 <div data-link=""{{createNewFavoriteList}}""
29273 data-enter-list-name=""");
29274
29275
29276 #line 1045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29277 Write(Translate(Translations.Products.EnterAListName));
29278
29279
29280 #line default
29281 #line hidden
29282 WriteLiteral("\"\r\n data-list-already-exists=\"");
29283
29284
29285 #line 1046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29286 Write(Translate(Translations.Products.ListWithSameNameAlreadyExists));
29287
29288
29289 #line default
29290 #line hidden
29291 WriteLiteral("\">\r\n <p class=\"margin-bottom-1em" +
29292 "\">");
29293
29294
29295 #line 1047 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29296 Write(Translate(Translations.Products.OrCreateOneAndAddTheProductToIt));
29297
29298
29299 #line default
29300 #line hidden
29301 WriteLiteral("</p>\r\n <df-input type=\"text\" val" +
29302 "ue=\"\" class=\"fav--list--name\" name=\"favorite\" id=\"favorite\" placeholder=\"");
29303
29304
29305 #line 1048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29306 Write(Translate(Translations.Products.OrCreateOne));
29307
29308
29309 #line default
29310 #line hidden
29311 WriteLiteral("\"></df-input>\r\n <button type=\"bu" +
29312 "tton\" class=\"submit--fav--list\">");
29313
29314
29315 #line 1049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29316 Write(Translate(Translations.General.Create));
29317
29318
29319 #line default
29320 #line hidden
29321 WriteLiteral(@"</button>
29322 </div>
29323 </span>
29324 </df-modal>
29325 </div>
29326 {{/if}}
29327 <div class=""item"">
29328 <button name=""Compare{{productId}}{{variantId}}"" class=""btn btn-fill--accent compare-trigger color-muted"" data-compare data-tooltip=""");
29329
29330
29331 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29332 Write(Translate(Translations.Products.AddToCompare));
29333
29334
29335 #line default
29336 #line hidden
29337 WriteLiteral("\" data-add-compare=\'");
29338
29339
29340 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29341 Write(Translate(Translations.Products.AddToCompare));
29342
29343
29344 #line default
29345 #line hidden
29346 WriteLiteral("\' data-remove-compare=\'");
29347
29348
29349 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29350 Write(Translate(Translations.Products.RemoveFromCompare));
29351
29352
29353 #line default
29354 #line hidden
29355 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>");
29356
29357
29358 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29359 Write(Translate(Translations.Products.AddToCompare));
29360
29361
29362 #line default
29363 #line hidden
29364 WriteLiteral(@"</span></button>
29365 </div>
29366 </div>
29367 </div>
29368 </div>
29369 <div class=""c6"">
29370 {{#if allowAddToCart}}
29371 <div class=""actions"">
29372 {{#ifCond stockValue '>' 0}}
29373 <form>
29374 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" />
29375 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" />
29376 <input type=""hidden"" name=""ID"" value=""");
29377
29378
29379 #line 1068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29380 Write(areaInfoProductItemList.MiniCartFeedPage.ID.ToString());
29381
29382
29383 #line default
29384 #line hidden
29385 WriteLiteral(@""" />
29386 <input type=""hidden"" name=""redirect"" value=""false"" />
29387 <input type=""hidden"" name=""CartCmd"" value=""add"" />
29388 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity"" name=""Quantity"" value=""{{minimumQuantity}}"" min=""{{minimumQuantity}}"" max=""{{stockValue}}"" step=""{{quantityStep}}""></df-quantity>
29389 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy {{disabledBuyButton}}""
29390 icon-position=""right""
29391 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}}
29392 data-role=""add-to-cart""
29393 message-success=""");
29394
29395
29396 #line 1076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29397 Write(Translate(Translations.Cart.ProductIsAddedToTheCart));
29398
29399
29400 #line default
29401 #line hidden
29402 WriteLiteral("\"\r\n > " +
29403 " \r\n\t\t\t\t\t\t\t\t\t\t<span>");
29404
29405
29406 #line 1078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29407 Write(Translate(Translations.Cart.AddToCart));
29408
29409
29410 #line default
29411 #line hidden
29412 WriteLiteral("</span>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"icon\"><ion-icon src=\"/Files/Templates/Designs/");
29413
29414
29415 #line 1079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29416 Write(DesignFolderProductItemList);
29417
29418
29419 #line default
29420 #line hidden
29421 WriteLiteral(@"/icons/default/cart.svg""></ion-icon></span>
29422 </button>
29423 </form>
29424 {{else}}
29425
29426 <div class=""stock-notif-translates""
29427 data-notification-already-sent=""");
29428
29429
29430 #line 1085 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29431 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent));
29432
29433
29434 #line default
29435 #line hidden
29436 WriteLiteral("\"\r\n data-notification-registered=\"");
29437
29438
29439 #line 1086 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29440 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered));
29441
29442
29443 #line default
29444 #line hidden
29445 WriteLiteral("\"></div>\r\n ");
29446
29447 WriteLiteral("\r\n");
29448
29449
29450 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29451
29452
29453 #line default
29454 #line hidden
29455
29456 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29457 if (userIsLoggedInProductItemList)
29458 {
29459
29460
29461 #line default
29462 #line hidden
29463 WriteLiteral(" ");
29464
29465 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
29466
29467 WriteLiteral("\r\n");
29468
29469 WriteLiteral(" <button");
29470
29471 WriteLiteral(" type=\"button\"");
29472
29473 WriteLiteral(" class=\"btn-fill--muted\"");
29474
29475 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\"");
29476
29477 WriteLiteral(" data-notified=\"false\"");
29478
29479 WriteLiteral(" data-user-logged-in=\"true\"");
29480
29481 WriteLiteral("> ");
29482
29483
29484 #line 1091 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29485 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
29486
29487
29488 #line default
29489 #line hidden
29490 WriteLiteral("</button>\r\n");
29491
29492
29493 #line 1092 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29494
29495
29496
29497 #line default
29498 #line hidden
29499 WriteLiteral(" ");
29500
29501 WriteLiteral("{{else}}");
29502
29503 WriteLiteral("\r\n");
29504
29505 WriteLiteral(" <button");
29506
29507 WriteLiteral(" type=\"button\"");
29508
29509 WriteLiteral(" class=\"btn-fill--muted\"");
29510
29511 WriteLiteral(" data-notified=\"true\"");
29512
29513 WriteLiteral(" data-user-logged-in=\"true\"");
29514
29515 WriteLiteral(">");
29516
29517
29518 #line 1094 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29519 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
29520
29521
29522 #line default
29523 #line hidden
29524 WriteLiteral("</button>\r\n");
29525
29526 WriteLiteral(" ");
29527
29528 WriteLiteral("{{/ifCond}}");
29529
29530 WriteLiteral("\r\n");
29531
29532
29533 #line 1096 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29534
29535 }
29536 else
29537 {
29538
29539
29540 #line default
29541 #line hidden
29542 WriteLiteral(" ");
29543
29544 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
29545
29546 WriteLiteral("\r\n");
29547
29548 WriteLiteral(" <button");
29549
29550 WriteLiteral(" type=\"button\"");
29551
29552 WriteLiteral(" class=\"btn-fill--muted\"");
29553
29554 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\"");
29555
29556 WriteLiteral(" data-notified=\"false\"");
29557
29558 WriteLiteral(" data-user-logged-in=\"false\"");
29559
29560 WriteLiteral(">");
29561
29562
29563 #line 1101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29564 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
29565
29566
29567 #line default
29568 #line hidden
29569 WriteLiteral("</button>\r\n");
29570
29571 WriteLiteral(" <df-modal");
29572
29573 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\"");
29574
29575 WriteLiteral("\r\n data-product-name=\"{{name}}\"");
29576
29577 WriteAttribute("heading", Tuple.Create(" \r\n heading=\"", 69195), Tuple.Create("\"", 69306)
29578
29579 #line 1104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29580 , Tuple.Create(Tuple.Create("", 69251), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock)
29581
29582 #line default
29583 #line hidden
29584 , 69251), false)
29585 );
29586
29587 WriteLiteral(">\r\n <span>\r\n " +
29588 " <form");
29589
29590 WriteLiteral(" name=\"{{productId}}\"");
29591
29592 WriteAttribute("action", Tuple.Create(" action=\"", 69436), Tuple.Create("\"", 69503)
29593 , Tuple.Create(Tuple.Create("", 69445), Tuple.Create("/Default.aspx?ID=", 69445), true)
29594
29595 #line 1106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29596 , Tuple.Create(Tuple.Create("", 69462), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage")
29597
29598 #line default
29599 #line hidden
29600 , 69462), false)
29601 );
29602
29603 WriteLiteral(">\r\n <input");
29604
29605 WriteLiteral(" type=\"hidden\"");
29606
29607 WriteLiteral(" name=\"ProductID\"");
29608
29609 WriteLiteral(" id=\"ProductID\"");
29610
29611 WriteLiteral(" value=\"{{productId}}\"");
29612
29613 WriteLiteral(" />\r\n <input");
29614
29615 WriteLiteral(" type=\"hidden\"");
29616
29617 WriteLiteral(" name=\"VariantID\"");
29618
29619 WriteLiteral(" id=\"VariantID\"");
29620
29621 WriteLiteral(" value=\"{{variantId}}\"");
29622
29623 WriteLiteral(" />\r\n <input");
29624
29625 WriteLiteral(" type=\"hidden\"");
29626
29627 WriteLiteral(" name=\"CartCmd\"");
29628
29629 WriteLiteral(" id=\"CartCmd\"");
29630
29631 WriteLiteral(" value=\"createnotificationforthisproduct\"");
29632
29633 WriteLiteral(" />\r\n <df-input required");
29634
29635 WriteLiteral(" class=\"mb-3\"");
29636
29637 WriteLiteral(" type=\"email\"");
29638
29639 WriteLiteral(" id=\"NotificationEmail\"");
29640
29641 WriteLiteral(" name=\"NotificationEmail\"");
29642
29643 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 70059), Tuple.Create("\"", 70122)
29644
29645 #line 1110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29646 , Tuple.Create(Tuple.Create("", 70073), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress)
29647
29648 #line default
29649 #line hidden
29650 , 70073), false)
29651 );
29652
29653 WriteLiteral("></df-input>\r\n <button");
29654
29655 WriteLiteral(" type=\"submit\"");
29656
29657 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\"");
29658
29659 WriteLiteral(">");
29660
29661
29662 #line 1111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29663 Write(Translate(Translations.Account.CreateRequest));
29664
29665
29666 #line default
29667 #line hidden
29668 WriteLiteral("</button>\r\n </form>\r\n " +
29669 " </span>\r\n " +
29670 "</df-modal>\r\n");
29671
29672 WriteLiteral(" ");
29673
29674 WriteLiteral("{{else}}");
29675
29676 WriteLiteral("\r\n");
29677
29678 WriteLiteral(" <button");
29679
29680 WriteLiteral(" type=\"button\"");
29681
29682 WriteLiteral(" class=\"btn-fill--muted\"");
29683
29684 WriteLiteral(" data-notified=\"true\"");
29685
29686 WriteLiteral(" data-user-logged-in=\"false\"");
29687
29688 WriteLiteral(">");
29689
29690
29691 #line 1116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29692 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
29693
29694
29695 #line default
29696 #line hidden
29697 WriteLiteral("</button>\r\n");
29698
29699 WriteLiteral(" ");
29700
29701 WriteLiteral("{{/ifCond}}");
29702
29703 WriteLiteral("\r\n");
29704
29705
29706 #line 1118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29707 }
29708
29709
29710 #line default
29711 #line hidden
29712 WriteLiteral(" {{/ifCond}}\r\n \r\n " +
29713 " ");
29714
29715 WriteLiteral("\r\n </div>\r\n {{else}}\r\n " +
29716 " <div class=\"actions\">\r\n <a href=\"/Default.aspx" +
29717 "?ID={{signInPageId}}\" id=\"CartButton_{{id}}\" title=\'");
29718
29719
29720 #line 1127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29721 Write(Translate(Translations.Account.SignIn));
29722
29723
29724 #line default
29725 #line hidden
29726 WriteLiteral("\' onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--muted\">");
29727
29728
29729 #line 1127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29730 Write(Translate(Translations.Account.SignIn));
29731
29732
29733 #line default
29734 #line hidden
29735 WriteLiteral("</a>\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" title" +
29736 "=\"");
29737
29738
29739 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29740 Write(Translate(Translations.Products.ViewMore));
29741
29742
29743 #line default
29744 #line hidden
29745 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">");
29746
29747
29748 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29749 Write(Translate(Translations.Products.ViewMore));
29750
29751
29752 #line default
29753 #line hidden
29754 WriteLiteral("</a>\r\n </div>\r\n {{/if}}\r\n " +
29755 " </div> \r\n </div>\r\n\t {{/.}}\r\n </script>\r\n\t<scr" +
29756 "ipt");
29757
29758 WriteLiteral(" id=\"ProductListItemList\"");
29759
29760 WriteLiteral(" type=\"text/x-template\"");
29761
29762 WriteLiteral(">\t\t\r\n {{#.}}\r\n <div id=\"Product{{id}}\" data-template=\"ProductListIt" +
29763 "em\" class=\"product-item\">\r\n {{#Product}}\r\n {{>ProductListI" +
29764 "tem}}\r\n {{/Product}}\r\n </div>\r\n {{/.}} \t\t\r\n\t</sc" +
29765 "ript>\r\n");
29766
29767
29768 #line 1144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29769 Write(SnippetEnd("BottomJS"));
29770
29771
29772 #line default
29773 #line hidden
29774 WriteLiteral(" \r\n");
29775
29776 WriteLiteral("\r\n");
29777
29778 WriteLiteral("\r\n");
29779
29780 WriteLiteral("\r\n");
29781
29782 WriteLiteral("\r\n\r\n\r\n");
29783
29784
29785 #line 1157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29786 Write(SnippetStart("BottomJS"));
29787
29788
29789 #line default
29790 #line hidden
29791 WriteLiteral("\r\n");
29792
29793
29794 #line 1158 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29795
29796 var areaInfoProductItemDetails = Df.Dw.Rapido.AreaInfo.Current();
29797 var DesignFolderProductItemDetails = Pageview.Layout.Design.Name;
29798 var userIsLoggedInProductItemDetails = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
29799
29800
29801 #line default
29802 #line hidden
29803 WriteLiteral("\r\n<script");
29804
29805 WriteLiteral(" id=\"ProductDetailsItem\"");
29806
29807 WriteLiteral(" type=\"text/x-template\"");
29808
29809 WriteLiteral(">\r\n {{#.}}\r\n {{#if googleImpression}}\r\n <text>{{{googleEncha" +
29810 "ntImpression \'Product catalogue\' currency googleImpression}}}</text>\r\n {{" +
29811 "/if}}\r\n <input type=\"hidden\" name=\"ProductLoopCounter{{id}}\" value=\"{{id}" +
29812 "}\" />\r\n <input type=\"hidden\" name=\"ProductID{{id}}\" value=\"{{productId}}\"" +
29813 " />\r\n \r\n <div class=\"product-item--details p-2 grid gap-2\"> \r\n " +
29814 " <div class=\"c0\">\r\n <div class=\"product-item__image\">\r\n " +
29815 " <a href=\"{{link}}\" onclick=\"{{googleImpressionClick}}\" title=\"" +
29816 "{{name}}\" class=\"image-hover__wrapper relative\">\r\n <img c" +
29817 "lass=\"b-lazy\" src=\"/Admin/Public/GetImage.ashx?width=70&height=70&crop=5" +
29818 "&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{image}" +
29819 "}\" \r\n data-src=\"/Admin/Public/GetImage.ashx?width=70" +
29820 "&height=70&crop=5&Compression=75&DoNotUpscale=true&FillCanva" +
29821 "s=true&image={{image}}\" alt=\"{{name}}\" />\r\n {{#if sec" +
29822 "ondaryImage}}\r\n <img class=\"b-lazy\" data-secondary-i" +
29823 "mage-src=\"/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Co" +
29824 "mpression=75&FillCanvas=true&DoNotUpscale=true&image={{secondaryImag" +
29825 "e}}\" alt=\"{{name}}\" />\r\n {{/if}} " +
29826 " \r\n {{#StickersContainers}}\r\n " +
29827 " {{>StickersContainer}}\r\n {{/StickersContainers}}\r\n{{" +
29828 "#if showPrices}} \r\n {{#if Prices}}\r\n " +
29829 " {{#displayPromoPrice Prices}}{{/displayPromoPr" +
29830 "ice}}\r\n {{/if}} \r\n " +
29831 " {{/if}}\r\n </a> " +
29832 " \r\n </div>\r\n </div>\r\n <div class=\"c1\">\r\n " +
29833 " {{#if showFavoriteLink}}\r\n {{#ifCond isFavoriteI" +
29834 "nAtLeastOneList \"==\" \"true\"}}\r\n <button class=\"product-it" +
29835 "em__favorite on btn-icon\" aria-label=\"Open favorites list\" has-variants=\"{{hasVa" +
29836 "riants}}\" onclick=\"openModal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " +
29837 " <ion-icon src=\"/Files/Templates/Designs/");
29838
29839
29840 #line 1195 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29841 Write(DesignFolderProductItemDetails);
29842
29843
29844 #line default
29845 #line hidden
29846 WriteLiteral(@"/icons/default/favorites-on.svg""></ion-icon>
29847 </button>
29848 {{else}}
29849 <button class=""product-item__favorite off btn-icon"" aria-label=""Open favorites list"" has-variants=""{{hasVariants}}"" onclick=""openModal({id:'favoriteProductListModal{{productId}}'})"">
29850 <ion-icon src=""/Files/Templates/Designs/");
29851
29852
29853 #line 1199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29854 Write(DesignFolderProductItemDetails);
29855
29856
29857 #line default
29858 #line hidden
29859 WriteLiteral(@"/icons/default/favorites-off.svg""></ion-icon>
29860 </button>
29861 {{/ifCond}}
29862
29863 <df-modal id=""favoriteProductListModal{{productId}}""
29864 data-was-added-to-list=""");
29865
29866
29867 #line 1204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29868 Write(Translate(Translations.Products.WasAddedToFavoriteList));
29869
29870
29871 #line default
29872 #line hidden
29873 WriteLiteral("\"\r\n data-was-removed-from-list=\"");
29874
29875
29876 #line 1205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29877 Write(Translate(Translations.Products.WasRemovedFromFavoriteList));
29878
29879
29880 #line default
29881 #line hidden
29882 WriteLiteral("\"\r\n data-product-name=\"{{name}}\" \r\n " +
29883 " heading=\"");
29884
29885
29886 #line 1207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29887 Write(Translate(Translations.Products.AddToFavorites));
29888
29889
29890 #line default
29891 #line hidden
29892 WriteLiteral(@""">
29893 <span>
29894 {{#Favorite}}
29895 {{>FavoriteTemplate}}
29896 {{/Favorite}}
29897
29898 <div data-link=""{{createNewFavoriteList}}""
29899 data-enter-list-name=""");
29900
29901
29902 #line 1214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29903 Write(Translate(Translations.Products.EnterAListName));
29904
29905
29906 #line default
29907 #line hidden
29908 WriteLiteral("\"\r\n data-list-already-exists=\"");
29909
29910
29911 #line 1215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29912 Write(Translate(Translations.Products.ListWithSameNameAlreadyExists));
29913
29914
29915 #line default
29916 #line hidden
29917 WriteLiteral("\">\r\n <p class=\"margin-bottom-1em\">");
29918
29919
29920 #line 1216 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29921 Write(Translate(Translations.Products.OrCreateOneAndAddTheProductToIt));
29922
29923
29924 #line default
29925 #line hidden
29926 WriteLiteral("</p>\r\n <df-input type=\"text\" value=\"\" class=\"fav" +
29927 "--list--name\" name=\"favorite\" id=\"favorite\" placeholder=\"");
29928
29929
29930 #line 1217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29931 Write(Translate(Translations.Products.OrCreateOne));
29932
29933
29934 #line default
29935 #line hidden
29936 WriteLiteral("\"></df-input>\r\n <button type=\"button\" class=\"sub" +
29937 "mit--fav--list\">");
29938
29939
29940 #line 1218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29941 Write(Translate(Translations.General.Create));
29942
29943
29944 #line default
29945 #line hidden
29946 WriteLiteral(@"</button>
29947 </div>
29948 </span>
29949 </df-modal>
29950 {{/if}}
29951 <div class=""stock"">
29952 {{#ifCond stockValue '>' 0}}
29953 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok""><ion-icon src=""/Files/Templates/Designs/");
29954
29955
29956 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29957 Write(DesignFolderProductItemDetails);
29958
29959
29960 #line default
29961 #line hidden
29962 WriteLiteral("/icons/default/stock-ok.svg\"></ion-icon> ");
29963
29964
29965 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29966 Write(Translate(Translations.Products.InStock));
29967
29968
29969 #line default
29970 #line hidden
29971 WriteLiteral("</div> \r\n {{else}}\r\n <div class=\"produc" +
29972 "t-item__stock weight-bold text-uppercase color-stock-none\"><ion-icon src=\"/Files" +
29973 "/Templates/Designs/");
29974
29975
29976 #line 1227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29977 Write(DesignFolderProductItemDetails);
29978
29979
29980 #line default
29981 #line hidden
29982 WriteLiteral("/icons/default/stock-none.svg\"></ion-icon> ");
29983
29984
29985 #line 1227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
29986 Write(Translate(Translations.Products.OutOfStock));
29987
29988
29989 #line default
29990 #line hidden
29991 WriteLiteral(@"</div>
29992 {{/ifCond}}
29993 </div>
29994 </div>
29995 <div class=""c2 flex-wrap"">
29996 <div class=""c22"">
29997 <a href=""{{link}}"" onclick=""{{googleImpressionClick}}"" title=""{{name}}"" class=""product-item__title text-decoration-none block"">{{name}}</a>
29998 {{#if showProductNumber}}
29999 <div class=""product-item__number small color-muted my-1""><span class=""mr-1 hidden"">");
30000
30001
30002 #line 1235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30003 Write(Translate(Translations.Products.ProductNumber));
30004
30005
30006 #line default
30007 #line hidden
30008 WriteLiteral(":</span> <span>{{number}}</span></div>\r\n {{/if}}\r\n " +
30009 " {{#if manufacturer/name}}\r\n <div class=\"product-i" +
30010 "tem__number small color-muted my-1\"><span class=\"mr-1 hidden\">");
30011
30012
30013 #line 1238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30014 Write(Translate(Translations.Products.Brand));
30015
30016
30017 #line default
30018 #line hidden
30019 WriteLiteral(@":</span> <span>{{manufacturer/name}}</span></div>
30020 {{/if}}
30021 </div>
30022 <div class=""list flex-wrap justify-content-center child-mr-2 align-items-center align-self-end w-100"">
30023 <div class=""item"">
30024 <div class=""rating--stars"">
30025 {{#each ratingStars as |item|}}
30026 <ion-icon src=""/Files/Templates/Designs/");
30027
30028
30029 #line 1245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30030 Write(DesignFolderProductItemDetails);
30031
30032
30033 #line default
30034 #line hidden
30035 WriteLiteral(@"/icons/default/{{item}}""></ion-icon>
30036 {{/each}}
30037 </div>
30038 </div>
30039 <div class=""item"">
30040 <button name=""Compare{{productId}}{{variantId}}"" class=""btn btn-fill--accent compare-trigger color-muted"" data-compare data-tooltip=""");
30041
30042
30043 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30044 Write(Translate(Translations.Products.AddToCompare));
30045
30046
30047 #line default
30048 #line hidden
30049 WriteLiteral("\" data-add-compare=\'");
30050
30051
30052 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30053 Write(Translate(Translations.Products.AddToCompare));
30054
30055
30056 #line default
30057 #line hidden
30058 WriteLiteral("\' data-remove-compare=\'");
30059
30060
30061 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30062 Write(Translate(Translations.Products.RemoveFromCompare));
30063
30064
30065 #line default
30066 #line hidden
30067 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>");
30068
30069
30070 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30071 Write(Translate(Translations.Products.AddToCompare));
30072
30073
30074 #line default
30075 #line hidden
30076 WriteLiteral(@"</span></button>
30077 </div>
30078 </div>
30079 </div>
30080 <div class=""c3 flex-wrap align-items-center justify-content-end"">
30081 <div class=""prices"">
30082 <div class=""prices"">
30083 {{#if discount}}
30084 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}"">{{{discount}}}</span>
30085 {{/if}}
30086 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}"">{{{priceWithoutVAT}}}</span>
30087 {{#if showPriceWithoutVAT}}
30088 <span class=""product-item__price--nosale color-brand my-1"">{{{priceWithoutVAT}}}</span>
30089 {{#if showPriceWithVAT}}
30090 <small>{{{priceWithVAT}}} ");
30091
30092
30093 #line 1264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30094 Write(Translate(Translations.Products.InclVAT));
30095
30096
30097 #line default
30098 #line hidden
30099 WriteLiteral(@"</small>
30100 {{/if}}
30101 {{else}}
30102 {{#if showPriceWithVAT}}
30103 <span class=""product-item__price--nosale color-brand my-1"">{{{priceWithVAT}}}</span>
30104 {{/if}}
30105 {{/if}}
30106 </div>
30107 </div>
30108 </div>
30109 <div class=""c4 flex-wrap align-items-center"">
30110 {{#if allowAddToCart}}
30111 <div class=""actions flex-wrap justify-content-end"">
30112 {{#ifCond stockValue '>' 0}}
30113 <form>
30114 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" />
30115 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" />
30116 <input type=""hidden"" name=""ID"" value=""");
30117
30118
30119 #line 1281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30120 Write(areaInfoProductItemDetails.MiniCartFeedPage.ID.ToString());
30121
30122
30123 #line default
30124 #line hidden
30125 WriteLiteral(@""" />
30126 <input type=""hidden"" name=""redirect"" value=""false"" />
30127 <input type=""hidden"" name=""CartCmd"" value=""add"" />
30128 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity"" name=""Quantity"" value=""{{minimumQuantity}}"" min=""{{minimumQuantity}}"" max=""{{stockValue}}"" step=""{{quantityStep}}""></df-quantity>
30129 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy btn-icon {{disabledBuyButton}}""
30130 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}}
30131 data-role=""add-to-cart""
30132 message-success=""");
30133
30134
30135 #line 1288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30136 Write(Translate(Translations.Cart.ProductIsAddedToTheCart));
30137
30138
30139 #line default
30140 #line hidden
30141 WriteLiteral("\"\r\n >\r\n <io" +
30142 "n-icon src=\"/Files/Templates/Designs/");
30143
30144
30145 #line 1290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30146 Write(DesignFolderProductItemDetails);
30147
30148
30149 #line default
30150 #line hidden
30151 WriteLiteral(@"/icons/default/cart.svg""></ion-icon>
30152 </button>
30153 </form>
30154 {{else}}
30155 <div class=""stock-notif-translates""
30156 data-notification-already-sent=""");
30157
30158
30159 #line 1295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30160 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent));
30161
30162
30163 #line default
30164 #line hidden
30165 WriteLiteral("\"\r\n data-notification-registered=\"");
30166
30167
30168 #line 1296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30169 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered));
30170
30171
30172 #line default
30173 #line hidden
30174 WriteLiteral("\"></div>\r\n ");
30175
30176 WriteLiteral("\r\n");
30177
30178
30179 #line 1298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30180
30181
30182 #line default
30183 #line hidden
30184
30185 #line 1298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30186 if (userIsLoggedInProductItemDetails)
30187 {
30188
30189
30190 #line default
30191 #line hidden
30192 WriteLiteral(" ");
30193
30194 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
30195
30196 WriteLiteral("\r\n");
30197
30198 WriteLiteral(" <button");
30199
30200 WriteLiteral(" type=\"button\"");
30201
30202 WriteLiteral(" class=\"btn-fill--muted btn-icon\"");
30203
30204 WriteLiteral(" data-tooltip-content=\"");
30205
30206
30207 #line 1301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30208 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
30209
30210
30211 #line default
30212 #line hidden
30213 WriteLiteral("\"");
30214
30215 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\"");
30216
30217 WriteLiteral(" data-notified=\"false\"");
30218
30219 WriteLiteral(" data-user-logged-in=\"true\"");
30220
30221 WriteLiteral(">\r\n <ion-icon");
30222
30223 WriteAttribute("src", Tuple.Create(" src=\"", 84436), Tuple.Create("\"", 84529)
30224 , Tuple.Create(Tuple.Create("", 84442), Tuple.Create("/Files/Templates/Designs/", 84442), true)
30225
30226 #line 1302 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30227 , Tuple.Create(Tuple.Create("", 84467), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails
30228
30229 #line default
30230 #line hidden
30231 , 84467), false)
30232 , Tuple.Create(Tuple.Create("", 84498), Tuple.Create("/icons/default/alert-circle.svg", 84498), true)
30233 );
30234
30235 WriteLiteral("></ion-icon>\r\n </button>\r\n");
30236
30237
30238 #line 1304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30239
30240
30241
30242 #line default
30243 #line hidden
30244 WriteLiteral(" ");
30245
30246 WriteLiteral("{{else}}");
30247
30248 WriteLiteral("\r\n");
30249
30250 WriteLiteral(" <button");
30251
30252 WriteLiteral(" type=\"button\"");
30253
30254 WriteLiteral(" class=\"btn-fill--muted btn-icon\"");
30255
30256 WriteLiteral(" data-tooltip-content=\"");
30257
30258
30259 #line 1306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30260 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
30261
30262
30263 #line default
30264 #line hidden
30265 WriteLiteral("\"");
30266
30267 WriteLiteral(" data-notified=\"true\"");
30268
30269 WriteLiteral(" data-user-logged-in=\"true\"");
30270
30271 WriteLiteral(">\r\n <ion-icon");
30272
30273 WriteAttribute("src", Tuple.Create(" src=\"", 84965), Tuple.Create("\"", 85058)
30274 , Tuple.Create(Tuple.Create("", 84971), Tuple.Create("/Files/Templates/Designs/", 84971), true)
30275
30276 #line 1307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30277 , Tuple.Create(Tuple.Create("", 84996), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails
30278
30279 #line default
30280 #line hidden
30281 , 84996), false)
30282 , Tuple.Create(Tuple.Create("", 85027), Tuple.Create("/icons/default/alert-circle.svg", 85027), true)
30283 );
30284
30285 WriteLiteral("></ion-icon>\r\n </button>\r\n");
30286
30287 WriteLiteral(" ");
30288
30289 WriteLiteral("{{/ifCond}}");
30290
30291 WriteLiteral("\r\n");
30292
30293
30294 #line 1310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30295
30296 }
30297 else
30298 {
30299
30300
30301 #line default
30302 #line hidden
30303 WriteLiteral(" ");
30304
30305 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}");
30306
30307 WriteLiteral("\r\n");
30308
30309 WriteLiteral(" <button");
30310
30311 WriteLiteral(" type=\"button\"");
30312
30313 WriteLiteral(" class=\"btn-fill--muted btn-icon\"");
30314
30315 WriteLiteral(" data-tooltip-content=\"");
30316
30317
30318 #line 1315 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30319 Write(Translate(Translations.Products.NotifyWhenBackOnStock));
30320
30321
30322 #line default
30323 #line hidden
30324 WriteLiteral("\"");
30325
30326 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\"");
30327
30328 WriteLiteral(" data-notified=\"false\"");
30329
30330 WriteLiteral(" data-user-logged-in=\"false\"");
30331
30332 WriteLiteral(">\r\n <ion-icon");
30333
30334 WriteAttribute("src", Tuple.Create(" src=\"", 85734), Tuple.Create("\"", 85827)
30335 , Tuple.Create(Tuple.Create("", 85740), Tuple.Create("/Files/Templates/Designs/", 85740), true)
30336
30337 #line 1316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30338 , Tuple.Create(Tuple.Create("", 85765), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails
30339
30340 #line default
30341 #line hidden
30342 , 85765), false)
30343 , Tuple.Create(Tuple.Create("", 85796), Tuple.Create("/icons/default/alert-circle.svg", 85796), true)
30344 );
30345
30346 WriteLiteral("></ion-icon>\r\n </button>\r\n");
30347
30348 WriteLiteral(" <df-modal");
30349
30350 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\"");
30351
30352 WriteLiteral("\r\n data-product-name=\"{{name}}\"");
30353
30354 WriteAttribute("heading", Tuple.Create(" \r\n heading=\"", 86040), Tuple.Create("\"", 86147)
30355
30356 #line 1320 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30357 , Tuple.Create(Tuple.Create("", 86092), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock)
30358
30359 #line default
30360 #line hidden
30361 , 86092), false)
30362 );
30363
30364 WriteLiteral(">\r\n <span>\r\n " +
30365 " <form");
30366
30367 WriteLiteral(" name=\"{{productId}}\"");
30368
30369 WriteAttribute("action", Tuple.Create(" action=\"", 86269), Tuple.Create("\"", 86336)
30370 , Tuple.Create(Tuple.Create("", 86278), Tuple.Create("/Default.aspx?ID=", 86278), true)
30371
30372 #line 1322 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30373 , Tuple.Create(Tuple.Create("", 86295), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage")
30374
30375 #line default
30376 #line hidden
30377 , 86295), false)
30378 );
30379
30380 WriteLiteral(">\r\n <input");
30381
30382 WriteLiteral(" type=\"hidden\"");
30383
30384 WriteLiteral(" name=\"ProductID\"");
30385
30386 WriteLiteral(" id=\"ProductID\"");
30387
30388 WriteLiteral(" value=\"{{productId}}\"");
30389
30390 WriteLiteral(" />\r\n <input");
30391
30392 WriteLiteral(" type=\"hidden\"");
30393
30394 WriteLiteral(" name=\"VariantID\"");
30395
30396 WriteLiteral(" id=\"VariantID\"");
30397
30398 WriteLiteral(" value=\"{{variantId}}\"");
30399
30400 WriteLiteral(" />\r\n <input");
30401
30402 WriteLiteral(" type=\"hidden\"");
30403
30404 WriteLiteral(" name=\"CartCmd\"");
30405
30406 WriteLiteral(" id=\"CartCmd\"");
30407
30408 WriteLiteral(" value=\"createnotificationforthisproduct\"");
30409
30410 WriteLiteral(" />\r\n <df-input required");
30411
30412 WriteLiteral(" type=\"email\"");
30413
30414 WriteLiteral(" class=\"mb-3\"");
30415
30416 WriteLiteral(" id=\"NotificationEmail\"");
30417
30418 WriteLiteral(" name=\"NotificationEmail\"");
30419
30420 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 86877), Tuple.Create("\"", 86940)
30421
30422 #line 1326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30423 , Tuple.Create(Tuple.Create("", 86891), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress)
30424
30425 #line default
30426 #line hidden
30427 , 86891), false)
30428 );
30429
30430 WriteLiteral("></df-input>\r\n <button");
30431
30432 WriteLiteral(" type=\"submit\"");
30433
30434 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\"");
30435
30436 WriteLiteral(">");
30437
30438
30439 #line 1327 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30440 Write(Translate(Translations.Account.CreateRequest));
30441
30442
30443 #line default
30444 #line hidden
30445 WriteLiteral("</button>\r\n </form>\r\n " +
30446 " </span>\r\n </df-modal>\r" +
30447 "\n");
30448
30449 WriteLiteral(" ");
30450
30451 WriteLiteral("{{else}}");
30452
30453 WriteLiteral("\r\n");
30454
30455 WriteLiteral(" <button");
30456
30457 WriteLiteral(" type=\"button\"");
30458
30459 WriteLiteral(" class=\"btn-fill--muted btn-icon\"");
30460
30461 WriteLiteral(" data-tooltip-content=\"");
30462
30463
30464 #line 1332 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30465 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent));
30466
30467
30468 #line default
30469 #line hidden
30470 WriteLiteral("\"");
30471
30472 WriteLiteral(" data-notified=\"true\"");
30473
30474 WriteLiteral(" data-user-logged-in=\"false\"");
30475
30476 WriteLiteral(">\r\n <ion-icon");
30477
30478 WriteAttribute("src", Tuple.Create(" src=\"", 87616), Tuple.Create("\"", 87709)
30479 , Tuple.Create(Tuple.Create("", 87622), Tuple.Create("/Files/Templates/Designs/", 87622), true)
30480
30481 #line 1333 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30482 , Tuple.Create(Tuple.Create("", 87647), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails
30483
30484 #line default
30485 #line hidden
30486 , 87647), false)
30487 , Tuple.Create(Tuple.Create("", 87678), Tuple.Create("/icons/default/alert-circle.svg", 87678), true)
30488 );
30489
30490 WriteLiteral("></ion-icon>\r\n </button>\r\n");
30491
30492 WriteLiteral(" ");
30493
30494 WriteLiteral("{{/ifCond}}");
30495
30496 WriteLiteral("\r\n");
30497
30498
30499 #line 1336 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30500 }
30501
30502
30503 #line default
30504 #line hidden
30505 WriteLiteral(@" {{/ifCond}}
30506 </div>
30507 {{else}}
30508 <div class=""actions"">
30509 <a href=""/Default.aspx?ID={{signInPageId}}"" id=""CartButton_{{id}}"" title='");
30510
30511
30512 #line 1341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30513 Write(Translate(Translations.Account.SignIn));
30514
30515
30516 #line default
30517 #line hidden
30518 WriteLiteral("\' onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--accent\">");
30519
30520
30521 #line 1341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30522 Write(Translate(Translations.Account.SignIn));
30523
30524
30525 #line default
30526 #line hidden
30527 WriteLiteral("</a>\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" title=\"");
30528
30529
30530 #line 1342 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30531 Write(Translate(Translations.Products.ViewMore));
30532
30533
30534 #line default
30535 #line hidden
30536 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">");
30537
30538
30539 #line 1342 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30540 Write(Translate(Translations.Products.ViewMore));
30541
30542
30543 #line default
30544 #line hidden
30545 WriteLiteral("</a>\r\n </div> \r\n " +
30546 " {{/if}}\r\n </div> \r\n </div>\r\n {{/.}}\r\n <" +
30547 "/script>\r\n <script");
30548
30549 WriteLiteral(" id=\"ProductDetailsItemList\"");
30550
30551 WriteLiteral(" type=\"text/x-template\"");
30552
30553 WriteLiteral(">\r\n\t\t{{#.}}\r\n <div id=\"Product{{id}}\" data-template=\"ProductDetailsItem\" c" +
30554 "lass=\"product-item\">\r\n {{#Product}}\r\n {{>ProductDetailsIte" +
30555 "m}}\r\n {{/Product}}\r\n </div>\r\n {{/.}}\t\t\t\r\n\t</script>\r\n");
30556
30557
30558 #line 1358 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30559 Write(SnippetEnd("BottomJS"));
30560
30561
30562 #line default
30563 #line hidden
30564 WriteLiteral(" \r\n\r\n");
30565
30566
30567 #line 1360 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30568
30569 //Font settings
30570 var fonts = new string[] {
30571 getFontFamily("Layout", "HeaderFont"),
30572 getFontFamily("Layout", "SubheaderFont"),
30573 getFontFamily("Layout", "TertiaryHeaderFont"),
30574 getFontFamily("Layout", "BodyText"),
30575 getFontFamily("Layout", "Header", "ToolsFont"),
30576 getFontFamily("Layout", "Header", "NavigationFont"),
30577 getFontFamily("Layout", "MobileNavigation", "Font"),
30578 getFontFamily("ProductList", "Facets", "HeaderFont"),
30579 getFontFamily("ProductPage", "PriceFontDesign"),
30580 getFontFamily("Ecommerce", "SaleSticker", "Font"),
30581 getFontFamily("Ecommerce", "NewSticker", "Font"),
30582 getFontFamily("Ecommerce", "CustomSticker", "Font")
30583 };
30584
30585 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
30586 var googleAPIKey = areaInfo.GoogleMapsAPIKey;
30587 var user = User.GetCurrentExtranetUser();
30588 bool isB2B = user.IsB2b();
30589 bool isB2C = user.IsB2c();
30590 var DesignFolder = Pageview.Layout.Design.Name;
30591 bool useFontAwesomePro = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetBoolean("UseFontAwesomePro");
30592 string fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomeFree/css/fontawesome-all.min.css";
30593
30594 string cssMapPath = "/Files/Templates/Designs/" + DesignFolder + "/dist/app.bundle.css";
30595 var cssStyleFileInfo = new System.IO.FileInfo(Dynamicweb.Core.SystemInformation.MapPath(cssMapPath));
30596
30597 string autoCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/rapido/wizaris_" + Model.Area.ID.ToString() + ".min.css?ticks=" + Model.Area.UpdatedDate.Ticks;
30598 string wizarisCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/Dotfusion/app.css?ticks=" + Model.Area.UpdatedDate.Ticks;
30599 // string ApplicationCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks;
30600 string ApplicationDeferCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/defer.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks;
30601
30602 if (useFontAwesomePro)
30603 {
30604 fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomePro/css/fontawesome-all.min.css";
30605 }
30606
30607
30608 #line default
30609 #line hidden
30610 WriteLiteral("\r\n\r\n");
30611
30612
30613 #line 1400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30614
30615 Block master = new Block()
30616 {
30617 Id = "Master",
30618 BlocksList = new List<Block> {
30619 new Block {
30620 Id = "MasterTopSnippets",
30621 SortId = 10
30622 },
30623 new Block {
30624 Id = "MasterMain",
30625 SortId = 20,
30626 Template = RenderMain(),
30627 SkipRenderBlocksList = true,
30628 BlocksList = new List<Block> {
30629 // new Block {
30630 // Id = "MasterHeaderTop",
30631 // SortId = 1,
30632 // Template = RenderMasterTop(),
30633 // SkipRenderBlocksList = true
30634 // },
30635 new Block {
30636 Id = "MasterHeader",
30637 SortId = 10,
30638 Template = RenderMasterHeader(),
30639 SkipRenderBlocksList = true
30640 },
30641 new Block {
30642 Id = "MasterPageContent",
30643 SortId = 20,
30644 Template = RenderPageContent()
30645 }
30646 }
30647 },
30648 new Block {
30649 Id = "MasterFooter",
30650 SortId = 30
30651 },
30652 new Block {
30653 Id = "MasterReferences",
30654 SortId = 40
30655 },
30656 new Block {
30657 Id = "MasterBottomSnippets",
30658 SortId = 50
30659 }
30660 }
30661 };
30662
30663 masterPage.Add(master);
30664
30665
30666 #line default
30667 #line hidden
30668 WriteLiteral("\r\n\r\n");
30669
30670 WriteLiteral("\r\n");
30671
30672 WriteLiteral("\r\n\r\n");
30673
30674 WriteLiteral("\r\n\r\n");
30675
30676 WriteLiteral("\r\n");
30677
30678 WriteLiteral("\r\n");
30679
30680 WriteLiteral("\r\n\r\n\r\n");
30681
30682 WriteLiteral("\r\n");
30683
30684 WriteLiteral("\r\n");
30685
30686 WriteLiteral("\r\n");
30687
30688 WriteLiteral("\r\n\r\n");
30689
30690 WriteLiteral("\r\n");
30691
30692 WriteLiteral("\r\n");
30693
30694 WriteLiteral("\r\n\r\n");
30695
30696 WriteLiteral("\r\n\r\n");
30697
30698 WriteLiteral("\r\n");
30699
30700 WriteLiteral("\r\n\r\n");
30701
30702 WriteLiteral("\r\n");
30703
30704 WriteLiteral("\r\n");
30705
30706 WriteLiteral("\r\n");
30707
30708 WriteLiteral("\r\n");
30709
30710 WriteLiteral("\r\n");
30711
30712 WriteLiteral("\r\n\r\n");
30713
30714 WriteLiteral("\r\n\r\n");
30715
30716 WriteLiteral("\r\n\r\n");
30717
30718 WriteLiteral("\r\n\r\n");
30719
30720 WriteLiteral("\r\n\r\n");
30721
30722 WriteLiteral("\r\n\r\n");
30723
30724 WriteLiteral("\r\n\r\n");
30725
30726 WriteLiteral("\r\n\r\n");
30727
30728 WriteLiteral("\r\n\r\n");
30729
30730 WriteLiteral("\r\n\r\n");
30731
30732 WriteLiteral("\r\n\r\n");
30733
30734 WriteLiteral("\r\n");
30735
30736 WriteLiteral("\r\n\r\n");
30737
30738 WriteLiteral("\r\n\r\n");
30739
30740 WriteLiteral("\r\n\r\n");
30741
30742 WriteLiteral("\r\n");
30743
30744 WriteLiteral("\r\n");
30745
30746 WriteLiteral("\r\n\r\n");
30747
30748 WriteLiteral("\r\n");
30749
30750 WriteLiteral("\r\n\r\n");
30751
30752 WriteLiteral("\r\n");
30753
30754 WriteLiteral("\r\n\r\n");
30755
30756 WriteLiteral("\r\n");
30757
30758 WriteLiteral("\r\n\r\n");
30759
30760 WriteLiteral("\r\n\r\n");
30761
30762 WriteLiteral("\r\n\r\n");
30763
30764 WriteLiteral("\r\n\r\n");
30765
30766 WriteLiteral("\r\n\r\n");
30767
30768 WriteLiteral("\r\n");
30769
30770 WriteLiteral("\r\n\r\n");
30771
30772 WriteLiteral("\r\n\r\n");
30773
30774 WriteLiteral("\r\n\r\n");
30775
30776 WriteLiteral("\r\n");
30777
30778 WriteLiteral("\r\n\r\n");
30779
30780 WriteLiteral("\r\n\r\n");
30781
30782 WriteLiteral("\r\n\r\n");
30783
30784 WriteLiteral("\r\n");
30785
30786 WriteLiteral("\r\n");
30787
30788 WriteLiteral("\r\n\r\n");
30789
30790 WriteLiteral("\r\n\r\n");
30791
30792 WriteLiteral("\r\n\r\n");
30793
30794 WriteLiteral("\r\n\r\n");
30795
30796 WriteLiteral("\r\n\r\n");
30797
30798 WriteLiteral("\r\n\r\n");
30799
30800 WriteLiteral("\r\n\r\n");
30801
30802 WriteLiteral("\r\n");
30803
30804 WriteLiteral("\r\n\r\n");
30805
30806 WriteLiteral("\r\n\r\n");
30807
30808 WriteLiteral("\r\n");
30809
30810 WriteLiteral("\r\n\r\n");
30811
30812 WriteLiteral("\r\n\r\n");
30813
30814 WriteLiteral("\r\n\r\n");
30815
30816 WriteLiteral("\r\n\r\n");
30817
30818 WriteLiteral("\r\n\r\n");
30819
30820 WriteLiteral("\r\n\r\n");
30821
30822 WriteLiteral("\r\n\r\n");
30823
30824 WriteLiteral("\r\n\r\n");
30825
30826 WriteLiteral("\r\n");
30827
30828 WriteLiteral("\r\n\r\n");
30829
30830 WriteLiteral("\r\n");
30831
30832 WriteLiteral("\r\n");
30833
30834 WriteLiteral("\r\n");
30835
30836 WriteLiteral("\r\n");
30837
30838 WriteLiteral("\r\n\r\n");
30839
30840 WriteLiteral("\r\n");
30841
30842 WriteLiteral("\r\n\r\n");
30843
30844 WriteLiteral("\r\n");
30845
30846 WriteLiteral("\r\n\r\n");
30847
30848 WriteLiteral("\r\n");
30849
30850 WriteLiteral("\r\n");
30851
30852 WriteLiteral("\r\n\r\n");
30853
30854 WriteLiteral("\r\n\r\n");
30855
30856 WriteLiteral("\r\n\r\n");
30857
30858 WriteLiteral("\r\n");
30859
30860 WriteLiteral("\r\n");
30861
30862 WriteLiteral("\r\n");
30863
30864 WriteLiteral("\r\n");
30865
30866 WriteLiteral("\r\n");
30867
30868 WriteLiteral("\r\n");
30869
30870 WriteLiteral("\r\n\r\n");
30871
30872 WriteLiteral("\r\n");
30873
30874 WriteLiteral("\r\n\r\n");
30875
30876 WriteLiteral("\r\n\r\n");
30877
30878 WriteLiteral("\r\n\r\n");
30879
30880 WriteLiteral("\r\n\r\n");
30881
30882 WriteLiteral("\r\n\r\n");
30883
30884 WriteLiteral("\r\n\r\n");
30885
30886 WriteLiteral("\r\n\r\n");
30887
30888 WriteLiteral("\r\n");
30889
30890 WriteLiteral("\r\n\r\n");
30891
30892 WriteLiteral("\r\n");
30893
30894 WriteLiteral("\r\n\r\n");
30895
30896 WriteLiteral("\r\n\r\n");
30897
30898 WriteLiteral("\r\n\r\n");
30899
30900 WriteLiteral("\r\n\r\n");
30901
30902 WriteLiteral("\r\n\r\n");
30903
30904 WriteLiteral("\r\n");
30905
30906 WriteLiteral("\r\n");
30907
30908 WriteLiteral("\r\n\r\n");
30909
30910 WriteLiteral("\r\n\r\n");
30911
30912 WriteLiteral("\r\n\r\n");
30913
30914 WriteLiteral("\r\n");
30915
30916 WriteLiteral("\r\n");
30917
30918 WriteLiteral("\r\n");
30919
30920 WriteLiteral("\r\n\r\n");
30921
30922 WriteLiteral("\r\n");
30923
30924 WriteLiteral("\r\n\r\n");
30925
30926 WriteLiteral("\r\n");
30927
30928 WriteLiteral("\r\n\r\n");
30929
30930 WriteLiteral("\r\n");
30931
30932 WriteLiteral("\r\n\r\n");
30933
30934 WriteLiteral("\r\n");
30935
30936 WriteLiteral("\r\n");
30937
30938 WriteLiteral("\r\n");
30939
30940 WriteLiteral("\r\n");
30941
30942 WriteLiteral("\r\n\r\n");
30943
30944 WriteLiteral("\r\n\r\n");
30945
30946 WriteLiteral("\r\n\r\n");
30947
30948 WriteLiteral("\r\n");
30949
30950 WriteLiteral("\r\n\r\n");
30951
30952 WriteLiteral("\r\n");
30953
30954 WriteLiteral("\r\n");
30955
30956 WriteLiteral("\r\n\r\n");
30957
30958 WriteLiteral("\r\n\r\n\r\n");
30959
30960 WriteLiteral("\r\n\r\n");
30961
30962 WriteLiteral("\r\n");
30963
30964 WriteLiteral("\r\n");
30965
30966 WriteLiteral("\r\n");
30967
30968
30969 #line 4818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
30970 if (File.Exists(HttpContext.Current.Server.MapPath("/Components/Custom/Custom__Components.cshtml")))
30971 {
30972
30973
30974 #line default
30975 #line hidden
30976 WriteLiteral(" ");
30977
30978 WriteLiteral("\r\n");
30979
30980 WriteLiteral("\r\n");
30981
30982 WriteLiteral(" \r\n");
30983
30984 WriteLiteral("\r\n");
30985
30986 WriteLiteral("\r\n");
30987
30988 WriteLiteral("\r\n");
30989
30990 WriteLiteral("\r\n\r\n");
30991
30992 WriteLiteral(" \r\n");
30993
30994 WriteLiteral(" ");
30995
30996 WriteLiteral("\r\n");
30997
30998
30999 #line 5062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31000 }
31001
31002
31003
31004 #line default
31005 #line hidden
31006
31007 #line 5064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31008
31009
31010
31011 #line default
31012 #line hidden
31013 WriteLiteral("\r\n\r\n");
31014
31015
31016 #line 5074 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31017
31018 BlocksPage topSnippetsBlocksPage = BlocksPage.GetBlockPage("Master");
31019
31020 Block tagManager = new Block()
31021 {
31022 Id = "TagManager",
31023 SortId = 1,
31024 Template = RenderGoogleTagManager()
31025 };
31026
31027 Block facebookPixel = new Block()
31028 {
31029 Id = "FacebookPixel",
31030 SortId = 2,
31031 Template = RenderFacebookPixel()
31032 };
31033
31034 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, tagManager);
31035 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, facebookPixel);
31036
31037
31038 #line default
31039 #line hidden
31040 WriteLiteral("\r\n\r\n");
31041
31042 WriteLiteral("\r\n");
31043
31044 WriteLiteral("\r\n\r\n");
31045
31046
31047 #line 5151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31048
31049 BlocksPage loginBlocksPage = BlocksPage.GetBlockPage("Master");
31050
31051 Block loginModal = new Block()
31052 {
31053 Id = "LoginModal",
31054 SortId = 10,
31055 Template = LoginModal()
31056 };
31057 loginBlocksPage.Add(MasterBlockId.MasterBottomSnippets, loginModal);
31058
31059
31060 #line default
31061 #line hidden
31062 WriteLiteral("\r\n\r\n");
31063
31064 WriteLiteral("\r\n\r\n");
31065
31066 WriteLiteral("\r\n\r\n");
31067
31068 WriteLiteral("\r\n");
31069
31070
31071 #line 5312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31072
31073 bool mobileOnlyPreview = Model.Area.Item.GetItem("Ecommerce").GetBoolean("mobileOnlyPreviewForAnonymous") && Model.CurrentUser.ID == 0;
31074 var mobileTopLayout = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetString("Design")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
31075 bool mobileHideSearch = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSearch");
31076 bool mobileHideCart = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideCart") || mobileOnlyPreview;
31077
31078 // Block mobileHeader = new Block()
31079 // {
31080 // Id = "MobileTop",
31081 // SortId = 10,
31082 // Template = RenderMobileTop(),
31083 // SkipRenderBlocksList = true
31084 // };
31085 // mobileHeaderBlocksPage.Add("MasterReferences", mobileHeader);
31086
31087 // Block mobileContactContainer = new Block()
31088 // {
31089 // Id = "MobileContactContainer",
31090 // SortId = 90,
31091 // Template = RenderMobileContactContainer(),
31092 // SkipRenderBlocksList = true
31093 // };
31094 //mobileHeaderBlocksPage.Add("MasterReferences", mobileContactContainer);
31095
31096 // Block mobileHeaderNavigation = new Block()
31097 // {
31098 // Id = "MobileHeaderNavigation",
31099 // SortId = 10,
31100 // Template = RenderMobileHeaderNavigation(),
31101 // SkipRenderBlocksList = true,
31102 // Design = new Design
31103 // {
31104 // CssClass = "nav--primary M"
31105 // },
31106 // // BlocksList = new List<Block> {
31107 // // new Block {
31108 // // Id = "MobileHeaderNavigationTrigger",
31109 // // SortId = 10,
31110 // // Template = RenderMobileHeaderNavigationTrigger()
31111 // // }
31112 // // }
31113 // };
31114 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderNavigation);
31115
31116 // Block mobileHeaderLogo = new Block()
31117 // {
31118 // Id = "MobileHeaderLogo",
31119 // SortId = 20,
31120 // Template = RenderMobileHeaderLogo(),
31121 // SkipRenderBlocksList = true
31122 // };
31123 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderLogo);
31124
31125 // Block mobileHeaderActions = new Block()
31126 // {
31127 // Id = "MobileHeaderActions",
31128 // SortId = 30,
31129 // Template = RenderMobileTopActions(),
31130 // SkipRenderBlocksList = true
31131 // };
31132 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderActions);
31133
31134 // if (mobileHideSearch == false)
31135 // {
31136 // Block mobileHeaderSearch = new Block
31137 // {
31138 // Id = "MobileHeaderSearch",
31139 // SortId = 10
31140 // };
31141 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderSearch);
31142 // }
31143
31144 // Block mobileHeaderMiniCart;
31145
31146 // if (!mobileHideCart)
31147 // {
31148 // mobileHeaderMiniCart = new Block
31149 // {
31150 // Id = "MobileHeaderMiniCart",
31151 // SortId = 20,
31152 // Template = RenderMobileMiniCart()
31153 // };
31154
31155 Block miniCartCounterScriptTemplatev2 = new Block
31156 {
31157 Id = "MiniCartCounterScriptTemplate",
31158 Template = RenderMiniCartCounterContentRefactored()
31159 };
31160 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", miniCartCounterScriptTemplatev2);
31161 //}
31162 // else
31163 // {
31164 // mobileHeaderMiniCart = new Block
31165 // {
31166 // Id = "MobileHeaderMiniCart",
31167 // SortId = 20
31168 // };
31169 // }
31170
31171 // user
31172 // Block mobileHeaderUser = new Block
31173 // {
31174 // Id = "MobileHeaderUser",
31175 // SortId = 10,
31176 // Template = RenderMobileUser()
31177 // };
31178 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderUser);
31179 // end user
31180
31181
31182 // if (!mobileHideSearch)
31183 // {
31184 // Block mobileHamburger = new Block
31185 // {
31186 // Id = "MobileHamburger",
31187 // SortId = 40,
31188 // Template = RenderMobileHamburger()
31189 // };
31190 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHamburger);
31191 // }
31192 //
31193 //
31194 // if (!mobileHideSearch)
31195 // {
31196 // Block mobileBottomSearch = new Block
31197 // {
31198 // Id = "MobileBottomSearch",
31199 // SortId = 50,
31200 // Template = RenderMobileSearch()
31201 // };
31202 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileBottomSearch);
31203 // }
31204
31205
31206
31207
31208 // if (!mobileHideSearch)
31209 // {
31210 // Block mobileHeaderSearchBar = new Block()
31211 // {
31212 // Id = "MobileHeaderSearchBar",
31213 // SortId = 30,
31214 // Template = RenderMobileTopSearchBar(),
31215 // Design = new Design
31216 // {
31217 // CssClass = "nav--wrapper SC"
31218 // }
31219 // };
31220 // mobileHeaderBlocksPage.Add(MasterBlockId.MasterHeader, mobileHeaderSearchBar);
31221 // }
31222
31223 // switch (mobileTopLayout)
31224 // {
31225 // case "nav-left":
31226 // mobileHeaderNavigation.SortId = 10;
31227 // mobileHeaderLogo.SortId = 20;
31228 // mobileHeaderActions.SortId = 30;
31229 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart);
31230 // break;
31231 // case "nav-right":
31232 // mobileHeaderLogo.SortId = 10;
31233 // mobileHeaderActions.SortId = 20;
31234 // mobileHeaderNavigation.SortId = 30;
31235 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart);
31236 // break;
31237 // case "nav-search-left":
31238 // mobileHeaderNavigation.SortId = 10;
31239 // mobileHeaderLogo.SortId = 20;
31240 // mobileHeaderActions.SortId = 30;
31241 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart);
31242 // break;
31243 // case "search-left":
31244 // mobileHeaderActions.SortId = 10;
31245 // mobileHeaderLogo.SortId = 20;
31246 // mobileHeaderNavigation.SortId = 30;
31247 // mobileHeaderMiniCart.SortId = 0;
31248 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart);
31249 // break;
31250 // }
31251 //
31252 // if (!mobileOnlyPreview)
31253 // {
31254 // BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", new Block {
31255 // Id = "CartInitialization",
31256 // Template = RenderMobileCartInitialization()
31257 // });
31258 // }
31259
31260
31261 #line default
31262 #line hidden
31263 WriteLiteral("\r\n\r\n");
31264
31265 WriteLiteral("\r\n");
31266
31267 WriteLiteral("\r\n");
31268
31269 WriteLiteral("\r\n");
31270
31271 WriteLiteral("\r\n");
31272
31273 WriteLiteral("\r\n");
31274
31275 WriteLiteral("\r\n");
31276
31277 WriteLiteral("\r\n\r\n");
31278
31279 WriteLiteral("\r\n");
31280
31281 WriteLiteral("\r\n");
31282
31283 WriteLiteral("\r\n");
31284
31285 WriteLiteral("\r\n");
31286
31287 WriteLiteral("\r\n");
31288
31289 WriteLiteral("\r\n\r\n");
31290
31291 WriteLiteral("\r\n");
31292
31293 WriteLiteral("\r\n");
31294
31295 WriteLiteral("\r\n\r\n\r\n\r\n");
31296
31297 WriteLiteral("\r\n\r\n");
31298
31299 WriteLiteral("\r\n");
31300
31301
31302 #line 5899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31303
31304 bool mobileNavigationItemsHideSignIn = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSignIn");
31305 bool mobileHideCreateAccountLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideCreateAccount");
31306 bool mobileHideMyProfileLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideProfile");
31307 bool mobileHideMyOrdersLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideOrders");
31308 bool mobileHideMySavedCardsLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideSavedCards");
31309 bool mobileHideMyFavoritesLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideFavorites");
31310
31311 Block mobileNavigation = new Block()
31312 {
31313 Id = "MobileNavigation",
31314 SortId = 10,
31315 Template = MobileNavigation(),
31316 SkipRenderBlocksList = true
31317 };
31318 mobileNavigationBlocksPage.Add("MasterReferences", mobileNavigation);
31319
31320 // if (Model.CurrentUser.ID > 0 && !mobileHideMyProfileLink)
31321 // {
31322 // Block mobileNavigationSignIn = new Block
31323 // {
31324 // Id = "MobileNavigationSignIn",
31325 // SortId = 10,
31326 // Template = RenderMobileNavigationSignIn()
31327 // };
31328 // mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationSignIn);
31329 // }
31330
31331 Block mobileNavigationMenu = new Block
31332 {
31333 Id = "MobileNavigationMenu",
31334 SortId = 20,
31335 Template = RenderMobileNavigationMenu()
31336 };
31337 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationMenu);
31338
31339 Block mobileNavigationActions = new Block
31340 {
31341 Id = "MobileNavigationActions",
31342 SortId = 30,
31343 Template = RenderMobileNavigationActions(),
31344 SkipRenderBlocksList = true
31345 };
31346 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationActions);
31347
31348 if (!mobileNavigationItemsHideSignIn)
31349 {
31350 if (Model.CurrentUser.ID <= 0)
31351 {
31352 Block mobileNavigationSignInAction = new Block
31353 {
31354 Id = "MobileNavigationSignInAction",
31355 SortId = 10,
31356 Template = RenderMobileNavigationSignInAction()
31357 };
31358 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignInAction);
31359
31360 if (!mobileHideCreateAccountLink)
31361 {
31362 Block mobileNavigationCreateAccountAction = new Block
31363 {
31364 Id = "MobileNavigationCreateAccountAction",
31365 SortId = 20,
31366 Template = RenderMobileNavigationCreateAccountAction()
31367 };
31368 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationCreateAccountAction);
31369 }
31370 }
31371 else
31372 {
31373 if (!mobileHideMyOrdersLink)
31374 {
31375 Block mobileNavigationOrdersAction = new Block
31376 {
31377 Id = "MobileNavigationOrdersAction",
31378 SortId = 20,
31379 Template = RenderMobileNavigationOrdersAction()
31380 };
31381 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationOrdersAction);
31382 }
31383 if (!mobileHideMyFavoritesLink)
31384 {
31385 Block mobileNavigationFavoritesAction = new Block
31386 {
31387 Id = "MobileNavigationFavoritesAction",
31388 SortId = 30,
31389 Template = RenderMobileNavigationFavoritesAction()
31390 };
31391 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationFavoritesAction);
31392 }
31393 if (!mobileHideMySavedCardsLink)
31394 {
31395 Block mobileNavigationSavedCardsAction = new Block
31396 {
31397 Id = "MobileNavigationFavoritesAction",
31398 SortId = 30,
31399 Template = RenderMobileNavigationSavedCardsAction()
31400 };
31401 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSavedCardsAction);
31402 }
31403
31404 Block mobileNavigationSignOutAction = new Block
31405 {
31406 Id = "MobileNavigationSignOutAction",
31407 SortId = 40,
31408 Template = RenderMobileNavigationSignOutAction()
31409 };
31410 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignOutAction);
31411 }
31412 }
31413
31414 if (Model.Languages.Count > 1)
31415 {
31416 Block mobileNavigationLanguagesAction = new Block
31417 {
31418 Id = "MobileNavigationLanguagesAction",
31419 SortId = 50,
31420 Template = RenderMobileNavigationLanguagesAction()
31421 };
31422 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationLanguagesAction);
31423 }
31424
31425
31426 #line default
31427 #line hidden
31428 WriteLiteral("\r\n\r\n\r\n");
31429
31430 WriteLiteral("\r\n");
31431
31432 WriteLiteral("\r\n");
31433
31434 WriteLiteral("\r\n");
31435
31436 WriteLiteral("\r\n");
31437
31438 WriteLiteral("\r\n");
31439
31440 WriteLiteral("\r\n");
31441
31442 WriteLiteral("\r\n");
31443
31444 WriteLiteral("\r\n");
31445
31446 WriteLiteral("\r\n");
31447
31448 WriteLiteral("\r\n");
31449
31450 WriteLiteral("\r\n");
31451
31452 WriteLiteral("\r\n");
31453
31454 WriteLiteral("\r\n\r\n");
31455
31456
31457 #line 6283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31458
31459 string UserTypeHeader = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
31460 bool isDesignerHeader = UserTypeHeader == "designer";
31461 //var user = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser();
31462 //bool isB2B = user.IsB2b();
31463 //bool isB2C = user.IsB2c();
31464 if(isB2B || Model.SecondaryUsers.Count > 0 || isDesignerHeader)
31465 {
31466 Block headerTop = new Block()
31467 {
31468 Id = "MasterHeaderTop",
31469 SortId = 10,
31470 SkipRenderBlocksList = true,
31471 Template = RenderHeaderTop(),
31472
31473 BlocksList = new List<Block>
31474 {
31475
31476 new Block {
31477 Id = "MasterDesktopToolsText",
31478 SortId = 10,
31479 Template = RenderHeaderContactLinks()
31480 },
31481 new Block {
31482 Id = "MasterDesktopToolsNavigation",
31483 SortId = 20,
31484 Template = RenderHeaderTopNavigation()
31485 },
31486 }
31487
31488
31489 };
31490 headerBlocksPage.Add("MasterHeader", headerTop);
31491 }
31492 Block headerMiddle = new Block
31493 {
31494 Id = "MasterHeaderMiddle",
31495 SortId = 20,
31496 SkipRenderBlocksList = true,
31497 Template = RenderHeaderMiddle(),
31498 BlocksList = new List<Block>
31499 {
31500 new Block {
31501 Id = "MasterHeaderMiddleLeft",
31502 SortId = 10,
31503 Design = {}
31504 },
31505 new Block {
31506 Id = "MasterHeaderMiddleRight",
31507 SortId = 20,
31508 Design = {}
31509 },
31510 }
31511 };
31512 headerBlocksPage.Add("MasterHeader", headerMiddle);
31513
31514 Block headerBottom = new Block
31515 {
31516 Id = "MasterHeaderBottom",
31517 SortId = 20,
31518 SkipRenderBlocksList = true,
31519 Template = RenderHeaderBottom(),
31520 };
31521 headerBlocksPage.Add("MasterHeader", headerBottom);
31522
31523
31524 Block masterDesktopExtra = new Block()
31525 {
31526 Id = "MasterDesktopExtra",
31527 SortId = 20,
31528 Template = RenderDesktopExtra(),
31529 SkipRenderBlocksList = true,
31530 Design = new Design
31531 {
31532 CssClass = "flex-wrap justify-content-end h-100 align-items-center"
31533 }
31534 };
31535 headerBlocksPage.Add("MasterHeaderMiddleRight", masterDesktopExtra);
31536
31537 Block masterDesktopNavigation = new Block()
31538 {
31539 Id = "MasterDesktopNavigation",
31540 SortId = 40,
31541 Template = RenderDesktopNavigation(),
31542 SkipRenderBlocksList = true
31543
31544 };
31545 headerBlocksPage.Add("MasterHeader", masterDesktopNavigation);
31546
31547
31548 #line default
31549 #line hidden
31550 WriteLiteral("\r\n\r\n");
31551
31552 WriteLiteral("\r\n");
31553
31554 WriteLiteral("\r\n");
31555
31556
31557 #line 6381 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31558
31559 Block masterDesktopLogo = new Block
31560 {
31561 Id = "MasterDesktopLogo",
31562 SortId = 10,
31563 Template = RenderDesktopLogo(),
31564 };
31565
31566 BlocksPage.GetBlockPage("Master").Add("MasterHeaderMiddleLeft", masterDesktopLogo);
31567
31568
31569 #line default
31570 #line hidden
31571 WriteLiteral("\r\n\r\n\r\n");
31572
31573 WriteLiteral("\r\n");
31574
31575
31576 #line 6422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31577
31578 Block masterDesktopMenu = new Block
31579 {
31580 Id = "MasterDesktopMenu",
31581 SortId = 10,
31582 Template = RenderDesktopMenu()
31583 };
31584
31585 BlocksPage.GetBlockPage("Master").Add("MasterHeaderBottom", masterDesktopMenu);
31586
31587
31588
31589
31590 #line default
31591 #line hidden
31592 WriteLiteral("\r\n\r\n");
31593
31594 WriteLiteral("\r\n");
31595
31596 WriteLiteral("\r\n");
31597
31598 WriteLiteral("\r\n");
31599
31600 WriteLiteral("\r\n");
31601
31602
31603 #line 6525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31604
31605 Block masterDesktopActionsMenu = new Block
31606 {
31607 Id = "MasterDesktopActionsMenu",
31608 SortId = 20,
31609 Template = RenderDesktopActionsMenu(),
31610 SkipRenderBlocksList = true,
31611 Design = new Design
31612 {
31613 CssClass = "nav--header flex-wrap font-condensed child-ml-1 child-ml-xs-3 align-items-center my-1"
31614 }
31615
31616 };
31617 BlocksPage.GetBlockPage("Master").Add("MasterDesktopExtra", masterDesktopActionsMenu);
31618
31619
31620 #line default
31621 #line hidden
31622 WriteLiteral("\r\n\r\n");
31623
31624
31625 #line 6547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31626
31627
31628 #line default
31629 #line hidden
31630 WriteLiteral("\r\n\r\n");
31631
31632
31633 #line 6556 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31634
31635 Block masterDesktopActionsMenuLanguageSelector = new Block
31636 {
31637 Id = "MasterHeaderLanguageSelector",
31638 SortId = 80,
31639 Template = RenderLanguageSelector()
31640 };
31641
31642 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuLanguageSelector);
31643
31644
31645 #line default
31646 #line hidden
31647 WriteLiteral("\r\n\r\n");
31648
31649 WriteLiteral("\r\n");
31650
31651
31652 #line 6684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31653
31654 Block masterDesktopActionsMenuSignIn = new Block
31655 {
31656 Id = "MasterDesktopActionsMenuSignIn",
31657 SortId = 20,
31658 Template = RenderSignIn()
31659 };
31660
31661 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuSignIn);
31662
31663
31664
31665 Block masterDesktopActionsMenuAgentInfo = new Block
31666 {
31667 Id = "MasterDesktopActionsMenuAgentInfo",
31668 SortId = 1,
31669 Template = RenderAgentInfo()
31670 };
31671
31672 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuAgentInfo);
31673
31674 Block masterMobileNavigationTrigger = new Block
31675 {
31676 Id = "MobileNavigationTrigger",
31677 SortId = 70,
31678 Template = MobileNavigationTrigger()
31679 };
31680
31681 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterMobileNavigationTrigger);
31682
31683
31684
31685 #line default
31686 #line hidden
31687 WriteLiteral("\r\n");
31688
31689 WriteLiteral("\r\n");
31690
31691 WriteLiteral("\r\n\r\n");
31692
31693 WriteLiteral("\r\n\r\n\r\n");
31694
31695 WriteLiteral("\r\n");
31696
31697 WriteLiteral("\r\n");
31698
31699
31700 #line 6934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31701
31702 Block masterDesktopActionsMenuFavorites = new Block
31703 {
31704 Id = "MasterHeaderFavorites",
31705 SortId = 40,
31706 Template = RenderHeaderFavorites()
31707 };
31708
31709 if (!areaInfo.HideMyFavorites)
31710 {
31711 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuFavorites);
31712 }
31713
31714
31715 #line default
31716 #line hidden
31717 WriteLiteral("\r\n\r\n");
31718
31719 WriteLiteral("\r\n");
31720
31721 WriteLiteral("\r\n");
31722
31723
31724 #line 6997 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31725
31726
31727 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null;
31728 bool showMyCart = true;
31729 string userType = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value.ToString() : "";
31730 string DWUserType = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
31731 bool isDesigner = DWUserType == "designer";
31732
31733 switch (userType)
31734 {
31735 case "Type 1":
31736 //showMyCart = true;
31737 break;
31738 case "Type 6":
31739 showMyCart = true;
31740 break;
31741 case "Type 8":
31742 //showMyCart = true;
31743 break;
31744 case "Type 9":
31745 showMyCart = false;
31746 break;
31747 default:
31748 showMyCart = true;
31749 break;
31750 }
31751 if (!onlyPreview && !areaInfo.HideCart && showMyCart && !isDesigner)
31752 {
31753 Block minicartCounter = new Block
31754 {
31755 Id = "MiniCartHeaderTrigger",
31756 Template = RenderMiniCartHeaderTrigger(),
31757 SortId = 50,
31758 };
31759 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", minicartCounter);
31760
31761 }
31762
31763
31764 #line default
31765 #line hidden
31766 WriteLiteral("\r\n\r\n");
31767
31768 WriteLiteral("\r\n\r\n\r\n\r\n \r\n");
31769
31770
31771 #line 7083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31772
31773 Block masterDesktopActionsMenuDownloadCart = new Block
31774 {
31775 Id = "MasterDesktopActionsMenuDownloadCart",
31776 SortId = 35,
31777 Template = RenderDownloadCart()
31778 };
31779
31780 if (areaInfo.ShowDownloadCartLink && user != null)
31781 {
31782 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuDownloadCart);
31783 }
31784
31785
31786 #line default
31787 #line hidden
31788 WriteLiteral("\r\n\r\n");
31789
31790 WriteLiteral("\r\n");
31791
31792
31793 #line 7142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31794
31795 Block masterSearchBar = new Block
31796 {
31797 Id = "MasterSearchBar",
31798 SortId = 10,
31799 Template = RenderSearch("bar"),
31800 Design = new Design{}
31801 };
31802
31803 Block masterSearchAction = new Block
31804 {
31805 Id = "MasterDesktopActionsMenuSearch",
31806 SortId = 10,
31807 Template = RenderSearch()
31808 };
31809
31810 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", masterSearchBar);
31811 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterSearchAction);
31812
31813
31814
31815 Block masterHeaderSearchIcon = new Block
31816 {
31817 Id = "MobileNavigationTrigger",
31818 SortId = 10,
31819 Template = RenderHeaderSearchIcon()
31820 };
31821
31822 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderSearchIcon);
31823
31824
31825
31826 #line default
31827 #line hidden
31828 WriteLiteral("\r\n\r\n\r\n\r\n");
31829
31830 WriteLiteral("\r\n");
31831
31832 WriteLiteral("\r\n");
31833
31834 WriteLiteral("\r\n");
31835
31836 WriteLiteral("\r\n\r\n");
31837
31838
31839 #line 7309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31840
31841 //var user = User.GetCurrentExtranetUser();
31842
31843 if(user != null)
31844 {
31845 Block masterHeaderMendolaClub = new Block
31846 {
31847 Id = "MobileNavigationTrigger",
31848 SortId = 1,
31849 Template = RenderHeaderMendolaClub(user)
31850 };
31851
31852 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderMendolaClub);
31853 }
31854
31855
31856
31857 #line default
31858 #line hidden
31859 WriteLiteral("\r\n\r\n");
31860
31861
31862 #line 7367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31863 if (File.Exists(HttpContext.Current.Server.MapPath("/Files/Templates/Designs/"+DesignFolder+"/MasterBlocks/HeaderBlocks/Custom__Blocks.cshtml")))
31864 {
31865
31866
31867 #line default
31868 #line hidden
31869 WriteLiteral(" ");
31870
31871 WriteLiteral("\r\n");
31872
31873
31874 #line 7376 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31875
31876 Block NavigationMegaMenu = new Block
31877 {
31878 Id = "NavigationMegaMenu",
31879 SortId = 90,
31880 Template = RenderNavigationMegaMenu(),
31881 };
31882
31883 BlocksPage.GetBlockPage("Master").Add("MasterHeader", NavigationMegaMenu);
31884
31885
31886 #line default
31887 #line hidden
31888 WriteLiteral("\r\n\r\n");
31889
31890 WriteLiteral("\r\n");
31891
31892
31893 #line 7731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31894 }
31895
31896
31897 #line default
31898 #line hidden
31899 WriteLiteral("\r\n");
31900
31901 WriteLiteral("\r\n");
31902
31903 WriteLiteral("\r\n");
31904
31905 WriteLiteral("\r\n");
31906
31907 WriteLiteral("\r\n");
31908
31909 WriteLiteral("\r\n");
31910
31911 WriteLiteral("\r\n");
31912
31913 WriteLiteral("\r\n");
31914
31915
31916 #line 7864 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31917
31918 Block impersonationBar = new Block
31919 {
31920 Id = "ImpersonationBar",
31921 SortId = 1,
31922 Template = RenderImpersonationBar(),
31923 Design = new Design{
31924 CssClass = "hidden block-sm w-100 w-sm-unset"
31925 }
31926
31927 };
31928
31929 Block impersonationBarMobile = new Block
31930 {
31931 Id = "ImpersonationBarMobile",
31932 SortId = 1,
31933 Template = RenderImpersonationBar(),
31934 Design = new Design{
31935 CssClass = "hidden-sm w-100 impersonation-mobile"
31936 }
31937
31938 };
31939
31940 if (user != null && Model.SecondaryUsers.Count > 0)
31941
31942 {
31943 BlocksPage.GetBlockPage("Master").Add("MasterHeaderTop", impersonationBar);
31944 BlocksPage.GetBlockPage("Master").Add("MasterHeader", impersonationBarMobile);
31945 }
31946
31947
31948 #line default
31949 #line hidden
31950 WriteLiteral("\r\n\r\n");
31951
31952 WriteLiteral("\r\n\r\n");
31953
31954
31955 #line 7952 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31956
31957 //Already defined in Master
31958 //var DesignFolder = Pageview.Layout.Design.Name;
31959
31960
31961 #line default
31962 #line hidden
31963 WriteLiteral("\r\n\r\n");
31964
31965
31966 #line 7957 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
31967
31968 BlocksPage miniCartBlocksPage = BlocksPage.GetBlockPage("Master");
31969
31970 Block orderLines = new Block
31971 {
31972 Id = "MiniCartOrderLines",
31973 SkipRenderBlocksList = true,
31974
31975 BlocksList = new List<Block>
31976 {
31977 new Block {
31978 Id = "MiniCartOrderLinesList",
31979 SortId = 20,
31980 Design = new Design
31981 {
31982 CssClass = "minicart__orderlines"
31983 },
31984 Template = RenderMiniCartOrderLinesList()
31985 }
31986 }
31987 };
31988
31989 Block orderlinesScriptTemplates = new Block
31990 {
31991 Id = "OrderlinesScriptTemplates"
31992 };
31993
31994 if (areaInfo.OrderlinesView == "table")
31995 {
31996 orderLines.Template = RenderMiniCartOrderLinesTable();
31997 orderLines.BlocksList.Add(
31998 new Block {
31999 Id = "MiniCartOrderlinesTableHeader",
32000 SortId = 10,
32001 Template = RenderMiniCartOrderLinesHeader()
32002 }
32003 );
32004
32005 orderlinesScriptTemplates.Template = RenderMiniCartScriptsTableTemplates();
32006 }
32007 else
32008 {
32009 orderLines.Template = RenderMiniCartOrderLinesBlocks();
32010 orderlinesScriptTemplates.Template = RenderMiniCartScriptsListTemplates();
32011 }
32012
32013 miniCartBlocksPage.Add("MasterBottomSnippets", orderlinesScriptTemplates);
32014
32015 Block miniCartScriptTemplates = new Block()
32016 {
32017 Id = "MasterMiniCartTemplates",
32018 SortId = 1,
32019 Template = RenderMiniCartScriptTemplates(),
32020 SkipRenderBlocksList = true,
32021 BlocksList = new List<Block>
32022 {
32023 orderLines,
32024 new Block {
32025 Id = "MiniCartFooter",
32026 Template = RenderMiniCartFooter(),
32027 SortId = 50,
32028 SkipRenderBlocksList = true,
32029 BlocksList = new List<Block>
32030 {
32031 new Block {
32032 Id = "MiniCartFees",
32033 Template = RenderMiniCartFees(),
32034 SortId = 30
32035 },
32036 //new Block {
32037 //Id = "MiniCartPoints",
32038 //Template = RenderMiniCartPoints(),
32039 //SortId = 40
32040 //},
32041 new Block {
32042 Id = "MiniCartTotal",
32043 Template = RenderMiniCartTotal(),
32044 SortId = 50
32045 },
32046 new Block {
32047 Id = "MiniCartActions",
32048 Template = RenderMiniCartActions(),
32049 SortId = 60
32050 }
32051 }
32052 }
32053 }
32054 };
32055
32056 miniCartBlocksPage.Add("MasterBottomSnippets", miniCartScriptTemplates);
32057
32058 Block MiniCartPanel = new Block
32059 {
32060 Id = "MiniCartPanel",
32061 SkipRenderBlocksList = true,
32062 Template = RenderMiniCartPanelDesign(),
32063 };
32064
32065 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets",MiniCartPanel);
32066
32067
32068
32069 #line default
32070 #line hidden
32071 WriteLiteral("\r\n\r\n");
32072
32073 WriteLiteral("\r\n");
32074
32075 WriteLiteral("\r\n");
32076
32077 WriteLiteral("\r\n");
32078
32079 WriteLiteral("\r\n");
32080
32081 WriteLiteral("\r\n");
32082
32083 WriteLiteral("\r\n");
32084
32085 WriteLiteral("\r\n");
32086
32087 WriteLiteral("\r\n");
32088
32089 WriteLiteral("\r\n");
32090
32091 WriteLiteral("\r\n");
32092
32093 WriteLiteral("\r\n");
32094
32095 WriteLiteral("\r\n");
32096
32097 WriteLiteral("\r\n\r\n");
32098
32099 WriteLiteral("\r\n");
32100
32101
32102 #line 8319 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32103
32104 if (!areaInfo.OnlyPreviewForAnonymous && !string.IsNullOrEmpty(areaInfo.AddToCartNotificationType)) {
32105 if (areaInfo.AddToCartNotificationType == "modal")
32106 {
32107 Block addToCartNotificationModal = new Block
32108 {
32109 Id = "AddToCartNotificationModal",
32110 Template = RenderAddToCartNotificationModal()
32111 };
32112
32113 Block addToCartNotificationScript = new Block
32114 {
32115 Id = "AddToCartNotificationScript",
32116 Template = RenderAddToCartNotificationModalScript()
32117 };
32118 BlocksPage.GetBlockPage("Master").Add("MasterTopSnippets", addToCartNotificationModal);
32119 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript);
32120 }
32121 else if (areaInfo.AddToCartNotificationType == "toggle" && !areaInfo.AddToCartHideCartIcon && Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet")
32122 {
32123 Block addToCartNotificationScript = new Block
32124 {
32125 Id = "AddToCartNotificationScript",
32126 Template = RenderAddToCartNotificationToggleScript()
32127 };
32128 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript);
32129 }
32130 }
32131
32132
32133 #line default
32134 #line hidden
32135 WriteLiteral("\r\n\r\n");
32136
32137 WriteLiteral("\r\n");
32138
32139 WriteLiteral("\r\n");
32140
32141 WriteLiteral("\r\n\r\n");
32142
32143 WriteLiteral("\r\n");
32144
32145
32146 #line 8420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32147
32148
32149
32150 Block masterFooterContent = new Block()
32151 {
32152 Id = "MasterFooterContent",
32153 SortId = 10,
32154 Template = RenderFooter(areaInfo),
32155 SkipRenderBlocksList = true
32156 };
32157 footerBlocksPage.Add(MasterBlockId.MasterFooter, masterFooterContent);
32158
32159 Block masterFooter1 = new Block()
32160 {
32161 Id = "MasterFooter1",
32162 SortId = 10,
32163 Design = new Design
32164 {
32165 CssClass = "c0 col-md-8 grid-1 col-lg-4 grid-md-12 space-between align-items-center mb-2 mb-md-0"
32166 }
32167 };
32168 footerBlocksPage.Add("MasterFooterContent", masterFooter1);
32169
32170 Block masterFooter2 = new Block()
32171 {
32172 Id = "MasterFooter2",
32173 SortId = 20,
32174 Design = new Design
32175 {
32176 CssClass = "c1 col-md-2 col-lg-1"
32177 }
32178 };
32179 footerBlocksPage.Add("MasterFooterContent", masterFooter2);
32180
32181 Block masterFooter3 = new Block()
32182 {
32183 Id = "MasterFooter3",
32184 SortId = 30,
32185 Design = new Design
32186 {
32187 CssClass = "c2 col-md-2 col-lg-1"
32188 }
32189 };
32190 footerBlocksPage.Add("MasterFooterContent", masterFooter3);
32191
32192 Block masterFooter4 = new Block()
32193 {
32194 Id = "MasterFooter4",
32195 SortId = 40,
32196 Design = new Design{
32197
32198 CssClass = "c3 child-mb-2 child-mb-xs-0 col-md-2 col-lg-1"
32199 }
32200 };
32201 footerBlocksPage.Add("MasterFooterContent", masterFooter4);
32202
32203 Block masterFooter5 = new Block()
32204 {
32205 Id = "MasterFooter5",
32206 SortId = 50,
32207 Design = new Design
32208 {
32209 CssClass = "c4 col-md-2 col-lg-1"
32210 }
32211 };
32212 footerBlocksPage.Add("MasterFooterContent", masterFooter5);
32213
32214 Block masterFooter6 = new Block()
32215 {
32216 Id = "MasterFooter6",
32217 SortId = 60,
32218 Design = new Design
32219 {
32220 CssClass = "c5 col-md-8 col-lg-4 footer__copyright border-top border-muted py-3 mt-3"
32221 }
32222 };
32223 footerBlocksPage.Add("MasterFooterContent", masterFooter6);
32224
32225 Block masterFooter7 = new Block()
32226 {
32227 Id = "MasterFooter7",
32228 SortId = 70,
32229 Design = new Design{
32230
32231 CssClass = "c6"
32232 }
32233 };
32234 footerBlocksPage.Add("MasterFooterContent", masterFooter7);
32235
32236 Block masterFooter8 = new Block()
32237 {
32238 Id = "MasterFooter8",
32239 SortId = 80,
32240 Design = new Design
32241 {
32242 CssClass = "c7"
32243 }
32244 };
32245 footerBlocksPage.Add("MasterFooterContent", masterFooter8);
32246
32247
32248 //content Blocks
32249 Block masterFooterLogo = new Block
32250 {
32251 Id = "FooterLogo",
32252 SortId = 10,
32253 Template = RenderFooterLogo(areaInfo),
32254 Design = new Design{
32255 CssClass = "footer__logo col-md-12 col-lg-3"
32256 }
32257 };
32258 Block masterFooterBeInspired = new Block
32259 {
32260 Id = "FooterBeInspired",
32261 SortId = 10,
32262 Template = RenderBeInspired(),
32263 Design = {}
32264 };
32265 Block masterFooterGetConnected = new Block
32266 {
32267 Id = "FooterGetConnected",
32268 SortId = 10,
32269 Template = RenderGetConnected(),
32270 Design = {}
32271 };
32272
32273
32274 Block masterFooterAddress = new Block
32275 {
32276 Id = "FooterAddress",
32277 SortId = 10,
32278 Template = RenderFooterAddress(areaInfo),
32279 Design = new Design{
32280 CssClass = "footer__address"
32281 }
32282 };
32283
32284 Block masterFooterColumnOne = new Block
32285 {
32286 Id = "MasterFooterColumnOne",
32287 SortId = 50,
32288 Template = RenderFooterColumn(areaInfo.FooterColumnOneHeader, areaInfo.FooterColumnOneContent, areaInfo.FooterColumnOneLinks, "footer__column-one")
32289 };
32290
32291 Block masterFooterColumnTwo = new Block
32292 {
32293 Id = "MasterFooterColumnTwo",
32294 SortId = 20,
32295 Template = RenderFooterColumn(areaInfo.FooterColumnTwoHeader, areaInfo.FooterColumnTwoContent, areaInfo.FooterColumnTwoLinks, "footer__column-two")
32296 };
32297
32298 Block masterFooterColumnThree = new Block
32299 {
32300 Id = "MasterFooterColumnThree",
32301 SortId = 30,
32302 Template = RenderFooterColumn(areaInfo.FooterColumnThreeHeader, areaInfo.FooterColumnThreeContent, areaInfo.FooterColumnThreeLinks, "footer__column-three")
32303 };
32304
32305 Block masterFooterNewsletterSignUp = new Block
32306 {
32307 Id = "MasterFooterNewsletterSignUp",
32308 SortId = 9,
32309 Template = RenderFooterNewsletterSignUp(areaInfo),
32310 Design = new Design{
32311 CssClass = "footer__newsletter"
32312 }
32313 };
32314
32315 Block masterFooterPartnerShops = new Block
32316 {
32317 Id = "MasterFooterPartnerShops",
32318 SortId = 20,
32319 Template = RenderFooterPartnerShops(),
32320 Design = new Design {
32321 CssClass = "col-md-4 col-lg-3"
32322 }
32323 };
32324
32325 Block masterFooterTopCenterContentB2B = new Block
32326 {
32327 Id = "MasterFooterTopCenterContentB2B",
32328 SortId = 20,
32329 Template = RenderFooterTopCenterContentB2B(),
32330 Design = new Design{
32331 CssClass = "flex-wrap col-md-4 col-lg-3"
32332 }
32333 };
32334
32335 Block masterFooterNewsletter = new Block
32336 {
32337 Id = "masterFooterNewsletter",
32338 SortId = 30,
32339 Template = RenderFooterNewsletter(),
32340 Design = new Design{
32341 CssClass = "flex-wrap col-md-4 col-lg-3"
32342 }
32343 };
32344
32345 Block masterFooterSocialLinks = new Block
32346 {
32347 Id = "MasterFooterSocialLinks",
32348 SortId = 50,
32349 Template = RenderFooterSocialLinks(areaInfo),
32350 Design = new Design{
32351 CssClass = "footer__social col-md-4 col-lg-3"
32352 }
32353 };
32354
32355 Block masterFooterPayments = new Block
32356 {
32357 Id = "MasterFooterPayments",
32358 SortId = 60,
32359 Template = RenderFooterPayments(areaInfo),
32360 Design = new Design{
32361 CssClass = "footer__payments"
32362 }
32363 };
32364
32365 Block masterFooterCopyright = new Block
32366 {
32367 Id = "MasterFooterCopyright",
32368 SortId = 10,
32369 Design ={},
32370 Template = RenderFooterCopyright(areaInfo)
32371 };
32372
32373 Block compareModal = new Block
32374 {
32375 Id = "MasterFooterModalCompare",
32376 SortId = 80,
32377 Template = RenderCompareModule(),
32378 Design = new Design
32379 {
32380 Size = "12",
32381 RenderType = RenderType.Column
32382 },
32383 SkipRenderBlocksList = true
32384 };
32385 footerBlocksPage.Add("MasterFooter", compareModal);
32386
32387
32388 //Begin configuration of blocks
32389 string footerLayout = areaInfo.FooterLayout;
32390
32391 switch (footerLayout)
32392 {
32393 case "1":
32394 masterFooter1.Design.Size = "3";
32395 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
32396 footerBlocksPage.Add("MasterFooter1", masterFooterAddress);
32397 footerBlocksPage.RemoveBlock(masterFooterSocialLinks);
32398 footerBlocksPage.Add("MasterFooter1", masterFooterPayments);
32399
32400 masterFooter2.Design.Size = "3";
32401 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
32402
32403 masterFooter3.Design.Size = "3";
32404 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
32405 //footerBlocksPage.Add("MasterFooter3", masterFooterSocialLinks);
32406
32407 masterFooter4.Design.Size = "3";
32408 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
32409
32410 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright);
32411
32412 footerBlocksPage.RemoveBlock(masterFooter6);
32413 footerBlocksPage.RemoveBlock(masterFooter7);
32414 footerBlocksPage.RemoveBlock(masterFooter8);
32415 break;
32416
32417 case "2":
32418 masterFooter1.Design.Size = "12";
32419 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
32420 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
32421 if (isB2B)
32422 {
32423 footerBlocksPage.Add("MasterFooter1", masterFooterTopCenterContentB2B);
32424 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter);
32425 }
32426 else
32427 {
32428 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops);
32429 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter);
32430 }
32431
32432
32433 masterFooter2.Design.Size = "3";
32434 //footerBlocksPage.Add("MasterFooter2", masterFooterAddress);
32435 //footerBlocksPage.Add("MasterFooter2", masterFooterPayments);
32436 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
32437
32438 masterFooter3.Design.Size = "3";
32439 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
32440
32441 masterFooter4.Design.Size = "3";
32442 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
32443
32444
32445 masterFooter5.Design.Size = "3";
32446 footerBlocksPage.Add("MasterFooter5", masterFooterNewsletterSignUp);
32447
32448
32449 footerBlocksPage.Add("MasterFooter6", masterFooterCopyright);
32450
32451 footerBlocksPage.RemoveBlock(masterFooter7);
32452 footerBlocksPage.RemoveBlock(masterFooter8);
32453 break;
32454 case "3":
32455 masterFooter1.Design.Size = "4";
32456 // footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
32457 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
32458 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops);
32459
32460 masterFooter2.Design.Size = "4";
32461 // footerBlocksPage.Add("MasterFooter2", masterFooterAddress);
32462 // footerBlocksPage.Add("MasterFooter2", masterFooterPayments);
32463 footerBlocksPage.Add("MasterFooter2", masterFooterBeInspired);
32464
32465 masterFooter3.Design.Size = "4";
32466 // footerBlocksPage.Add("MasterFooter3", masterFooterColumnOne);
32467 footerBlocksPage.Add("MasterFooter3", masterFooterGetConnected);
32468
32469 masterFooter4.Design.Size = "12";
32470 // footerBlocksPage.Add("MasterFooter4", masterFooterColumnTwo);
32471 footerBlocksPage.Add("MasterFooter4", masterFooterCopyright);
32472 footerBlocksPage.Add("MasterFooter4", masterFooterColumnOne);
32473
32474 footerBlocksPage.RemoveBlock(masterFooter5);
32475 footerBlocksPage.RemoveBlock(masterFooter6);
32476 footerBlocksPage.RemoveBlock(masterFooter7);
32477 footerBlocksPage.RemoveBlock(masterFooter8);
32478 break;
32479
32480 default:
32481 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
32482 footerBlocksPage.Add("MasterFooter1", masterFooterAddress);
32483 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
32484 footerBlocksPage.Add("MasterFooter1", masterFooterPayments);
32485
32486 masterFooter2.Design.Size = "3";
32487 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
32488
32489 masterFooter3.Design.Size = "3";
32490 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
32491
32492 masterFooter4.Design.Size = "3";
32493 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
32494
32495 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright);
32496 footerBlocksPage.RemoveBlock(masterFooter6);
32497 footerBlocksPage.RemoveBlock(masterFooter7);
32498 footerBlocksPage.RemoveBlock(masterFooter8);
32499 break;
32500 }
32501
32502
32503 #line default
32504 #line hidden
32505 WriteLiteral("\r\n\r\n");
32506
32507 WriteLiteral("\r\n\r\n");
32508
32509 WriteLiteral("\r\n");
32510
32511 WriteLiteral("\r\n");
32512
32513 WriteLiteral("\r\n");
32514
32515 WriteLiteral("\r\n");
32516
32517 WriteLiteral("\r\n");
32518
32519 WriteLiteral("\r\n\r\n");
32520
32521
32522 #line 9087 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32523
32524 BlocksPage referencesBlocksPage = BlocksPage.GetBlockPage("Master");
32525
32526 Block masterScriptReferences = new Block()
32527 {
32528 Id = "MasterScriptReferences",
32529 SortId = 1,
32530 Template = RenderMasterScriptReferences()
32531 };
32532 referencesBlocksPage.Add(MasterBlockId.MasterReferences, masterScriptReferences);
32533
32534
32535 #line default
32536 #line hidden
32537 WriteLiteral("\r\n\r\n");
32538
32539 WriteLiteral("\r\n\r\n");
32540
32541
32542 #line 9114 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32543
32544 BlocksPage searchBlocksPage = BlocksPage.GetBlockPage("Master");
32545 bool isFavoriteList = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("ListID"));
32546
32547 if (!areaInfo.NavigationItemsHideSearch || isFavoriteList)
32548 {
32549 Block masterSearchScriptTemplates = new Block()
32550 {
32551 Id = "MasterSearchScriptTemplates",
32552 SortId = 1,
32553 Template = RenderSearchScriptTemplates()
32554 };
32555
32556 searchBlocksPage.Add(MasterBlockId.MasterBottomSnippets, masterSearchScriptTemplates);
32557 }
32558
32559
32560 #line default
32561 #line hidden
32562 WriteLiteral("\r\n\r\n");
32563
32564 WriteLiteral("\r\n\r\n");
32565
32566 WriteLiteral("\r\n\r\n");
32567
32568
32569 #line 9319 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32570
32571 BlocksPage bottomSnippetsBlocksPage = BlocksPage.GetBlockPage("Master");
32572
32573 Block primaryBottomSnippets = new Block()
32574 {
32575 Id = "MasterJavascriptInitializers",
32576 SortId = 100,
32577 Template = RenderPrimaryBottomSnippets()
32578 };
32579 bottomSnippetsBlocksPage.Add(MasterBlockId.MasterReferences, primaryBottomSnippets);
32580
32581
32582 #line default
32583 #line hidden
32584 WriteLiteral("\r\n\r\n");
32585
32586 WriteLiteral("\r\n\r\n\r\n");
32587
32588 WriteLiteral("\r\n");
32589
32590
32591 #line 9403 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32592
32593 BlocksPage masterBlocksPage = BlocksPage.GetBlockPage("Master");
32594
32595 Block StickersTemplateRefactored = new Block()
32596 {
32597 Id = "StickersTemplateRefactored",
32598 SortId = 100,
32599 Template = RenderStickersTemplateRefactored()
32600 };
32601 masterBlocksPage.Add(MasterBlockId.MasterBottomSnippets, StickersTemplateRefactored);
32602
32603
32604 #line default
32605 #line hidden
32606 WriteLiteral("\r\n\r\n\r\n");
32607
32608 WriteLiteral("\r\n");
32609
32610
32611 #line 9438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32612 if (File.Exists(HttpContext.Current.Server.MapPath("Files/Templates/Designs/@DesignFolder/MasterBlocks/Custom__Blocks.cshtml")))
32613 {
32614
32615
32616 #line default
32617 #line hidden
32618 WriteLiteral(" ");
32619
32620 WriteLiteral("\r\n\r\n");
32621
32622 WriteLiteral("\r\n\r\n\r\n");
32623
32624
32625 #line 9458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32626
32627 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet")
32628 {
32629 Block masterToolsCustom = new Block()
32630 {
32631 Id = "MasterDesktopTools",
32632 SortId = 30,
32633 Template = RenderDesktopToolsCustom(),
32634 SkipRenderBlocksList = true,
32635 BlocksList = new List<Block>
32636 {
32637
32638 new Block {
32639 Id = "MasterDesktopToolsText",
32640 SortId = 10,
32641 Template = RenderDesktopToolsTextCustom()
32642 },
32643 new Block {
32644 Id = "MasterDesktopToolsNavigation",
32645 SortId = 20,
32646 Template = RenderDesktopToolsNavigationCustom()
32647 }
32648 }
32649 };
32650 headerBlocksPage.ReplaceBlock(masterToolsCustom);
32651 }
32652
32653
32654 #line default
32655 #line hidden
32656 WriteLiteral("\r\n\r\n");
32657
32658 WriteLiteral("\r\n");
32659
32660 WriteLiteral("\r\n");
32661
32662 WriteLiteral("\r\n");
32663
32664 WriteLiteral("\r\n");
32665
32666
32667 #line 9572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32668 }
32669
32670
32671 #line default
32672 #line hidden
32673 WriteLiteral("\r\n\r\n");
32674
32675 WriteLiteral("\r\n");
32676
32677
32678 #line 9597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32679
32680 if (areaInfo.AppName != null && areaInfo.AppIcon != null) {
32681 Manifest manifest = new Manifest
32682 {
32683 name = areaInfo.AppName,
32684 short_name = areaInfo.AppShortName != null ? areaInfo.AppShortName : areaInfo.AppName,
32685 start_url = "/",
32686 display = "standalone",
32687 background_color = areaInfo.AppBackgroundColor,
32688 theme_color = areaInfo.AppThemeColor
32689 };
32690
32691 manifest.icons = new List<ManifestIcon> {
32692 new ManifestIcon {
32693 src = "/Admin/Public/GetImage.ashx?width=192&height=192&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
32694 sizes = "192x192",
32695 type = "image/png"
32696 },
32697 new ManifestIcon {
32698 src = "/Admin/Public/GetImage.ashx?width=512&height=512&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
32699 sizes = "512x512",
32700 type = "image/png"
32701 },
32702 new ManifestIcon {
32703 src = "/Admin/Public/GetImage.ashx?width=1024&height=1024&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
32704 sizes = "1024x1024",
32705 type = "image/png"
32706 }
32707 };
32708
32709 string manifestFilePath = HttpContext.Current.Request.MapPath("/Files/Templates/Designs/"+DesignFolder+"/manifest.json");
32710 string manifestJSON = Newtonsoft.Json.JsonConvert.SerializeObject(manifest);
32711 string currentManifest = File.ReadAllText(manifestFilePath);
32712
32713 if (manifestJSON != currentManifest)
32714 {
32715 File.WriteAllText(manifestFilePath, manifestJSON);
32716 }
32717 }
32718
32719
32720 #line default
32721 #line hidden
32722 WriteLiteral("\r\n\r\n\r\n");
32723
32724
32725 #line 9639 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32726
32727 var swatches = new Dynamicweb.Content.Items.ColorSwatchService();
32728 var brandColors = swatches.GetColorSwatch(1);
32729 string brandColorOne = brandColors.Palette["BrandColor1"];
32730 string currentLang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
32731 bool isNavigationStickyMenu = Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet" && Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("StickyTop");
32732 string stickyTop = isNavigationStickyMenu ? "header--sticky" : "";
32733 string generalB2B = isB2B ? "general--b2c" : "";
32734
32735
32736 #line default
32737 #line hidden
32738 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n\r\n<html");
32739
32740 WriteAttribute("lang", Tuple.Create(" lang=\"", 459825), Tuple.Create("\"", 459844)
32741
32742 #line 9651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32743 , Tuple.Create(Tuple.Create("", 459832), Tuple.Create<System.Object, System.Int32>(currentLang
32744
32745 #line default
32746 #line hidden
32747 , 459832), false)
32748 );
32749
32750 WriteLiteral(">\r\n<head>\r\n");
32751
32752
32753 #line 9653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32754
32755
32756 #line default
32757 #line hidden
32758
32759 #line 9653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32760
32761 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false;
32762 if (!debugSpeedTest)
32763 {
32764
32765
32766 #line default
32767 #line hidden
32768 WriteLiteral("\t <!-- Global site tag (gtag.js) - Google Analytics -->\r\n");
32769
32770 WriteLiteral("\t <script defer");
32771
32772 WriteLiteral(" src=\"https://www.googletagmanager.com/gtag/js?id=UA-162570117-1\"");
32773
32774 WriteLiteral("></script>\r\n");
32775
32776 WriteLiteral("\t <script>\r\n window.dataLayer = window.dataLayer || [];\r\n function g" +
32777 "tag(){dataLayer.push(arguments);}\r\n gtag(\'js\', new Date());\r\n gtag(\'co" +
32778 "nfig\', \'UA-162570117-1\');\r\n </script>\r\n");
32779
32780
32781 #line 9665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32782 }
32783
32784
32785 #line default
32786 #line hidden
32787 WriteLiteral(" \r\n\t\r\n\r\n\t<!-- Rapido version 3.1.1 -->\r\n\t<meta");
32788
32789 WriteLiteral(" charset=\"utf-8\"");
32790
32791 WriteLiteral("/>\r\n\t<title>");
32792
32793
32794 #line 9671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32795 Write(areaInfo.AreaTitle);
32796
32797
32798 #line default
32799 #line hidden
32800 WriteLiteral("</title>\r\n\t<meta");
32801
32802 WriteLiteral(" name=\"viewport\"");
32803
32804 WriteLiteral(" content=\"width=device-width, initial-scale=1.0\"");
32805
32806 WriteLiteral(">\r\n\t<meta");
32807
32808 WriteLiteral(" name=\"robots\"");
32809
32810 WriteLiteral(" content=\"index, follow\"");
32811
32812 WriteLiteral(">\r\n\t<meta");
32813
32814 WriteLiteral(" name=\"theme-color\"");
32815
32816 WriteAttribute("content", Tuple.Create(" content=\"", 460613), Tuple.Create("\"", 460646)
32817
32818 #line 9674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32819 , Tuple.Create(Tuple.Create("", 460623), Tuple.Create<System.Object, System.Int32>(areaInfo.AppThemeColor
32820
32821 #line default
32822 #line hidden
32823 , 460623), false)
32824 );
32825
32826 WriteLiteral("/>\r\n\t<meta");
32827
32828 WriteLiteral(" name=\"p:domain_verify\"");
32829
32830 WriteLiteral(" content=\"8bd426b25628ced333803e24b51c0fbb\"");
32831
32832 WriteLiteral("/>\r\n\t<meta");
32833
32834 WriteLiteral(" name=\"facebook-domain-verification\"");
32835
32836 WriteLiteral(" content=\"9jl54wm9h8awx6j6mn3oulemooi7q6\"");
32837
32838 WriteLiteral(" />\r\n");
32839
32840 WriteLiteral("\t");
32841
32842
32843 #line 9677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32844 Write(RenderSnippet("Head"));
32845
32846
32847 #line default
32848 #line hidden
32849 WriteLiteral("\r\n");
32850
32851 WriteLiteral("\t");
32852
32853
32854 #line 9678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32855 Write(Model.MetaTags);
32856
32857
32858 #line default
32859 #line hidden
32860 WriteLiteral("\r\n\r\n\t\r\n\t<!-- Favicon -->\r\n\t<link");
32861
32862 WriteAttribute("href", Tuple.Create(" href=\"", 460888), Tuple.Create("\"", 460916)
32863
32864 #line 9682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32865 , Tuple.Create(Tuple.Create("", 460895), Tuple.Create<System.Object, System.Int32>(areaInfo.LogoFavicon
32866
32867 #line default
32868 #line hidden
32869 , 460895), false)
32870 );
32871
32872 WriteLiteral(" rel=\"icon\"");
32873
32874 WriteLiteral(" type=\"image/png\"");
32875
32876 WriteLiteral(">\r\n\r\n\t");
32877
32878 WriteLiteral("\r\n\r\n\t");
32879
32880 WriteLiteral("\r\n\t<!-- Google fonts -->\r\n");
32881
32882
32883 #line 9688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32884
32885
32886 #line default
32887 #line hidden
32888
32889 #line 9688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32890
32891 var family = string.Join("%7C", fonts.Where(x => !string.IsNullOrEmpty(x)).Distinct().Select(x => string.Format("{0}:100,200,300,400,500,600,700,800,900", x)));
32892
32893
32894 #line default
32895 #line hidden
32896 WriteLiteral("\r\n\t");
32897
32898 WriteLiteral("\r\n ");
32899
32900 WriteLiteral("\r\n <link");
32901
32902 WriteLiteral(" rel=\"preconnect\"");
32903
32904 WriteLiteral(" href=\"https://fonts.gstatic.com\"");
32905
32906 WriteLiteral(">\r\n\t<link");
32907
32908 WriteLiteral(" href=\"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&fa" +
32909 "mily=Raleway:wght@300;400;600&display=swap\"");
32910
32911 WriteLiteral(" rel=\"stylesheet\"");
32912
32913 WriteLiteral(">\r\n\t");
32914
32915 WriteLiteral("\r\n\t");
32916
32917 WriteLiteral("\r\n\r\n\r\n\t");
32918
32919 WriteLiteral("\r\n\t<link");
32920
32921 WriteLiteral(" rel=\"stylesheet\"");
32922
32923 WriteLiteral(" type=\"text/css\"");
32924
32925 WriteAttribute("href", Tuple.Create(" href=\"", 461903), Tuple.Create("\"", 461959)
32926
32927 #line 9700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32928 , Tuple.Create(Tuple.Create("", 461910), Tuple.Create<System.Object, System.Int32>(cssMapPath
32929
32930 #line default
32931 #line hidden
32932 , 461910), false)
32933 , Tuple.Create(Tuple.Create("", 461921), Tuple.Create("?", 461921), true)
32934
32935 #line 9700 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32936 , Tuple.Create(Tuple.Create("", 461922), Tuple.Create<System.Object, System.Int32>(cssStyleFileInfo.LastWriteTime.Ticks
32937
32938 #line default
32939 #line hidden
32940 , 461922), false)
32941 );
32942
32943 WriteLiteral(">\r\n\t");
32944
32945 WriteLiteral("\r\n\t<script");
32946
32947 WriteLiteral(" type=\"module\"");
32948
32949 WriteLiteral(" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js\"");
32950
32951 WriteLiteral(" defer></script>\r\n\r\n\t\r\n\t");
32952
32953 WriteLiteral("\r\n\t");
32954
32955 WriteLiteral("\r\n\t");
32956
32957 WriteLiteral("\r\n\t\r\n\t\r\n");
32958
32959
32960 #line 9710 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32961
32962
32963 #line default
32964 #line hidden
32965
32966 #line 9710 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32967 if (areaInfo.AppName.HasValue())
32968 {
32969
32970
32971 #line default
32972 #line hidden
32973 WriteLiteral("\t\t<link");
32974
32975 WriteLiteral(" rel=\"manifest\"");
32976
32977 WriteAttribute("href", Tuple.Create(" href=\"", 462562), Tuple.Create("\"", 462621)
32978 , Tuple.Create(Tuple.Create("", 462569), Tuple.Create("/Files/Templates/Designs/", 462569), true)
32979
32980 #line 9712 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32981 , Tuple.Create(Tuple.Create("", 462594), Tuple.Create<System.Object, System.Int32>(DesignFolder
32982
32983 #line default
32984 #line hidden
32985 , 462594), false)
32986 , Tuple.Create(Tuple.Create("", 462607), Tuple.Create("/manifest.json", 462607), true)
32987 );
32988
32989 WriteLiteral(">\r\n");
32990
32991
32992 #line 9713 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
32993 PushPromise("/Files/Templates/Designs/@DesignFolder/manifest.json");
32994 }
32995
32996
32997 #line default
32998 #line hidden
32999 WriteLiteral(" ");
33000
33001
33002 #line 9715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33003 if (!debugSpeedTest)
33004 {
33005
33006
33007 #line default
33008 #line hidden
33009 WriteLiteral(" <script");
33010
33011 WriteLiteral(" type=\'text/javascript\'");
33012
33013 WriteLiteral(" src=\'https://platform-api.sharethis.com/js/sharethis.js#property=5fae4d211a075b0" +
33014 "0196b7840&product=custom-share-buttons\'");
33015
33016 WriteLiteral(" async></script>\r\n");
33017
33018
33019 #line 9718 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33020 }
33021
33022
33023 #line default
33024 #line hidden
33025 WriteLiteral("</head>\r\n\r\n<body");
33026
33027 WriteAttribute("class", Tuple.Create(" class=\"", 462924), Tuple.Create("\"", 462954)
33028
33029 #line 9721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33030 , Tuple.Create(Tuple.Create("", 462932), Tuple.Create<System.Object, System.Int32>(stickyTop
33031
33032 #line default
33033 #line hidden
33034 , 462932), false)
33035
33036 #line 9721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33037 , Tuple.Create(Tuple.Create(" ", 462942), Tuple.Create<System.Object, System.Int32>(generalB2B
33038
33039 #line default
33040 #line hidden
33041 , 462943), false)
33042 );
33043
33044 WriteLiteral(" ");
33045
33046
33047 #line 9721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33048 Write(areaInfo.PageBackground);
33049
33050
33051 #line default
33052 #line hidden
33053 WriteLiteral(">\r\n");
33054
33055 WriteLiteral("\r\n");
33056
33057 WriteLiteral("\t");
33058
33059
33060 #line 9723 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33061 Write(RenderBlockList(masterPage.BlocksRoot.BlocksList));
33062
33063
33064 #line default
33065 #line hidden
33066 WriteLiteral("\r\n\r\n\t");
33067
33068 WriteLiteral("\r\n");
33069
33070 WriteLiteral("\r\n");
33071
33072 WriteLiteral("\r\n");
33073
33074 WriteLiteral("\t");
33075
33076
33077 #line 9761 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33078 Write(RenderSnippet("BottomJS"));
33079
33080
33081 #line default
33082 #line hidden
33083 WriteLiteral("\r\n\r\n");
33084
33085
33086 #line 9763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33087
33088
33089 #line default
33090 #line hidden
33091
33092 #line 9763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33093
33094 bool editParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["edit"]) ? true : false;
33095 bool debugParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["jsdebug"]) ? true : false;
33096
33097
33098 #line default
33099 #line hidden
33100 WriteLiteral("\r\n\r\n\t");
33101
33102 WriteLiteral("\r\n");
33103
33104
33105 #line 9769 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33106
33107
33108 #line default
33109 #line hidden
33110
33111 #line 9769 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33112 if (editParameter)
33113 {
33114
33115
33116 #line default
33117 #line hidden
33118 WriteLiteral("\t\t<div");
33119
33120 WriteLiteral(" id=\"config\"");
33121
33122 WriteLiteral(">\r\n\t\t\t<button");
33123
33124 WriteLiteral(" type=\"button\"");
33125
33126 WriteLiteral(" id=\"toggleContainer\"");
33127
33128 WriteLiteral(">Toggle Container</button>\r\n\t\t\t<button");
33129
33130 WriteLiteral(" type=\"button\"");
33131
33132 WriteLiteral(" id=\"toggleLayout\"");
33133
33134 WriteLiteral(">Toggle Layout</button>\r\n\t\t</div>\r\n");
33135
33136 WriteLiteral("\t\t<script>\r\n let headerIndex = 0;\r\n const headerClasses = [" +
33137 "\"header vars container m--LSC--M style-1--1\",\"header vars container m-L-SC--M st" +
33138 "yle-2--1\", \"header vars container LmSC--M style-3--1\", \"header vars container LM" +
33139 "SC style-4--1\", \"header vars container L-M-SC style-5--1\", \"header vars containe" +
33140 "r LSC--M style-6--1\", \"header vars container SC--LM style-7--1\", \"header vars co" +
33141 "ntainer M-L-SC style-8--1\"];\r\n\t\t \r\n document.getElementById(\"toggleL" +
33142 "ayout\").addEventListener(\"click\",e=>{\r\n e.preventDefault();\r\n " +
33143 " if (headerIndex + 1 > headerClasses.length-1) {\r\n h" +
33144 "eaderIndex = 0;\r\n } else {\r\n headerIndex++;\r\n " +
33145 " }\r\n console.log(document.querySelector(\".header\").cl" +
33146 "assList);\r\n document.querySelector(\".header\").classList.value = h" +
33147 "eaderClasses[headerIndex];\r\n })\r\n \r\n document.g" +
33148 "etElementById(\"toggleContainer\").addEventListener(\"click\",e=>{\r\n " +
33149 "e.preventDefault();\r\n if(document.querySelectorAll(\".header.conta" +
33150 "iner\").length===0) {\r\n [...document.querySelectorAll(\".header\")" +
33151 "].forEach(element => {\r\n element.classList.add(\"container\")\r\n" +
33152 " });\r\n [...document.querySelectorAll(\".footer\"" +
33153 ")].forEach(element => {\r\n element.classList.add(\"container\")\r" +
33154 "\n });\r\n [...document.querySelectorAll(\".page\")" +
33155 "].forEach(element => {\r\n element.classList.add(\"container\")\r\n" +
33156 " });\t \r\n } else {\r\n [." +
33157 "..document.querySelectorAll(\".header\")].forEach(element => {\r\n " +
33158 " element.classList.remove(\"container\")\r\n });\r\n " +
33159 " [...document.querySelectorAll(\".footer\")].forEach(element => {\r\n " +
33160 " element.classList.remove(\"container\")\r\n });\r\n " +
33161 " [...document.querySelectorAll(\".page\")].forEach(element => {\r\n " +
33162 " element.classList.remove(\"container\")\r\n });\t \r" +
33163 "\n }\r\n });\r\n [...document.querySelectorA" +
33164 "ll(\".switcher\")].forEach(el=>{\r\n el.addEventListener(\"click\", ()=" +
33165 "> {\r\n let className = el.name + \"--\" +el.value;\r\n " +
33166 " let target = el.closest(\".header\");\r\n let filtered = [...el" +
33167 ".closest(\".header\").classList].filter(v=> !v.includes(el.name)); \r\n " +
33168 " target.classList = filtered.join(\" \"); \r\n target.clas" +
33169 "sList.add(className);\r\n });\r\n });\r\n\t \r\n\t\t</script>\r" +
33170 "\n");
33171
33172
33173 #line 9825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33174 }
33175
33176
33177 #line default
33178 #line hidden
33179 WriteLiteral("\t");
33180
33181
33182 #line 9826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33183 if (debugParameter)
33184 {
33185
33186
33187 #line default
33188 #line hidden
33189 WriteLiteral("\t\t<script>\r\n\t\t document.addEventListener(\"optionChanged\", e=>{console.log(e.ty" +
33190 "pe,e)});\r\n\t\t document.addEventListener(\"filtersChanged\", e=>{console.log(e.ty" +
33191 "pe,e.detail.url)})\r\n\t\t</script>\r\n");
33192
33193
33194 #line 9832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33195 }
33196
33197
33198 #line default
33199 #line hidden
33200 WriteLiteral("\r\n\r\n\r\n\r\n<script");
33201
33202 WriteLiteral(" type=\"module\"");
33203
33204 WriteLiteral(" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js\"");
33205
33206 WriteLiteral(" defer></script>\r\n");
33207
33208 WriteLiteral("\r\n<script");
33209
33210 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/noty@3.1.4/lib/noty.min.js\"");
33211
33212 WriteLiteral(" defer></script>\r\n<script");
33213
33214 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/handlebars@4.7.6/dist/handlebars.min.js\"");
33215
33216 WriteLiteral(" defer></script>\r\n<script");
33217
33218 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js\"");
33219
33220 WriteLiteral(" defer></script>\r\n<script");
33221
33222 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/flatpickr\"");
33223
33224 WriteLiteral(" defer></script>\r\n<script");
33225
33226 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/js-image-zoom/js-image-zoom.min.js\"");
33227
33228 WriteLiteral(" defer></script>\r\n<script");
33229
33230 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js\"");
33231
33232 WriteLiteral(" defer></script>\r\n");
33233
33234 WriteLiteral("\r\n");
33235
33236 WriteLiteral("\r\n\r\n");
33237
33238
33239 #line 9848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33240 if (currentLang == "en")
33241 {
33242
33243
33244 #line default
33245 #line hidden
33246 WriteLiteral(" <script");
33247
33248 WriteAttribute("src", Tuple.Create(" src=\"", 468502), Tuple.Create("\"", 468581)
33249 , Tuple.Create(Tuple.Create("", 468508), Tuple.Create("/Files/Templates/Designs/", 468508), true)
33250
33251 #line 9850 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33252 , Tuple.Create(Tuple.Create("", 468533), Tuple.Create<System.Object, System.Int32>(DesignFolder
33253
33254 #line default
33255 #line hidden
33256 , 468533), false)
33257 , Tuple.Create(Tuple.Create("", 468546), Tuple.Create("/js/translations/translations_23.js", 468546), true)
33258 );
33259
33260 WriteLiteral(" defer ></script>\r\n");
33261
33262
33263 #line 9851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33264 }
33265 else
33266 {
33267
33268
33269 #line default
33270 #line hidden
33271 WriteLiteral(" <script");
33272
33273 WriteAttribute("src", Tuple.Create(" src=\"", 468622), Tuple.Create("\"", 468701)
33274 , Tuple.Create(Tuple.Create("", 468628), Tuple.Create("/Files/Templates/Designs/", 468628), true)
33275
33276 #line 9854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33277 , Tuple.Create(Tuple.Create("", 468653), Tuple.Create<System.Object, System.Int32>(DesignFolder
33278
33279 #line default
33280 #line hidden
33281 , 468653), false)
33282 , Tuple.Create(Tuple.Create("", 468666), Tuple.Create("/js/translations/translations_21.js", 468666), true)
33283 );
33284
33285 WriteLiteral(" defer></script> \r\n");
33286
33287
33288 #line 9855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33289 }
33290
33291
33292 #line default
33293 #line hidden
33294 WriteLiteral("\r\n");
33295
33296
33297 #line 9857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33298 if (!string.IsNullOrEmpty(googleAPIKey))
33299 {
33300
33301
33302 #line default
33303 #line hidden
33304 WriteLiteral("\t<script");
33305
33306 WriteAttribute("src", Tuple.Create(" src=\"", 468781), Tuple.Create("\"", 468883)
33307 , Tuple.Create(Tuple.Create("", 468787), Tuple.Create("https://maps.googleapis.com/maps/api/js?key=", 468787), true)
33308
33309 #line 9859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33310 , Tuple.Create(Tuple.Create("", 468831), Tuple.Create<System.Object, System.Int32>(googleAPIKey
33311
33312 #line default
33313 #line hidden
33314 , 468831), false)
33315 , Tuple.Create(Tuple.Create("", 468844), Tuple.Create("&libraries=places&language=", 468844), true)
33316
33317 #line 9859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33318 , Tuple.Create(Tuple.Create("", 468871), Tuple.Create<System.Object, System.Int32>(currentLang
33319
33320 #line default
33321 #line hidden
33322 , 468871), false)
33323 );
33324
33325 WriteLiteral(" async defer></script>\r\n");
33326
33327
33328 #line 9860 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33329
33330 }
33331
33332
33333 #line default
33334 #line hidden
33335
33336 #line 9862 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33337
33338
33339
33340 #line default
33341 #line hidden
33342
33343 #line 9863 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33344
33345 string jsMapPath = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.js";
33346 var jsFileInfo = new System.IO.FileInfo(Dynamicweb.Core.SystemInformation.MapPath(jsMapPath));
33347
33348
33349 #line default
33350 #line hidden
33351 WriteLiteral(" \r\n\r\n<script");
33352
33353 WriteAttribute("src", Tuple.Create(" src=\"", 469210), Tuple.Create("\"", 469258)
33354
33355 #line 9868 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33356 , Tuple.Create(Tuple.Create("", 469216), Tuple.Create<System.Object, System.Int32>(jsMapPath
33357
33358 #line default
33359 #line hidden
33360 , 469216), false)
33361 , Tuple.Create(Tuple.Create("", 469226), Tuple.Create("?", 469226), true)
33362
33363 #line 9868 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33364 , Tuple.Create(Tuple.Create("", 469227), Tuple.Create<System.Object, System.Int32>(jsFileInfo.LastWriteTime.Ticks
33365
33366 #line default
33367 #line hidden
33368 , 469227), false)
33369 );
33370
33371 WriteLiteral(@" defer></script>
33372
33373
33374 <script>
33375
33376
33377 window.googleEnchantImpressionClick = function (googleImpression) {
33378 if (typeof dataLayer !== 'undefined') {
33379 dataLayer.push({
33380 'event': 'productClick',
33381 'ecommerce': {
33382 'click': {
33383 'actionField': {
33384 'list': googleImpression.list
33385 },
33386 // Optional list property.
33387 'products': [{
33388 'name': googleImpression.name,
33389 // Name or ID is required.
33390 'id': googleImpression.id,
33391 'price': googleImpression.price,
33392 'brand': googleImpression.brand,
33393 'category': googleImpression.category,
33394 'variant': googleImpression.variant,
33395 'position': googleImpression.position
33396 }]
33397 }
33398 },
33399 'eventCallback': function ()
33400 {
33401 console.log('callback from googleImpression' , googleImpression)
33402 // document.location = googleImpression.url;
33403 }
33404 });
33405 }
33406 };
33407 </script>
33408 <style>
33409 .block-structure ul{
33410
33411 padding-left: 4rem;
33412
33413 }
33414 </style>
33415 ");
33416
33417 WriteLiteral("\r\n<div");
33418
33419 WriteLiteral(" class=\"section__container container\"");
33420
33421 WriteLiteral(">\r\n\t<div");
33422
33423 WriteLiteral(" class=\"section__content\"");
33424
33425 WriteLiteral(">\r\n\t\t<div");
33426
33427 WriteLiteral(" class=\"block-structure hidden\"");
33428
33429 WriteLiteral(">");
33430
33431
33432 #line 9915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\ContentPage.parsed.cshtml"
33433 Write(masterPage.GetBlocksStructure());
33434
33435
33436 #line default
33437 #line hidden
33438 WriteLiteral("</div>\t\t\r\n\t</div>\r\n</div>\r\n\r\n\r\n\r\n\r\n<div");
33439
33440 WriteLiteral(" class=\"hidden\"");
33441
33442 WriteLiteral("><button");
33443
33444 WriteLiteral(" type=\"button\"");
33445
33446 WriteLiteral(" data-role=\"confirm\"");
33447
33448 WriteLiteral(" data-content=\"Doresti sa golesti cosul ?\"");
33449
33450 WriteLiteral(" data-approve-label=\"Confirma\"");
33451
33452 WriteLiteral(" data-reject-label=\"Anuleaza\"");
33453
33454 WriteLiteral(">Sterge cosul</button></div>\r\n<button");
33455
33456 WriteLiteral(" type=\"button\"");
33457
33458 WriteLiteral(" dev-role=\"switch-header\"");
33459
33460 WriteLiteral(" class=\"btn-icon hidden\"");
33461
33462 WriteLiteral(" style=\"--button-line-height: 2rem\"");
33463
33464 WriteLiteral("><div");
33465
33466 WriteLiteral(" class=\"ico icon-xs\"");
33467
33468 WriteLiteral("><svg");
33469
33470 WriteLiteral(" xmlns=\'http://www.w3.org/2000/svg\'");
33471
33472 WriteLiteral(" width=\'512\'");
33473
33474 WriteLiteral(" height=\'512\'");
33475
33476 WriteLiteral(" viewBox=\'0 0 512 512\'");
33477
33478 WriteLiteral("><path");
33479
33480 WriteLiteral(" d=\'M368,112H144C64.6,112,0,176.6,0,256S64.6,400,144,400H368c79.4,0,144-64.6,144-" +
33481 "144S447.4,112,368,112Zm0,256A112,112,0,1,1,480,256,112.12,112.12,0,0,1,368,368Z\'" +
33482 "");
33483
33484 WriteLiteral("/></svg></div></button>\r\n\r\n</body>\r\n</html>\r\n\r\n");
33485
33486 }
33487 }
33488 }
33489
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2
3 @using System.Web;
4 @using Dynamicweb.Frontend
5 @using Dynamicweb.Frontend.Devices
6 @using Dynamicweb.Extensibility
7 @using Dynamicweb.Content
8 @using Dynamicweb.Security
9 @using Dynamicweb.Core
10 @using System
11 @using System.Web
12 @using System.IO
13 @using Dynamicweb.Rapido.Blocks
14 @using System.Net
15 @using Df.Dw
16 @using Dynamicweb.Security.UserManagement
17
18 @if(!System.Web.HttpContext.Current.Request.Cookies.AllKeys.Contains("Theme")) {
19 System.Web.HttpContext.Current.Response.Cookies["Theme"].Value = "decocenter";
20 }
21
22 @functions {
23 BlocksPage masterPage = BlocksPage.GetBlockPage("Master");
24
25 string getFontFamily(params string[] items)
26 {
27 var itemParent = Pageview.AreaSettings;
28 foreach (var item in items)
29 {
30 itemParent = itemParent.GetItem(item);
31 if (itemParent == null)
32 {
33 return null;
34 }
35 }
36
37 var googleFont = itemParent.GetGoogleFont("FontFamily");
38 if (googleFont == null)
39 {
40 return null;
41 }
42 return googleFont.Family.Replace(" ", "+");
43 }
44 }
45 @* Include the custom components *@
46 @using System.Text.RegularExpressions
47 @using System.Collections.Generic
48 @using System.Reflection
49 @using System.Web.UI.HtmlControls
50 @using Dynamicweb.News
51 @using Dynamicweb.Rapido.Blocks.Components
52 @using Dynamicweb.Rapido.Blocks.Components.Articles
53 @using Dynamicweb.Rapido.Blocks.Components.Documentation
54 @using Dynamicweb.Rapido.Blocks
55
56 @functions{
57 public class Translations
58 {
59 public class General
60 {
61 public static string
62 Logo = "General_Logo",
63 GenerateAWB = "General_GenerateAWB",
64 DeliveryAgent = "General_DeliveryAgent",
65 SelectCountry = "General_SelectCountry",
66 DateInterval = "General_DateInterval",
67 CloseModal = "General_CloseModal",
68 ClosePanel = "General_ClosePanel",
69 SearchPage = "General_SearchPage",
70 Search = "General_Search",
71 CloseSearch = "General_CloseSearch",
72 All = "General_All",
73 View = "General_View",
74 ViewAll = "General_ViewAll",
75 ReadMore = "General_ReadMore",
76 More = "General_More",
77 Load = "General_Load",
78 Add = "General_Add",
79 Remove = "General_Remove",
80 Save = "General_Save",
81 Close = "General_Close",
82 Go = "General_Go",
83 Back = "General_Back",
84 Hi = "General_Hi",
85 Edit = "General_Edit",
86 Delete = "General_Delete",
87 DownloadExcel = "General_DownloadExcel",
88 Cancel = "General_Cancel",
89 SetDefault = "General_SetDefault",
90 Submit = "General_Submit",
91 SocialLinks = "General_SocialLinks",
92 MailingList = "General_MailingList",
93 YourEmailAddress = "General_YourEmailAddress",
94 SignUpMessage = "General_SignUpMessage",
95 SignUpForm = "General_SignUpForm",
96 YourSearchGave0Results = "General_YourSearchGave0Results",
97 Contact = "General_Contact",
98 Pages = "General_Pages",
99 NotAvailable = "General_NotAvailable",
100 Default = "General_Default",
101 Yes = "General_Yes",
102 No = "General_No",
103 Page = "General_Page",
104 Of = "General_Of",
105 FirstPage = "General_FirstPage",
106 LastPage = "General_LastPage",
107 ReturnToTop = "General_ReturnToTop",
108 Details = "General_Details",
109 Information = "General_Information",
110 Downloads = "General_Downloads",
111 Download = "General_Download",
112 GeneratePdf = "General_GeneratePdf",
113 DownloadPdf = "General_DownloadPdf",
114 Select = "General_Select",
115 SelectType = "General_SelectType",
116 Type = "General_Type",
117 RequestType = "General_RequestType",
118 Language = "General_Language",
119 Images = "General_Images",
120 Documents = "General_Documents",
121 Export = "General_Export",
122 ImagePurpose = "General_ImagePurpose",
123 Office = "General_Office",
124 Original = "General_Original",
125 Print = "General_Print",
126 Web = "General_Web",
127 ExportFormat = "General_ExportFormat",
128 Videos = "General_Videos",
129 AskForInfo = "General_AskForInfo",
130 DataSheet = "General_DataSheet",
131 LinkToPage = "General_LinkToPage",
132 Again = "General_Again",
133 Notice = "General_Notice",
134 Form = "General_Form",
135 TechnicalContact = "General_TechnicalContact",
136 Error = "General_Error",
137 Warning = "General_Warning",
138 Status = "General_Status",
139 State = "General_State",
140 NoDocumentsFound = "General_NoDocumentsFound",
141 CreditMemo = "General_CreditMemo",
142 History = "General_History",
143 Comment = "General_Comment",
144 AddComment = "General_AddComment",
145 EnterComment = "General_EnterComment",
146 NothingSelected = "General_NothingSelected",
147 Never = "General_Never",
148 Days = "General_Days",
149 Weeks = "General_Weeks",
150 Months = "General_Months",
151 IAcceptTheTermsAndConditions = "General_IAcceptTheTermsAndConditions",
152 TheTermsAndConditionsOfThisWebsite = "General_TheTermsAndConditionsOfThisWebsite",
153 ReadGeneralConditions = "General_ReadGeneralConditions",
154 SubscribeToNewsletter = "General_SubscribeToNewsletter",
155 Use = "General_Use",
156 Choose = "General_Choose",
157 Free = "General_Free",
158 Next = "General_Next",
159 GoTo = "General_GoTo",
160 NotFound = "General_NotFound",
161 AlreadyUsed = "General_AlreadyUsed",
162 IsNotActive = "General_IsNotActive",
163 Apply = "General_Apply",
164 NoItemsFound = "General_NoItemsFound",
165 GoToFrontPage = "General_GoToFrontPage",
166 LoginModalHeading = "General_LoginModalHeading",
167 LoginModalSubHeading = "General_LoginModalSubHeading",
168 ViewInBrowser = "General_ViewInBrowser",
169 CantSeeMessage = "General_CantSeeMessage",
170 Welcome = "General_Welcome",
171 Continue = "General_Continue",
172 UserIsActivated = "General_UserIsActivated",
173 Create = "General_Create",
174 ViewOffer = "General_ViewOffer",
175 CookiesHeader = "General_CookiesHeader",
176 CookiesText1 = "General_CookiesText1",
177 CookiesText2 = "General_CookiesText2",
178 CookiesDoNotAcceptCookies = "General_CookiesDoNotAcceptCookies",
179 CookiesOnlyAcceptFunctionalCookies = "General_OnlyAcceptFunctionalCookies",
180 CookiesAcceptAllCookies = "General_AcceptAllCookies",
181 RMADetailsEmail = "General_RMADetailsEmail",
182 RMAClientName = "General_RMAClientName",
183 RMADataCererii = "General_RMADataCererii",
184 RMATipCerere = "General_RMATipCerere",
185 RMAOrderInitial = "General_RMAOrderInitial",
186 RMAEmailText = "General_RMAEmailText",
187 Written = "General_Written",
188 By = "General_By",
189 On = "General_On",
190 Category = "General_Category",
191 Hello = "General_Hello";
192 }
193 public class Account
194 {
195 public static string
196 LogIn = "Account_LogIn",
197 Promotions = "Account_Promotions",
198 Resupply = "Account_Resupply",
199 WorkInProgressOrders = "Account_WorkInProgressOrders",
200 ExchangePartsRequests = "Account_ExchangePartsRequests",
201 DeliverYourselfOrders = "Account_DeliverYourselfOrders",
202 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders",
203 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou",
204 SignIn = "Account_SignIn",
205 SignOut = "Account_SignOut",
206 CreateAccount = "Account_CreateAccount",
207 ForgotYourPassword = "Account_ForgotYourPassword",
208 ResetYourPassword = "Account_ResetYourPassword",
209 RememberMe = "Account_RememberMe",
210 Password = "Account_Password",
211 Name = "Account_Name",
212 FirstName = "Account_FirstName",
213 LastName = "Account_LastName",
214 Description = "Address_Description",
215 Email = "Account_Email",
216 Username = "Account_Username",
217 Phone = "Account_Phone",
218 ZipCode = "Account_ZipCode",
219 City = "Account_City",
220 Country = "Account_Country",
221 CompanyName = "Account_CompanyName",
222 CompanyAddress = "Account_CompanyAddress",
223 CompanyCity = "Account_CompanyCity ",
224 CompanyZip = "Account_CompanyZip",
225 CompanyCountry = "Account_CompanyCountry",
226 CompanyID = "Account_CompanyID",
227 CompanyTIN = "Account_CompanyTIN",
228 CompanyVAT = "Account_CompanyVAT",
229 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment",
230 Company = "Account_Company",
231 StateRegion = "Account_StateRegion",
232 NewPassword = "Account_NewPassword",
233 OldPassword = "Account_OldPassword",
234 ConfirmPassword = "Account_ConfirmPassword",
235 BusinessNumber = "Account_BusinessNumber",
236 AlreadyACustomer = "Account_AlreadyACustomer",
237 MyProfile = "Account_MyProfile",
238 EditProfile = "Account_EditProfile",
239 MyOrders = "Account_MyOrders",
240 MyFavorites = "Account_MyFavorites",
241 MySavedCards = "Account_MySavedCards",
242 StopImpersonation = "Account_StopImpersonation",
243 Impersonate = "Account_Impersonate",
244 IsImpersonating = "Account_IsImpersonating",
245 StopImpresonationPageText ="Account_StopImpresonationPageText",
246 SelectUserToImpersonate = "Account_SelectUserToImpersonate",
247 SearchUser = "Account_SearchUser",
248 ViewListOfUsers = "Account_ViewListOfUsers",
249 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid",
250 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword",
251 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts",
252 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked",
253 ThePasswordHasExpired = "Account_ThePasswordHasExpired",
254 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured",
255 CreateAccountIncentive = "Account_CreateAccountIncentive",
256 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock",
257 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock",
258 InsertYourEmailMsg = "Account_InsertYourEmailMsg",
259 UserNotFound = "Account_UserNotFound",
260 UsersFound = "Account_UsersFound",
261 SendPasswordRecovery = "Account_SendPasswordRecovery",
262 PasswordRecovery = "Account_PasswordRecovery",
263 SomethingWentWrong = "Account_SomethingWentWrong",
264 TryRecoverPassword = "Account_TryRecoverPassword",
265 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate",
266 ChooseANewPassword = "Account_ChooseANewPassword",
267 PasswordChanged = "Account_PasswordChanged",
268 SentEmailWithALinks = "Account_SentEmailWithALinks",
269 SentEmailWithThePassword = "Account_SentEmailWithThePassword",
270 AStrongPassword = "Account_AStrongPassword",
271 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest",
272 ClickToSetANewPassword = "Account_ClickToSetANewPassword",
273 IgnoreThisEmail = "Account_IgnoreThisEmail",
274 CompleteOrdersCount = "Account_CompleteOrdersCount",
275 CompanyCreditLimit = "Account_CompanyCreditLimit",
276 InvoiceValue = "Account_InvoiceValue",
277 CompanySold = "Account_CompanySold",
278 CompanyOverdue = "Account_CompanyOverdue",
279 OpenOrders = "Account_OpenOrders",
280 PlacedOrders = "Account_PlacedOrders",
281 ProductsOnSale = "Account_ProductsOnSale",
282 LoyaltyPoints = "Account_LoyaltyPoints",
283 RequestAccountStatements = "Account_RequestAccountStatements",
284 RequestComplaintForm = "Account_RequestComplaintForm",
285 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo",
286 YourConsents = "Account_YourConsents",
287 YourPointBalance = "Account_YourPointBalance",
288 Address = "Account_Address",
289 Address2 = "Account_Address2",
290 Addresses = "Account_Addresses",
291 MyAddresses = "Account_MyAddresses",
292 ManageAddresses = "Account_ManageAddresses",
293 NoAddressFound = "Account_NoAddressFound",
294 DefaultLocation = "Account_DefaultLocation",
295 DefaultPayment = "Account_DefaultPayment",
296 PaymentTerm = "Account_PaymentTerm",
297 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted",
298 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress",
299 AddNewAddress = "Account_AddNewAddress",
300 DeliveryAddresses = "Account_DeliveryAddresses",
301 BillingAddresses = "Account_BillingAddresses",
302 NoAddressesFound = "Account_NoAddressesFound",
303 EditAddress = "Account_EditAddress",
304 AddAddress = "Account_AddAddress",
305 SaveAddress = "Account_SaveAnAddress",
306 StreetNumber = "Account_StreetNumber",
307 DeleteThisAddress = "Account_DeleteThisAddress",
308 NoRMAsListFound = "Account_NoRMAsListFound",
309 RMASelectTypeFirst = "Account_SelectRMATypeFirst",
310 CancelTheRequest = "Account_CancelTheRequest",
311 EmittedWarranties = "Account_EmittedWarranties",
312 ViewRma = "Account_ViewRma",
313 CancelRma = "Account_CancelRma",
314 CreateNewRequest = "Account_CreateNewRequest",
315 CreateRequest = "Account_CreateRequest",
316 CancelRequest = "Account_CancelRequest",
317 ViewRequest = "Account_ViewRequest",
318 RmaId = "Account_RmaId",
319 AdditionalInfo = "Account_AdditionalInfo",
320 CustomerComment = "Account_CustomerComment",
321 CustomerDetails = "Account_CustomerDetails",
322 NoFavoritesListsFound = "Account_NoFavoritesListsFound",
323 CreateNewList = "Account_CreateNewList",
324 AddNewList = "Account_AddNewList",
325 EditList = "Account_EditList",
326 SetAsDefault = "Account_SetAsDefault",
327 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList",
328 PublishedTo = "Account_PublishedTo",
329 ReturnToList = "Account_ReturnToList",
330 ShouldTheListBePublic = "Account_ShouldTheListBePublic",
331 IsThisTheDefaultList = "Account_IsThisTheDefaultList",
332 CreateList = "Account_CreateList",
333 BackToProfile = "Account_BackToProfile",
334 YouAreAlmostThere = "Account_YouAreAlmostThere",
335 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile",
336 ProfileComplete = "Account_ProfileComplete",
337 ProfileCompletePageText = "Account_ProfileCompletePageText",
338 CreateUserAccount = "Account_CreateUserAccount",
339 CreateYourNewAccount = "Account_CreateYourNewAccount",
340 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword",
341 ResetPassword = "Account_ResetPassword",
342 PrivatePerson = "Account_PrivatePerson",
343 EmptyFields = "Account_CompleteAllFields",
344 PasswordsNoMatch = "Account_PasswordsDoNotMatch",
345 FillOldPasswordFirst = "Account_FillOldPasswordFirst",
346 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty",
347 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty",
348 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty",
349 NameCannotBeEmpty = "Account_NameCannotBeEmpty",
350 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty",
351 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty",
352 ConfirmAccount = "Account_ConfirmAccount",
353 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader",
354 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi",
355 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne",
356 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo",
357 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd",
358 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne",
359 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton",
360 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter",
361 ConfirmEmail = "Account_ConfirmEmail",
362 AddNewWarranty = "Account_AddNewWarranty",
363 CreateNewWarranty = "Account_CreateWarranty",
364 CreateNewService = "Account_CreateService",
365 CreateNewPartsExchange = "Account_CreatePartsExchange",
366 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty",
367 LoginToViewFavorites = "Account_LoginToViewFavorites";
368 }
369 public class Products
370 {
371 public static string
372 SelectRating = "Products_SelectRating",
373 RatingHeadline = "Products_RatingHeadline",
374 LoginToReview = "Products_LoginToReview",
375 NoReviewsFound = "Products_NoReviewsFound",
376 ProductsGeneral = "Products_ProductsGeneral",
377 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock",
378 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent",
379 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered",
380 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent",
381 ExchangePartsFor = "Products_ExchangePartsFor",
382 Product = "Products_Product",
383 AnyProduct = "Product_AnyProduct",
384 ProductNo = "Products_ProductNo",
385 ProductCode = "Products_ProductCode",
386 Prod = "Products_Prod",
387 Price = "Products_Price",
388 Vat = "Products_Vat",
389 SearchProductsOrPages = "Products_SearchProductsOrPages",
390 SearchProducts = "Products_SearchProducts",
391 SearchResultFor = "Products_SearchResultFor",
392 Newest = "Products_Newest",
393 PriceHighLow = "Products_PriceHighLow",
394 PriceLowHigh = "Products_PriceLowHigh",
395 Stock = "Products_Stock",
396 TotalStock = "Products_TotalStock",
397 InStock = "Products_InStock",
398 OutOfStock = "Products_OutOfStock",
399 Delivery = "Products_Delivery",
400 SearchFavoriteProducts = "Products_SearchFavoriteProducts",
401 Filters = "Products_Filters",
402 SelectFilters = "Products_SelectFilters",
403 CloseFilters = "Products_CloseFilters",
404 RemoveFilters = "Products_RemoveFilters",
405 ResetAllFilters = "Products_ResetAllFilters",
406 ProductCategories = "Products_ProductCategories",
407 Categories = "Products_Categories",
408 ExclVAT = "Products_ExclVAT",
409 InclVAT = "Products_InclVAT",
410 BuyWithPoints = "Products_BuyWithPoints",
411 MoreOptionsAvailable = "Products_MoreOptionsAvailable",
412 ProductNumber = "Products_ProductNumber",
413 Brand = "Products_Brand",
414 Buc = "Products_Buc",
415 PleaseSelectVariant = "Products_PleaseSelectVariant",
416 Sort = "Products_Sort",
417 SortBy = "Products_SortBy",
418 Summary = "Products_Summary",
419 Description = "Products_Description",
420 Specifications = "Products_Specifications",
421 Reviews = "Products_Reviews",
422 GeneralReviews = "Products_GeneralReviews",
423 AddAReview = "Products_AddAReview",
424 ProductAssets = "Products_ProductAssets",
425 Variants = "Products_Variants",
426 VariantsList = "Products_VariantsList",
427 IncludingProducts = "Products_IncludingProducts",
428 MinimumQuantity = "Products_MinimumQuantity",
429 StepQuantity = "Products_StepQuantity",
430 PriceWithVat = "Products_PriceWithVat",
431 Quantity = "Products_Quantity",
432 TotalPrice = "Products_TotalPrice",
433 TotalWithVat = "Products_TotalWithVat",
434 RecentSearches = "Products_RecentSearches",
435 ItemNumber = "Products_ItemNumber",
436 UnitPrice = "Products_UnitPrice",
437 ViewFavorites = "Products_ViewFavorites",
438 ChooseList = "Products_ChooseList",
439 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList",
440 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList",
441 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList",
442 NotEligibleForWarranty = "Product_NotEligibleForWarranty",
443 AddToFavoritesLabel = "Products_AddToFavoritesLabel",
444 AddToFavorites = "Products_AddToFavorites",
445 RemoveFromFavorites = "Products_RemoveFromFavorites",
446 OrCreateOne = "Products_OrCreateOne",
447 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt",
448 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove",
449 EnterAListName = "Products_EnterAListName",
450 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists",
451 SeeFavoriteList = "Products_SeeFavoriteList",
452 Compare = "Products_Compare",
453 AddToCompare = "Products_AddToCompare",
454 RemoveFromCompare = "Products_RemoveFromCompare",
455 ViewMore = "Products_ViewMore",
456 RecommendedPrice = "Products_RecommendedPrice",
457 YouSave = "Products_YouSave",
458 SalesUOM = "Products_SalesUOM",
459 AvailablilityDateMessage = "Product_AvailableIn";
460 }
461 public class Cart
462 {
463 public static string
464 CartGeneral = "Cart_CartGeneral",
465 UpdateQuantitiesInCart ="Cart_UpdateQuantitiesInCart",
466 SignInCart = "Cart_SignInCart",
467 InvalidQuantitiesInCart = "Cart_InvalidQuantitiesInCart",
468 PlacedOrderDate = "Cart_PlacedOrderDate",
469 MaxFinalizeDate = "Cart_MaxFinalizeDate",
470 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders",
471 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders",
472 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound",
473 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound",
474 DeliverOrder = "Cart_DeliverOrder",
475 OrderDetails = "Cart_OrderDetails",
476 ApproveOrder = "Cart_ApproveOrder",
477 ApprovedOrder = "Cart_ApprovedOrder",
478 RejectOrder = "Cart_RejectOrder",
479 RejectedOrder = "Cart_RejectedOrder",
480 DeliveredOrder = "Cart_DeliveredOrder",
481 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders",
482 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts",
483 ShoppingCart = "Cart_ShoppingCart",
484 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart",
485 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart",
486 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart",
487 ContinueShopping = "Cart_ContinueShopping",
488 ProceedToCheckout = "Cart_ProceedToCheckout",
489 Earnings = "Cart_Earnings",
490 Points = "Cart_Points",
491 NoPointsFound = "Cart_NoPointsFound",
492 YourPointBalance = "Cart_YourPointBalance",
493 UsedPoints = "Cart_UsedPoints",
494 AddPoints = "Cart_AddPoints",
495 Variant = "Cart_Variant",
496 Unit = "Cart_Unit",
497 Qty = "Cart_Qty",
498 Subtotal = "Cart_Subtotal",
499 Total = "Cart_Total",
500 CannotOrder = "Cart_CannotOrder",
501 RemoveOrderline = "Cart_RemoveOrderline",
502 UpdateOrderline = "Cart_UpdateOrderline",
503 OrderlineUpdating = "Cart_OrderlineUpdating",
504 OrderlineUpdated = "Cart_OrderlineUpdated",
505 OrderlineRemoving = "Cart_OrderlineRemoving",
506 OrderlineRemoved = "Cart_OrderlineRemoved",
507 EmptyCartStart = "Cart_EmptyCartStart",
508 EmptyCartFinished = "Cart_EmptyCartFinished",
509 EmptyCarCheck = "Cart_EmptyCartCheck",
510 SelectShippingOption = "Cart_SelectShippingOption",
511 SelectBillingOption = "Cart_SelectBillingOption",
512 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis",
513 MaximumPointsText = "Cart_MaximumPointsText",
514 EmptyCart = "Cart_EmptyCart",
515 Shipping = "Cart_Shipping",
516 AddToCart = "Cart_AddToCart",
517 BuyAll = "Cart_BuyAll",
518 BuyFor = "Cart_BuyFor",
519 Order = "Cart_Order",
520 OrderID = "Cart_OrderID",
521 Date = "Cart_Date",
522 OrderNumber = "Cart_OrderNumber",
523 OrderNumberNav = "Cart_OrderNumberNav",
524 OrderDate = "Cart_OrderDate",
525 OrderValue = "Cart_OrderValue",
526 ViewOrder = "Cart_ViewOrder",
527 PONumber = "Cart_PONumber",
528 Reorder = "Cart_Reorder",
529 NoOrdersFound = "Cart_NoOrdersFound",
530 Invoice = "Cart_Invoice",
531 ChooseInvoice = "Cart_ChooseInvoice",
532 SearchInvoices = "Cart_SearchInvoices",
533 NoInvoicesFound = "Cart_NoInvoicesFound",
534 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice",
535 InvoiceNumber = "Cart_InvoiceNumber",
536 InvoiceDate = "Cart_InvoiceDate",
537 TrackingNumber = "Cart_TrackingNumber",
538 DeliveryNote = "Cart_DeliveryNote",
539 ViewDeliveryNote = "Cart_ViewDeliveryNote",
540 SelectOrder = "Cart_SelectOrder",
541 Payment = "Cart_Payment",
542 PaymentMethod = "Cart_PaymentMethod",
543 ShippingMethod = "Cart_ShippingMethod",
544 SelectShipping = "Cart_SelectShipping",
545 SelectPayment = "Cart_SelectPayment",
546 BillingAddress = "Cart_BillingAddress",
547 SameBillingAsShipping = "Cart_BillingAsShipping",
548 ShippmentNumber = "Cart_ShippmentNumber",
549 ShippingAddress = "Cart_ShippingAddress",
550 AddAlternativeAdr = "Cart_AddAlternativeAdr",
551 SelectSavedAddress = "Cart_SelectSavedAddress",
552 PaymentAndShipping = "Cart_PaymentAndShipping",
553 RecurringEvery = "Cart_RecurringEvery",
554 RecurringStartDate = "Cart_RecurringStartDate",
555 RecurringEndDate = "Cart_RecurringEndDate",
556 StartDate = "Cart_StartDate",
557 OrderUsedGiftCards = "Cart_OrderUsedGiftCards",
558 GiftCardName = "Cart_GiftCardName",
559 GiftCardCode = "Cart_GiftCardCode",
560 ExpiryDate = "Cart_ExpiryDate",
561 InitialAmount = "Cart_InitialAmount",
562 UsedAmount = "Cart_UsedAmount",
563 RemainingBalance = "Cart_RemainingBalance",
564 Vouchers = "Cart_Vouchers",
565 Voucher = "Cart_Voucher",
566 HasBeenUsed = "Cart_HasBeenUsed ",
567 GiftCardAmount = "Cart_GiftCardAmount",
568 ShopInformation = "Cart_ShopInformation",
569 ShopName = "Cart_ShopName",
570 CardNo = "Cart_CardNo",
571 TransactionNo = "Cart_TransactionNo",
572 TransactionState = "Cart_TransactionState",
573 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder",
574 RecurringOrder = "Cart_RecurringOrder",
575 RecurringOrderSettings = "Cart_RecurringOrderSettings",
576 SaveUsedCard = "Cart_SaveUsedCard",
577 SavedCardName = "Cart_SavedCardName",
578 PayWithASavedCard = "Cart_PayWithASavedCard",
579 CreateRecurringOrder = "Cart_CreateRecurringOrder",
580 IWantMyOrderEvery = "Cart_IWantMyOrderEvery",
581 AndItShouldEndOn = "Cart_AndItShouldEndOn",
582 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart",
583 GoToCheckout = "Cart_GoToCheckout",
584 CreateQuoteRequest = "Cart_CreateQuoteRequest",
585 SubmitQuoteRequest = "Cart_SubmitQuoteRequest",
586 ReviewOrder = "Cart_ReviewOrder",
587 ReviewOrderLine = "Cart_ReviewOrderLine",
588 GetParcelShops = "Cart_GetParcelShops",
589 ChangeParcelShop = "Cart_ChangeParcelShop",
590 ChooseAParcelShop = "Cart_ChooseAParcelShop",
591 ConfirmOrder = "Cart_ConfirmOrder",
592 AppliedToOrder = "Cart_AppliedToOrder",
593 EnterVoucherCode = "Cart_EnterVoucherCode",
594 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr",
595 RequiresAnAddress = "Cart_RequiresAnAddress",
596 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription",
597 NoAddressSelected = "Cart_NoAddressSelected",
598 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare",
599 AddressForm = "Cart_AddressForm",
600 AddressWasSent = "Account_AddressWasSent",
601 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage",
602 ShippingAddressFieldError = "Account_ShippingAddressFieldError",
603 BillingAddressFieldError = "Account_BillingAddressFieldError",
604 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain",
605 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation",
606 OrderEmailText = "Crt_OrderEmailText",
607 CantBePickedUp = "Cart_CantBePickedUp",
608 CreateUserInCheckout = "Cart_CreateUserInCheckout",
609 ProductNoPickup = "Cart_ProductNoPickup",
610 SelectShippingAddress = "Cart_SelectShippingAddress",
611 DiscountStepMessage = "Cart_DiscountStepMessage",
612 ServiceRequestNumber = "Cart_ServiceRequestNumber",
613 InsertAccountEmail = "Cart_InsertAccountEmail",
614 InsertAccountPassword = "Cart_InsertAccountPassword",
615 NoParcelShopsSelected = "Cart_NoParcelShopsSelected",
616 ShippingDiscountMessage = "Cart_ShippingDiscountMessage",
617 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea",
618 SelectBillingAddress = "Cart_SelectBillingAddress",
619 RMAId = "Cart_RMAId",
620 RMAEmailNotification = "Cart_RMAEmailNotification";
621
622 }
623 }
624 }
625
626
627
628 @* @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> *@
629 @using Dynamicweb.Core
630 @using System
631 @using System.Web
632 @using System.Collections.Generic
633 @using Df.Dw
634 @* @using Dynamicweb.Rapido.Blocks *@
635 @* @using Koncentric.Dw.Rapido *@
636 @using Dynamicweb.Security.UserManagement
637
638 @helper RenderFavoriteModalRefactored()
639 {
640 string favoriteListUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("CustomerFavorites");
641 string favoriteListFeed = "/Default.aspx?ID=" + GetPageIdByNavigationTag("FavoriteListFeed");
642 <div class="hidden">
643 <div id="favoriteProductListModal{{productId}}" data-favorite-modal="favoriteProductListModal{{productId}}" data-heading="@Translate(Translations.Products.AddToFavorites)">
644 {{#Favorite}}
645 {{>FavoriteTemplate}}
646 {{/Favorite}}
647
648
649
650 <div class="flex-wrap">
651 <form action="@favoriteListFeed">
652 <df-input name="Name" id="Name_CreateFavoriteList" value="" placeholder="@Translate("Account_AddNewList")" class="h5"></df-input>
653 <input type="hidden" name="redirect" value="false">
654 <input type="hidden" name="FavoriteCmd" value="createfavoritelist"/>
655 </form>
656 <button type="button" class="btn-fill--accent" data-product-id="{{productId}}" data-role="create-favorite-list-and-add-product" data-message-success="{{name}} @Translate(Translations.Products.WasAddedToFavoriteList)">@Translate("Adauga")</button>
657 </div>
658
659
660
661 </div>
662 </div>
663 }
664
665 @helper RenderInlineSvg2(string theme = "default", string icon="none.svg")
666 {
667 var DesignFolder = Pageview.Layout.Design.Name;
668 string themeCookie = HttpContext.Current.Request.Cookies["Theme"] != null ? HttpContext.Current.Request.Cookies["Theme"].Value : theme;
669 var themeNormalized = theme;
670 if (!string.IsNullOrEmpty(themeCookie))
671 {
672 themeNormalized = themeCookie;
673 }
674
675 <div class="ico">
676 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg"))
677 </div>
678 }
679
680
681
682 @SnippetStart("BottomJS")
683 @{
684 var areaInfoProductItemGrid = Df.Dw.Rapido.AreaInfo.Current();
685 var DesignFolderProductItemGrid = Pageview.Layout.Design.Name;
686 var userIsLoggedInProductItemGrid = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
687 }
688
689 <script id="ProductGridItem" type="text/x-template">
690 {{#.}}
691 <input type="hidden" name="ProductLoopCounter{{id}}" value="{{id}}" />
692 <input type="hidden" name="ProductID{{id}}" value="{{productId}}" />
693 <div class="product-item--grid borde border-0">
694 <div class="c00 grid">
695 <div class="c0">
696 <div class="product-item__image flex-wrap justify-content-center">
697 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="image-hover__wrapper block w-100 mb-2 relative">
698 <img class="lazyload w-100" width="620" height="416" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
699 data-src="/Admin/Public/GetImage.ashx?width=620&height=416&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=true&image={{image}}" alt="{{name}}"
700 style="aspect-ratio: 620 / 416" />
701 {{#StickersContainers}}
702 {{>StickersContainer}}
703 {{/StickersContainers}}
704 {{#if showPrices}}
705 {{#if Prices}}
706 {{#displayPromoPrice Prices}}{{/displayPromoPrice}}
707 {{/if}}
708 {{/if}}
709 </a>
710 {{#if showFavoriteLink}}
711 {{#if isFavoriteInAtLeastOneList}}
712 <button class="product-item__favorite on btn-fill--brand border-circle btn-icon icon-md" aria-label="Open favorites list" has-variants="{{hasVariants}}" data-modal-open="favoriteProductListModal{{productId}}">
713 @RenderInlineSvg2("default","favorites-on")
714 </button>
715 {{else}}
716 <button class="product-item__favorite off btn-fill--muted border-circle btn-icon icon-md" aria-label="Open favorites list" has-variants="{{hasVariants}}" data-modal-open="favoriteProductListModal{{productId}}">
717 @RenderInlineSvg2("default","favorites-off")
718 </button>
719 {{/if}}
720 @RenderFavoriteModalRefactored()
721 {{/if}}
722 </div>
723 </div>
724 <div class="c2 w-100">
725 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="product-item__title text-decoration-none w-100 block" data-tooltip-content="{{name}}">{{name}}</a>
726 </div>
727 <div class="c1 flex-wrap justify-content-center">
728 @* <div class="rating--stars my-1 hide">
729 {{#each ratingStars as |item|}}
730 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemGrid/icons/default/{{item}}"></ion-icon>
731 {{/each}}
732 </div> *@
733 {{#if showProductNumber}}
734 <div class="product-item__number small color-muted w-100 flex-wrap"><span class="mr-1 hidden">@Translate(Translations.Products.ProductNumber):</span><span>{{number}}</span></div>
735 {{/if}}
736 {{#if manufacturer/name}}
737 <div class="product-item__number small color-muted w-100 flex-wrap"><span class="mr-1 hidden">@Translate(Translations.Products.Brand):</span><span>{{manufacturer/name}}</span></div>
738 {{/if}}
739 </div>
740
741 <div class="c3 align-self-end hidden">
742 <div class="prices text-center">
743 {{#if discount}}
744 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 inline-block">{{{discount}}}</span>
745 {{/if}}
746 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 inline-block">{{{priceWithoutVAT}}}</span>
747 {{#if showPriceWithoutVAT}}
748 <span class="product-item__price--nosale color-brand my-1 inline-block">{{{priceWithoutVAT}}}</span>
749 {{#if showPriceWithVAT}}
750 <small>{{{priceWithVAT}}} @Translate(Translations.Products.InclVAT)</small>
751 {{/if}}
752 {{else}}
753 {{#if showPriceWithVAT}}
754 <span class="product-item__price--nosale color-brand my-1 inline-block">{{{priceWithVAT}}}</span>
755 {{/if}}
756 {{/if}}
757 </div>
758 </div>
759 <div class="c4 align-self-end flex-wrap space-between align-items-center my-1 hidden">
760 <div class="stock">
761 {{#ifCond stockValue '>' 0}}
762 <div class="product-item__stock weight-bold text-uppercase color-stock-ok">
763 @RenderInlineSvg2("default","stock-ok") @Translate(Translations.Products.InStock)</div>
764 {{else}}
765 <div class="product-item__stock weight-bold text-uppercase color-stock-none">@RenderInlineSvg2("default","stock-none") @Translate(Translations.Products.OutOfStock)</div>
766 {{/ifCond}}
767 </div>
768 <button name="Compare{{productId}}{{variantId}}" class="btn btn-fill--accent compare-trigger color-muted" data-compare data-tooltip="@Translate(Translations.Products.AddToCompare)" data-add-compare='@Translate(Translations.Products.AddToCompare)' data-remove-compare='@Translate(Translations.Products.RemoveFromCompare)' data-url="{{link}}" data-variant-id="{{variantid}}" data-id="{{productId}}" data-code="{{number}}" data-img="/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}" data-name="{{name}}" data-group="{{groupId}}"><span>@Translate(Translations.Products.AddToCompare)</span></button>
769 </div>
770 </div>
771 <div class="c01 align-self-end hidden">
772 <div class="c5">
773 {{#if allowAddToCart}}
774 <div class="actions">
775 {{#ifCond stockValue '>' 0}}
776 <form>
777 <input type="hidden" name="ProductID" value="{{productId}}" />
778 <input type="hidden" name="VariantID" value="{{variantId}}" />
779 <input type="hidden" name="ID" value="@areaInfoProductItemGrid.MiniCartFeedPage.ID.ToString()" />
780 <input type="hidden" name="redirect" value="false" />
781 <input type="hidden" name="CartCmd" value="add" />
782 <df-quantity type="number" id="Quantity_{{id}}" class="product-item__quantity hidden" name="Quantity" value="1" min="1" max="{{stockValue}}"></df-quantity>
783 <button type="button" id="CartButton_{{id}}" class="btn-fill--buy {{disabledBuyButton}} w-100"
784 icon-position="right"
785 onclick="{{facebookPixelAction}}" {{disabledBuyButton}}
786 data-role="add-to-cart"
787 message-success="@Translate(Translations.Cart.ProductIsAddedToTheCart)"
788 >
789 <span>@Translate(Translations.Cart.AddToCart)</span>
790 <span class="icon">
791 @RenderInlineSvg2("default","cart")
792 </span>
793
794 </button>
795 </form>
796 {{else}}
797 <div class="stock-notif-translates"
798 data-notification-already-sent="@Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)"
799 data-notification-registered="@Translate(Translations.Products.NotifyWhenBackOnStockRegistered)"></div>
800 @* Logic : if user is anonymous , we show the modal asking for email: otherwise the email is retrieved from account *@
801 @if (userIsLoggedInProductItemGrid)
802 {
803 <text>{{#ifCond notificationRegistered '==' false}}</text>
804 <button type="button" class="btn-fill--muted w-100" data-create-notify="{{notifyWhenBackOnStockLink}}" data-notified="false" data-user-logged-in="true">
805 @Translate(Translations.Products.NotifyWhenBackOnStock)
806 </button>
807
808 <text>{{else}}</text>
809 <button type="button" class="btn-fill--muted w-100" data-notified="true" data-user-logged-in="true">
810 @Translate(Translations.Products.NotifyWhenBackOnStockSent)
811 </button>
812 <text>{{/ifCond}}</text>
813
814 }
815 else
816 {
817 <text>{{#ifCond notificationRegistered '==' false}}</text>
818 <button type="button" class="btn-fill--muted w-100" onclick="openModal({id:'notifyWhenBackOnStock{{productId}}'})" data-notified="false" data-user-logged-in="false">
819 @Translate(Translations.Products.NotifyWhenBackOnStock)
820 </button>
821 <df-modal id="notifyWhenBackOnStock{{productId}}"
822 data-product-name="{{name}}"
823 heading="@Translate(Translations.Products.NotifyWhenBackOnStock)">
824 <span>
825 {{#ifCond notificationRegistered '==' false}}
826 <form name="{{productId}}" action="/Default.aspx?ID=@GetPageIdByNavigationTag("ProductsPage")">
827 <input type="hidden" name="ProductID" id="ProductID" value="{{productId}}" />
828 <input type="hidden" name="VariantID" id="VariantID" value="{{variantId}}" />
829 <input type="hidden" name="CartCmd" id="CartCmd" value="createnotificationforthisproduct" />
830 <df-input required type="email" class="mb-3" id="NotificationEmail" name="NotificationEmail" placeholder="@Translate(Translations.General.YourEmailAddress)"></df-input>
831 <button type="submit" class="create-stock-notification-request btn-fill--brand">@Translate(Translations.Account.CreateRequest)</button>
832 </form>
833 {{else}}
834 <p>@Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)</p>
835 {{/ifCond}}
836 </span>
837 </df-modal>
838 <text>{{else}}</text>
839 <button type="button" class="btn-fill--muted w-100" data-notified="true" data-user-logged-in="false">
840 @Translate(Translations.Products.NotifyWhenBackOnStockSent)
841 </button>
842 <text>{{/ifCond}}</text>
843 }
844 {{/ifCond}}
845 </div>
846 {{else}}
847 <div class="actions">
848 <a href="{{link}}" id="CartButton_{{id}}" title="@Translate(Translations.Products.ViewMore)" onclick="{{googleImpressionClick}}" class="btn btn-fill--neutral">@Translate(Translations.Products.ViewMore)</a>
849 </div>
850 {{/if}}
851 </div>
852 </div>
853 </div>
854 {{/.}}
855 </script>
856
857
858 <script id="ProductGridItemList" type="text/x-template">
859 {{#.}}
860 <div id="Product{{id}}" data-template="ProductGridItem" class="product-item col-6 col-lg-3 col-xxl-2 ">
861 {{#Product}}
862 {{>ProductGridItem}}
863 {{/Product}}
864 </div>
865 {{/.}}
866 </script>
867 @SnippetEnd("BottomJS")
868 @* @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> *@
869 @using Dynamicweb.Core
870 @using System
871 @using System.Web
872 @using System.Collections.Generic
873 @using Df.Dw
874 @* @using Dynamicweb.Rapido.Blocks *@
875 @* @using Koncentric.Dw.Rapido *@
876 @using Dynamicweb.Security.UserManagement
877
878
879
880 @SnippetStart("BottomJS")
881 @{
882 var areaInfoProductItemList = Df.Dw.Rapido.AreaInfo.Current();
883 var DesignFolderProductItemList = Pageview.Layout.Design.Name;
884 var userIsLoggedInProductItemList = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
885 //string salesUOMProductItemList = GetString("Ecom:Product:Field.SalesUOM.Value");
886 }
887
888 <script id="ProductItemContainer" type="text/x-template">
889 {{#.}}
890 <div id="Product{{id}}" data-template="ProductItem" class="product-item">
891 {{#Product}}
892 {{>ProductItem}}
893 {{/Product}}
894 </div>
895 {{/.}}
896 </script>
897
898 <script id="ProductListItem" type="text/x-template">
899 {{#.}}
900 {{#if googleImpression}}
901 <text>{{{googleEnchantImpression 'Product catalogue' currency googleImpression}}}</text>
902 {{/if}}
903 <input type="hidden" name="ProductLoopCounter{{id}}" value="{{id}}" />
904 <input type="hidden" name="ProductID{{id}}" value="{{productId}}" />
905 <input type="hidden" value="{{variantid}}" name="VariantID{{id}}" id="Variant_{{id}}" />
906 <div class="product-item--list p-2">
907 <div class="c0">
908 <div class="product-item__image">
909 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="image-hover__wrapper">
910 <img class="b-lazy" src="/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{image}}"
911 data-src="/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{image}}" alt="{{name}}" />
912 {{#if secondaryImage}}
913 <img class="b-lazy" data-secondary-image-src="/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{secondaryImage}}" alt="{{name}}" />
914 {{/if}}
915 {{#StickersContainers}}
916 {{>StickersContainer}}
917 {{/StickersContainers}}
918 </a>
919 </div>
920 </div>
921 <div class="c1">
922 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="product-item__title text-decoration-none">{{name}}</a>
923 <div class="c11 flex-wrap child-mr-2 align-items-center">
924 {{#if showProductNumber}}
925 <div class="product-item__number small color-muted"><span class="mr-1 hidden">@Translate(Translations.Products.ProductNumber):</span><span>{{number}}</span></div>
926 {{/if}}
927 <div class="rating--stars my-1">
928 {{#each ratingStars as |item|}}
929 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/{{item}}"></ion-icon>
930 {{/each}}
931 </div>
932 </div>
933
934 {{#if manufacturer/name}}
935 <div class="product-item__number">@Translate(Translations.Products.Brand): <span>{{manufacturer/name}}</span></div>
936 {{/if}}
937
938
939 </div>
940 <div class="c2">
941 <div class="stock">
942 {{#ifCond stockValue '>' 0}}
943 <div class="product-item__stock weight-bold text-uppercase color-stock-ok"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/stock-ok.svg"></ion-icon> @Translate(Translations.Products.InStock)</div>
944 {{else}}
945 <div class="product-item__stock weight-bold text-uppercase color-stock-none"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/stock-none.svg"></ion-icon> @Translate(Translations.Products.OutOfStock)</div>
946 {{/ifCond}}
947 </div>
948 </div>
949 <div class="c3">
950 {{#if description}}
951 <div class="product-item__description">
952 {{{description}}}
953 </div>
954 {{/if}}
955 </div>
956 <div class="c4 flex-wrap">
957 <div class="prices align-self-end">
958 {{#if recommendedPrice}}
959 <span class="product-item__price--recommended my-1 inline-block">@Translate(Translations.Products.RecommendedPrice) {{{recommendedPrice}}}</span>
960 {{/if}}
961 {{#if discount}}
962 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}">{{{discount}}}</span>
963 {{/if}}
964 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}">{{{priceWithoutVAT}}}</span>
965
966 {{#if showPriceWithoutVAT}}
967 <span class="product-item__price--nosale color-brand my-1 inline-block">{{{priceWithoutVAT}}}</span>
968 {{#if showPriceWithVAT}}
969 <small>{{{priceWithVAT}}} @Translate(Translations.Products.InclVAT)</small>
970 {{/if}}
971 {{else}}
972 {{#if showPriceWithVAT}}
973 <span class="product-item__price--nosale color-brand my-1 inline-block">{{{priceWithVAT}}}</span>
974 {{/if}}
975 {{/if}}
976 </div>
977 <div class="product-item__extra">
978 {{#if discountAmount}}
979 <span class="product-item__price--discount">@Translate(Translations.Products.YouSave) {{discountPercentage}} ({{discountAmount}})</span>
980 {{/if}}
981 {{#if unitContent}}
982 <span>@Translate(Translations.Products.SalesUOM) {{unitContent}}</span>
983 {{/if}}
984 {{#ifCond minimumQuantity '>' 1}}
985 <span>@Translate(Translations.Products.MinimumQuantity) {{minimumQuantity}} @Translate(Translations.Products.Buc)</span>
986 {{/ifCond}}
987 {{#if promisedReceiptDate}}
988 <span class="product-item__promised--date">{{promisedReceiptDate}}</span>
989 {{/if}}
990 </div>
991 </div>
992
993 <div class="c5 flex-wrap align-items-center">
994 <div class="c51">
995 <div class="product__icons child-mr-1">
996 {{#if productFields/icon1}}
997 <img alt="{{productFields/icon1Alt}}" data-tooltip-content="{{productFields/icon1Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon1}}" />
998 {{/if}}
999 {{#if productFields/icon2}}
1000 <img alt="{{productFields/icon2Alt}}" data-tooltip-content="{{productFields/icon2Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon2}}" />
1001 {{/if}}
1002 {{#if productFields/icon3}}
1003 <img alt="{{productFields/icon3Alt}}" data-tooltip-content="{{productFields/icon3Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon3}}" />
1004 {{/if}}
1005 {{#if productFields/icon4}}
1006 <img alt="{{productFields/icon4Alt}}" data-tooltip-content="{{productFields/icon4Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon4}}" />
1007 {{/if}}
1008 {{#if productFields/icon5}}
1009 <img alt="{{productFields/icon5Alt}}" data-tooltip-content="{{productFields/icon5Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon5}}" />
1010 {{/if}}
1011 {{#if productFields/icon6}}
1012 <img alt="{{productFields/icon6Alt}}" data-tooltip-content="{{productFields/icon6Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon6}}" />
1013 {{/if}}
1014 {{#if productFields/icon7}}
1015 <img alt="{{productFields/icon7Alt}}" data-tooltip-content="{{productFields/icon7Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon7}}" />
1016 {{/if}}
1017 {{#if productFields/icon8}}
1018 <img alt="{{productFields/icon8Alt}}" data-tooltip-content="{{productFields/icon8Alt}}" class="item" src="/Admin/Public/GetImage.ashx?width=40&height=40&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{productFields/icon8}}" />
1019 {{/if}}
1020 </div>
1021 <div class="list">
1022 {{#if showFavoriteLink}}
1023 <div class="item">
1024 {{#ifCond isFavoriteInAtLeastOneList "==" "true"}}
1025 <button class="product-item__favorite on btn-icon" data-tooltip-content="@Translate(Translations.Products.RemoveFromFavorites)" aria-label="Open favorites list" has-variants="{{hasVariants}}" onclick="openModal({id:'favoriteProductListModal{{productId}}'})">
1026 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/favorites-on.svg"></ion-icon>
1027 </button>
1028 {{else}}
1029 <button class="product-item__favorite off btn-icon" data-tooltip-content="@Translate(Translations.Products.AddToFavorites)" aria-label="Open favorites list" has-variants="{{hasVariants}}" onclick="openModal({id:'favoriteProductListModal{{productId}}'})">
1030 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/favorites-off.svg"></ion-icon>
1031 </button>
1032 {{/ifCond}}
1033
1034 <df-modal id="favoriteProductListModal{{productId}}"
1035 data-was-added-to-list="@Translate(Translations.Products.WasAddedToFavoriteList)"
1036 data-was-removed-from-list="@Translate(Translations.Products.WasRemovedFromFavoriteList)"
1037 data-product-name="{{name}}"
1038 heading="@Translate(Translations.Products.AddToFavorites)">
1039 <span>
1040 {{#Favorite}}
1041 {{>FavoriteTemplate}}
1042 {{/Favorite}}
1043
1044 <div data-link="{{createNewFavoriteList}}"
1045 data-enter-list-name="@Translate(Translations.Products.EnterAListName)"
1046 data-list-already-exists="@Translate(Translations.Products.ListWithSameNameAlreadyExists)">
1047 <p class="margin-bottom-1em">@Translate(Translations.Products.OrCreateOneAndAddTheProductToIt)</p>
1048 <df-input type="text" value="" class="fav--list--name" name="favorite" id="favorite" placeholder="@Translate(Translations.Products.OrCreateOne)"></df-input>
1049 <button type="button" class="submit--fav--list">@Translate(Translations.General.Create)</button>
1050 </div>
1051 </span>
1052 </df-modal>
1053 </div>
1054 {{/if}}
1055 <div class="item">
1056 <button name="Compare{{productId}}{{variantId}}" class="btn btn-fill--accent compare-trigger color-muted" data-compare data-tooltip="@Translate(Translations.Products.AddToCompare)" data-add-compare='@Translate(Translations.Products.AddToCompare)' data-remove-compare='@Translate(Translations.Products.RemoveFromCompare)' data-url="{{link}}" data-variant-id="{{variantid}}" data-id="{{productId}}" data-code="{{number}}" data-img="/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}" data-name="{{name}}" data-group="{{groupId}}"><span>@Translate(Translations.Products.AddToCompare)</span></button>
1057 </div>
1058 </div>
1059 </div>
1060 </div>
1061 <div class="c6">
1062 {{#if allowAddToCart}}
1063 <div class="actions">
1064 {{#ifCond stockValue '>' 0}}
1065 <form>
1066 <input type="hidden" name="ProductID" value="{{productId}}" />
1067 <input type="hidden" name="VariantID" value="{{variantId}}" />
1068 <input type="hidden" name="ID" value="@areaInfoProductItemList.MiniCartFeedPage.ID.ToString()" />
1069 <input type="hidden" name="redirect" value="false" />
1070 <input type="hidden" name="CartCmd" value="add" />
1071 <df-quantity type="number" id="Quantity_{{id}}" class="product-item__quantity" name="Quantity" value="{{minimumQuantity}}" min="{{minimumQuantity}}" max="{{stockValue}}" step="{{quantityStep}}"></df-quantity>
1072 <button type="button" id="CartButton_{{id}}" class="btn-fill--buy {{disabledBuyButton}}"
1073 icon-position="right"
1074 onclick="{{facebookPixelAction}}" {{disabledBuyButton}}
1075 data-role="add-to-cart"
1076 message-success="@Translate(Translations.Cart.ProductIsAddedToTheCart)"
1077 >
1078 <span>@Translate(Translations.Cart.AddToCart)</span>
1079 <span class="icon"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/cart.svg"></ion-icon></span>
1080 </button>
1081 </form>
1082 {{else}}
1083
1084 <div class="stock-notif-translates"
1085 data-notification-already-sent="@Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)"
1086 data-notification-registered="@Translate(Translations.Products.NotifyWhenBackOnStockRegistered)"></div>
1087 @* Logic : if user is anonymous , we show the modal asking for email: otherwise the email is retrieved from account *@
1088 @if (userIsLoggedInProductItemList)
1089 {
1090 <text>{{#ifCond notificationRegistered '==' false}}</text>
1091 <button type="button" class="btn-fill--muted" data-create-notify="{{notifyWhenBackOnStockLink}}" data-notified="false" data-user-logged-in="true"> @Translate(Translations.Products.NotifyWhenBackOnStock)</button>
1092
1093 <text>{{else}}</text>
1094 <button type="button" class="btn-fill--muted" data-notified="true" data-user-logged-in="true">@Translate(Translations.Products.NotifyWhenBackOnStockSent)</button>
1095 <text>{{/ifCond}}</text>
1096
1097 }
1098 else
1099 {
1100 <text>{{#ifCond notificationRegistered '==' false}}</text>
1101 <button type="button" class="btn-fill--muted" onclick="openModal({id:'notifyWhenBackOnStock{{productId}}'})" data-notified="false" data-user-logged-in="false">@Translate(Translations.Products.NotifyWhenBackOnStock)</button>
1102 <df-modal id="notifyWhenBackOnStock{{productId}}"
1103 data-product-name="{{name}}"
1104 heading="@Translate(Translations.Products.NotifyWhenBackOnStock)">
1105 <span>
1106 <form name="{{productId}}" action="/Default.aspx?ID=@GetPageIdByNavigationTag("ProductsPage")">
1107 <input type="hidden" name="ProductID" id="ProductID" value="{{productId}}" />
1108 <input type="hidden" name="VariantID" id="VariantID" value="{{variantId}}" />
1109 <input type="hidden" name="CartCmd" id="CartCmd" value="createnotificationforthisproduct" />
1110 <df-input required class="mb-3" type="email" id="NotificationEmail" name="NotificationEmail" placeholder="@Translate(Translations.General.YourEmailAddress)"></df-input>
1111 <button type="submit" class="create-stock-notification-request btn-fill--brand">@Translate(Translations.Account.CreateRequest)</button>
1112 </form>
1113 </span>
1114 </df-modal>
1115 <text>{{else}}</text>
1116 <button type="button" class="btn-fill--muted" data-notified="true" data-user-logged-in="false">@Translate(Translations.Products.NotifyWhenBackOnStockSent)</button>
1117 <text>{{/ifCond}}</text>
1118 }
1119 {{/ifCond}}
1120
1121 @*<a href="{{link}}" id="CartButton_{{id}}" title="@Translate(Translations.Products.ViewMore)" {{googleImpressionClick}}" class="btn btn-fill--buy">
1122 <small class="icon"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemList/icons/default/cart.svg"></ion-icon></small><span>@Translate(Translations.Cart.AddToCart)</span>
1123 </a>*@
1124 </div>
1125 {{else}}
1126 <div class="actions">
1127 <a href="/Default.aspx?ID={{signInPageId}}" id="CartButton_{{id}}" title='@Translate(Translations.Account.SignIn)' onclick="{{googleImpressionClick}}" class="btn btn-fill--muted">@Translate(Translations.Account.SignIn)</a>
1128 <a href="{{link}}" id="CartButton_{{id}}" title="@Translate(Translations.Products.ViewMore)" onclick="{{googleImpressionClick}}" class="btn btn-fill--neutral">@Translate(Translations.Products.ViewMore)</a>
1129 </div>
1130 {{/if}}
1131 </div>
1132 </div>
1133 {{/.}}
1134 </script>
1135 <script id="ProductListItemList" type="text/x-template">
1136 {{#.}}
1137 <div id="Product{{id}}" data-template="ProductListItem" class="product-item">
1138 {{#Product}}
1139 {{>ProductListItem}}
1140 {{/Product}}
1141 </div>
1142 {{/.}}
1143 </script>
1144 @SnippetEnd("BottomJS")
1145 @* @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> *@
1146 @using Dynamicweb.Core
1147 @using System
1148 @using System.Web
1149 @using System.Collections.Generic
1150 @using Df.Dw
1151 @* @using Dynamicweb.Rapido.Blocks *@
1152 @* @using Koncentric.Dw.Rapido *@
1153 @using Dynamicweb.Security.UserManagement
1154
1155
1156
1157 @SnippetStart("BottomJS")
1158 @{
1159 var areaInfoProductItemDetails = Df.Dw.Rapido.AreaInfo.Current();
1160 var DesignFolderProductItemDetails = Pageview.Layout.Design.Name;
1161 var userIsLoggedInProductItemDetails = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
1162 }
1163 <script id="ProductDetailsItem" type="text/x-template">
1164 {{#.}}
1165 {{#if googleImpression}}
1166 <text>{{{googleEnchantImpression 'Product catalogue' currency googleImpression}}}</text>
1167 {{/if}}
1168 <input type="hidden" name="ProductLoopCounter{{id}}" value="{{id}}" />
1169 <input type="hidden" name="ProductID{{id}}" value="{{productId}}" />
1170
1171 <div class="product-item--details p-2 grid gap-2">
1172 <div class="c0">
1173 <div class="product-item__image">
1174 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="image-hover__wrapper relative">
1175 <img class="b-lazy" src="/Admin/Public/GetImage.ashx?width=70&height=70&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{image}}"
1176 data-src="/Admin/Public/GetImage.ashx?width=70&height=70&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={{image}}" alt="{{name}}" />
1177 {{#if secondaryImage}}
1178 <img class="b-lazy" data-secondary-image-src="/Admin/Public/GetImage.ashx?width=160&height=160&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{secondaryImage}}" alt="{{name}}" />
1179 {{/if}}
1180 {{#StickersContainers}}
1181 {{>StickersContainer}}
1182 {{/StickersContainers}}
1183 {{#if showPrices}}
1184 {{#if Prices}}
1185 {{#displayPromoPrice Prices}}{{/displayPromoPrice}}
1186 {{/if}}
1187 {{/if}}
1188 </a>
1189 </div>
1190 </div>
1191 <div class="c1">
1192 {{#if showFavoriteLink}}
1193 {{#ifCond isFavoriteInAtLeastOneList "==" "true"}}
1194 <button class="product-item__favorite on btn-icon" aria-label="Open favorites list" has-variants="{{hasVariants}}" onclick="openModal({id:'favoriteProductListModal{{productId}}'})">
1195 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/favorites-on.svg"></ion-icon>
1196 </button>
1197 {{else}}
1198 <button class="product-item__favorite off btn-icon" aria-label="Open favorites list" has-variants="{{hasVariants}}" onclick="openModal({id:'favoriteProductListModal{{productId}}'})">
1199 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/favorites-off.svg"></ion-icon>
1200 </button>
1201 {{/ifCond}}
1202
1203 <df-modal id="favoriteProductListModal{{productId}}"
1204 data-was-added-to-list="@Translate(Translations.Products.WasAddedToFavoriteList)"
1205 data-was-removed-from-list="@Translate(Translations.Products.WasRemovedFromFavoriteList)"
1206 data-product-name="{{name}}"
1207 heading="@Translate(Translations.Products.AddToFavorites)">
1208 <span>
1209 {{#Favorite}}
1210 {{>FavoriteTemplate}}
1211 {{/Favorite}}
1212
1213 <div data-link="{{createNewFavoriteList}}"
1214 data-enter-list-name="@Translate(Translations.Products.EnterAListName)"
1215 data-list-already-exists="@Translate(Translations.Products.ListWithSameNameAlreadyExists)">
1216 <p class="margin-bottom-1em">@Translate(Translations.Products.OrCreateOneAndAddTheProductToIt)</p>
1217 <df-input type="text" value="" class="fav--list--name" name="favorite" id="favorite" placeholder="@Translate(Translations.Products.OrCreateOne)"></df-input>
1218 <button type="button" class="submit--fav--list">@Translate(Translations.General.Create)</button>
1219 </div>
1220 </span>
1221 </df-modal>
1222 {{/if}}
1223 <div class="stock">
1224 {{#ifCond stockValue '>' 0}}
1225 <div class="product-item__stock weight-bold text-uppercase color-stock-ok"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/stock-ok.svg"></ion-icon> @Translate(Translations.Products.InStock)</div>
1226 {{else}}
1227 <div class="product-item__stock weight-bold text-uppercase color-stock-none"><ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/stock-none.svg"></ion-icon> @Translate(Translations.Products.OutOfStock)</div>
1228 {{/ifCond}}
1229 </div>
1230 </div>
1231 <div class="c2 flex-wrap">
1232 <div class="c22">
1233 <a href="{{link}}" onclick="{{googleImpressionClick}}" title="{{name}}" class="product-item__title text-decoration-none block">{{name}}</a>
1234 {{#if showProductNumber}}
1235 <div class="product-item__number small color-muted my-1"><span class="mr-1 hidden">@Translate(Translations.Products.ProductNumber):</span> <span>{{number}}</span></div>
1236 {{/if}}
1237 {{#if manufacturer/name}}
1238 <div class="product-item__number small color-muted my-1"><span class="mr-1 hidden">@Translate(Translations.Products.Brand):</span> <span>{{manufacturer/name}}</span></div>
1239 {{/if}}
1240 </div>
1241 <div class="list flex-wrap justify-content-center child-mr-2 align-items-center align-self-end w-100">
1242 <div class="item">
1243 <div class="rating--stars">
1244 {{#each ratingStars as |item|}}
1245 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/{{item}}"></ion-icon>
1246 {{/each}}
1247 </div>
1248 </div>
1249 <div class="item">
1250 <button name="Compare{{productId}}{{variantId}}" class="btn btn-fill--accent compare-trigger color-muted" data-compare data-tooltip="@Translate(Translations.Products.AddToCompare)" data-add-compare='@Translate(Translations.Products.AddToCompare)' data-remove-compare='@Translate(Translations.Products.RemoveFromCompare)' data-url="{{link}}" data-variant-id="{{variantid}}" data-id="{{productId}}" data-code="{{number}}" data-img="/Admin/Public/GetImage.ashx?width=75&height=75&crop=5&Compression=75&FillCanvas=true&DoNotUpscale=true&image={{image}}" data-name="{{name}}" data-group="{{groupId}}"><span>@Translate(Translations.Products.AddToCompare)</span></button>
1251 </div>
1252 </div>
1253 </div>
1254 <div class="c3 flex-wrap align-items-center justify-content-end">
1255 <div class="prices">
1256 <div class="prices">
1257 {{#if discount}}
1258 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}">{{{discount}}}</span>
1259 {{/if}}
1260 <span class="product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}">{{{priceWithoutVAT}}}</span>
1261 {{#if showPriceWithoutVAT}}
1262 <span class="product-item__price--nosale color-brand my-1">{{{priceWithoutVAT}}}</span>
1263 {{#if showPriceWithVAT}}
1264 <small>{{{priceWithVAT}}} @Translate(Translations.Products.InclVAT)</small>
1265 {{/if}}
1266 {{else}}
1267 {{#if showPriceWithVAT}}
1268 <span class="product-item__price--nosale color-brand my-1">{{{priceWithVAT}}}</span>
1269 {{/if}}
1270 {{/if}}
1271 </div>
1272 </div>
1273 </div>
1274 <div class="c4 flex-wrap align-items-center">
1275 {{#if allowAddToCart}}
1276 <div class="actions flex-wrap justify-content-end">
1277 {{#ifCond stockValue '>' 0}}
1278 <form>
1279 <input type="hidden" name="ProductID" value="{{productId}}" />
1280 <input type="hidden" name="VariantID" value="{{variantId}}" />
1281 <input type="hidden" name="ID" value="@areaInfoProductItemDetails.MiniCartFeedPage.ID.ToString()" />
1282 <input type="hidden" name="redirect" value="false" />
1283 <input type="hidden" name="CartCmd" value="add" />
1284 <df-quantity type="number" id="Quantity_{{id}}" class="product-item__quantity" name="Quantity" value="{{minimumQuantity}}" min="{{minimumQuantity}}" max="{{stockValue}}" step="{{quantityStep}}"></df-quantity>
1285 <button type="button" id="CartButton_{{id}}" class="btn-fill--buy btn-icon {{disabledBuyButton}}"
1286 onclick="{{facebookPixelAction}}" {{disabledBuyButton}}
1287 data-role="add-to-cart"
1288 message-success="@Translate(Translations.Cart.ProductIsAddedToTheCart)"
1289 >
1290 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/cart.svg"></ion-icon>
1291 </button>
1292 </form>
1293 {{else}}
1294 <div class="stock-notif-translates"
1295 data-notification-already-sent="@Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)"
1296 data-notification-registered="@Translate(Translations.Products.NotifyWhenBackOnStockRegistered)"></div>
1297 @* Logic : if user is anonymous , we show the modal asking for email: otherwise the email is retrieved from account *@
1298 @if (userIsLoggedInProductItemDetails)
1299 {
1300 <text>{{#ifCond notificationRegistered '==' false}}</text>
1301 <button type="button" class="btn-fill--muted btn-icon" data-tooltip-content="@Translate(Translations.Products.NotifyWhenBackOnStock)" data-create-notify="{{notifyWhenBackOnStockLink}}" data-notified="false" data-user-logged-in="true">
1302 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/alert-circle.svg"></ion-icon>
1303 </button>
1304
1305 <text>{{else}}</text>
1306 <button type="button" class="btn-fill--muted btn-icon" data-tooltip-content="@Translate(Translations.Products.NotifyWhenBackOnStockSent)" data-notified="true" data-user-logged-in="true">
1307 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/alert-circle.svg"></ion-icon>
1308 </button>
1309 <text>{{/ifCond}}</text>
1310
1311 }
1312 else
1313 {
1314 <text>{{#ifCond notificationRegistered '==' false}}</text>
1315 <button type="button" class="btn-fill--muted btn-icon" data-tooltip-content="@Translate(Translations.Products.NotifyWhenBackOnStock)" onclick="openModal({id:'notifyWhenBackOnStock{{productId}}'})" data-notified="false" data-user-logged-in="false">
1316 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/alert-circle.svg"></ion-icon>
1317 </button>
1318 <df-modal id="notifyWhenBackOnStock{{productId}}"
1319 data-product-name="{{name}}"
1320 heading="@Translate(Translations.Products.NotifyWhenBackOnStock)">
1321 <span>
1322 <form name="{{productId}}" action="/Default.aspx?ID=@GetPageIdByNavigationTag("ProductsPage")">
1323 <input type="hidden" name="ProductID" id="ProductID" value="{{productId}}" />
1324 <input type="hidden" name="VariantID" id="VariantID" value="{{variantId}}" />
1325 <input type="hidden" name="CartCmd" id="CartCmd" value="createnotificationforthisproduct" />
1326 <df-input required type="email" class="mb-3" id="NotificationEmail" name="NotificationEmail" placeholder="@Translate(Translations.General.YourEmailAddress)"></df-input>
1327 <button type="submit" class="create-stock-notification-request btn-fill--brand">@Translate(Translations.Account.CreateRequest)</button>
1328 </form>
1329 </span>
1330 </df-modal>
1331 <text>{{else}}</text>
1332 <button type="button" class="btn-fill--muted btn-icon" data-tooltip-content="@Translate(Translations.Products.NotifyWhenBackOnStockSent)" data-notified="true" data-user-logged-in="false">
1333 <ion-icon src="/Files/Templates/Designs/@DesignFolderProductItemDetails/icons/default/alert-circle.svg"></ion-icon>
1334 </button>
1335 <text>{{/ifCond}}</text>
1336 }
1337 {{/ifCond}}
1338 </div>
1339 {{else}}
1340 <div class="actions">
1341 <a href="/Default.aspx?ID={{signInPageId}}" id="CartButton_{{id}}" title='@Translate(Translations.Account.SignIn)' onclick="{{googleImpressionClick}}" class="btn btn-fill--accent">@Translate(Translations.Account.SignIn)</a>
1342 <a href="{{link}}" id="CartButton_{{id}}" title="@Translate(Translations.Products.ViewMore)" onclick="{{googleImpressionClick}}" class="btn btn-fill--neutral">@Translate(Translations.Products.ViewMore)</a>
1343 </div>
1344 {{/if}}
1345 </div>
1346 </div>
1347 {{/.}}
1348 </script>
1349 <script id="ProductDetailsItemList" type="text/x-template">
1350 {{#.}}
1351 <div id="Product{{id}}" data-template="ProductDetailsItem" class="product-item">
1352 {{#Product}}
1353 {{>ProductDetailsItem}}
1354 {{/Product}}
1355 </div>
1356 {{/.}}
1357 </script>
1358 @SnippetEnd("BottomJS")
1359
1360 @{
1361 //Font settings
1362 var fonts = new string[] {
1363 getFontFamily("Layout", "HeaderFont"),
1364 getFontFamily("Layout", "SubheaderFont"),
1365 getFontFamily("Layout", "TertiaryHeaderFont"),
1366 getFontFamily("Layout", "BodyText"),
1367 getFontFamily("Layout", "Header", "ToolsFont"),
1368 getFontFamily("Layout", "Header", "NavigationFont"),
1369 getFontFamily("Layout", "MobileNavigation", "Font"),
1370 getFontFamily("ProductList", "Facets", "HeaderFont"),
1371 getFontFamily("ProductPage", "PriceFontDesign"),
1372 getFontFamily("Ecommerce", "SaleSticker", "Font"),
1373 getFontFamily("Ecommerce", "NewSticker", "Font"),
1374 getFontFamily("Ecommerce", "CustomSticker", "Font")
1375 };
1376
1377 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
1378 var googleAPIKey = areaInfo.GoogleMapsAPIKey;
1379 var user = User.GetCurrentExtranetUser();
1380 bool isB2B = user.IsB2b();
1381 bool isB2C = user.IsB2c();
1382 var DesignFolder = Pageview.Layout.Design.Name;
1383 bool useFontAwesomePro = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetBoolean("UseFontAwesomePro");
1384 string fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomeFree/css/fontawesome-all.min.css";
1385
1386 string cssMapPath = "/Files/Templates/Designs/" + DesignFolder + "/dist/app.bundle.css";
1387 var cssStyleFileInfo = new System.IO.FileInfo(Dynamicweb.Core.SystemInformation.MapPath(cssMapPath));
1388
1389 string autoCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/rapido/wizaris_" + Model.Area.ID.ToString() + ".min.css?ticks=" + Model.Area.UpdatedDate.Ticks;
1390 string wizarisCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/Dotfusion/app.css?ticks=" + Model.Area.UpdatedDate.Ticks;
1391 // string ApplicationCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks;
1392 string ApplicationDeferCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/defer.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks;
1393
1394 if (useFontAwesomePro)
1395 {
1396 fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomePro/css/fontawesome-all.min.css";
1397 }
1398 }
1399
1400 @{
1401 Block master = new Block()
1402 {
1403 Id = "Master",
1404 BlocksList = new List<Block> {
1405 new Block {
1406 Id = "MasterTopSnippets",
1407 SortId = 10
1408 },
1409 new Block {
1410 Id = "MasterMain",
1411 SortId = 20,
1412 Template = RenderMain(),
1413 SkipRenderBlocksList = true,
1414 BlocksList = new List<Block> {
1415 // new Block {
1416 // Id = "MasterHeaderTop",
1417 // SortId = 1,
1418 // Template = RenderMasterTop(),
1419 // SkipRenderBlocksList = true
1420 // },
1421 new Block {
1422 Id = "MasterHeader",
1423 SortId = 10,
1424 Template = RenderMasterHeader(),
1425 SkipRenderBlocksList = true
1426 },
1427 new Block {
1428 Id = "MasterPageContent",
1429 SortId = 20,
1430 Template = RenderPageContent()
1431 }
1432 }
1433 },
1434 new Block {
1435 Id = "MasterFooter",
1436 SortId = 30
1437 },
1438 new Block {
1439 Id = "MasterReferences",
1440 SortId = 40
1441 },
1442 new Block {
1443 Id = "MasterBottomSnippets",
1444 SortId = 50
1445 }
1446 }
1447 };
1448
1449 masterPage.Add(master);
1450 }
1451
1452 @* Include the required Grid builder (Contains the methods @RenderBlockList and @RenderBlock) *@
1453 @using System.Text.RegularExpressions
1454 @using System.Collections.Generic
1455 @using System.Reflection
1456 @using System.Web
1457 @using System.Web.UI.HtmlControls
1458 @using Dynamicweb.Rapido.Blocks.Components
1459 @using Dynamicweb.Rapido.Blocks.Components.Articles
1460 @using Dynamicweb.Rapido.Blocks.Components.Documentation
1461 @using Dynamicweb.Rapido.Blocks
1462
1463
1464 @*--- START: Base block renderers ---*@
1465
1466 @helper RenderBlockList(List<Block> blocks)
1467 {
1468 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false;
1469 blocks = blocks.OrderBy(item => item.SortId).ToList();
1470
1471 foreach (Block item in blocks)
1472 {
1473 if (debug) {
1474 <!-- Block START: @item.Id -->
1475 }
1476
1477 if (item.Design == null)
1478 {
1479 @RenderBlock(item)
1480 }
1481 else if (item.Design.RenderType == RenderType.None) {
1482 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : "";
1483
1484 <div class="@cssClass dw-mod">
1485 @RenderBlock(item)
1486 </div>
1487 }
1488 else if (item.Design.RenderType != RenderType.Hide)
1489 {
1490 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : "";
1491
1492 if (!item.SkipRenderBlocksList) {
1493 if (item.Design.RenderType == RenderType.Row)
1494 {
1495 <div class="grid grid--align-content-start @cssClass dw-mod" id="Block__@item.Id">
1496 @RenderBlock(item)
1497 </div>
1498 }
1499
1500 if (item.Design.RenderType == RenderType.Column)
1501 {
1502 string hidePadding = item.Design.HidePadding ? "u-no-padding" : "";
1503 string size = item.Design.Size ?? "12";
1504 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size;
1505
1506 <div class="col-@item.Design.Size grid__col-md-@item.Design.Size grid__col-sm-12 grid__col-xs-12 @hidePadding @cssClass dw-mod" id="Block__@item.Id">
1507 @RenderBlock(item)
1508 </div>
1509 }
1510
1511 if (item.Design.RenderType == RenderType.Table)
1512 {
1513 <table class="table @cssClass dw-mod" id="Block__@item.Id">
1514 @RenderBlock(item)
1515 </table>
1516 }
1517
1518 if (item.Design.RenderType == RenderType.TableRow)
1519 {
1520 <tr class="@cssClass dw-mod" id="Block__@item.Id">
1521 @RenderBlock(item)
1522 </tr>
1523 }
1524
1525 if (item.Design.RenderType == RenderType.TableColumn)
1526 {
1527 <td class="@cssClass dw-mod" id="Block__@item.Id">
1528 @RenderBlock(item)
1529 </td>
1530 }
1531
1532 if (item.Design.RenderType == RenderType.CardHeader)
1533 {
1534 <div class="card-header @cssClass dw-mod">
1535 @RenderBlock(item)
1536 </div>
1537 }
1538
1539 if (item.Design.RenderType == RenderType.CardBody)
1540 {
1541 <div class="card @cssClass dw-mod">
1542 @RenderBlock(item)
1543 </div>
1544 }
1545
1546 if (item.Design.RenderType == RenderType.CardFooter)
1547 {
1548 <div class="card-footer @cssClass dw-mod">
1549 @RenderBlock(item)
1550 </div>
1551 }
1552 }
1553 else
1554 {
1555 @RenderBlock(item)
1556 }
1557 }
1558
1559 if (debug) {
1560 <!-- Block END: @item.Id -->
1561 }
1562 }
1563 }
1564
1565 @helper RenderBlock(Block item)
1566 {
1567 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false;
1568
1569 if (item.Template != null)
1570 {
1571 @BlocksPage.RenderTemplate(item.Template)
1572 }
1573
1574 if (item.Component != null)
1575 {
1576 string customSufix = "Custom";
1577 string methodName = item.Component.HelperName;
1578
1579 ComponentBase[] methodParameters = new ComponentBase[1];
1580 methodParameters[0] = item.Component;
1581 Type methodType = this.GetType();
1582
1583 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix);
1584 MethodInfo generalMethod = methodType.GetMethod(methodName);
1585
1586 try {
1587 if (debug) {
1588 <!-- Component: @methodName.Replace("Render", "") -->
1589 }
1590 @customMethod.Invoke(this, methodParameters).ToString();
1591 } catch {
1592 try {
1593 @generalMethod.Invoke(this, methodParameters).ToString();
1594 } catch(Exception ex) {
1595 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex);
1596 }
1597 }
1598 }
1599
1600 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList)
1601 {
1602 @RenderBlockList(item.BlocksList)
1603 }
1604 }
1605
1606 @*--- END: Base block renderers ---*@
1607
1608
1609 @* Include the components *@
1610 @using Dynamicweb.Rapido.Blocks.Components
1611 @using Dynamicweb.Rapido.Blocks.Components.General
1612 @using Dynamicweb.Rapido.Blocks
1613 @using System.IO
1614
1615 @* Required *@
1616 @using Dynamicweb.Rapido.Blocks.Components
1617 @using Dynamicweb.Rapido.Blocks.Components.General
1618 @using Dynamicweb.Rapido.Blocks
1619
1620
1621 @helper Render(ComponentBase component)
1622 {
1623 if (component != null)
1624 {
1625 @component.Render(this)
1626 }
1627 }
1628
1629 @* Components *@
1630 @using System.Reflection
1631 @using Dynamicweb.Rapido.Blocks.Components.General
1632
1633
1634 @* Component *@
1635
1636 @helper RenderIcon(Icon settings)
1637 {
1638 if (settings != null)
1639 {
1640 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : "";
1641
1642 if (settings.Name != null)
1643 {
1644 if (string.IsNullOrEmpty(settings.Label))
1645 {
1646 <i class="@settings.Prefix @settings.Name @settings.CssClass" @color></i>
1647 }
1648 else
1649 {
1650 if (settings.LabelPosition == IconLabelPosition.Before)
1651 {
1652 <div class="u-flex u-flex--align-items-center @settings.CssClass">@settings.Label <i class="@settings.Prefix @settings.Name u-margin-left" @color></i></div>
1653 }
1654 else
1655 {
1656 <div class="u-flex u-flex--align-items-center @settings.CssClass"><i class="@settings.Prefix @settings.Name u-margin-right--lg u-w20px" @color></i>@settings.Label</div>
1657 }
1658 }
1659 }
1660 else if (!string.IsNullOrEmpty(settings.Label))
1661 {
1662 @settings.Label
1663 }
1664 }
1665 }
1666 @using System.Reflection
1667 @using Dynamicweb.Rapido.Blocks.Components.General
1668 @using Dynamicweb.Rapido.Blocks.Components
1669 @using Dynamicweb.Core
1670
1671 @* Component *@
1672
1673 @helper RenderButton(Button settings)
1674 {
1675 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null))
1676 {
1677 Dictionary<string, string> attributes = new Dictionary<string, string>();
1678 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>();
1679 if (settings.Disabled) {
1680 attributes.Add("disabled", "true");
1681 classList.Add("disabled");
1682 }
1683
1684 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle))
1685 {
1686 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N");
1687 @RenderConfirmDialog(settings);
1688 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true";
1689 }
1690
1691 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
1692 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
1693 if (!string.IsNullOrEmpty(settings.AltText))
1694 {
1695 attributes.Add("title", settings.AltText);
1696 }
1697 else if (!string.IsNullOrEmpty(settings.Title))
1698 {
1699 attributes.Add("title", settings.Title);
1700 }
1701
1702 var onClickEvents = new List<string>();
1703 if (!string.IsNullOrEmpty(settings.OnClick))
1704 {
1705 onClickEvents.Add(settings.OnClick);
1706 }
1707 if (!string.IsNullOrEmpty(settings.Href))
1708 {
1709 onClickEvents.Add("location.href='" + settings.Href + "'");
1710 }
1711 if (onClickEvents.Count > 0)
1712 {
1713 attributes.Add("onClick", string.Join(";", onClickEvents));
1714 }
1715
1716 if (settings.ButtonLayout != ButtonLayout.None)
1717 {
1718 classList.Add("btn");
1719 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower();
1720 if (btnLayout == "linkclean")
1721 {
1722 btnLayout = "link-clean"; //fix
1723 }
1724 classList.Add("btn-fill--" + btnLayout);
1725 }
1726
1727 if (settings.Icon == null)
1728 {
1729 settings.Icon = new Icon();
1730 }
1731
1732 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : "";
1733 settings.Icon.Label = settings.Title;
1734
1735 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower());
1736
1737 <button class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</button>
1738 }
1739 }
1740
1741 @helper RenderConfirmDialog(Button settings)
1742 {
1743 Modal confirmDialog = new Modal {
1744 Id = settings.Id,
1745 Width = ModalWidth.Sm,
1746 Heading = new Heading
1747 {
1748 Level = 2,
1749 Title = settings.ConfirmTitle
1750 },
1751 BodyText = settings.ConfirmText
1752 };
1753
1754 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"});
1755 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick });
1756
1757 @Render(confirmDialog)
1758 }
1759 @using Dynamicweb.Rapido.Blocks.Components.General
1760 @using Dynamicweb.Rapido.Blocks.Components
1761 @using Dynamicweb.Core
1762
1763 @helper RenderDashboard(Dashboard settings)
1764 {
1765 var widgets = settings.GetWidgets();
1766
1767 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor))
1768 {
1769 //set bg color for them
1770
1771 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor);
1772 int r = Convert.ToInt16(color.R);
1773 int g = Convert.ToInt16(color.G);
1774 int b = Convert.ToInt16(color.B);
1775
1776 var count = widgets.Length;
1777 var max = Math.Max(r, Math.Max(g, b));
1778 double step = 255.0 / (max * count);
1779 var i = 0;
1780 foreach (var widget in widgets)
1781 {
1782 i++;
1783
1784 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")";
1785 widget.BackgroundColor = shade;
1786 }
1787 }
1788
1789 <div class="dashboard @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
1790 @foreach (var widget in widgets)
1791 {
1792 <div class="dashboard__widget">
1793 @Render(widget)
1794 </div>
1795 }
1796 </div>
1797 }
1798 @using Dynamicweb.Rapido.Blocks.Components.General
1799 @using Dynamicweb.Rapido.Blocks.Components
1800
1801 @helper RenderDashboardWidgetLink(DashboardWidgetLink settings)
1802 {
1803 if (!string.IsNullOrEmpty(settings.Link))
1804 {
1805 var backgroundStyles = "";
1806 if (!string.IsNullOrEmpty(settings.BackgroundColor))
1807 {
1808 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\"";
1809 }
1810
1811 <a href="@settings.Link" class="widget widget--link @settings.CssClass dw-mod" @backgroundStyles title="@settings.Title" @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
1812 <div class="u-center-middle u-color-light">
1813 @if (settings.Icon != null)
1814 {
1815 settings.Icon.CssClass += "widget__icon";
1816 @Render(settings.Icon)
1817 }
1818 <div class="widget__title">@settings.Title</div>
1819 </div>
1820 </a>
1821 }
1822 }
1823 @using Dynamicweb.Rapido.Blocks.Components.General
1824 @using Dynamicweb.Rapido.Blocks.Components
1825
1826 @helper RenderDashboardWidgetCounter(DashboardWidgetCounter settings)
1827 {
1828 var backgroundStyles = "";
1829 if (!string.IsNullOrEmpty(settings.BackgroundColor))
1830 {
1831 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'";
1832 }
1833
1834 <div class="widget @settings.CssClass dw-mod" @backgroundStyles @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
1835 <div class="u-center-middle u-color-light">
1836 @if (settings.Icon != null)
1837 {
1838 settings.Icon.CssClass += "widget__icon";
1839 @Render(settings.Icon)
1840 }
1841 <div class="widget__counter">@settings.Count</div>
1842 <div class="widget__title">@settings.Title</div>
1843 </div>
1844 </div>
1845 }
1846 @using System.Reflection
1847 @using Dynamicweb.Rapido.Blocks.Components.General
1848 @using Dynamicweb.Rapido.Blocks.Components
1849 @using Dynamicweb.Core
1850
1851 @* Component *@
1852
1853 @helper RenderLink(Link settings)
1854 {
1855 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null))
1856 {
1857 Dictionary<string, string> attributes = new Dictionary<string, string>();
1858 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>();
1859 if (settings.Disabled)
1860 {
1861 attributes.Add("disabled", "true");
1862 classList.Add("disabled");
1863 }
1864
1865 if (!string.IsNullOrEmpty(settings.AltText))
1866 {
1867 attributes.Add("title", settings.AltText);
1868 }
1869 else if (!string.IsNullOrEmpty(settings.Title))
1870 {
1871 attributes.Add("title", settings.Title);
1872 }
1873
1874 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
1875 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
1876 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); }
1877 attributes.Add("href", settings.Href);
1878
1879 if (settings.ButtonLayout != ButtonLayout.None)
1880 {
1881 classList.Add("btn");
1882 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower();
1883 if (btnLayout == "linkclean")
1884 {
1885 btnLayout = "link-clean"; //fix
1886 }
1887 classList.Add("btn--" + btnLayout);
1888 }
1889
1890 if (settings.Icon == null)
1891 {
1892 settings.Icon = new Icon();
1893 }
1894 settings.Icon.Label = settings.Title;
1895
1896 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None)
1897 {
1898 settings.Rel = LinkRelType.Noopener;
1899 }
1900 if (settings.Target != LinkTargetType.None)
1901 {
1902 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower());
1903 }
1904 if (settings.Download)
1905 {
1906 attributes.Add("download", "true");
1907 }
1908 if (settings.Rel != LinkRelType.None)
1909 {
1910 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower());
1911 }
1912
1913 <a class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</a>
1914 }
1915 }
1916 @using System.Reflection
1917 @using Dynamicweb.Rapido.Blocks.Components
1918 @using Dynamicweb.Rapido.Blocks.Components.General
1919 @using Dynamicweb.Rapido.Blocks
1920
1921
1922 @* Component *@
1923
1924 @helper RenderRating(Rating settings)
1925 {
1926 if (settings.Score > 0)
1927 {
1928 int rating = settings.Score;
1929 string iconType = "fa-star";
1930
1931 switch (settings.Type.ToString()) {
1932 case "Stars":
1933 iconType = "fa-star";
1934 break;
1935 case "Hearts":
1936 iconType = "fa-heart";
1937 break;
1938 case "Lemons":
1939 iconType = "fa-lemon";
1940 break;
1941 case "Bombs":
1942 iconType = "fa-bomb";
1943 break;
1944 }
1945
1946 <div class="u-ta-right">
1947 @for (int i = 0; i < settings.OutOf; i++)
1948 {
1949 <i class="@(rating > i ? "fas" : "far") @iconType"></i>
1950 }
1951 </div>
1952 }
1953 }
1954 @using System.Reflection
1955 @using Dynamicweb.Rapido.Blocks.Components.General
1956 @using Dynamicweb.Rapido.Blocks.Components
1957
1958
1959 @* Component *@
1960
1961 @helper RenderSelectFieldOption(SelectFieldOption settings)
1962 {
1963 Dictionary<string, string> attributes = new Dictionary<string, string>();
1964 if (settings.Checked) { attributes.Add("selected", "true"); }
1965 if (settings.Disabled) { attributes.Add("disabled", "true"); }
1966 if (settings.Value != null) { attributes.Add("value", settings.Value); }
1967 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
1968
1969 <option @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Label</option>
1970 }
1971 @using System.Reflection
1972 @using Dynamicweb.Rapido.Blocks.Components.General
1973 @using Dynamicweb.Rapido.Blocks.Components
1974
1975
1976 @* Component *@
1977
1978 @helper RenderNavigation(Navigation settings) {
1979 @RenderNavigation(new
1980 {
1981 id = settings.Id,
1982 cssclass = settings.CssClass,
1983 startLevel = settings.StartLevel,
1984 endlevel = settings.EndLevel,
1985 expandmode = settings.Expandmode,
1986 sitemapmode = settings.SitemapMode,
1987 template = settings.Template
1988 })
1989 }
1990 @using Dynamicweb.Rapido.Blocks.Components.General
1991 @using Dynamicweb.Rapido.Blocks.Components
1992
1993
1994 @* Component *@
1995
1996 @helper RenderBreadcrumbNavigation(BreadcrumbNavigation settings) {
1997 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id;
1998 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template;
1999 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel;
2000 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel;
2001 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode;
2002 settings.SitemapMode = false;
2003
2004 @RenderNavigation(settings)
2005 }
2006 @using Dynamicweb.Rapido.Blocks.Components.General
2007 @using Dynamicweb.Rapido.Blocks.Components
2008
2009
2010 @* Component *@
2011
2012 @helper RenderLeftNavigation(LeftNavigation settings) {
2013 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id;
2014 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template;
2015 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel;
2016 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel;
2017 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode;
2018
2019 <div class="grid__cell">
2020 @RenderNavigation(settings)
2021 </div>
2022 }
2023 @using System.Reflection
2024 @using Dynamicweb.Rapido.Blocks.Components.General
2025 @using Dynamicweb.Core
2026
2027 @* Component *@
2028
2029 @helper RenderHeading(Heading settings)
2030 {
2031 if (settings != null && !string.IsNullOrEmpty(settings.Title))
2032 {
2033 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : "";
2034 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div";
2035
2036 @("<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">")
2037 if (!string.IsNullOrEmpty(settings.Link))
2038 {
2039 @Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None })
2040 }
2041 else
2042 {
2043 if (settings.Icon == null)
2044 {
2045 settings.Icon = new Icon();
2046 }
2047 settings.Icon.Label = settings.Title;
2048 @Render(settings.Icon)
2049 }
2050 @("</" + tagName + ">");
2051 }
2052 }
2053 @using Dynamicweb.Rapido.Blocks.Components
2054 @using Dynamicweb.Rapido.Blocks.Components.General
2055 @using Dynamicweb.Rapido.Blocks
2056
2057
2058 @* Component *@
2059
2060 @helper RenderImage(Image settings)
2061 {
2062 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None)
2063 {
2064 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
2065 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); }
2066
2067 if (settings.Caption != null)
2068 {
2069 @:<div>
2070 }
2071
2072 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower();
2073 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower();
2074
2075 <div class="image-filter image-filter--@primaryFilterClass u-position-relative dw-mod" @ComponentMethods.AddAttributes(optionalAttributes)>
2076 <div class="image-filter image-filter--@secondaryFilterClass dw-mod">
2077 @if (settings.Link != null)
2078 {
2079 <a href="@settings.Link">
2080 @RenderTheImage(settings)
2081 </a>
2082 }
2083 else
2084 {
2085 @RenderTheImage(settings)
2086 }
2087 </div>
2088 </div>
2089
2090 if (settings.Caption != null)
2091 {
2092 <span class="image-caption dw-mod">@settings.Caption</span>
2093 @:</div>
2094 }
2095 }
2096 else
2097 {
2098 if (settings.Caption != null)
2099 {
2100 @:<div>
2101 }
2102 if (!string.IsNullOrEmpty(settings.Link))
2103 {
2104 <a href="@settings.Link">
2105 @RenderTheImage(settings)
2106 </a>
2107 }
2108 else
2109 {
2110 @RenderTheImage(settings)
2111 }
2112
2113 if (settings.Caption != null)
2114 {
2115 <span class="image-caption dw-mod">@settings.Caption</span>
2116 @:</div>
2117 }
2118 }
2119 }
2120
2121 @helper RenderTheImage(Image settings)
2122 {
2123 if (settings != null)
2124 {
2125 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg";
2126 string placeholderImage = "/Files/Images/placeholder.gif";
2127 string imageEngine = "/Admin/Public/GetImage.ashx?";
2128
2129 string imageStyle = "";
2130
2131 switch (settings.Style)
2132 {
2133 case ImageStyle.Ball:
2134 imageStyle = "grid__cell-img--ball";
2135 break;
2136
2137 case ImageStyle.Triangle:
2138 imageStyle = "grid__cell-img--triangle";
2139 break;
2140 }
2141
2142 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle)
2143 {
2144 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop;
2145
2146 if (settings.ImageDefault != null)
2147 {
2148 settings.ImageDefault.Height = settings.ImageDefault.Width;
2149 }
2150 if (settings.ImageMedium != null)
2151 {
2152 settings.ImageMedium.Height = settings.ImageMedium.Width;
2153 }
2154 if (settings.ImageSmall != null)
2155 {
2156 settings.ImageSmall.Height = settings.ImageSmall.Width;
2157 }
2158 }
2159
2160 string defaultImage = imageEngine;
2161 string imageSmall = "";
2162 string imageMedium = "";
2163
2164 if (settings.DisableImageEngine)
2165 {
2166 defaultImage = settings.Path;
2167 }
2168 else
2169 {
2170 if (settings.ImageDefault != null)
2171 {
2172 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault);
2173
2174 if (settings.Path.GetType() != typeof(string))
2175 {
2176 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
2177 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
2178 }
2179 else
2180 {
2181 defaultImage += settings.Path != null ? "Image=" + settings.Path : "";
2182 }
2183
2184 defaultImage += "&AlternativeImage=" + alternativeImage;
2185 }
2186
2187 if (settings.ImageSmall != null)
2188 {
2189 imageSmall = "data-src-small=\"" + imageEngine;
2190 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall);
2191
2192 if (settings.Path.GetType() != typeof(string))
2193 {
2194 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
2195 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
2196 }
2197 else
2198 {
2199 imageSmall += settings.Path != null ? "Image=" + settings.Path : "";
2200 }
2201
2202 imageSmall += "&alternativeImage=" + alternativeImage;
2203
2204 imageSmall += "\"";
2205 }
2206
2207 if (settings.ImageMedium != null)
2208 {
2209 imageMedium = "data-src-medium=\"" + imageEngine;
2210 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium);
2211
2212 if (settings.Path.GetType() != typeof(string))
2213 {
2214 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : "";
2215 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : "";
2216 }
2217 else
2218 {
2219 imageMedium += settings.Path != null ? "Image=" + settings.Path : "";
2220 }
2221
2222 imageMedium += "&alternativeImage=" + alternativeImage;
2223
2224 imageMedium += "\"";
2225 }
2226 }
2227
2228 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
2229 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); }
2230 if (!string.IsNullOrEmpty(settings.Title))
2231 {
2232 optionalAttributes.Add("alt", settings.Title);
2233 optionalAttributes.Add("title", settings.Title);
2234 }
2235
2236 if (settings.DisableLazyLoad)
2237 {
2238 <img id="@settings.Id" class="@imageStyle @settings.CssClass dw-mod" src="@defaultImage" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes) />
2239 }
2240 else
2241 {
2242 <img id="@settings.Id" class="lazyload @imageStyle @settings.CssClass dw-mod" src="@placeholderImage" data-src="@defaultImage" @imageSmall @imageMedium @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes) />
2243 }
2244 }
2245 }
2246 @using System.Reflection
2247 @using Dynamicweb.Rapido.Blocks.Components.General
2248 @using Dynamicweb.Rapido.Blocks.Components
2249
2250 @* Component *@
2251
2252 @helper RenderFileField(FileField settings)
2253 {
2254 var attributes = new Dictionary<string, string>();
2255 if (string.IsNullOrEmpty(settings.Id))
2256 {
2257 settings.Id = Guid.NewGuid().ToString("N");
2258 }
2259
2260 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2261 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2262 if (settings.Required) { attributes.Add("required", "true"); }
2263 if (settings.Multiple) { attributes.Add("multiple", "true"); }
2264 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2265 if (string.IsNullOrEmpty(settings.ChooseFileText))
2266 {
2267 settings.ChooseFileText = Translate("Choose file");
2268 }
2269 if (string.IsNullOrEmpty(settings.NoFilesChosenText))
2270 {
2271 settings.NoFilesChosenText = Translate("No files chosen...");
2272 }
2273 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2274
2275 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
2276
2277 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)";
2278 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : ""));
2279
2280 attributes.Add("type", "file");
2281 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2282 settings.CssClass = "u-full-width " + settings.CssClass;
2283
2284 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2285
2286 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod">
2287 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2288 {
2289 <div class="u-full-width">
2290 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2291 @if (settings.Link != null) {
2292 <div class="u-pull--right">
2293 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2294 @RenderLink(settings.Link)
2295 </div>
2296 }
2297 </div>
2298
2299 }
2300
2301 @if (!string.IsNullOrEmpty(settings.HelpText))
2302 {
2303 <small class="form__help-text">@settings.HelpText</small>
2304 }
2305
2306 <div class="form__field-combi file-input u-no-margin dw-mod">
2307 <input @ComponentMethods.AddAttributes(resultAttributes) class="file-input__real-input" data-no-files-text="@settings.NoFilesChosenText" data-many-files-text="@Translate("files")" />
2308 <label for="@settings.Id" class="file-input__btn btn--secondary btn dw-mod">@settings.ChooseFileText</label>
2309 <label for="@settings.Id" class="@settings.CssClass file-input__fake-input js-fake-input dw-mod">@settings.NoFilesChosenText</label>
2310 @if (settings.UploadButton != null)
2311 {
2312 settings.UploadButton.CssClass += " btn--condensed u-no-margin";
2313 @RenderButton(settings.UploadButton)
2314 }
2315 </div>
2316 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
2317 </div>
2318 }
2319 @using System.Reflection
2320 @using Dynamicweb.Rapido.Blocks.Components.General
2321 @using Dynamicweb.Rapido.Blocks.Components
2322 @using Dynamicweb.Core
2323 @using System.Linq
2324
2325 @* Component *@
2326
2327 @helper RenderDateTimeField(DateTimeField settings)
2328 {
2329 if (string.IsNullOrEmpty(settings.Id))
2330 {
2331 settings.Id = Guid.NewGuid().ToString("N");
2332 }
2333
2334 var textField = new TextField {
2335 Name = settings.Name,
2336 Id = settings.Id,
2337 Label = settings.Label,
2338 HelpText = settings.HelpText,
2339 Value = settings.Value,
2340 Disabled = settings.Disabled,
2341 Required = settings.Required,
2342 ErrorMessage = settings.ErrorMessage,
2343 CssClass = settings.CssClass,
2344 WrapperCssClass = settings.WrapperCssClass,
2345 OnChange = settings.OnChange,
2346 OnClick = settings.OnClick,
2347 Link = settings.Link,
2348 ExtraAttributes = settings.ExtraAttributes,
2349 //
2350 Placeholder = settings.Placeholder
2351 };
2352
2353 @Render(textField)
2354
2355 List<string> jsAttributes = new List<string>();
2356
2357 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'");
2358
2359 if (!string.IsNullOrEmpty(settings.DateFormat))
2360 {
2361 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'");
2362 }
2363 if (!string.IsNullOrEmpty(settings.MinDate))
2364 {
2365 jsAttributes.Add("minDate: '" + settings.MinDate + "'");
2366 }
2367 if (!string.IsNullOrEmpty(settings.MaxDate))
2368 {
2369 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'");
2370 }
2371 if (settings.IsInline)
2372 {
2373 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower());
2374 }
2375 if (settings.EnableTime)
2376 {
2377 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower());
2378 }
2379 if (settings.EnableWeekNumbers)
2380 {
2381 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower());
2382 }
2383
2384 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value));
2385
2386 <script>
2387 document.addEventListener("DOMContentLoaded", function () {
2388 flatpickr("#@textField.Id", {
2389 @string.Join(",", jsAttributes)
2390 });
2391 });
2392 </script>
2393 }
2394 @using System.Reflection
2395 @using Dynamicweb.Rapido.Blocks.Components.General
2396 @using Dynamicweb.Rapido.Blocks.Components
2397
2398 @* Component *@
2399
2400 @helper RenderTextField(TextField settings)
2401 {
2402 var attributes = new Dictionary<string, string>();
2403 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
2404 {
2405 settings.Id = Guid.NewGuid().ToString("N");
2406 }
2407
2408 /*base settings*/
2409 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2410 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2411 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2412 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2413 if (settings.Required) { attributes.Add("required", "true"); }
2414 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2415 /*end*/
2416
2417 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
2418 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
2419 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
2420 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
2421 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); }
2422 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); }
2423 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower());
2424 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); };
2425 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2426
2427 settings.CssClass = "u-full-width " + settings.CssClass;
2428
2429 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
2430
2431 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2432
2433 string noMargin = "u-no-margin";
2434 if (!settings.ReadOnly) {
2435 noMargin = "";
2436 }
2437
2438 <div class="form__field-group u-full-width @noMargin @settings.WrapperCssClass dw-mod">
2439 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2440 {
2441 <div class="u-full-width">
2442 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2443 @if (settings.Link != null) {
2444 settings.Link.ButtonLayout = ButtonLayout.LinkClean;
2445
2446 <div class="u-pull--right">
2447 @Render(settings.Link)
2448 </div>
2449 }
2450 </div>
2451
2452 }
2453
2454 @if (!string.IsNullOrEmpty(settings.HelpText))
2455 {
2456 <small class="form__help-text">@settings.HelpText</small>
2457 }
2458
2459 @if (settings.ActionButton != null)
2460 {
2461 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
2462 <div class="form__field-combi u-no-margin dw-mod">
2463 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2464 @Render(settings.ActionButton)
2465 </div>
2466 }
2467 else
2468 {
2469 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2470 }
2471
2472 @Render(new NotificationMessage { Message = settings.ErrorMessage })
2473 </div>
2474 }
2475 @using System.Reflection
2476 @using Dynamicweb.Rapido.Blocks.Components.General
2477 @using Dynamicweb.Rapido.Blocks.Components
2478
2479 @* Component *@
2480
2481 @helper RenderNumberField(NumberField settings)
2482 {
2483 var attributes = new Dictionary<string, string>();
2484 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
2485 {
2486 settings.Id = Guid.NewGuid().ToString("N");
2487 }
2488
2489 /*base settings*/
2490 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2491 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2492 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2493 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2494 if (settings.Required) { attributes.Add("required", "true"); }
2495 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2496 /*end*/
2497
2498 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
2499 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
2500 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
2501 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
2502 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); }
2503 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); }
2504 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); }
2505 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); }
2506 attributes.Add("type", "number");
2507
2508 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2509
2510 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod">
2511 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2512 {
2513 <div class="u-full-width">
2514 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2515 @if (settings.Link != null) {
2516 <div class="u-pull--right">
2517 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2518 @RenderLink(settings.Link)
2519 </div>
2520 }
2521 </div>
2522
2523 }
2524
2525 @if (!string.IsNullOrEmpty(settings.HelpText))
2526 {
2527 <small class="form__help-text">@settings.HelpText</small>
2528 }
2529
2530 @if (settings.ActionButton != null)
2531 {
2532 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
2533 <div class="form__field-combi u-no-margin dw-mod">
2534 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2535 @RenderButton(settings.ActionButton)
2536 </div>
2537 }
2538 else
2539 {
2540 <div class="form__field-combi u-no-margin dw-mod">
2541 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2542 </div>
2543 }
2544
2545 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
2546 </div>
2547 }
2548 @using System.Reflection
2549 @using Dynamicweb.Rapido.Blocks.Components.General
2550 @using Dynamicweb.Rapido.Blocks.Components
2551
2552
2553 @* Component *@
2554
2555 @helper RenderTextareaField(TextareaField settings)
2556 {
2557 Dictionary<string, string> attributes = new Dictionary<string, string>();
2558 string id = settings.Id;
2559 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id))
2560 {
2561 id = Guid.NewGuid().ToString("N");
2562 }
2563
2564 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); }
2565 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2566 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); }
2567 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); }
2568 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); }
2569 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2570 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); }
2571 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2572 if (settings.Required) { attributes.Add("required", "true"); }
2573 if (settings.ReadOnly) { attributes.Add("readonly", "true"); }
2574 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); }
2575 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); }
2576 attributes.Add("name", settings.Name);
2577
2578 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
2579
2580 <div class="form__field-group @settings.WrapperCssClass dw-mod">
2581 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2582 {
2583 <div class="u-full-width">
2584 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2585 @if (settings.Link != null) {
2586 <div class="u-pull--right">
2587 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2588 @Render(settings.Link)
2589 </div>
2590 }
2591 </div>
2592 }
2593
2594 @if (!string.IsNullOrEmpty(settings.HelpText))
2595 {
2596 <small class="form__help-text">@settings.HelpText</small>
2597 }
2598
2599 <textarea class="u-full-width @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Value</textarea>
2600
2601 @Render(new NotificationMessage { Message = settings.ErrorMessage })
2602 </div>
2603 }
2604 @using System.Reflection
2605 @using Dynamicweb.Rapido.Blocks.Components.General
2606 @using Dynamicweb.Rapido.Blocks.Components
2607
2608
2609 @* Component *@
2610
2611 @helper RenderHiddenField(HiddenField settings) {
2612 var attributes = new Dictionary<string, string>();
2613 attributes.Add("type", "hidden");
2614 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2615 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2616 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2617
2618 <input @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)/>
2619 }
2620 @using System.Reflection
2621 @using Dynamicweb.Rapido.Blocks.Components.General
2622 @using Dynamicweb.Rapido.Blocks.Components
2623
2624 @* Component *@
2625
2626 @helper RenderCheckboxField(CheckboxField settings)
2627 {
2628 var attributes = new Dictionary<string, string>();
2629 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
2630 {
2631 settings.Id = Guid.NewGuid().ToString("N");
2632 }
2633
2634 /*base settings*/
2635 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2636 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2637 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2638 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2639 if (settings.Required) { attributes.Add("required", "true"); }
2640 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2641 /*end*/
2642
2643 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
2644
2645 attributes.Add("type", "checkbox");
2646 if (settings.Checked) { attributes.Add("checked", "true"); }
2647 settings.CssClass = "form__control " + settings.CssClass;
2648 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2649
2650 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2651
2652 <div class="form__field-group @settings.WrapperCssClass dw-mod">
2653 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2654 @if (!string.IsNullOrEmpty(settings.Label))
2655 {
2656 <label for="@settings.Id" class="dw-mod">@settings.Label</label>
2657 }
2658
2659 @if (settings.Link != null) {
2660 <span>
2661 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2662 @RenderLink(settings.Link)
2663 </span>
2664 }
2665
2666 @if (!string.IsNullOrEmpty(settings.HelpText))
2667 {
2668 <small class="form__help-text checkbox-help dw-mod">@settings.HelpText</small>
2669 }
2670 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
2671 </div>
2672 }
2673 @using System.Reflection
2674 @using Dynamicweb.Rapido.Blocks.Components.General
2675 @using Dynamicweb.Rapido.Blocks.Components
2676
2677
2678 @* Component *@
2679
2680 @helper RenderCheckboxListField(CheckboxListField settings)
2681 {
2682 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
2683 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2684 {
2685 <div class="u-full-width">
2686 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2687 @if (settings.Link != null) {
2688 <div class="u-pull--right">
2689 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2690 @RenderLink(settings.Link)
2691 </div>
2692 }
2693 </div>
2694
2695 }
2696
2697 <div class="u-pull--left">
2698 @if (!string.IsNullOrEmpty(settings.HelpText))
2699 {
2700 <small class="form__help-text">@settings.HelpText</small>
2701 }
2702
2703 @foreach (var item in settings.Options)
2704 {
2705 if (settings.Required)
2706 {
2707 item.Required = true;
2708 }
2709 if (settings.Disabled)
2710 {
2711 item.Disabled = true;
2712 }
2713 if (!string.IsNullOrEmpty(settings.Name))
2714 {
2715 item.Name = settings.Name;
2716 }
2717 if (!string.IsNullOrEmpty(settings.CssClass))
2718 {
2719 item.CssClass += settings.CssClass;
2720 }
2721
2722 /* value is not supported */
2723
2724 if (!string.IsNullOrEmpty(settings.OnClick))
2725 {
2726 item.OnClick += settings.OnClick;
2727 }
2728 if (!string.IsNullOrEmpty(settings.OnChange))
2729 {
2730 item.OnChange += settings.OnChange;
2731 }
2732 @Render(item)
2733 }
2734
2735 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
2736 </div>
2737
2738 </div>
2739 }
2740 @using Dynamicweb.Rapido.Blocks.Components.General
2741
2742 @* Component *@
2743
2744 @helper RenderSearch(Search settings)
2745 {
2746 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? "";
2747 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? "";
2748
2749 if (string.IsNullOrEmpty(settings.Id))
2750 {
2751 settings.Id = Guid.NewGuid().ToString("N");
2752 }
2753
2754 var resultAttributes = new Dictionary<string, string>();
2755
2756 if (settings.PageSize != 0)
2757 {
2758 resultAttributes.Add("data-page-size", settings.PageSize.ToString());
2759 }
2760 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl))
2761 {
2762 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl);
2763 if (!string.IsNullOrEmpty(groupValue))
2764 {
2765 resultAttributes.Add("data-selected-group", groupValue);
2766 }
2767 if (!string.IsNullOrEmpty(settings.GroupsParameter))
2768 {
2769 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter);
2770 }
2771 }
2772 resultAttributes.Add("data-force-init", "true");
2773 if (settings.GoToFirstSearchResultOnEnter)
2774 {
2775 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower());
2776 }
2777 if (!string.IsNullOrEmpty(settings.SearchParameter))
2778 {
2779 resultAttributes.Add("data-search-parameter", settings.SearchParameter);
2780 }
2781 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl);
2782 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId);
2783
2784 if (settings.SecondSearchData != null)
2785 {
2786 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl);
2787 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId);
2788 }
2789 if (!string.IsNullOrEmpty(settings.ResultsPageUrl))
2790 {
2791 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl);
2792 }
2793
2794 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2795
2796 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : "";
2797
2798 <div class="search @settings.CssClass @searchFieldCss js-search-data-source dw-mod" id="@settings.Id" @ComponentMethods.AddAttributes(resultAttributes)>
2799 @if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl))
2800 {
2801 <button type="button" class="search__groups-btn dw-mod js-search-groups-btn">@Translate("All")</button>
2802 <ul class="dropdown dropdown--absolute-position dw-mod search__groups-results js-search-groups-list"></ul>
2803 }
2804
2805 <input type="text" class="search__field dw-mod js-search-field" placeholder="@settings.Placeholder" value="@searchValue">
2806
2807 <div class="dropdown dropdown--absolute-position search__results dw-mod js-search-results @(settings.SecondSearchData != null ? "search__results--combined" : "")">
2808 @if (settings.SecondSearchData != null)
2809 {
2810 <div class="search__column search__column--products dw-mod">
2811 <div class="search__column-header dw-mod">@Translate("Products")</div>
2812 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul>
2813 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl))
2814 {
2815 @Render(new Link {
2816 Title = Translate("View all"),
2817 CssClass = "js-view-all-button u-margin",
2818 Href = settings.SearchData.ResultsPageUrl
2819 });
2820 }
2821 </div>
2822 <div class="search__column search__column--pages dw-mod">
2823 <div class="search__column-header">@Translate("Pages")</div>
2824 <ul class="search__results-list dw-mod js-search-results-second-list" id="@(settings.Id)_SecondResultsList"></ul>
2825 @if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl))
2826 {
2827 @Render(new Link
2828 {
2829 Title = Translate("View all"),
2830 CssClass = "js-view-all-button u-margin",
2831 Href = settings.SecondSearchData.ResultsPageUrl
2832 });
2833 }
2834 </div>
2835 }
2836 else
2837 {
2838 <div class="search__column search__column--only dw-mod">
2839 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul>
2840 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl))
2841 {
2842 @Render(new Link {
2843 Title = Translate("View all"),
2844 CssClass = "js-view-all-button u-margin",
2845 Href = settings.SearchData.ResultsPageUrl
2846 });
2847 }
2848 </div>
2849 }
2850 </div>
2851
2852 @if (settings.SearchButton != null)
2853 {
2854 settings.SearchButton.CssClass += " search__btn js-search-btn";
2855 if (settings.RenderDefaultSearchIcon)
2856 {
2857 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue };
2858 }
2859 @Render(settings.SearchButton);
2860 }
2861 </div>
2862 }
2863 @using System.Reflection
2864 @using Dynamicweb.Rapido.Blocks.Components.General
2865 @using Dynamicweb.Rapido.Blocks.Components
2866
2867
2868 @* Component *@
2869
2870 @helper RenderSelectField(SelectField settings)
2871 {
2872 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
2873 {
2874 settings.Id = Guid.NewGuid().ToString("N");
2875 }
2876
2877 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod">
2878 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null )
2879 {
2880 <div class="u-full-width">
2881 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> }
2882 @if (settings.Link != null) {
2883 <div class="u-pull--right">
2884 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; }
2885 @Render(settings.Link)
2886 </div>
2887 }
2888 </div>
2889 }
2890
2891 @if (!string.IsNullOrEmpty(settings.HelpText))
2892 {
2893 <small class="form__help-text">@settings.HelpText</small>
2894 }
2895
2896 @if (settings.ActionButton != null)
2897 {
2898 settings.ActionButton.CssClass += " btn--condensed u-no-margin";
2899 <div class="form__field-combi u-no-margin dw-mod">
2900 @RenderSelectBase(settings)
2901 @Render(settings.ActionButton)
2902 </div>
2903 }
2904 else
2905 {
2906 @RenderSelectBase(settings)
2907 }
2908
2909 @Render(new NotificationMessage { Message = settings.ErrorMessage })
2910 </div>
2911 }
2912
2913 @helper RenderSelectBase(SelectField settings)
2914 {
2915 var attributes = new Dictionary<string, string>();
2916
2917 /*base settings*/
2918 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2919 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2920 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2921 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2922 if (settings.Required) { attributes.Add("required", "true"); }
2923 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2924 /*end*/
2925
2926 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2927
2928 <select @ComponentMethods.AddAttributes(resultAttributes) class="u-full-width @settings.CssClass dw-mod">
2929 @if (settings.Default != null)
2930 {
2931 @Render(settings.Default)
2932 }
2933
2934 @foreach (var item in settings.Options)
2935 {
2936 if (settings.Value != null) {
2937 item.Checked = item.Value == settings.Value;
2938 }
2939 @Render(item)
2940 }
2941 </select>
2942 }
2943 @using System.Reflection
2944 @using Dynamicweb.Rapido.Blocks.Components.General
2945 @using Dynamicweb.Rapido.Blocks.Components
2946
2947 @* Component *@
2948
2949 @helper RenderRadioButtonField(RadioButtonField settings)
2950 {
2951 var attributes = new Dictionary<string, string>();
2952 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id))
2953 {
2954 settings.Id = Guid.NewGuid().ToString("N");
2955 }
2956
2957 /*base settings*/
2958 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
2959 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); }
2960 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); }
2961 if (settings.Disabled) { attributes.Add("disabled", "true"); }
2962 if (settings.Required) { attributes.Add("required", "true"); }
2963 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); }
2964 /*end*/
2965
2966 attributes.Add("type", "radio");
2967 if (settings.Checked) { attributes.Add("checked", "true"); }
2968 settings.CssClass = "form__control " + settings.CssClass;
2969 if (settings.Value != null) { attributes.Add("value", settings.Value); }
2970
2971 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value);
2972
2973 <div class="form__field-group @settings.WrapperCssClass dw-mod">
2974 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" />
2975 @if (!string.IsNullOrEmpty(settings.Label))
2976 {
2977 <label for="@settings.Id" class="dw-mod">@settings.Label</label>
2978 }
2979 @if (!string.IsNullOrEmpty(settings.HelpText))
2980 {
2981 <small class="form__help-text">@settings.HelpText</small>
2982 }
2983 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
2984 </div>
2985 }
2986 @using System.Reflection
2987 @using Dynamicweb.Rapido.Blocks.Components.General
2988 @using Dynamicweb.Rapido.Blocks.Components
2989
2990
2991 @* Component *@
2992
2993 @helper RenderRadioButtonListField(RadioButtonListField settings)
2994 {
2995 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; }
2996
2997 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
2998 @if (!string.IsNullOrEmpty(settings.Label))
2999 {
3000 <label>@settings.Label</label>
3001 }
3002 @if (!string.IsNullOrEmpty(settings.HelpText))
3003 {
3004 <small class="form__help-text">@settings.HelpText</small>
3005 }
3006
3007 @foreach (var item in settings.Options)
3008 {
3009 if (settings.Required)
3010 {
3011 item.Required = true;
3012 }
3013 if (settings.Disabled)
3014 {
3015 item.Disabled = true;
3016 }
3017 if (!string.IsNullOrEmpty(settings.Name))
3018 {
3019 item.Name = settings.Name;
3020 }
3021 if (settings.Value != null && settings.Value == item.Value)
3022 {
3023 item.Checked = true;
3024 }
3025 if (!string.IsNullOrEmpty(settings.OnClick))
3026 {
3027 item.OnClick += settings.OnClick;
3028 }
3029 if (!string.IsNullOrEmpty(settings.OnChange))
3030 {
3031 item.OnChange += settings.OnChange;
3032 }
3033 if (!string.IsNullOrEmpty(settings.CssClass))
3034 {
3035 item.CssClass += settings.CssClass;
3036 }
3037 @Render(item)
3038 }
3039
3040 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })
3041 </div>
3042 }
3043 @using System.Reflection
3044 @using Dynamicweb.Rapido.Blocks.Components.General
3045 @using Dynamicweb.Rapido.Blocks.Components
3046
3047
3048 @* Component *@
3049
3050 @helper RenderNotificationMessage(NotificationMessage settings)
3051 {
3052 if (!string.IsNullOrEmpty(settings.Message))
3053 {
3054 var attributes = new Dictionary<string, string>();
3055 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
3056
3057 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower();
3058 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower();
3059 string minHeightClass = settings.Icon != null ? "u-min-h70px" : "";
3060
3061 <div class="notification-message-@messageTypeClass notification-message-@messageLayoutClass @messageLayoutClass @minHeightClass @settings.CssClass u-full-width dw-mod" @ComponentMethods.AddAttributes(attributes)>
3062 @if (settings.Icon != null) {
3063 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message;
3064 @Render(settings.Icon)
3065 } else {
3066 @settings.Message
3067 }
3068 </div>
3069 }
3070 }
3071 @using Dynamicweb.Rapido.Blocks.Components.General
3072
3073
3074 @* Component *@
3075
3076 @helper RenderHandlebarsRoot(HandlebarsRoot settings) {
3077 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : "";
3078
3079 <div class="@settings.CssClass dw-mod js-handlebars-root" id="@settings.Id" data-template="@settings.ScriptTemplate" data-json-feed="@settings.FeedUrl" data-init-onload="@settings.InitOnLoad.ToString()" data-preloader="@settings.Preloader" @preRender>
3080 @if (settings.SubBlocks != null) {
3081 @RenderBlockList(settings.SubBlocks)
3082 }
3083 </div>
3084 }
3085 @*Include("General/Sticker.cshtml")*@
3086 @using System.Reflection
3087 @using Dynamicweb.Rapido.Blocks.Components.General
3088 @using Dynamicweb.Rapido.Blocks.Components
3089
3090
3091 @* Component *@
3092
3093 @helper RenderStickersCollection(StickersCollection settings)
3094 {
3095 @*if (settings.Stickers.Count > 0)
3096 {
3097 string position = "stickers-container--" + Regex.Replace(settings.Position.ToString(), "([a-z])([A-Z])", "$1-$2").ToLower();
3098
3099 <div class="stickers-container @position @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
3100 @foreach (Sticker sticker in settings.Stickers)
3101 {
3102 @Render(sticker)
3103 }
3104 </div>
3105 }*@
3106 }
3107
3108 @using Dynamicweb.Rapido.Blocks.Components.General
3109
3110
3111 @* Component *@
3112
3113 @helper RenderForm(Form settings) {
3114 if (settings != null)
3115 {
3116 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>();
3117 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); };
3118 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); };
3119 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); };
3120 var enctypes = new Dictionary<string, string>
3121 {
3122 { "multipart", "multipart/form-data" },
3123 { "text", "text/plain" },
3124 { "application", "application/x-www-form-urlencoded" }
3125 };
3126 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); };
3127 optionalAttributes.Add("method", settings.Method.ToString());
3128
3129 if (!string.IsNullOrEmpty(settings.FormStartMarkup))
3130 {
3131 @settings.FormStartMarkup
3132 }
3133 else
3134 {
3135 @:<form class="@settings.CssClass u-no-margin dw-mod" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>
3136 }
3137
3138 foreach (var field in settings.GetFields())
3139 {
3140 @Render(field)
3141 }
3142
3143 @:</form>
3144 }
3145 }
3146 @using System.Reflection
3147 @using Dynamicweb.Rapido.Blocks.Components.General
3148 @using Dynamicweb.Rapido.Blocks.Components
3149
3150
3151 @* Component *@
3152
3153 @helper RenderText(Text settings)
3154 {
3155 @settings.Content
3156 }
3157 @using System.Reflection
3158 @using Dynamicweb.Rapido.Blocks.Components.General
3159 @using Dynamicweb.Rapido.Blocks.Components
3160
3161
3162 @* Component *@
3163
3164 @helper RenderContentModule(ContentModule settings) {
3165 if (!string.IsNullOrEmpty(settings.Content))
3166 {
3167 @settings.Content
3168 }
3169 }
3170 @using System.Reflection
3171 @using Dynamicweb.Rapido.Blocks.Components.General
3172 @using Dynamicweb.Rapido.Blocks.Components
3173
3174
3175 @* Component *@
3176
3177 @helper RenderModal(Modal settings) {
3178 if (settings != null)
3179 {
3180 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N");
3181
3182 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : "";
3183
3184 <input type="checkbox" id="@(modalId)ModalTrigger" class="modal-trigger" @onchange />
3185
3186 <div class="modal-container">
3187 @if (!settings.DisableDarkOverlay)
3188 {
3189 <label for="@(modalId)ModalTrigger" id="@(modalId)ModalOverlay" class="modal-overlay"></label>
3190 }
3191 <div class="modal modal--@settings.Width.ToString().ToLower() modal-height--@settings.Height.ToString().ToLower()" id="@(modalId)Modal">
3192 @if (settings.Heading != null)
3193 {
3194 if (!string.IsNullOrEmpty(settings.Heading.Title))
3195 {
3196 <div class="modal__header">
3197 @Render(settings.Heading)
3198 </div>
3199 }
3200 }
3201 <div class="modal__body @(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "")">
3202 @if (!string.IsNullOrEmpty(settings.BodyText))
3203 {
3204 @settings.BodyText
3205 }
3206 @if (settings.BodyTemplate != null)
3207 {
3208 @settings.BodyTemplate
3209 }
3210 @{
3211 var actions = settings.GetActions();
3212 }
3213 </div>
3214 @if (actions.Length > 0)
3215 {
3216 <div class="modal__footer">
3217 @foreach (var action in actions)
3218 {
3219 if (Pageview.Device.ToString() != "Mobile") {
3220 action.CssClass += " u-no-margin";
3221 } else {
3222 action.CssClass += " u-full-width u-margin-bottom";
3223 }
3224
3225 @Render(action)
3226 }
3227 </div>
3228 }
3229 <label class="modal__close-btn" for="@(modalId)ModalTrigger"></label>
3230 </div>
3231 </div>
3232 }
3233 }
3234 @using Dynamicweb.Rapido.Blocks.Components.General
3235
3236 @* Component *@
3237
3238 @helper RenderMediaListItem(MediaListItem settings)
3239 {
3240 <div class="media-list-item @settings.CssClass dw-mod" @(!string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : "")>
3241 @if (!string.IsNullOrEmpty(settings.Label))
3242 {
3243 if (!string.IsNullOrEmpty(settings.Link))
3244 {
3245 @Render(new Link
3246 {
3247 Href = settings.Link,
3248 CssClass = "media-list-item__sticker dw-mod",
3249 ButtonLayout = ButtonLayout.None,
3250 Title = settings.Label,
3251 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : ""
3252 })
3253 }
3254 else if (!string.IsNullOrEmpty(settings.OnClick))
3255 {
3256 <span class="media-list-item__sticker dw-mod" onclick="@(settings.OnClick)">
3257 <span class="u-uppercase">@settings.Label</span>
3258 </span>
3259 }
3260 else
3261 {
3262 <span class="media-list-item__sticker media-list-item__sticker--no-link dw-mod">
3263 <span class="u-uppercase">@settings.Label</span>
3264 </span>
3265 }
3266 }
3267 <div class="media-list-item__wrap">
3268 <div class="media-list-item__info dw-mod">
3269 <div class="media-list-item__header dw-mod">
3270 @if (!string.IsNullOrEmpty(settings.Title))
3271 {
3272 if (!string.IsNullOrEmpty(settings.Link))
3273 {
3274 @Render(new Link
3275 {
3276 Href = settings.Link,
3277 CssClass = "media-list-item__name dw-mod",
3278 ButtonLayout = ButtonLayout.None,
3279 Title = settings.Title,
3280 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : ""
3281 })
3282 }
3283 else if (!string.IsNullOrEmpty(settings.OnClick))
3284 {
3285 <span class="media-list-item__name dw-mod" onclick="@(settings.OnClick)">@settings.Title</span>
3286 }
3287 else
3288 {
3289 <span class="media-list-item__name media-list-item__name--no-link dw-mod">@settings.Title</span>
3290 }
3291 }
3292
3293 @if (!string.IsNullOrEmpty(settings.Status))
3294 {
3295 <div class="media-list-item__state dw-mod">@settings.Status</div>
3296 }
3297 </div>
3298 @{
3299 settings.InfoTable.CssClass += " media-list-item__parameters-table";
3300 }
3301
3302 @Render(settings.InfoTable)
3303 </div>
3304 <div class="media-list-item__actions dw-mod">
3305 <div class="media-list-item__actions-list dw-mod">
3306 @{
3307 var actions = settings.GetActions();
3308
3309 foreach (ButtonBase action in actions)
3310 {
3311 action.ButtonLayout = ButtonLayout.None;
3312 action.CssClass += " media-list-item__action link";
3313
3314 @Render(action)
3315 }
3316 }
3317 </div>
3318
3319 @if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title))
3320 {
3321 settings.SelectButton.CssClass += " u-no-margin";
3322
3323 <div class="media-list-item__action-button">
3324 @Render(settings.SelectButton)
3325 </div>
3326 }
3327 </div>
3328 </div>
3329 </div>
3330 }
3331 @using Dynamicweb.Rapido.Blocks.Components.General
3332 @using Dynamicweb.Rapido.Blocks.Components
3333
3334 @helper RenderTable(Table settings)
3335 {
3336 Dictionary<string, string> attributes = new Dictionary<string, string>();
3337 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
3338
3339 var enumToClasses = new Dictionary<TableDesign, string>
3340 {
3341 { TableDesign.Clean, "table--clean" },
3342 { TableDesign.Bordered, "table--bordered" },
3343 { TableDesign.Striped, "table--striped" },
3344 { TableDesign.Hover, "table--hover" },
3345 { TableDesign.Compact, "table--compact" },
3346 { TableDesign.Condensed, "table--condensed" },
3347 { TableDesign.NoTopBorder, "table--no-top-border" }
3348 };
3349 string tableDesignClass = "";
3350 if (settings.Design != TableDesign.None)
3351 {
3352 tableDesignClass = enumToClasses[settings.Design];
3353 }
3354
3355 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); }
3356
3357 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
3358
3359 <table @ComponentMethods.AddAttributes(resultAttributes)>
3360 @if (settings.Header != null)
3361 {
3362 <thead>
3363 @Render(settings.Header)
3364 </thead>
3365 }
3366 <tbody>
3367 @foreach (var row in settings.Rows)
3368 {
3369 @Render(row)
3370 }
3371 </tbody>
3372 @if (settings.Footer != null)
3373 {
3374 <tfoot>
3375 @Render(settings.Footer)
3376 </tfoot>
3377 }
3378 </table>
3379 }
3380 @using Dynamicweb.Rapido.Blocks.Components.General
3381 @using Dynamicweb.Rapido.Blocks.Components
3382
3383 @helper RenderTableRow(TableRow settings)
3384 {
3385 Dictionary<string, string> attributes = new Dictionary<string, string>();
3386 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
3387
3388 var enumToClasses = new Dictionary<TableRowDesign, string>
3389 {
3390 { TableRowDesign.NoBorder, "table__row--no-border" },
3391 { TableRowDesign.Border, "table__row--border" },
3392 { TableRowDesign.TopBorder, "table__row--top-line" },
3393 { TableRowDesign.BottomBorder, "table__row--bottom-line" },
3394 { TableRowDesign.Solid, "table__row--solid" }
3395 };
3396
3397 string tableRowDesignClass = "";
3398 if (settings.Design != TableRowDesign.None)
3399 {
3400 tableRowDesignClass = enumToClasses[settings.Design];
3401 }
3402
3403 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); }
3404
3405 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
3406
3407 <tr @ComponentMethods.AddAttributes(resultAttributes)>
3408 @foreach (var cell in settings.Cells)
3409 {
3410 if (settings.IsHeaderRow)
3411 {
3412 cell.IsHeader = true;
3413 }
3414 @Render(cell)
3415 }
3416 </tr>
3417 }
3418 @using Dynamicweb.Rapido.Blocks.Components.General
3419 @using Dynamicweb.Rapido.Blocks.Components
3420 @using Dynamicweb.Core
3421
3422 @helper RenderTableCell(TableCell settings)
3423 {
3424 Dictionary<string, string> attributes = new Dictionary<string, string>();
3425 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); }
3426 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); }
3427 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); }
3428 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); }
3429
3430 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value);
3431
3432 string tagName = settings.IsHeader ? "th" : "td";
3433
3434 @("<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">")
3435 @settings.Content
3436 @("</" + tagName + ">");
3437 }
3438 @using System.Linq
3439 @using Dynamicweb.Rapido.Blocks.Components.General
3440
3441 @* Component *@
3442
3443 @helper RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings)
3444 {
3445 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter
3446 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring
3447
3448 if (settings.NumberOfPages > 1)
3449 {
3450 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx";
3451 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation");
3452 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings);
3453
3454 <div class="pager u-margin-top dw-mod @settings.CssClass" aria-label="@ariaLabel">
3455 @if (settings.ShowPagingInfo)
3456 {
3457 <div class="pager__info dw-mod">
3458 @Translate("Page") @settings.CurrentPageNumber @Translate("of") @settings.NumberOfPages
3459 </div>
3460 }
3461 <ul class="pager__list dw-mod">
3462 @if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls)
3463 {
3464 @Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon })
3465 }
3466 @if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls)
3467 {
3468 @Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon })
3469 }
3470 @if (settings.GetPages().Any())
3471 {
3472 foreach (var page in settings.GetPages())
3473 {
3474 @Render(page)
3475 }
3476 }
3477 else
3478 {
3479 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++)
3480 {
3481 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString());
3482 @Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) });
3483 }
3484 }
3485 @if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls)
3486 {
3487 @Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon })
3488 }
3489 @if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls)
3490 {
3491 @Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon })
3492 }
3493 </ul>
3494 </div>
3495 }
3496 }
3497
3498 @helper RenderPaginationItem(PaginationItem settings)
3499 {
3500 if (settings.Icon == null)
3501 {
3502 settings.Icon = new Icon();
3503 }
3504
3505 settings.Icon.Label = settings.Label;
3506 <li class="pager__btn dw-mod">
3507 @if (settings.IsActive)
3508 {
3509 <span class="pager__num pager__num--current dw-mod">
3510 @Render(settings.Icon)
3511 </span>
3512 }
3513 else
3514 {
3515 <a href="@settings.Link" class="pager__num dw-mod text-decoration-none">
3516 @Render(settings.Icon)
3517 </a>
3518 }
3519 </li>
3520 }
3521
3522
3523 @*Include("Custom/Custom__Components.cshtml")*@
3524 @using Dynamicweb.Frontend
3525 @using System.Reflection
3526 @using Dynamicweb.Content.Items
3527 @using System.Web.UI.HtmlControls
3528 @using Dynamicweb.Rapido.Blocks.Components
3529 @using Dynamicweb.Rapido.Blocks
3530
3531
3532 @* Components for the articles *@
3533 @using System.Reflection
3534 @using Dynamicweb.Rapido.Blocks.Components.Articles
3535
3536 @* Component for the articles *@
3537
3538 @helper RenderArticleBanner(dynamic settings) {
3539 dynamic[] methodParameters = new dynamic[1];
3540 methodParameters[0] = settings;
3541 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerCustom");
3542
3543 if (customMethod != null)
3544 {
3545 @customMethod.Invoke(this, methodParameters).ToString();
3546 } else {
3547 settings.Layout = ArticleHeaderLayout.Banner;
3548
3549 if (settings.Image != null)
3550 {
3551 if (settings.Image.Path != null)
3552 {
3553 <div class="section__container container--wide">
3554 <div class="section__content">
3555 <div class="article-detail-hero">
3556 <div class="article-detail-hero__content">
3557 <div class="block-container flex-wrap align-items-center h-100" style="max-width: 100rem;">
3558 <div class="c0 p-5 article-detail-hero__backdrop">
3559 @if (!String.IsNullOrEmpty(settings.Heading))
3560 {
3561 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1>
3562 }
3563 @if (!String.IsNullOrEmpty(settings.Subheading))
3564 {
3565 <div class="article-detail__subtitle h3 weight-normal mb-2">@settings.Subheading</div>
3566 }
3567 @* @if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) *@
3568 @* { *@
3569 @* DateTime date = Convert.ToDateTime(settings.Date); *@
3570 @* var dateFormatted = date.ToString("dd/MM/yyyy"); *@
3571 @* <div class="article-detail__info mb-2"><span>@settings.Author @dateFormatted</span></div> *@
3572 @* } *@
3573 @if (!String.IsNullOrEmpty(settings.Link))
3574 {
3575 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout})
3576 }
3577 @if (settings.ExternalParagraphId != 0)
3578 {
3579 @RenderParagraphContent(settings.ExternalParagraphId)
3580 }
3581 </div>
3582 </div>
3583 </div>
3584 <div class="article-detail-hero__image">
3585 <img src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=20&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=95&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" class="object-fit-cover h-100 block w-100 lazyload"/>
3586 </div>
3587 </div>
3588 </div>
3589 </div>
3590 }
3591 else
3592 {
3593 settings.Layout = ArticleHeaderLayout.Clean;
3594 @RenderArticleCleanHeader(settings);
3595 }
3596 }
3597 else
3598 {
3599 settings.Layout = ArticleHeaderLayout.Clean;
3600 @RenderArticleCleanHeader(settings);
3601 }
3602 }
3603 }
3604 @using System.Reflection
3605 @using Dynamicweb.Rapido.Blocks.Components
3606 @using Dynamicweb.Rapido.Blocks.Components.General
3607 @using Dynamicweb.Rapido.Blocks.Components.Articles
3608 @using Dynamicweb.Rapido.Blocks
3609 @using Df.Dw
3610
3611
3612 @* Component for the articles *@
3613
3614 @helper RenderTitle(){
3615 <h2 class="h1 letter-spacing mb-2">@Pageview.Item["Title"].ToString()</h2>
3616 }
3617
3618 @helper RenderArticleHeader(ArticleHeader settings) {
3619 dynamic[] methodParameters = new dynamic[1];
3620 methodParameters[0] = settings;
3621 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleHeaderCustom");
3622
3623 if (customMethod != null)
3624 {
3625 @customMethod.Invoke(this, methodParameters).ToString();
3626 } else {
3627 switch (settings.Layout)
3628 {
3629 case ArticleHeaderLayout.Clean:
3630 @RenderArticleCleanHeader(settings);
3631 break;
3632 case ArticleHeaderLayout.Split:
3633 @RenderArticleSplitHeader(settings);
3634 break;
3635 case ArticleHeaderLayout.Banner:
3636 @RenderArticleBannerHeader(settings);
3637 break;
3638 case ArticleHeaderLayout.Overlay:
3639 @RenderArticleOverlayHeader(settings);
3640 break;
3641 default:
3642 @RenderArticleCleanHeader(settings);
3643 break;
3644 }
3645 }
3646 }
3647
3648 @helper RenderArticleCleanHeader(ArticleHeader settings) {
3649 dynamic[] methodParameters = new dynamic[1];
3650 methodParameters[0] = settings;
3651 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleCleanHeaderCustom");
3652 <div class="section__container container">
3653 <div class="section__content">
3654 @if (customMethod != null)
3655 {
3656 @customMethod.Invoke(this, methodParameters).ToString();
3657 }
3658 else
3659 {
3660 if (settings.Category.HasValue() || settings.Author.HasValue() || settings.Date.HasValue() || settings.RatingOutOf != 0)
3661 {
3662 if (settings.Category.HasValue())
3663 {
3664 <div class="article-detail__category" style="color: @settings.CategoryColor">@settings.Category</div>
3665 }
3666
3667 if (settings.Author.HasValue() || settings.Date.HasValue())
3668 {
3669 <small class="article-detail__info mb-2">@settings.Author @settings.Date</small>
3670 }
3671 if (settings.RatingOutOf != 0)
3672 {
3673 @RenderRating(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf })
3674 }
3675 }
3676 if (settings.Heading.HasValue())
3677 {
3678 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1>
3679 }
3680
3681 if (settings.Image != null)
3682 {
3683 if (settings.Image.Path != null)
3684 {
3685 <div class="article-detail__image mb-2">
3686 <img class="lazyload w-100" width="1920" height="1080" src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=20&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=95&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" />
3687 </div>
3688 }
3689 }
3690
3691 if (settings.Subheading.HasValue())
3692 {
3693 <h3 class="article-detail__subtitle h3 weight-normal mb-2 color-muted hidden">@settings.Subheading</h3>
3694 }
3695 if (settings.Link.HasValue())
3696 {
3697 <div class="article-detail__button">
3698 @RenderButton(new Button { Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout })
3699 </div>
3700 }
3701
3702 if (settings.ExternalParagraphId != 0)
3703 {
3704 @RenderParagraphContent(settings.ExternalParagraphId)
3705 }
3706 }
3707 </div>
3708 </div>
3709 }
3710
3711 @helper RenderArticleSplitHeader(ArticleHeader settings) {
3712 dynamic[] methodParameters = new dynamic[1];
3713 methodParameters[0] = settings;
3714 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSplitHeaderCustom");
3715
3716 if (customMethod != null)
3717 {
3718 @customMethod.Invoke(this, methodParameters).ToString();
3719 }
3720 else
3721 {
3722 if (settings.Image != null)
3723 {
3724 if (settings.Image.Path != null)
3725 {
3726 <div class="grid-xs-2 bg-neutral">
3727 <div class="article-detail__header__split mb-2 mb-xs-0 px-2 flex-wrap align-items-center">
3728 <div class="c0">
3729 @if (settings.Category.HasValue())
3730 {
3731 <div class="article-detail__category" style="color: @settings.CategoryColor">@settings.Category</div>
3732 }
3733 @if (settings.Heading.HasValue())
3734 {
3735 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1>
3736 }
3737 @if (settings.Subheading.HasValue())
3738 {
3739 <h3 class="article-detail__subtitle h3 weight-normal mb-2 color-muted">@settings.Subheading</h3>
3740 }
3741 @if (settings.Author.HasValue() || settings.Date.HasValue())
3742 {
3743 <small class="article-detail__info mb-2">@settings.Author @settings.Date</small>
3744 }
3745 @if (settings.RatingOutOf != 0)
3746 {
3747 @RenderRating(new Rating {Score = settings.RatingScore, OutOf = settings.RatingOutOf})
3748 }
3749 @if (settings.Link.HasValue())
3750 {
3751 <div class="article-detail__button">
3752 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout})
3753 </div>
3754 }
3755 </div>
3756 </div>
3757
3758 <div class="article-detail__image mb-2 mb-xs-0">
3759 <img src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=95&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path"/>
3760 </div>
3761 </div>
3762 if (settings.ExternalParagraphId != 0)
3763 {
3764 @RenderParagraphContent(settings.ExternalParagraphId)
3765 }
3766 }
3767 }
3768 else
3769 {
3770 @RenderArticleCleanHeader(settings);
3771 }
3772 }
3773 }
3774
3775 @helper RenderArticleOverlayHeader(ArticleHeader settings) {
3776 dynamic[] methodParameters = new dynamic[1];
3777 methodParameters[0] = settings;
3778 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleOverlayHeaderCustom");
3779
3780 if (customMethod != null)
3781 {
3782 @customMethod.Invoke(this, methodParameters).ToString();
3783 }
3784 else
3785 {
3786 if (settings.Image != null)
3787 {
3788 if (settings.Image.Path != null)
3789 {
3790 if (settings.ExternalParagraphId == 0)
3791 {
3792 <div class="section__container container--wide">
3793 <div class="section__content">
3794 <div class="article-detail-hero">
3795 <div class="article-detail-hero__content">
3796 <div class="block-container flex-wrap align-items-top h-100">
3797 <div class="c0 mt-4">
3798 @if (!String.IsNullOrEmpty(settings.Heading))
3799 {
3800 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1>
3801 }
3802 @if (!String.IsNullOrEmpty(settings.Subheading))
3803 {
3804 <div class="article-detail__subtitle h3 weight-normal mb-2">@settings.Subheading</div>
3805 }
3806 @if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date))
3807 {
3808 <div class="article-detail__info mb-2">@settings.Author @settings.Date</div>
3809 }
3810 @if (!String.IsNullOrEmpty(settings.Link))
3811 {
3812 <div class="article-detail__button">
3813 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout})
3814 </div>
3815 }
3816 @if (settings.ExternalParagraphId != 0)
3817 {
3818 @RenderParagraphContent(settings.ExternalParagraphId)
3819 }
3820 </div>
3821 </div>
3822 </div>
3823 <div class="article-detail-hero__image">
3824 <img src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=20&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&Height=1080&Crop=5&Compression=95&DoNotUpscale=True&FillCanvas=False&Image=@settings.Image.Path" class="object-fit-cover h-100 block w-100 lazyload"/>
3825 </div>
3826 </div>
3827 </div>
3828 </div>
3829 }
3830 else
3831 {
3832 @RenderArticleBanner(settings);
3833 }
3834 }
3835 }
3836 else
3837 {
3838 @RenderArticleCleanHeader(settings);
3839 }
3840 }
3841 }
3842
3843 @helper RenderArticleBannerHeader(dynamic settings) {
3844 dynamic[] methodParameters = new dynamic[1];
3845 methodParameters[0] = settings;
3846 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerHeaderCustom");
3847
3848 if (customMethod != null)
3849 {
3850 @customMethod.Invoke(this, methodParameters).ToString();
3851 }
3852 else
3853 {
3854 @RenderArticleBanner(settings);
3855 }
3856 }
3857 @using System.Reflection
3858 @using System.Text.RegularExpressions;
3859 @using Dynamicweb.Frontend
3860 @using Dynamicweb.Content.Items
3861 @using Dynamicweb.Rapido.Blocks.Components
3862 @using Dynamicweb.Rapido.Blocks.Components.Articles
3863 @using Dynamicweb.Rapido.Blocks
3864
3865 @* Component for the articles *@
3866
3867 @helper RenderArticleBodyRow(ArticleBodyRow settings)
3868 {
3869 dynamic[] methodParameters = new dynamic[1];
3870 methodParameters[0] = settings;
3871 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBodyRowCustom");
3872
3873 if (customMethod != null)
3874 {
3875 @customMethod.Invoke(this, methodParameters).ToString();
3876 } else {
3877 @RenderBlockList(settings.SubBlocks)
3878 }
3879 }
3880 @using System.Reflection
3881 @using Dynamicweb.Rapido.Blocks.Components
3882 @using Dynamicweb.Rapido.Blocks.Components.General
3883 @using Dynamicweb.Rapido.Blocks.Components.Articles
3884 @using Dynamicweb.Rapido.Blocks
3885
3886 @* Component for the articles *@
3887
3888 @helper RenderArticleImage(ArticleImage settings)
3889 {
3890 dynamic[] methodParameters = new dynamic[1];
3891 methodParameters[0] = settings;
3892 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleImageCustom");
3893
3894 if (customMethod != null)
3895 {
3896 @customMethod.Invoke(this, methodParameters).ToString();
3897 }
3898 else
3899 {
3900 if (settings.Image != null)
3901 {
3902 if (settings.Image.Path != null)
3903 {
3904 <img data-src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=72&Image=@settings.Image.Path" class="w-100 h-auto block lazyload" src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=20&Image=@settings.Image.Path">
3905 }
3906 }
3907 }
3908 }
3909 @using System.Reflection
3910 @using Dynamicweb.Rapido.Blocks.Components
3911 @using Dynamicweb.Rapido.Blocks.Components.Articles
3912
3913
3914 @* Component for the articles *@
3915
3916 @helper RenderArticleSubHeader(ArticleSubHeader settings)
3917 {
3918 dynamic[] methodParameters = new dynamic[1];
3919 methodParameters[0] = settings;
3920 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSubHeaderCustom");
3921
3922 if (customMethod != null)
3923 {
3924 @customMethod.Invoke(this, methodParameters).ToString();
3925 } else {
3926 if (!String.IsNullOrEmpty(settings.Title))
3927 {
3928 <div class="section__container container--narrow">
3929 <div class="section__content">
3930 <h2 class="article-detail__header h3">@settings.Title</h2>
3931 </div>
3932 </div>
3933 }
3934 }
3935 }
3936 @using System.Reflection
3937 @using Df.Dw
3938 @using Dynamicweb.Rapido.Blocks.Components
3939 @using Dynamicweb.Rapido.Blocks.Components.Articles
3940 @using Dynamicweb.Rapido.Blocks
3941
3942
3943 @* Component for the articles *@
3944
3945 @helper RenderArticleText(ArticleText settings)
3946 {
3947 dynamic[] methodParameters = new dynamic[1];
3948 methodParameters[0] = settings;
3949 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom");
3950
3951 if (customMethod != null)
3952 {
3953 @customMethod.Invoke(this, methodParameters).ToString();
3954 } else {
3955 if (settings.Text.HasValue())
3956 {
3957 <div class="section__container container--narrow mt-2 mb-3">
3958 <div class="section__content">
3959 <div class="article-detail__content font-size-20">@settings.Text</div>
3960 </div>
3961 </div>
3962
3963 }
3964 }
3965 }
3966 @using System.Reflection
3967 @using Dynamicweb.Rapido.Blocks.Components
3968 @using Dynamicweb.Rapido.Blocks.Components.Articles
3969 @using Dynamicweb.Rapido.Blocks
3970
3971
3972 @* Component for the articles *@
3973
3974 @helper RenderArticleQuote(ArticleQuote settings)
3975 {
3976 dynamic[] methodParameters = new dynamic[1];
3977 methodParameters[0] = settings;
3978 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleQuoteCustom");
3979
3980 if (customMethod != null)
3981 {
3982 @customMethod.Invoke(this, methodParameters).ToString();
3983 } else {
3984 string text = Regex.Replace(settings.Text, "<.*?>", String.Empty);
3985
3986 <div class="section__container container--narrow">
3987 <div class="section__content">
3988 @if (settings.Image != null)
3989 {
3990 if (settings.Image.Path != null)
3991 {
3992 <div class="grid__col-3">
3993 <div class="grid__cell-img">
3994 @{
3995 settings.Image.Title = !String.IsNullOrEmpty(settings.Image.Title) ? settings.Image.Title : settings.Author;
3996 settings.Image.CssClass += " article__image article__image--ball";
3997 settings.Image.ImageDefault.Width = 200;
3998 settings.Image.ImageDefault.Height = 200;
3999 }
4000 @RenderImage(settings.Image)
4001 </div>
4002 </div>
4003 }
4004 }
4005 <div class="bg-neutral h4 my-5 p-5 article-detail__quote relative overflow-hidden">
4006 @if (!String.IsNullOrEmpty(settings.Text))
4007 {
4008 <div class="ico quote--start">
4009 <svg width='512' height='512' viewBox='0 0 512 512'><line x1='118' y1='304' x2='394' y2='304' style='fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:square;stroke-linejoin:round;stroke-width:44px'/><line x1='118' y1='208' x2='394' y2='208' style='fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:square;stroke-linejoin:round;stroke-width:44px'/></svg>
4010 </div>
4011 <div class="ico quote--end">
4012 <svg width='512' height='512' viewBox='0 0 512 512'><line x1='118' y1='304' x2='394' y2='304' style='fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:square;stroke-linejoin:round;stroke-width:44px'/><line x1='118' y1='208' x2='394' y2='208' style='fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:square;stroke-linejoin:round;stroke-width:44px'/></svg>
4013 </div>
4014 <div class="article-detail__quote__content relative">
4015 @settings.Text
4016 </div>
4017
4018 }
4019 @if (!String.IsNullOrEmpty(settings.Author))
4020 {
4021 <div class="article__quote-author dw-mod">
4022 - @settings.Author
4023 </div>
4024 }
4025 </div>
4026 </div>
4027 </div>
4028 }
4029 }
4030 @using System.Reflection
4031 @using Dynamicweb.Rapido.Blocks.Components
4032 @using Dynamicweb.Rapido.Blocks.Components.Articles
4033 @using Dynamicweb.Rapido.Blocks
4034
4035 @* Component for the articles *@
4036
4037 @helper RenderArticleInfoTable(ArticleInfoTable settings)
4038 {
4039 dynamic[] methodParameters = new dynamic[1];
4040 methodParameters[0] = settings;
4041 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleInfoTableCustom");
4042
4043 if (customMethod != null)
4044 {
4045 @customMethod.Invoke(this, methodParameters).ToString();
4046 } else {
4047 <div class="grid-md-2">
4048 @foreach (var row in settings.Rows)
4049 {
4050 string iconColor = row.IconColor != null ? row.IconColor : "u-brand-color-two";
4051
4052 if (!String.IsNullOrEmpty(row.Icon))
4053 {
4054 <div><i class="@row.Icon fa-2x @row.IconColor"></i></div>
4055 }
4056 <div>
4057 <div>@row.Title</div>
4058 @if (!String.IsNullOrEmpty(row.SubTitle))
4059 {
4060 if (row.Link == null)
4061 {
4062 <div>@row.SubTitle</div>
4063 }
4064 else
4065 {
4066 <a href="@row.Link" class="u-color-inherit">@row.SubTitle</a>
4067 }
4068 }
4069 </div>
4070 }
4071 </div>
4072 }
4073 }
4074 @using System.Reflection
4075 @using Dynamicweb.Rapido.Blocks.Components
4076 @using Dynamicweb.Rapido.Blocks.Components.Articles
4077 @using Dynamicweb.Rapido.Blocks
4078
4079 @* Component for the articles *@
4080
4081 @helper RenderArticleGalleryModal(ArticleGalleryModal settings)
4082 {
4083 dynamic[] methodParameters = new dynamic[1];
4084 methodParameters[0] = settings;
4085 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
4086
4087 if (customMethod != null)
4088 {
4089 @customMethod.Invoke(this, methodParameters).ToString();
4090 }
4091 else
4092 {
4093 <input type="checkbox" id="ParagraphGalleryModalTrigger" class="modal-trigger" />
4094 <div class="modal-container">
4095 <label for="ParagraphGalleryModalTrigger" id="ParagraphGalleryModalOverlay" class="modal-overlay"></label>
4096 <div class="modal modal--full" id="ParagraphGalleryModal">
4097 <div class="modal__body modal__body--full">
4098 <div class="modal__image-min-size-wrapper">
4099 <img src="/Files/Images/placeholder.gif" id="ParagraphGallery" class="modal--full__img" alt="">
4100 </div>
4101 <div class="modal__images-counter" id="ParagraphGallery_counter"></div>
4102 <button class="modal__prev-btn" id="ParagraphGallery_prev" onclick="Gallery.prevImage('ParagraphGallery')" type="button">
4103 <i class="far fa-angle-left"></i>
4104 </button>
4105 <button class="modal__next-btn" id="ParagraphGallery_next" onclick="Gallery.nextImage('ParagraphGallery')" type="button">
4106 <i class="far fa-angle-right"></i>
4107 </button>
4108 </div>
4109 <label class="modal__close-btn" for="ParagraphGalleryModalTrigger"></label>
4110 </div>
4111 </div>
4112 }
4113 }
4114 @using System.Reflection
4115 @using Dynamicweb.Rapido.Blocks.Components
4116 @using Dynamicweb.Rapido.Blocks.Components.Articles
4117 @using Dynamicweb.Rapido.Blocks
4118
4119
4120 @* Component for the articles *@
4121
4122 @helper RenderArticleRelated(ArticleRelated settings)
4123 {
4124 //string cardClass = Pageview.Device.ToString() != "Tablet" ? "card u-color-light--bg u-full-height" : "";
4125 //string cardFooterClass = Pageview.Device.ToString() != "Tablet" ? "card-footer u-color-light--bg" : "";
4126
4127 <section class="col-12 related">
4128 <h2 class="article__header">@settings.Title</h2>
4129
4130 <div class="js-handlebars-root" id="@settings.Title.Replace(" ", String.Empty)" data-template="RelatedSimpleTemplate" data-json-feed="/Default.aspx?ID=@settings.FeedPageId&@settings.Query&ExcludeItemID=@settings.CurrentPageId&PageSize=@settings.PageSize"></div>
4131
4132 <script id="RelatedSimpleTemplate" type="text/x-template">
4133 {{#.}}
4134 <div class="grid">
4135 {{#Cases}}
4136 <div class="col-4">
4137 <a href="{{link}}">
4138 {{#if image}}
4139 <div class="flex-img image-hover__wrapper">
4140 <img class="img-fluid lazyload" loading="lazy" src="/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&DoNotUpscale=True&Compression=75&image={{image}}" alt="{{title}}" />
4141 </div>
4142 {{/if}}
4143
4144 <div class="card">
4145 <h3 class="article-list__item-header">{{title}}</h3>
4146 <p class="article__summary">{{summary}}</p>
4147 </div>
4148 </a>
4149 </div>
4150 {{/Cases}}
4151 </div>
4152 {{/.}}
4153 </script>
4154 </section>
4155 }
4156 @using System.Reflection
4157 @using Df.Dw
4158 @using Dynamicweb.Rapido.Blocks.Components
4159 @using Dynamicweb.Rapido.Blocks.Components.Articles
4160 @using Dynamicweb.Rapido.Blocks
4161
4162
4163 @* Component for the articles *@
4164
4165 @helper RenderArticleMenu(ArticleMenu settings)
4166 {
4167 dynamic[] methodParameters = new dynamic[1];
4168 methodParameters[0] = settings;
4169 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuCustom");
4170
4171 if (customMethod != null)
4172 {
4173 @customMethod.Invoke(this, methodParameters).ToString();
4174 } else {
4175 if (settings.Title.HasValue()) {
4176 <h3>@settings.Title</h3>
4177 }
4178
4179 <ul class="menu-left">
4180 @foreach (var item in settings.Items)
4181 {
4182 @RenderArticleMenuItem(item)
4183 }
4184 </ul>
4185 }
4186 }
4187
4188 @helper RenderArticleMenuItem(ArticleMenuItem settings)
4189 {
4190 dynamic[] methodParameters = new dynamic[1];
4191 methodParameters[0] = settings;
4192 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuItemCustom");
4193
4194 if (customMethod != null)
4195 {
4196 @customMethod.Invoke(this, methodParameters).ToString();
4197 } else {
4198 string link = !String.IsNullOrEmpty(settings.Link) ? settings.Link : "#";
4199
4200 if (settings.Title.HasValue()) {
4201 <li class="menu-left__item">
4202 <a href="@link" onclick="@settings.OnClick" class="menu-left__link">@settings.Title</a>
4203 </li>
4204 }
4205 }
4206 }
4207 @using System.Reflection
4208 @using Dynamicweb.Rapido.Blocks.Components
4209 @using Dynamicweb.Rapido.Blocks.Components.Articles
4210 @using Dynamicweb.Rapido.Blocks
4211
4212 @* Component for the articles *@
4213
4214 @helper RenderArticleList(ArticleList settings)
4215 {
4216 dynamic[] methodParameters = new dynamic[1];
4217 methodParameters[0] = settings;
4218 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCustom");
4219
4220 if (customMethod != null)
4221 {
4222 @customMethod.Invoke(this, methodParameters).ToString();
4223 } else {
4224 if (Pageview != null)
4225 {
4226 bool isParagraph = Pageview.CurrentParagraph != null ? true : false;
4227 string[] sortArticlesListBy = new string[2];
4228
4229 if (isParagraph) {
4230 sortArticlesListBy = Pageview.CurrentParagraph.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString()) ? Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" };
4231 }
4232 else {
4233 sortArticlesListBy = Pageview.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.Item["SortArticlesListBy"].ToString()) ? Pageview.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" };
4234 }
4235
4236 string sourcePage = settings.SourcePage != null ? settings.SourcePage : Pageview.ID.ToString();
4237
4238 @RenderItemList(new
4239 {
4240 ItemType = !String.IsNullOrEmpty(settings.ItemType) ? settings.ItemType : "DynamicArticle",
4241 ListSourceType = settings.SourceType,
4242 ListSourcePage = sourcePage,
4243 ItemFieldsList = "*",
4244 Filter = settings.Filter,
4245 ListOrderBy = sortArticlesListBy[0],
4246 ListOrderByDirection = sortArticlesListBy[1],
4247 ListSecondOrderBy = sortArticlesListBy[0] == "Date" ? "InFocusSortId" : "Date",
4248 ListSecondOrderByDirection = "ASC",
4249 IncludeAllChildItems = true,
4250 ListTemplate = settings.Template,
4251 ListPageSize = settings.PageSize.ToString()
4252 });
4253 }
4254 }
4255 }
4256 @using System.Reflection
4257 @using Df.Dw
4258 @using Dynamicweb.Rapido.Blocks.Components.Articles
4259
4260
4261 @* Component for the articles *@
4262
4263 @helper RenderArticleSummary(ArticleSummary settings)
4264 {
4265 dynamic[] methodParameters = new dynamic[1];
4266 methodParameters[0] = settings;
4267 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSummaryCustom");
4268
4269 if (customMethod != null)
4270 {
4271 @customMethod.Invoke(this, methodParameters).ToString();
4272 } else {
4273 if (settings.Text.HasValue())
4274 {
4275 <div class="article__summary">@settings.Text</div>
4276 }
4277 }
4278 }
4279 @using System.Reflection
4280 @using Dynamicweb.Rapido.Blocks.Components
4281 @using Dynamicweb.Rapido.Blocks.Components.Articles
4282 @using Dynamicweb.Rapido.Blocks
4283
4284 @* Component for the articles *@
4285 @helper RenderArticleListCategoryFilter(ArticleListCategoryFilter settings)
4286 {
4287 dynamic[] methodParameters = new dynamic[1];
4288 methodParameters[0] = settings;
4289 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCategoryFilterCustom");
4290
4291 if (customMethod != null)
4292 {
4293 @customMethod.Invoke(this, methodParameters).ToString();
4294 } else {
4295 string pageId = Pageview.ID.ToString();
4296 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("sourcePage")) ? HttpContext.Current.Request.QueryString.Get("sourcePage") : Translate("All");
4297 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString());
4298
4299 foreach (var option in settings.Categories)
4300 {
4301 selectedFilter = selectedFilter == option.Value ? option.Key : selectedFilter;
4302 }
4303
4304 if (selectedFilter == pageId)
4305 {
4306 selectedFilter = Translate(Translations.General.All);
4307 }
4308
4309 <div class="col-3 article__sort mb-3">
4310 <p>@Translate("Category")</p>
4311 <df-select name="CategorySelector" value="" placeholder="@Translate(Translations.General.All)" selected="@selectedFilter" data-role="sort">
4312 @foreach (var option in settings.Categories)
4313 {
4314 <df-option label="@Translate(option.Key)" value="[{ 'sourceType': 'Page', 'sourcePage': '@(option.Key.ToLower() == "all" ? pageId : option.Value)' }]" data-source-page = '@(option.Key.ToLower() == "all" ? pageId : option.Value)'><span>@Translate(option.Key)</span></df-option>
4315 }
4316 </df-select>
4317 </div>
4318 }
4319 }
4320 @using System.Reflection
4321 @using Dynamicweb.Rapido.Blocks.Components
4322 @using Dynamicweb.Rapido.Blocks.Components.Articles
4323 @using Dynamicweb.Rapido.Blocks
4324
4325 @* Component for the articles *@
4326
4327 @helper RenderArticleListFilter(ArticleListFilter settings)
4328 {
4329 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get(settings.SystemName)) ? HttpContext.Current.Request.QueryString.Get(settings.SystemName) : Translate("All");
4330 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString());
4331 string pageId = Pageview.ID.ToString();
4332
4333 if (settings.Options != null)
4334 {
4335 foreach (var option in settings.Options)
4336 {
4337 selectedFilter = selectedFilter == option.Value ? option.Name : selectedFilter;
4338 }
4339
4340 <df-select name="CategorySelector" value="" placeholder="@Translate(Translations.General.All)" selected="@selectedFilter" data-role="sort">
4341 @foreach (var option in settings.Options)
4342 {
4343 <df-option label="@Translate(option.Name)" value="[( '@settings.SystemName', '@option.Value' )]"><span>@Translate(option.Name)</span></df-option>
4344 }
4345 </df-select>
4346 }
4347 }
4348 @using System.Reflection
4349 @using Dynamicweb.Rapido.Blocks.Components
4350 @using Dynamicweb.Rapido.Blocks.Components.Articles
4351 @using Dynamicweb.Rapido.Blocks
4352
4353 @* Component for the articles *@
4354
4355 @helper RenderArticleListSearch(ArticleListSearch settings)
4356 {
4357 dynamic[] methodParameters = new dynamic[1];
4358 methodParameters[0] = settings;
4359 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListSearchCustom");
4360
4361 if (customMethod != null)
4362 {
4363 @customMethod.Invoke(this, methodParameters).ToString();
4364 } else {
4365 string searchString = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("Title")) ? HttpContext.Current.Request.QueryString.Get("Title").Trim('*') : "";
4366
4367 <div class="typeahead">
4368 <input type="text" class="typeahead-search-field" placeholder="@Translate("Search in list")" value="@searchString" id="ArticleListSearchInput" onchange="QueryArray.setParameterInCurrentURL('Title', '*' + document.getElementById('ArticleListSearchInput').value + '*')">
4369 <button type="button" class="btn"><i class="fas fa-search"></i></button>
4370 </div>
4371 }
4372 }
4373 @using System.Reflection
4374 @using Dynamicweb.Rapido.Blocks.Components
4375 @using Dynamicweb.Rapido.Blocks.Components.Articles
4376 @using Dynamicweb.Rapido.Blocks
4377
4378 @* Component for the articles *@
4379
4380 @helper RenderArticleListNoResultsInfo(ArticleListNoResultsInfo settings)
4381 {
4382 dynamic[] methodParameters = new dynamic[1];
4383 methodParameters[0] = settings;
4384 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListNoResultsInfoCustom");
4385
4386 if (customMethod != null)
4387 {
4388 @customMethod.Invoke(this, methodParameters).ToString();
4389 } else {
4390 @Translate(settings.Message)
4391 }
4392 }
4393 @using System.Reflection
4394 @using Dynamicweb.Rapido.Blocks.Components
4395 @using Dynamicweb.Rapido.Blocks.Components.General
4396 @using Dynamicweb.Rapido.Blocks.Components.Articles
4397 @using Dynamicweb.Rapido.Blocks
4398 @using System.Text.RegularExpressions
4399
4400 @* Component for the articles *@
4401
4402 @helper RenderArticleListItem(ArticleListItem settings)
4403 {
4404 switch (settings.Type) {
4405 case ArticleListItemType.Card:
4406 @RenderArticleListItemCard(settings);
4407 break;
4408 case ArticleListItemType.List:
4409 @RenderArticleListItemList(settings);
4410 break;
4411 case ArticleListItemType.Simple:
4412 @RenderArticleListItemSimple(settings);
4413 break;
4414 default:
4415 @RenderArticleListItemCard(settings);
4416 break;
4417 }
4418 }
4419
4420 @helper RenderArticleListItemCard(ArticleListItem settings) {
4421 <a href="@settings.Link" class="article__item__link text-decoration-none">
4422 @if (settings.Logo != null)
4423 {
4424 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=75&DoNotUpscale=True&image=" + settings.Image.Path + "); background-size: cover;" : "";
4425 settings.Logo.ImageDefault.Crop = 5;
4426 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width;
4427 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height;
4428 <div class="image-hover__wrapper layered-image layered-image--tinted" style="@backgroundImage">
4429 @if (settings.Stickers != null)
4430 {
4431 if (settings.Stickers.Position != StickersListPosition.Custom)
4432 {
4433 @RenderStickersCollection(settings.Stickers);
4434 }
4435 }
4436 @RenderImage(settings.Logo)
4437 </div>
4438 } else if (settings.Image != null)
4439 {
4440 <div class="article__item__image mb-2 w-100">
4441 @if (settings.Stickers != null)
4442 {
4443 if (settings.Stickers.Position != StickersListPosition.Custom)
4444 {
4445 @RenderStickersCollection(settings.Stickers);
4446 }
4447 }
4448 <img class="article__item__image img-fluid lazyload w-100" width="680" height="314" loading="lazy" src="/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&Format=webP&Quality=10&DoNotUpscale=True&image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&Format=webP&Quality=85&DoNotUpscale=True&image=@settings.Image.Path" alt="" />
4449 </div>
4450 }
4451
4452 @if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary))
4453 {
4454 if (settings.Stickers != null)
4455 {
4456 if (settings.Stickers.Position == StickersListPosition.Custom)
4457 {
4458 @RenderStickersCollection(settings.Stickers);
4459 }
4460 }
4461 if (!String.IsNullOrEmpty(settings.Title))
4462 {
4463 <h3 class="article__item__title mb-1 h4 weight-normal">@settings.Title</h3>
4464 }
4465 if (!String.IsNullOrEmpty(settings.SubTitle))
4466 {
4467 <div class="article-list__item-micro-info">@settings.SubTitle</div>
4468 }
4469 if (!String.IsNullOrEmpty(settings.Summary))
4470 {
4471 <p class="article__item__summary">@settings.Summary</p>
4472 }
4473 }
4474 </a>
4475 }
4476
4477 @helper RenderArticleListItemList(ArticleListItem settings) {
4478 <a href="@settings.Link">
4479 <div class="grid">
4480 <div class="grid__col-md-3">
4481 <div>
4482 @if (settings.Logo != null)
4483 {
4484 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=75&DoNotUpscale=True&image=" + settings.Image.Path + "); background-size: cover;" : "";
4485 settings.Logo.ImageDefault.Crop = 5;
4486 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width;
4487 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height;
4488 <div class="image-hover__wrapper layered-image layered-image--tinted" style="@backgroundImage">
4489 @if (settings.Stickers != null)
4490 {
4491 if (settings.Stickers.Position != StickersListPosition.Custom)
4492 {
4493 @RenderStickersCollection(settings.Stickers);
4494 }
4495 }
4496 @RenderImage(settings.Logo)
4497 </div>
4498 } else if (settings.Image != null)
4499 {
4500 <div class="flex-img image-hover__wrapper">
4501 @if (settings.Stickers != null)
4502 {
4503 if (settings.Stickers.Position != StickersListPosition.Custom)
4504 {
4505 @RenderStickersCollection(settings.Stickers);
4506 }
4507 }
4508 @RenderImage(settings.Image)
4509 </div>
4510 }
4511 </div>
4512 </div>
4513
4514 @if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary))
4515 {
4516 <div class="grid__col-md-9">
4517 @if (!String.IsNullOrEmpty(settings.Title))
4518 {
4519 <h3 class="test h3 weight-normal">@settings.Title</h3>
4520 }
4521 @if (settings.Stickers != null)
4522 {
4523 if (settings.Stickers.Position == StickersListPosition.Custom)
4524 {
4525 @RenderStickersCollection(settings.Stickers);
4526 }
4527 }
4528 @if (!String.IsNullOrEmpty(settings.SubTitle))
4529 {
4530 <div class="article-list__item-micro-info">@settings.SubTitle</div>
4531 }
4532 @if (!String.IsNullOrEmpty(settings.Summary))
4533 {
4534 <p class="article__summary">@settings.Summary</p>
4535 }
4536 </div>
4537 }
4538 </div>
4539 </a>
4540 }
4541
4542 @helper RenderArticleListItemSimple(ArticleListItem settings) {
4543 <div class="col-4">RenderArticleListCategoryFilter
4544 <a href="@settings.Link">
4545 @if (!String.IsNullOrEmpty(settings.Title))
4546 {
4547 <div class="article-list-item__header">@settings.Title</div>
4548 }
4549 @if (!String.IsNullOrEmpty(settings.SubTitle))
4550 {
4551 <div class="article-list__item-micro-info">@settings.SubTitle</div>
4552 }
4553 </a>
4554 </div>
4555 }
4556 @using System.Reflection
4557 @using Df.Dw
4558 @using Dynamicweb.Rapido.Blocks.Components.Articles
4559
4560 @* Component for the articles *@
4561
4562 @helper RenderArticleAuthorAndDate(ArticleAuthorAndDate settings)
4563 {
4564 dynamic[] methodParameters = new dynamic[1];
4565 methodParameters[0] = settings;
4566 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleAuthorAndDateCustom");
4567
4568 if (customMethod != null)
4569 {
4570 @customMethod.Invoke(this, methodParameters).ToString();
4571 } else {
4572 <small class="article__subscription">
4573 @if (settings.Author.HasValue() && string.IsNullOrWhiteSpace(settings.Date))
4574 {
4575 <text>@Translate(Translations.General.Written)</text>
4576 }
4577 @if (settings.Author.HasValue())
4578 {
4579 <text>@Translate(Translations.General.By) @settings.Author</text>
4580 }
4581 @if (!string.IsNullOrWhiteSpace(settings.Date))
4582 {
4583 <text>@Translate(Translations.General.On) @settings.Date</text>
4584 }
4585 </small>
4586 }
4587 }
4588 @using System.Reflection
4589 @using Dynamicweb.Rapido.Blocks.Components.Articles
4590
4591
4592 @* Component for the articles *@
4593
4594 @helper RenderArticleLink(ArticleLink settings)
4595 {
4596 dynamic[] methodParameters = new dynamic[1];
4597 methodParameters[0] = settings;
4598 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleLinkCustom");
4599
4600 if (customMethod != null)
4601 {
4602 @customMethod.Invoke(this, methodParameters).ToString();
4603 } else {
4604 if (!String.IsNullOrEmpty(settings.Title))
4605 {
4606 @RenderButton(settings)
4607 }
4608 }
4609 }
4610 @using System.Reflection
4611 @using Dynamicweb.Rapido.Blocks
4612 @using Dynamicweb.Rapido.Blocks.Components.Articles
4613 @using Dynamicweb.Rapido.Blocks.Components.General
4614 @using Df.Dw
4615
4616 @* Component for the articles *@
4617
4618 @helper RenderArticleCarousel(ArticleCarousel settings)
4619 {
4620 dynamic[] methodParameters = new dynamic[1];
4621 methodParameters[0] = settings;
4622 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
4623
4624 if (customMethod != null)
4625 {
4626 @customMethod.Invoke(this, methodParameters).ToString();
4627 } else {
4628 <div class="carousel" id="carousel_@settings.Id">
4629 <div class="carousel__container js-carousel-slides">
4630 @RenderBlockList(settings.SubBlocks)
4631 </div>
4632 </div>
4633 @SnippetStart("BottomJS")
4634 <script>
4635 document.addEventListener("DOMContentLoaded", function () {
4636 new CarouselModule("#carousel_@settings.Id", {
4637 slideTime: 0,
4638 dots: true
4639 });
4640 });
4641 </script>
4642 @SnippetEnd("BottomJS")
4643 }
4644 }
4645
4646 @helper RenderArticleCarouselSlide(ArticleCarouselSlide settings)
4647 {
4648 dynamic[] methodParameters = new dynamic[1];
4649 methodParameters[0] = settings;
4650 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom");
4651
4652 if (customMethod != null)
4653 {
4654 @customMethod.Invoke(this, methodParameters).ToString();
4655 }
4656 else
4657 {
4658 string imageEngine = "/Admin/Public/GetImage.ashx?";
4659
4660 string defaultImage = settings.ImageSettings != null ? imageEngine : settings.Image;
4661 if (settings.ImageSettings != null)
4662 {
4663 defaultImage += settings.ImageSettings.Width != 0 ? "Width=" + settings.ImageSettings.Width + "&" : "";
4664 defaultImage += settings.ImageSettings.Height != 0 ? "Height=" + settings.ImageSettings.Height + "&" : "";
4665 defaultImage += "Crop=" + settings.ImageSettings.Crop + "&";
4666 defaultImage += "Compression=" + settings.ImageSettings.Compression + "&";
4667 defaultImage += "DoNotUpscale=" + settings.ImageSettings.DoNotUpscale.ToString() + "&";
4668 defaultImage += "FillCanvas=" + settings.ImageSettings.FillCanvas.ToString() + "&";
4669 }
4670 defaultImage += "&Image=" + settings.Image;
4671
4672 <div class="carousel__slide u-min-h300px" style="background-size:cover; background-image:url('@defaultImage')">
4673 <a class="article-carousel-item__wrap" href="@settings.Link" title="@settings.Title">
4674 <h2 class="article-list__item-header">@settings.Title</h2>
4675 <div class="article-list__item-info">
4676 @if (settings.Stickers != null)
4677 {
4678 settings.Stickers.Position = StickersListPosition.Custom;
4679 @RenderStickersCollection(settings.Stickers);
4680 }
4681
4682 <small class="u-margin-top--lg u-color-light">
4683 @if (!(string.IsNullOrWhiteSpace(settings.Author) && string.IsNullOrWhiteSpace(settings.Date)))
4684 {
4685 <text>@Translate(Translations.General.Written)</text>
4686 }
4687 @if (!string.IsNullOrWhiteSpace(settings.Author))
4688 {
4689 <text>@Translate(Translations.General.By) @settings.Author</text>
4690 }
4691 @if (!string.IsNullOrWhiteSpace(settings.Date))
4692 {
4693 <text>@Translate(Translations.General.On) @settings.Date</text>
4694 }
4695 </small>
4696 </div>
4697
4698 <h3 class="article__summary u-color-light">@settings.Summary</h3>
4699 </a>
4700 @if (settings.UseFilters == true)
4701 {
4702 <div class="background-image image-filter image-filter--darken"></div>
4703 }
4704 </div>
4705 }
4706 }
4707 @using System.Text.RegularExpressions
4708 @using Dynamicweb.Rapido.Blocks.Components
4709 @using Dynamicweb.Rapido.Blocks.Components.General
4710 @using Dynamicweb.Rapido.Blocks.Components.Articles
4711 @using Dynamicweb.Rapido.Blocks
4712
4713 @* Component for the articles *@
4714
4715 @helper RenderArticleVideo(ArticleVideo settings)
4716 {
4717 dynamic[] methodParameters = new dynamic[1];
4718 methodParameters[0] = settings;
4719 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom");
4720
4721 if (customMethod != null)
4722 {
4723 @customMethod.Invoke(this, methodParameters).ToString();
4724 } else {
4725 if (settings.Url != null)
4726 {
4727 //getting video ID from youtube URL
4728 string videoCode = settings.Url;
4729 Regex regex = new Regex(@".be\/(.[^?]*)");
4730 Match match = regex.Match(videoCode);
4731 string videoId = "";
4732 if (match.Success)
4733 {
4734 videoId = match.Groups[1].Value;
4735 }
4736 else
4737 {
4738 regex = new Regex(@"v=([^&]+)");
4739 match = regex.Match(videoCode);
4740 if (match.Success)
4741 {
4742 videoId = match.Groups[1].Value;
4743 }
4744 }
4745
4746 int autoPlay = settings.AutoPlay == "true" ? 1 : 0;
4747
4748 <div class="section__container container--wide my-3">
4749 <div class="section__content">
4750 <div class="video-container">
4751 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/@videoId?rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
4752 @* <div class="js-youtube-video" data-video="@videoId" id="ytPlayer@(Guid.NewGuid().ToString("N"))" data-auto-play="@autoPlay" data-enable-controls="1"></div> *@
4753 </div>
4754 </div>
4755 </div>
4756
4757 }
4758 }
4759 }
4760
4761
4762
4763 @* Simple helpers *@
4764
4765 @*Requires the Gallery ItemType that comes with Rapido*@
4766 @helper RenderArticleItemGallery(IList<ItemViewModel> gallery) {
4767 if (gallery != null && gallery.Count > 0)
4768 {
4769 int count = 1;
4770
4771 foreach (var item in gallery)
4772 {
4773 if (item.GetFile("ImagePath") != null)
4774 {
4775 string image = item.GetFile("ImagePath").PathUrlEncoded;
4776 string imagePrefix = "/Admin/Public/GetImage.ashx?width=1200&height=820&crop=5&Compression=75&DoNotUpscale=1&image=";
4777 int imagesCount = gallery.Count;
4778
4779 if (count == 1)
4780 {
4781 <label class="gallery" for="ParagraphGalleryModalTrigger" onclick="Gallery.openImage(this.querySelector('.js-gallery'))">
4782 <span class="gallery__main-image">
4783 <img src="/Admin/Public/GetImage.ashx?width=992&height=760&crop=0&Compression=75&DoNotUpscale=1&image=@image" class="flex-img js-gallery" alt="" data-for="ParagraphGallery" data-image="@imagePrefix@image" />
4784 </span>
4785 <span class="gallery__image-counter">
4786 <i class="fas fa-camera fa-2x"></i> <span class="gallery__image-counter__number">@imagesCount</span>
4787 <span class="gallery__image-counter__text">@Translate("See all") <i class="fas fa-angle-right"></i></span>
4788 </span>
4789 </label>
4790 }
4791 else
4792 {
4793 <div class="u-hidden js-gallery" data-for="ParagraphGallery" data-image="@imagePrefix@image"></div>
4794 }
4795
4796 count++;
4797 }
4798 }
4799 @RenderArticleGalleryModal(new ArticleGalleryModal())
4800 }
4801 }
4802
4803 @helper RenderMobileFilters(List<Block> subBlocks)
4804 {
4805 if (subBlocks.Count > 0)
4806 {
4807 <div class="grid__col-12">
4808 <input type="checkbox" id="CheckFilters" class="js-remember-state u-hidden" data-expand="CheckFilters" />
4809 <div class="grid u-margin-bottom dw-mod" data-trigger="CheckFilters">
4810 @RenderBlockList(subBlocks)
4811 </div>
4812 <label for="CheckFilters" class="btn btn--secondary btn--full dw-mod js-expand-hide" data-trigger="CheckFilters">@Translate("Select filters")</label>
4813 <label for="CheckFilters" class="btn btn--secondary btn--full dw-mod expandable--collapsed" data-trigger="CheckFilters">@Translate("Close filters")</label>
4814 </div>
4815 }
4816 }
4817
4818 @if (File.Exists(HttpContext.Current.Server.MapPath("/Components/Custom/Custom__Components.cshtml")))
4819 {
4820 <text>@using Dynamicweb.Rapido.Blocks.Components.General
4821
4822 @helper RenderInlineSvg(string theme = "default", string icon="none.svg")
4823 {
4824 var DesignFolder = Pageview.Layout.Design.Name;
4825 // string themeCookie = HttpContext.Current.Request.Cookies["Theme"] != null ? HttpContext.Current.Request.Cookies["Theme"].Value : theme;
4826 // var themeNormalized = theme;
4827 // if (!string.IsNullOrEmpty(themeCookie))
4828 // {
4829 // themeNormalized = themeCookie;
4830 // }
4831 var themeNormalized = "decocenter";
4832
4833 <div class="ico">
4834 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg"))
4835 </div>
4836 }
4837
4838 @functions {
4839 public class ArticleImageContainerAware : ComponentBase
4840 {
4841 public string Link { get; set; }
4842 public string Layout { get; set; }
4843 public string Alt { get; set; }
4844 }
4845 public class ArticleHeadingRefactored : ComponentBase
4846 {
4847 public string Value { get; set; }
4848 public string Tag { get; set; }
4849 }
4850 public class ArticleSubHeadingRefactored : ComponentBase
4851 {
4852 public string Value { get; set; }
4853 public string Tag { get; set; }
4854 }
4855 public class ArticleVideoRefactored : ComponentBase
4856 {
4857 public string Url { get; set; }
4858 public string AutoPlay { get; set; }
4859 public string Layout { get; set; }
4860 }
4861 }
4862
4863 @helper RenderArticleImageContainerAware (ArticleImageContainerAware settings) {
4864 switch (settings.Layout)
4865 {
4866 case "banner":
4867 <div class="section__container container--wide">
4868 <div class="section__content">
4869 <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=72&Image=@settings.Link" data-srcset="" class="w-100 h-auto block lazyload" alt="@settings.Alt">
4870 </div>
4871 </div>
4872 break;
4873 case "wide":
4874 <div class="section__container container">
4875 <div class="section__content">
4876 <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=72&Image=@settings.Link" class="w-100 h-auto block lazyload" src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=20&Image=@settings.Link">
4877 </div>
4878 </div>
4879 break;
4880 case "straight":
4881 <div class="section__container container--narrow">
4882 <div class="section__content">
4883 <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=72&Image=@settings.Link" class="w-100 h-auto block lazyload" alt="@settings.Alt">
4884 </div>
4885 </div>
4886 break;
4887 default:
4888 <div class="section__container container--wide">
4889 <div class="section__content">
4890 <img data-src="/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=72&Image=@settings.Link" class="w-100 h-auto block lazyload" alt="@settings.Alt">
4891 </div>
4892 </div>
4893 break;
4894 }
4895
4896 }
4897
4898 @helper RenderArticleHeadingRefactored (ArticleHeadingRefactored settings)
4899 {
4900 <div class="section__container container--narrow">
4901 <div class="section__content">
4902 @switch (settings.Tag)
4903 {
4904 case "2":
4905 <h2 class="article-detail__header h2">@settings.Value</h2>
4906 break;
4907 case "3":
4908 <h3 class="article-detail__header h2">@settings.Value</h3>
4909 break;
4910 case "4":
4911 <h4 class="article-detail__header h2">@settings.Value</h4>
4912 break;
4913 case "5":
4914 <h5 class="article-detail__header h2">@settings.Value</h5>
4915 break;
4916 case "0":
4917 <div class="article-detail__header h2">@settings.Value</div>
4918 break;
4919 default:
4920 <h2 class="article-detail__header h2">@settings.Value</h2>
4921 break;
4922 }
4923 </div>
4924 </div>
4925 }
4926
4927 @helper RenderArticleSubHeadingRefactored (ArticleSubHeadingRefactored settings)
4928 {
4929 <div class="section__container container--narrow my-2">
4930 <div class="section__content">
4931 @switch(settings.Tag) {
4932 case "2":
4933 <h2 class="article-detail__subheading h3">@settings.Value</h2>
4934 break;
4935 case "3":
4936 <h3 class="article-detail__subheading h3">@settings.Value</h3>
4937 break;
4938 case "4":
4939 <h4 class="article-detail__subheading h3">@settings.Value</h4>
4940 break;
4941 case "5":
4942 <h5 class="article-detail__subheading h3">@settings.Value</h5>
4943 break;
4944 case "0":
4945 <div class="article-detail__subheading h3">@settings.Value</div>
4946 break;
4947 default:
4948 <h3 class="article-detail__subheading h3">@settings.Value</h3>
4949 break;
4950 }
4951 </div>
4952 </div>
4953 }
4954
4955 @helper RenderArticleVideoRefactored (ArticleVideoRefactored settings) {
4956 //getting video ID from youtube URL
4957 string videoCode = settings.Url;
4958 Regex regex = new Regex(@".be\/(.[^?]*)");
4959 Match match = regex.Match(videoCode);
4960 string videoId = "";
4961 if (match.Success)
4962 {
4963 videoId = match.Groups[1].Value;
4964 }
4965 else
4966 {
4967 regex = new Regex(@"v=([^&]+)");
4968 match = regex.Match(videoCode);
4969 if (match.Success)
4970 {
4971 videoId = match.Groups[1].Value;
4972 }
4973 }
4974
4975 int autoPlay = settings.AutoPlay == "true" ? 1 : 0;
4976
4977 switch (settings.Layout)
4978 {
4979 case "banner":
4980 <div class="section__container container--wide my-3">
4981 <div class="section__content">
4982 <div class="video-container">
4983 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/@videoId?rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
4984 </div>
4985 </div>
4986 </div>
4987 break;
4988 case "wide":
4989 <div class="section__container container my-3">
4990 <div class="section__content">
4991 <div class="video-container">
4992 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/@videoId?rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
4993 </div>
4994 </div>
4995 </div>
4996 break;
4997 case "straight":
4998 <div class="section__container container--narrow my-3">
4999 <div class="section__content">
5000 <div class="video-container">
5001 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/@videoId?rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
5002 </div>
5003 </div>
5004 </div>
5005 break;
5006 default:
5007 <div class="section__container container--wide my-3">
5008 <div class="section__content">
5009 <div class="video-container">
5010 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/@videoId?rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
5011 </div>
5012 </div>
5013 </div>
5014 break;
5015 }
5016
5017 }
5018
5019
5020 @functions {
5021 public class ButtonRefactored : ComponentBase
5022 {
5023 public string Style { get; set; }
5024 public string Theme { get; set; }
5025 public string CssClass { get; set; }
5026 public string Attributes { get; set; }
5027 public string Label { get; set; }
5028 public string AriaLabel { get; set; }
5029 public string Type { get; set; }
5030 }
5031 public class LinkRefactored : ComponentBase
5032 {
5033 public string Style { get; set; }
5034 public string Theme { get; set; }
5035 public string CssClass { get; set; }
5036 public string Attributes { get; set; }
5037 public string Label { get; set; }
5038 public string URL { get; set; }
5039 }
5040 }
5041
5042 @helper RenderButtonRefactored (ButtonRefactored settings) {
5043 if (settings != null && !string.IsNullOrEmpty(settings.Label))
5044 {
5045 string btnStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill";
5046 string btnTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted";
5047 string btnType = !string.IsNullOrEmpty(settings.Type) ? settings.Type : "button";
5048 string btnAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : "";
5049 string btnAriaLabel = !string.IsNullOrEmpty(settings.AriaLabel) ? settings.AriaLabel : settings.Label;
5050 <button type="@btnType" class="btn-@btnStyle--@btnTheme @settings.CssClass" @btnAttributes aria-label="">@settings.Label</button>
5051 }
5052 }
5053 @helper RenderLinkRefactored (LinkRefactored settings) {
5054 if (settings != null && !string.IsNullOrEmpty(settings.URL) && !string.IsNullOrEmpty(settings.Label))
5055 {
5056 string linkStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill";
5057 string linkTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted";
5058 string linkAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : "";
5059 <a href="@settings.URL" class="btn btn-@linkStyle--@linkTheme @settings.CssClass" @linkAttributes>@settings.Label</a>
5060 }
5061 } </text>
5062 }
5063
5064 @* Include the Blocks for the page *@
5065 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
5066
5067 @using System
5068 @using System.Web
5069 @using Df.Dw
5070 @using Dynamicweb.Rapido.Blocks.Extensibility
5071 @using Dynamicweb.Rapido.Blocks
5072 @*using System.Collections.Generic *@
5073
5074 @{
5075 BlocksPage topSnippetsBlocksPage = BlocksPage.GetBlockPage("Master");
5076
5077 Block tagManager = new Block()
5078 {
5079 Id = "TagManager",
5080 SortId = 1,
5081 Template = RenderGoogleTagManager()
5082 };
5083
5084 Block facebookPixel = new Block()
5085 {
5086 Id = "FacebookPixel",
5087 SortId = 2,
5088 Template = RenderFacebookPixel()
5089 };
5090
5091 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, tagManager);
5092 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, facebookPixel);
5093 }
5094
5095 @helper RenderGoogleTagManager() {
5096 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5097
5098 if (areaInfo.GoogleTagManagerID.HasValue())
5099 {
5100 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false;
5101 if (!debugSpeedTest)
5102 {
5103 <script>
5104 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5105 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5106 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5107 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
5108 })(window,document,'script','dataLayer','@areaInfo.GoogleTagManagerID');
5109 </script>
5110 <!-- Google Tag Manager (noscript) -->
5111 <noscript>
5112 <iframe src="https://www.googletagmanager.com/ns.html?id=@areaInfo.GoogleTagManagerID"
5113 height="0" width="0" style="display:none;visibility:hidden"></iframe>
5114 </noscript>
5115 <!-- End Google Tag Manager (noscript) -->
5116 }
5117 }
5118 }
5119
5120 @helper RenderFacebookPixel() {
5121 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5122
5123 if (areaInfo.FacebookPixelID.HasValue())
5124 {
5125 <!-- Facebook Pixel Code -->
5126 <script>
5127 !function(f,b,e,v,n,t,s)
5128 {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
5129 n.callMethod.apply(n,arguments):n.queue.push(arguments)};
5130 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
5131 n.queue=[];t=b.createElement(e);t.async=!0;
5132 t.src=v;s=b.getElementsByTagName(e)[0];
5133 s.parentNode.insertBefore(t,s)}(window, document,'script',
5134 'https://connect.facebook.net/en_US/fbevents.js');
5135 fbq('init', '@areaInfo.FacebookPixelID');
5136 fbq('track', 'PageView');
5137 </script>
5138 <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=@areaInfo.FacebookPixelID&ev=PageView&noscript=1" alt="" /></noscript>
5139 }
5140 }
5141 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
5142
5143 @using System
5144 @using System.Web
5145 @using Dynamicweb.Rapido.Blocks
5146 @using Dynamicweb.Rapido.Blocks.Extensibility
5147 @using Dynamicweb.Security.UserManagement
5148 @using Dynamicweb.Security.UserManagement.ExternalAuthentication
5149 @* using System.Collections.Generic *@
5150
5151 @{
5152 BlocksPage loginBlocksPage = BlocksPage.GetBlockPage("Master");
5153
5154 Block loginModal = new Block()
5155 {
5156 Id = "LoginModal",
5157 SortId = 10,
5158 Template = LoginModal()
5159 };
5160 loginBlocksPage.Add(MasterBlockId.MasterBottomSnippets, loginModal);
5161 }
5162
5163 @helper LoginModal() {
5164 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5165 string userSignedInErrorText = "";
5166 string loginJsonPage = GetPageIdByNavigationTag("LoginJSON").ToString();
5167 var cultureInfo = Pageview.Area;
5168 var countryService = new Dynamicweb.Ecommerce.International.CountryService();
5169 var DesignFolder = Pageview.Layout.Design.Name;
5170
5171 if (Model.LogOnFailed) {
5172 switch (Model.LogOnFailedReason)
5173 {
5174 case LogOnFailedReason.PasswordLengthInvalid:
5175 userSignedInErrorText = Translate(Translations.Account.PasswordLengthIsInvalid);
5176 break;
5177 case LogOnFailedReason.IncorrectLogin:
5178 userSignedInErrorText = Translate(Translations.Account.InvalidEmailOrPassword);
5179 break;
5180 case LogOnFailedReason.ExceededFailedLogOnLimit:
5181 userSignedInErrorText = Translate(Translations.Account.LimitOfAllowedLoginAttempts);
5182 break;
5183 case LogOnFailedReason.LoginLocked:
5184 userSignedInErrorText = Translate(Translations.Account.TheUserAccountIsTemporarilyLocked);
5185 break;
5186 case LogOnFailedReason.PasswordExpired:
5187 userSignedInErrorText = Translate(Translations.Account.ThePasswordHasExpired);
5188 break;
5189 default:
5190 userSignedInErrorText = Translate(Translations.Account.AnUnknownErrorOccured);
5191 break;
5192 }
5193 }
5194
5195 <df-modal id="SignInModal" class="login-container align-items-center">
5196
5197 <span class="login__form-wrapper grid-md-12 gap-0">
5198 <div class="content__login col-md-5 bg-brand color-light px-4 py-2 align-items-center flex-wrap text-center">
5199 <div class="c0 w-100">
5200 @if (!string.IsNullOrEmpty(areaInfo.FooterLogo))
5201 {
5202 <div class="content__login-img mb-2">
5203 <a href="@areaInfo.FirstPageLink" class="flex-wrap w-100 align-items-center justify-content-center">
5204 <img class="logo__img lazyload" loading="lazy" width="200" height="40" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="@areaInfo.FooterLogo" alt="@Translate(Translations.General.Logo)"/>
5205 </a>
5206 </div>
5207 }
5208 <div class="content__login-text">
5209 <h5 class="h3">@Translate(Translations.General.LoginModalHeading)</h5>
5210 <p>@Translate(Translations.General.LoginModalSubHeading)</p>
5211 </div>
5212 </div>
5213
5214 </div>
5215 <div class="form__section col-md-7 p-4">
5216 <div class="tab">
5217 <div class="tablinks" data-tab="Login"><span class="h5 px-2 px-xs-3">@Translate(Translations.Account.LogIn)</span></div>
5218 <div class="tablinks" data-tab="CreateAccount"><span class="h5 px-2 px-xs-3">@Translate(Translations.Account.CreateAccount)</span></div>
5219 <div class="tablinks" data-tab="CreateDesignerAccount"><span class="h5 px-2 px-xs-3">@Translate("Solicita cont designer")</span></div>
5220 </div>
5221 <div id="Login" class="tab-content">
5222 <form method="post" id="Modal__LoginForm" class="items-vertical" data-json-page="/Default.aspx?ID=@loginJsonPage" data-role="login" data-empty-fields="@Translate(Translations.Account.EmptyFields)" novalidate>
5223 <input type="hidden" name="ID" value="@areaInfo.PageId"/>
5224 <input type="hidden" name="DWExtranetUsernameRemember" value="True"/>
5225 <input type="hidden" name="DWExtranetPasswordRemember" value="True"/>
5226 <df-input class="item" type="email" name="username" id="Modal__username" label="@Translate(Translations.Account.Email)" value="" required></df-input>
5227 <df-input class="item" type="password" name="password" id="Modal__password" label="@Translate(Translations.Account.Password)" value="" required></df-input>
5228 @* <div class="field-error dw-mod">@userSignedInErrorText</div> *@
5229
5230
5231 <df-checkbox class="item" name="Autologin" id="Modal__Autologin" value="True" checked><span>@Translate(Translations.Account.RememberMe)</span></df-checkbox>
5232
5233 <div class="login__actions flex-wrap align-items-center child-mr-2">
5234 <button type="submit" class="btn-fill--accent" name="LoginAction" value="Login">@Translate(Translations.Account.SignIn)</button>
5235 <a href="@areaInfo.ForgotPasswordPageLink" class="forgot--password">@Translate(Translations.Account.ForgotYourPassword)</a>
5236 </div>
5237
5238 </form>
5239 </div>
5240 <div id="CreateAccount" class="tab-content">
5241 <form name="UserManagementEditForm" method="post" action="@areaInfo.LinkStart@areaInfo.CreateAccountPage.ID" class="items-vertical" data-role="create-account" data-empty-fields="@Translate(Translations.Account.EmptyFields)" data-password-match="@Translate(Translations.Account.PasswordsNoMatch)" novalidate>
5242 <input type="hidden" name="UserManagementForm" value="1">
5243 <input type="hidden" name="UserManagement_Form_CountryCode" value="@cultureInfo.EcomCountryCode">
5244 <input type="hidden" name="UserManagement_Form_Country" value="@countryService.GetCountry(cultureInfo.EcomCountryCode).Name">
5245 <input type="hidden" name="UserManagement_Form_Currency" value="@cultureInfo.EcomCurrencyId">
5246 <input type="hidden" name="UserManagement_Form_ShopId" value="@cultureInfo.EcomShopId">
5247 <input type="checkbox" class="hide" name="UserManagement_Form_DisableLivePrices" value="1" checked="checked">
5248 <input type="hidden" name="UserManagement_Form_Name" value="">
5249
5250
5251 <df-input class="item" type="text" name="UserManagement_Form_LastName" label="@Translate(Translations.Account.LastName)" data-error-message="@Translate(Translations.Account.LastNameCannotBeEmpty)" value="" required></df-input>
5252 <df-input class="item" type="text" name="UserManagement_Form_FirstName" label="@Translate(Translations.Account.FirstName)" data-error-message="@Translate(Translations.Account.FirstNameCannotBeEmpty)" value="" required></df-input>
5253
5254 <df-input class="item" type="email" name="UserManagement_Form_Email" label="@Translate(Translations.Account.Email)" value="" required data-error-message="@Translate(Translations.Account.EmailCannotBeEmpty)"></df-input>
5255 <df-input class="item" type="password" name="UserManagement_Form_NewPassword" label="@Translate(Translations.Account.Password)" value="" required data-error-message="@Translate(Translations.Account.PasswordFieldCannotBeEmpty)"></df-input>
5256 <df-input class="item" type="password" name="UserManagement_Form_NewPasswordConfirm" label="@Translate(Translations.Account.ConfirmPassword)" value="" required data-error-message="@Translate(Translations.Account.NewPasswordConfimShouldNotBeEmpty)"></df-input>
5257
5258 <div class="item">
5259 <df-checkbox data-accept-terms="@Translate("Accept T&C")" value="yes" id="EcomOrderCustomerAcceptedLogin" name="EcomOrderCustomerAccepted"><span><a href="@areaInfo.LinkStart@areaInfo.TermsAndConditions.ID&LayoutTemplate=Designs/@DesignFolder/clean.cshtml" id="asyncTerms"><span>@Translate(Translations.General.IAcceptTheTermsAndConditions)</span></a></span></df-checkbox>
5260
5261 </div>
5262 <button type="submit" class="btn-fill--accent" id="submitter">@Translate(Translations.Account.CreateYourNewAccount)</button>
5263
5264 </form>
5265 </div>
5266 <div id="CreateDesignerAccount" class="tab-content">
5267 <form name="UserManagementEditForm" method="post" action="@areaInfo.LinkStart@GetPageIdByNavigationTag("CreateDesignerAccount").ToString()" class="items-vertical" data-role="create-account" data-empty-fields="@Translate(Translations.Account.EmptyFields)" data-password-match="@Translate(Translations.Account.PasswordsNoMatch)" novalidate>
5268 <input type="hidden" name="UserManagementForm" value="1">
5269 <input type="hidden" name="UserManagement_Form_CountryCode" value="@cultureInfo.EcomCountryCode">
5270 <input type="hidden" name="UserManagement_Form_Country" value="@countryService.GetCountry(cultureInfo.EcomCountryCode).Name">
5271 <input type="hidden" name="UserManagement_Form_Currency" value="@cultureInfo.EcomCurrencyId">
5272 <input type="hidden" name="UserManagement_Form_ShopId" value="@cultureInfo.EcomShopId">
5273 <input type="checkbox" class="hide" name="UserManagement_Form_DisableLivePrices" value="1" checked="checked">
5274 <input type="hidden" name="UserManagement_Form_Name" value="">
5275
5276
5277 <df-input class="item" type="text" name="UserManagement_Form_LastName" label="@Translate(Translations.Account.LastName)" data-error-message="@Translate(Translations.Account.LastNameCannotBeEmpty)" value="" required></df-input>
5278 <df-input class="item" type="text" name="UserManagement_Form_FirstName" label="@Translate(Translations.Account.FirstName)" data-error-message="@Translate(Translations.Account.FirstNameCannotBeEmpty)" value="" required></df-input>
5279
5280 <df-input class="item" type="email" name="UserManagement_Form_Email" label="@Translate(Translations.Account.Email)" value="" required data-error-message="@Translate(Translations.Account.EmailCannotBeEmpty)"></df-input>
5281 <df-input class="item" type="password" name="UserManagement_Form_NewPassword" label="@Translate(Translations.Account.Password)" value="" required data-error-message="@Translate(Translations.Account.PasswordFieldCannotBeEmpty)"></df-input>
5282 <df-input class="item" type="password" name="UserManagement_Form_NewPasswordConfirm" label="@Translate(Translations.Account.ConfirmPassword)" value="" required data-error-message="@Translate(Translations.Account.NewPasswordConfimShouldNotBeEmpty)"></df-input>
5283
5284 <div class="item">
5285 <df-checkbox data-accept-terms="@Translate("Accept T&C")" value="yes" id="EcomOrderCustomerAcceptedLogin" name="EcomOrderCustomerAccepted"><span><a href="@areaInfo.LinkStart@areaInfo.TermsAndConditions.ID&LayoutTemplate=Designs/@DesignFolder/clean.cshtml" id="asyncTerms"><span>@Translate(Translations.General.IAcceptTheTermsAndConditions)</span></a></span></df-checkbox>
5286
5287 </div>
5288 <button type="submit" class="btn-fill--accent" id="submitter">@Translate(Translations.Account.CreateYourNewAccount)</button>
5289
5290 </form>
5291 </div>
5292 </div>
5293 </span>
5294
5295 </df-modal>
5296
5297 }
5298
5299
5300 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
5301
5302 @using System
5303 @using System.Web
5304 @using Dynamicweb.Rapido.Blocks.Extensibility
5305 @using Dynamicweb.Rapido.Blocks
5306 @* using System.Collections.Generic *@
5307
5308 @functions {
5309 BlocksPage mobileHeaderBlocksPage = BlocksPage.GetBlockPage("Master");
5310 }
5311
5312 @{
5313 bool mobileOnlyPreview = Model.Area.Item.GetItem("Ecommerce").GetBoolean("mobileOnlyPreviewForAnonymous") && Model.CurrentUser.ID == 0;
5314 var mobileTopLayout = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetString("Design")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
5315 bool mobileHideSearch = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSearch");
5316 bool mobileHideCart = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideCart") || mobileOnlyPreview;
5317
5318 // Block mobileHeader = new Block()
5319 // {
5320 // Id = "MobileTop",
5321 // SortId = 10,
5322 // Template = RenderMobileTop(),
5323 // SkipRenderBlocksList = true
5324 // };
5325 // mobileHeaderBlocksPage.Add("MasterReferences", mobileHeader);
5326
5327 // Block mobileContactContainer = new Block()
5328 // {
5329 // Id = "MobileContactContainer",
5330 // SortId = 90,
5331 // Template = RenderMobileContactContainer(),
5332 // SkipRenderBlocksList = true
5333 // };
5334 //mobileHeaderBlocksPage.Add("MasterReferences", mobileContactContainer);
5335
5336 // Block mobileHeaderNavigation = new Block()
5337 // {
5338 // Id = "MobileHeaderNavigation",
5339 // SortId = 10,
5340 // Template = RenderMobileHeaderNavigation(),
5341 // SkipRenderBlocksList = true,
5342 // Design = new Design
5343 // {
5344 // CssClass = "nav--primary M"
5345 // },
5346 // // BlocksList = new List<Block> {
5347 // // new Block {
5348 // // Id = "MobileHeaderNavigationTrigger",
5349 // // SortId = 10,
5350 // // Template = RenderMobileHeaderNavigationTrigger()
5351 // // }
5352 // // }
5353 // };
5354 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderNavigation);
5355
5356 // Block mobileHeaderLogo = new Block()
5357 // {
5358 // Id = "MobileHeaderLogo",
5359 // SortId = 20,
5360 // Template = RenderMobileHeaderLogo(),
5361 // SkipRenderBlocksList = true
5362 // };
5363 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderLogo);
5364
5365 // Block mobileHeaderActions = new Block()
5366 // {
5367 // Id = "MobileHeaderActions",
5368 // SortId = 30,
5369 // Template = RenderMobileTopActions(),
5370 // SkipRenderBlocksList = true
5371 // };
5372 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderActions);
5373
5374 // if (mobileHideSearch == false)
5375 // {
5376 // Block mobileHeaderSearch = new Block
5377 // {
5378 // Id = "MobileHeaderSearch",
5379 // SortId = 10
5380 // };
5381 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderSearch);
5382 // }
5383
5384 // Block mobileHeaderMiniCart;
5385
5386 // if (!mobileHideCart)
5387 // {
5388 // mobileHeaderMiniCart = new Block
5389 // {
5390 // Id = "MobileHeaderMiniCart",
5391 // SortId = 20,
5392 // Template = RenderMobileMiniCart()
5393 // };
5394
5395 Block miniCartCounterScriptTemplatev2 = new Block
5396 {
5397 Id = "MiniCartCounterScriptTemplate",
5398 Template = RenderMiniCartCounterContentRefactored()
5399 };
5400 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", miniCartCounterScriptTemplatev2);
5401 //}
5402 // else
5403 // {
5404 // mobileHeaderMiniCart = new Block
5405 // {
5406 // Id = "MobileHeaderMiniCart",
5407 // SortId = 20
5408 // };
5409 // }
5410
5411 // user
5412 // Block mobileHeaderUser = new Block
5413 // {
5414 // Id = "MobileHeaderUser",
5415 // SortId = 10,
5416 // Template = RenderMobileUser()
5417 // };
5418 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderUser);
5419 // end user
5420
5421
5422 // if (!mobileHideSearch)
5423 // {
5424 // Block mobileHamburger = new Block
5425 // {
5426 // Id = "MobileHamburger",
5427 // SortId = 40,
5428 // Template = RenderMobileHamburger()
5429 // };
5430 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHamburger);
5431 // }
5432 //
5433 //
5434 // if (!mobileHideSearch)
5435 // {
5436 // Block mobileBottomSearch = new Block
5437 // {
5438 // Id = "MobileBottomSearch",
5439 // SortId = 50,
5440 // Template = RenderMobileSearch()
5441 // };
5442 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileBottomSearch);
5443 // }
5444
5445
5446
5447
5448 // if (!mobileHideSearch)
5449 // {
5450 // Block mobileHeaderSearchBar = new Block()
5451 // {
5452 // Id = "MobileHeaderSearchBar",
5453 // SortId = 30,
5454 // Template = RenderMobileTopSearchBar(),
5455 // Design = new Design
5456 // {
5457 // CssClass = "nav--wrapper SC"
5458 // }
5459 // };
5460 // mobileHeaderBlocksPage.Add(MasterBlockId.MasterHeader, mobileHeaderSearchBar);
5461 // }
5462
5463 // switch (mobileTopLayout)
5464 // {
5465 // case "nav-left":
5466 // mobileHeaderNavigation.SortId = 10;
5467 // mobileHeaderLogo.SortId = 20;
5468 // mobileHeaderActions.SortId = 30;
5469 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart);
5470 // break;
5471 // case "nav-right":
5472 // mobileHeaderLogo.SortId = 10;
5473 // mobileHeaderActions.SortId = 20;
5474 // mobileHeaderNavigation.SortId = 30;
5475 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart);
5476 // break;
5477 // case "nav-search-left":
5478 // mobileHeaderNavigation.SortId = 10;
5479 // mobileHeaderLogo.SortId = 20;
5480 // mobileHeaderActions.SortId = 30;
5481 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart);
5482 // break;
5483 // case "search-left":
5484 // mobileHeaderActions.SortId = 10;
5485 // mobileHeaderLogo.SortId = 20;
5486 // mobileHeaderNavigation.SortId = 30;
5487 // mobileHeaderMiniCart.SortId = 0;
5488 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart);
5489 // break;
5490 // }
5491 //
5492 // if (!mobileOnlyPreview)
5493 // {
5494 // BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", new Block {
5495 // Id = "CartInitialization",
5496 // Template = RenderMobileCartInitialization()
5497 // });
5498 // }
5499 }
5500
5501 @helper RenderMobileCartInitialization()
5502 {
5503 int miniCartFeedPageId = GetPageIdByNavigationTag("MiniCartFeed");
5504 <script>
5505 window.cartId = "@miniCartFeedPageId";
5506 </script>
5507 }
5508
5509 @helper RenderMobileTop() {
5510 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileTop").OrderBy(item => item.SortId).ToList();
5511 @RenderBlockList(subBlocks)
5512 }
5513
5514 @helper RenderMobileHeaderNavigation() {
5515 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderNavigation").OrderBy(item => item.SortId).ToList();
5516 <ul class="menu">
5517 @RenderBlockList(subBlocks)
5518 </ul>
5519 }
5520
5521 @helper RenderMobileHeaderNavigationTrigger() {
5522 <li>
5523 <label for="MobileNavTrigger" class="mobile-nav-trigger-button"></label>
5524 </li>
5525 }
5526
5527 @helper RenderMobileHeaderLogo() {
5528 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderLogo").OrderBy(item => item.SortId).ToList();
5529
5530 var mobileTopLayout = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetString("Design")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
5531 //string centeredLogo = mobileTopLayout != "nav-right" ? "u-ta-center" : "";
5532 string firstPageId = Model.Area.FirstActivePage.ID.ToString();
5533 string businessName = Model.Area.Item.GetItem("Settings").GetString("BusinessName");
5534
5535 string mobileLogo = "/Files/Images/logo-dynamicweb.png";
5536 if (Model.Area.Item.GetItem("Layout").GetItem("MobileTop") != null && Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetFile("Logo") != null)
5537 {
5538 mobileLogo = Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetFile("Logo").PathUrlEncoded;
5539 }
5540
5541 if (Path.GetExtension(mobileLogo).ToLower() != ".svg")
5542 {
5543 mobileLogo = "/Admin/Public/GetImage.ashx?height=40&crop=5&Compression=75&image=" + mobileLogo;
5544 }
5545 else
5546 {
5547 mobileLogo = HttpUtility.UrlDecode(mobileLogo);
5548 }
5549
5550 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5551 var DesignFolder = Pageview.Layout.Design.Name;
5552
5553 <div class="mobile__logo hidden">
5554 <a href="/Default.aspx?ID=@firstPageId" class="mobile__logo__item"> <img src="@mobileLogo" alt="@businessName"/> </a>
5555
5556 @* <div class="icons"> *@
5557 @* <div class="item"> *@
5558 @* <button type="button" class="btn-icon" data-role="contact-mobile"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/mobile-contact.svg"></ion-icon></button> *@
5559 @* </div> *@
5560 @* </div> *@
5561 </div>
5562
5563
5564 @RenderBlockList(subBlocks)
5565 }
5566
5567 @helper RenderMobileContactContainer() {
5568 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5569 var DesignFolder = Pageview.Layout.Design.Name;
5570 <div class="mobile-contact__container hidden">
5571 <div class="mobile-contact__content">
5572 @if (!string.IsNullOrEmpty(areaInfo.ContactNumber))
5573 {
5574 <a href="tel:@areaInfo.ContactNumber" class="btn btn-fill--dark"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/call.svg"></ion-icon><span>@areaInfo.ContactNumber</span></a>
5575 }
5576 @if (!string.IsNullOrEmpty(areaInfo.ContactEmail))
5577 {
5578 <a href="mailto:@areaInfo.ContactEmail" class="btn btn-fill--dark"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/mail.svg"></ion-icon><span>@areaInfo.ContactEmail</span></a>
5579 }
5580 </div>
5581 </div>
5582 }
5583
5584 @helper RenderMobileTopActions() {
5585 List<Block> subBlocks = this.mobileHeaderBlocksPage.GetBlockListById("MobileHeaderActions").OrderBy(item => item.SortId).ToList();
5586
5587 <div class="mobile__actions hidden">
5588 <div class="mobile__actions__content">
5589 @RenderBlockList(subBlocks)
5590 </div>
5591
5592 </div>
5593 }
5594
5595
5596 @helper RenderMobileTopUser() {
5597
5598 bool navigationItemsHideSignIn = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSignIn");
5599 string userInitials = "";
5600 int pageId = Model.TopPage.ID;
5601 int createAccountPageId = GetPageIdByNavigationTag("CreateAccount");
5602 int myDashboardPageId = GetPageIdByNavigationTag("CustomerDashboard");
5603 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
5604 int myOrdersPageId = GetPageIdByNavigationTag("CustomerOrders");
5605 int myFavoritesPageId = GetPageIdByNavigationTag("CustomerFavorites");
5606 int mySavedCardsPageId = GetPageIdByNavigationTag("SavedCards");
5607 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
5608 bool hideCreateAccountLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideCreateAccount");
5609 bool hideMyProfileLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideProfile");
5610 bool hideMyOrdersLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideOrders");
5611 bool hideMySavedCardsLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideSavedCards");
5612 bool hideMyFavoritesLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideFavorites");
5613 bool hideForgotPasswordLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideForgotPasswordLink");
5614
5615 string linkStart = "/Default.aspx?ID=";
5616 if (Model.CurrentUser.ID <= 0)
5617 {
5618 linkStart += signInProfilePageId + "&RedirectPageId=";
5619 }
5620
5621 string forgotPasswordPageLink = "/Default.aspx?ID=" + signInProfilePageId + "&LoginAction=Recovery";
5622 string myProfilePageLink = linkStart + myProfilePageId;
5623 string myOrdersPageLink = linkStart + myOrdersPageId;
5624 string myFavoritesPageLink = linkStart + myFavoritesPageId;
5625 string mySavedCardsPageLink = linkStart + mySavedCardsPageId;
5626
5627 string profileIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon") != null ? Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue : "fa fa-user";
5628 string favoritesIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon").SelectedValue : "fa fa-star";
5629
5630 if (Model.CurrentUser.ID != 0)
5631 {
5632 if (!String.IsNullOrEmpty(Model.CurrentUser.Name))
5633 {
5634 string[] names = Model.CurrentUser.Name.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
5635 userInitials += Model.CurrentUser.Name.Substring(0, 1);
5636
5637 if (names.Length > 1)
5638 {
5639 userInitials += names[names.Length - 1].Substring(0, 1);
5640 }
5641 }
5642 else
5643 {
5644 userInitials += Model.CurrentUser.FirstName != null && Model.CurrentUser.FirstName != "" ? Model.CurrentUser.FirstName.Substring(0, 1) : "";
5645 userInitials += Model.CurrentUser.LastName != null && Model.CurrentUser.LastName != "" ? Model.CurrentUser.LastName.Substring(0, 1) : "";
5646 userInitials += userInitials.Length == 1 && Model.CurrentUser.FirstName != null && Model.CurrentUser.FirstName.Length > 1 ? Model.CurrentUser.FirstName.Substring(1, 2) : "";
5647 userInitials += userInitials == "" && Model.CurrentUser.Email != null && Model.CurrentUser.Email.Length > 1 ? Model.CurrentUser.Email.Substring(0, 2) : "";
5648 userInitials += userInitials == "" ? Model.CurrentUser.UserName.Substring(0, 2) : "";
5649 }
5650 }
5651
5652 string topLayout = Model.Area.Item.GetItem("Layout").GetItem("Header").GetList("TopLayout") != null ? Model.Area.Item.GetItem("Layout").GetItem("Header").GetList("TopLayout").SelectedValue : "normal";
5653 string menuLinkClass = topLayout != "normal" ? "menu__link menu__link--icon" : "header-menu__link header-menu__link--icon";
5654
5655 <li class="mobile-user">
5656 <div class="@menuLinkClass">
5657 @if (Model.CurrentUser.ID <= 0)
5658 {
5659 <label for="SignInModalTrigger"><ion-icon src="/Files/Templates/Designs/Wizaris/icons/default/account.svg"></ion-icon></label>
5660 }
5661 else
5662 {
5663 <a href="/default.aspx?ID=@myDashboardPageId" class="u-color-inherit"><ion-icon src="/Files/Templates/Designs/Wizaris/icons/default/account.svg"></ion-icon></a>
5664 }
5665 </div>
5666 </li>
5667 }
5668
5669 @helper RenderMobileTopSearch() {
5670 <li>
5671 <label for="MobileSearchTrigger">
5672 <i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue fa-1_5x"></i>
5673 </label>
5674 </li>
5675 }
5676
5677 @helper RenderMobileMiniCart() {
5678 int miniCartFeedPageId = GetPageIdByNavigationTag("MiniCartFeed");
5679 int cartPageId = GetPageIdByNavigationTag("CartPage");
5680 double cartProductsCount = Model.Cart.TotalProductsCount;
5681 var DesignFolder = Pageview.Layout.Design.Name;
5682
5683 <button class="mobile__minicart__trigger btn-icon" data-role="minicart-trigger">
5684 <div id="cartCounterMobile" class="minicart__counter__content" data-template="MiniCartCounterContent" data-json="/Default.aspx?ID=3352" ></div>
5685 </button>
5686
5687 }
5688
5689 @helper RenderMobileTopSearchBar()
5690 {
5691 string searchFeedId = "";
5692 string searchSecondFeedId = "";
5693 int groupsFeedId;
5694 int productsPageId = GetPageIdByNavigationTag("ProductsPage");
5695 string contentSearchPageLink = GetPageIdByNavigationTag("ContentSearchResults") + "&Areaid=" + Model.Area.ID;
5696 string resultPageLink;
5697 string searchPlaceholder;
5698 string searchType = "product-search";
5699 string searchTemplate;
5700 string searchContentTemplate = "";
5701 string searchValue = HttpContext.Current.Request.QueryString.Get("Search") ?? "";
5702 bool showGroups = true;
5703
5704 if (Model.Area.Item.GetItem("Layout").GetList("TopSearch").SelectedValue == "contentSearch")
5705 {
5706 searchFeedId = GetPageIdByNavigationTag("ContentSearchFeed") + "&Areaid=" + Model.Area.ID + "&pagesOnly=true";
5707 resultPageLink = contentSearchPageLink;
5708 searchPlaceholder = Translate("Search page");
5709 groupsFeedId = 0;
5710 searchType = "content-search";
5711 searchTemplate = "SearchPagesTemplate";
5712 showGroups = false;
5713 }
5714 else if (Model.Area.Item.GetItem("Layout").GetList("TopSearch").SelectedValue == "combinedSearch")
5715 {
5716 searchFeedId = productsPageId + "&feed=true";
5717 searchSecondFeedId = GetPageIdByNavigationTag("ContentSearchFeed") + "&Areaid=" + Model.Area.ID + "&pagesOnly=true";
5718 resultPageLink = Converter.ToString(productsPageId);
5719 searchPlaceholder = Translate("Search products or pages");
5720 groupsFeedId = GetPageIdByNavigationTag("ProductGroupsFeed");
5721 searchType = "combined-search";
5722 searchTemplate = "SearchProductsTemplateWrap";
5723 searchContentTemplate = "SearchPagesTemplateWrap";
5724 showGroups = Model.Area.Item.GetItem("Layout").GetBoolean("ShowGroupsSelector");
5725 }
5726 else
5727 {
5728 resultPageLink = Converter.ToString(productsPageId);
5729 searchFeedId = productsPageId + "&feed=true";
5730 groupsFeedId = GetPageIdByNavigationTag("ProductGroupsFeed");
5731 searchPlaceholder = Translate("Search products");
5732 searchTemplate = "SearchProductsTemplate";
5733 searchType = "product-search";
5734 showGroups = Model.Area.Item.GetItem("Layout").GetBoolean("ShowGroupsSelector");
5735 }
5736
5737
5738
5739 <div class="search S">
5740 @* <input type="checkbox" id="MobileSearchTrigger" />
5741 <div data-page-size="@(searchType == "combined-search" ? 4 : 8)" id="MobileProductSearch" data-search-feed-id="@searchFeedId" data-search-second-feed-id="@searchSecondFeedId" data-result-page-id="@resultPageLink" data-search-type="@searchType"> *@
5742 <input type="text" class="js-typeahead-search-field u-w160px u-no-margin" placeholder="@searchPlaceholder" value="@searchValue">
5743 @* @if (string.IsNullOrEmpty(searchSecondFeedId))
5744 {
5745 <ul class="dropdown dropdown--absolute-position u-min-w220px u-full-width js-handlebars-root js-typeahead-search-content dw-mod" id="MobileProductSearchBarContent" data-template="@searchTemplate" data-json-feed="/Default.aspx?ID=@searchFeedId&feedType=productsOnly" data-init-onload="false"></ul>
5746 }
5747 else
5748 {
5749 <div>
5750 <div id="MobileProductSearchBarContent" data-template="@searchTemplate" data-json-feed="/Default.aspx?ID=@searchFeedId&feedType=productsOnly" data-init-onload="false"></div>
5751 <div id="MobileContentSearchBarContent" data-template="@searchContentTemplate" data-json-feed="/Default.aspx?ID=@searchSecondFeedId" data-init-onload="false"></div>
5752 </div>
5753 } *@
5754 <button type="button"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue"></i></button>
5755 @* </div> *@
5756 </div>
5757 <div class="nav--header C">
5758 <ul class="menu">
5759 <li>
5760 <label for="MobileSearchTrigger">
5761 <i class="fas fa-times fa-1_5x"></i>
5762 </label>
5763 </li>
5764 </ul>
5765 </div>
5766 }
5767
5768 @helper RenderMiniCartCounterContentRefactored()
5769 {
5770 var DesignFolder = Pageview.Layout.Design.Name;
5771 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5772 <script id="MiniCartCounterContent" type="text/x-template">
5773 {{#.}}
5774 {{#ifCond numberofproducts '>' 0}}
5775 @RenderInlineSvg("default","cart-on")
5776 {{else}}
5777 @RenderInlineSvg("default","cart")
5778 {{/ifCond}}
5779
5780 {{/.}}
5781 </script>
5782 }
5783
5784 @helper RenderMobileHamburger() {
5785 var DesignFolder = Pageview.Layout.Design.Name;
5786 @* <div class="hamburger-wrapper"> *@
5787 @* <div id="hamburger-menu"> *@
5788 @* <span class="hamburger-menu-global menu-top"></span> *@
5789 @* <span class="hamburger-menu-global menu-middle"></span> *@
5790 @* <span class="hamburger-menu-global menu-bottom"></span> *@
5791 @* </div> *@
5792 @* </div> *@
5793 <button type="button" class="mobile__navigation__trigger btn-icon" data-role="open-mobile-menu" aria-label="Open menu"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/menu.svg"></ion-icon></button>
5794 }
5795
5796
5797 @helper RenderMobileSearch() {
5798 var DesignFolder = Pageview.Layout.Design.Name;
5799 <button class="mobile__search__trigger btn-icon" type="button" data-role="open-mobile-search" aria-label="Open search"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/search.svg"></ion-icon></button>
5800 }
5801
5802 @helper RenderListItemMobile(string link, string text, string icon = null, string cssClass = "") {
5803 <div class="item">
5804 <a href="@link" class="btn btn-fill--brand">
5805 @if (icon.HasValue()){<ion-icon src="@icon"></ion-icon>}<span>@text</span>
5806 </a>
5807 </div>
5808 }
5809
5810 @helper RenderMobileUser() {
5811 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
5812 var user = User.GetCurrentExtranetUser();
5813 var DesignFolder = Pageview.Layout.Design.Name;
5814
5815
5816 if (!areaInfo.NavigationItemsHideSignIn)
5817 {
5818
5819 if (user == null)
5820 {
5821
5822 <div class="mobile__profile">
5823 <button type="button" class="btn-icon mobile__profile__trigger" aria-label="Open profile action menu">
5824 <ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/account.svg"></ion-icon>
5825 </button>
5826 <div class="mobile__profile__details">
5827 <div class="list">
5828 <div class="item"> <a href="@areaInfo.LinkStart@areaInfo.SignInProfilePage.ID" class="btn btn-fill--brand header__profile__login btn-login" title="@Translate(Translations.Account.LogIn)" data-tab="Login"><ion-icon name="log-out-outline"></ion-icon><span>@Translate(Translations.Account.LogIn)</span></a> </div>
5829
5830 @if (!areaInfo.HideCreateAccountLink)
5831
5832 {
5833 <div class="item">
5834
5835 <a href="@areaInfo.LinkStart@areaInfo.CreateAccountPage.ID" class="btn btn-fill--accent btn-create-account" data-tab="CreateAccount"><ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/account_add.svg"></ion-icon><span>@Translate(Translations.Account.CreateAccount)</span></a>
5836 </div>
5837 }
5838
5839 </div>
5840 </div>
5841 </div>
5842 }
5843 else {
5844 <div class="mobile__profile">
5845 <button type="button" class="btn-icon mobile__profile__trigger" aria-label="Open profile action menu">
5846 <sup>@user.GetInitials()</sup>
5847 <ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/account.svg"></ion-icon>
5848 </button>
5849 <div class="mobile__profile__details">
5850 <div class="list">
5851 <div class="item"> <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@areaInfo.PageId" class="btn btn-border--dark mobile__profile__logout" title="@Translate(Translations.Account.SignOut)"><ion-icon name="log-out-outline"></ion-icon><span>@Translate(Translations.Account.SignOut)</span></a> </div>
5852
5853 @if (!areaInfo.HideMyProfileLink)
5854 {
5855 @RenderListItemMobile(areaInfo.LinkStart + areaInfo.CustomerDashboardPage.ID, Translate(Translations.Account.MyProfile), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/account.svg")
5856 }
5857 @if (!areaInfo.HideMyOrdersLink)
5858 {
5859 @RenderListItemMobile(areaInfo.LinkStart + areaInfo.CustomerOrdersPage.ID, Translate(Translations.Account.MyOrders), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/view-details.svg")
5860 }
5861 @if (!areaInfo.HideMyFavorites)
5862 {
5863 @RenderListItemMobile(areaInfo.LinkStart + areaInfo.MyFavoritesPage.ID, Translate(Translations.Account.MyFavorites), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/favorites-on.svg")
5864 }
5865 @if (!areaInfo.HideMySavedCardsLink)
5866 {
5867 @RenderListItemMobile(areaInfo.LinkStart + areaInfo.SavedCardsPage.ID, Translate(Translations.Account.MySavedCards), "/Files/Templates/Designs/" + DesignFolder + "/icons/default/card.svg")
5868 }
5869
5870
5871 </div>
5872 </div>
5873
5874 </div>
5875
5876
5877
5878 }
5879 }
5880
5881 }
5882
5883
5884
5885
5886 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
5887
5888 @using System
5889 @using System.Web
5890 @using Dynamicweb.Rapido.Blocks.Extensibility
5891 @using Dynamicweb.Rapido.Blocks
5892 @using Dynamicweb.Frontend.Navigation
5893 @* using System.Collections.Generic *@
5894
5895 @functions {
5896 BlocksPage mobileNavigationBlocksPage = BlocksPage.GetBlockPage("Master");
5897 }
5898
5899 @{
5900 bool mobileNavigationItemsHideSignIn = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSignIn");
5901 bool mobileHideCreateAccountLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideCreateAccount");
5902 bool mobileHideMyProfileLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideProfile");
5903 bool mobileHideMyOrdersLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideOrders");
5904 bool mobileHideMySavedCardsLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideSavedCards");
5905 bool mobileHideMyFavoritesLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideFavorites");
5906
5907 Block mobileNavigation = new Block()
5908 {
5909 Id = "MobileNavigation",
5910 SortId = 10,
5911 Template = MobileNavigation(),
5912 SkipRenderBlocksList = true
5913 };
5914 mobileNavigationBlocksPage.Add("MasterReferences", mobileNavigation);
5915
5916 // if (Model.CurrentUser.ID > 0 && !mobileHideMyProfileLink)
5917 // {
5918 // Block mobileNavigationSignIn = new Block
5919 // {
5920 // Id = "MobileNavigationSignIn",
5921 // SortId = 10,
5922 // Template = RenderMobileNavigationSignIn()
5923 // };
5924 // mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationSignIn);
5925 // }
5926
5927 Block mobileNavigationMenu = new Block
5928 {
5929 Id = "MobileNavigationMenu",
5930 SortId = 20,
5931 Template = RenderMobileNavigationMenu()
5932 };
5933 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationMenu);
5934
5935 Block mobileNavigationActions = new Block
5936 {
5937 Id = "MobileNavigationActions",
5938 SortId = 30,
5939 Template = RenderMobileNavigationActions(),
5940 SkipRenderBlocksList = true
5941 };
5942 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationActions);
5943
5944 if (!mobileNavigationItemsHideSignIn)
5945 {
5946 if (Model.CurrentUser.ID <= 0)
5947 {
5948 Block mobileNavigationSignInAction = new Block
5949 {
5950 Id = "MobileNavigationSignInAction",
5951 SortId = 10,
5952 Template = RenderMobileNavigationSignInAction()
5953 };
5954 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignInAction);
5955
5956 if (!mobileHideCreateAccountLink)
5957 {
5958 Block mobileNavigationCreateAccountAction = new Block
5959 {
5960 Id = "MobileNavigationCreateAccountAction",
5961 SortId = 20,
5962 Template = RenderMobileNavigationCreateAccountAction()
5963 };
5964 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationCreateAccountAction);
5965 }
5966 }
5967 else
5968 {
5969 if (!mobileHideMyOrdersLink)
5970 {
5971 Block mobileNavigationOrdersAction = new Block
5972 {
5973 Id = "MobileNavigationOrdersAction",
5974 SortId = 20,
5975 Template = RenderMobileNavigationOrdersAction()
5976 };
5977 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationOrdersAction);
5978 }
5979 if (!mobileHideMyFavoritesLink)
5980 {
5981 Block mobileNavigationFavoritesAction = new Block
5982 {
5983 Id = "MobileNavigationFavoritesAction",
5984 SortId = 30,
5985 Template = RenderMobileNavigationFavoritesAction()
5986 };
5987 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationFavoritesAction);
5988 }
5989 if (!mobileHideMySavedCardsLink)
5990 {
5991 Block mobileNavigationSavedCardsAction = new Block
5992 {
5993 Id = "MobileNavigationFavoritesAction",
5994 SortId = 30,
5995 Template = RenderMobileNavigationSavedCardsAction()
5996 };
5997 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSavedCardsAction);
5998 }
5999
6000 Block mobileNavigationSignOutAction = new Block
6001 {
6002 Id = "MobileNavigationSignOutAction",
6003 SortId = 40,
6004 Template = RenderMobileNavigationSignOutAction()
6005 };
6006 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignOutAction);
6007 }
6008 }
6009
6010 if (Model.Languages.Count > 1)
6011 {
6012 Block mobileNavigationLanguagesAction = new Block
6013 {
6014 Id = "MobileNavigationLanguagesAction",
6015 SortId = 50,
6016 Template = RenderMobileNavigationLanguagesAction()
6017 };
6018 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationLanguagesAction);
6019 }
6020 }
6021
6022
6023 @helper MobileNavigation()
6024 {
6025 List<Block> subBlocks = this.mobileNavigationBlocksPage.GetBlockListById("MobileNavigation").OrderBy(item => item.SortId).ToList();
6026 string mobileTopDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design") != null ? Model.Area.Item.GetItem("Layout").GetItem("MobileTop").GetList("Design").SelectedValue : "nav-left";
6027 string position = mobileTopDesign == "nav-left" || mobileTopDesign == "nav-search-left" ? "left" : "right";
6028
6029 <!-- Trigger for mobile navigation -->
6030 @* <input type="checkbox" id="MobileNavTrigger" class="mobile-nav-trigger mobile-nav-trigger--@position" autocomplete="off" /> *@
6031
6032 <!-- Mobile navigation -->
6033 @RenderBlockList(subBlocks)
6034
6035 @* <label class="mobile-nav-trigger-off" for="MobileNavTrigger"></label> *@
6036 }
6037
6038 @helper RenderMobileNavigationSignIn()
6039 {
6040 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
6041 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
6042 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
6043 string myProfilePageLink = linkStart + myProfilePageId;
6044 string userName = Model.CurrentUser.FirstName ?? "";
6045 userName += " " + (Model.CurrentUser.LastName ?? "");
6046 userName += userName == "" && Model.CurrentUser.UserName != null ? Model.CurrentUser.UserName : "";
6047
6048 <ul class="RenderMobileNavigationSignIn">
6049 <li>
6050 <a href="@myProfilePageLink"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue menu-mobile__link-icon"></i> @userName</a>
6051 </li>
6052 </ul>
6053 }
6054
6055 @helper RenderMobileNavigationMenu()
6056 {
6057 bool isSlidesDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetList("Design").SelectedValue == "Slides";
6058 string menuTemplate = isSlidesDesign ? "BaseMenuForMobileSlides.xslt" : "BaseMenuForMobileExpandable.xslt";
6059 string levels = !String.IsNullOrEmpty(Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetString("Levels")) ? Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetString("Levels") : "4";
6060 bool renderPagesInToolBar = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("RenderPagesInToolBar");
6061 int startLevel = renderPagesInToolBar ? 1 : 0;
6062
6063 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6064 var productsPageId = areaInfo.ProductsPage.ID;
6065 var mobileNavigationSettings = new Dynamicweb.Frontend.Navigation.NavigationSettings()
6066 {
6067 StartLevel = 1,
6068 StopLevel = 5,
6069 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
6070 };
6071 NavigationTreeViewModel mobileNavigation = GetNavigation(mobileNavigationSettings);
6072
6073
6074 <div class="mobile__navigation p-3 hidden bg-light">
6075 <button type="button" aria-label="close mobile navigation" class="btn-icon icon-xl" data-role="close-mobile-menu">
6076 @RenderInlineSvg("default","close-raw")
6077 </button>
6078
6079 @ShowMobileNavigationTreeDropdown(mobileNavigation.Nodes.ToList(), 1)
6080
6081 @*//RenderNavigation(new { id = "mobilenavigation", cssclass = "nav", startLevel = @startLevel, ecomStartLevel = @startLevel + 1, endlevel = @levels, expandmode = "all", template = @menuTemplate })*@
6082
6083
6084
6085
6086 @*if (renderPagesInToolBar)
6087 {
6088 @RenderNavigation(new
6089 {
6090 id = "topToolsMobileNavigation",
6091 cssclass = "child-mb-2 mt-3",
6092 template = "ToolsMenuForMobile.xslt"
6093 })
6094 }*@
6095 </div>
6096 <div class="mobile__navigation__backdrop hidden-md"></div>
6097 }
6098
6099 @helper RenderMobileNavigationActions()
6100 {
6101 List<Block> subBlocks = this.mobileNavigationBlocksPage.GetBlockListById("MobileNavigationActions").OrderBy(item => item.SortId).ToList(); ;
6102
6103 @* <ul class="menu-mobile"> *@
6104 @* @RenderBlockList(subBlocks) *@
6105 @* </ul> *@
6106 }
6107
6108 @helper RenderMobileNavigationSignInAction()
6109 {
6110 <li class="menu-mobile__item">
6111 <label for="SignInModalTrigger" onclick="document.getElementById('MobileNavTrigger').checked = false;" class="menu-mobile__link dw-mod menu-mobile__link--highlighted"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue menu-mobile__link-icon"></i> @Translate("Sign in")</label>
6112 </li>
6113 }
6114
6115 @helper RenderMobileNavigationCreateAccountAction()
6116 {
6117 int createAccountPageId = GetPageIdByNavigationTag("CreateAccount");
6118
6119 <li class="menu-mobile__item">
6120 <a href="/Default.aspx?ID=@createAccountPageId"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue menu-mobile__link-icon"></i> @Translate("Create account")</a>
6121 </li>
6122 }
6123
6124 @helper RenderMobileNavigationProfileAction()
6125 {
6126 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
6127 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
6128 int myProfilePageId = GetPageIdByNavigationTag("CustomerProfile");
6129 string myProfilePageLink = linkStart + myProfilePageId;
6130
6131 <li class="menu-mobile__item">
6132 <a href="@myProfilePageLink"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue menu-mobile__link-icon"></i> @Translate("My Profile")</a>
6133 </li>
6134 }
6135
6136 @helper RenderMobileNavigationOrdersAction()
6137 {
6138 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
6139 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
6140 int myOrdersPageId = GetPageIdByNavigationTag("CustomerOrders");
6141 string myOrdersPageLink = linkStart + myOrdersPageId;
6142 string ordersIcon = "fas fa-list";
6143
6144 <li>
6145 <a href="@myOrdersPageLink"><i class="@ordersIcon menu-mobile__link-icon"></i> @Translate("My Orders")</a>
6146 </li>
6147 }
6148
6149 @helper RenderMobileNavigationFavoritesAction()
6150 {
6151 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
6152 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
6153 int myFavoritesPageId = GetPageIdByNavigationTag("CustomerFavorites");
6154 string myFavoritesPageLink = linkStart + myFavoritesPageId;
6155 string favoritesIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("FavoriteIcon").SelectedValue : "fa fa-star";
6156
6157
6158 <li>
6159 <a href="@myFavoritesPageLink"><i class="@favoritesIcon menu-mobile__link-icon"></i> @Translate("My Favorites")</a>
6160 </li>
6161 }
6162
6163 @helper RenderMobileNavigationSavedCardsAction()
6164 {
6165 int signInProfilePageId = GetPageIdByNavigationTag("SignInPage");
6166 string linkStart = Model.CurrentUser.ID <= 0 ? "/Default.aspx?ID=" + signInProfilePageId + "&RedirectPageId=" : "/Default.aspx?ID=";
6167 int mySavedCardsPageId = GetPageIdByNavigationTag("SavedCards");
6168 string mySavedCardsPageLink = linkStart + mySavedCardsPageId;
6169 string savedCardsIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SavedCards") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SavedCards").SelectedValue : "fas fa-credit-card";
6170
6171 <li>
6172 <a href="@mySavedCardsPageLink"><i class="@savedCardsIcon menu-mobile__link-icon"></i> @Translate("My Saved Cards")</a>
6173 </li>
6174 }
6175
6176 @helper RenderMobileNavigationSignOutAction()
6177 {
6178 int pageId = Model.TopPage.ID;
6179 string signOutIcon = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignOutIcon") != null ? "fas fa-" + Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignOutIcon").SelectedValue : "far fa-sign-out-alt";
6180
6181 <li>
6182 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@pageId"><i class="@signOutIcon menu-mobile__link-icon"></i> @Translate("Sign out")</a>
6183 </li>
6184 }
6185
6186 @helper RenderMobileNavigationLanguagesAction()
6187 {
6188 bool isSlidesDesign = Model.Area.Item.GetItem("Layout").GetItem("MobileNavigation").GetList("Design").SelectedValue == "Slides";
6189
6190 string selectedLanguage = "";
6191 foreach (var lang in Model.Languages)
6192 {
6193 if (lang.IsCurrent)
6194 {
6195 selectedLanguage = lang.Name;
6196 }
6197 }
6198
6199 <li>
6200 @if (isSlidesDesign)
6201 {
6202 <input id="MobileMenuCheck_Language" type="radio" class="expand-trigger" name="mobile-menu-level-1" onclick="goToLevel(1);">
6203 }
6204 else
6205 {
6206 <input id="MobileMenuCheck_Language" type="checkbox" class="expand-trigger">
6207 }
6208 <div>
6209 <label for="MobileMenuCheck_Language"><i class="@Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("LanguageIcon").SelectedValue menu-mobile__link-icon"></i> @selectedLanguage</label>
6210 <label for="MobileMenuCheck_Language"></label>
6211 </div>
6212 <ul>
6213 @if (isSlidesDesign)
6214 {
6215 <li>
6216 <div>
6217 <input id="MobileMenuCheck_Language_back" type="radio" class="expand-trigger" name="mobile-menu-level-1" onclick="goToLevel(0);" />
6218 <label for="MobileMenuCheck_Language_back" class="menu-mobile__trigger menu-mobile__trigger--back"></label>
6219 <label for="MobileMenuCheck_Language_back" class="menu-mobile__link">@Translate("Back")</label>
6220 </div>
6221 </li>
6222 }
6223 @foreach (var lang in Model.Languages)
6224 {
6225 <li>
6226 <a href="/Default.aspx?ID=@lang.Page.ID">@lang.Name</a>
6227 </li>
6228 }
6229 </ul>
6230 </li>
6231 }
6232
6233 @helper ShowMobileNavigationTreeDropdown(IList<NavigationTreeNodeViewModel> nodes, int level)
6234 {
6235 <ul class="w-100 h-100 overflow-y-auto pt-4 relative mobile-navigation--slider" id="mobilenavigation">
6236 @for (int i = 0; i < nodes.Count; ++i)
6237 {
6238 var node = nodes[i];
6239 var children = node.Nodes.ToList();
6240 int id = node.PageId;
6241 int megaMenuPageID = GetPageIdByNavigationTag("MegaMenu");
6242 if(megaMenuPageID != 0 )
6243 {
6244 var menuParagraphs = Dynamicweb.Services.Paragraphs.GetParagraphsByPageId(GetPageIdByNavigationTag("MegaMenu"));
6245 //if(menuParagraphs.Any())
6246 //{
6247 //foreach(var paragraph in menuParagraphs)
6248 //{
6249 //@:@RenderParagraphContent(paragraph.ID)
6250 //}
6251 //}
6252 }
6253
6254
6255
6256 <li class="menu-mobile__item @(node.InPath ? "menu__item--active" : "")">
6257 <div class="menu-mobile__link__wrap">
6258 <a href="@node.Link" class="menu-mobile__link text-decoration-none menu-mobile__link--level-@(level) py-2 flex-wrap space-between" data-mega-menu="@node.PageId"><span class="label">@node.Name</span></a>
6259 @* @if (children.Any()) *@
6260 @* { *@
6261 @* <div class="level-@(level) bg-light border"> *@
6262 @* @ShowNavigationTreeDropdown(children, level + 1) *@
6263 @* </div> *@
6264 @* } *@
6265 </div>
6266 </li>
6267
6268 }
6269 </ul>
6270 }
6271 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6272
6273 @using System
6274 @using System.Web
6275 @using Df.Dw
6276 @using Dynamicweb.Rapido.Blocks.Extensibility
6277 @using Dynamicweb.Rapido.Blocks
6278 @* using System.Collections.Generic *@
6279
6280 @functions {
6281 BlocksPage headerBlocksPage = BlocksPage.GetBlockPage("Master");
6282 }
6283 @{
6284 string UserTypeHeader = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
6285 bool isDesignerHeader = UserTypeHeader == "designer";
6286 //var user = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser();
6287 //bool isB2B = user.IsB2b();
6288 //bool isB2C = user.IsB2c();
6289 if(isB2B || Model.SecondaryUsers.Count > 0 || isDesignerHeader)
6290 {
6291 Block headerTop = new Block()
6292 {
6293 Id = "MasterHeaderTop",
6294 SortId = 10,
6295 SkipRenderBlocksList = true,
6296 Template = RenderHeaderTop(),
6297
6298 BlocksList = new List<Block>
6299 {
6300
6301 new Block {
6302 Id = "MasterDesktopToolsText",
6303 SortId = 10,
6304 Template = RenderHeaderContactLinks()
6305 },
6306 new Block {
6307 Id = "MasterDesktopToolsNavigation",
6308 SortId = 20,
6309 Template = RenderHeaderTopNavigation()
6310 },
6311 }
6312
6313
6314 };
6315 headerBlocksPage.Add("MasterHeader", headerTop);
6316 }
6317 Block headerMiddle = new Block
6318 {
6319 Id = "MasterHeaderMiddle",
6320 SortId = 20,
6321 SkipRenderBlocksList = true,
6322 Template = RenderHeaderMiddle(),
6323 BlocksList = new List<Block>
6324 {
6325 new Block {
6326 Id = "MasterHeaderMiddleLeft",
6327 SortId = 10,
6328 Design = {}
6329 },
6330 new Block {
6331 Id = "MasterHeaderMiddleRight",
6332 SortId = 20,
6333 Design = {}
6334 },
6335 }
6336 };
6337 headerBlocksPage.Add("MasterHeader", headerMiddle);
6338
6339 Block headerBottom = new Block
6340 {
6341 Id = "MasterHeaderBottom",
6342 SortId = 20,
6343 SkipRenderBlocksList = true,
6344 Template = RenderHeaderBottom(),
6345 };
6346 headerBlocksPage.Add("MasterHeader", headerBottom);
6347
6348
6349 Block masterDesktopExtra = new Block()
6350 {
6351 Id = "MasterDesktopExtra",
6352 SortId = 20,
6353 Template = RenderDesktopExtra(),
6354 SkipRenderBlocksList = true,
6355 Design = new Design
6356 {
6357 CssClass = "flex-wrap justify-content-end h-100 align-items-center"
6358 }
6359 };
6360 headerBlocksPage.Add("MasterHeaderMiddleRight", masterDesktopExtra);
6361
6362 Block masterDesktopNavigation = new Block()
6363 {
6364 Id = "MasterDesktopNavigation",
6365 SortId = 40,
6366 Template = RenderDesktopNavigation(),
6367 SkipRenderBlocksList = true
6368
6369 };
6370 headerBlocksPage.Add("MasterHeader", masterDesktopNavigation);
6371 }
6372
6373 @* Include the Blocks for the page *@
6374 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6375
6376 @using System
6377 @using System.Web
6378 @using Dynamicweb.Rapido.Blocks.Extensibility
6379 @using Dynamicweb.Rapido.Blocks
6380
6381 @{
6382 Block masterDesktopLogo = new Block
6383 {
6384 Id = "MasterDesktopLogo",
6385 SortId = 10,
6386 Template = RenderDesktopLogo(),
6387 };
6388
6389 BlocksPage.GetBlockPage("Master").Add("MasterHeaderMiddleLeft", masterDesktopLogo);
6390 }
6391
6392
6393 @helper RenderDesktopLogo()
6394 {
6395 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6396 var logo = "";
6397 var user = User.GetCurrentExtranetUser();
6398 string cssClassCustom = user != null && Model.SecondaryUsers.Count > 0 ? "mb-2 mt-0" : "my-2";
6399
6400 if (Path.GetExtension(areaInfo.Logo).ToLower() != ".svg")
6401 {
6402 // logo = "/Admin/Public/GetImage.ashx?height=" + Converter.ToString(areaInfo.LogoHeight) + "&crop=5&Compression=75&image=" + areaInfo.Logo;
6403 logo = "/Admin/Public/GetImage.ashx?width=100&height=99&crop=5&Compression=75&image=" + areaInfo.Logo;
6404 }
6405 else
6406 {
6407 logo = HttpUtility.UrlDecode(areaInfo.Logo);
6408 }
6409
6410 <a href="@areaInfo.FirstPageLink" class="header__logo block @cssClassCustom">
6411 <img class="header__logo__img" width="350" height="66.08" src="@areaInfo.Logo" alt="@Translate(Translations.General.Logo)" />
6412 </a>
6413 }
6414 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6415
6416 @using System
6417 @using System.Web
6418 @using Dynamicweb.Rapido.Blocks.Extensibility
6419 @using Dynamicweb.Rapido.Blocks
6420 @using Dynamicweb.Frontend.Navigation
6421
6422 @{
6423 Block masterDesktopMenu = new Block
6424 {
6425 Id = "MasterDesktopMenu",
6426 SortId = 10,
6427 Template = RenderDesktopMenu()
6428 };
6429
6430 BlocksPage.GetBlockPage("Master").Add("MasterHeaderBottom", masterDesktopMenu);
6431
6432
6433 }
6434
6435 @helper RenderDesktopMenu()
6436 {
6437 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6438 var productsPageId = areaInfo.ProductsPage.ID;
6439 var navigationSettingsMain = new Dynamicweb.Frontend.Navigation.NavigationSettings()
6440 {
6441 StartLevel = 1,
6442 StopLevel = 5,
6443 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
6444 };
6445 NavigationTreeViewModel navigation2 = GetNavigation(navigationSettingsMain);
6446
6447 if (areaInfo.IsMegaMenu)
6448 {
6449 @ShowNavigationTreeMegamenu(navigation2.Nodes.First(n => n.PageId == productsPageId).Nodes.ToList(), 1)
6450 }
6451 else
6452 {
6453 @ShowNavigationTreeDropdown(navigation2.Nodes.ToList(), 1)
6454 }
6455 }
6456
6457 @helper ShowNavigationTreeMegamenu(IList<NavigationTreeNodeViewModel> nodes, int level)
6458 {
6459 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6460 var DesignFolder = Pageview.Layout.Design.Name;
6461 <ul class="@(level == 1 ? "nav--primary" : "megamenu__nav") menu-level-@(level) flex-wrap align-items-center">
6462 @if (level == 1) {
6463 <li class="home"><a href="@areaInfo.FirstPageLink" class="btn btn-icon home text-decoration-none" aria-label="home">@RenderInlineSvg("default","home")</a></li>
6464 }
6465 @for (int i = 0; i < nodes.Count; ++i)
6466 {
6467 var node = nodes[i];
6468 var children = node.Nodes.ToList();
6469
6470 <li class="@(level == 1 && children.Any() ? "megamenu__nav" : "")">
6471 <a href="@node.Link" class="megamenu__category--@level" data-menu="@node.Name.ToLower()">@node.Name</a>
6472 @if (children.Any())
6473 {
6474 if (level == 1)
6475 {
6476 <div class="megamenu__container" style="--columns: repeat(3,1fr) auto">
6477 @for (int j = 0; j < 4; ++j)
6478 {
6479 @ShowNavigationTreeMegamenu(children.Where((n, index) => index % 4 == j).ToList(), level + 1)
6480 }
6481 </div>
6482 }
6483 else
6484 {
6485 @ShowNavigationTreeMegamenu(children, level + 1)
6486 }
6487 }
6488 </li>
6489 }
6490 </ul>
6491 }
6492
6493 @helper ShowNavigationTreeDropdown(IList<NavigationTreeNodeViewModel> nodes, int level)
6494 {
6495 <div class="flex-wrap justify-content-center">
6496
6497 <ul class="@(level == 1 ? "nav--default mx-auto hidden inline-flex-md" : "menu w-100")">
6498 @for (int i = 0; i < nodes.Count; ++i)
6499 {
6500 var node = nodes[i];
6501 var children = node.Nodes.ToList();
6502
6503 <li class="menu__item @(node.InPath ? "menu__item--active" : "")">
6504 <a href="@node.Link" class="menu-dropdown__link text-decoration-none py-2 px-3 block w-100 font-condensed h-100" data-mega-menu-old="@node.Name.ToLower()" data-mega-menu="@node.PageId">@node.Name</a>
6505 @if (children.Any())
6506 {
6507 <div class="level-@(level) bg-light border">
6508 @ShowNavigationTreeDropdown(children, level + 1)
6509 </div>
6510 }
6511 </li>
6512 }
6513 </ul>
6514
6515 </div>
6516 }
6517
6518 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6519
6520 @using System
6521 @using System.Web
6522 @using Dynamicweb.Rapido.Blocks.Extensibility
6523 @using Dynamicweb.Rapido.Blocks
6524
6525 @{
6526 Block masterDesktopActionsMenu = new Block
6527 {
6528 Id = "MasterDesktopActionsMenu",
6529 SortId = 20,
6530 Template = RenderDesktopActionsMenu(),
6531 SkipRenderBlocksList = true,
6532 Design = new Design
6533 {
6534 CssClass = "nav--header flex-wrap font-condensed child-ml-1 child-ml-xs-3 align-items-center my-1"
6535 }
6536
6537 };
6538 BlocksPage.GetBlockPage("Master").Add("MasterDesktopExtra", masterDesktopActionsMenu);
6539 }
6540
6541 @helper RenderDesktopActionsMenu()
6542 {
6543 List<Block> subBlocks = this.headerBlocksPage.GetBlockListById("MasterDesktopActionsMenu").OrderBy(item => item.SortId).ToList();
6544
6545 @RenderBlockList(subBlocks)
6546 }
6547 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6548
6549 @using System
6550 @using System.Web
6551 @using Dynamicweb.Rapido.Blocks.Extensibility
6552 @using Dynamicweb.Rapido.Blocks
6553 @* using Dynamicweb.Core;
6554 @using System.Text.RegularExpressions *@
6555
6556 @{
6557 Block masterDesktopActionsMenuLanguageSelector = new Block
6558 {
6559 Id = "MasterHeaderLanguageSelector",
6560 SortId = 80,
6561 Template = RenderLanguageSelector()
6562 };
6563
6564 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuLanguageSelector);
6565 }
6566
6567 @helper RenderLanguageSelector()
6568 {
6569 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6570 //
6571 @* if (Model.Languages.Count > 1) *@
6572 @* { *@
6573 @* *@
6574 @* <div>*@
6575 @* <i class="@areaInfo.LanguageIcon"></i> *@
6576 @* </div> *@
6577 @* <div> *@
6578 @* @foreach (var lang in Model.Languages) *@
6579 @* { *@
6580 @* string langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + "\"></span>" + lang.Name; *@
6581 @* string cultureName = Regex.Replace(Dynamicweb.Services.Areas.GetArea(lang.ID).CultureInfo.NativeName, @" ?\(.*?\)", string.Empty); *@
6582 @* cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1); *@
6583 @* *@
6584 @* if (areaInfo.LanguageViewType == "flag-culture") *@
6585 @* { *@
6586 @* langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span> " + cultureName; *@
6587 @* } *@
6588 @* *@
6589 @* if (areaInfo.LanguageViewType == "flag") *@
6590 @* { *@
6591 @* langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span>"; *@
6592 @* } *@
6593 @* *@
6594 @* if (areaInfo.LanguageViewType == "name") *@
6595 @* { *@
6596 @* langInfo = lang.Name; *@
6597 @* } *@
6598 @* *@
6599 @* if (areaInfo.LanguageViewType == "culture") *@
6600 @* { *@
6601 @* langInfo = cultureName; *@
6602 @* } *@
6603 @* *@
6604 @* <div> *@
6605 @* <a href="/Default.aspx?AreaID=@Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID">@langInfo</a> *@
6606 @* </div> *@
6607 @* } *@
6608 @* </div>*@
6609 @* }*@
6610
6611 //
6612 <div class="language-switcher">
6613 <div class="hidden flex-md flex-wrap align-items-center">
6614 @*<a class="btn btn-border--brand active align-self-top" href="#">RO</a>
6615 <a class="btn btn-border--brand align-self-top" href="#">EN</a>*@
6616 @RenderLanguages()
6617 </div>
6618 <div class="hidden-md flex-wrap align-items-center">
6619 <button type="button" aria-label="language" class="btn btn-border--brand active align-self-top" data-role="language-mobile-switcher">RO</button>
6620 <div class="hidden">
6621 <div id="languages" class="languages flex-wrap p-1">
6622 @*<a class="btn btn-border--brand active align-self-top" href="#">RO</a>
6623 <a class="btn btn-border--brand align-self-top" href="#">EN</a>*@
6624 @RenderLanguages()
6625 </div>
6626 </div>
6627 </div>
6628 </div>
6629 }
6630
6631 @helper RenderLanguages()
6632 {
6633 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6634 foreach (var lang in Model.Languages)
6635 {
6636 var area = Dynamicweb.Services.Areas.GetArea(lang.ID);
6637 string langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + "\"></span>" + lang.Name;
6638 string cultureName = Regex.Replace(area.CultureInfo.NativeName, @" ?\(.*?\)", string.Empty);
6639 cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1);
6640 string activeClass = area.ID == Pageview.Area.ID ? "active" : "";
6641 //string frontpageLink = area.Frontpage;
6642 //string frontpageLink = "/Default.aspx?AreaID=" + Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID;
6643 //string frontpageLink = area.ID == 23 ? "/en" : "/";
6644 string frontpageLink = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Default.aspx?ID=" + Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID);
6645 string friendlyLink = area.ID == 21 ? "/" : Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + lang.FirstPage.ID);
6646
6647
6648 if (areaInfo.LanguageViewType == "flag-culture")
6649 {
6650 langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + " \"></span> " + cultureName;
6651 }
6652
6653 if (areaInfo.LanguageViewType == "flag")
6654 {
6655 langInfo = "<span class=\"flag-icon flag-icon-" + area.EcomCountryCode.ToLower() + " \"></span>";
6656 }
6657
6658 if (areaInfo.LanguageViewType == "name")
6659 {
6660 langInfo = lang.Name;
6661 }
6662
6663 if (areaInfo.LanguageViewType == "culture")
6664 {
6665 langInfo = cultureName;
6666 }
6667
6668 <a class="btn btn-border--brand @activeClass align-self-top" href="@friendlyLink">@(Translate("LanguageSwitcher_" + cultureName, cultureName)) @area.Frontpage</a>
6669
6670
6671
6672
6673 }
6674 }
6675 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6676
6677 @using System
6678 @using System.Web
6679 @using Df.Dw
6680 @using Df.Dw.Rapido
6681 @using Dynamicweb.Rapido.Blocks.Extensibility
6682 @using Dynamicweb.Rapido.Blocks
6683 @using Dynamicweb.Security.UserManagement
6684 @{
6685 Block masterDesktopActionsMenuSignIn = new Block
6686 {
6687 Id = "MasterDesktopActionsMenuSignIn",
6688 SortId = 20,
6689 Template = RenderSignIn()
6690 };
6691
6692 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuSignIn);
6693
6694
6695
6696 Block masterDesktopActionsMenuAgentInfo = new Block
6697 {
6698 Id = "MasterDesktopActionsMenuAgentInfo",
6699 SortId = 1,
6700 Template = RenderAgentInfo()
6701 };
6702
6703 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuAgentInfo);
6704
6705 Block masterMobileNavigationTrigger = new Block
6706 {
6707 Id = "MobileNavigationTrigger",
6708 SortId = 70,
6709 Template = MobileNavigationTrigger()
6710 };
6711
6712 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterMobileNavigationTrigger);
6713
6714 }
6715 @helper RenderMendolaClubRefactor(User user)
6716 {
6717 //Gold, Platinium, Black
6718 var partnerRange = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_PartnerRange", StringComparison.OrdinalIgnoreCase)).Value;
6719 var meterPoints = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_MeterPoints", StringComparison.OrdinalIgnoreCase)).Value;
6720 string myCard = Translate("Account_MyCard","My card");
6721 string myCardLevel = Translate("Account_MyCard_" + partnerRange.ToString(),partnerRange.ToString());
6722 string myCardMeterPoints = Translate("Account_MyCard_MeterPoints","Meter Points");
6723 string userName = user.Name;
6724 string userCompany = user.Company != "" ? "(" + user.Company + ")" : "";
6725 string welcomeMessage = Translate("General_Welcome");
6726
6727 <div class="flex-wrap justify-content-center text-center color-dark mt-2"><span class="w-100">@welcomeMessage</span> <span class="weight-bold">@userName @userCompany</span></div>
6728 <div class="mendola-club-points flex-wrap justify-content-center hidden-sm color-dark mt-2 mx-2 pb-2 border-bottom"><span class="mendola-club-points__label font-sm text-center inline-flex justify-content-center" style="width: min-content;"><span class="width-@myCardLevel">@myCard</span> <span class="weight-bold text-uppercase">@myCardLevel</span></span> <span class="ml-1 inline-flex justify-content-center text-center card-@myCardLevel" style="width: 8rem;"><span class="font-md weight-bold font-regular ">@meterPoints.ToString()</span> <span class="font-xs text-uppercase">@myCardMeterPoints</span></span></div>
6729 }
6730
6731 @helper MobileNavigationTrigger()
6732 {
6733 <div class="flex-wrap justify-content-center align-items-start hidden-md">
6734 <button type="button" class="btn-icon btn-sm" aria-label="Open profile action menu" data-role="open-mobile-menu">
6735 @RenderInlineSvg("default","menu")
6736 </button>
6737 @* <span class="small block w-100 text-center hidden block-xs">Meniu</span> *@
6738 </div>
6739 }
6740
6741
6742 @helper RenderSignIn()
6743 {
6744 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6745 var user = User.GetCurrentExtranetUser();
6746 var DesignFolder = Pageview.Layout.Design.Name;
6747 var userType = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value.ToString() : "";
6748 bool showMyOrders = true;
6749 string UserType = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
6750 bool isDesigner = UserType == "designer";
6751 switch (userType)
6752 {
6753 case "Type 1":
6754 //showMyOrders = true;
6755 break;
6756 case "Type 6":
6757 showMyOrders = false;
6758 break;
6759 case "Type 8":
6760 //showMyOrders = true;
6761 break;
6762 case "Type 9":
6763 showMyOrders = false;
6764 break;
6765 default:
6766 showMyOrders = true;
6767 break;
6768 }
6769
6770
6771 if (!areaInfo.NavigationItemsHideSignIn)
6772 {
6773
6774 if (user == null)
6775 {
6776 string message = Translate("Contacteaza-ne");
6777 int signInPageLink = GetPageIdByNavigationTag("SignInPage");
6778 int loginRedirectTemporaryLink = 0;//GetPageIdByNavigationTag("LoginRedirectTemporary");
6779 int signInLink = loginRedirectTemporaryLink > 0 ? loginRedirectTemporaryLink : signInPageLink;
6780
6781 if (!areaInfo.HideCreateAccountLink)
6782 {
6783 <a href="@areaInfo.LinkStart@areaInfo.CreateAccountPage.ID" class="btn btn-fill--accent btn-create-account hidden inline-flex-md " data-tab="CreateAccount">@Translate(Translations.Account.CreateAccount)</a>
6784 }
6785
6786 <div class="inline-flex justify-content-center">
6787 <a href='@areaInfo.LinkStart@signInLink' aria-label="@Translate(Translations.Account.MyProfile)" class="btn btn-icon btn-sm">
6788 @RenderInlineSvg("default","account")
6789 </a>
6790 </div>
6791
6792 } else {
6793 <div class="header__profile inline-flex justify-content-center">
6794 <button type="button" class="btn-icon btn-sm header__profile__icon" aria-label="Open profile action menu">
6795 @RenderInlineSvg("default","account")
6796 </button>
6797 <div class="hidden">
6798 <div id="header__profile__details" class="header__profile__details ">
6799 @if(user != null) {
6800 <div class="hidden-sm">
6801 @RenderMendolaClubRefactor(user)
6802 </div>
6803 }
6804 <div class="list">
6805
6806 @if (!areaInfo.HideMyProfileLink)
6807 {
6808 @RenderListItem(areaInfo.LinkStart + areaInfo.CustomerDashboardPage.ID, Translate(Translations.Account.MyProfile), "account")
6809 }
6810 @if (!areaInfo.HideMyOrdersLink && showMyOrders && !isDesigner)
6811 {
6812 @RenderListItem(areaInfo.LinkStart + areaInfo.CustomerOrdersPage.ID, Translate(Translations.Account.MyOrders), "view-details")
6813 }
6814 @if (!areaInfo.HideSignInFavorites)
6815 {
6816
6817 @RenderListItem(areaInfo.LinkStart + areaInfo.MyFavoritesPage.ID, Translate(Translations.Account.MyFavorites), "favorites-off", "hidden-xs")
6818
6819 }
6820 @if (!areaInfo.HideMySavedCardsLink)
6821 {
6822 @RenderListItem(areaInfo.LinkStart + areaInfo.SavedCardsPage.ID, Translate(Translations.Account.MySavedCards), "card")
6823 }
6824
6825 @if (user != null && 1 == 2)
6826 {
6827 //var agents = user.GetUsersThatCanSetMeAsSecondary();//.Where(x=>x.Groups.Contains(y=>y.ID == 8404));
6828 var agents = user.GetUsersAndGroupsThatCanSetMeAsSecondary().OfType<User>().Where(u => !string.IsNullOrEmpty(u.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_TeamCode", StringComparison.OrdinalIgnoreCase)).Value as string));
6829
6830 string message = Translate("Contacteaza-ne");
6831 if (agents.Any())
6832 {
6833 foreach (var agent in agents.Take(1))
6834 {
6835 var userGroups = agent.Groups.Select(x => x.ID).ToList();
6836
6837 string secondaryUserName = agent.Name != null && agent.Name != "" ? agent.Name : "";
6838 string secondaryUserPhone = agent.Phone != null && agent.Phone != "" ? agent.Phone : "";
6839 string secondaryUserEmail = agent.Email != null && agent.Email != "" ? agent.Email : "";
6840 string secondaryUserImage = agent.Image != null && agent.Image != "" ? agent.Image : "/Files/Images/no-user.jpg";
6841 string secondaryUserInitials = agent.GetInitials();
6842
6843 string imageresizeURL = "/Admin/Public/GetImage.ashx?width=150&height=150&crop=0&Compression=75&FillCanvas=true&DoNotUpscale=true&image=";
6844 secondaryUserImage = secondaryUserImage.HasValue() ? String.Format("<div class=\"margin-bottom-1rem\"><img class=\"grid__cell-img--left b-lazy b-loaded\" src=\"{0}{1}\"></div>", imageresizeURL, secondaryUserImage) : "";
6845 secondaryUserName = secondaryUserName.HasValue() ? String.Format("<div><h5>{0}</h5></div>", secondaryUserName) : "";
6846 secondaryUserPhone = secondaryUserPhone.HasValue() ? String.Format("<div><a class=\"df-agent-info\" href='tel:{0}'>{0}</a></div>", secondaryUserPhone) : "";
6847 secondaryUserEmail = secondaryUserEmail.HasValue() ? String.Format("<div><a class=\"df-agent-info\" href='mailto:{0}'>{0}</a></div>", secondaryUserEmail) : "";
6848
6849
6850 //if(isSales){
6851 <text>
6852 @SnippetStart("SalesAgentProfileComplete")
6853 <div class="df-agent-card">
6854 <h4 class="margin-bottom-1rem">@Translate("Agent", "Agent")</h4>
6855 @secondaryUserImage
6856 @secondaryUserName
6857 @secondaryUserPhone
6858 @secondaryUserEmail
6859 </div>
6860 @SnippetEnd("SalesAgentProfileComplete")
6861
6862 @SnippetStart("SalesAgentProfileSimple")
6863 <div class="agent">
6864 <button type="button" class="btn-icon agent__icon" aria-label="Open sales agent action menu">
6865 <ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/help-circle-sharp.svg"></ion-icon>
6866 </button>
6867 <div class="agent__details ">
6868 <div class="list">
6869 <div class="agent-info">
6870 <div class="item h5 agent__name">@agent.Name</div>
6871 @RenderListItem("tel:" + agent.Phone, agent.Phone, "call")
6872 @RenderListItem("mailto:" + agent.Email, agent.Email, "mail")
6873 </div>
6874 </div>
6875 </div>
6876 </div>
6877 @SnippetEnd("SalesAgentProfileSimple")
6878 </text>
6879 //}
6880 string messengerPhone = agent.Phone != "" ? agent.Phone : areaInfo.ContactNumber;
6881
6882
6883 }
6884 }
6885 }
6886 <div class="item">
6887 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@areaInfo.PageId" class="w-100 py-1 btn btn-fill--light justify-content-start h5" icon-position="left" title="@Translate(Translations.Account.SignOut)"><span>@Translate(Translations.Account.SignOut)</span><span class="icon">@RenderInlineSvg("default", "log-out")</span></a>
6888 </div>
6889
6890 </div>
6891 </div>
6892 </div>
6893 </div>
6894
6895
6896
6897 }
6898
6899
6900 }
6901 }
6902
6903
6904
6905 @helper RenderAgentInfo()
6906 {
6907 <text>
6908 @RenderSnippet("SalesAgentProfileSimple")
6909 </text>
6910 }
6911
6912 @helper RenderListItem(string link = "", string text = "", string icon = "bug", string cssClass = "") {
6913 if(text.HasValue()){
6914 <div class="item @cssClass">
6915 <a href="@link" class="w-100 py-1 btn btn-fill--light justify-content-start h5" icon-position="left">
6916 <span>@text</span>
6917 <span class="icon">@RenderInlineSvg("default",icon)</span>
6918 </a>
6919 </div>
6920 }
6921 }
6922
6923 @helper RenderSeparator()
6924 {
6925 <li> </li>
6926 }
6927 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6928
6929 @using System
6930 @using System.Web
6931 @using Dynamicweb.Rapido.Blocks.Extensibility
6932 @using Dynamicweb.Rapido.Blocks
6933 @using Dynamicweb.Security.UserManagement
6934 @{
6935 Block masterDesktopActionsMenuFavorites = new Block
6936 {
6937 Id = "MasterHeaderFavorites",
6938 SortId = 40,
6939 Template = RenderHeaderFavorites()
6940 };
6941
6942 if (!areaInfo.HideMyFavorites)
6943 {
6944 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuFavorites);
6945 }
6946 }
6947
6948 @helper RenderHeaderFavorites()
6949 {
6950 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
6951 var user = User.GetCurrentExtranetUser();
6952 if(user == null) {
6953 <div class="hidden">
6954 <div class="header__favorites inline-flex justify-content-center align-items-start hidden flex-xs" data-tooltip-content="@Translate(Translations.Account.LoginToViewFavorites)">
6955 <button class="btn btn-icon btn-sm h-unset" aria-label="Favorites">
6956 @RenderInlineSvg("default","favorites-off")
6957 </button>
6958 @* <span class="small block text-center w-100 hidden block-xs">@Translate(Translations.Account.MyFavorites)</span> *@
6959 </div>
6960 </div>
6961 }
6962 else
6963 {
6964
6965 <div class="header__favorites inline-flex justify-content-center align-items-start hidden flex-xs">
6966 <a href="@areaInfo.LinkStart@areaInfo.MyFavoritesPage.ID" class="btn btn-icon btn-sm h-unset">
6967 @RenderInlineSvg("default","favorites-off")
6968 </a>
6969 @* <span class="small block text-center w-100">@Translate(Translations.Account.MyFavorites)</span> *@
6970 </div>
6971
6972 }
6973 }
6974 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
6975
6976 @using System
6977 @using System.Web
6978 @using Dynamicweb.Rapido.Blocks.Extensibility
6979 @using Dynamicweb.Rapido.Blocks
6980
6981 @functions
6982 {
6983 public static string FormatPriceDecimals (string formattedPrice)
6984 {
6985 if(formattedPrice != "")
6986 {
6987 if(formattedPrice.IndexOf(",") > 0 && formattedPrice.IndexOf(" ") > 0)
6988 {
6989 formattedPrice = formattedPrice.Replace(",", ",<sup>");
6990 formattedPrice = formattedPrice.Replace(" ", "</sup> ");
6991 }
6992 }
6993 return formattedPrice;
6994 }
6995 }
6996
6997 @{
6998
6999 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null;
7000 bool showMyCart = true;
7001 string userType = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value.ToString() : "";
7002 string DWUserType = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : "";
7003 bool isDesigner = DWUserType == "designer";
7004
7005 switch (userType)
7006 {
7007 case "Type 1":
7008 //showMyCart = true;
7009 break;
7010 case "Type 6":
7011 showMyCart = true;
7012 break;
7013 case "Type 8":
7014 //showMyCart = true;
7015 break;
7016 case "Type 9":
7017 showMyCart = false;
7018 break;
7019 default:
7020 showMyCart = true;
7021 break;
7022 }
7023 if (!onlyPreview && !areaInfo.HideCart && showMyCart && !isDesigner)
7024 {
7025 Block minicartCounter = new Block
7026 {
7027 Id = "MiniCartHeaderTrigger",
7028 Template = RenderMiniCartHeaderTrigger(),
7029 SortId = 50,
7030 };
7031 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", minicartCounter);
7032
7033 }
7034 }
7035
7036 @helper RenderMiniCartHeaderTrigger()
7037 {
7038 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7039 var DesignFolder = Pageview.Layout.Design.Name;
7040 string cartProductsCount = Model.Cart.TotalProductsCount.ToString();
7041 string cartProductsTotalPriceReformated = Model.Cart.TotalPrice != null ? FormatPriceDecimals(Model.Cart.TotalPrice.Price.Formatted) : "";
7042 // if(areaInfo.ShowPrice) {
7043 <div class="flex-wrap align-items-center justify-content-center">
7044 <button class="btn-icon btn-sm" data-role="minicart-trigger">
7045 <span class="flex-wrap place-items-center" id="cartCounter" data-template="MiniCartCounterContent" data-order-feed="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID" data-json="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID">
7046 @if (Model.Cart.TotalProductsCount > 0)
7047 {
7048 @RenderInlineSvg("default","cart-on")
7049 }
7050 else
7051 {
7052 @RenderInlineSvg("default","cart")
7053 }
7054 </span>
7055 </button>
7056 @* <span class="small block w-100 text-center hidden block-xs">@Translate(Translations.Cart.CartGeneral) <span id="cartCounter" data-template="MiniCartCounterContent" data-json="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID">(@cartProductsCount) @cartProductsTotalPriceReformated</span></span> *@
7057
7058 </div>
7059 @* <div id="cartCounter" class="minicart__counter__content" data-template="MiniCartCounterContent" data-json="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID"> *@
7060 @* @if(!string.IsNullOrEmpty(cartProductsTotalPriceReformated)) { *@
7061 @* <div class="minicart__counter__info"> *@
7062 @* $1$ <div class="minicart__counter__label">@Translate(Translations.Cart.CartGeneral)</div> #1# *@
7063 @* <div class="minicart__counter__price">@cartProductsTotalPriceReformated</div> *@
7064 @* </div> *@
7065 @* } *@
7066 @* *@
7067 @* </div> *@
7068
7069 // }
7070
7071 }
7072
7073
7074
7075
7076
7077 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7078
7079 @using System
7080 @using System.Web
7081 @using Dynamicweb.Rapido.Blocks.Extensibility
7082 @using Dynamicweb.Rapido.Blocks
7083 @{
7084 Block masterDesktopActionsMenuDownloadCart = new Block
7085 {
7086 Id = "MasterDesktopActionsMenuDownloadCart",
7087 SortId = 35,
7088 Template = RenderDownloadCart()
7089 };
7090
7091 if (areaInfo.ShowDownloadCartLink && user != null)
7092 {
7093 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuDownloadCart);
7094 }
7095 }
7096
7097 @helper RenderDownloadCart()
7098 {
7099 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7100
7101 <a href="@areaInfo.LinkStart@areaInfo.DownloadCartPage.ID">
7102 <i class="fas fa-cart-arrow-down fa-1_5x"></i>
7103 </a>
7104 }
7105 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7106
7107 @using System
7108 @using System.Web
7109 @using Df.Dw
7110 @using Dynamicweb.Rapido.Blocks.Extensibility
7111 @using Dynamicweb.Rapido.Blocks
7112
7113 @functions {
7114 public class SearchConfiguration
7115 {
7116 public string
7117 searchFeedId,
7118 searchSecondFeedId,
7119 resultPageLink,
7120 searchPlaceholder,
7121 searchType,
7122 searchTemplate,
7123 searchContentTemplate,
7124 searchValue;
7125
7126 public bool
7127 showGroups;
7128
7129 public int
7130 groupsFeedId;
7131
7132 public SearchConfiguration()
7133 {
7134 searchFeedId = "";
7135 searchSecondFeedId = "";
7136 searchType = "product-search";
7137 searchContentTemplate = "";
7138 showGroups = true;
7139 }
7140 }
7141 }
7142 @{
7143 Block masterSearchBar = new Block
7144 {
7145 Id = "MasterSearchBar",
7146 SortId = 10,
7147 Template = RenderSearch("bar"),
7148 Design = new Design{}
7149 };
7150
7151 Block masterSearchAction = new Block
7152 {
7153 Id = "MasterDesktopActionsMenuSearch",
7154 SortId = 10,
7155 Template = RenderSearch()
7156 };
7157
7158 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", masterSearchBar);
7159 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterSearchAction);
7160
7161
7162
7163 Block masterHeaderSearchIcon = new Block
7164 {
7165 Id = "MobileNavigationTrigger",
7166 SortId = 10,
7167 Template = RenderHeaderSearchIcon()
7168 };
7169
7170 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderSearchIcon);
7171
7172 }
7173
7174
7175
7176 @helper RenderHeaderSearchIcon()
7177 {
7178 <div class="flex-wrap justify-content-center align-items-start">
7179 <button type="button" class="btn-icon btn-sm" aria-label="Open Search" data-role="open-search-bar">
7180 @RenderInlineSvg("default","search")
7181 </button>
7182 @* <span class="small block w-100 text-center hidden block-xs">Meniu</span> *@
7183 </div>
7184 }
7185
7186 @helper RenderSearch(string type = "mini-search")
7187 {
7188 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7189
7190 SearchConfiguration searchConfiguration = null;
7191
7192 switch (areaInfo.SearchType) {
7193 case "contentSearch":
7194 searchConfiguration = new SearchConfiguration() {
7195 searchFeedId = areaInfo.ContentSearchFeedPage + "&Areaid=" + areaInfo.AreaId + "&pagesOnly=true",
7196 resultPageLink = areaInfo.LinkStart + areaInfo.ContentSearchFeedPage.ID,
7197 searchPlaceholder = Translate(Translations.General.SearchPage),
7198 groupsFeedId = 0,
7199 searchType = "content-search",
7200 searchTemplate = "SearchPagesTemplate",
7201 showGroups = false
7202 };
7203 break;
7204 case "combinedSearch":
7205 searchConfiguration = new SearchConfiguration() {
7206 searchFeedId = areaInfo.ProductsPage.ID + "&feed=true",
7207 searchSecondFeedId = areaInfo.ContentSearchFeedPage.ID + "&Areaid=" + areaInfo.AreaId + "&pagesOnly=true",
7208 resultPageLink = Converter.ToString(areaInfo.ProductsPage.ID),
7209 searchPlaceholder = Translate(Translations.Products.SearchProductsOrPages),
7210 groupsFeedId = areaInfo.ProductGroupsFeedPage.ID,
7211 searchType = "combined-search",
7212 searchTemplate = "SearchProductsTemplateWrap",
7213 searchContentTemplate = "SearchPagesTemplateWrap",
7214 showGroups = areaInfo.ShowGroupsSelector
7215 };
7216 break;
7217 default: //productSearch
7218 searchConfiguration = new SearchConfiguration() {
7219 resultPageLink = Converter.ToString(GetPageIdByNavigationTag("ProductsPage")),
7220 searchFeedId = GetPageIdByNavigationTag("ProductsPage") + "&feed=true",
7221 groupsFeedId = areaInfo.ProductGroupsFeedPage.ID,
7222 searchPlaceholder = Translate(Translations.Products.SearchProducts),
7223 searchTemplate = "SearchProductsTemplate",
7224 searchType = "product-search",
7225 showGroups = areaInfo.ShowGroupsSelector
7226 };
7227 break;
7228 }
7229 searchConfiguration.searchValue = HttpContext.Current.Request.QueryString.Get("Search") ?? "";
7230
7231 if (type == "mini-search") {
7232 @* RenderMiniSearch(searchConfiguration) *@
7233 } else {
7234 @RenderSearchBar(searchConfiguration)
7235 }
7236 }
7237
7238 @helper RenderSearchBar(SearchConfiguration options)
7239 {
7240 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7241 var categoriesFeed = GetPageIdByNavigationTag("SearchCategoriesFeed");
7242 var searchPageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + options.resultPageLink);
7243 var DesignFolder = Pageview.Layout.Design.Name;
7244 if (options.showGroups)
7245 {
7246 <button type="button" data-group-id="all">@Translate(Translations.General.All)</button>
7247 <ul id="ProductSearchBarGroupsContent" data-template="SearchGroupsTemplate" data-recent-searched-template="RecentSearchesTemplate" data-json-feed="/Default.aspx?ID=@options.groupsFeedId&feedType=productGroups" data-init-onload="false" data-preloader="minimal"></ul>
7248 }
7249 <div class="typeahead__container">
7250 <div class="c0 bg-light">
7251 <div id="headerSearch" class="typeahead w-100 relative mx-auto flex-wrap w-100">
7252 <form action="@searchPageUrl" class="typeahead__input flex-wrap w-100" method="GET">
7253 @* <input type="hidden" name="ID" value="@options.resultPageLink"/> *@
7254 <df-input type="text" name="Search" value="@options.searchValue" label="@options.searchPlaceholder"></df-input>
7255 <button type="button" class="btn-icon icon-xl color-brand typeahead__loading mx-1 hidden">@RenderInlineSvg("default", "refresh")</button>
7256 <button type="button" class="btn-icon icon-xl mx-1" data-role="close-typeahead">@RenderInlineSvg("default", "close-raw")</button>
7257 <button type="submit" class="btn-icon icon-xl typeahead__submit">@RenderInlineSvg("default", "search")</button>
7258 </form>
7259
7260 @if (!options.searchSecondFeedId.HasValue())
7261 {
7262 <div class="typeahead__results border p-2 bg-light hidden">
7263 <ul id="ProductSearchBarContent" class="grid-xs-2 grid-md-3 gap-2 child-mb-2" data-template="@options.searchTemplate" data-recent-searched-template="RecentSearchesTemplate" data-feed="/Default.aspx?ID=@options.searchFeedId&feedType=productsOnly&pagesize=10" data-init-onload="false"></ul>
7264 </div>
7265 }
7266 else
7267 {
7268 <div class="typeapead__results two-columns">
7269 <div id="ProductSearchBarContent" data-template="@options.searchTemplate" data-init-onload="false"></div>
7270 <div id="ContentSearchBarContent" data-template="@options.searchContentTemplate" data-init-onload="false"></div>
7271 </div>
7272 }
7273 <div class="typeahead__backdrop" data-role="close-typeahead"></div>
7274
7275 </div>
7276 </div>
7277 </div>
7278
7279
7280 }
7281
7282 @helper RenderMiniSearch(SearchConfiguration options)
7283 {
7284 <div onmouseover="document.getElementById('headerSearch').focus()">
7285
7286 <df-input id="headerSearch" type="text" value="@options.searchValue" label="@options.searchPlaceholder" mask="^[A-Za-z]+$"></df-input>
7287 @if (!options.searchSecondFeedId.HasValue())
7288 {
7289 <ul id="ProductSearchBarContent" data-template="@options.searchTemplate" data-recent-searched-template="RecentSearchesTemplate" data-json-feed="/Default.aspx?ID=@options.searchFeedId&feedType=productsOnly" data-init-onload="false"></ul>
7290 }
7291 else
7292 {
7293 <div class="dropdown">
7294 <div id="ProductSearchBarContent" data-template="@options.searchTemplate" data-feed="/Default.aspx?ID=@options.searchFeedId&feedType=productsOnly&pagesize=10" data-recent-searched-template="RecentSearchesTemplate" data-init-onload="false"></div>
7295 <div id="ContentSearchBarContent" data-template="@options.searchContentTemplate" data-json-feed="/Default.aspx?ID=@options.searchSecondFeedId" data-init-onload="false"></div>
7296 </div>
7297 }
7298 </div>
7299 }
7300 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7301
7302 @using System
7303 @using System.Web
7304 @using Df.Dw
7305 @using Dynamicweb.Rapido.Blocks.Extensibility
7306 @using Dynamicweb.Rapido.Blocks
7307
7308
7309 @{
7310 //var user = User.GetCurrentExtranetUser();
7311
7312 if(user != null)
7313 {
7314 Block masterHeaderMendolaClub = new Block
7315 {
7316 Id = "MobileNavigationTrigger",
7317 SortId = 1,
7318 Template = RenderHeaderMendolaClub(user)
7319 };
7320
7321 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderMendolaClub);
7322 }
7323
7324 }
7325
7326 @helper RenderHeaderMendolaClub(User user)
7327 {
7328
7329 bool isDesigner = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase)).Value.ToString() == "designer" : false;
7330 string mendolaCard = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_Mendola_card", StringComparison.OrdinalIgnoreCase)).Value.ToString();
7331 string designerPoints = !string.IsNullOrEmpty(mendolaCard) ? mendolaCard : "0";
7332 //Gold, Platinium, Black, Blue
7333 var partnerRange = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_PartnerRange", StringComparison.OrdinalIgnoreCase)).Value;
7334 var meterPoints = isDesigner ? designerPoints : user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_MeterPoints", StringComparison.OrdinalIgnoreCase)).Value;
7335 var userType = user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value;
7336 string userTypeLevel = userType != null ? userType.ToString() : "";
7337 bool showMendolaClub = true;
7338 switch (userTypeLevel)
7339 {
7340 case "Type 1":
7341 //showMendolaClub = true;
7342 break;
7343 case "Type 6":
7344 showMendolaClub = false;
7345 break;
7346 case "Type 8":
7347 //showMendolaClub = true;
7348 break;
7349 case "Type 9":
7350 showMendolaClub = false;
7351 break;
7352 default:
7353 showMendolaClub = true;
7354 break;
7355 }
7356
7357
7358
7359 if(showMendolaClub || isDesigner)
7360 {
7361 string myCard = Translate("Account_MyCard","My card");
7362 string myCardLevel = isDesigner ? Translate("Blue"): Translate("Account_MyCard_" + partnerRange.ToString(),partnerRange.ToString());
7363 string myCardMeterPoints = isDesigner? Translate("Puncte") : Translate("Account_MyCard_MeterPoints","Meter Points");
7364 <span class="mendola-club-points flex-wrap hidden flex-sm"><span class="mendola-club-points__label font-sm text-center inline-flex justify-content-center" style="width: min-content;"><span class="width-@myCardLevel">@myCard</span> <span class="weight-bold text-uppercase">@myCardLevel</span></span> <span class="ml-1 inline-flex justify-content-center text-center card-@myCardLevel" style="width: 8rem;"><span class="font-md weight-bold font-regular flex-wrap " style="align-content: center;">@meterPoints.ToString()</span> <span class="font-xs text-uppercase w-100">@myCardMeterPoints</span></span></span>
7365 }
7366 }
7367 @if (File.Exists(HttpContext.Current.Server.MapPath("/Files/Templates/Designs/"+DesignFolder+"/MasterBlocks/HeaderBlocks/Custom__Blocks.cshtml")))
7368 {
7369 <text>@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7370
7371 @using System
7372 @using System.Web
7373 @using Dynamicweb.Rapido.Blocks.Extensibility
7374 @using Dynamicweb.Rapido.Blocks
7375
7376 @{
7377 Block NavigationMegaMenu = new Block
7378 {
7379 Id = "NavigationMegaMenu",
7380 SortId = 90,
7381 Template = RenderNavigationMegaMenu(),
7382 };
7383
7384 BlocksPage.GetBlockPage("Master").Add("MasterHeader", NavigationMegaMenu);
7385 }
7386
7387 @helper RenderNavigationMegaMenu()
7388 {
7389
7390 int megaMenuPageID = GetPageIdByNavigationTag("MegaMenu");
7391 if(megaMenuPageID != 0 )
7392 {
7393 var menuParagraphs = Dynamicweb.Services.Paragraphs.GetParagraphsByPageId(GetPageIdByNavigationTag("MegaMenu"));
7394 //PageView megaMenuPage = PageView.GetPageviewByPageID(GetPageIdByNavigationTag("MegaMenu"));
7395 if(menuParagraphs.Any())
7396 {
7397 foreach(var paragraph in menuParagraphs)
7398 {
7399 @:@RenderParagraphContent(paragraph.ID)
7400 }
7401 }
7402 }
7403
7404 @*<div class="megamenu__child py-4 absolute w-100 hidden" id="colecții">
7405 <div class="section__container container--narrow">
7406 <div class="section__content">
7407 <div class="list grid-md-8 gap-4">
7408 <div class="col-md-6">
7409 <div class="grid-md-6">
7410 <div class="collection-v2">
7411 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Axioma.jpg"/>
7412 <a href="/colectii/axioma" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Axioma</a>
7413 </div>
7414 <div class="collection-v2">
7415 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Scandi.jpg"/>
7416 <a href="/colectii/scandi" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Scandi</a>
7417 </div>
7418 <div class="collection-v2">
7419 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Jade.jpg"/>
7420 <a href="/colectii/jade" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Jade</a>
7421 </div>
7422 <div class="collection-v2">
7423 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Quadra.jpg"/>
7424 <a href="/colectii/quadra" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Quadra</a>
7425 </div>
7426 <div class="collection-v2">
7427 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Monograma.jpg"/>
7428 <a href="/colectii/monograma" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Monograma</a>
7429 </div>
7430 <div class="collection-v2">
7431 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Archiline.jpg"/>
7432 <a href="/colectii/archiline" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Archiline</a>
7433 </div>
7434 <div class="collection-v2">
7435 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Saronga.jpg"/>
7436 <a href="/colectii/saronga" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Saronga</a>
7437 </div>
7438 <div class="collection-v2">
7439 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Riviera.jpg"/>
7440 <a href="/colectii/riviera" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Riviera</a>
7441 </div>
7442 <div class="collection-v2">
7443 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Riviera.jpg"/>
7444 <a href="/colectii/basic" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Basic</a>
7445 </div>
7446 <div class="collection-v2">
7447 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Joyeusse.jpg"/>
7448 <a href="/colectii/joyeusse" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Joyeusse</a>
7449 </div>
7450 <div class="collection-v2">
7451 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=133&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Riviera.jpg"/>
7452 <a href="/colectii/eclipse" class="h5 border-bottom border-2 border-brand py-1 text-decoration-none weight-bold w-100">Eclipse</a>
7453 </div>
7454 <div class="col-6">
7455 <a href="/colectii" class="btn btn-fill--brand text-uppercase letter-spacing">@Translate("View all collections")</a>
7456 </div>
7457 </div>
7458 </div>
7459 <div class="col-md-2">
7460 <article class="bg-neutral">
7461 <a href="#" class="block">
7462 <img src="/Admin/Public/GetImage.ashx?width=300&height=300&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Jade.jpg" class="w-100"/>
7463 </a>
7464 <div class="bg-light p-2">
7465 <a href="#" class="h5 my-2 text-uppercase text-decoration-none">Lorem ipsum dolor sit amet</a>
7466 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aperiam commodi doloribus excepturi.</p>
7467 </div>
7468 </article>
7469 </div>
7470 </div>
7471 </div>
7472 </div>
7473 </div> *@
7474
7475 @*<div class="megamenu__child py-4 absolute w-100 hidden" id="inspirație">
7476 <div class="section__container container--narrow">
7477 <div class="section__content">
7478
7479 <div class="list grid-md-6 gap-4">
7480
7481
7482 <div class="c0">
7483 <div class="megamenu__heading">
7484 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Trenduri</h3>
7485 </div>
7486 <div class="megamenu__links">
7487 <ul>
7488 <li><a href="#" class="text-decoration-none text-ellipsis">Glamour</a></li>
7489 <li><a href="#" class="text-decoration-none text-ellipsis">Urban</a></li>
7490 <li><a href="#" class="text-decoration-none text-ellipsis">Natural</a></li>
7491 <li><a href="#" class="text-decoration-none text-ellipsis">Multi-etnic</a></li>
7492 <li><a href="#" class="text-decoration-none text-ellipsis">Splendor</a></li>
7493 </ul>
7494 </div>
7495 </div>
7496
7497
7498 <div class="c0">
7499 <div class="megamenu__heading">
7500 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Ghiduri & Suport</h3></div>
7501 <div class="megamenu__links">
7502 <ul>
7503 <li><a href="#" class="text-decoration-none text-ellipsis">Cataloage</a></li>
7504 <li><a href="#" class="text-decoration-none text-ellipsis">Măsurători</a></li>
7505 <li><a href="#" class="text-decoration-none text-ellipsis">Cumpărare ready-made</a></li>
7506 <li><a href="#" class="text-decoration-none text-ellipsis">Găsire magazin partener</a></li>
7507 <li><a href="#" class="text-decoration-none text-ellipsis">Cum alegem perdelele</a></li>
7508 <li><a href="#" class="text-decoration-none text-ellipsis">Cum alegem draperiile</a></li>
7509 </ul>
7510 </div>
7511 </div>
7512 <div class="c0">
7513 <div class="megamenu__heading">
7514 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Evenimente</h3></div>
7515 <div class="megamenu__links">
7516 <ul>
7517 <li><a href="#" class="text-decoration-none text-ellipsis">Deco Days</a></li>
7518 <li><a href="#" class="text-decoration-none text-ellipsis">Open Days</a></li>
7519 <li><a href="#" class="text-decoration-none text-ellipsis">Heimtextil</a></li>
7520 <li><a href="#" class="text-decoration-none text-ellipsis">Prezență în presă</a></li>
7521
7522
7523 </ul>
7524 </div>
7525 </div>
7526 <div class="c0">
7527 <div class="megamenu__heading">
7528 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Noutati</h3></div>
7529 <div class="megamenu__links">
7530 <ul>
7531 <li><a href="#" class="text-decoration-none text-ellipsis">Lorem ipsum dolor sit amet, consectetur adipiscing elit</a></li>
7532 <li><a href="#" class="text-decoration-none text-ellipsis">WIP</a></li>
7533 <li><a href="#" class="text-decoration-none text-ellipsis">WIP</a></li>
7534 </ul>
7535 </div>
7536 </div>
7537 <div class="c0 column-start-5 column-end-6 row-start-1 row-end-3">
7538 <div class="megamenu__heading">
7539 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Galerie</h3></div>
7540 <div class="collection transition">
7541 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=200&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f14-HAVANA-V9.jpg"/>
7542 <h2 class="h5 p-2 bg-light">Galerie Foto</h2>
7543 </div>
7544 </div>
7545 <div class="c0 column-start-6 column-end-7 row-start-1 row-end-3">
7546 <div class="megamenu__heading"><span class="block h5 border-bottom border-2 border-brand py-2 mb-2 opacity-0">Heading</span></div>
7547 <div class="collection transition">
7548 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=200&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f14-HAVANA-V9.jpg"/>
7549 <h2 class="h5 p-2 bg-light">Galerie Video</h2>
7550 </div>
7551 </div>
7552 <!--butoane extra-->
7553 <div class="c1 flex-wrap child-mr-2 align-items-bottom row-start-2 row-end-2 column-start-1 column-end-4">
7554 <a href="#" class="btn btn-fill--brand text-uppercase letter-spacing">@Translate("Mai multe inspirație")</a>
7555 <a href="#" class="btn btn-fill--brand text-uppercase letter-spacing">@Translate("Experiența Mendola Fabrics")</a>
7556 </div>
7557 <!--butoane extra-->
7558 </div>
7559 </div>
7560 </div>
7561 </div> *@
7562
7563 @*<div class="megamenu__child py-4 absolute w-100 hidden" id="perdele și draperii">
7564 <div class="section__container container--narrow">
7565 <div class="section__content">
7566 <div class="list grid-md-7 gap-4">
7567 <div class="c0">
7568 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Stil</h3></div>
7569 <div class="megamenu__links">
7570 <ul>
7571 <li><a href="/Default.aspx?ID=3594&Stil=Modern" class="text-decoration-none">Modern</a></li>
7572 <li><a href="/Default.aspx?ID=3594&Stil=Clasic" class="text-decoration-none">Clasic</a></li>
7573 <li><a href="/Default.aspx?ID=3594&Stil=Minimalist" class="text-decoration-none">Minimalist</a></li>
7574 <li><a href="/Default.aspx?ID=3594&Stil=Geometric" class="text-decoration-none">Geometric</a></li>
7575 <li><a href="/Default.aspx?ID=3594&Stil=Vegetal" class="text-decoration-none">Vegetal</a></li>
7576 <li><a href="/Default.aspx?ID=3594&Stil=Floral" class="text-decoration-none">Floral</a></li>
7577 <li><a href="/Default.aspx?ID=3594&Stil=Etnic" class="text-decoration-none">Etnic</a></li>
7578 <li><a href="/Default.aspx?ID=3594&Stil=Shabby%20Chic" class="text-decoration-none">Shabby Chic</a></li>
7579 <li><a href="/Default.aspx?ID=3594&Stil=Copii" class="text-decoration-none">Copii</a></li>
7580 </ul>
7581 </div>
7582 </div>
7583 <div class="c0">
7584 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Trend</h3></div>
7585 <div class="megamenu__links">
7586 <ul>
7587 <li><a href="/Default.aspx?ID=3594&Trend=Contemporan" class="text-decoration-none">Contemporan</a></li>
7588 <li><a href="/Default.aspx?ID=3594&Trend=Clasic" class="text-decoration-none">Clasic</a></li>
7589 <li><a href="/Default.aspx?ID=3594&Trend=Scandinav" class="text-decoration-none">Scandinav</a></li>
7590 <li><a href="/Default.aspx?ID=3594&Trend=Sofisticat" class="text-decoration-none">Sofisticat</a></li>
7591 <li><a href="/Default.aspx?ID=3594&Trend=Romantic" class="text-decoration-none">Romantic</a></li>
7592 <li><a href="/Default.aspx?ID=3594&Trend=Urban" class="text-decoration-none">Urban</a></li>
7593 <li><a href="/Default.aspx?ID=3594&Trend=Vegetal" class="text-decoration-none">Vegetal</a></li>
7594 <li><a href="/Default.aspx?ID=3594&Trend=Altele" class="text-decoration-none">Altele</a></li>
7595
7596 </ul>
7597 </div>
7598 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Utilizare</h3></div>
7599 <div class="megamenu__links">
7600 <ul>
7601 <li><a href="/Default.aspx?ID=3594&Utilizare=Perdea" class="text-decoration-none">Perdea</a></li>
7602 <li><a href="/Default.aspx?ID=3594&Utilizare=Draperie" class="text-decoration-none">Draperie</a></li>
7603 </ul>
7604 </div>
7605 </div>
7606 <div class="c0">
7607 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Culoare</h3></div>
7608 <div class="megamenu__links">
7609 <ul>
7610 <li><a href="/Default.aspx?ID=3594&Culoare=Alb" class="text-decoration-none">Alb</a></li>
7611 <li><a href="/Default.aspx?ID=3594&Culoare=Crem" class="text-decoration-none">Crem</a></li>
7612 <li><a href="/Default.aspx?ID=3594&Culoare=Bej" class="text-decoration-none">Bej</a></li>
7613 <li><a href="/Default.aspx?ID=3594&Culoare=Gri" class="text-decoration-none">Gri</a></li>
7614 <li><a href="/Default.aspx?ID=3594&Culoare=Albastru" class="text-decoration-none">Albastru</a></li>
7615 <li><a href="/Default.aspx?ID=3594&Culoare=Turcoaz" class="text-decoration-none">Turcoaz</a></li>
7616 <li><a href="/Default.aspx?ID=3594&Culoare=Verde" class="text-decoration-none">Verde</a></li>
7617 <li><a href="/Default.aspx?ID=3594&Culoare=Galben" class="text-decoration-none">Galben</a></li>
7618 <li><a href="/Default.aspx?ID=3594&Culoare=Roșu" class="text-decoration-none">Roșu</a></li>
7619 <li><a href="/Default.aspx?ID=3594&Culoare=Roz" class="text-decoration-none">Roz</a></li>
7620 <li><a href="/Default.aspx?ID=3594&Culoare=Mov" class="text-decoration-none">Mov</a></li>
7621 <li><a href="/Default.aspx?ID=3594&Culoare=Negru" class="text-decoration-none">Negru</a></li>
7622 </ul>
7623 </div>
7624 </div>
7625 <div class="c0">
7626 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Model</h3></div>
7627 <div class="megamenu__links">
7628 <ul>
7629 <li><a href="/Default.aspx?ID=3594&Model=Abstract" class="text-decoration-none">Abstract</a></li>
7630 <li><a href="/Default.aspx?ID=3594&Model=Clasic" class="text-decoration-none">Clasic</a></li>
7631 <li><a href="/Default.aspx?ID=3594&Model=Broderie" class="text-decoration-none">Broderie</a></li>
7632 <li><a href="/Default.aspx?ID=3594&Model=Floral" class="text-decoration-none">Floral</a></li>
7633 <li><a href="/Default.aspx?ID=3594&Model=Frunze" class="text-decoration-none">Frunze</a></li>
7634 <li><a href="/Default.aspx?ID=3594&Model=Dungi" class="text-decoration-none">Dungi</a></li>
7635 <li><a href="/Default.aspx?ID=3594&Model=Animal%20Print" class="text-decoration-none">Animal Print</a></li>
7636 <li><a href="/Default.aspx?ID=3594&Model=Degradee" class="text-decoration-none">Degradee</a></li>
7637 <li><a href="/Default.aspx?ID=3594&Model=Copii" class="text-decoration-none">Copii</a></li>
7638 <li><a href="/Default.aspx?ID=3594&Model=Altele" class="text-decoration-none">Altele</a></li>
7639
7640 </ul>
7641 </div>
7642 </div>
7643 <div class="c0">
7644 <div class="megamenu__heading"><h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Colectii</h3></div>
7645 <div class="megamenu__links">
7646 <ul>
7647 <li><a href="/Default.aspx?ID=3594&Colectie=Axioma" class="text-decoration-none">Axioma</a></li>
7648 <li><a href="/Default.aspx?ID=3594&Colectie=Scandi" class="text-decoration-none">Scandi</a></li>
7649 <li><a href="/Default.aspx?ID=3594&Colectie=Quadra" class="text-decoration-none">Quadra</a></li>
7650 <li><a href="/Default.aspx?ID=3594&Colectie=Jade" class="text-decoration-none">Jade</a></li>
7651 <li><a href="/Default.aspx?ID=3594&Colectie=Monograma" class="text-decoration-none">Monograma</a></li>
7652 <li><a href="/Default.aspx?ID=3594&Colectie=Archiline" class="text-decoration-none">Archiline</a></li>
7653 <li><a href="/Default.aspx?ID=3594&Colectie=Saronga" class="text-decoration-none">Saronga</a></li>
7654 <li><a href="/Default.aspx?ID=3594&Colectie=Riviera" class="text-decoration-none">Riviera</a></li>
7655 <li><a href="/Default.aspx?ID=3594&Colectie=Basic" class="text-decoration-none">Basic</a></li>
7656 <li><a href="/Default.aspx?ID=3594&Colectie=City Inspiration" class="text-decoration-none">City Inspiration</a></li>
7657 <li><a href="/Default.aspx?ID=3594&Colectie=Destination Kitchen" class="text-decoration-none">Destination Kitchen</a></li>
7658 <li><a href="/Default.aspx?ID=3594&Colectie=Joyeusse" class="text-decoration-none">Joyeusse</a></li>
7659 <li><a href="/Default.aspx?ID=3594&Colectie=Disney" class="text-decoration-none">Disney</a></li>
7660 <li><a href="/Default.aspx?ID=3594&Colectie=Eclipse" class="text-decoration-none">Eclipse</a></li>
7661 </ul>
7662 </div>
7663 </div>
7664 <div class="c0 column-start-6 column-end-8 row-start-1 row-end-3">
7665 <article class="bg-neutral">
7666 <a href="#" class="block">
7667 <img src="/Admin/Public/GetImage.ashx?width=300&height=300&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f/Menu/Jade.jpg" class="w-100"/>
7668 </a>
7669 <div class="bg-light p-2">
7670 <a href="#" class="h5 my-2 text-uppercase text-decoration-none">Lorem ipsum dolor sit amet</a>
7671 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aperiam commodi doloribus excepturi.</p>
7672 </div>
7673 </article>
7674 </div>
7675 <div class="c1 flex-wrap child-mr-2 align-items-bottom row-start-2 row-end-2 column-start-1 column-end-4">
7676 <a href="/Default.aspx?ID=3594" class="btn btn-fill--brand text-uppercase letter-spacing">@Translate("Căutare avansata")</a>
7677 <a href="/Default.aspx?ID=3877" class="btn btn-fill--brand text-uppercase letter-spacing">@Translate("Vezi toate colecțiile")</a>
7678 </div>
7679 </div>
7680 </div>
7681 </div>
7682 </div> *@
7683
7684 @*<div class="megamenu__child py-4 absolute w-100 hidden" id="produse">
7685 <div class="section__container container--narrow">
7686 <div class="section__content">
7687 <div class="list grid-md-6 gap-4">
7688 <div class="c0">
7689 <div class="megamenu__heading">
7690 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Trenduri</h3></div>
7691 <div class="megamenu__links">
7692 <ul>
7693 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP286" class="text-decoration-none">Ready-Made</a></li>
7694 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP287" class="text-decoration-none">Galerii & Sine</a></li>
7695 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP288" class="text-decoration-none">Accesorii decorative perdele</a></li>
7696 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP289" class="text-decoration-none">Rejanse</a></li>
7697 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP290" class="text-decoration-none">Textile decorative</a></li>
7698 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP291" class="text-decoration-none">Textile dormitor</a></li>
7699 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP292" class="text-decoration-none">Textile baie</a></li>
7700 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP293" class="text-decoration-none">Tablouri & Ornamente</a></li>
7701 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP294" class="text-decoration-none">Disney</a></li>
7702 <li><a href="/Default.aspx?ID=3656&GroupID=GROUP295" class="text-decoration-none">Articole sezoniere</a></li>
7703 </ul>
7704 </div>
7705 </div>
7706 <div class="c0 row-start-1 row-end-3 column-start-5 column-end-6">
7707 <div class="megamenu__heading">
7708 <h3 class="h5 border-bottom border-2 border-brand py-2 mb-2">Galerie</h3></div>
7709 <div class="collection transition">
7710 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=200&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f14-HAVANA-V9.jpg"/>
7711 <h2 class="h5 p-2 bg-light">Galerie Foto</h2>
7712 </div>
7713 </div>
7714 <div class="c0 row-start-1 row-end-3 column-start-6 column-end-7">
7715 <div class="megamenu__heading"><span class="block h5 border-bottom border-2 border-brand py-2 mb-2 opacity-0">Heading</span></div>
7716 <div class="collection transition">
7717 <img class="lazyload w-100" width="200" height="200" data-src="/Admin/Public/GetImage.ashx?width=200&height=200&crop=5&Compression=95&DoNotUpscale=true&FillCanvas=false&image=%2fFiles%2fImages%2f14-HAVANA-V9.jpg"/>
7718 <h2 class="h5 p-2 bg-light">Galerie Video</h2>
7719 </div>
7720 </div>
7721 <div class="c1 flex-wrap child-mr-2 align-items-bottom row-start-2 row-end-2 column-start-1 column-end-4">
7722 <a href="#" class="btn btn-fill--brand text-uppercase letter-spacing">Mai multe inspirație</a>
7723 <a href="#" class="btn btn-fill--brand text-uppercase letter-spacing">Experiență Mendola Fabrics</a>
7724 </div>
7725 </div>
7726 </div>
7727 </div>
7728 </div> *@
7729
7730 }</text>
7731 }
7732
7733 @helper RenderHeaderBottom()
7734 {
7735 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterHeaderBottom").OrderBy(item => item.SortId).ToList();
7736 if (subBlocks.Count > 0)
7737 {
7738 <div class="header__bottom section__container container bg-neutral-light">
7739 <div class="section__content">
7740 @RenderBlockList(subBlocks)
7741 </div>
7742 </div>
7743 }
7744 }
7745
7746 @helper RenderHeaderMiddle()
7747 {
7748 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterHeaderMiddle").OrderBy(item => item.SortId).ToList();
7749 if (subBlocks.Count > 0)
7750 {
7751 <div class="header__middle section__container container">
7752 <div class="section__content">
7753 <div class="header__middle__content grid align-items-center gap-2 gap-md-1 gap-xl-3">
7754 @RenderBlockList(subBlocks)
7755 </div>
7756 </div>
7757 </div>
7758 }
7759 }
7760
7761 @helper RenderHeaderTop()
7762 {
7763 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeaderTop").OrderBy(item => item.SortId).ToList();
7764 if (subBlocks.Count > 0)
7765 {
7766 <div class="header__top small">
7767 <div class="section__container container">
7768 <div class="section__content">
7769 <div class="flex-wrap space-between">
7770 @RenderBlockList(subBlocks)
7771 </div>
7772 </div>
7773 </div>
7774 </div>
7775 }
7776 }
7777
7778 @helper RenderHeaderContactLinks()
7779 {
7780 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7781 var DesignFolder = Pageview.Layout.Design.Name;
7782 string email = areaInfo.ContactEmail;
7783 string phone = areaInfo.ContactNumber;
7784
7785 if(!string.IsNullOrEmpty(email) || !string.IsNullOrEmpty(phone))
7786 {
7787 <div class="c0 flex-wrap child-mr-2">
7788 @if (!string.IsNullOrEmpty(phone) & 1==2)
7789 {
7790 <a href="tel:@phone" class="text-decoration-none">@RenderInlineSvg("default","call") <span class="ml-1">@phone</span></a>
7791 }
7792 @if (!string.IsNullOrEmpty(email) & 1==2)
7793 {
7794 <a href="mailto:@email" class="text-decoration-none">@RenderInlineSvg("default","mail") <span class="ml-1">@email</span></a>
7795
7796 }
7797 </div>
7798 }
7799
7800 }
7801
7802 @helper RenderHeaderTopNavigation()
7803 {
7804 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7805 var DesignFolder = Pageview.Layout.Design.Name;
7806 string email = areaInfo.ContactEmail;
7807 string phone = areaInfo.ContactNumber;
7808 var user = User.GetCurrentExtranetUser();
7809 string userName = user.Name;
7810 string userCompany = user.Company != "" ? "(" + user.Company + ")" : "";
7811 string welcomeMessage = Translate("General_Welcome");
7812
7813 if (areaInfo.RenderPagesInToolBar)
7814 {
7815 <div class="c1 nav__header--top flex-wrap align-items-center child-ml-2 py-1 py-sm-2 w-100 w-sm-unset space-between">
7816
7817 @*RenderNavigation(new
7818 {
7819 id = "topToolsNavigation",
7820 template = "TopMenu.xslt",
7821 cssclass = "flex-wrap child-ml-2"
7822 })*@
7823
7824 @if (!string.IsNullOrEmpty(phone))
7825 {
7826 <a href="tel:@phone" class="text-decoration-none">@RenderInlineSvg("default", "call") <span class="ml-1">@phone</span></a>
7827 }
7828 @if (!string.IsNullOrEmpty(email))
7829 {
7830 <a href="mailto:@email" class="text-decoration-none">@RenderInlineSvg("default", "mail") <span class="ml-1">@email</span></a>
7831
7832 }
7833 <span class="hidden inline-block-sm">@welcomeMessage <span class="weight-bold">@userName @userCompany</span></span>
7834
7835
7836 </div>
7837 }
7838 }
7839
7840 @helper RenderDesktopNavigation()
7841 {
7842 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopNavigation").OrderBy(item => item.SortId).ToList();
7843 <nav class="nav--primary M">
7844 @RenderBlockList(subBlocks)
7845 </nav>
7846 }
7847
7848 @helper RenderDesktopExtra()
7849 {
7850 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopExtra").OrderBy(item => item.SortId).ToList();
7851
7852 if (subBlocks.Count > 0)
7853 {
7854 @RenderBlockList(subBlocks)
7855 }
7856 }
7857 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7858
7859 @using System
7860 @using System.Web
7861 @using Dynamicweb.Rapido.Blocks.Extensibility
7862 @using Dynamicweb.Rapido.Blocks
7863 @* using System.Collections.Generic *@
7864 @{
7865 Block impersonationBar = new Block
7866 {
7867 Id = "ImpersonationBar",
7868 SortId = 1,
7869 Template = RenderImpersonationBar(),
7870 Design = new Design{
7871 CssClass = "hidden block-sm w-100 w-sm-unset"
7872 }
7873
7874 };
7875
7876 Block impersonationBarMobile = new Block
7877 {
7878 Id = "ImpersonationBarMobile",
7879 SortId = 1,
7880 Template = RenderImpersonationBar(),
7881 Design = new Design{
7882 CssClass = "hidden-sm w-100 impersonation-mobile"
7883 }
7884
7885 };
7886
7887 if (user != null && Model.SecondaryUsers.Count > 0)
7888
7889 {
7890 BlocksPage.GetBlockPage("Master").Add("MasterHeaderTop", impersonationBar);
7891 BlocksPage.GetBlockPage("Master").Add("MasterHeader", impersonationBarMobile);
7892 }
7893 }
7894
7895 @helper RenderImpersonationBar()
7896 {
7897 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
7898 var user = User.GetCurrentExtranetUser();
7899 var secondaryUser = user.CurrentSecondaryUser;
7900 var DesignFolder = Pageview.Layout.Design.Name;
7901
7902 <div class="impersonation">
7903 <div class="impersonation-bar flex-wrap align-items-center space-between font-md">
7904 @if (secondaryUser != null && secondaryUser.ID > 0)
7905 {
7906 string username = "";
7907 if (!string.IsNullOrEmpty(secondaryUser.FirstName) && !string.IsNullOrEmpty(secondaryUser.LastName))
7908 {
7909 username = secondaryUser.FirstName + " " + secondaryUser.LastName;
7910 }
7911 else if (!string.IsNullOrEmpty(secondaryUser.Name))
7912 {
7913 username = secondaryUser.Name;
7914 }
7915 else if (!string.IsNullOrEmpty(secondaryUser.Email))
7916 {
7917 username = secondaryUser.Email;
7918 }
7919 else
7920 {
7921 username = secondaryUser.UserName;
7922 }
7923 <div class="flex-wrap align-items-center">
7924 <div class="ico mr-1"><svg xmlns='http://www.w3.org/2000/svg' width="16" height="16" viewBox='0 0 512 512'><circle cx='152' cy='184' r='72'/><path d='M234 296c-28.16-14.3-59.24-20-82-20-44.58 0-136 27.34-136 82v42h150v-16.07c0-19 8-38.05 22-53.93 11.17-12.68 26.81-24.45 46-34z'/><path d='M340 288c-52.07 0-156 32.16-156 96v48h312v-48c0-63.84-103.93-96-156-96z'/><circle cx='340' cy='168' r='88'/></svg></div>
7925 <form method="post">
7926 <input type="submit" name="DwExtranetRemoveSecondaryUser" class="pl-1 pr-0" value="@Translate(Translations.Account.StopImpersonation)">
7927 </form>
7928 </div>
7929 <div class="mobile-impersonation-icon">
7930 <button type="button" class="btn-icon btn-icon--light icon-lg btn-inline h-unset" data-tooltip-content="@username @Translate(Translations.Account.IsImpersonating) @Pageview.User.UserName"><div class="ico"><svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-a</title><path d="M448,256c0-106-86-192-192-192S64,150,64,256s86,192,192,192S448,362,448,256Z" style="fill:none;stroke:var(--icon-color, var(--color-content));stroke-miterlimit:10;stroke-width:32px"/><path d="M250.26,166.05,256,288l5.73-121.95a5.74,5.74,0,0,0-5.79-6h0A5.74,5.74,0,0,0,250.26,166.05Z" style="fill:none;stroke:var(--icon-color, var(--color-content));stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><path fill="var(--icon-color, var(--color-content)" d="M256,367.91a20,20,0,1,1,20-20A20,20,0,0,1,256,367.91Z"/></svg></div></button>
7931 </div>
7932 }
7933 else
7934 {
7935 <div class="flex-wrap align-items-center">
7936 <div class="ico mr-1"><svg xmlns='http://www.w3.org/2000/svg' width="16" height="16" viewBox='0 0 512 512'><circle cx='152' cy='184' r='72'/><path d='M234 296c-28.16-14.3-59.24-20-82-20-44.58 0-136 27.34-136 82v42h150v-16.07c0-19 8-38.05 22-53.93 11.17-12.68 26.81-24.45 46-34z'/><path d='M340 288c-52.07 0-156 32.16-156 96v48h312v-48c0-63.84-103.93-96-156-96z'/><circle cx='340' cy='168' r='88'/></svg></div>
7937 <a href="@areaInfo.LinkStart@areaInfo.ImpersonationPage.ID" title="@Translate(Translations.Account.ViewListOfUsers)">@Translate(Translations.Account.ViewListOfUsers)</a>
7938 </div>
7939 }
7940
7941 </div>
7942 </div>
7943 }
7944 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
7945
7946 @using System
7947 @using System.Web
7948 @using Dynamicweb.Rapido.Blocks.Extensibility
7949 @using Dynamicweb.Rapido.Blocks
7950
7951
7952 @{
7953 //Already defined in Master
7954 //var DesignFolder = Pageview.Layout.Design.Name;
7955 }
7956
7957 @{
7958 BlocksPage miniCartBlocksPage = BlocksPage.GetBlockPage("Master");
7959
7960 Block orderLines = new Block
7961 {
7962 Id = "MiniCartOrderLines",
7963 SkipRenderBlocksList = true,
7964
7965 BlocksList = new List<Block>
7966 {
7967 new Block {
7968 Id = "MiniCartOrderLinesList",
7969 SortId = 20,
7970 Design = new Design
7971 {
7972 CssClass = "minicart__orderlines"
7973 },
7974 Template = RenderMiniCartOrderLinesList()
7975 }
7976 }
7977 };
7978
7979 Block orderlinesScriptTemplates = new Block
7980 {
7981 Id = "OrderlinesScriptTemplates"
7982 };
7983
7984 if (areaInfo.OrderlinesView == "table")
7985 {
7986 orderLines.Template = RenderMiniCartOrderLinesTable();
7987 orderLines.BlocksList.Add(
7988 new Block {
7989 Id = "MiniCartOrderlinesTableHeader",
7990 SortId = 10,
7991 Template = RenderMiniCartOrderLinesHeader()
7992 }
7993 );
7994
7995 orderlinesScriptTemplates.Template = RenderMiniCartScriptsTableTemplates();
7996 }
7997 else
7998 {
7999 orderLines.Template = RenderMiniCartOrderLinesBlocks();
8000 orderlinesScriptTemplates.Template = RenderMiniCartScriptsListTemplates();
8001 }
8002
8003 miniCartBlocksPage.Add("MasterBottomSnippets", orderlinesScriptTemplates);
8004
8005 Block miniCartScriptTemplates = new Block()
8006 {
8007 Id = "MasterMiniCartTemplates",
8008 SortId = 1,
8009 Template = RenderMiniCartScriptTemplates(),
8010 SkipRenderBlocksList = true,
8011 BlocksList = new List<Block>
8012 {
8013 orderLines,
8014 new Block {
8015 Id = "MiniCartFooter",
8016 Template = RenderMiniCartFooter(),
8017 SortId = 50,
8018 SkipRenderBlocksList = true,
8019 BlocksList = new List<Block>
8020 {
8021 new Block {
8022 Id = "MiniCartFees",
8023 Template = RenderMiniCartFees(),
8024 SortId = 30
8025 },
8026 //new Block {
8027 //Id = "MiniCartPoints",
8028 //Template = RenderMiniCartPoints(),
8029 //SortId = 40
8030 //},
8031 new Block {
8032 Id = "MiniCartTotal",
8033 Template = RenderMiniCartTotal(),
8034 SortId = 50
8035 },
8036 new Block {
8037 Id = "MiniCartActions",
8038 Template = RenderMiniCartActions(),
8039 SortId = 60
8040 }
8041 }
8042 }
8043 }
8044 };
8045
8046 miniCartBlocksPage.Add("MasterBottomSnippets", miniCartScriptTemplates);
8047
8048 Block MiniCartPanel = new Block
8049 {
8050 Id = "MiniCartPanel",
8051 SkipRenderBlocksList = true,
8052 Template = RenderMiniCartPanelDesign(),
8053 };
8054
8055 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets",MiniCartPanel);
8056
8057 }
8058
8059 @helper RenderInlineSvgMiniCart(string theme = "default", string icon="none.svg")
8060 {
8061 var DesignFolder = Pageview.Layout.Design.Name;
8062 var themeNormalized = "decocenter";
8063
8064 <div class="ico">
8065 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg"))
8066 </div>
8067 }
8068
8069 @helper RenderMiniCartScriptsTableTemplates()
8070 {
8071 <script id="MiniCartOrderline" type="text/x-template">
8072 {{#unless isEmpty}}
8073 <tr>
8074 <td><a href="{{link}}" class="{{hideimage}}"><img class="b-lazy" src="/Files/Images/placeholder.gif" data-src="/Admin/Public/GetImage.ashx?width=50&height=50&crop=5&Compression=75&image={{image}}" alt="{{name}}" title="{{name}}"></a></td>
8075 <td>
8076 <a href="{{link}}" title="{{name}}">{{name}}</a>
8077 {{#if variantname}}
8078 <a href="{{link}}">{{variantname}}</a>
8079 {{/if}}
8080 {{#if unitname}}
8081 <div>{{unitname}}</div>
8082 {{/if}}
8083 </td>
8084 <td>{{quantity}}</td>
8085 <td>
8086 {{#if pointsTotal}}
8087 <span>{{pointsTotal}}</span> @Translate(Translations.Cart.Points)
8088 {{else}}
8089 {{totalprice}}
8090 {{/if}}
8091 </td>
8092 </tr>
8093 {{/unless}}
8094 </script>
8095
8096 <script id="MiniCartOrderlineDiscount" type="text/x-template">
8097 {{#unless isEmpty}}
8098 <tr>
8099 <td> </td>
8100 <td><div>{{name}}</div></td>
8101 <td> </td>
8102 <td>{{totalprice}}</td>
8103 </tr>
8104 {{/unless}}
8105 </script>
8106 }
8107
8108 @helper RenderMiniCartScriptsListTemplates()
8109 {
8110 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
8111 var DesignFolder = Pageview.Layout.Design.Name;
8112
8113 <script id="MiniCartOrderline" type="text/x-template">
8114 {{#unless isEmpty}}
8115 <div class="c0 p-2">
8116 <div class="item grid align-items-center">
8117 <div class="item__image">
8118 <a href="{{link}}" class="flex-wrap align-items-center h-100 {{hideimage}}">
8119 <img class="lazyload" loading="lazy" width="50" height="50" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/Admin/Public/GetImage.ashx?width=50&height=50&crop=5&Compression=75&image={{image}}" alt="{{name}}" title="{{name}}">
8120 </a>
8121 </div>
8122 <div class="item__content">
8123 <div class="c0 flex-wrap">
8124 <a href="{{link}}" class="item__title text-decoration-none w-100 weight-bold font-product" data-tooltip-content="{{name}}">{{name}}</a>
8125 {{#if variantname}}
8126 <div>@Translate(Translations.Cart.Variant): {{variantname}}</div>
8127 {{/if}}
8128 {{#if unitname}}
8129 <div>@Translate(Translations.Cart.Unit): {{unitname}}</div>
8130 {{/if}}
8131 <div class="item__number font-sm color-muted">{{productnumber}}</div>
8132 <div class="item__orderline__info small w-100 flex-wrap align-items-center">
8133 {{#if totalprice}}
8134 <span class="inline-flex align-items-center mr-1">
8135 <span class="item__price color-brand">{{{totalprice}}}</span>
8136 </span>
8137 (<span class="item__quantity">{{quantity}}</span> <span class="icon-xs">@RenderInlineSvg("default","close-raw")</span> <span class="item__unitprice weight-normal font-md">{{{unitprice}}}</span>)</div>
8138 {{else}}
8139 (<span class="item__quantity">{{quantity}}</span>)</div>
8140 {{/if}}
8141 <div class="item__actions flex-wrap w-100 mt-1">
8142 <button type="button" class="btn-link small icon-md text-transform-none child-mr-1" data-role="delete-orderline" message-success="@Translate(Translations.Cart.OrderlineRemoved)" aria-label="@Translate(Translations.Cart.RemoveOrderline)" data-url="/Default.aspx?ID=@areaInfo.MiniCartFeedPage.ID&CartCmd=DelOrderLine&key={{orderLineId}}&redirect=false"
8143 data-action="/Default.aspx?ID=@areaInfo.MiniCartFeedPage.ID&CartCmd=UpdateOrderlines&QuantityOrderLine{{orderLineId}}=0&redirect=false">@RenderInlineSvg("default","delete")<span>@Translate(Translations.General.Remove)</span></button>
8144 </div>
8145 </div>
8146 </div>
8147 </div>
8148 </div>
8149 {{/unless}}
8150 </script>
8151
8152 <script id="MiniCartOrderlineDiscount" type="text/x-template">
8153 {{#unless isEmpty}}
8154 {{#if totalprice}}
8155 <div class="item item--discount flex-wrap space-between p-2">
8156 <div class="item__title item__title--discount flex-wrap child-mr-2">
8157 <span class="ico icon-lg">@RenderInlineSvgMiniCart("default","discount") </span> <span>{{orderLineCampaignName}}</span>
8158 </div>
8159 <div class="item__price price item__price--discount">{{{totalprice}}}</div>
8160 </div>
8161 {{/if}}
8162 {{/unless}}
8163 </script>
8164 }
8165
8166 @helper RenderMiniCartScriptTemplates()
8167 {
8168 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMiniCartTemplates").OrderBy(item => item.SortId).ToList();
8169
8170 <script id="MiniCartContent" type="text/x-template">
8171 {{#.}}
8172 {{#ifCond discountStepMessage '!==' ""}}
8173 <div class="cart__step__discount">{{discountStepMessage}}</div>
8174 {{/ifCond}}
8175 {{#each ErrorMessages}}
8176 <div class="{{cssClass}}">{{text}}</div>
8177 {{/each}}
8178 {{#unless isEmpty}}
8179 @RenderBlockList(subBlocks)
8180 {{/unless}}
8181 {{/.}}
8182 </script>
8183 }
8184
8185 @helper RenderMiniCartOrderLinesTable()
8186 {
8187 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList();
8188
8189 <div>
8190 <table>
8191 @RenderBlockList(subBlocks)
8192 </table>
8193 </div>
8194 }
8195
8196 @helper RenderMiniCartOrderLinesBlocks()
8197 {
8198 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList();
8199
8200 <div>
8201 @RenderBlockList(subBlocks)
8202 </div>
8203 }
8204
8205 @helper RenderMiniCartOrderLinesHeader()
8206 {
8207 <thead>
8208 <tr>
8209 <td> </td>
8210 <td>@Translate(Translations.Products.Product)</td>
8211 <td>@Translate(Translations.Cart.Qty)</td>
8212 <td width="120">@Translate(Translations.Products.Price)</td>
8213 </tr>
8214 </thead>
8215 }
8216
8217 @helper RenderMiniCartOrderLinesList()
8218 {
8219 <text>
8220 {{#OrderLines}}
8221 {{#ifCond template "===" "CartOrderline"}}
8222 {{>MiniCartOrderline}}
8223 {{/ifCond}}
8224 {{#ifCond template "===" "CartOrderlineMobile"}}
8225 {{>MiniCartOrderline}}
8226 {{/ifCond}}
8227 {{#ifCond template "===" "CartOrderlineDiscount"}}
8228 {{>MiniCartOrderlineDiscount}}
8229 {{/ifCond}}
8230 {{/OrderLines}}
8231 </text>
8232 }
8233
8234 @helper RenderMiniCartFees()
8235 {
8236 <text>
8237 {{#if totalprice}}
8238 <div class="minicart__fees child-mb-1 mb-1 small">
8239
8240 <div class="minicart__shipping flex-wrap space-between">
8241 <span class="block">@Translate("Products_Delivery")</span>
8242 <span class="weight-bold inline-flex align-items-center">{{{shippingfee}}}</span>
8243 </div>
8244 </div>
8245 {{/if}}
8246 </text>
8247 }
8248
8249 @helper RenderMiniCartFooter()
8250 {
8251 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartFooter").OrderBy(item => item.SortId).ToList();
8252
8253 <div class="minicart__footer sticky--bottom p-2">
8254 @RenderBlockList(subBlocks)
8255 </div>
8256 }
8257
8258 @helper RenderMiniCartActions()
8259 {
8260 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
8261 var DesignFolder = Pageview.Layout.Design.Name;
8262 <div class="minicart__actions mt-2 grid-auto-1">
8263 <button type="button" class="btn-icon icon-lg" data-role="empty-cart" data-action="/Default.aspx?ID=@areaInfo.MiniCartFeedPage.ID&cartcmd=emptycart&redirect=false" message-success="@Translate(Translations.Cart.EmptyCart)" title="@Translate(Translations.Cart.EmptyCart)" data-tooltip-content="@Translate(Translations.Cart.EmptyCart)">@RenderInlineSvg("default","delete")</button>
8264 <a class="btn btn-fill--buy w-100" href="@areaInfo.LinkStart@areaInfo.CartPage.ID" title="@Translate(Translations.Cart.ProceedToCheckout)"><span>@Translate(Translations.Cart.ProceedToCheckout)</span></a>
8265 </div>
8266
8267 }
8268
8269 @helper RenderMiniCartPoints()
8270 {
8271 <text>
8272 {{#if earnings}}
8273 <div class="minicart__points mb-1 small flex-wrap space-between">
8274 <div>@Translate(Translations.Cart.Earnings)</div>
8275 <div class="weight-bold font-price">
8276 <span>{{earnings}}</span> @Translate(Translations.Cart.Points)
8277 </div>
8278 </div>
8279 {{/if}}
8280 </text>
8281 }
8282
8283 @helper RenderMiniCartTotal()
8284 {
8285 <text>
8286 {{#if totalprice}}
8287 <div class="minicart__summary child-mb-1 mb-1 small">
8288 <div class="item flex-wrap space-between">
8289 <span class="block">@Translate(Translations.Cart.Total)</span>
8290 <span class="minicart__total weight-bold inline-flex align-items-center color-brand">{{{totalprice}}}</span>
8291 </div>
8292 </div>
8293 {{/if}}
8294 </text>
8295 }
8296
8297
8298 @helper RenderMiniCartPanelDesign()
8299 {
8300 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
8301 var DesignFolder = Pageview.Layout.Design.Name;
8302
8303 <div class="minicart animate__faster" id="minicart">
8304 <div class="minicart__header grid-auto-1 sticky--top bg-brand color-light align-items-center gap-0">
8305 <button class="btn-icon minicart__close child-mr-2" data-role="minicart-trigger">@RenderInlineSvg("default","close-raw")</button>
8306 <span class="block minicart__heading h5 font-heading">@Translate(Translations.Cart.ShoppingCart)</span>
8307 </div>
8308
8309 <div id="miniCartContent" data-template="MiniCartContent" data-json="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID&feedType=MiniCart"></div>
8310 </div>
8311 }
8312 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
8313
8314 @using System
8315 @using System.Web
8316 @using Dynamicweb.Rapido.Blocks.Extensibility
8317 @using Dynamicweb.Rapido.Blocks
8318
8319 @{
8320 if (!areaInfo.OnlyPreviewForAnonymous && !string.IsNullOrEmpty(areaInfo.AddToCartNotificationType)) {
8321 if (areaInfo.AddToCartNotificationType == "modal")
8322 {
8323 Block addToCartNotificationModal = new Block
8324 {
8325 Id = "AddToCartNotificationModal",
8326 Template = RenderAddToCartNotificationModal()
8327 };
8328
8329 Block addToCartNotificationScript = new Block
8330 {
8331 Id = "AddToCartNotificationScript",
8332 Template = RenderAddToCartNotificationModalScript()
8333 };
8334 BlocksPage.GetBlockPage("Master").Add("MasterTopSnippets", addToCartNotificationModal);
8335 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript);
8336 }
8337 else if (areaInfo.AddToCartNotificationType == "toggle" && !areaInfo.AddToCartHideCartIcon && Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet")
8338 {
8339 Block addToCartNotificationScript = new Block
8340 {
8341 Id = "AddToCartNotificationScript",
8342 Template = RenderAddToCartNotificationToggleScript()
8343 };
8344 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript);
8345 }
8346 }
8347 }
8348
8349 @helper RenderAddToCartNotificationModal()
8350 {
8351 <div id="LastAddedProductModal" data-template="LastAddedProductTemplate"></div>
8352 }
8353
8354 @helper RenderAddToCartNotificationModalScript()
8355 {
8356 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
8357
8358 <script id="LastAddedProductTemplate" type="text/x-template">
8359 <!-- Trigger for the login modal -->
8360 <input type="checkbox" id="LastAddedProductModalTrigger" class="modal-trigger" />
8361
8362 <!-- Login modal -->
8363 <div class="modal-container">
8364 <label for="LastAddedProductModalTrigger" class="modal-overlay"></label>
8365 <div class="modal modal--md">
8366 <div class="modal__header">
8367 <h2>@Translate(Translations.Cart.ProductIsAddedToTheCart)</h2>
8368 </div>
8369 <div class="modal__body">
8370 <a href="{{productInfo.link}}">
8371 <img src="{{productInfo.image}}" alt="{{productInfo.name}}" class="dw-mod" />
8372 </a>
8373 <span>{{quantity}}</span> x
8374 <div>{{productInfo.name}}</div>
8375 {{#if productInfo.variantName}}
8376 <small class="u-margin-bottom-5px">{{productInfo.variantName}}</small>
8377 {{/if}}
8378 {{#if productInfo.unitName}}
8379 <small class="u-margin-bottom-5px">{{productInfo.unitName}}</small>
8380 {{/if}}
8381 </div>
8382 <div class="modal__footer">
8383 <label for="LastAddedProductModalTrigger">@Translate(Translations.Cart.ContinueShopping)</label>
8384 <a href="@areaInfo.LinkStart@areaInfo.CartPage.ID">@Translate(Translations.Cart.ProceedToCheckout)</a>
8385 </div>
8386 <label for="LastAddedProductModalTrigger"></label>
8387 </div>
8388 </div>
8389 </script>
8390 <script>
8391 document.addEventListener('addToCart', function (event) {
8392 Cart.ShowLastAddedProductModal(event.detail);
8393 });
8394 </script>
8395 }
8396
8397 @helper RenderAddToCartNotificationToggleScript()
8398 {
8399 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
8400 <script>
8401 document.addEventListener('addToCart', function () {
8402 Cart.ToggleMiniCart('miniCartTrigger', 'miniCart', 'cartCounter', '@areaInfo.MiniCartFeedPage.ID');
8403 });
8404 </script>
8405 }
8406 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
8407
8408 @using System
8409 @using System.Web
8410 @using Df.Dw
8411 @using Dynamicweb.Rapido.Blocks.Extensibility
8412 @using Dynamicweb.Rapido.Blocks
8413 @using Df.Dw.Rapido
8414 @* using System.Collections.Generic *@
8415
8416 @functions {
8417 BlocksPage footerBlocksPage = BlocksPage.GetBlockPage("Master");
8418 }
8419
8420 @{
8421
8422
8423 Block masterFooterContent = new Block()
8424 {
8425 Id = "MasterFooterContent",
8426 SortId = 10,
8427 Template = RenderFooter(areaInfo),
8428 SkipRenderBlocksList = true
8429 };
8430 footerBlocksPage.Add(MasterBlockId.MasterFooter, masterFooterContent);
8431
8432 Block masterFooter1 = new Block()
8433 {
8434 Id = "MasterFooter1",
8435 SortId = 10,
8436 Design = new Design
8437 {
8438 CssClass = "c0 col-md-8 grid-1 col-lg-4 grid-md-12 space-between align-items-center mb-2 mb-md-0"
8439 }
8440 };
8441 footerBlocksPage.Add("MasterFooterContent", masterFooter1);
8442
8443 Block masterFooter2 = new Block()
8444 {
8445 Id = "MasterFooter2",
8446 SortId = 20,
8447 Design = new Design
8448 {
8449 CssClass = "c1 col-md-2 col-lg-1"
8450 }
8451 };
8452 footerBlocksPage.Add("MasterFooterContent", masterFooter2);
8453
8454 Block masterFooter3 = new Block()
8455 {
8456 Id = "MasterFooter3",
8457 SortId = 30,
8458 Design = new Design
8459 {
8460 CssClass = "c2 col-md-2 col-lg-1"
8461 }
8462 };
8463 footerBlocksPage.Add("MasterFooterContent", masterFooter3);
8464
8465 Block masterFooter4 = new Block()
8466 {
8467 Id = "MasterFooter4",
8468 SortId = 40,
8469 Design = new Design{
8470
8471 CssClass = "c3 child-mb-2 child-mb-xs-0 col-md-2 col-lg-1"
8472 }
8473 };
8474 footerBlocksPage.Add("MasterFooterContent", masterFooter4);
8475
8476 Block masterFooter5 = new Block()
8477 {
8478 Id = "MasterFooter5",
8479 SortId = 50,
8480 Design = new Design
8481 {
8482 CssClass = "c4 col-md-2 col-lg-1"
8483 }
8484 };
8485 footerBlocksPage.Add("MasterFooterContent", masterFooter5);
8486
8487 Block masterFooter6 = new Block()
8488 {
8489 Id = "MasterFooter6",
8490 SortId = 60,
8491 Design = new Design
8492 {
8493 CssClass = "c5 col-md-8 col-lg-4 footer__copyright border-top border-muted py-3 mt-3"
8494 }
8495 };
8496 footerBlocksPage.Add("MasterFooterContent", masterFooter6);
8497
8498 Block masterFooter7 = new Block()
8499 {
8500 Id = "MasterFooter7",
8501 SortId = 70,
8502 Design = new Design{
8503
8504 CssClass = "c6"
8505 }
8506 };
8507 footerBlocksPage.Add("MasterFooterContent", masterFooter7);
8508
8509 Block masterFooter8 = new Block()
8510 {
8511 Id = "MasterFooter8",
8512 SortId = 80,
8513 Design = new Design
8514 {
8515 CssClass = "c7"
8516 }
8517 };
8518 footerBlocksPage.Add("MasterFooterContent", masterFooter8);
8519
8520
8521 //content Blocks
8522 Block masterFooterLogo = new Block
8523 {
8524 Id = "FooterLogo",
8525 SortId = 10,
8526 Template = RenderFooterLogo(areaInfo),
8527 Design = new Design{
8528 CssClass = "footer__logo col-md-12 col-lg-3"
8529 }
8530 };
8531 Block masterFooterBeInspired = new Block
8532 {
8533 Id = "FooterBeInspired",
8534 SortId = 10,
8535 Template = RenderBeInspired(),
8536 Design = {}
8537 };
8538 Block masterFooterGetConnected = new Block
8539 {
8540 Id = "FooterGetConnected",
8541 SortId = 10,
8542 Template = RenderGetConnected(),
8543 Design = {}
8544 };
8545
8546
8547 Block masterFooterAddress = new Block
8548 {
8549 Id = "FooterAddress",
8550 SortId = 10,
8551 Template = RenderFooterAddress(areaInfo),
8552 Design = new Design{
8553 CssClass = "footer__address"
8554 }
8555 };
8556
8557 Block masterFooterColumnOne = new Block
8558 {
8559 Id = "MasterFooterColumnOne",
8560 SortId = 50,
8561 Template = RenderFooterColumn(areaInfo.FooterColumnOneHeader, areaInfo.FooterColumnOneContent, areaInfo.FooterColumnOneLinks, "footer__column-one")
8562 };
8563
8564 Block masterFooterColumnTwo = new Block
8565 {
8566 Id = "MasterFooterColumnTwo",
8567 SortId = 20,
8568 Template = RenderFooterColumn(areaInfo.FooterColumnTwoHeader, areaInfo.FooterColumnTwoContent, areaInfo.FooterColumnTwoLinks, "footer__column-two")
8569 };
8570
8571 Block masterFooterColumnThree = new Block
8572 {
8573 Id = "MasterFooterColumnThree",
8574 SortId = 30,
8575 Template = RenderFooterColumn(areaInfo.FooterColumnThreeHeader, areaInfo.FooterColumnThreeContent, areaInfo.FooterColumnThreeLinks, "footer__column-three")
8576 };
8577
8578 Block masterFooterNewsletterSignUp = new Block
8579 {
8580 Id = "MasterFooterNewsletterSignUp",
8581 SortId = 9,
8582 Template = RenderFooterNewsletterSignUp(areaInfo),
8583 Design = new Design{
8584 CssClass = "footer__newsletter"
8585 }
8586 };
8587
8588 Block masterFooterPartnerShops = new Block
8589 {
8590 Id = "MasterFooterPartnerShops",
8591 SortId = 20,
8592 Template = RenderFooterPartnerShops(),
8593 Design = new Design {
8594 CssClass = "col-md-4 col-lg-3"
8595 }
8596 };
8597
8598 Block masterFooterTopCenterContentB2B = new Block
8599 {
8600 Id = "MasterFooterTopCenterContentB2B",
8601 SortId = 20,
8602 Template = RenderFooterTopCenterContentB2B(),
8603 Design = new Design{
8604 CssClass = "flex-wrap col-md-4 col-lg-3"
8605 }
8606 };
8607
8608 Block masterFooterNewsletter = new Block
8609 {
8610 Id = "masterFooterNewsletter",
8611 SortId = 30,
8612 Template = RenderFooterNewsletter(),
8613 Design = new Design{
8614 CssClass = "flex-wrap col-md-4 col-lg-3"
8615 }
8616 };
8617
8618 Block masterFooterSocialLinks = new Block
8619 {
8620 Id = "MasterFooterSocialLinks",
8621 SortId = 50,
8622 Template = RenderFooterSocialLinks(areaInfo),
8623 Design = new Design{
8624 CssClass = "footer__social col-md-4 col-lg-3"
8625 }
8626 };
8627
8628 Block masterFooterPayments = new Block
8629 {
8630 Id = "MasterFooterPayments",
8631 SortId = 60,
8632 Template = RenderFooterPayments(areaInfo),
8633 Design = new Design{
8634 CssClass = "footer__payments"
8635 }
8636 };
8637
8638 Block masterFooterCopyright = new Block
8639 {
8640 Id = "MasterFooterCopyright",
8641 SortId = 10,
8642 Design ={},
8643 Template = RenderFooterCopyright(areaInfo)
8644 };
8645
8646 Block compareModal = new Block
8647 {
8648 Id = "MasterFooterModalCompare",
8649 SortId = 80,
8650 Template = RenderCompareModule(),
8651 Design = new Design
8652 {
8653 Size = "12",
8654 RenderType = RenderType.Column
8655 },
8656 SkipRenderBlocksList = true
8657 };
8658 footerBlocksPage.Add("MasterFooter", compareModal);
8659
8660
8661 //Begin configuration of blocks
8662 string footerLayout = areaInfo.FooterLayout;
8663
8664 switch (footerLayout)
8665 {
8666 case "1":
8667 masterFooter1.Design.Size = "3";
8668 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
8669 footerBlocksPage.Add("MasterFooter1", masterFooterAddress);
8670 footerBlocksPage.RemoveBlock(masterFooterSocialLinks);
8671 footerBlocksPage.Add("MasterFooter1", masterFooterPayments);
8672
8673 masterFooter2.Design.Size = "3";
8674 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
8675
8676 masterFooter3.Design.Size = "3";
8677 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
8678 //footerBlocksPage.Add("MasterFooter3", masterFooterSocialLinks);
8679
8680 masterFooter4.Design.Size = "3";
8681 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
8682
8683 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright);
8684
8685 footerBlocksPage.RemoveBlock(masterFooter6);
8686 footerBlocksPage.RemoveBlock(masterFooter7);
8687 footerBlocksPage.RemoveBlock(masterFooter8);
8688 break;
8689
8690 case "2":
8691 masterFooter1.Design.Size = "12";
8692 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
8693 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
8694 if (isB2B)
8695 {
8696 footerBlocksPage.Add("MasterFooter1", masterFooterTopCenterContentB2B);
8697 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter);
8698 }
8699 else
8700 {
8701 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops);
8702 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter);
8703 }
8704
8705
8706 masterFooter2.Design.Size = "3";
8707 //footerBlocksPage.Add("MasterFooter2", masterFooterAddress);
8708 //footerBlocksPage.Add("MasterFooter2", masterFooterPayments);
8709 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
8710
8711 masterFooter3.Design.Size = "3";
8712 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
8713
8714 masterFooter4.Design.Size = "3";
8715 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
8716
8717
8718 masterFooter5.Design.Size = "3";
8719 footerBlocksPage.Add("MasterFooter5", masterFooterNewsletterSignUp);
8720
8721
8722 footerBlocksPage.Add("MasterFooter6", masterFooterCopyright);
8723
8724 footerBlocksPage.RemoveBlock(masterFooter7);
8725 footerBlocksPage.RemoveBlock(masterFooter8);
8726 break;
8727 case "3":
8728 masterFooter1.Design.Size = "4";
8729 // footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
8730 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
8731 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops);
8732
8733 masterFooter2.Design.Size = "4";
8734 // footerBlocksPage.Add("MasterFooter2", masterFooterAddress);
8735 // footerBlocksPage.Add("MasterFooter2", masterFooterPayments);
8736 footerBlocksPage.Add("MasterFooter2", masterFooterBeInspired);
8737
8738 masterFooter3.Design.Size = "4";
8739 // footerBlocksPage.Add("MasterFooter3", masterFooterColumnOne);
8740 footerBlocksPage.Add("MasterFooter3", masterFooterGetConnected);
8741
8742 masterFooter4.Design.Size = "12";
8743 // footerBlocksPage.Add("MasterFooter4", masterFooterColumnTwo);
8744 footerBlocksPage.Add("MasterFooter4", masterFooterCopyright);
8745 footerBlocksPage.Add("MasterFooter4", masterFooterColumnOne);
8746
8747 footerBlocksPage.RemoveBlock(masterFooter5);
8748 footerBlocksPage.RemoveBlock(masterFooter6);
8749 footerBlocksPage.RemoveBlock(masterFooter7);
8750 footerBlocksPage.RemoveBlock(masterFooter8);
8751 break;
8752
8753 default:
8754 footerBlocksPage.Add("MasterFooter1", masterFooterLogo);
8755 footerBlocksPage.Add("MasterFooter1", masterFooterAddress);
8756 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks);
8757 footerBlocksPage.Add("MasterFooter1", masterFooterPayments);
8758
8759 masterFooter2.Design.Size = "3";
8760 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne);
8761
8762 masterFooter3.Design.Size = "3";
8763 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo);
8764
8765 masterFooter4.Design.Size = "3";
8766 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree);
8767
8768 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright);
8769 footerBlocksPage.RemoveBlock(masterFooter6);
8770 footerBlocksPage.RemoveBlock(masterFooter7);
8771 footerBlocksPage.RemoveBlock(masterFooter8);
8772 break;
8773 }
8774 }
8775
8776 @helper RenderFooter(Df.Dw.Rapido.AreaInfo areaInfo) {
8777 List<Block> subBlocks = this.footerBlocksPage.GetBlockListById("MasterFooterContent").OrderBy(item => item.SortId).ToList();
8778 string footerClass = "footer__theme-" + areaInfo.FooterLayout;
8779 <footer class="footer bg-neutral pb-0 pt-3 py-lg-4 mt-4">
8780 <div class="section__container container">
8781 <div class="section__content">
8782 <div class="block w-100">
8783 <div class="grid-1 grid-md-8 grid-lg-4">
8784 @RenderBlockList(subBlocks)
8785 </div>
8786 </div>
8787 </div>
8788 </div>
8789 </footer>
8790
8791
8792
8793 @* @RenderFooterCopyright(areaInfo) *@
8794 }
8795
8796
8797 @helper RenderFooterLogo(Df.Dw.Rapido.AreaInfo areaInfo)
8798 {
8799 var footerLogo = "";
8800 if (Path.GetExtension(areaInfo.FooterLogo).ToLower() != ".svg")
8801 {
8802 footerLogo = "/Admin/Public/GetImage.ashx?height=60&crop=5&Compression=75&image=" + areaInfo.FooterLogo;
8803 }
8804 else
8805 {
8806 footerLogo = HttpUtility.UrlDecode(areaInfo.FooterLogo);
8807 }
8808
8809
8810 <a href="@areaInfo.FirstPageLink" class="footer__logo block mb-2">
8811 <img width="300" height="57" src="@areaInfo.FooterLogo" alt="@Translate(Translations.General.Logo)" />
8812 </a>
8813
8814 }
8815 @helper RenderFooterTopCenterContentB2B()
8816 {
8817 <div class="grid-2 w-100">
8818 <div style="max-width: 12rem;">
8819 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.63 44.65">
8820 <g id="Layer_2" data-name="Layer 2">
8821 <g id="Layer_1-2" data-name="Layer 1">
8822 <g>
8823 <g>
8824 <path d="M17.21,44.65h-.82v-10h.82Z" fill="#5e5f5f"/>
8825 <path d="M30.43,44.65l-5-8.61v8.61h-.86v-10h.86l5,8.6v-8.6h.82v10Z" fill="#5e5f5f"/>
8826 <path d="M45.27,34.61v.86H42.36v9.18H41.5V35.47H38.59v-.86Z" fill="#5e5f5f"/>
8827 <path d="M53.45,35.47v5.41h5v.84h-5v2.11h5.84v.82H52.61v-10h6.68v.86Z" fill="#5e5f5f"/>
8828 <path d="M70,41.3l2.49,3.35h-.82L69.15,41.3H67.49v3.35h-.86v-10H70a3.35,3.35,0,0,1,0,6.69Zm0-.82A2.52,2.52,0,0,0,72.5,38,2.48,2.48,0,0,0,70,35.47H67.49v5H70Z" fill="#5e5f5f"/>
8829 <path d="M81.49,44.65h-.82v-10h.82Z" fill="#5e5f5f"/>
8830 <path d="M98.9,39.64a5,5,0,1,1-5-5A5,5,0,0,1,98.9,39.64Zm-.85,0a4.18,4.18,0,1,0-4.17,4.19A4.17,4.17,0,0,0,98.05,39.64Z" fill="#5e5f5f"/>
8831 <path d="M109.62,41.3l2.49,3.35h-.82l-2.53-3.35H107.1v3.35h-.86v-10h3.38a3.35,3.35,0,0,1,0,6.69Zm0-.82A2.52,2.52,0,0,0,112.11,38a2.48,2.48,0,0,0-2.49-2.48H107.1v5h2.52Z" fill="#5e5f5f"/>
8832 </g>
8833 <path d="M19.67,24.81V14.33A3,3,0,0,0,16.38,11a3,3,0,0,0-3.29,3.29V24.81H9.84V14.33A3,3,0,0,0,6.55,11a3,3,0,0,0-3.29,3.29V24.81H0V14.33C0,9.8,2,7.78,6.55,7.78a7.85,7.85,0,0,1,4.21,1l.71.45.7-.45a7.85,7.85,0,0,1,4.21-1c4.53,0,6.55,2,6.55,6.55V24.81Z" fill="#5e5f5f"/>
8834 <path d="M59.89,24.81V16.3C59.89,13,58,11,54.63,11S49.38,13,49.38,16.3v8.51H46.12V16.3c0-5.81,2.71-8.52,8.51-8.52s8.52,2.71,8.52,8.52v8.51Z" fill="#5e5f5f"/>
8835 <path d="M74.8,25.13c-5.8,0-8.51-2.7-8.51-8.51S69,8.1,74.8,8.1h5.26V.23h3.26V16.62C83.32,22.43,80.61,25.13,74.8,25.13Zm-.29-13.77c-3.18,0-4.91,1.82-5,5.25a5.19,5.19,0,0,0,1.29,3.89,5.33,5.33,0,0,0,4,1.37c3.34,0,5.26-1.91,5.26-5.25a5.26,5.26,0,0,0-1.29-4A5.35,5.35,0,0,0,75,11.34c-.32,0-.51,0-.51,0Z" fill="#5e5f5f"/>
8836 <path d="M94.85,25.13c-5.81,0-8.52-2.7-8.52-8.51S89,8.1,94.85,8.1s8.51,2.71,8.51,8.52S100.66,25.13,94.85,25.13Zm0-13.77c-3.34,0-5.26,1.92-5.26,5.26s1.92,5.25,5.26,5.25,5.25-1.91,5.25-5.25S98.19,11.36,94.85,11.36Z" fill="#ff8300"/>
8837 <rect x="106.85" width="3.26" height="24.9" fill="#5e5f5f"/>
8838 <path d="M122.12,8c5.81,0,8.51,2.7,8.51,8.51V25h-8.51c-5.81,0-8.51-2.7-8.51-8.51S116.31,8,122.12,8Zm5.26,13.77V16.5c0-3.34-1.92-5.26-5.26-5.26s-5.26,1.92-5.26,5.26,1.92,5.26,5.26,5.26Z" fill="#5e5f5f"/>
8839 <path d="M34.59,24.81c-5.81,0-8.52-2.7-8.52-8.51s2.71-8.52,8.52-8.52,8.51,2.71,8.51,8.52v1H29.38l.13.61c.54,2.37,2.34,3.68,5.08,3.68h6.62v3.24Zm0-13.77c-2.49,0-4.24,1.09-4.92,3.07l-.23.66H39.73l-.22-.66C38.82,12.13,37.07,11,34.59,11Z" fill="#5e5f5f"/>
8840 </g>
8841 </g>
8842 </g>
8843 </svg>
8844
8845 </div>
8846 <div style="max-width: 16rem;">
8847 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152.75 47.06">
8848 <g id="Layer_2" data-name="Layer 2">
8849 <g id="Layer_1-2" data-name="Layer 1">
8850 <g>
8851 <path d="M21.11.84c2.17,1.1,2.84,3.57,2.83,5.72,0,4.69-3.59,16.06-4.28,20.62-.3,2-.92,4.83-1.24,7.73.21-8.71,2.86-18.62,3.52-20.94,2.41-8.51.53-11.87-.83-13.13M24.18,0a5.55,5.55,0,0,1,4.5,5.43c0,4.69-2.84,12.61-3.53,17.18-.17,1.12-.45,2.51-.74,4-.37,3.07-.75,7.74.52,11,2.32,5.91,11.58,3.45,13.42,2.9A13,13,0,0,0,41,39.35,23.54,23.54,0,0,0,24.18,0m-6,38.58c-.67-9.41,2.71-22,3.46-24.69C24.69,3.27,20.83.82,20.05.45a4.27,4.27,0,0,0-.56-.11,23.54,23.54,0,0,0,3.39,46.72c-3.54-1.31-4.6-4.7-4.66-8.48m14,3.19c-3.38,0-6.34-1.09-7.51-4.06a19.32,19.32,0,0,1-.85-7.55c-.86,6.49-.32,13.41,9.09,12.11a22.33,22.33,0,0,0,6.26-1.76c-.26.1-.51.19-.76.26a22.2,22.2,0,0,1-6.23,1" fill="#ee7e22"/>
8852 <g>
8853 <rect x="62.45" y="10.14" width="1.66" height="14.73" fill="#5e5f5f"/>
8854 <polygon points="68.43 10.14 70.12 10.14 75.49 18.18 80.85 10.14 82.54 10.14 82.54 24.87 80.87 24.87 80.87 12.94 75.5 20.83 75.42 20.83 70.05 12.96 70.05 24.87 68.43 24.87 68.43 10.14" fill="#5e5f5f"/>
8855 <path d="M92.16,10h1.55l6.72,14.84H98.64L96.92,21h-8l-1.75,3.89H85.44Zm4.1,9.43L92.92,12l-3.37,7.49Z" fill="#5e5f5f"/>
8856 <path d="M101.82,17.55v0a7.4,7.4,0,0,1,7.39-7.63,7.76,7.76,0,0,1,5.49,2l-1.07,1.27a6.23,6.23,0,0,0-4.48-1.69,5.76,5.76,0,0,0-5.61,6v.05c0,3.51,2.26,6.12,5.84,6.12a6.94,6.94,0,0,0,4.25-1.47V18.49h-4.48V17h6.08v5.87a8.94,8.94,0,0,1-5.92,2.25,7.22,7.22,0,0,1-7.49-7.57" fill="#5e5f5f"/>
8857 <rect x="119.12" y="10.14" width="1.66" height="14.73" fill="#5e5f5f"/>
8858 <polygon points="125.1 10.14 126.66 10.14 135.94 21.95 135.94 10.14 137.56 10.14 137.56 24.87 136.24 24.87 126.72 12.79 126.72 24.87 125.1 24.87 125.1 10.14" fill="#5e5f5f"/>
8859 <polygon points="141.73 10.14 152.38 10.14 152.38 11.65 143.4 11.65 143.4 16.68 151.44 16.68 151.44 18.2 143.4 18.2 143.4 23.36 152.49 23.36 152.49 24.87 141.73 24.87 141.73 10.14" fill="#5e5f5f"/>
8860 <path d="M67,37h-.25l-.59,0c-.29,0-.88,0-1.79,0H63.26l-.45,0-.48,0Q62,37,62,36.92c0-.05,0-.07.13-.07a1,1,0,0,0,.6-.19.8.8,0,0,0,.23-.45A11.77,11.77,0,0,0,63,34.62V33A5.23,5.23,0,0,0,63,32a.74.74,0,0,0-.28-.47.83.83,0,0,0-.48-.18c-.1,0-.14,0-.14-.1s0-.08.12-.08h.12c.47,0,1,.05,1.64.05h.78c.08,0,.12,0,.12.08s0,.08-.13.08a1,1,0,0,0-.52.13.68.68,0,0,0-.28.28,2.06,2.06,0,0,0-.07.63l0,2.09v1.17a3.51,3.51,0,0,0,0,.71.61.61,0,0,0,.19.29.81.81,0,0,0,.54.14l.79,0a1.88,1.88,0,0,0,1.09-.59,3.25,3.25,0,0,0,.64-.91q0-.12.12-.12s.07,0,.07.11,0,.38-.12.88-.14.8-.16.88" fill="#5e5f5f"/>
8861 <path d="M68.72,31.13l.8,0,1.24,0c.14,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a7.11,7.11,0,0,0,.08,1,.55.55,0,0,0,.17.27.9.9,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1l-.94,0q-.15,0-.15-.09t.12-.09c.28,0,.44-.1.48-.28a9.79,9.79,0,0,0,.08-1.69c0-.92,0-1.67,0-2.24a2.89,2.89,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.09,0-.13,0-.13-.1s0-.08.1-.08" fill="#5e5f5f"/>
8862 <path d="M75.44,37.06h-.26c-.14-.44-.36-1.05-.65-1.82l-.84-2.15a10.22,10.22,0,0,0-.54-1.25.94.94,0,0,0-.3-.34,1,1,0,0,0-.41-.11c-.08,0-.11,0-.11-.08s0-.08.11-.08h2.32c.14,0,.21,0,.21.07s0,.1-.14.1c-.39,0-.58.17-.58.5a2.63,2.63,0,0,0,0,.38c0,.17.1.39.18.64s.28.78.57,1.56.47,1.27.55,1.45l.94-2.62a6.3,6.3,0,0,0,.41-1.4c0-.31-.19-.49-.57-.52-.08,0-.12,0-.12-.08s0-.06,0-.07h2a.07.07,0,0,1,0,.06c0,.06-.06.09-.18.11a.74.74,0,0,0-.49.24,2.85,2.85,0,0,0-.32.46c-.1.18-.38.89-.82,2.13-.15.44-.51,1.38-1.06,2.82" fill="#5e5f5f"/>
8863 <path d="M79.7,31.13l.8,0,1.24,0c.14,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a9.13,9.13,0,0,0,.08,1,.55.55,0,0,0,.17.27.9.9,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1l-.94,0q-.15,0-.15-.09t.12-.09c.28,0,.44-.1.48-.28a10.33,10.33,0,0,0,.07-1.69c0-.92,0-1.67,0-2.24a2.67,2.67,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.09,0-.13,0-.13-.1s0-.08.1-.08" fill="#5e5f5f"/>
8864 <path d="M84.83,31.21c.17.23.48.6.91,1.11L87.16,34l1.36,1.57c0-.53,0-1.22,0-2.08,0-.64,0-1.07,0-1.28a.82.82,0,0,0-.3-.55.9.9,0,0,0-.63-.22c-.12,0-.18,0-.18-.07a.08.08,0,0,1,0-.07,4,4,0,0,1,.59,0l.94,0h.69c.1,0,.14,0,.14.07s0,.08-.12.08a1.12,1.12,0,0,0-.64.24.79.79,0,0,0-.23.53c0,.23,0,1,0,2.32l-.05,2.34c0,.12,0,.17-.08.17a.07.07,0,0,1-.06,0,3.67,3.67,0,0,1-.4-.44l-.88-1c-.35-.39-.63-.72-.83-1-.44-.53-.71-.86-.83-1a6.08,6.08,0,0,1-.75-.88c0-.09-.1-.13-.14-.13s0,.06,0,.17v.69c0,.87,0,1.56.07,2.08a3.34,3.34,0,0,0,.15.92,1,1,0,0,0,.27.27.69.69,0,0,0,.41.13c.19,0,.29,0,.29.11s-.06.08-.17.08H83.63c-.1,0-.15,0-.15-.08s0-.09.14-.09a.87.87,0,0,0,.73-.24,1.9,1.9,0,0,0,.18-1l0-1.56a9.48,9.48,0,0,0-.07-1.62,2,2,0,0,0-.34-.59.87.87,0,0,0-.6-.4c-.1,0-.15,0-.15-.08s.07-.08.2-.08Z" fill="#5e5f5f"/>
8865 <path d="M96.7,33s-.08,0-.12-.14a3.08,3.08,0,0,0-1-1.23,2.11,2.11,0,0,0-1.27-.43,2,2,0,0,0-1.07.33,2.37,2.37,0,0,0-.84,1,3.45,3.45,0,0,0-.33,1.49A3,3,0,0,0,92.79,36a2.11,2.11,0,0,0,1.68.82,1.41,1.41,0,0,0,.61-.12,1.57,1.57,0,0,0,.48-.31,1.2,1.2,0,0,0,.27-.31,1.94,1.94,0,0,0,0-.54,1.58,1.58,0,0,0-.19-1,.74.74,0,0,0-.62-.23h-.13c-.09,0-.13,0-.13-.08s0-.11.14-.11h1.23l1.23,0c.07,0,.1,0,.1.1s0,.09-.12.1a1.22,1.22,0,0,0-.44.12.36.36,0,0,0-.21.21,1.32,1.32,0,0,0,0,.4,6.36,6.36,0,0,1,0,1.14,2.88,2.88,0,0,1-.82.46,3.57,3.57,0,0,1-1.56.37A3.24,3.24,0,0,1,92,36.23a2.74,2.74,0,0,1-.92-2.11,3,3,0,0,1,1.63-2.69A3.32,3.32,0,0,1,94.29,31a3.56,3.56,0,0,1,1.58.42.91.91,0,0,0,.34.12.24.24,0,0,0,.21-.12c0-.07.09-.1.12-.1s.11.09.12.26.06.67.13,1.23c0,0,0,0,0,.08s0,.1-.1.1" fill="#5e5f5f"/>
8866 <path d="M105.46,31.42l-.49,0a2,2,0,0,0-1.39.4,1.51,1.51,0,0,0-.49.71c0,.08-.06.11-.12.11a.12.12,0,0,1-.09,0,13.66,13.66,0,0,1,.18-1.42h.27c.23,0,.54,0,.92,0s1,0,1.91,0,1.45,0,1.72,0,.57,0,1,0a4.6,4.6,0,0,1,.07.66c0,.26,0,.45.06.55v.08c0,.07,0,.1-.09.1a.17.17,0,0,1-.1,0s-.08-.11-.16-.25a2.18,2.18,0,0,0-.48-.54,1.17,1.17,0,0,0-.56-.24,8.81,8.81,0,0,0-1.23-.07c0,.44-.06.95-.06,1.52a23.48,23.48,0,0,0,.13,3.35q.12.51.87.51c.12,0,.18,0,.18.08s-.06.08-.17.08H104.6c-.07,0-.1,0-.1-.08s.07-.08.21-.08a.8.8,0,0,0,.56-.2.76.76,0,0,0,.25-.53c0-.23,0-.87,0-1.94s0-1.82-.09-2.71" fill="#5e5f5f"/>
8867 <path d="M115,31.23a11.32,11.32,0,0,1,.25,1.39s0,0,0,0l-.07,0a3.62,3.62,0,0,0-.58-.75,2,2,0,0,0-.56-.37,3.15,3.15,0,0,0-1-.1,5.52,5.52,0,0,0-1,.07.24.24,0,0,0,0,.16v.12a17.9,17.9,0,0,0,0,1.91,1.42,1.42,0,0,0,0,.19h.46a1.53,1.53,0,0,0,.81-.17,1.39,1.39,0,0,0,.43-.71c0-.07.05-.1.09-.1s.08,0,.08.13v.18a5.58,5.58,0,0,0,0,.72c0,.4,0,.76,0,1.09,0,.1,0,.15-.08.15s-.07,0-.08-.11a1.13,1.13,0,0,0-.39-.75,2.4,2.4,0,0,0-1.29-.23c0,.21,0,.56,0,1a6.59,6.59,0,0,0,.07,1.19.63.63,0,0,0,.32.4,1.76,1.76,0,0,0,.85.15,2.16,2.16,0,0,0,2.23-1.19c0-.1.08-.14.12-.14s.07,0,.07.09a.25.25,0,0,1,0,.12c0,.05-.06.26-.13.62,0,.08-.07.31-.17.7h-1.85l-1.17,0c-.51,0-1,0-1.37,0a4.69,4.69,0,0,1-.62,0,.06.06,0,0,1,0,0c0-.06,0-.09.14-.09a.71.71,0,0,0,.65-.26,3.21,3.21,0,0,0,.15-1.27V33.52c0-.17,0-.5,0-1a7.76,7.76,0,0,0,0-.82.35.35,0,0,0-.14-.2,1.3,1.3,0,0,0-.5-.2c-.07,0-.11,0-.11-.1s0-.08.16-.08l.9.05c.32,0,1.1,0,2.35,0H115" fill="#5e5f5f"/>
8868 <path d="M120.08,33.56c.15-.18.34-.44.59-.79s.39-.58.44-.68a.6.6,0,0,0,.07-.27.34.34,0,0,0-.17-.3.77.77,0,0,0-.37-.12c-.12,0-.19,0-.19-.1s.09-.07.28-.07h2.08s0,0,0,.07-.06.08-.17.08a1.33,1.33,0,0,0-.75.28,5.31,5.31,0,0,0-1,1.1c-.42.56-.65.89-.7,1a25.49,25.49,0,0,0,1.82,2.5,1.52,1.52,0,0,0,1,.59c.1,0,.16,0,.16.09s-.06.08-.17.08l-.37,0-.77,0c-.42,0-.81,0-1.18,0h-.15c-.14,0-.21,0-.21-.08s0-.09.12-.09c.37,0,.56-.12.56-.35a6.58,6.58,0,0,0-1.3-2.06,8.71,8.71,0,0,0-.71,1,3.07,3.07,0,0,0-.57,1c0,.11.07.19.22.27a1.19,1.19,0,0,0,.54.14c.11,0,.17,0,.17.09s-.06.08-.16.08h-.16l-.91,0a9,9,0,0,0-1.09,0q-.18,0-.18-.09s0-.08.13-.08a1.38,1.38,0,0,0,.55-.11,1.21,1.21,0,0,0,.42-.31,11.33,11.33,0,0,0,.76-1c.39-.56.66-.95.81-1.19a19.2,19.2,0,0,0-1.88-2.51,1.37,1.37,0,0,0-.79-.31c-.08,0-.12,0-.12-.08s.07-.08.22-.08h2.53a.08.08,0,0,1,0,.07.08.08,0,0,1,0,.07l-.29,0a.54.54,0,0,0-.26.09.26.26,0,0,0-.11.19,2.57,2.57,0,0,0,.43.78,10.8,10.8,0,0,0,.79,1.09" fill="#5e5f5f"/>
8869 <path d="M126.79,31.42l-.49,0a2,2,0,0,0-1.38.4,1.47,1.47,0,0,0-.5.71c0,.08-.06.11-.12.11a.12.12,0,0,1-.09,0,13.66,13.66,0,0,1,.18-1.42h.27c.23,0,.53,0,.92,0s1,0,1.91,0,1.45,0,1.72,0,.57,0,1,0a6.62,6.62,0,0,1,.08.66,4,4,0,0,0,.05.55v.08c0,.07,0,.1-.09.1a.17.17,0,0,1-.1,0l-.17-.25a2,2,0,0,0-.47-.54,1.17,1.17,0,0,0-.56-.24,8.81,8.81,0,0,0-1.23-.07c0,.44,0,.95,0,1.52a24.27,24.27,0,0,0,.12,3.35q.12.51.87.51c.12,0,.18,0,.18.08s-.06.08-.17.08h-2.72c-.07,0-.11,0-.11-.08s.07-.08.21-.08a.77.77,0,0,0,.81-.73c0-.23,0-.87,0-1.94s0-1.82-.09-2.71" fill="#5e5f5f"/>
8870 <path d="M131.87,31.13l.8,0,1.24,0c.15,0,.22,0,.22.09s0,.07-.12.08c-.33.05-.53.16-.61.36a9.78,9.78,0,0,0-.12,2.16c0,.45,0,1,0,1.54a7.11,7.11,0,0,0,.08,1,.55.55,0,0,0,.17.27.94.94,0,0,0,.46.15c.07,0,.11,0,.11.08s0,.08-.1.08h-1.1L132,37c-.11,0-.16,0-.16-.09s0-.09.12-.09c.28,0,.44-.1.48-.28a9.79,9.79,0,0,0,.08-1.69c0-.92,0-1.67,0-2.24a2.89,2.89,0,0,0-.14-1,.62.62,0,0,0-.45-.24c-.08,0-.13,0-.13-.1s0-.08.1-.08" fill="#5e5f5f"/>
8871 <path d="M140.57,37h-.24l-.6,0c-.28,0-.88,0-1.78,0h-1.13l-.45,0-.47,0c-.22,0-.34,0-.34-.09s.05-.07.14-.07a.93.93,0,0,0,.59-.19.75.75,0,0,0,.23-.45,11.08,11.08,0,0,0,.07-1.59V33a6.09,6.09,0,0,0-.07-1.07.83.83,0,0,0-.28-.47.86.86,0,0,0-.49-.18c-.09,0-.14,0-.14-.1s0-.08.13-.08h.11c.47,0,1,.05,1.65.05h.78c.08,0,.12,0,.12.08s0,.08-.13.08a1,1,0,0,0-.52.13.63.63,0,0,0-.28.28,1.78,1.78,0,0,0-.07.63l0,2.09v1.17a3.26,3.26,0,0,0,0,.71.55.55,0,0,0,.19.29.78.78,0,0,0,.53.14l.79,0a1.82,1.82,0,0,0,1.09-.59,3.05,3.05,0,0,0,.64-.91q.06-.12.12-.12c.05,0,.08,0,.08.11s-.05.38-.13.88-.14.8-.16.88" fill="#5e5f5f"/>
8872 <path d="M146.72,31.23a13.64,13.64,0,0,1,.25,1.39s0,0-.05,0a.09.09,0,0,1-.06,0,3.62,3.62,0,0,0-.59-.75,1.87,1.87,0,0,0-.56-.37,3.11,3.11,0,0,0-1-.1,5.71,5.71,0,0,0-1,.07.32.32,0,0,0,0,.16s0,.06,0,.12c0,.23,0,.87,0,1.91v.19h.46a1.53,1.53,0,0,0,.81-.17,1.4,1.4,0,0,0,.44-.71c0-.07.05-.1.09-.1s.08,0,.08.13l0,.18c0,.23,0,.47,0,.72,0,.4,0,.76,0,1.09,0,.1,0,.15-.08.15s-.07,0-.08-.11a1.18,1.18,0,0,0-.4-.75,2.36,2.36,0,0,0-1.29-.23c0,.21,0,.56,0,1a5.73,5.73,0,0,0,.07,1.19.65.65,0,0,0,.31.4,1.81,1.81,0,0,0,.86.15,2.14,2.14,0,0,0,2.22-1.19c0-.1.08-.14.13-.14s.07,0,.07.09a.5.5,0,0,1,0,.12c0,.05-.06.26-.13.62,0,.08-.07.31-.17.7h-1.85L144,37c-.52,0-1,0-1.37,0a4.43,4.43,0,0,1-.62,0s0,0,0,0,0-.09.15-.09a.68.68,0,0,0,.64-.26,3.14,3.14,0,0,0,.16-1.27v-.9l0-.85c0-.17,0-.5,0-1a6.49,6.49,0,0,0-.06-.82.38.38,0,0,0-.13-.2,1.38,1.38,0,0,0-.5-.2c-.08,0-.12,0-.12-.1s.06-.08.16-.08l.9.05c.32,0,1.1,0,2.35,0h1.26" fill="#5e5f5f"/>
8873 <path d="M151.85,31.49a.63.63,0,0,0,.16-.25c0-.07.06-.11.1-.11s0,0,.08.05.05.32.09.64l.11.83c0,.05,0,.08-.1.08s-.07,0-.09-.09a2.49,2.49,0,0,0-.7-1,1.54,1.54,0,0,0-1-.38,1,1,0,0,0-.81.32,1.06,1.06,0,0,0-.27.69.79.79,0,0,0,.3.67,3.92,3.92,0,0,0,1.22.53,5.35,5.35,0,0,1,1,.42,1.63,1.63,0,0,1,.56.55,1.36,1.36,0,0,1,.23.77,1.66,1.66,0,0,1-.58,1.25,2,2,0,0,1-1.41.56,2.86,2.86,0,0,1-1.53-.48.57.57,0,0,0-.19.3c0,.09-.06.14-.11.14s-.09-.06-.11-.18-.06-.7-.13-1.72a.11.11,0,0,1,.1,0s.08,0,.1.1c.46,1.14,1.09,1.71,1.91,1.71a1.23,1.23,0,0,0,.94-.37,1.17,1.17,0,0,0,.34-.84,1,1,0,0,0-.18-.6,1.31,1.31,0,0,0-.49-.44,5.91,5.91,0,0,0-.95-.38,3.9,3.9,0,0,1-1.14-.51,1.42,1.42,0,0,1-.45-.54,1.45,1.45,0,0,1-.14-.59,1.35,1.35,0,0,1,.53-1,1.92,1.92,0,0,1,1.31-.46,1.94,1.94,0,0,1,.61.1,3.09,3.09,0,0,1,.67.28" fill="#5e5f5f"/>
8874 </g>
8875 </g>
8876 </g>
8877 </g>
8878 </svg>
8879
8880 </div>
8881 </div>
8882 }
8883 @helper RenderFooterColumn(string header, string content, IList<ItemViewModel> links, string className = "column") {
8884
8885
8886 <div class="@className">
8887 @if (!string.IsNullOrEmpty(header))
8888 {
8889 <h6 class="footer__heading h5 mb-2 weight-bold">@header</h6>
8890 }
8891
8892 @if(links.Any()){
8893 <nav class="footer-links child-mb-1 font-md">
8894 @foreach(var pageLink in links){
8895 string link = pageLink.GetString("Link");
8896 string title = pageLink.GetString("Title");
8897 string icon = pageLink.GetString("Icon");
8898 string newWindow = pageLink.GetBoolean("NewWindow") ? " target=\"_blank\"" : "";
8899
8900 if (!string.IsNullOrEmpty(newWindow))
8901 {
8902 <a href="@link" @newWindow rel="noreferrer" class="footer-links__link block w-100">@icon @title</a>
8903 }
8904 else
8905 {
8906 <a href="@link" class="footer-links__link block w-100">@icon @title</a>
8907 }
8908
8909
8910 }
8911 </nav>
8912 }else{
8913 if (!string.IsNullOrEmpty(header))
8914 {
8915 <div class="content">
8916 @content
8917 </div>
8918 }
8919
8920 }
8921 </div>
8922
8923 }
8924
8925 @helper RenderFooterNewsletterSignUp(Df.Dw.Rapido.AreaInfo areaInfo) {
8926 if (Model.Area.Item.GetItem("Layout").GetBoolean("FooterNewsletterSignUp"))
8927 {
8928
8929 <div class="newsletter">
8930 <h6 class="footer__heading h5 mb-2 weight-bold">@Translate(Translations.General.SubscribeToNewsletter)</h6>
8931
8932 <form class="form block w-100" id="NewsletterRedirect" name="NewsletterRedirect" action='/Default.aspx' method="get" enctype="multipart/form-data">
8933 <input name="ID" value="@areaInfo.NewsletterSignUpPage.ID" type="hidden" />
8934 @*<label for="NewsletterEmail">@Translate(Translations.General.SignUpMessage)</label>*@
8935 <div class="newsletter__container flex-wrap">
8936 <df-input name="NewsletterEmail" id="NewsletterEmail" type="email" placeholder='@Translate(Translations.General.YourEmailAddress)' value="" ></df-input>
8937 <button type="submit" class="btn-fill--brand" id="Submitter">@Translate(Translations.General.Go)</button>
8938 </div>
8939 </form>
8940
8941 </div>
8942 }
8943 }
8944
8945 @helper RenderFooterSocialLinks(Df.Dw.Rapido.AreaInfo areaInfo) {
8946 if (areaInfo.FooterSocialLinks != null && areaInfo.FooterSocialLinks.Count > 0)
8947 {
8948
8949 <div class="contact__social-media flex-wrap align-items-center child-mr-2 child-mr-xxl-4">
8950 <h6 class="footer__heading h5 weight-bold w-100 w-md-auto mb-2 mb-md-0">@Translate(Translations.General.SocialLinks)</h6>
8951 @foreach (var socialitem in areaInfo.FooterSocialLinks)
8952 {
8953 var socialIcon = socialitem.GetValue("Icon") as Dynamicweb.Frontend.ListViewModel;
8954 string socialIconClass = socialIcon.SelectedValue;
8955 string socialIconTitle = socialIcon.SelectedName.ToLower();
8956 string socialLink = socialitem.GetString("Link");
8957
8958 <a href="@socialLink" target="_blank" class="btn btn-icon btn-md btn-@socialIconTitle" title="@socialIconTitle" rel="noopener" class="">@RenderInlineSvg("default","logo-" + socialIconTitle)</a>
8959 }
8960 </div>
8961 }
8962 }
8963
8964 @helper RenderFooterPartnerShops() {
8965 <a href='/Default.aspx?ID=@GetPageIdByNavigationTag("MagazinePartenere")' class="btn btn-link"><span class="footer__heading h5 weight-bold text-transform-none">@Translate("Gaseste Magazin Partener")</span> <span class="icon ml-2" style="--icon-size: 3rem;">
8966 <div class="ico">
8967 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.7 23.23">
8968 <g id="Layer_2" data-name="Layer 2">
8969 <g id="Layer_1-2" data-name="Layer 1">
8970 <g>
8971 <path d="M5.52,17.25a.37.37,0,0,0,.4-.4V15.36a.37.37,0,0,0-.4-.4.39.39,0,0,0-.4.4v1.49A.39.39,0,0,0,5.52,17.25Z" fill="var(--color-brand)"/>
8972 <path d="M22,17.91l5.33,5.32,1.42-1.42-5.32-5.33A7,7,0,0,0,22.06,6.7a.66.66,0,0,0,0-.14.3.3,0,0,0-.05-.2L18.3.2A.41.41,0,0,0,18,0H3.73a.51.51,0,0,0-.35.2L.05,6.36s0,.1,0,.2A3.08,3.08,0,0,0,1.64,9.25V20.58H.35v0a.36.36,0,0,0-.35.4.39.39,0,0,0,.35.4H21.73a.4.4,0,0,0,0-.8H20.48V18.75A6.67,6.67,0,0,0,22,17.91Zm5.8,3.9-.47.47-4.8-4.79.15-.15.18-.18L23,17ZM17.7.75l3.14,5.18a6.66,6.66,0,0,0-1.92-.63,7.24,7.24,0,0,0-2.46,0L14.86.75Zm-6.32,0h2.69L15.73,5.5a7.52,7.52,0,0,0-1.54.66H11.38Zm1.77,6.16a7.23,7.23,0,0,0-1.1,1.18,2.37,2.37,0,0,1-.62-1.18ZM10.64.75V6.16H5.77L7.66.75Zm0,6.16A2.25,2.25,0,0,1,8.4,8.8,2.31,2.31,0,0,1,6.16,6.91ZM3.93.75H6.86L5,6.16H1ZM.8,6.91H5.32A2.25,2.25,0,0,1,3.08,8.8,2.34,2.34,0,0,1,.8,6.91ZM8.6,20.53h-4V11.38h4Zm11.09,0H9.35V11a.39.39,0,0,0-.4-.4H4.18a.39.39,0,0,0-.4.4v9.54H2.34V9.5h.05a2.86,2.86,0,0,0,.69.1A3,3,0,0,0,5.72,8,3,3,0,0,0,11,8a2.75,2.75,0,0,0,.61.79,7,7,0,0,0-.83,4.65,3.89,3.89,0,0,0,.12.49v3.52c0,.25.2.4.4.4h2.13A7,7,0,0,0,19.69,19Zm-8-3.48V15.88a7.36,7.36,0,0,0,.92,1.22Zm4.8,1.43A6.39,6.39,0,1,1,24,11,6.38,6.38,0,0,1,16.48,18.53Z" fill="var(--color-brand)"/>
8973 </g>
8974 </g>
8975 </g>
8976 </svg>
8977
8978 </div>
8979 </span></a>
8980
8981 }
8982 @helper RenderFooterNewsletter() {
8983 int newsletterPageID = GetPageIdByNavigationTag("NewsletterSignUp");
8984 <a href="/Default.aspx?ID=@newsletterPageID" class="btn btn-link"><span class="footer__heading h5 weight-bold text-transform-none">@Translate(Translations.General.SubscribeToNewsletter)</span> <span class="icon ml-2" style="--icon-size: 4rem">
8985 <div class="ico">
8986 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43.08 17.46">
8987 <g id="Layer_2" data-name="Layer 2">
8988 <g id="Layer_1-2" data-name="Layer 1">
8989 <g>
8990 <g id="Layer_2-2" data-name="Layer 2">
8991 <path d="M40.08,0H21.82a3,3,0,0,0-3,3V14.46a3,3,0,0,0,3,3H40.08a3,3,0,0,0,3-3V3A3,3,0,0,0,40.08,0ZM34,8.58,41.73,1.9A2,2,0,0,1,42.05,3V14.46a2,2,0,0,1-.22.89ZM40.08,1a1.91,1.91,0,0,1,.9.23L31.25,9.64a.5.5,0,0,1-.63,0L20.89,1.23A2,2,0,0,1,21.82,1Zm-20,14.35a1.88,1.88,0,0,1-.26-.89V3a2,2,0,0,1,.32-1.1l7.73,6.68Zm1.74,1.08a2,2,0,0,1-1.09-.33l7.91-6.86L30,10.39a1.47,1.47,0,0,0,1.93,0l1.34-1.15,7.93,6.86a2,2,0,0,1-1.09.33Z" fill="var(--color-brand)"/>
8992 </g>
8993 <g>
8994 <line x1="0.5" y1="0.65" x2="18" y2="0.65" fill="#fff"/>
8995 <path d="M18,1.15H.5A.5.5,0,0,1,0,.65.5.5,0,0,1,.5.15H18a.5.5,0,0,1,.5.5A.5.5,0,0,1,18,1.15Z" fill="var(--color-brand)"/>
8996 </g>
8997 <g>
8998 <line x1="3.96" y1="3.86" x2="16.8" y2="3.86" fill="#fff"/>
8999 <path d="M16.8,4.36H4a.5.5,0,0,1-.5-.5.51.51,0,0,1,.5-.5H16.8a.51.51,0,0,1,.5.5A.5.5,0,0,1,16.8,4.36Z" fill="var(--color-brand)"/>
9000 </g>
9001 <g>
9002 <line x1="7.87" y1="7.08" x2="16.04" y2="7.08" fill="#fff"/>
9003 <path d="M16,7.58H7.88a.5.5,0,0,1-.5-.5.5.5,0,0,1,.5-.5H16a.5.5,0,0,1,.5.5A.5.5,0,0,1,16,7.58Z" fill="var(--color-brand)"/>
9004 </g>
9005 </g>
9006 </g>
9007 </g>
9008 </svg>
9009
9010 </div>
9011 </span></a>
9012
9013 }
9014 @helper RenderFooterPayments(Df.Dw.Rapido.AreaInfo areaInfo) {
9015 <div class="payment--icons">
9016 @foreach (var payment in areaInfo.FooterPayments)
9017 {
9018 var paymentItem = payment.GetValue("CardTypeOrVerifiedPayment") as Dynamicweb.Frontend.ListViewModel;
9019 string paymentImage = null;
9020 string paymentTitle = paymentItem.SelectedName;
9021 ListOptionViewModel selected = paymentItem.SelectedOptions.FirstOrDefault();
9022 if (selected != null)
9023 {
9024 paymentImage = selected.Icon;
9025 }
9026
9027 <img class="b-lazy" src="/Admin/Public/GetImage.ashx?height=40&Compression=75&image=@paymentImage" alt="@paymentTitle" title="@paymentTitle" />
9028 }
9029 </div>
9030 }
9031
9032 @helper RenderFooterCopyright(Df.Dw.Rapido.AreaInfo areaInfo) {
9033 <span class="h5 font-condensed order-1 order-xs-0 mt-2 mt-xs-0 font-md">@areaInfo.FooterCopyrightText</span>
9034 }
9035
9036 @helper RenderFooterAddress(Df.Dw.Rapido.AreaInfo areaInfo)
9037 {
9038 <h6 class="footer__heading h5 weight-bold mb-2">@Translate(Translations.General.Contact)</h6>
9039 <div class="company-address font-md">
9040 <p>@areaInfo.CompanyAddressStreetAddress, @areaInfo.CompanyAddressPostalCode</p>
9041 <p>@areaInfo.CompanyAddressCity, @areaInfo.CompanyAddressRegion</p>
9042 <p>@areaInfo.CompanyAddressCountry</p>
9043 <p>@areaInfo.ContactEmail</p>
9044 <p>@areaInfo.ContactNumber</p>
9045 </div>
9046
9047 }
9048 @helper RenderBeInspired()
9049 {
9050 <div class="flex-wrap align-items-center">
9051 <h5 class="footer__heading h4 weight-normal">Be Inspired</h5>
9052 </div>
9053 }
9054 @helper RenderGetConnected()
9055 {
9056 <div class="flex-wrap align-items-center">
9057 <h5 class="footer__heading h4 weight-normal">Get Connected</h5>
9058 </div>
9059 }
9060 @helper RenderCompareModule() {
9061 var compareMaxItems = Pageview.Device.ToString() == "Mobile" ? "2" : "3";
9062 var DesignFolder = Pageview.Layout.Design.Name;
9063 <div class="row compareWrapper hidden"
9064 data-compare-new-list="@Translate("Compare new list")"
9065 data-compare-keep-list="@Translate("Compare keep list")"
9066 data-compare-different-group="@Translate("Compare product is in different group")"
9067 data-compare-list-full="@Translate("Compare list is full")" data-compare-max-items="@compareMaxItems">
9068
9069 <div class="compareHeader">
9070 <span> @Translate("Compare products")</span>
9071 <button id="collapseCompareWrapper" class="btn-icon" title="@Translate("Compare products")">@RenderInlineSvg("default","compare")</button>
9072 </div>
9073
9074 <div class="compareList"></div>
9075 <div class="compareButton"><a class="btn btn-border--dark" id="df-compare" data-initial-link="/Default.aspx?ID=@GetPageIdByNavigationTag("ProductsPage")&compare=" href="/Default.aspx?ID=@GetPageIdByNavigationTag("ProductsPage")&compare=">@Translate("Compare products")</a></div>
9076 </div>
9077 }
9078 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9079
9080 @using System
9081 @using System.Web
9082 @using Dynamicweb.Rapido.Blocks.Extensibility
9083 @using Dynamicweb.Rapido.Blocks
9084 @using Dynamicweb.Ecommerce.Common
9085 @* using System.Collections.Generic *@
9086
9087 @{
9088 BlocksPage referencesBlocksPage = BlocksPage.GetBlockPage("Master");
9089
9090 Block masterScriptReferences = new Block()
9091 {
9092 Id = "MasterScriptReferences",
9093 SortId = 1,
9094 Template = RenderMasterScriptReferences()
9095 };
9096 referencesBlocksPage.Add(MasterBlockId.MasterReferences, masterScriptReferences);
9097 }
9098
9099 @helper RenderMasterScriptReferences() {
9100 @* <script src="/Files/Templates/Designs/Wizaris/dist/js/app.min.js"></script> *@
9101 @* PushPromise("/Files/Templates/Designs/Wizaris/dist/js/app.min.js"); *@
9102
9103 @RenderSnippet("Script")
9104 }
9105 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9106
9107 @using System
9108 @using System.Web
9109 @using Df.Dw
9110 @using Dynamicweb.Rapido.Blocks.Extensibility
9111 @using Dynamicweb.Rapido.Blocks
9112 @* using System.Collections.Generic *@
9113
9114 @{
9115 BlocksPage searchBlocksPage = BlocksPage.GetBlockPage("Master");
9116 bool isFavoriteList = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("ListID"));
9117
9118 if (!areaInfo.NavigationItemsHideSearch || isFavoriteList)
9119 {
9120 Block masterSearchScriptTemplates = new Block()
9121 {
9122 Id = "MasterSearchScriptTemplates",
9123 SortId = 1,
9124 Template = RenderSearchScriptTemplates()
9125 };
9126
9127 searchBlocksPage.Add(MasterBlockId.MasterBottomSnippets, masterSearchScriptTemplates);
9128 }
9129 }
9130
9131 @helper RenderSearchScriptTemplates()
9132 {
9133 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9134 var user = User.GetCurrentExtranetUser();
9135 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null;
9136 var DesignFolder = Pageview.Layout.Design.Name;
9137
9138 <script id="SearchGroupsTemplate" type="text/x-template">
9139 {{#.}}
9140 <li class="dropdown__item" onclick="Search.UpdateGroupSelection(this)" data-group-id="{{id}}">{{name}}</li>
9141 {{/.}}
9142 </script>
9143
9144 <script id="SearchProductsTemplate" type="text/x-template">
9145 {{#each this}}
9146 {{#Product}}
9147 {{#ifCond template "!==" "SearchMore"}}
9148 <li class="item bg-neutral p-2">
9149 @if (areaInfo.FacebookPixelID.HasValue())
9150 {
9151 <text>{{{facebookPixelSearch name number priceDouble currency searchParameter}}}</text>
9152 }
9153 @if (areaInfo.GoogleTagManagerID.HasValue())
9154 {
9155 <text>{{{googleEnchantImpression 'Search results' currency googleImpression}}}</text>
9156 }
9157
9158 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="item__title grid-auto-1 text-decoration-none" title="{{name}}">
9159 <img class="lazyload item__image" loading="lazy" width="45" height="36" src="/Admin/Public/GetImage.ashx?width=45&height=36&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image=%2fImages%2fmissing_image.jpg" data-src="/Admin/Public/GetImage.ashx?width=45&height=36&crop=5&FillCanvas=True&Compression=75&image={{image}}" alt="{{name}}">
9160
9161 <div class="item__name order--1">{{name}}</div>
9162 @if (areaInfo.ShowPrice && !onlyPreview)
9163 {
9164 if (areaInfo.PointShopOnly)
9165 {
9166 <text>
9167 {{#if havePointPrice}}
9168 <span>{{points}}</span> @Translate(Translations.Cart.Points)
9169 {{else}}
9170 <small>@Translate(Translations.General.NotAvailable)</small>
9171 {{/if}}
9172 {{#unless canBePurchasedWithPoints}}
9173 {{#if havePointPrice}}
9174 <small>@Translate(Translations.Cart.NotEnoughPointsToBuyThis)</small>
9175 {{/if}}
9176 {{/unless}}
9177 </text>
9178 }
9179 else
9180 {
9181 <div>{{price}}</div>
9182 }
9183 }
9184
9185 </a>
9186 <div class="item__actions hidden">
9187 @if (areaInfo.ProductListShowCartButton && !onlyPreview) {
9188 if (areaInfo.PointShopOnly)
9189 {
9190 <button type="button" class="btn-icon--dark {{hideBuyOptions}} js-ignore-click-outside {{#unless canBePurchasedWithPoints}}js-stay-disabled{{/unless}}" name="CartCmd" value="addWithPoints"
9191 onclick="Cart.AddToCart(event, {
9192 id: '{{productId}}',
9193 quantity: 1,
9194 buyForPoints: true,
9195 productInfo: {{productInfo}}
9196 }); {{facebookPixelAction}}" {{disabledBuyButton}}>
9197 <ion-icon name="arrow-forward"></ion-icon>
9198 </button>
9199 } else {
9200 <form>
9201 <input type="hidden" name="ProductID" value="{{productId}}" />
9202 @*<input type="hidden" name="Quantity" value="1" />*@
9203 <input type="hidden" name="ID" value="@areaInfo.MiniCartFeedPage.ID.ToString()" />
9204 <input type="hidden" name="redirect" value="false" />
9205 <input type="hidden" name="CartCmd" value="add" />
9206 <df-quantity name="Quantity" value="1" class="item__quantity"></df-quantity>
9207 <button type="button" class="btn-icon {{hideBuyOptions}} item__addToCart" data-role="add-to-cart" message-success="@Translate(Translations.Cart.ProductIsAddedToTheCart)">
9208 <ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/cart.svg"></ion-icon>
9209 </button>
9210 </form>
9211 }
9212 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="btn-icon--dark hidden {{hideViewMore}}" title="@Translate(Translations.General.View)"><ion-icon name="arrow-forward"></ion-icon></a>
9213 }
9214 else if (areaInfo.ProductListShowViewButton)
9215 {
9216 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="btn js-ignore-click-outside" title="@Translate(Translations.General.View)">@Translate(Translations.General.View)</a>
9217 }
9218 @if (areaInfo.ProductListShowAddToDownloadButton)
9219 {
9220 <button type="button" class="btn js-add-to-downloads" title="@Translate(Translations.General.Add)" data-product-id="{{productId}}">
9221 <i class="fas fa-plus js-button-icon"></i>
9222 </button>
9223 }
9224 </div>
9225 </li>
9226 {{/ifCond}}
9227 {{#ifCond template "===" "SearchMore"}}
9228 @*{{>SearchMoreProducts}}*@
9229 <li class="item item--full {{stickToBottom}}">
9230 <button type="button" class="btn-link typeahead__submit icon-right py-1" data-results-page="/Default.aspx?ID=@areaInfo.ProductsPage.ID"><span>@Translate(Translations.General.ViewAll)</span></button>
9231 </li>
9232 {{/ifCond}}
9233 {{/Product}}
9234 {{else}}
9235 <li class="dropdown__item">
9236 @Translate(Translations.General.YourSearchGave0Results)
9237 </li>
9238 {{/each}}
9239 </script>
9240
9241 <script id="RecentSearchesTemplate" type="text/x-template">
9242 <li class="recent-searches-header">
9243 <h4>@Translate(Translations.Products.RecentSearches)</h4>
9244 <button class="clear-recent-searches"> Clear </button>
9245 </li>
9246 {{#each RecentSearches}}
9247 <li> {{this}} </li>
9248 {{/each}}
9249 </script>
9250
9251 <script id="SearchCategoriesTemplate" type="text/x-template">
9252 <df-select id="headerSearch__categories" name="headerSearch__categories" value="" label="@Translate(Translations.Products.Categories)">
9253 {{#each this}}
9254 <df-option value="{{id}}" label="{{name}}"><span>{{name}}</span></df-option>
9255 {{/each}}
9256 </df-select>
9257
9258 </script>
9259
9260 <script id="SearchMoreProducts" type="text/x-template">
9261 <li class="dropdown__item {{stickToBottom}}">
9262 <button type="button" class="btn" data-results-page="/Default.aspx?ID=@areaInfo.ProductsPage.ID"> @Translate(Translations.General.ViewAll)</button>
9263 </li>
9264 </script>
9265
9266 <script id="SearchMorePages" type="text/x-template">
9267 <li class="dropdown__item {{stickToBottom}}">
9268 <button type="button" class="btn" data-results-page="/Default.aspx?ID=@areaInfo.ProductsPage.ID"> @Translate(Translations.General.ViewAll)</button>
9269 </li>
9270 </script>
9271
9272 <script id="SearchPagesTemplate" type="text/x-template">
9273 {{#each .}}
9274 {{#ifCond template "!==" "SearchMore"}}
9275 <li class="dropdown__item">
9276 <a href="/Default.aspx?ID={{id}}" class="js-typeahead-link">
9277 <i class="fa {{icon}}"></i>
9278 <div class="js-typeahead-name">{{name}}</div>
9279 </a>
9280 </li>
9281 {{/ifCond}}
9282 {{#ifCond template "===" "SearchMore"}}
9283 {{>SearchMorePages}}
9284 {{/ifCond}}
9285 {{else}}
9286 <li>
9287 @Translate(Translations.General.YourSearchGave0Results)
9288 </li>
9289 {{/each}}
9290 </script>
9291
9292 <script id="SearchPagesTemplateWrap" type="text/x-template">
9293 <div class="dropdown__column-header">@Translate(Translations.General.Pages)</div>
9294 <ul class="dropdown__list">
9295 {{>SearchPagesTemplate}}
9296 </ul>
9297 </script>
9298
9299 <script id="SearchProductsTemplateWrap" type="text/x-template">
9300 <div>@Translate(Translations.Products.ProductsGeneral)</div>
9301 <ul>
9302 {{>SearchProductsTemplate}}
9303 </ul>
9304 </script>
9305
9306
9307 }
9308
9309
9310 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9311
9312 @using System
9313 @using System.Web
9314 @using Df.Dw
9315 @using Dynamicweb.Rapido.Blocks.Extensibility
9316 @using Dynamicweb.Rapido.Blocks
9317 @* using System.Collections.Generic *@
9318
9319 @{
9320 BlocksPage bottomSnippetsBlocksPage = BlocksPage.GetBlockPage("Master");
9321
9322 Block primaryBottomSnippets = new Block()
9323 {
9324 Id = "MasterJavascriptInitializers",
9325 SortId = 100,
9326 Template = RenderPrimaryBottomSnippets()
9327 };
9328 bottomSnippetsBlocksPage.Add(MasterBlockId.MasterReferences, primaryBottomSnippets);
9329 }
9330
9331 @helper RenderPrimaryBottomSnippets() {
9332 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9333
9334 if (areaInfo.IsWireframeMode)
9335 {
9336 <script>
9337 Wireframe.Init(true);
9338 </script>
9339 }
9340
9341
9342 if (areaInfo.GoogleTagManagerID.HasValue())
9343 {
9344 <script>
9345 document.addEventListener('addToCart', function(event) {
9346 var googleImpression = event.detail.productInfo.googleImpression;
9347 dataLayer.push({
9348 'event': 'addToCart',
9349 'ecommerce': {
9350 'currencyCode': '@Dynamicweb.Ecommerce.Services.Currencies.GetDefaultCurrency().Code',
9351 'add': {
9352 'products': [{
9353 'name': googleImpression.name,
9354 'id': googleImpression.id,
9355 'price': googleImpression.price,
9356 'brand': googleImpression.brand,
9357 'category': googleImpression.category,
9358 'variant': googleImpression.variant,
9359 'quantity': event.detail.quantity
9360 }]
9361 }
9362 }
9363 });
9364 });
9365 </script>
9366 }
9367
9368 //if digitalwarehouse
9369 if (Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("ShowDownloadCart"))
9370 {
9371 string cartContextId = Converter.ToString(HttpContext.Current.Application["DownloadCartContext"]);
9372
9373 if (!cartContextId.HasValue()) {
9374 var moduleProps = Dynamicweb.Modules.Properties.GetParagraphModuleSettings(GetPageIdByNavigationTag("DownloadCart"), "eCom_CartV2");
9375 var cartSettings = new Dynamicweb.Ecommerce.Cart.ModuleSettings(moduleProps);
9376 cartContextId = cartSettings.OrderContextID;
9377 HttpContext.Current.Application["DownloadCartContext"] = cartContextId;
9378 }
9379
9380 <script>
9381 let downloadCart = new DownloadCart({
9382 cartPageId: @GetPageIdByNavigationTag("MiniCartFeed"),
9383 contextId: "@cartContextId",
9384 addButtonText: "@Translate(Translations.General.Add)",
9385 removeButtonText: "@Translate(Translations.General.Remove)"
9386 });
9387 </script>
9388 }
9389 <!--$$Javascripts-->
9390
9391 @RenderSnippet("Messenger")
9392 }
9393
9394
9395
9396 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
9397 @using Dynamicweb.Core
9398 @using System
9399 @using System.Web
9400 @using System.Collections.Generic
9401 @using Dynamicweb.Rapido.Blocks
9402
9403 @{
9404 BlocksPage masterBlocksPage = BlocksPage.GetBlockPage("Master");
9405
9406 Block StickersTemplateRefactored = new Block()
9407 {
9408 Id = "StickersTemplateRefactored",
9409 SortId = 100,
9410 Template = RenderStickersTemplateRefactored()
9411 };
9412 masterBlocksPage.Add(MasterBlockId.MasterBottomSnippets, StickersTemplateRefactored);
9413 }
9414
9415
9416 @helper RenderStickersTemplateRefactored() {
9417 <script id="StickersContainer" type="text/x-template">
9418 <div class="stickers-container stickers-container--{{position}}">
9419 <div class="list">
9420 {{#Stickers}}
9421 {{>Sticker}}
9422 {{/Stickers}}
9423 </div>
9424 </div>
9425 </script>
9426
9427 <script id="Sticker" type="text/x-template">
9428 <div class="list-item">
9429 <div class="sticker {{className}} font-sm px-2 py-1">{{text}}</div>
9430 </div>
9431 </script>
9432
9433 <script id="MiniSticker" type="text/x-template">
9434 <div class="sticker stickers-container__tag--micro {{className}}">{{text}}</div>
9435 </script>
9436 }
9437
9438 @if (File.Exists(HttpContext.Current.Server.MapPath("Files/Templates/Designs/@DesignFolder/MasterBlocks/Custom__Blocks.cshtml")))
9439 {
9440 <text>@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9441
9442 @using System
9443 @using System.Web
9444 @using Dynamicweb.Rapido.Blocks
9445 @using Dynamicweb.Rapido.Blocks.Extensibility
9446 @* using System.Collections.Generic *@
9447
9448 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9449
9450 @using System
9451 @using System.Web
9452 @using Df.Dw
9453 @using Dynamicweb.Rapido.Blocks.Extensibility
9454 @using Dynamicweb.Rapido.Blocks
9455 @* using System.Collections.Generic *@
9456
9457
9458 @{
9459 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet")
9460 {
9461 Block masterToolsCustom = new Block()
9462 {
9463 Id = "MasterDesktopTools",
9464 SortId = 30,
9465 Template = RenderDesktopToolsCustom(),
9466 SkipRenderBlocksList = true,
9467 BlocksList = new List<Block>
9468 {
9469
9470 new Block {
9471 Id = "MasterDesktopToolsText",
9472 SortId = 10,
9473 Template = RenderDesktopToolsTextCustom()
9474 },
9475 new Block {
9476 Id = "MasterDesktopToolsNavigation",
9477 SortId = 20,
9478 Template = RenderDesktopToolsNavigationCustom()
9479 }
9480 }
9481 };
9482 headerBlocksPage.ReplaceBlock(masterToolsCustom);
9483 }
9484 }
9485
9486 @helper RenderDesktopToolsCustom()
9487 {
9488 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopTools").OrderBy(item => item.SortId).ToList();
9489
9490 if (subBlocks.Count > 0)
9491 {
9492 <div class="m">@RenderBlockList(subBlocks)</div>
9493 }
9494 }
9495
9496 @helper RenderDesktopToolsTextCustom()
9497 {
9498 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9499
9500 if (areaInfo.ToolsText.HasValue())
9501 {
9502 <div class="nav--tertiary m1">
9503 <span><i class="@areaInfo.PhoneIcon"></i> @areaInfo.ContactNumber</span>
9504 <span><i class="@areaInfo.EmailIcon"></i> @areaInfo.ContactEmail</span>
9505 </div>
9506 }
9507 }
9508
9509 @helper RenderDesktopToolsNavigationCustom()
9510 {
9511 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9512
9513 @* if (areaInfo.RenderPagesInToolBar)
9514 { *@
9515 <div class="nav--secondary m2">
9516 @* @RenderNavigation(new
9517 {
9518 id = "topToolsNavigation",
9519 template = "TopMenu.xslt"
9520 }) *@
9521 Urmareste comanda
9522 @RenderLanguageSelectorCustom()
9523 </div>
9524 @* } *@
9525 }
9526
9527 @helper RenderLanguageSelectorCustom()
9528 {
9529 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9530
9531 if (Model.Languages.Count > 1)
9532 {
9533
9534 <div>
9535 <i class="@areaInfo.LanguageIcon"></i>
9536 </div>
9537 <div>
9538 @foreach (var lang in Model.Languages)
9539 {
9540 string langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + "\"></span>" + lang.Name;
9541 string cultureName = Regex.Replace(Dynamicweb.Services.Areas.GetArea(lang.ID).CultureInfo.NativeName, @" ?\(.*?\)", string.Empty);
9542 cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1);
9543
9544 if (areaInfo.LanguageViewType == "flag-culture")
9545 {
9546 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span> " + cultureName;
9547 }
9548
9549 if (areaInfo.LanguageViewType == "flag")
9550 {
9551 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span>";
9552 }
9553
9554 if (areaInfo.LanguageViewType == "name")
9555 {
9556 langInfo = lang.Name;
9557 }
9558
9559 if (areaInfo.LanguageViewType == "culture")
9560 {
9561 langInfo = cultureName;
9562 }
9563
9564 <div>
9565 <a href="@areaInfo.LinkStart@Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID">@langInfo</a>
9566 </div>
9567 }
9568 </div>
9569 }
9570 }
9571 </text>
9572 }
9573
9574
9575 @functions {
9576 public class ManifestIcon
9577 {
9578 public string
9579 src,
9580 type,
9581 sizes;
9582 }
9583
9584 public class Manifest
9585 {
9586 public string
9587 name,
9588 short_name,
9589 start_url,
9590 display,
9591 background_color,
9592 theme_color;
9593 public List<ManifestIcon> icons;
9594 }
9595 }
9596
9597 @{
9598 if (areaInfo.AppName != null && areaInfo.AppIcon != null) {
9599 Manifest manifest = new Manifest
9600 {
9601 name = areaInfo.AppName,
9602 short_name = areaInfo.AppShortName != null ? areaInfo.AppShortName : areaInfo.AppName,
9603 start_url = "/",
9604 display = "standalone",
9605 background_color = areaInfo.AppBackgroundColor,
9606 theme_color = areaInfo.AppThemeColor
9607 };
9608
9609 manifest.icons = new List<ManifestIcon> {
9610 new ManifestIcon {
9611 src = "/Admin/Public/GetImage.ashx?width=192&height=192&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
9612 sizes = "192x192",
9613 type = "image/png"
9614 },
9615 new ManifestIcon {
9616 src = "/Admin/Public/GetImage.ashx?width=512&height=512&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
9617 sizes = "512x512",
9618 type = "image/png"
9619 },
9620 new ManifestIcon {
9621 src = "/Admin/Public/GetImage.ashx?width=1024&height=1024&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded,
9622 sizes = "1024x1024",
9623 type = "image/png"
9624 }
9625 };
9626
9627 string manifestFilePath = HttpContext.Current.Request.MapPath("/Files/Templates/Designs/"+DesignFolder+"/manifest.json");
9628 string manifestJSON = Newtonsoft.Json.JsonConvert.SerializeObject(manifest);
9629 string currentManifest = File.ReadAllText(manifestFilePath);
9630
9631 if (manifestJSON != currentManifest)
9632 {
9633 File.WriteAllText(manifestFilePath, manifestJSON);
9634 }
9635 }
9636 }
9637
9638
9639 @{
9640 var swatches = new Dynamicweb.Content.Items.ColorSwatchService();
9641 var brandColors = swatches.GetColorSwatch(1);
9642 string brandColorOne = brandColors.Palette["BrandColor1"];
9643 string currentLang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
9644 bool isNavigationStickyMenu = Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet" && Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("StickyTop");
9645 string stickyTop = isNavigationStickyMenu ? "header--sticky" : "";
9646 string generalB2B = isB2B ? "general--b2c" : "";
9647 }
9648
9649 <!DOCTYPE html>
9650
9651 <html lang="@currentLang">
9652 <head>
9653 @{
9654 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false;
9655 if (!debugSpeedTest)
9656 {
9657 <!-- Global site tag (gtag.js) - Google Analytics -->
9658 <script defer src="https://www.googletagmanager.com/gtag/js?id=UA-162570117-1"></script>
9659 <script>
9660 window.dataLayer = window.dataLayer || [];
9661 function gtag(){dataLayer.push(arguments);}
9662 gtag('js', new Date());
9663 gtag('config', 'UA-162570117-1');
9664 </script>
9665 }
9666 }
9667
9668
9669 <!-- Rapido version 3.1.1 -->
9670 <meta charset="utf-8"/>
9671 <title>@areaInfo.AreaTitle</title>
9672 <meta name="viewport" content="width=device-width, initial-scale=1.0">
9673 <meta name="robots" content="index, follow">
9674 <meta name="theme-color" content="@areaInfo.AppThemeColor"/>
9675 <meta name="p:domain_verify" content="8bd426b25628ced333803e24b51c0fbb"/>
9676 <meta name="facebook-domain-verification" content="9jl54wm9h8awx6j6mn3oulemooi7q6" />
9677 @RenderSnippet("Head")
9678 @Model.MetaTags
9679
9680
9681 <!-- Favicon -->
9682 <link href="@areaInfo.LogoFavicon" rel="icon" type="image/png">
9683
9684 @* <link relnpm="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"> *@
9685
9686 @* Libraries *@
9687 <!-- Google fonts -->
9688 @{
9689 var family = string.Join("%7C", fonts.Where(x => !string.IsNullOrEmpty(x)).Distinct().Select(x => string.Format("{0}:100,200,300,400,500,600,700,800,900", x)));
9690 }
9691 @*<link href="https://fonts.googleapis.com/css?family=@family" rel="stylesheet">*@
9692 @* Mendola Specific *@
9693 <link rel="preconnect" href="https://fonts.gstatic.com">
9694 <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&family=Raleway:wght@300;400;600&display=swap" rel="stylesheet">
9695 @* <link rel="stylesheet" rel="preload" href="https://use.typekit.net/mki7ofu.css" as="style"> *@
9696 @* <link rel="stylesheet" id="variablesCss" href="@autoCssLink" type="text/css"> *@
9697
9698
9699 @* <link rel="stylesheet" href="@wizarisCssLink" type="text/css"> *@
9700 <link rel="stylesheet" type="text/css" href="@cssMapPath?@cssStyleFileInfo.LastWriteTime.Ticks">
9701 @* <link rel="stylesheet" type="text/css" href="@ApplicationDeferCssLink"> *@
9702 <script type="module" src="https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js" defer></script>
9703
9704
9705 @* <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"> *@
9706 @* <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drift-zoom/1.4.0/drift-basic.min.css"/> *@
9707 @* <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tippy.js@6.2.5/animations/shift-away-subtle.min.css"> *@
9708
9709
9710 @if (areaInfo.AppName.HasValue())
9711 {
9712 <link rel="manifest" href="/Files/Templates/Designs/@DesignFolder/manifest.json">
9713 PushPromise("/Files/Templates/Designs/@DesignFolder/manifest.json");
9714 }
9715 @if (!debugSpeedTest)
9716 {
9717 <script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=5fae4d211a075b00196b7840&product=custom-share-buttons' async></script>
9718 }
9719 </head>
9720
9721 <body class="@stickyTop @generalB2B" @areaInfo.PageBackground>
9722 @* The @RenderBlockList base helper is included in Components/GridBuilder.cshtml *@
9723 @RenderBlockList(masterPage.BlocksRoot.BlocksList)
9724
9725 @*@helper RenderMasterTop()
9726 {
9727 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9728 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeaderTop").OrderBy(item => item.SortId).ToList();
9729
9730 <div class="@areaInfo.CenterContainer">
9731 @RenderBlockList(subBlocks)
9732 </div>
9733 } *@
9734 @helper RenderMasterHeader()
9735 {
9736 var areaInfo = Df.Dw.Rapido.AreaInfo.Current();
9737 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeader").OrderBy(item => item.SortId).ToList();
9738
9739 <header class="header fixed bg-light">
9740 @RenderBlockList(subBlocks)
9741 </header>
9742 }
9743
9744 @helper RenderMain()
9745 {
9746 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMain").OrderBy(item => item.SortId).ToList();
9747
9748 @RenderBlockList(subBlocks)
9749 }
9750
9751 @helper RenderPageContent()
9752 {
9753 <text>@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
9754
9755
9756
9757 @* Render the grid *@
9758 @Model.Grid("Grid", "Grid", "default:true;sort:1", "Pages")
9759 </text>
9760 }
9761 @RenderSnippet("BottomJS")
9762
9763 @{
9764 bool editParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["edit"]) ? true : false;
9765 bool debugParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["jsdebug"]) ? true : false;
9766 }
9767
9768 @* Toggle Container, Toggle Layout *@
9769 @if (editParameter)
9770 {
9771 <div id="config">
9772 <button type="button" id="toggleContainer">Toggle Container</button>
9773 <button type="button" id="toggleLayout">Toggle Layout</button>
9774 </div>
9775 <script>
9776 let headerIndex = 0;
9777 const headerClasses = ["header vars container m--LSC--M style-1--1","header vars container m-L-SC--M style-2--1", "header vars container LmSC--M style-3--1", "header vars container LMSC style-4--1", "header vars container L-M-SC style-5--1", "header vars container LSC--M style-6--1", "header vars container SC--LM style-7--1", "header vars container M-L-SC style-8--1"];
9778
9779 document.getElementById("toggleLayout").addEventListener("click",e=>{
9780 e.preventDefault();
9781 if (headerIndex + 1 > headerClasses.length-1) {
9782 headerIndex = 0;
9783 } else {
9784 headerIndex++;
9785 }
9786 console.log(document.querySelector(".header").classList);
9787 document.querySelector(".header").classList.value = headerClasses[headerIndex];
9788 })
9789
9790 document.getElementById("toggleContainer").addEventListener("click",e=>{
9791 e.preventDefault();
9792 if(document.querySelectorAll(".header.container").length===0) {
9793 [...document.querySelectorAll(".header")].forEach(element => {
9794 element.classList.add("container")
9795 });
9796 [...document.querySelectorAll(".footer")].forEach(element => {
9797 element.classList.add("container")
9798 });
9799 [...document.querySelectorAll(".page")].forEach(element => {
9800 element.classList.add("container")
9801 });
9802 } else {
9803 [...document.querySelectorAll(".header")].forEach(element => {
9804 element.classList.remove("container")
9805 });
9806 [...document.querySelectorAll(".footer")].forEach(element => {
9807 element.classList.remove("container")
9808 });
9809 [...document.querySelectorAll(".page")].forEach(element => {
9810 element.classList.remove("container")
9811 });
9812 }
9813 });
9814 [...document.querySelectorAll(".switcher")].forEach(el=>{
9815 el.addEventListener("click", ()=> {
9816 let className = el.name + "--" +el.value;
9817 let target = el.closest(".header");
9818 let filtered = [...el.closest(".header").classList].filter(v=> !v.includes(el.name));
9819 target.classList = filtered.join(" ");
9820 target.classList.add(className);
9821 });
9822 });
9823
9824 </script>
9825 }
9826 @if (debugParameter)
9827 {
9828 <script>
9829 document.addEventListener("optionChanged", e=>{console.log(e.type,e)});
9830 document.addEventListener("filtersChanged", e=>{console.log(e.type,e.detail.url)})
9831 </script>
9832 }
9833
9834
9835
9836
9837 <script type="module" src="https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js" defer></script>
9838 @* TODO: Florin: mutate callurile de axios in fisier JS *@
9839 <script src="https://cdn.jsdelivr.net/npm/noty@3.1.4/lib/noty.min.js" defer></script>
9840 <script src="https://cdn.jsdelivr.net/npm/handlebars@4.7.6/dist/handlebars.min.js" defer></script>
9841 <script src="https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js" defer></script>
9842 <script src="https://cdn.jsdelivr.net/npm/flatpickr" defer></script>
9843 <script src="https://cdn.jsdelivr.net/npm/js-image-zoom/js-image-zoom.min.js" defer></script>
9844 <script src="https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js" defer></script>
9845 @* <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/popper.min.js" defer></script> *@
9846 @* <script src="https://unpkg.com/tippy.js@6" defer></script> *@
9847
9848 @if (currentLang == "en")
9849 {
9850 <script src="/Files/Templates/Designs/@DesignFolder/js/translations/translations_23.js" defer ></script>
9851 }
9852 else
9853 {
9854 <script src="/Files/Templates/Designs/@DesignFolder/js/translations/translations_21.js" defer></script>
9855 }
9856
9857 @if (!string.IsNullOrEmpty(googleAPIKey))
9858 {
9859 <script src="https://maps.googleapis.com/maps/api/js?key=@googleAPIKey&libraries=places&language=@currentLang" async defer></script>
9860
9861 }
9862 @* <script type="module" src="/Files/Templates/Designs/@DesignFolder/js/app.js"></script> *@
9863 @{
9864 string jsMapPath = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.js";
9865 var jsFileInfo = new System.IO.FileInfo(Dynamicweb.Core.SystemInformation.MapPath(jsMapPath));
9866 }
9867
9868 <script src="@jsMapPath?@jsFileInfo.LastWriteTime.Ticks" defer></script>
9869
9870
9871 <script>
9872
9873
9874 window.googleEnchantImpressionClick = function (googleImpression) {
9875 if (typeof dataLayer !== 'undefined') {
9876 dataLayer.push({
9877 'event': 'productClick',
9878 'ecommerce': {
9879 'click': {
9880 'actionField': {
9881 'list': googleImpression.list
9882 },
9883 // Optional list property.
9884 'products': [{
9885 'name': googleImpression.name,
9886 // Name or ID is required.
9887 'id': googleImpression.id,
9888 'price': googleImpression.price,
9889 'brand': googleImpression.brand,
9890 'category': googleImpression.category,
9891 'variant': googleImpression.variant,
9892 'position': googleImpression.position
9893 }]
9894 }
9895 },
9896 'eventCallback': function ()
9897 {
9898 console.log('callback from googleImpression' , googleImpression)
9899 // document.location = googleImpression.url;
9900 }
9901 });
9902 }
9903 };
9904 </script>
9905 <style>
9906 .block-structure ul{
9907
9908 padding-left: 4rem;
9909
9910 }
9911 </style>
9912 @*<button type="button" onclick='(e) => document.querySelector(".block-structure").classList.toggle("hidden")'></button>*@
9913 <div class="section__container container">
9914 <div class="section__content">
9915 <div class="block-structure hidden">@masterPage.GetBlocksStructure()</div>
9916 </div>
9917 </div>
9918
9919
9920
9921
9922 <div class="hidden"><button type="button" data-role="confirm" data-content="Doresti sa golesti cosul ?" data-approve-label="Confirma" data-reject-label="Anuleaza">Sterge cosul</button></div>
9923 <button type="button" dev-role="switch-header" class="btn-icon hidden" style="--button-line-height: 2rem"><div class="ico icon-xs"><svg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'><path d='M368,112H144C64.6,112,0,176.6,0,256S64.6,400,144,400H368c79.4,0,144-64.6,144-144S447.4,112,368,112Zm0,256A112,112,0,1,1,480,256,112.12,112.12,0,0,1,368,368Z'/></svg></div></button>
9924
9925 </body>
9926 </html>
9927
9928