Error compiling template "Designs/Wizaris/_parsed/DynamicArticle.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 28167: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28167: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28174: '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 28190: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28190: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28191: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28191: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28192: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28192: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28194: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28194: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28207: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28207: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28208: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28208: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28209: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28209: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28211: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28211: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28214: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28214: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28273: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 28273: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 28423: '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 28432: '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 28456: '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 28467: '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 28478: '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 28490: '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 28504: '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 28622: The name 'Df' does not exist in the current context
Line 28624: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 29282: The name 'Df' does not exist in the current context
Line 29284: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 30161: The name 'Df' does not exist in the current context
Line 30163: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 30950: The name 'Df' does not exist in the current context
Line 30952: 'User.GetCurrentExtranetUser()' is obsolete: 'Use GetCurrentFrontendUser() instead.'
Line 30953: '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 30954: '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 9452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 9402 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 3436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 9453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32 using System.Web; 33 34 #line default 35 #line hidden 36 37 #line 3857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 44 using Dynamicweb.Frontend.Devices; 45 46 #line default 47 #line hidden 48 49 #line 9761 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 62 using Dynamicweb.Security; 63 64 #line default 65 #line hidden 66 67 #line 9762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 68 using Dynamicweb.Core; 69 70 #line default 71 #line hidden 72 73 #line 1611 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 74 using System.IO; 75 76 #line default 77 #line hidden 78 79 #line 9766 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 86 using System.Net; 87 88 #line default 89 #line hidden 90 91 #line 9768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 98 using Dynamicweb.Security.UserManagement; 99 100 #line default 101 #line hidden 102 103 #line 4705 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 104 using System.Text.RegularExpressions; 105 106 #line default 107 #line hidden 108 109 #line 4608 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 110 using System.Reflection; 111 112 #line default 113 #line hidden 114 115 #line 3525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 122 using Dynamicweb.News; 123 124 #line default 125 #line hidden 126 127 #line 9763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 128 using Dynamicweb.Rapido.Blocks.Components; 129 130 #line default 131 #line hidden 132 133 #line 9764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 134 using Dynamicweb.Rapido.Blocks.Components.Articles; 135 136 #line default 137 #line hidden 138 139 #line 1458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 140 using Dynamicweb.Rapido.Blocks.Components.Documentation; 141 142 #line default 143 #line hidden 144 145 #line 9765 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 146 using Dynamicweb.Rapido.Blocks.Components.General; 147 148 #line default 149 #line hidden 150 151 #line 9767 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 152 using Dynamicweb.Content.Items; 153 154 #line default 155 #line hidden 156 157 #line 9455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 158 using Dynamicweb.Rapido.Blocks.Extensibility; 159 160 #line default 161 #line hidden 162 163 #line 5146 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 170 using Dynamicweb.Frontend.Navigation; 171 172 #line default 173 #line hidden 174 175 #line 8415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 176 using Df.Dw.Rapido; 177 178 #line default 179 #line hidden 180 181 #line 9086 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 182 using Dynamicweb.Ecommerce.Common; 183 184 #line default 185 #line hidden 186 187 188 public class RazorEngine_21b8d87715e34960a0070f1a0420aa1c : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 189 190 #line hidden 191 192 #line 22 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 925 } 926 #line default 927 #line hidden 928 929 930 #line 665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 977 } 978 #line default 979 #line hidden 980 981 982 #line 1464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1465 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1014 } 1015 1016 if (item.Design == null) 1017 { 1018 1019 1020 #line default 1021 #line hidden 1022 1023 #line 1477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1024 WriteTo(__razor_helper_writer, RenderBlock(item)); 1025 1026 1027 #line default 1028 #line hidden 1029 1030 #line 1477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 93291), Tuple.Create("\"", 93315) 1043 1044 #line 1482 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1045 , Tuple.Create(Tuple.Create("", 93299), Tuple.Create<System.Object, System.Int32>(cssClass 1046 1047 #line default 1048 #line hidden 1049 , 93299), false) 1050 , Tuple.Create(Tuple.Create(" ", 93308), Tuple.Create("dw-mod", 93309), true) 1051 ); 1052 1053 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1054 1055 WriteLiteralTo(__razor_helper_writer, " "); 1056 1057 1058 #line 1483 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 93701), Tuple.Create("\"", 93756) 1083 , Tuple.Create(Tuple.Create("", 93709), Tuple.Create("grid", 93709), true) 1084 , Tuple.Create(Tuple.Create(" ", 93713), Tuple.Create("grid--align-content-start", 93714), true) 1085 1086 #line 1493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1087 , Tuple.Create(Tuple.Create(" ", 93739), Tuple.Create<System.Object, System.Int32>(cssClass 1088 1089 #line default 1090 #line hidden 1091 , 93740), false) 1092 , Tuple.Create(Tuple.Create(" ", 93749), Tuple.Create("dw-mod", 93750), true) 1093 ); 1094 1095 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 93757), Tuple.Create("\"", 93777) 1096 , Tuple.Create(Tuple.Create("", 93762), Tuple.Create("Block__", 93762), true) 1097 1098 #line 1493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1099 , Tuple.Create(Tuple.Create("", 93769), Tuple.Create<System.Object, System.Int32>(item.Id 1100 1101 #line default 1102 #line hidden 1103 , 93769), false) 1104 ); 1105 1106 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1107 1108 WriteLiteralTo(__razor_helper_writer, " "); 1109 1110 1111 #line 1494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 94237), Tuple.Create("\"", 94359) 1136 , Tuple.Create(Tuple.Create("", 94245), Tuple.Create("col-", 94245), true) 1137 1138 #line 1504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1139 , Tuple.Create(Tuple.Create("", 94249), Tuple.Create<System.Object, System.Int32>(item.Design.Size 1140 1141 #line default 1142 #line hidden 1143 , 94249), false) 1144 , Tuple.Create(Tuple.Create(" ", 94266), Tuple.Create("grid__col-md-", 94267), true) 1145 1146 #line 1504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1147 , Tuple.Create(Tuple.Create("", 94280), Tuple.Create<System.Object, System.Int32>(item.Design.Size 1148 1149 #line default 1150 #line hidden 1151 , 94280), false) 1152 , Tuple.Create(Tuple.Create(" ", 94297), Tuple.Create("grid__col-sm-12", 94298), true) 1153 , Tuple.Create(Tuple.Create(" ", 94313), Tuple.Create("grid__col-xs-12", 94314), true) 1154 1155 #line 1504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1156 , Tuple.Create(Tuple.Create(" ", 94329), Tuple.Create<System.Object, System.Int32>(hidePadding 1157 1158 #line default 1159 #line hidden 1160 , 94330), false) 1161 1162 #line 1504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1163 , Tuple.Create(Tuple.Create(" ", 94342), Tuple.Create<System.Object, System.Int32>(cssClass 1164 1165 #line default 1166 #line hidden 1167 , 94343), false) 1168 , Tuple.Create(Tuple.Create(" ", 94352), Tuple.Create("dw-mod", 94353), true) 1169 ); 1170 1171 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 94360), Tuple.Create("\"", 94380) 1172 , Tuple.Create(Tuple.Create("", 94365), Tuple.Create("Block__", 94365), true) 1173 1174 #line 1504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1175 , Tuple.Create(Tuple.Create("", 94372), Tuple.Create<System.Object, System.Int32>(item.Id 1176 1177 #line default 1178 #line hidden 1179 , 94372), false) 1180 ); 1181 1182 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1183 1184 WriteLiteralTo(__razor_helper_writer, " "); 1185 1186 1187 #line 1505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 94587), Tuple.Create("\"", 94617) 1208 , Tuple.Create(Tuple.Create("", 94595), Tuple.Create("table", 94595), true) 1209 1210 #line 1511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1211 , Tuple.Create(Tuple.Create(" ", 94600), Tuple.Create<System.Object, System.Int32>(cssClass 1212 1213 #line default 1214 #line hidden 1215 , 94601), false) 1216 , Tuple.Create(Tuple.Create(" ", 94610), Tuple.Create("dw-mod", 94611), true) 1217 ); 1218 1219 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 94618), Tuple.Create("\"", 94638) 1220 , Tuple.Create(Tuple.Create("", 94623), Tuple.Create("Block__", 94623), true) 1221 1222 #line 1511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1223 , Tuple.Create(Tuple.Create("", 94630), Tuple.Create<System.Object, System.Int32>(item.Id 1224 1225 #line default 1226 #line hidden 1227 , 94630), false) 1228 ); 1229 1230 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1231 1232 WriteLiteralTo(__razor_helper_writer, " "); 1233 1234 1235 #line 1512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 94847), Tuple.Create("\"", 94871) 1256 1257 #line 1518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1258 , Tuple.Create(Tuple.Create("", 94855), Tuple.Create<System.Object, System.Int32>(cssClass 1259 1260 #line default 1261 #line hidden 1262 , 94855), false) 1263 , Tuple.Create(Tuple.Create(" ", 94864), Tuple.Create("dw-mod", 94865), true) 1264 ); 1265 1266 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 94872), Tuple.Create("\"", 94892) 1267 , Tuple.Create(Tuple.Create("", 94877), Tuple.Create("Block__", 94877), true) 1268 1269 #line 1518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1270 , Tuple.Create(Tuple.Create("", 94884), Tuple.Create<System.Object, System.Int32>(item.Id 1271 1272 #line default 1273 #line hidden 1274 , 94884), false) 1275 ); 1276 1277 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1278 1279 WriteLiteralTo(__razor_helper_writer, " "); 1280 1281 1282 #line 1519 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 95101), Tuple.Create("\"", 95125) 1303 1304 #line 1525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1305 , Tuple.Create(Tuple.Create("", 95109), Tuple.Create<System.Object, System.Int32>(cssClass 1306 1307 #line default 1308 #line hidden 1309 , 95109), false) 1310 , Tuple.Create(Tuple.Create(" ", 95118), Tuple.Create("dw-mod", 95119), true) 1311 ); 1312 1313 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 95126), Tuple.Create("\"", 95146) 1314 , Tuple.Create(Tuple.Create("", 95131), Tuple.Create("Block__", 95131), true) 1315 1316 #line 1525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1317 , Tuple.Create(Tuple.Create("", 95138), Tuple.Create<System.Object, System.Int32>(item.Id 1318 1319 #line default 1320 #line hidden 1321 , 95138), false) 1322 ); 1323 1324 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1325 1326 WriteLiteralTo(__razor_helper_writer, " "); 1327 1328 1329 #line 1526 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 95355), Tuple.Create("\"", 95391) 1350 , Tuple.Create(Tuple.Create("", 95363), Tuple.Create("card-header", 95363), true) 1351 1352 #line 1532 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1353 , Tuple.Create(Tuple.Create(" ", 95374), Tuple.Create<System.Object, System.Int32>(cssClass 1354 1355 #line default 1356 #line hidden 1357 , 95375), false) 1358 , Tuple.Create(Tuple.Create(" ", 95384), Tuple.Create("dw-mod", 95385), true) 1359 ); 1360 1361 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1362 1363 WriteLiteralTo(__razor_helper_writer, " "); 1364 1365 1366 #line 1533 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 95599), Tuple.Create("\"", 95628) 1387 , Tuple.Create(Tuple.Create("", 95607), Tuple.Create("card", 95607), true) 1388 1389 #line 1539 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1390 , Tuple.Create(Tuple.Create(" ", 95611), Tuple.Create<System.Object, System.Int32>(cssClass 1391 1392 #line default 1393 #line hidden 1394 , 95612), false) 1395 , Tuple.Create(Tuple.Create(" ", 95621), Tuple.Create("dw-mod", 95622), true) 1396 ); 1397 1398 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1399 1400 WriteLiteralTo(__razor_helper_writer, " "); 1401 1402 1403 #line 1540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 95838), Tuple.Create("\"", 95874) 1424 , Tuple.Create(Tuple.Create("", 95846), Tuple.Create("card-footer", 95846), true) 1425 1426 #line 1546 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1427 , Tuple.Create(Tuple.Create(" ", 95857), Tuple.Create<System.Object, System.Int32>(cssClass 1428 1429 #line default 1430 #line hidden 1431 , 95858), false) 1432 , Tuple.Create(Tuple.Create(" ", 95867), Tuple.Create("dw-mod", 95868), true) 1433 ); 1434 1435 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1436 1437 WriteLiteralTo(__razor_helper_writer, " "); 1438 1439 1440 #line 1547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1549 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1450 } 1451 } 1452 else 1453 { 1454 1455 1456 #line default 1457 #line hidden 1458 1459 #line 1553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1460 WriteTo(__razor_helper_writer, RenderBlock(item)); 1461 1462 1463 #line default 1464 #line hidden 1465 1466 #line 1553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1558 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1559 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1489 } 1490 } 1491 1492 1493 #line default 1494 #line hidden 1495 }); 1496 1497 #line 1561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1498 } 1499 #line default 1500 #line hidden 1501 1502 1503 #line 1563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1522 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template)); 1523 1524 1525 #line default 1526 #line hidden 1527 1528 #line 1569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1586 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1563 } 1564 1565 1566 #line default 1567 #line hidden 1568 1569 #line 1588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1570 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 1571 1572 1573 #line default 1574 #line hidden 1575 1576 #line 1588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1577 ; 1578 } catch { 1579 try { 1580 1581 1582 #line default 1583 #line hidden 1584 1585 #line 1591 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1586 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString()); 1587 1588 1589 #line default 1590 #line hidden 1591 1592 #line 1591 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1608 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList)); 1609 1610 1611 #line default 1612 #line hidden 1613 1614 #line 1600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1615 1616 } 1617 1618 1619 #line default 1620 #line hidden 1621 }); 1622 1623 #line 1602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1624 } 1625 #line default 1626 #line hidden 1627 1628 1629 #line 1619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1620 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1637 1638 if (component != null) 1639 { 1640 1641 1642 #line default 1643 #line hidden 1644 1645 #line 1623 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1646 WriteTo(__razor_helper_writer, component.Render(this)); 1647 1648 1649 #line default 1650 #line hidden 1651 1652 #line 1623 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1653 1654 } 1655 1656 1657 #line default 1658 #line hidden 1659 }); 1660 1661 #line 1625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1662 } 1663 #line default 1664 #line hidden 1665 1666 1667 #line 1634 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1635 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 98484), Tuple.Create("\"", 98542) 1691 1692 #line 1644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1693 , Tuple.Create(Tuple.Create("", 98492), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1694 1695 #line default 1696 #line hidden 1697 , 98492), false) 1698 1699 #line 1644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1700 , Tuple.Create(Tuple.Create(" ", 98508), Tuple.Create<System.Object, System.Int32>(settings.Name 1701 1702 #line default 1703 #line hidden 1704 , 98509), false) 1705 1706 #line 1644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1707 , Tuple.Create(Tuple.Create(" ", 98523), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1708 1709 #line default 1710 #line hidden 1711 , 98524), false) 1712 ); 1713 1714 WriteLiteralTo(__razor_helper_writer, " "); 1715 1716 1717 #line 1644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1645 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 98721), Tuple.Create("\"", 98781) 1739 , Tuple.Create(Tuple.Create("", 98729), Tuple.Create("u-flex", 98729), true) 1740 , Tuple.Create(Tuple.Create(" ", 98735), Tuple.Create("u-flex--align-items-center", 98736), true) 1741 1742 #line 1650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1743 , Tuple.Create(Tuple.Create(" ", 98762), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1744 1745 #line default 1746 #line hidden 1747 , 98763), false) 1748 ); 1749 1750 WriteLiteralTo(__razor_helper_writer, ">"); 1751 1752 1753 #line 1650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 98801), Tuple.Create("\"", 98854) 1762 1763 #line 1650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1764 , Tuple.Create(Tuple.Create("", 98809), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1765 1766 #line default 1767 #line hidden 1768 , 98809), false) 1769 1770 #line 1650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1771 , Tuple.Create(Tuple.Create(" ", 98825), Tuple.Create<System.Object, System.Int32>(settings.Name 1772 1773 #line default 1774 #line hidden 1775 , 98826), false) 1776 , Tuple.Create(Tuple.Create(" ", 98840), Tuple.Create("u-margin-left", 98841), true) 1777 ); 1778 1779 WriteLiteralTo(__razor_helper_writer, " "); 1780 1781 1782 #line 1650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 98959), Tuple.Create("\"", 99019) 1802 , Tuple.Create(Tuple.Create("", 98967), Tuple.Create("u-flex", 98967), true) 1803 , Tuple.Create(Tuple.Create(" ", 98973), Tuple.Create("u-flex--align-items-center", 98974), true) 1804 1805 #line 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1806 , Tuple.Create(Tuple.Create(" ", 99000), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1807 1808 #line default 1809 #line hidden 1810 , 99001), false) 1811 ); 1812 1813 WriteLiteralTo(__razor_helper_writer, "><i"); 1814 1815 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 99023), Tuple.Create("\"", 99089) 1816 1817 #line 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1818 , Tuple.Create(Tuple.Create("", 99031), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1819 1820 #line default 1821 #line hidden 1822 , 99031), false) 1823 1824 #line 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1825 , Tuple.Create(Tuple.Create(" ", 99047), Tuple.Create<System.Object, System.Int32>(settings.Name 1826 1827 #line default 1828 #line hidden 1829 , 99048), false) 1830 , Tuple.Create(Tuple.Create(" ", 99062), Tuple.Create("u-margin-right--lg", 99063), true) 1831 , Tuple.Create(Tuple.Create(" ", 99081), Tuple.Create("u-w20px", 99082), true) 1832 ); 1833 1834 WriteLiteralTo(__razor_helper_writer, " "); 1835 1836 1837 #line 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1655 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1856 } 1857 } 1858 } 1859 else if (!string.IsNullOrEmpty(settings.Label)) 1860 { 1861 1862 1863 #line default 1864 #line hidden 1865 1866 #line 1660 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1867 WriteTo(__razor_helper_writer, settings.Label); 1868 1869 1870 #line default 1871 #line hidden 1872 1873 #line 1660 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1874 1875 } 1876 } 1877 1878 1879 #line default 1880 #line hidden 1881 }); 1882 1883 #line 1663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1884 } 1885 #line default 1886 #line hidden 1887 1888 1889 #line 1671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1685 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1916 WriteTo(__razor_helper_writer, RenderConfirmDialog(settings)); 1917 1918 1919 #line default 1920 #line hidden 1921 1922 #line 1685 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 101909), Tuple.Create("\"", 101952) 1980 1981 #line 1735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 1982 , Tuple.Create(Tuple.Create("", 101917), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 1983 1984 #line default 1985 #line hidden 1986 , 101917), false) 1987 , Tuple.Create(Tuple.Create(" ", 101945), Tuple.Create("dw-mod", 101946), true) 1988 ); 1989 1990 WriteLiteralTo(__razor_helper_writer, " "); 1991 1992 1993 #line 1735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1736 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2021 } 2022 2023 2024 #line default 2025 #line hidden 2026 }); 2027 2028 #line 1737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2029 } 2030 #line default 2031 #line hidden 2032 2033 2034 #line 1739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1740 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1755 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2063 WriteTo(__razor_helper_writer, Render(confirmDialog)); 2064 2065 2066 #line default 2067 #line hidden 2068 2069 #line 1755 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2070 2071 2072 2073 #line default 2074 #line hidden 2075 }); 2076 2077 #line 1756 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2078 } 2079 #line default 2080 #line hidden 2081 2082 2083 #line 1761 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 103948), Tuple.Create("\"", 103991) 2123 , Tuple.Create(Tuple.Create("", 103956), Tuple.Create("dashboard", 103956), true) 2124 2125 #line 1787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2126 , Tuple.Create(Tuple.Create(" ", 103965), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2127 2128 #line default 2129 #line hidden 2130 , 103966), false) 2131 , Tuple.Create(Tuple.Create(" ", 103984), Tuple.Create("dw-mod", 103985), true) 2132 ); 2133 2134 WriteLiteralTo(__razor_helper_writer, " "); 2135 2136 2137 #line 1787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2147 2148 2149 #line default 2150 #line hidden 2151 2152 #line 1788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2178 } 2179 2180 2181 #line default 2182 #line hidden 2183 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2184 2185 2186 #line 1795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2187 2188 2189 #line default 2190 #line hidden 2191 }); 2192 2193 #line 1795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2194 } 2195 #line default 2196 #line hidden 2197 2198 2199 #line 1799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 104677), Tuple.Create("\"", 104698) 2223 2224 #line 1809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2225 , Tuple.Create(Tuple.Create("", 104684), Tuple.Create<System.Object, System.Int32>(settings.Link 2226 2227 #line default 2228 #line hidden 2229 , 104684), false) 2230 ); 2231 2232 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 104699), Tuple.Create("\"", 104752) 2233 , Tuple.Create(Tuple.Create("", 104707), Tuple.Create("widget", 104707), true) 2234 , Tuple.Create(Tuple.Create(" ", 104713), Tuple.Create("widget--link", 104714), true) 2235 2236 #line 1809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2237 , Tuple.Create(Tuple.Create(" ", 104726), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2238 2239 #line default 2240 #line hidden 2241 , 104727), false) 2242 , Tuple.Create(Tuple.Create(" ", 104745), Tuple.Create("dw-mod", 104746), true) 2243 ); 2244 2245 WriteLiteralTo(__razor_helper_writer, " "); 2246 2247 2248 #line 1809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2280 2281 2282 #line default 2283 #line hidden 2284 2285 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2295 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2296 2297 2298 #line default 2299 #line hidden 2300 2301 #line 1814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1819 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2325 } 2326 2327 2328 #line default 2329 #line hidden 2330 }); 2331 2332 #line 1820 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2333 } 2334 #line default 2335 #line hidden 2336 2337 2338 #line 1824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 105588), Tuple.Create("\"", 105628) 2360 , Tuple.Create(Tuple.Create("", 105596), Tuple.Create("widget", 105596), true) 2361 2362 #line 1832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2363 , Tuple.Create(Tuple.Create(" ", 105602), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2364 2365 #line default 2366 #line hidden 2367 , 105603), false) 2368 , Tuple.Create(Tuple.Create(" ", 105621), Tuple.Create("dw-mod", 105622), true) 2369 ); 2370 2371 WriteLiteralTo(__razor_helper_writer, " "); 2372 2373 2374 #line 1832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2397 2398 2399 #line default 2400 #line hidden 2401 2402 #line 1834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1837 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2412 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2413 2414 2415 #line default 2416 #line hidden 2417 2418 #line 1837 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2455 2456 2457 #line default 2458 #line hidden 2459 }); 2460 2461 #line 1843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2462 } 2463 #line default 2464 #line hidden 2465 2466 2467 #line 1851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 108593), Tuple.Create("\"", 108636) 2541 2542 #line 1911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2543 , Tuple.Create(Tuple.Create("", 108601), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 2544 2545 #line default 2546 #line hidden 2547 , 108601), false) 2548 , Tuple.Create(Tuple.Create(" ", 108629), Tuple.Create("dw-mod", 108630), true) 2549 ); 2550 2551 WriteLiteralTo(__razor_helper_writer, " "); 2552 2553 2554 #line 1911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2582 } 2583 2584 2585 #line default 2586 #line hidden 2587 }); 2588 2589 #line 1913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2590 } 2591 #line default 2592 #line hidden 2593 2594 2595 #line 1922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2636 2637 2638 #line default 2639 #line hidden 2640 2641 #line 1945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 109656), Tuple.Create("\"", 109703) 2651 2652 #line 1947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2653 , Tuple.Create(Tuple.Create("", 109664), Tuple.Create<System.Object, System.Int32>(rating > i ? "fas" : "far" 2654 2655 #line default 2656 #line hidden 2657 , 109664), false) 2658 2659 #line 1947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2660 , Tuple.Create(Tuple.Create(" ", 109693), Tuple.Create<System.Object, System.Int32>(iconType 2661 2662 #line default 2663 #line hidden 2664 , 109694), false) 2665 ); 2666 2667 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 2668 2669 2670 #line 1948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2671 } 2672 2673 2674 #line default 2675 #line hidden 2676 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2677 2678 2679 #line 1950 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2680 } 2681 2682 2683 #line default 2684 #line hidden 2685 }); 2686 2687 #line 1951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2688 } 2689 #line default 2690 #line hidden 2691 2692 2693 #line 1959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1968 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2743 2744 2745 #line default 2746 #line hidden 2747 }); 2748 2749 #line 1968 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2750 } 2751 #line default 2752 #line hidden 2753 2754 2755 #line 1976 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1976 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2762 2763 2764 2765 #line default 2766 #line hidden 2767 2768 #line 1977 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2785 2786 2787 2788 #line default 2789 #line hidden 2790 }); 2791 2792 #line 1987 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2793 } 2794 #line default 2795 #line hidden 2796 2797 2798 #line 1994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 1994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2002 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2819 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 2820 2821 2822 #line default 2823 #line hidden 2824 2825 #line 2002 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2826 2827 2828 2829 #line default 2830 #line hidden 2831 }); 2832 2833 #line 2003 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2834 } 2835 #line default 2836 #line hidden 2837 2838 2839 #line 2010 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2010 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2018 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2020 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2876 2877 2878 #line default 2879 #line hidden 2880 }); 2881 2882 #line 2020 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2883 } 2884 #line default 2885 #line hidden 2886 2887 2888 #line 2027 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2028 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2915 2916 if (!string.IsNullOrEmpty(settings.Link)) 2917 { 2918 2919 2920 #line default 2921 #line hidden 2922 2923 #line 2037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2946 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2947 2948 2949 #line default 2950 #line hidden 2951 2952 #line 2046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2953 2954 } 2955 2956 2957 #line default 2958 #line hidden 2959 2960 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2961 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 2962 2963 2964 #line default 2965 #line hidden 2966 2967 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2968 ; 2969 } 2970 2971 2972 #line default 2973 #line hidden 2974 }); 2975 2976 #line 2050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 2977 } 2978 #line default 2979 #line hidden 2980 2981 2982 #line 2058 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 114281), Tuple.Create("\"", 114362) 3020 , Tuple.Create(Tuple.Create("", 114289), Tuple.Create("image-filter", 114289), true) 3021 , Tuple.Create(Tuple.Create(" ", 114301), Tuple.Create("image-filter--", 114302), true) 3022 3023 #line 2073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3024 , Tuple.Create(Tuple.Create("", 114316), Tuple.Create<System.Object, System.Int32>(primaryFilterClass 3025 3026 #line default 3027 #line hidden 3028 , 114316), false) 3029 , Tuple.Create(Tuple.Create(" ", 114335), Tuple.Create("u-position-relative", 114336), true) 3030 , Tuple.Create(Tuple.Create(" ", 114355), Tuple.Create("dw-mod", 114356), true) 3031 ); 3032 3033 WriteLiteralTo(__razor_helper_writer, " "); 3034 3035 3036 #line 2073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 114434), Tuple.Create("\"", 114497) 3045 , Tuple.Create(Tuple.Create("", 114442), Tuple.Create("image-filter", 114442), true) 3046 , Tuple.Create(Tuple.Create(" ", 114454), Tuple.Create("image-filter--", 114455), true) 3047 3048 #line 2074 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3049 , Tuple.Create(Tuple.Create("", 114469), Tuple.Create<System.Object, System.Int32>(secondaryFilterClass 3050 3051 #line default 3052 #line hidden 3053 , 114469), false) 3054 , Tuple.Create(Tuple.Create(" ", 114490), Tuple.Create("dw-mod", 114491), true) 3055 ); 3056 3057 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3058 3059 3060 #line 2075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3061 3062 3063 #line default 3064 #line hidden 3065 3066 #line 2075 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 114587), Tuple.Create("\"", 114608) 3076 3077 #line 2077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3078 , Tuple.Create(Tuple.Create("", 114594), Tuple.Create<System.Object, System.Int32>(settings.Link 3079 3080 #line default 3081 #line hidden 3082 , 114594), false) 3083 ); 3084 3085 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3086 3087 WriteLiteralTo(__razor_helper_writer, " "); 3088 3089 3090 #line 2078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3100 } 3101 else 3102 { 3103 3104 3105 #line default 3106 #line hidden 3107 3108 #line 2083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3109 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3110 3111 3112 #line default 3113 #line hidden 3114 3115 #line 2083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2087 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2090 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2092 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 115192), Tuple.Create("\"", 115213) 3180 3181 #line 2102 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3182 , Tuple.Create(Tuple.Create("", 115199), Tuple.Create<System.Object, System.Int32>(settings.Link 3183 3184 #line default 3185 #line hidden 3186 , 115199), false) 3187 ); 3188 3189 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3190 3191 WriteLiteralTo(__razor_helper_writer, " "); 3192 3193 3194 #line 2103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3204 } 3205 else 3206 { 3207 3208 3209 #line default 3210 #line hidden 3211 3212 #line 2108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3213 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3214 3215 3216 #line default 3217 #line hidden 3218 3219 #line 2108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2115 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3250 } 3251 } 3252 3253 3254 #line default 3255 #line hidden 3256 }); 3257 3258 #line 2117 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3259 } 3260 #line default 3261 #line hidden 3262 3263 3264 #line 2119 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 120105), Tuple.Create("\"", 120122) 3395 3396 #line 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3397 , Tuple.Create(Tuple.Create("", 120110), Tuple.Create<System.Object, System.Int32>(settings.Id 3398 3399 #line default 3400 #line hidden 3401 , 120110), false) 3402 ); 3403 3404 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 120123), Tuple.Create("\"", 120168) 3405 3406 #line 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3407 , Tuple.Create(Tuple.Create("", 120131), Tuple.Create<System.Object, System.Int32>(imageStyle 3408 3409 #line default 3410 #line hidden 3411 , 120131), false) 3412 3413 #line 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3414 , Tuple.Create(Tuple.Create(" ", 120142), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3415 3416 #line default 3417 #line hidden 3418 , 120143), false) 3419 , Tuple.Create(Tuple.Create(" ", 120161), Tuple.Create("dw-mod", 120162), true) 3420 ); 3421 3422 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 120169), Tuple.Create("\"", 120188) 3423 3424 #line 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3425 , Tuple.Create(Tuple.Create("", 120175), Tuple.Create<System.Object, System.Int32>(defaultImage 3426 3427 #line default 3428 #line hidden 3429 , 120175), false) 3430 ); 3431 3432 WriteLiteralTo(__razor_helper_writer, " "); 3433 3434 3435 #line 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2237 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 120374), Tuple.Create("\"", 120391) 3464 3465 #line 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3466 , Tuple.Create(Tuple.Create("", 120379), Tuple.Create<System.Object, System.Int32>(settings.Id 3467 3468 #line default 3469 #line hidden 3470 , 120379), false) 3471 ); 3472 3473 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 120392), Tuple.Create("\"", 120446) 3474 , Tuple.Create(Tuple.Create("", 120400), Tuple.Create("lazyload", 120400), true) 3475 3476 #line 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3477 , Tuple.Create(Tuple.Create(" ", 120408), Tuple.Create<System.Object, System.Int32>(imageStyle 3478 3479 #line default 3480 #line hidden 3481 , 120409), false) 3482 3483 #line 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3484 , Tuple.Create(Tuple.Create(" ", 120420), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3485 3486 #line default 3487 #line hidden 3488 , 120421), false) 3489 , Tuple.Create(Tuple.Create(" ", 120439), Tuple.Create("dw-mod", 120440), true) 3490 ); 3491 3492 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 120447), Tuple.Create("\"", 120470) 3493 3494 #line 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3495 , Tuple.Create(Tuple.Create("", 120453), Tuple.Create<System.Object, System.Int32>(placeholderImage 3496 3497 #line default 3498 #line hidden 3499 , 120453), false) 3500 ); 3501 3502 WriteLiteralTo(__razor_helper_writer, " data-src=\""); 3503 3504 3505 #line 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3553 } 3554 } 3555 3556 3557 #line default 3558 #line hidden 3559 }); 3560 3561 #line 2243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3562 } 3563 #line default 3564 #line hidden 3565 3566 3567 #line 2250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 122455), Tuple.Create("\"", 122526) 3615 , Tuple.Create(Tuple.Create("", 122463), Tuple.Create("form__field-group", 122463), true) 3616 , Tuple.Create(Tuple.Create(" ", 122480), Tuple.Create("u-full-width", 122481), true) 3617 3618 #line 2284 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3619 , Tuple.Create(Tuple.Create(" ", 122493), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3620 3621 #line default 3622 #line hidden 3623 , 122494), false) 3624 , Tuple.Create(Tuple.Create(" ", 122519), Tuple.Create("dw-mod", 122520), true) 3625 ); 3626 3627 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3628 3629 3630 #line 2285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3631 3632 3633 #line default 3634 #line hidden 3635 3636 #line 2285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3651 3652 3653 #line default 3654 #line hidden 3655 3656 #line 2288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 122729), Tuple.Create("\"", 122747) 3664 3665 #line 2288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3666 , Tuple.Create(Tuple.Create("", 122735), Tuple.Create<System.Object, System.Int32>(settings.Id 3667 3668 #line default 3669 #line hidden 3670 , 122735), false) 3671 ); 3672 3673 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 3674 3675 WriteLiteralTo(__razor_helper_writer, ">"); 3676 3677 3678 #line 2288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3688 } 3689 3690 3691 #line default 3692 #line hidden 3693 WriteLiteralTo(__razor_helper_writer, " "); 3694 3695 3696 #line 2289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3710 3711 3712 #line default 3713 #line hidden 3714 3715 #line 2291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2292 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3735 } 3736 3737 3738 #line default 3739 #line hidden 3740 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3741 3742 3743 #line 2296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3744 3745 } 3746 3747 3748 #line default 3749 #line hidden 3750 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3751 3752 3753 #line 2299 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3754 3755 3756 #line default 3757 #line hidden 3758 3759 #line 2299 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2302 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2305 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2305 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2305 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 123558), Tuple.Create("\"", 123576) 3822 3823 #line 2306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3824 , Tuple.Create(Tuple.Create("", 123564), Tuple.Create<System.Object, System.Int32>(settings.Id 3825 3826 #line default 3827 #line hidden 3828 , 123564), 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 2306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 123680), Tuple.Create("\"", 123698) 3845 3846 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3847 , Tuple.Create(Tuple.Create("", 123686), Tuple.Create<System.Object, System.Int32>(settings.Id 3848 3849 #line default 3850 #line hidden 3851 , 123686), false) 3852 ); 3853 3854 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 123699), Tuple.Create("\"", 123769) 3855 3856 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3857 , Tuple.Create(Tuple.Create("", 123707), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3858 3859 #line default 3860 #line hidden 3861 , 123707), false) 3862 , Tuple.Create(Tuple.Create(" ", 123725), Tuple.Create("file-input__fake-input", 123726), true) 3863 , Tuple.Create(Tuple.Create(" ", 123748), Tuple.Create("js-fake-input", 123749), true) 3864 , Tuple.Create(Tuple.Create(" ", 123762), Tuple.Create("dw-mod", 123763), true) 3865 ); 3866 3867 WriteLiteralTo(__razor_helper_writer, ">"); 3868 3869 3870 #line 2307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3880 3881 3882 #line default 3883 #line hidden 3884 3885 #line 2308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3895 WriteTo(__razor_helper_writer, RenderButton(settings.UploadButton)); 3896 3897 3898 #line default 3899 #line hidden 3900 3901 #line 2311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3923 3924 3925 #line default 3926 #line hidden 3927 }); 3928 3929 #line 2316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3930 } 3931 #line default 3932 #line hidden 3933 3934 3935 #line 2325 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 3974 WriteTo(__razor_helper_writer, Render(textField)); 3975 3976 3977 #line default 3978 #line hidden 3979 3980 #line 2351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2387 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2391 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4043 4044 4045 #line default 4046 #line hidden 4047 }); 4048 4049 #line 2391 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4050 } 4051 #line default 4052 #line hidden 4053 4054 4055 #line 2398 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2399 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 128739), Tuple.Create("\"", 128820) 4107 , Tuple.Create(Tuple.Create("", 128747), Tuple.Create("form__field-group", 128747), true) 4108 , Tuple.Create(Tuple.Create(" ", 128764), Tuple.Create("u-full-width", 128765), true) 4109 4110 #line 2436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4111 , Tuple.Create(Tuple.Create(" ", 128777), Tuple.Create<System.Object, System.Int32>(noMargin 4112 4113 #line default 4114 #line hidden 4115 , 128778), false) 4116 4117 #line 2436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4118 , Tuple.Create(Tuple.Create(" ", 128787), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4119 4120 #line default 4121 #line hidden 4122 , 128788), false) 4123 , Tuple.Create(Tuple.Create(" ", 128813), Tuple.Create("dw-mod", 128814), true) 4124 ); 4125 4126 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4127 4128 4129 #line 2437 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4130 4131 4132 #line default 4133 #line hidden 4134 4135 #line 2437 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4150 4151 4152 #line default 4153 #line hidden 4154 4155 #line 2440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 129023), Tuple.Create("\"", 129041) 4163 4164 #line 2440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4165 , Tuple.Create(Tuple.Create("", 129029), Tuple.Create<System.Object, System.Int32>(settings.Id 4166 4167 #line default 4168 #line hidden 4169 , 129029), false) 4170 ); 4171 4172 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4173 4174 WriteLiteralTo(__razor_helper_writer, ">"); 4175 4176 4177 #line 2440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4187 } 4188 4189 4190 #line default 4191 #line hidden 4192 WriteLiteralTo(__razor_helper_writer, " "); 4193 4194 4195 #line 2441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2445 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2447 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4222 } 4223 4224 4225 #line default 4226 #line hidden 4227 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4228 4229 4230 #line 2449 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4231 4232 } 4233 4234 4235 #line default 4236 #line hidden 4237 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4238 4239 4240 #line 2452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4241 4242 4243 #line default 4244 #line hidden 4245 4246 #line 2452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4270 } 4271 4272 4273 #line default 4274 #line hidden 4275 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4276 4277 4278 #line 2457 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4279 4280 4281 #line default 4282 #line hidden 4283 4284 #line 2457 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4329 } 4330 else 4331 { 4332 4333 4334 #line default 4335 #line hidden 4336 WriteLiteralTo(__razor_helper_writer, " <input "); 4337 4338 4339 #line 2467 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2467 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4378 4379 4380 #line default 4381 #line hidden 4382 }); 4383 4384 #line 2472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4385 } 4386 #line default 4387 #line hidden 4388 4389 4390 #line 2479 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2480 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 132083), Tuple.Create("\"", 132154) 4433 , Tuple.Create(Tuple.Create("", 132091), Tuple.Create("form__field-group", 132091), true) 4434 , Tuple.Create(Tuple.Create(" ", 132108), Tuple.Create("u-full-width", 132109), true) 4435 4436 #line 2508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4437 , Tuple.Create(Tuple.Create(" ", 132121), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4438 4439 #line default 4440 #line hidden 4441 , 132122), false) 4442 , Tuple.Create(Tuple.Create(" ", 132147), Tuple.Create("dw-mod", 132148), true) 4443 ); 4444 4445 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4446 4447 4448 #line 2509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4449 4450 4451 #line default 4452 #line hidden 4453 4454 #line 2509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4469 4470 4471 #line default 4472 #line hidden 4473 4474 #line 2512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 132357), Tuple.Create("\"", 132375) 4482 4483 #line 2512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4484 , Tuple.Create(Tuple.Create("", 132363), Tuple.Create<System.Object, System.Int32>(settings.Id 4485 4486 #line default 4487 #line hidden 4488 , 132363), false) 4489 ); 4490 4491 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4492 4493 WriteLiteralTo(__razor_helper_writer, ">"); 4494 4495 4496 #line 2512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4506 } 4507 4508 4509 #line default 4510 #line hidden 4511 WriteLiteralTo(__razor_helper_writer, " "); 4512 4513 4514 #line 2513 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4528 4529 4530 #line default 4531 #line hidden 4532 4533 #line 2515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4553 } 4554 4555 4556 #line default 4557 #line hidden 4558 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4559 4560 4561 #line 2520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4562 4563 } 4564 4565 4566 #line default 4567 #line hidden 4568 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4569 4570 4571 #line 2523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4572 4573 4574 #line default 4575 #line hidden 4576 4577 #line 2523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2526 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4601 } 4602 4603 4604 #line default 4605 #line hidden 4606 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4607 4608 4609 #line 2528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4610 4611 4612 #line default 4613 #line hidden 4614 4615 #line 2528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2532 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2532 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2533 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2539 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2539 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4713 4714 4715 #line default 4716 #line hidden 4717 }); 4718 4719 #line 2545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4720 } 4721 #line default 4722 #line hidden 4723 4724 4725 #line 2553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 135347), Tuple.Create("\"", 135405) 4764 , Tuple.Create(Tuple.Create("", 135355), Tuple.Create("form__field-group", 135355), true) 4765 4766 #line 2578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4767 , Tuple.Create(Tuple.Create(" ", 135372), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4768 4769 #line default 4770 #line hidden 4771 , 135373), false) 4772 , Tuple.Create(Tuple.Create(" ", 135398), Tuple.Create("dw-mod", 135399), true) 4773 ); 4774 4775 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4776 4777 4778 #line 2579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4779 4780 4781 #line default 4782 #line hidden 4783 4784 #line 2579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4799 4800 4801 #line default 4802 #line hidden 4803 4804 #line 2582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 135608), Tuple.Create("\"", 135626) 4812 4813 #line 2582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4814 , Tuple.Create(Tuple.Create("", 135614), Tuple.Create<System.Object, System.Int32>(settings.Id 4815 4816 #line default 4817 #line hidden 4818 , 135614), false) 4819 ); 4820 4821 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4822 4823 WriteLiteralTo(__razor_helper_writer, ">"); 4824 4825 4826 #line 2582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4836 } 4837 4838 4839 #line default 4840 #line hidden 4841 WriteLiteralTo(__razor_helper_writer, " "); 4842 4843 4844 #line 2583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4858 4859 4860 #line default 4861 #line hidden 4862 4863 #line 2585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2586 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4883 } 4884 4885 4886 #line default 4887 #line hidden 4888 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 4889 4890 4891 #line 2590 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4892 } 4893 4894 4895 #line default 4896 #line hidden 4897 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4898 4899 4900 #line 2592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4901 4902 4903 #line default 4904 #line hidden 4905 4906 #line 2592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2594 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2595 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 136152), Tuple.Create("\"", 136198) 4938 , Tuple.Create(Tuple.Create("", 136160), Tuple.Create("u-full-width", 136160), true) 4939 4940 #line 2597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4941 , Tuple.Create(Tuple.Create(" ", 136172), Tuple.Create<System.Object, System.Int32>(settings.CssClass 4942 4943 #line default 4944 #line hidden 4945 , 136173), false) 4946 , Tuple.Create(Tuple.Create(" ", 136191), Tuple.Create("dw-mod", 136192), true) 4947 ); 4948 4949 WriteLiteralTo(__razor_helper_writer, " "); 4950 4951 4952 #line 2597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2601 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4991 4992 4993 #line default 4994 #line hidden 4995 }); 4996 4997 #line 2601 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 4998 } 4999 #line default 5000 #line hidden 5001 5002 5003 #line 2609 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2609 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2617 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5043 5044 5045 #line default 5046 #line hidden 5047 }); 5048 5049 #line 2617 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5050 } 5051 #line default 5052 #line hidden 5053 5054 5055 #line 2624 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2625 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 138594), Tuple.Create("\"", 138652) 5095 , Tuple.Create(Tuple.Create("", 138602), Tuple.Create("form__field-group", 138602), true) 5096 5097 #line 2650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5098 , Tuple.Create(Tuple.Create(" ", 138619), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5099 5100 #line default 5101 #line hidden 5102 , 138620), false) 5103 , Tuple.Create(Tuple.Create(" ", 138645), Tuple.Create("dw-mod", 138646), true) 5104 ); 5105 5106 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 5107 5108 5109 #line 2651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5128 5129 5130 #line default 5131 #line hidden 5132 5133 #line 2652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 138841), Tuple.Create("\"", 138859) 5143 5144 #line 2654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5145 , Tuple.Create(Tuple.Create("", 138847), Tuple.Create<System.Object, System.Int32>(settings.Id 5146 5147 #line default 5148 #line hidden 5149 , 138847), false) 5150 ); 5151 5152 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 5153 5154 WriteLiteralTo(__razor_helper_writer, ">"); 5155 5156 5157 #line 2654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2655 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5167 } 5168 5169 5170 #line default 5171 #line hidden 5172 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5173 5174 5175 #line 2657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5176 5177 5178 #line default 5179 #line hidden 5180 5181 #line 2657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2659 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5191 5192 5193 #line default 5194 #line hidden 5195 5196 #line 2659 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2660 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5216 } 5217 5218 5219 #line default 5220 #line hidden 5221 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5222 5223 5224 #line 2664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5225 5226 5227 #line default 5228 #line hidden 5229 5230 #line 2664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2666 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2667 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5254 } 5255 5256 5257 #line default 5258 #line hidden 5259 WriteLiteralTo(__razor_helper_writer, " "); 5260 5261 5262 #line 2668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2670 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5272 5273 5274 #line default 5275 #line hidden 5276 }); 5277 5278 #line 2670 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5279 } 5280 #line default 5281 #line hidden 5282 5283 5284 #line 2678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2679 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 139625), Tuple.Create("\"", 139699) 5300 , Tuple.Create(Tuple.Create("", 139633), Tuple.Create("form__field-group", 139633), true) 5301 5302 #line 2680 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5303 , Tuple.Create(Tuple.Create(" ", 139650), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5304 5305 #line default 5306 #line hidden 5307 , 139651), false) 5308 , Tuple.Create(Tuple.Create(" ", 139676), Tuple.Create("u-margin-bottom", 139677), true) 5309 , Tuple.Create(Tuple.Create(" ", 139692), Tuple.Create("dw-mod", 139693), true) 5310 ); 5311 5312 WriteLiteralTo(__razor_helper_writer, " "); 5313 5314 5315 #line 2680 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5325 5326 5327 #line default 5328 #line hidden 5329 5330 #line 2681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5345 5346 5347 #line default 5348 #line hidden 5349 5350 #line 2684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 139960), Tuple.Create("\"", 139978) 5358 5359 #line 2684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5360 , Tuple.Create(Tuple.Create("", 139966), Tuple.Create<System.Object, System.Int32>(settings.Id 5361 5362 #line default 5363 #line hidden 5364 , 139966), false) 5365 ); 5366 5367 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 5368 5369 WriteLiteralTo(__razor_helper_writer, ">"); 5370 5371 5372 #line 2684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5382 } 5383 5384 5385 #line default 5386 #line hidden 5387 WriteLiteralTo(__razor_helper_writer, " "); 5388 5389 5390 #line 2685 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5404 5405 5406 #line default 5407 #line hidden 5408 5409 #line 2687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5429 } 5430 5431 5432 #line default 5433 #line hidden 5434 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5435 5436 5437 #line 2692 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2696 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5452 5453 5454 #line default 5455 #line hidden 5456 5457 #line 2696 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2699 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5481 } 5482 5483 5484 #line default 5485 #line hidden 5486 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5487 5488 5489 #line 2701 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5490 5491 5492 #line default 5493 #line hidden 5494 5495 #line 2701 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2730 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5531 WriteTo(__razor_helper_writer, Render(item)); 5532 5533 5534 #line default 5535 #line hidden 5536 5537 #line 2730 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5559 5560 5561 #line default 5562 #line hidden 5563 }); 5564 5565 #line 2737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5566 } 5567 #line default 5568 #line hidden 5569 5570 5571 #line 2742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 144066), Tuple.Create("\"", 144144) 5639 , Tuple.Create(Tuple.Create("", 144074), Tuple.Create("search", 144074), true) 5640 5641 #line 2796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5642 , Tuple.Create(Tuple.Create(" ", 144080), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5643 5644 #line default 5645 #line hidden 5646 , 144081), false) 5647 5648 #line 2796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5649 , Tuple.Create(Tuple.Create(" ", 144099), Tuple.Create<System.Object, System.Int32>(searchFieldCss 5650 5651 #line default 5652 #line hidden 5653 , 144100), false) 5654 , Tuple.Create(Tuple.Create(" ", 144115), Tuple.Create("js-search-data-source", 144116), true) 5655 , Tuple.Create(Tuple.Create(" ", 144137), Tuple.Create("dw-mod", 144138), true) 5656 ); 5657 5658 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 144145), Tuple.Create("\"", 144162) 5659 5660 #line 2796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5661 , Tuple.Create(Tuple.Create("", 144150), Tuple.Create<System.Object, System.Int32>(settings.Id 5662 5663 #line default 5664 #line hidden 5665 , 144150), false) 5666 ); 5667 5668 WriteLiteralTo(__razor_helper_writer, " "); 5669 5670 5671 #line 2796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5681 5682 5683 #line default 5684 #line hidden 5685 5686 #line 2797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 144613), Tuple.Create("\"", 144648) 5731 5732 #line 2803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5733 , Tuple.Create(Tuple.Create("", 144627), Tuple.Create<System.Object, System.Int32>(settings.Placeholder 5734 5735 #line default 5736 #line hidden 5737 , 144627), false) 5738 ); 5739 5740 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 144649), Tuple.Create("\"", 144669) 5741 5742 #line 2803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5743 , Tuple.Create(Tuple.Create("", 144657), Tuple.Create<System.Object, System.Int32>(searchValue 5744 5745 #line default 5746 #line hidden 5747 , 144657), false) 5748 ); 5749 5750 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div"); 5751 5752 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 144695), Tuple.Create("\"", 144852) 5753 , Tuple.Create(Tuple.Create("", 144703), Tuple.Create("dropdown", 144703), true) 5754 , Tuple.Create(Tuple.Create(" ", 144711), Tuple.Create("dropdown--absolute-position", 144712), true) 5755 , Tuple.Create(Tuple.Create(" ", 144739), Tuple.Create("search__results", 144740), true) 5756 , Tuple.Create(Tuple.Create(" ", 144755), Tuple.Create("dw-mod", 144756), true) 5757 , Tuple.Create(Tuple.Create(" ", 144762), Tuple.Create("js-search-results", 144763), true) 5758 5759 #line 2805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5760 , Tuple.Create(Tuple.Create(" ", 144780), Tuple.Create<System.Object, System.Int32>(settings.SecondSearchData != null ? "search__results--combined" : "" 5761 5762 #line default 5763 #line hidden 5764 , 144781), false) 5765 ); 5766 5767 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5768 5769 5770 #line 2806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5771 5772 5773 #line default 5774 #line hidden 5775 5776 #line 2806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2809 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 145176), Tuple.Create("\"", 145207) 5805 5806 #line 2810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5807 , Tuple.Create(Tuple.Create("", 145181), Tuple.Create<System.Object, System.Int32>(settings.Id 5808 5809 #line default 5810 #line hidden 5811 , 145181), false) 5812 , Tuple.Create(Tuple.Create("", 145195), Tuple.Create("_ResultsList", 145195), true) 5813 ); 5814 5815 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5816 5817 5818 #line 2811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5819 5820 5821 #line default 5822 #line hidden 5823 5824 #line 2811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5825 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 5826 { 5827 5828 5829 #line default 5830 #line hidden 5831 5832 #line 2813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2817 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2821 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 145892), Tuple.Create("\"", 145929) 5874 5875 #line 2822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5876 , Tuple.Create(Tuple.Create("", 145897), Tuple.Create<System.Object, System.Int32>(settings.Id 5877 5878 #line default 5879 #line hidden 5880 , 145897), false) 5881 , Tuple.Create(Tuple.Create("", 145911), Tuple.Create("_SecondResultsList", 145911), true) 5882 ); 5883 5884 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5885 5886 5887 #line 2823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5888 5889 5890 #line default 5891 #line hidden 5892 5893 #line 2823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5894 if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 5895 { 5896 5897 5898 #line default 5899 #line hidden 5900 5901 #line 2825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5914 ; 5915 } 5916 5917 5918 #line default 5919 #line hidden 5920 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5921 5922 5923 #line 2833 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 146609), Tuple.Create("\"", 146640) 5940 5941 #line 2837 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5942 , Tuple.Create(Tuple.Create("", 146614), Tuple.Create<System.Object, System.Int32>(settings.Id 5943 5944 #line default 5945 #line hidden 5946 , 146614), false) 5947 , Tuple.Create(Tuple.Create("", 146628), Tuple.Create("_ResultsList", 146628), true) 5948 ); 5949 5950 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5951 5952 5953 #line 2838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5954 5955 5956 #line default 5957 #line hidden 5958 5959 #line 2838 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5960 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 5961 { 5962 5963 5964 #line default 5965 #line hidden 5966 5967 #line 2840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2844 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5979 ; 5980 } 5981 5982 5983 #line default 5984 #line hidden 5985 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5986 5987 5988 #line 2847 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2850 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 5998 5999 6000 #line default 6001 #line hidden 6002 6003 #line 2850 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6017 WriteTo(__razor_helper_writer, Render(settings.SearchButton)); 6018 6019 6020 #line default 6021 #line hidden 6022 6023 #line 2857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6024 ; 6025 } 6026 6027 6028 #line default 6029 #line hidden 6030 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6031 6032 6033 #line 2860 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6034 6035 6036 #line default 6037 #line hidden 6038 }); 6039 6040 #line 2860 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6041 } 6042 #line default 6043 #line hidden 6044 6045 6046 #line 2868 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2869 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 147916), Tuple.Create("\"", 147987) 6067 , Tuple.Create(Tuple.Create("", 147924), Tuple.Create("form__field-group", 147924), true) 6068 , Tuple.Create(Tuple.Create(" ", 147941), Tuple.Create("u-full-width", 147942), true) 6069 6070 #line 2875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6071 , Tuple.Create(Tuple.Create(" ", 147954), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6072 6073 #line default 6074 #line hidden 6075 , 147955), false) 6076 , Tuple.Create(Tuple.Create(" ", 147980), Tuple.Create("dw-mod", 147981), true) 6077 ); 6078 6079 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6080 6081 6082 #line 2876 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6083 6084 6085 #line default 6086 #line hidden 6087 6088 #line 2876 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6103 6104 6105 #line default 6106 #line hidden 6107 6108 #line 2879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 148190), Tuple.Create("\"", 148208) 6116 6117 #line 2879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6118 , Tuple.Create(Tuple.Create("", 148196), Tuple.Create<System.Object, System.Int32>(settings.Id 6119 6120 #line default 6121 #line hidden 6122 , 148196), false) 6123 ); 6124 6125 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 6126 6127 WriteLiteralTo(__razor_helper_writer, ">"); 6128 6129 6130 #line 2879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6140 } 6141 6142 6143 #line default 6144 #line hidden 6145 WriteLiteralTo(__razor_helper_writer, " "); 6146 6147 6148 #line 2880 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2882 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6162 6163 6164 #line default 6165 #line hidden 6166 6167 #line 2882 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2883 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2885 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6187 } 6188 6189 6190 #line default 6191 #line hidden 6192 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 6193 6194 6195 #line 2887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6196 } 6197 6198 6199 #line default 6200 #line hidden 6201 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6202 6203 6204 #line 2889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6205 6206 6207 #line default 6208 #line hidden 6209 6210 #line 2889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2891 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2892 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6234 } 6235 6236 6237 #line default 6238 #line hidden 6239 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6240 6241 6242 #line 2894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6243 6244 6245 #line default 6246 #line hidden 6247 6248 #line 2894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2898 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2901 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6286 } 6287 else 6288 { 6289 6290 6291 #line default 6292 #line hidden 6293 6294 #line 2904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6295 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 6296 6297 6298 #line default 6299 #line hidden 6300 6301 #line 2904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6323 6324 6325 #line default 6326 #line hidden 6327 }); 6328 6329 #line 2909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6330 } 6331 #line default 6332 #line hidden 6333 6334 6335 #line 2911 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6383 6384 6385 #line default 6386 #line hidden 6387 6388 #line 2927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6389 if (settings.Default != null) 6390 { 6391 6392 6393 #line default 6394 #line hidden 6395 6396 #line 2929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6397 WriteTo(__razor_helper_writer, Render(settings.Default)); 6398 6399 6400 #line default 6401 #line hidden 6402 6403 #line 2929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6404 6405 } 6406 6407 6408 #line default 6409 #line hidden 6410 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6411 6412 6413 #line 2932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6414 6415 6416 #line default 6417 #line hidden 6418 6419 #line 2932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6431 WriteTo(__razor_helper_writer, Render(item)); 6432 6433 6434 #line default 6435 #line hidden 6436 6437 #line 2937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6438 6439 } 6440 6441 6442 #line default 6443 #line hidden 6444 WriteLiteralTo(__razor_helper_writer, " </select>\r\n"); 6445 6446 6447 #line 2940 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6448 6449 6450 #line default 6451 #line hidden 6452 }); 6453 6454 #line 2940 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6455 } 6456 #line default 6457 #line hidden 6458 6459 6460 #line 2947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 151829), Tuple.Create("\"", 151887) 6498 , Tuple.Create(Tuple.Create("", 151837), Tuple.Create("form__field-group", 151837), true) 6499 6500 #line 2971 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6501 , Tuple.Create(Tuple.Create(" ", 151854), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6502 6503 #line default 6504 #line hidden 6505 , 151855), false) 6506 , Tuple.Create(Tuple.Create(" ", 151880), Tuple.Create("dw-mod", 151881), true) 6507 ); 6508 6509 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 6510 6511 6512 #line 2972 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2972 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6531 6532 6533 #line default 6534 #line hidden 6535 6536 #line 2973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 152076), Tuple.Create("\"", 152094) 6546 6547 #line 2975 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6548 , Tuple.Create(Tuple.Create("", 152082), Tuple.Create<System.Object, System.Int32>(settings.Id 6549 6550 #line default 6551 #line hidden 6552 , 152082), false) 6553 ); 6554 6555 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 6556 6557 WriteLiteralTo(__razor_helper_writer, ">"); 6558 6559 6560 #line 2975 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2976 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6570 } 6571 6572 6573 #line default 6574 #line hidden 6575 WriteLiteralTo(__razor_helper_writer, " "); 6576 6577 6578 #line 2977 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2980 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6602 } 6603 6604 6605 #line default 6606 #line hidden 6607 WriteLiteralTo(__razor_helper_writer, " "); 6608 6609 6610 #line 2981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6620 6621 6622 #line default 6623 #line hidden 6624 }); 6625 6626 #line 2983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6627 } 6628 #line default 6629 #line hidden 6630 6631 6632 #line 2991 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2992 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 152769), Tuple.Create("\"", 152843) 6650 , Tuple.Create(Tuple.Create("", 152777), Tuple.Create("form__field-group", 152777), true) 6651 6652 #line 2995 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6653 , Tuple.Create(Tuple.Create(" ", 152794), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6654 6655 #line default 6656 #line hidden 6657 , 152795), false) 6658 , Tuple.Create(Tuple.Create(" ", 152820), Tuple.Create("u-margin-bottom", 152821), true) 6659 , Tuple.Create(Tuple.Create(" ", 152836), Tuple.Create("dw-mod", 152837), true) 6660 ); 6661 6662 WriteLiteralTo(__razor_helper_writer, " "); 6663 6664 6665 #line 2995 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2996 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6675 6676 6677 #line default 6678 #line hidden 6679 6680 #line 2996 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2998 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 2999 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6700 } 6701 6702 6703 #line default 6704 #line hidden 6705 WriteLiteralTo(__razor_helper_writer, " "); 6706 6707 6708 #line 3000 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3002 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3003 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6732 } 6733 6734 6735 #line default 6736 #line hidden 6737 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6738 6739 6740 #line 3005 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6741 6742 6743 #line default 6744 #line hidden 6745 6746 #line 3005 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6783 WriteTo(__razor_helper_writer, Render(item)); 6784 6785 6786 #line default 6787 #line hidden 6788 6789 #line 3035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6811 6812 6813 #line default 6814 #line hidden 6815 }); 6816 6817 #line 3040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6818 } 6819 #line default 6820 #line hidden 6821 6822 6823 #line 3048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 155035), Tuple.Create("\"", 155198) 6848 , Tuple.Create(Tuple.Create("", 155043), Tuple.Create("notification-message-", 155043), true) 6849 6850 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6851 , Tuple.Create(Tuple.Create("", 155064), Tuple.Create<System.Object, System.Int32>(messageTypeClass 6852 6853 #line default 6854 #line hidden 6855 , 155064), false) 6856 , Tuple.Create(Tuple.Create(" ", 155081), Tuple.Create("notification-message-", 155082), true) 6857 6858 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6859 , Tuple.Create(Tuple.Create("", 155103), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 6860 6861 #line default 6862 #line hidden 6863 , 155103), false) 6864 6865 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6866 , Tuple.Create(Tuple.Create(" ", 155122), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 6867 6868 #line default 6869 #line hidden 6870 , 155123), false) 6871 6872 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6873 , Tuple.Create(Tuple.Create(" ", 155142), Tuple.Create<System.Object, System.Int32>(minHeightClass 6874 6875 #line default 6876 #line hidden 6877 , 155143), false) 6878 6879 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6880 , Tuple.Create(Tuple.Create(" ", 155158), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6881 6882 #line default 6883 #line hidden 6884 , 155159), false) 6885 , Tuple.Create(Tuple.Create(" ", 155177), Tuple.Create("u-full-width", 155178), true) 6886 , Tuple.Create(Tuple.Create(" ", 155190), Tuple.Create("dw-mod", 155192), true) 6887 ); 6888 6889 WriteLiteralTo(__razor_helper_writer, " "); 6890 6891 6892 #line 3059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6902 6903 6904 #line default 6905 #line hidden 6906 6907 #line 3060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6916 WriteTo(__razor_helper_writer, Render(settings.Icon)); 6917 6918 6919 #line default 6920 #line hidden 6921 6922 #line 3062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6923 6924 } else { 6925 6926 6927 #line default 6928 #line hidden 6929 6930 #line 3064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6931 WriteTo(__razor_helper_writer, settings.Message); 6932 6933 6934 #line default 6935 #line hidden 6936 6937 #line 3064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6938 6939 } 6940 6941 6942 #line default 6943 #line hidden 6944 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6945 6946 6947 #line 3067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6948 } 6949 6950 6951 #line default 6952 #line hidden 6953 }); 6954 6955 #line 3068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6956 } 6957 #line default 6958 #line hidden 6959 6960 6961 #line 3074 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3074 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 155872), Tuple.Create("\"", 155924) 6978 6979 #line 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6980 , Tuple.Create(Tuple.Create("", 155880), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6981 6982 #line default 6983 #line hidden 6984 , 155880), false) 6985 , Tuple.Create(Tuple.Create(" ", 155898), Tuple.Create("dw-mod", 155899), true) 6986 , Tuple.Create(Tuple.Create(" ", 155905), Tuple.Create("js-handlebars-root", 155906), true) 6987 ); 6988 6989 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 155925), Tuple.Create("\"", 155942) 6990 6991 #line 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 6992 , Tuple.Create(Tuple.Create("", 155930), Tuple.Create<System.Object, System.Int32>(settings.Id 6993 6994 #line default 6995 #line hidden 6996 , 155930), false) 6997 ); 6998 6999 WriteLiteralTo(__razor_helper_writer, " data-template=\""); 7000 7001 7002 #line 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7056 7057 7058 #line default 7059 #line hidden 7060 7061 #line 3078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7062 if (settings.SubBlocks != null) { 7063 7064 7065 #line default 7066 #line hidden 7067 7068 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7069 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 7070 7071 7072 #line default 7073 #line hidden 7074 7075 #line 3079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7076 7077 } 7078 7079 7080 #line default 7081 #line hidden 7082 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7083 7084 7085 #line 3082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7086 7087 7088 #line default 7089 #line hidden 7090 }); 7091 7092 #line 3082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7093 } 7094 #line default 7095 #line hidden 7096 7097 7098 #line 3091 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3092 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7106 7107 7108 7109 #line default 7110 #line hidden 7111 7112 #line 3103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7113 7114 7115 7116 #line default 7117 #line hidden 7118 }); 7119 7120 #line 3104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7121 } 7122 #line default 7123 #line hidden 7124 7125 7126 #line 3111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7157 WriteTo(__razor_helper_writer, settings.FormStartMarkup); 7158 7159 7160 #line default 7161 #line hidden 7162 7163 #line 3129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3133 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3133 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3133 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7205 } 7206 7207 foreach (var field in settings.GetFields()) 7208 { 7209 7210 7211 #line default 7212 #line hidden 7213 7214 #line 3138 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7215 WriteTo(__razor_helper_writer, Render(field)); 7216 7217 7218 #line default 7219 #line hidden 7220 7221 #line 3138 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7235 } 7236 7237 7238 #line default 7239 #line hidden 7240 }); 7241 7242 #line 3143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7243 } 7244 #line default 7245 #line hidden 7246 7247 7248 #line 3151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3152 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7256 7257 7258 7259 #line default 7260 #line hidden 7261 7262 #line 3153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7263 WriteTo(__razor_helper_writer, settings.Content); 7264 7265 7266 #line default 7267 #line hidden 7268 7269 #line 3153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7270 7271 7272 7273 #line default 7274 #line hidden 7275 }); 7276 7277 #line 3154 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7278 } 7279 #line default 7280 #line hidden 7281 7282 7283 #line 3162 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3162 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7290 7291 if (!string.IsNullOrEmpty(settings.Content)) 7292 { 7293 7294 7295 #line default 7296 #line hidden 7297 7298 #line 3165 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7299 WriteTo(__razor_helper_writer, settings.Content); 7300 7301 7302 #line default 7303 #line hidden 7304 7305 #line 3165 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7306 7307 } 7308 7309 7310 #line default 7311 #line hidden 7312 }); 7313 7314 #line 3167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7315 } 7316 #line default 7317 #line hidden 7318 7319 7320 #line 3175 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3175 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 159478), Tuple.Create("\"", 159505) 7343 7344 #line 3182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7345 , Tuple.Create(Tuple.Create("", 159483), Tuple.Create<System.Object, System.Int32>(modalId 7346 7347 #line default 7348 #line hidden 7349 , 159483), false) 7350 , Tuple.Create(Tuple.Create("", 159493), Tuple.Create("ModalTrigger", 159493), true) 7351 ); 7352 7353 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\""); 7354 7355 WriteLiteralTo(__razor_helper_writer, " "); 7356 7357 7358 #line 3182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3183 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7381 7382 7383 #line default 7384 #line hidden 7385 7386 #line 3185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 159669), Tuple.Create("\"", 159697) 7396 7397 #line 3187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7398 , Tuple.Create(Tuple.Create("", 159675), Tuple.Create<System.Object, System.Int32>(modalId 7399 7400 #line default 7401 #line hidden 7402 , 159675), false) 7403 , Tuple.Create(Tuple.Create("", 159685), Tuple.Create("ModalTrigger", 159685), true) 7404 ); 7405 7406 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 159698), Tuple.Create("\"", 159725) 7407 7408 #line 3187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7409 , Tuple.Create(Tuple.Create("", 159703), Tuple.Create<System.Object, System.Int32>(modalId 7410 7411 #line default 7412 #line hidden 7413 , 159703), false) 7414 , Tuple.Create(Tuple.Create("", 159713), Tuple.Create("ModalOverlay", 159713), true) 7415 ); 7416 7417 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\""); 7418 7419 WriteLiteralTo(__razor_helper_writer, "></label>\r\n"); 7420 7421 7422 #line 3188 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 159790), Tuple.Create("\"", 159899) 7431 , Tuple.Create(Tuple.Create("", 159798), Tuple.Create("modal", 159798), true) 7432 , Tuple.Create(Tuple.Create(" ", 159803), Tuple.Create("modal--", 159804), true) 7433 7434 #line 3189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7435 , Tuple.Create(Tuple.Create("", 159811), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() 7436 7437 #line default 7438 #line hidden 7439 , 159811), false) 7440 , Tuple.Create(Tuple.Create(" ", 159847), Tuple.Create("modal-height--", 159848), true) 7441 7442 #line 3189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7443 , Tuple.Create(Tuple.Create("", 159862), Tuple.Create<System.Object, System.Int32>(settings.Height.ToString().ToLower() 7444 7445 #line default 7446 #line hidden 7447 , 159862), false) 7448 ); 7449 7450 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 159900), Tuple.Create("\"", 159920) 7451 7452 #line 3189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7453 , Tuple.Create(Tuple.Create("", 159905), Tuple.Create<System.Object, System.Int32>(modalId 7454 7455 #line default 7456 #line hidden 7457 , 159905), false) 7458 , Tuple.Create(Tuple.Create("", 159915), Tuple.Create("Modal", 159915), true) 7459 ); 7460 7461 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7462 7463 7464 #line 3190 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7465 7466 7467 #line default 7468 #line hidden 7469 7470 #line 3190 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3195 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3197 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 160288), Tuple.Create("\"", 160383) 7507 , Tuple.Create(Tuple.Create("", 160296), Tuple.Create("modal__body", 160296), true) 7508 7509 #line 3199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7510 , Tuple.Create(Tuple.Create(" ", 160307), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "" 7511 7512 #line default 7513 #line hidden 7514 , 160308), false) 7515 ); 7516 7517 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7518 7519 7520 #line 3200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7521 7522 7523 #line default 7524 #line hidden 7525 7526 #line 3200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7527 if (!string.IsNullOrEmpty(settings.BodyText)) 7528 { 7529 7530 7531 #line default 7532 #line hidden 7533 7534 #line 3202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7535 WriteTo(__razor_helper_writer, settings.BodyText); 7536 7537 7538 #line default 7539 #line hidden 7540 7541 #line 3202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7542 7543 } 7544 7545 7546 #line default 7547 #line hidden 7548 WriteLiteralTo(__razor_helper_writer, " "); 7549 7550 7551 #line 3204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7552 if (settings.BodyTemplate != null) 7553 { 7554 7555 7556 #line default 7557 #line hidden 7558 7559 #line 3206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7560 WriteTo(__razor_helper_writer, settings.BodyTemplate); 7561 7562 7563 #line default 7564 #line hidden 7565 7566 #line 3206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7567 7568 } 7569 7570 7571 #line default 7572 #line hidden 7573 WriteLiteralTo(__razor_helper_writer, " "); 7574 7575 7576 #line 3208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7587 7588 7589 #line default 7590 #line hidden 7591 7592 #line 3212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7607 7608 7609 #line default 7610 #line hidden 7611 7612 #line 3215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3223 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7627 WriteTo(__razor_helper_writer, Render(action)); 7628 7629 7630 #line default 7631 #line hidden 7632 7633 #line 3223 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7634 7635 } 7636 7637 7638 #line default 7639 #line hidden 7640 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7641 7642 7643 #line 3226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 161489), Tuple.Create("\"", 161517) 7654 7655 #line 3227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7656 , Tuple.Create(Tuple.Create("", 161495), Tuple.Create<System.Object, System.Int32>(modalId 7657 7658 #line default 7659 #line hidden 7660 , 161495), false) 7661 , Tuple.Create(Tuple.Create("", 161505), Tuple.Create("ModalTrigger", 161505), true) 7662 ); 7663 7664 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 7665 7666 7667 #line 3230 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7668 } 7669 7670 7671 #line default 7672 #line hidden 7673 }); 7674 7675 #line 3231 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7676 } 7677 #line default 7678 #line hidden 7679 7680 7681 #line 3236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3237 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 161713), Tuple.Create("\"", 161762) 7697 , Tuple.Create(Tuple.Create("", 161721), Tuple.Create("media-list-item", 161721), true) 7698 7699 #line 3238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7700 , Tuple.Create(Tuple.Create(" ", 161736), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7701 7702 #line default 7703 #line hidden 7704 , 161737), false) 7705 , Tuple.Create(Tuple.Create(" ", 161755), Tuple.Create("dw-mod", 161756), true) 7706 ); 7707 7708 WriteLiteralTo(__razor_helper_writer, " "); 7709 7710 7711 #line 3238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7721 7722 7723 #line default 7724 #line hidden 7725 7726 #line 3239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 162506), Tuple.Create("\"", 162535) 7764 7765 #line 3254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7766 , Tuple.Create(Tuple.Create("", 162516), Tuple.Create<System.Object, System.Int32>(settings.OnClick 7767 7768 #line default 7769 #line hidden 7770 , 162516), 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 3255 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3261 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3263 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7840 7841 7842 #line default 7843 #line hidden 7844 7845 #line 3268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3272 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3279 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 163916), Tuple.Create("\"", 163945) 7883 7884 #line 3283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7885 , Tuple.Create(Tuple.Create("", 163926), Tuple.Create<System.Object, System.Int32>(settings.OnClick 7886 7887 #line default 7888 #line hidden 7889 , 163926), false) 7890 ); 7891 7892 WriteLiteralTo(__razor_helper_writer, ">"); 7893 7894 7895 #line 3283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3284 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7929 } 7930 } 7931 7932 7933 #line default 7934 #line hidden 7935 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7936 7937 7938 #line 3291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7939 7940 7941 #line default 7942 #line hidden 7943 7944 #line 3291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7968 } 7969 7970 7971 #line default 7972 #line hidden 7973 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7974 7975 7976 #line 3296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 7977 7978 7979 #line default 7980 #line hidden 7981 7982 #line 3296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8012 8013 8014 #line default 8015 #line hidden 8016 8017 #line 3304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8032 WriteTo(__razor_helper_writer, Render(action)); 8033 8034 8035 #line default 8036 #line hidden 8037 8038 #line 3312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3317 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8049 8050 8051 #line default 8052 #line hidden 8053 8054 #line 3317 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3322 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3324 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3328 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8091 8092 8093 #line default 8094 #line hidden 8095 }); 8096 8097 #line 3328 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8098 } 8099 #line default 8100 #line hidden 8101 8102 8103 #line 3332 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3333 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3357 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3358 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8152 8153 8154 #line default 8155 #line hidden 8156 8157 #line 3358 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3361 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3363 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8179 } 8180 8181 8182 #line default 8183 #line hidden 8184 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 8185 8186 8187 #line 3365 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8188 8189 8190 #line default 8191 #line hidden 8192 8193 #line 3365 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8194 foreach (var row in settings.Rows) 8195 { 8196 8197 8198 #line default 8199 #line hidden 8200 8201 #line 3367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8202 WriteTo(__razor_helper_writer, Render(row)); 8203 8204 8205 #line default 8206 #line hidden 8207 8208 #line 3367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8209 8210 } 8211 8212 8213 #line default 8214 #line hidden 8215 WriteLiteralTo(__razor_helper_writer, " </tbody>\r\n"); 8216 8217 8218 #line 3370 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8219 8220 8221 #line default 8222 #line hidden 8223 8224 #line 3370 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3373 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3375 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8246 } 8247 8248 8249 #line default 8250 #line hidden 8251 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 8252 8253 8254 #line 3377 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8255 8256 8257 #line default 8258 #line hidden 8259 }); 8260 8261 #line 3377 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8262 } 8263 #line default 8264 #line hidden 8265 8266 8267 #line 3381 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3382 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3405 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3406 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8315 8316 8317 #line default 8318 #line hidden 8319 8320 #line 3406 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8333 WriteTo(__razor_helper_writer, Render(cell)); 8334 8335 8336 #line default 8337 #line hidden 8338 8339 #line 3412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8340 8341 } 8342 8343 8344 #line default 8345 #line hidden 8346 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n"); 8347 8348 8349 #line 3415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8350 8351 8352 #line default 8353 #line hidden 8354 }); 8355 8356 #line 3415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8357 } 8358 #line default 8359 #line hidden 8360 8361 8362 #line 3420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3421 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3432 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8387 WriteTo(__razor_helper_writer, "<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">"); 8388 8389 8390 #line default 8391 #line hidden 8392 8393 #line 3432 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8394 8395 8396 8397 #line default 8398 #line hidden 8399 8400 #line 3433 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8401 WriteTo(__razor_helper_writer, settings.Content); 8402 8403 8404 #line default 8405 #line hidden 8406 8407 #line 3433 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8408 8409 8410 8411 #line default 8412 #line hidden 8413 8414 #line 3434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8415 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 8416 8417 8418 #line default 8419 #line hidden 8420 8421 #line 3434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8422 ; 8423 8424 8425 #line default 8426 #line hidden 8427 }); 8428 8429 #line 3435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8430 } 8431 #line default 8432 #line hidden 8433 8434 8435 #line 3441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3442 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 170864), Tuple.Create("\"", 170916) 8460 , Tuple.Create(Tuple.Create("", 170872), Tuple.Create("pager", 170872), true) 8461 , Tuple.Create(Tuple.Create(" ", 170877), Tuple.Create("u-margin-top", 170878), true) 8462 , Tuple.Create(Tuple.Create(" ", 170890), Tuple.Create("dw-mod", 170891), true) 8463 8464 #line 3452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8465 , Tuple.Create(Tuple.Create(" ", 170897), Tuple.Create<System.Object, System.Int32>(settings.CssClass 8466 8467 #line default 8468 #line hidden 8469 , 170898), false) 8470 ); 8471 8472 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 170917), Tuple.Create("\"", 170940) 8473 8474 #line 3452 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8475 , Tuple.Create(Tuple.Create("", 170930), Tuple.Create<System.Object, System.Int32>(ariaLabel 8476 8477 #line default 8478 #line hidden 8479 , 170930), false) 8480 ); 8481 8482 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8483 8484 8485 #line 3453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8486 8487 8488 #line default 8489 #line hidden 8490 8491 #line 3453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3458 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8557 8558 8559 #line default 8560 #line hidden 8561 8562 #line 3460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8563 if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 8564 { 8565 8566 8567 #line default 8568 #line hidden 8569 8570 #line 3462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8578 8579 } 8580 8581 8582 #line default 8583 #line hidden 8584 WriteLiteralTo(__razor_helper_writer, " "); 8585 8586 8587 #line 3464 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8588 if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 8589 { 8590 8591 8592 #line default 8593 #line hidden 8594 8595 #line 3466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8603 8604 } 8605 8606 8607 #line default 8608 #line hidden 8609 WriteLiteralTo(__razor_helper_writer, " "); 8610 8611 8612 #line 3468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8623 WriteTo(__razor_helper_writer, Render(page)); 8624 8625 8626 #line default 8627 #line hidden 8628 8629 #line 3472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3480 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3480 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8651 ; 8652 } 8653 } 8654 8655 8656 #line default 8657 #line hidden 8658 WriteLiteralTo(__razor_helper_writer, " "); 8659 8660 8661 #line 3483 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8662 if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 8663 { 8664 8665 8666 #line default 8667 #line hidden 8668 8669 #line 3485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8677 8678 } 8679 8680 8681 #line default 8682 #line hidden 8683 WriteLiteralTo(__razor_helper_writer, " "); 8684 8685 8686 #line 3487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8687 if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 8688 { 8689 8690 8691 #line default 8692 #line hidden 8693 8694 #line 3489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8712 } 8713 8714 8715 #line default 8716 #line hidden 8717 }); 8718 8719 #line 3494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8720 } 8721 #line default 8722 #line hidden 8723 8724 8725 #line 3496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3497 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8752 8753 8754 #line default 8755 #line hidden 8756 8757 #line 3505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 173601), Tuple.Create("\"", 173622) 8793 8794 #line 3513 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8795 , Tuple.Create(Tuple.Create("", 173608), Tuple.Create<System.Object, System.Int32>(settings.Link 8796 8797 #line default 8798 #line hidden 8799 , 173608), 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 3514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8819 } 8820 8821 8822 #line default 8823 #line hidden 8824 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 8825 8826 8827 #line 3518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8828 8829 8830 #line default 8831 #line hidden 8832 }); 8833 8834 #line 3518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8835 } 8836 #line default 8837 #line hidden 8838 8839 8840 #line 3536 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3536 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8860 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 8861 8862 8863 #line default 8864 #line hidden 8865 8866 #line 3543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3557 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8909 8910 8911 #line default 8912 #line hidden 8913 8914 #line 3557 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3559 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3560 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8938 } 8939 8940 8941 #line default 8942 #line hidden 8943 WriteLiteralTo(__razor_helper_writer, " "); 8944 8945 8946 #line 3561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8970 } 8971 8972 8973 #line default 8974 #line hidden 8975 8976 #line 3565 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8977 8978 8979 8980 #line default 8981 #line hidden 8982 8983 #line 3566 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8984 8985 8986 8987 #line default 8988 #line hidden 8989 8990 #line 3567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8991 8992 8993 8994 #line default 8995 #line hidden 8996 8997 #line 3568 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 8998 8999 9000 9001 #line default 9002 #line hidden 9003 9004 #line 3569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9005 9006 9007 9008 #line default 9009 #line hidden 9010 9011 #line 3570 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9012 9013 9014 9015 #line default 9016 #line hidden 9017 WriteLiteralTo(__razor_helper_writer, " "); 9018 9019 9020 #line 3571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9021 if (!String.IsNullOrEmpty(settings.Link)) 9022 { 9023 9024 9025 #line default 9026 #line hidden 9027 9028 #line 3573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9036 9037 } 9038 9039 9040 #line default 9041 #line hidden 9042 WriteLiteralTo(__razor_helper_writer, " "); 9043 9044 9045 #line 3575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9046 if (settings.ExternalParagraphId != 0) 9047 { 9048 9049 9050 #line default 9051 #line hidden 9052 9053 #line 3577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9054 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 9055 9056 9057 #line default 9058 #line hidden 9059 9060 #line 3577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 177169), Tuple.Create("\"", 177333) 9075 , Tuple.Create(Tuple.Create("", 177175), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression" + 9076 "=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=", 177175), true) 9077 9078 #line 3583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9079 , Tuple.Create(Tuple.Create("", 177313), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 9080 9081 #line default 9082 #line hidden 9083 , 177313), false) 9084 ); 9085 9086 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;" + 9087 "Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image="); 9088 9089 9090 #line 3583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9105 } 9106 else 9107 { 9108 settings.Layout = ArticleHeaderLayout.Clean; 9109 9110 9111 #line default 9112 #line hidden 9113 9114 #line 3592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9115 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 9116 9117 9118 #line default 9119 #line hidden 9120 9121 #line 3592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9122 ; 9123 } 9124 } 9125 else 9126 { 9127 settings.Layout = ArticleHeaderLayout.Clean; 9128 9129 9130 #line default 9131 #line hidden 9132 9133 #line 3598 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9134 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 9135 9136 9137 #line default 9138 #line hidden 9139 9140 #line 3598 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9141 ; 9142 } 9143 } 9144 9145 9146 #line default 9147 #line hidden 9148 }); 9149 9150 #line 3601 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9151 } 9152 #line default 9153 #line hidden 9154 9155 9156 #line 3612 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3612 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3613 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3614 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9185 9186 9187 #line default 9188 #line hidden 9189 }); 9190 9191 #line 3614 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9192 } 9193 #line default 9194 #line hidden 9195 9196 9197 #line 3616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3623 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9217 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 9218 9219 9220 #line default 9221 #line hidden 9222 9223 #line 3623 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3628 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9235 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 9236 9237 9238 #line default 9239 #line hidden 9240 9241 #line 3628 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9242 ; 9243 break; 9244 case ArticleHeaderLayout.Split: 9245 9246 9247 #line default 9248 #line hidden 9249 9250 #line 3631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9251 WriteTo(__razor_helper_writer, RenderArticleSplitHeader(settings)); 9252 9253 9254 #line default 9255 #line hidden 9256 9257 #line 3631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9258 ; 9259 break; 9260 case ArticleHeaderLayout.Banner: 9261 9262 9263 #line default 9264 #line hidden 9265 9266 #line 3634 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9267 WriteTo(__razor_helper_writer, RenderArticleBannerHeader(settings)); 9268 9269 9270 #line default 9271 #line hidden 9272 9273 #line 3634 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9274 ; 9275 break; 9276 case ArticleHeaderLayout.Overlay: 9277 9278 9279 #line default 9280 #line hidden 9281 9282 #line 3637 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9283 WriteTo(__razor_helper_writer, RenderArticleOverlayHeader(settings)); 9284 9285 9286 #line default 9287 #line hidden 9288 9289 #line 3637 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9290 ; 9291 break; 9292 default: 9293 9294 9295 #line default 9296 #line hidden 9297 9298 #line 3640 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9299 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 9300 9301 9302 #line default 9303 #line hidden 9304 9305 #line 3640 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9306 ; 9307 break; 9308 } 9309 } 9310 9311 9312 #line default 9313 #line hidden 9314 }); 9315 9316 #line 3644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9317 } 9318 #line default 9319 #line hidden 9320 9321 9322 #line 3646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3646 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9349 9350 9351 #line default 9352 #line hidden 9353 9354 #line 3652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9355 if (customMethod != null) 9356 { 9357 9358 9359 #line default 9360 #line hidden 9361 9362 #line 3654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9363 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 9364 9365 9366 #line default 9367 #line hidden 9368 9369 #line 3654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 180258), Tuple.Create("\"", 180296) 9387 , Tuple.Create(Tuple.Create("", 180266), Tuple.Create("color:", 180266), true) 9388 9389 #line 3662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9390 , Tuple.Create(Tuple.Create(" ", 180272), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor 9391 9392 #line default 9393 #line hidden 9394 , 180273), false) 9395 ); 9396 9397 WriteLiteralTo(__razor_helper_writer, ">"); 9398 9399 9400 #line 3662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3667 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3667 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9444 } 9445 if (settings.RatingOutOf != 0) 9446 { 9447 9448 9449 #line default 9450 #line hidden 9451 9452 #line 3671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 181312), Tuple.Create("\"", 181476) 9509 , Tuple.Create(Tuple.Create("", 181318), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression" + 9510 "=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=", 181318), true) 9511 9512 #line 3684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9513 , Tuple.Create(Tuple.Create("", 181456), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 9514 9515 #line default 9516 #line hidden 9517 , 181456), false) 9518 ); 9519 9520 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;" + 9521 "Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image="); 9522 9523 9524 #line 3684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3686 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3692 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3696 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9588 } 9589 9590 if (settings.ExternalParagraphId != 0) 9591 { 9592 9593 9594 #line default 9595 #line hidden 9596 9597 #line 3702 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9598 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 9599 9600 9601 #line default 9602 #line hidden 9603 9604 #line 3702 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3707 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9616 9617 9618 #line default 9619 #line hidden 9620 }); 9621 9622 #line 3707 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9623 } 9624 #line default 9625 #line hidden 9626 9627 9628 #line 3709 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3709 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3716 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9648 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 9649 9650 9651 #line default 9652 #line hidden 9653 9654 #line 3716 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9684 9685 9686 #line default 9687 #line hidden 9688 9689 #line 3727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 183350), Tuple.Create("\"", 183388) 9701 , Tuple.Create(Tuple.Create("", 183358), Tuple.Create("color:", 183358), true) 9702 9703 #line 3729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9704 , Tuple.Create(Tuple.Create(" ", 183364), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor 9705 9706 #line default 9707 #line hidden 9708 , 183365), false) 9709 ); 9710 9711 WriteLiteralTo(__razor_helper_writer, ">"); 9712 9713 9714 #line 3729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3730 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9724 } 9725 9726 9727 #line default 9728 #line hidden 9729 WriteLiteralTo(__razor_helper_writer, " "); 9730 9731 9732 #line 3731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9756 } 9757 9758 9759 #line default 9760 #line hidden 9761 WriteLiteralTo(__razor_helper_writer, " "); 9762 9763 9764 #line 3735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3738 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9788 } 9789 9790 9791 #line default 9792 #line hidden 9793 WriteLiteralTo(__razor_helper_writer, " "); 9794 9795 9796 #line 3739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3741 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3741 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9829 } 9830 9831 9832 #line default 9833 #line hidden 9834 WriteLiteralTo(__razor_helper_writer, " "); 9835 9836 9837 #line 3743 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9838 if (settings.RatingOutOf != 0) 9839 { 9840 9841 9842 #line default 9843 #line hidden 9844 9845 #line 3745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9853 9854 } 9855 9856 9857 #line default 9858 #line hidden 9859 WriteLiteralTo(__razor_helper_writer, " "); 9860 9861 9862 #line 3747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3750 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3752 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 184888), Tuple.Create("\"", 185052) 9901 , Tuple.Create(Tuple.Create("", 184894), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression" + 9902 "=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=", 184894), true) 9903 9904 #line 3757 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9905 , Tuple.Create(Tuple.Create("", 185032), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 9906 9907 #line default 9908 #line hidden 9909 , 185032), false) 9910 ); 9911 9912 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </div>\r\n"); 9913 9914 9915 #line 3760 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9916 if (settings.ExternalParagraphId != 0) 9917 { 9918 9919 9920 #line default 9921 #line hidden 9922 9923 #line 3762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9924 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 9925 9926 9927 #line default 9928 #line hidden 9929 9930 #line 3762 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9931 9932 } 9933 } 9934 } 9935 else 9936 { 9937 9938 9939 #line default 9940 #line hidden 9941 9942 #line 3768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9943 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 9944 9945 9946 #line default 9947 #line hidden 9948 9949 #line 3768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9950 ; 9951 } 9952 } 9953 9954 9955 #line default 9956 #line hidden 9957 }); 9958 9959 #line 3771 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9960 } 9961 #line default 9962 #line hidden 9963 9964 9965 #line 3773 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3773 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3780 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 9985 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 9986 9987 9988 #line default 9989 #line hidden 9990 9991 #line 3780 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10034 10035 10036 #line default 10037 #line hidden 10038 10039 #line 3796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10063 } 10064 10065 10066 #line default 10067 #line hidden 10068 WriteLiteralTo(__razor_helper_writer, " "); 10069 10070 10071 #line 3800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10095 } 10096 10097 10098 #line default 10099 #line hidden 10100 WriteLiteralTo(__razor_helper_writer, " "); 10101 10102 10103 #line 3804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3807 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10136 } 10137 10138 10139 #line default 10140 #line hidden 10141 WriteLiteralTo(__razor_helper_writer, " "); 10142 10143 10144 #line 3808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10170 } 10171 10172 10173 #line default 10174 #line hidden 10175 WriteLiteralTo(__razor_helper_writer, " "); 10176 10177 10178 #line 3814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10179 if (settings.ExternalParagraphId != 0) 10180 { 10181 10182 10183 #line default 10184 #line hidden 10185 10186 #line 3816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10187 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 10188 10189 10190 #line default 10191 #line hidden 10192 10193 #line 3816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 188385), Tuple.Create("\"", 188549) 10209 , Tuple.Create(Tuple.Create("", 188391), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression" + 10210 "=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=", 188391), true) 10211 10212 #line 3822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10213 , Tuple.Create(Tuple.Create("", 188529), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 10214 10215 #line default 10216 #line hidden 10217 , 188529), false) 10218 ); 10219 10220 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;" + 10221 "Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image="); 10222 10223 10224 #line 3822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3827 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10239 } 10240 else 10241 { 10242 10243 10244 #line default 10245 #line hidden 10246 10247 #line 3830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10248 WriteTo(__razor_helper_writer, RenderArticleBanner(settings)); 10249 10250 10251 #line default 10252 #line hidden 10253 10254 #line 3830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10255 ; 10256 } 10257 } 10258 } 10259 else 10260 { 10261 10262 10263 #line default 10264 #line hidden 10265 10266 #line 3836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10267 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 10268 10269 10270 #line default 10271 #line hidden 10272 10273 #line 3836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10274 ; 10275 } 10276 } 10277 10278 10279 #line default 10280 #line hidden 10281 }); 10282 10283 #line 3839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10284 } 10285 #line default 10286 #line hidden 10287 10288 10289 #line 3841 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3841 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10309 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10310 10311 10312 #line default 10313 #line hidden 10314 10315 #line 3848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10316 ; 10317 } 10318 else 10319 { 10320 10321 10322 #line default 10323 #line hidden 10324 10325 #line 3852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10326 WriteTo(__razor_helper_writer, RenderArticleBanner(settings)); 10327 10328 10329 #line default 10330 #line hidden 10331 10332 #line 3852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10333 ; 10334 } 10335 10336 10337 #line default 10338 #line hidden 10339 }); 10340 10341 #line 3854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10342 } 10343 #line default 10344 #line hidden 10345 10346 10347 #line 3865 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3866 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3873 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10368 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10369 10370 10371 #line default 10372 #line hidden 10373 10374 #line 3873 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10375 ; 10376 } else { 10377 10378 10379 #line default 10380 #line hidden 10381 10382 #line 3875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10383 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 10384 10385 10386 #line default 10387 #line hidden 10388 10389 #line 3875 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10390 10391 } 10392 10393 10394 #line default 10395 #line hidden 10396 }); 10397 10398 #line 3877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10399 } 10400 #line default 10401 #line hidden 10402 10403 10404 #line 3886 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10425 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10426 10427 10428 #line default 10429 #line hidden 10430 10431 #line 3894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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&amp;Height=1000&amp;Crop=5&amp;" + 10447 "Format=jpg&amp;Resolution=72&amp;Image="); 10448 10449 10450 #line 3902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 191240), Tuple.Create("\"", 191375) 10461 , Tuple.Create(Tuple.Create("", 191246), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1000&amp;Height=1000&amp;Crop=5&amp;Format=jpg&" + 10462 "amp;Resolution=20&amp;Image=", 191246), true) 10463 10464 #line 3902 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10465 , Tuple.Create(Tuple.Create("", 191355), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 10466 10467 #line default 10468 #line hidden 10469 , 191355), false) 10470 ); 10471 10472 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10473 10474 10475 #line 3903 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10476 } 10477 } 10478 } 10479 10480 10481 #line default 10482 #line hidden 10483 }); 10484 10485 #line 3906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10486 } 10487 #line default 10488 #line hidden 10489 10490 10491 #line 3914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10512 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10513 10514 10515 #line default 10516 #line hidden 10517 10518 #line 3922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10552 } 10553 } 10554 10555 10556 #line default 10557 #line hidden 10558 }); 10559 10560 #line 3933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10561 } 10562 #line default 10563 #line hidden 10564 10565 10566 #line 3943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3944 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10587 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10588 10589 10590 #line default 10591 #line hidden 10592 10593 #line 3951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3957 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10627 10628 } 10629 } 10630 10631 10632 #line default 10633 #line hidden 10634 }); 10635 10636 #line 3963 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10637 } 10638 #line default 10639 #line hidden 10640 10641 10642 #line 3972 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3980 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10663 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10664 10665 10666 #line default 10667 #line hidden 10668 10669 #line 3980 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10690 10691 10692 #line default 10693 #line hidden 10694 10695 #line 3986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3992 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10716 10717 10718 #line default 10719 #line hidden 10720 10721 #line 3992 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 3998 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4001 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4004 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10760 10761 10762 #line default 10763 #line hidden 10764 10765 #line 4004 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4013 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4015 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10871 10872 } 10873 10874 10875 #line default 10876 #line hidden 10877 WriteLiteralTo(__razor_helper_writer, " "); 10878 10879 10880 #line 4017 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4020 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4026 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10913 } 10914 10915 10916 #line default 10917 #line hidden 10918 }); 10919 10920 #line 4027 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10921 } 10922 #line default 10923 #line hidden 10924 10925 10926 #line 4035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4043 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10947 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 10948 10949 10950 #line default 10951 #line hidden 10952 10953 #line 4043 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10968 10969 10970 #line default 10971 #line hidden 10972 10973 #line 4046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 197570), Tuple.Create("\"", 197608) 10987 10988 #line 4052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10989 , Tuple.Create(Tuple.Create("", 197578), Tuple.Create<System.Object, System.Int32>(row.Icon 10990 10991 #line default 10992 #line hidden 10993 , 197578), false) 10994 , Tuple.Create(Tuple.Create(" ", 197587), Tuple.Create("fa-2x", 197588), true) 10995 10996 #line 4052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 10997 , Tuple.Create(Tuple.Create(" ", 197593), Tuple.Create<System.Object, System.Int32>(row.IconColor 10998 10999 #line default 11000 #line hidden 11001 , 197594), false) 11002 ); 11003 11004 WriteLiteralTo(__razor_helper_writer, "></i></div>\r\n"); 11005 11006 11007 #line 4053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11008 } 11009 11010 11011 #line default 11012 #line hidden 11013 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <div>"); 11014 11015 11016 #line 4055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11026 11027 11028 #line default 11029 #line hidden 11030 11031 #line 4056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 198035), Tuple.Create("\"", 198051) 11063 11064 #line 4064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11065 , Tuple.Create(Tuple.Create("", 198042), Tuple.Create<System.Object, System.Int32>(row.Link 11066 11067 #line default 11068 #line hidden 11069 , 198042), false) 11070 ); 11071 11072 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-inherit\""); 11073 11074 WriteLiteralTo(__razor_helper_writer, ">"); 11075 11076 11077 #line 4064 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4065 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11087 } 11088 } 11089 11090 11091 #line default 11092 #line hidden 11093 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 11094 11095 11096 #line 4068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11097 } 11098 11099 11100 #line default 11101 #line hidden 11102 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 11103 11104 11105 #line 4070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11106 } 11107 11108 11109 #line default 11110 #line hidden 11111 }); 11112 11113 #line 4071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11114 } 11115 #line default 11116 #line hidden 11117 11118 11119 #line 4079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4087 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11140 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11141 11142 11143 #line default 11144 #line hidden 11145 11146 #line 4087 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11246 } 11247 11248 11249 #line default 11250 #line hidden 11251 }); 11252 11253 #line 4111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11254 } 11255 #line default 11256 #line hidden 11257 11258 11259 #line 4120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4126 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 200715), Tuple.Create("\"", 200763) 11297 11298 #line 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11299 , Tuple.Create(Tuple.Create("", 200720), Tuple.Create<System.Object, System.Int32>(settings.Title.Replace(" ", String.Empty) 11300 11301 #line default 11302 #line hidden 11303 , 200720), 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 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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&amp;crop=1&amp;DoNotUpscale=True&amp;Compression=75&amp;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 4153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11379 11380 11381 #line default 11382 #line hidden 11383 }); 11384 11385 #line 4153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11386 } 11387 #line default 11388 #line hidden 11389 11390 11391 #line 4163 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11412 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11413 11414 11415 #line default 11416 #line hidden 11417 11418 #line 4171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4174 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4175 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4178 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11453 11454 11455 #line default 11456 #line hidden 11457 11458 #line 4178 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11459 foreach (var item in settings.Items) 11460 { 11461 11462 11463 #line default 11464 #line hidden 11465 11466 #line 4180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11467 WriteTo(__razor_helper_writer, RenderArticleMenuItem(item)); 11468 11469 11470 #line default 11471 #line hidden 11472 11473 #line 4180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11474 11475 } 11476 11477 11478 #line default 11479 #line hidden 11480 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 11481 11482 11483 #line 4183 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11484 } 11485 11486 11487 #line default 11488 #line hidden 11489 }); 11490 11491 #line 4184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11492 } 11493 #line default 11494 #line hidden 11495 11496 11497 #line 4186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4194 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11518 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11519 11520 11521 #line default 11522 #line hidden 11523 11524 #line 4194 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 203515), Tuple.Create("\"", 203527) 11541 11542 #line 4200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11543 , Tuple.Create(Tuple.Create("", 203522), Tuple.Create<System.Object, System.Int32>(link 11544 11545 #line default 11546 #line hidden 11547 , 203522), false) 11548 ); 11549 11550 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 203528), Tuple.Create("\"", 203555) 11551 11552 #line 4200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11553 , Tuple.Create(Tuple.Create("", 203538), Tuple.Create<System.Object, System.Int32>(settings.OnClick 11554 11555 #line default 11556 #line hidden 11557 , 203538), false) 11558 ); 11559 11560 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left__link\""); 11561 11562 WriteLiteralTo(__razor_helper_writer, ">"); 11563 11564 11565 #line 4200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11575 } 11576 } 11577 11578 11579 #line default 11580 #line hidden 11581 }); 11582 11583 #line 4204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11584 } 11585 #line default 11586 #line hidden 11587 11588 11589 #line 4212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11610 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11611 11612 11613 #line default 11614 #line hidden 11615 11616 #line 4220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11660 ; 11661 } 11662 } 11663 11664 11665 #line default 11666 #line hidden 11667 }); 11668 11669 #line 4253 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11670 } 11671 #line default 11672 #line hidden 11673 11674 11675 #line 4261 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4262 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11696 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11697 11698 11699 #line default 11700 #line hidden 11701 11702 #line 4269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4273 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4274 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11728 } 11729 } 11730 11731 11732 #line default 11733 #line hidden 11734 }); 11735 11736 #line 4276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11737 } 11738 #line default 11739 #line hidden 11740 11741 11742 #line 4283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4284 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11763 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 11764 11765 11766 #line default 11767 #line hidden 11768 11769 #line 4291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 208036), Tuple.Create("\"", 208086) 11810 11811 #line 4309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11812 , Tuple.Create(Tuple.Create("", 208050), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.All) 11813 11814 #line default 11815 #line hidden 11816 , 208050), false) 11817 ); 11818 11819 WriteAttributeTo(__razor_helper_writer, "selected", Tuple.Create(" selected=\"", 208087), Tuple.Create("\"", 208113) 11820 11821 #line 4309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11822 , Tuple.Create(Tuple.Create("", 208098), Tuple.Create<System.Object, System.Int32>(selectedFilter 11823 11824 #line default 11825 #line hidden 11826 , 208098), false) 11827 ); 11828 11829 WriteLiteralTo(__razor_helper_writer, " data-role=\"sort\""); 11830 11831 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11832 11833 11834 #line 4310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11835 11836 11837 #line default 11838 #line hidden 11839 11840 #line 4310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 208245), Tuple.Create("\"", 208275) 11850 11851 #line 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11852 , Tuple.Create(Tuple.Create("", 208253), Tuple.Create<System.Object, System.Int32>(Translate(option.Key) 11853 11854 #line default 11855 #line hidden 11856 , 208253), false) 11857 ); 11858 11859 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 208276), Tuple.Create("\"", 208384) 11860 , Tuple.Create(Tuple.Create("", 208284), Tuple.Create("[{", 208284), true) 11861 , Tuple.Create(Tuple.Create(" ", 208286), Tuple.Create("\'sourceType\':", 208287), true) 11862 , Tuple.Create(Tuple.Create(" ", 208300), Tuple.Create("\'Page\',", 208301), true) 11863 , Tuple.Create(Tuple.Create(" ", 208308), Tuple.Create("\'sourcePage\':", 208309), true) 11864 , Tuple.Create(Tuple.Create(" ", 208322), Tuple.Create("\'", 208323), true) 11865 11866 #line 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11867 , Tuple.Create(Tuple.Create("", 208324), Tuple.Create<System.Object, System.Int32>(option.Key.ToLower() == "all" ? pageId : option.Value 11868 11869 #line default 11870 #line hidden 11871 , 208324), false) 11872 , Tuple.Create(Tuple.Create("", 208380), Tuple.Create("\'", 208380), true) 11873 , Tuple.Create(Tuple.Create(" ", 208381), Tuple.Create("}]", 208382), true) 11874 ); 11875 11876 WriteLiteralTo(__razor_helper_writer, " data-source-page = \'"); 11877 11878 11879 #line 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4313 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11907 } 11908 11909 11910 #line default 11911 #line hidden 11912 }); 11913 11914 #line 4317 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11915 } 11916 #line default 11917 #line hidden 11918 11919 11920 #line 4325 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 209453), Tuple.Create("\"", 209503) 11951 11952 #line 4338 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11953 , Tuple.Create(Tuple.Create("", 209467), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.All) 11954 11955 #line default 11956 #line hidden 11957 , 209467), false) 11958 ); 11959 11960 WriteAttributeTo(__razor_helper_writer, "selected", Tuple.Create(" selected=\"", 209504), Tuple.Create("\"", 209530) 11961 11962 #line 4338 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11963 , Tuple.Create(Tuple.Create("", 209515), Tuple.Create<System.Object, System.Int32>(selectedFilter 11964 11965 #line default 11966 #line hidden 11967 , 209515), false) 11968 ); 11969 11970 WriteLiteralTo(__razor_helper_writer, " data-role=\"sort\""); 11971 11972 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11973 11974 11975 #line 4339 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11976 11977 11978 #line default 11979 #line hidden 11980 11981 #line 4339 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 209635), Tuple.Create("\"", 209666) 11991 11992 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 11993 , Tuple.Create(Tuple.Create("", 209643), Tuple.Create<System.Object, System.Int32>(Translate(option.Name) 11994 11995 #line default 11996 #line hidden 11997 , 209643), false) 11998 ); 11999 12000 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 209667), Tuple.Create("\"", 209720) 12001 , Tuple.Create(Tuple.Create("", 209675), Tuple.Create("[(", 209675), true) 12002 , Tuple.Create(Tuple.Create(" ", 209677), Tuple.Create("\'", 209678), true) 12003 12004 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12005 , Tuple.Create(Tuple.Create("", 209679), Tuple.Create<System.Object, System.Int32>(settings.SystemName 12006 12007 #line default 12008 #line hidden 12009 , 209679), false) 12010 , Tuple.Create(Tuple.Create("", 209699), Tuple.Create("\',", 209699), true) 12011 , Tuple.Create(Tuple.Create(" ", 209701), Tuple.Create("\'", 209702), true) 12012 12013 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12014 , Tuple.Create(Tuple.Create("", 209703), Tuple.Create<System.Object, System.Int32>(option.Value 12015 12016 #line default 12017 #line hidden 12018 , 209703), false) 12019 , Tuple.Create(Tuple.Create("", 209716), Tuple.Create("\'", 209716), true) 12020 , Tuple.Create(Tuple.Create(" ", 209717), Tuple.Create(")]", 209718), true) 12021 ); 12022 12023 WriteLiteralTo(__razor_helper_writer, "><span>"); 12024 12025 12026 #line 4341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4342 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12036 } 12037 12038 12039 #line default 12040 #line hidden 12041 WriteLiteralTo(__razor_helper_writer, " </df-select>\r\n"); 12042 12043 12044 #line 4344 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12045 } 12046 12047 12048 #line default 12049 #line hidden 12050 }); 12051 12052 #line 4345 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12053 } 12054 #line default 12055 #line hidden 12056 12057 12058 #line 4353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4354 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4361 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12079 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 12080 12081 12082 #line default 12083 #line hidden 12084 12085 #line 4361 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 210697), Tuple.Create("\"", 210739) 12105 12106 #line 4366 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12107 , Tuple.Create(Tuple.Create("", 210711), Tuple.Create<System.Object, System.Int32>(Translate("Search in list") 12108 12109 #line default 12110 #line hidden 12111 , 210711), false) 12112 ); 12113 12114 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 210740), Tuple.Create("\"", 210761) 12115 12116 #line 4366 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12117 , Tuple.Create(Tuple.Create("", 210748), Tuple.Create<System.Object, System.Int32>(searchString 12118 12119 #line default 12120 #line hidden 12121 , 210748), 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 4369 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12143 } 12144 12145 12146 #line default 12147 #line hidden 12148 }); 12149 12150 #line 4370 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12151 } 12152 #line default 12153 #line hidden 12154 12155 12156 #line 4378 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4379 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12177 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 12178 12179 12180 #line default 12181 #line hidden 12182 12183 #line 4386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12184 ; 12185 } else { 12186 12187 12188 #line default 12189 #line hidden 12190 12191 #line 4388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12192 WriteTo(__razor_helper_writer, Translate(settings.Message)); 12193 12194 12195 #line default 12196 #line hidden 12197 12198 #line 4388 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12199 12200 } 12201 12202 12203 #line default 12204 #line hidden 12205 }); 12206 12207 #line 4390 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12208 } 12209 #line default 12210 #line hidden 12211 12212 12213 #line 4400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4401 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12221 12222 switch (settings.Type) { 12223 case ArticleListItemType.Card: 12224 12225 12226 #line default 12227 #line hidden 12228 12229 #line 4404 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12230 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings)); 12231 12232 12233 #line default 12234 #line hidden 12235 12236 #line 4404 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12237 ; 12238 break; 12239 case ArticleListItemType.List: 12240 12241 12242 #line default 12243 #line hidden 12244 12245 #line 4407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12246 WriteTo(__razor_helper_writer, RenderArticleListItemList(settings)); 12247 12248 12249 #line default 12250 #line hidden 12251 12252 #line 4407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12253 ; 12254 break; 12255 case ArticleListItemType.Simple: 12256 12257 12258 #line default 12259 #line hidden 12260 12261 #line 4410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12262 WriteTo(__razor_helper_writer, RenderArticleListItemSimple(settings)); 12263 12264 12265 #line default 12266 #line hidden 12267 12268 #line 4410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12269 ; 12270 break; 12271 default: 12272 12273 12274 #line default 12275 #line hidden 12276 12277 #line 4413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12278 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings)); 12279 12280 12281 #line default 12282 #line hidden 12283 12284 #line 4413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12285 ; 12286 break; 12287 } 12288 12289 12290 #line default 12291 #line hidden 12292 }); 12293 12294 #line 4416 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12295 } 12296 #line default 12297 #line hidden 12298 12299 12300 #line 4418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 212577), Tuple.Create("\"", 212598) 12315 12316 #line 4419 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12317 , Tuple.Create(Tuple.Create("", 212584), Tuple.Create<System.Object, System.Int32>(settings.Link 12318 12319 #line default 12320 #line hidden 12321 , 212584), 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 4420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12330 12331 12332 #line default 12333 #line hidden 12334 12335 #line 4420 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12336 if (settings.Logo != null) 12337 { 12338 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;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=\"", 213356), Tuple.Create("\"", 213380) 12351 12352 #line 4426 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12353 , Tuple.Create(Tuple.Create("", 213364), Tuple.Create<System.Object, System.Int32>(backgroundImage 12354 12355 #line default 12356 #line hidden 12357 , 213364), false) 12358 ); 12359 12360 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12361 12362 12363 #line 4427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12364 12365 12366 #line default 12367 #line hidden 12368 12369 #line 4427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4431 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12380 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12381 12382 12383 #line default 12384 #line hidden 12385 12386 #line 4431 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12387 ; 12388 } 12389 } 12390 12391 12392 #line default 12393 #line hidden 12394 WriteLiteralTo(__razor_helper_writer, " "); 12395 12396 12397 #line 4434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12421 12422 12423 #line default 12424 #line hidden 12425 12426 #line 4439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4443 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12437 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12438 12439 12440 #line default 12441 #line hidden 12442 12443 #line 4443 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 214309), Tuple.Create("\"", 214438) 12462 , Tuple.Create(Tuple.Create("", 214315), Tuple.Create("/Admin/Public/GetImage.ashx?width=680&height=314&crop=1&Format=webP&Quality=10&Do" + 12463 "NotUpscale=True&image=", 214315), true) 12464 12465 #line 4446 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12466 , Tuple.Create(Tuple.Create("", 214418), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 12467 12468 #line default 12469 #line hidden 12470 , 214418), 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 4446 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12491 } 12492 12493 12494 #line default 12495 #line hidden 12496 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12497 12498 12499 #line 4450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12500 12501 12502 #line default 12503 #line hidden 12504 12505 #line 4450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12518 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12519 12520 12521 #line default 12522 #line hidden 12523 12524 #line 4456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4465 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4469 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12599 } 12600 } 12601 12602 12603 #line default 12604 #line hidden 12605 WriteLiteralTo(__razor_helper_writer, " </a>\r\n"); 12606 12607 12608 #line 4473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12609 12610 12611 #line default 12612 #line hidden 12613 }); 12614 12615 #line 4473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12616 } 12617 #line default 12618 #line hidden 12619 12620 12621 #line 4475 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4475 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 215651), Tuple.Create("\"", 215672) 12636 12637 #line 4476 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12638 , Tuple.Create(Tuple.Create("", 215658), Tuple.Create<System.Object, System.Int32>(settings.Link 12639 12640 #line default 12641 #line hidden 12642 , 215658), 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 4480 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12657 12658 12659 #line default 12660 #line hidden 12661 12662 #line 4480 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12663 if (settings.Logo != null) 12664 { 12665 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;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=\"", 216558), Tuple.Create("\"", 216582) 12678 12679 #line 4486 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12680 , Tuple.Create(Tuple.Create("", 216566), Tuple.Create<System.Object, System.Int32>(backgroundImage 12681 12682 #line default 12683 #line hidden 12684 , 216566), false) 12685 ); 12686 12687 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12688 12689 12690 #line 4487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12691 12692 12693 #line default 12694 #line hidden 12695 12696 #line 4487 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12707 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12708 12709 12710 #line default 12711 #line hidden 12712 12713 #line 4491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12714 ; 12715 } 12716 } 12717 12718 12719 #line default 12720 #line hidden 12721 WriteLiteralTo(__razor_helper_writer, " "); 12722 12723 12724 #line 4494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4499 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12748 12749 12750 #line default 12751 #line hidden 12752 12753 #line 4499 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12764 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12765 12766 12767 #line default 12768 #line hidden 12769 12770 #line 4503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12771 ; 12772 } 12773 } 12774 12775 12776 #line default 12777 #line hidden 12778 WriteLiteralTo(__razor_helper_writer, " "); 12779 12780 12781 #line 4506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12800 12801 12802 #line default 12803 #line hidden 12804 12805 #line 4512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12820 12821 12822 #line default 12823 #line hidden 12824 12825 #line 4515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4518 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12849 } 12850 12851 12852 #line default 12853 #line hidden 12854 WriteLiteralTo(__razor_helper_writer, " "); 12855 12856 12857 #line 4519 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12868 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 12869 12870 12871 #line default 12872 #line hidden 12873 12874 #line 4523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12875 ; 12876 } 12877 } 12878 12879 12880 #line default 12881 #line hidden 12882 WriteLiteralTo(__razor_helper_writer, " "); 12883 12884 12885 #line 4526 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4529 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12909 } 12910 12911 12912 #line default 12913 #line hidden 12914 WriteLiteralTo(__razor_helper_writer, " "); 12915 12916 12917 #line 4530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4532 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4533 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12941 } 12942 12943 12944 #line default 12945 #line hidden 12946 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 12947 12948 12949 #line 4535 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12959 12960 12961 #line default 12962 #line hidden 12963 }); 12964 12965 #line 4538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12966 } 12967 #line default 12968 #line hidden 12969 12970 12971 #line 4540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 219098), Tuple.Create("\"", 219119) 12990 12991 #line 4542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 12992 , Tuple.Create(Tuple.Create("", 219105), Tuple.Create<System.Object, System.Int32>(settings.Link 12993 12994 #line default 12995 #line hidden 12996 , 219105), false) 12997 ); 12998 12999 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 13000 13001 13002 #line 4543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13003 13004 13005 #line default 13006 #line hidden 13007 13008 #line 4543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4546 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13032 } 13033 13034 13035 #line default 13036 #line hidden 13037 WriteLiteralTo(__razor_helper_writer, " "); 13038 13039 13040 #line 4547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4549 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4550 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13073 13074 13075 #line default 13076 #line hidden 13077 }); 13078 13079 #line 4553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13080 } 13081 #line default 13082 #line hidden 13083 13084 13085 #line 4560 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4568 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13106 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 13107 13108 13109 #line default 13110 #line hidden 13111 13112 #line 4568 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13127 13128 13129 #line default 13130 #line hidden 13131 13132 #line 4571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4573 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13152 } 13153 13154 13155 #line default 13156 #line hidden 13157 WriteLiteralTo(__razor_helper_writer, " "); 13158 13159 13160 #line 4575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13189 } 13190 13191 13192 #line default 13193 #line hidden 13194 WriteLiteralTo(__razor_helper_writer, " "); 13195 13196 13197 #line 4579 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4581 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4582 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13226 } 13227 13228 13229 #line default 13230 #line hidden 13231 WriteLiteralTo(__razor_helper_writer, " </small>\r\n"); 13232 13233 13234 #line 4584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13235 } 13236 13237 13238 #line default 13239 #line hidden 13240 }); 13241 13242 #line 4585 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13243 } 13244 #line default 13245 #line hidden 13246 13247 13248 #line 4592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13269 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 13270 13271 13272 #line default 13273 #line hidden 13274 13275 #line 4600 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13276 ; 13277 } else { 13278 if (!String.IsNullOrEmpty(settings.Title)) 13279 { 13280 13281 13282 #line default 13283 #line hidden 13284 13285 #line 4604 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13286 WriteTo(__razor_helper_writer, RenderButton(settings)); 13287 13288 13289 #line default 13290 #line hidden 13291 13292 #line 4604 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13293 13294 } 13295 } 13296 13297 13298 #line default 13299 #line hidden 13300 }); 13301 13302 #line 4607 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13303 } 13304 #line default 13305 #line hidden 13306 13307 13308 #line 4616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4617 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4624 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13329 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 13330 13331 13332 #line default 13333 #line hidden 13334 13335 #line 4624 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 221909), Tuple.Create("\"", 221935) 13347 , Tuple.Create(Tuple.Create("", 221914), Tuple.Create("carousel_", 221914), true) 13348 13349 #line 4626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13350 , Tuple.Create(Tuple.Create("", 221923), Tuple.Create<System.Object, System.Int32>(settings.Id 13351 13352 #line default 13353 #line hidden 13354 , 221923), 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 4628 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13376 13377 13378 #line default 13379 #line hidden 13380 13381 #line 4631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13382 WriteTo(__razor_helper_writer, SnippetStart("BottomJS")); 13383 13384 13385 #line default 13386 #line hidden 13387 13388 #line 4631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4634 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4640 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13410 13411 13412 #line default 13413 #line hidden 13414 13415 #line 4640 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13416 WriteTo(__razor_helper_writer, SnippetEnd("BottomJS")); 13417 13418 13419 #line default 13420 #line hidden 13421 13422 #line 4640 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13423 13424 } 13425 13426 13427 #line default 13428 #line hidden 13429 }); 13430 13431 #line 4642 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13432 } 13433 #line default 13434 #line hidden 13435 13436 13437 #line 4644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4645 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13458 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 13459 13460 13461 #line default 13462 #line hidden 13463 13464 #line 4652 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 223865), Tuple.Create("\"", 223933) 13492 , Tuple.Create(Tuple.Create("", 223873), Tuple.Create("background-size:cover;", 223873), true) 13493 , Tuple.Create(Tuple.Create(" ", 223895), Tuple.Create("background-image:url(\'", 223896), true) 13494 13495 #line 4670 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13496 , Tuple.Create(Tuple.Create("", 223918), Tuple.Create<System.Object, System.Int32>(defaultImage 13497 13498 #line default 13499 #line hidden 13500 , 223918), false) 13501 , Tuple.Create(Tuple.Create("", 223931), Tuple.Create("\')", 223931), 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=\"", 223987), Tuple.Create("\"", 224008) 13509 13510 #line 4671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13511 , Tuple.Create(Tuple.Create("", 223994), Tuple.Create<System.Object, System.Int32>(settings.Link 13512 13513 #line default 13514 #line hidden 13515 , 223994), false) 13516 ); 13517 13518 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 224009), Tuple.Create("\"", 224032) 13519 13520 #line 4671 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13521 , Tuple.Create(Tuple.Create("", 224017), Tuple.Create<System.Object, System.Int32>(settings.Title 13522 13523 #line default 13524 #line hidden 13525 , 224017), 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 4672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13549 13550 13551 #line default 13552 #line hidden 13553 13554 #line 4674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13564 WriteTo(__razor_helper_writer, RenderStickersCollection(settings.Stickers)); 13565 13566 13567 #line default 13568 #line hidden 13569 13570 #line 4677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13585 13586 13587 #line default 13588 #line hidden 13589 13590 #line 4681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13610 } 13611 13612 13613 #line default 13614 #line hidden 13615 WriteLiteralTo(__razor_helper_writer, " "); 13616 13617 13618 #line 4685 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4687 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13647 } 13648 13649 13650 #line default 13651 #line hidden 13652 WriteLiteralTo(__razor_helper_writer, " "); 13653 13654 13655 #line 4689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4692 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4696 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13706 13707 13708 #line default 13709 #line hidden 13710 13711 #line 4698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4701 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13726 } 13727 13728 13729 #line default 13730 #line hidden 13731 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 13732 13733 13734 #line 4703 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13735 } 13736 13737 13738 #line default 13739 #line hidden 13740 }); 13741 13742 #line 4704 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13743 } 13744 #line default 13745 #line hidden 13746 13747 13748 #line 4713 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4714 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13769 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 13770 13771 13772 #line default 13773 #line hidden 13774 13775 #line 4721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 227149), Tuple.Create("\"", 227208) 13824 , Tuple.Create(Tuple.Create("", 227155), Tuple.Create("https://www.youtube-nocookie.com/embed/", 227155), true) 13825 13826 #line 4749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13827 , Tuple.Create(Tuple.Create("", 227194), Tuple.Create<System.Object, System.Int32>(videoId 13828 13829 #line default 13830 #line hidden 13831 , 227194), false) 13832 , Tuple.Create(Tuple.Create("", 227202), Tuple.Create("?rel=0", 227202), 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 4754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13846 13847 } 13848 } 13849 13850 13851 #line default 13852 #line hidden 13853 }); 13854 13855 #line 4757 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13856 } 13857 #line default 13858 #line hidden 13859 13860 13861 #line 4764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4764 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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&amp;height=820&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=1&amp;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=\"", 228564), Tuple.Create("\"", 228688) 13902 , Tuple.Create(Tuple.Create("", 228570), Tuple.Create("/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=7" + 13903 "5&amp;DoNotUpscale=1&amp;image=", 228570), true) 13904 13905 #line 4781 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13906 , Tuple.Create(Tuple.Create("", 228682), Tuple.Create<System.Object, System.Int32>(image 13907 13908 #line default 13909 #line hidden 13910 , 228682), 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 4781 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13923 WriteTo(__razor_helper_writer, imagePrefix); 13924 13925 13926 #line default 13927 #line hidden 13928 13929 #line 4781 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4785 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 13996 WriteTo(__razor_helper_writer, imagePrefix); 13997 13998 13999 #line default 14000 #line hidden 14001 14002 #line 4791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4792 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14014 } 14015 14016 count++; 14017 } 14018 } 14019 14020 14021 #line default 14022 #line hidden 14023 14024 #line 4797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14025 WriteTo(__razor_helper_writer, RenderArticleGalleryModal(new ArticleGalleryModal())); 14026 14027 14028 #line default 14029 #line hidden 14030 14031 #line 4797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14032 14033 } 14034 14035 14036 #line default 14037 #line hidden 14038 }); 14039 14040 #line 4799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14041 } 14042 #line default 14043 #line hidden 14044 14045 14046 #line 4801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4808 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14130 } 14131 14132 14133 #line default 14134 #line hidden 14135 }); 14136 14137 #line 4814 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14138 } 14139 #line default 14140 #line hidden 14141 14142 14143 #line 4820 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4821 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4832 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14184 14185 14186 #line default 14187 #line hidden 14188 }); 14189 14190 #line 4834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14191 } 14192 #line default 14193 #line hidden 14194 14195 14196 #line 4836 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4861 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4861 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 232368), Tuple.Create("\"", 232388) 14270 14271 #line 4867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14272 , Tuple.Create(Tuple.Create("", 232375), Tuple.Create<System.Object, System.Int32>(settings.Alt 14273 14274 #line default 14275 #line hidden 14276 , 232375), false) 14277 ); 14278 14279 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n"); 14280 14281 14282 #line 4870 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4874 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 232797), Tuple.Create("\"", 232906) 14317 , Tuple.Create(Tuple.Create("", 232803), Tuple.Create("/Admin/Public/GetImage.ashx?Width=1000&Height=1000&Crop=5&Format=jpg&Resolution=2" + 14318 "0&Image=", 232803), true) 14319 14320 #line 4874 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14321 , Tuple.Create(Tuple.Create("", 232892), Tuple.Create<System.Object, System.Int32>(settings.Link 14322 14323 #line default 14324 #line hidden 14325 , 232892), false) 14326 ); 14327 14328 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n"); 14329 14330 14331 #line 4877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 233329), Tuple.Create("\"", 233349) 14366 14367 #line 4881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14368 , Tuple.Create(Tuple.Create("", 233336), Tuple.Create<System.Object, System.Int32>(settings.Alt 14369 14370 #line default 14371 #line hidden 14372 , 233336), false) 14373 ); 14374 14375 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n"); 14376 14377 14378 #line 4884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4888 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 233684), Tuple.Create("\"", 233704) 14410 14411 #line 4888 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14412 , Tuple.Create(Tuple.Create("", 233691), Tuple.Create<System.Object, System.Int32>(settings.Alt 14413 14414 #line default 14415 #line hidden 14416 , 233691), false) 14417 ); 14418 14419 WriteLiteralTo(__razor_helper_writer, "> \r\n </div>\r\n </div>\r\n"); 14420 14421 14422 #line 4891 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14423 break; 14424 } 14425 14426 14427 14428 #line default 14429 #line hidden 14430 }); 14431 14432 #line 4894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14433 } 14434 #line default 14435 #line hidden 14436 14437 14438 #line 4896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4897 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4900 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14463 14464 14465 #line default 14466 #line hidden 14467 14468 #line 4900 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4903 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4910 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4913 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4916 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4918 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4919 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14618 14619 14620 #line default 14621 #line hidden 14622 }); 14623 14624 #line 4923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14625 } 14626 #line default 14627 #line hidden 14628 14629 14630 #line 4925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14655 14656 14657 #line default 14658 #line hidden 14659 14660 #line 4929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4931 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4935 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4937 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4938 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4940 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4941 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4944 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4946 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14809 14810 14811 #line default 14812 #line hidden 14813 }); 14814 14815 #line 4951 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14816 } 14817 #line default 14818 #line hidden 14819 14820 14821 #line 4953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 4953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 236402), Tuple.Create("\"", 236461) 14876 , Tuple.Create(Tuple.Create("", 236408), Tuple.Create("https://www.youtube-nocookie.com/embed/", 236408), true) 14877 14878 #line 4981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14879 , Tuple.Create(Tuple.Create("", 236447), Tuple.Create<System.Object, System.Int32>(videoId 14880 14881 #line default 14882 #line hidden 14883 , 236447), false) 14884 , Tuple.Create(Tuple.Create("", 236455), Tuple.Create("?rel=0", 236455), 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 4985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 236873), Tuple.Create("\"", 236932) 14922 , Tuple.Create(Tuple.Create("", 236879), Tuple.Create("https://www.youtube-nocookie.com/embed/", 236879), true) 14923 14924 #line 4990 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14925 , Tuple.Create(Tuple.Create("", 236918), Tuple.Create<System.Object, System.Int32>(videoId 14926 14927 #line default 14928 #line hidden 14929 , 236918), false) 14930 , Tuple.Create(Tuple.Create("", 236926), Tuple.Create("?rel=0", 236926), 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 4994 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 237358), Tuple.Create("\"", 237417) 14968 , Tuple.Create(Tuple.Create("", 237364), Tuple.Create("https://www.youtube-nocookie.com/embed/", 237364), true) 14969 14970 #line 4999 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 14971 , Tuple.Create(Tuple.Create("", 237403), Tuple.Create<System.Object, System.Int32>(videoId 14972 14973 #line default 14974 #line hidden 14975 , 237403), false) 14976 , Tuple.Create(Tuple.Create("", 237411), Tuple.Create("?rel=0", 237411), 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 5003 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 237835), Tuple.Create("\"", 237894) 15014 , Tuple.Create(Tuple.Create("", 237841), Tuple.Create("https://www.youtube-nocookie.com/embed/", 237841), true) 15015 15016 #line 5008 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15017 , Tuple.Create(Tuple.Create("", 237880), Tuple.Create<System.Object, System.Int32>(videoId 15018 15019 #line default 15020 #line hidden 15021 , 237880), false) 15022 , Tuple.Create(Tuple.Create("", 237888), Tuple.Create("?rel=0", 237888), 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 5012 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15035 break; 15036 } 15037 15038 15039 15040 #line default 15041 #line hidden 15042 }); 15043 15044 #line 5015 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15045 } 15046 #line default 15047 #line hidden 15048 15049 15050 #line 5018 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 239432), Tuple.Create("\"", 239447) 15098 15099 #line 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15100 , Tuple.Create(Tuple.Create("", 239439), Tuple.Create<System.Object, System.Int32>(btnType 15101 15102 #line default 15103 #line hidden 15104 , 239439), false) 15105 ); 15106 15107 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 239448), Tuple.Create("\"", 239499) 15108 , Tuple.Create(Tuple.Create("", 239456), Tuple.Create("btn-", 239456), true) 15109 15110 #line 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15111 , Tuple.Create(Tuple.Create("", 239460), Tuple.Create<System.Object, System.Int32>(btnStyle 15112 15113 #line default 15114 #line hidden 15115 , 239460), false) 15116 , Tuple.Create(Tuple.Create("", 239469), Tuple.Create("--", 239469), true) 15117 15118 #line 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15119 , Tuple.Create(Tuple.Create("", 239471), Tuple.Create<System.Object, System.Int32>(btnTheme 15120 15121 #line default 15122 #line hidden 15123 , 239471), false) 15124 15125 #line 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15126 , Tuple.Create(Tuple.Create(" ", 239480), Tuple.Create<System.Object, System.Int32>(settings.CssClass 15127 15128 #line default 15129 #line hidden 15130 , 239481), false) 15131 ); 15132 15133 WriteLiteralTo(__razor_helper_writer, " "); 15134 15135 15136 #line 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15155 } 15156 15157 15158 #line default 15159 #line hidden 15160 }); 15161 15162 #line 5050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15163 } 15164 #line default 15165 #line hidden 15166 15167 15168 #line 5051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 240021), Tuple.Create("\"", 240041) 15188 15189 #line 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15190 , Tuple.Create(Tuple.Create("", 240028), Tuple.Create<System.Object, System.Int32>(settings.URL 15191 15192 #line default 15193 #line hidden 15194 , 240028), false) 15195 ); 15196 15197 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 240042), Tuple.Create("\"", 240099) 15198 , Tuple.Create(Tuple.Create("", 240050), Tuple.Create("btn", 240050), true) 15199 , Tuple.Create(Tuple.Create(" ", 240053), Tuple.Create("btn-", 240054), true) 15200 15201 #line 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15202 , Tuple.Create(Tuple.Create("", 240058), Tuple.Create<System.Object, System.Int32>(linkStyle 15203 15204 #line default 15205 #line hidden 15206 , 240058), false) 15207 , Tuple.Create(Tuple.Create("", 240068), Tuple.Create("--", 240068), true) 15208 15209 #line 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15210 , Tuple.Create(Tuple.Create("", 240070), Tuple.Create<System.Object, System.Int32>(linkTheme 15211 15212 #line default 15213 #line hidden 15214 , 240070), false) 15215 15216 #line 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15217 , Tuple.Create(Tuple.Create(" ", 240080), Tuple.Create<System.Object, System.Int32>(settings.CssClass 15218 15219 #line default 15220 #line hidden 15221 , 240081), false) 15222 ); 15223 15224 WriteLiteralTo(__razor_helper_writer, " "); 15225 15226 15227 #line 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5058 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15246 } 15247 15248 15249 #line default 15250 #line hidden 15251 }); 15252 15253 #line 5059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15254 } 15255 #line default 15256 #line hidden 15257 15258 15259 #line 5093 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5093 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 241834), Tuple.Create("\"", 241912) 15299 , Tuple.Create(Tuple.Create("", 241840), Tuple.Create("https://www.googletagmanager.com/ns.html?id=", 241840), true) 15300 15301 #line 5110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15302 , Tuple.Create(Tuple.Create("", 241884), Tuple.Create<System.Object, System.Int32>(areaInfo.GoogleTagManagerID 15303 15304 #line default 15305 #line hidden 15306 , 241884), 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 5114 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15321 } 15322 } 15323 15324 15325 #line default 15326 #line hidden 15327 }); 15328 15329 #line 5116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15330 } 15331 #line default 15332 #line hidden 15333 15334 15335 #line 5118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5133 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 242942), Tuple.Create("\"", 243027) 15382 , Tuple.Create(Tuple.Create("", 242948), Tuple.Create("https://www.facebook.com/tr?id=", 242948), true) 15383 15384 #line 5136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15385 , Tuple.Create(Tuple.Create("", 242979), Tuple.Create<System.Object, System.Int32>(areaInfo.FacebookPixelID 15386 15387 #line default 15388 #line hidden 15389 , 242979), false) 15390 , Tuple.Create(Tuple.Create("", 243004), Tuple.Create("&ev=PageView&noscript=1", 243004), true) 15391 ); 15392 15393 WriteLiteralTo(__razor_helper_writer, " alt=\"\""); 15394 15395 WriteLiteralTo(__razor_helper_writer, " /></noscript>\r\n"); 15396 15397 15398 #line 5137 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15399 } 15400 15401 15402 #line default 15403 #line hidden 15404 }); 15405 15406 #line 5138 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15407 } 15408 #line default 15409 #line hidden 15410 15411 15412 #line 5161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15478 15479 15480 #line default 15481 #line hidden 15482 15483 #line 5198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 245745), Tuple.Create("\"", 245775) 15497 15498 #line 5201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15499 , Tuple.Create(Tuple.Create("", 245752), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink 15500 15501 #line default 15502 #line hidden 15503 , 245752), 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 5202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 246064), Tuple.Create("\"", 246107) 15533 15534 #line 5202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15535 , Tuple.Create(Tuple.Create("", 246070), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo) 15536 15537 #line default 15538 #line hidden 15539 , 246070), false) 15540 ); 15541 15542 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n </div>\r\n"); 15543 15544 15545 #line 5205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5216 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 247492), Tuple.Create("\"", 247516) 15688 15689 #line 5221 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15690 , Tuple.Create(Tuple.Create("", 247500), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId 15691 15692 #line default 15693 #line hidden 15694 , 247500), 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=\"", 247819), Tuple.Create("\"", 247865) 15724 15725 #line 5224 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15726 , Tuple.Create(Tuple.Create("", 247827), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email) 15727 15728 #line default 15729 #line hidden 15730 , 247827), 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=\"", 248001), Tuple.Create("\"", 248050) 15746 15747 #line 5225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15748 , Tuple.Create(Tuple.Create("", 248009), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password) 15749 15750 #line default 15751 #line hidden 15752 , 248009), 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 5229 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 248665), Tuple.Create("\"", 248704) 15804 15805 #line 5233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15806 , Tuple.Create(Tuple.Create("", 248672), Tuple.Create<System.Object, System.Int32>(areaInfo.ForgotPasswordPageLink 15807 15808 #line default 15809 #line hidden 15810 , 248672), false) 15811 ); 15812 15813 WriteLiteralTo(__razor_helper_writer, " class=\"forgot--password\""); 15814 15815 WriteLiteralTo(__razor_helper_writer, ">"); 15816 15817 15818 #line 5233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 249026), Tuple.Create("\"", 249084) 15838 15839 #line 5239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15840 , Tuple.Create(Tuple.Create("", 249035), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 15841 15842 #line default 15843 #line hidden 15844 , 249035), false) 15845 15846 #line 5239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15847 , Tuple.Create(Tuple.Create("", 249054), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID 15848 15849 #line default 15850 #line hidden 15851 , 249054), 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 5239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 249460), Tuple.Create("\"", 249496) 15895 15896 #line 5241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15897 , Tuple.Create(Tuple.Create("", 249468), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCountryCode 15898 15899 #line default 15900 #line hidden 15901 , 249468), 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=\"", 249583), Tuple.Create("\"", 249651) 15911 15912 #line 5242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15913 , Tuple.Create(Tuple.Create("", 249591), Tuple.Create<System.Object, System.Int32>(countryService.GetCountry(cultureInfo.EcomCountryCode).Name 15914 15915 #line default 15916 #line hidden 15917 , 249591), 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=\"", 249739), Tuple.Create("\"", 249774) 15927 15928 #line 5243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15929 , Tuple.Create(Tuple.Create("", 249747), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCurrencyId 15930 15931 #line default 15932 #line hidden 15933 , 249747), 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=\"", 249860), Tuple.Create("\"", 249891) 15943 15944 #line 5244 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15945 , Tuple.Create(Tuple.Create("", 249868), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomShopId 15946 15947 #line default 15948 #line hidden 15949 , 249868), 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=\"", 250228), Tuple.Create("\"", 250277) 15981 15982 #line 5249 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 15983 , Tuple.Create(Tuple.Create("", 250236), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LastName) 15984 15985 #line default 15986 #line hidden 15987 , 250236), false) 15988 ); 15989 15990 WriteLiteralTo(__razor_helper_writer, " data-error-message=\""); 15991 15992 15993 #line 5249 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 250485), Tuple.Create("\"", 250535) 16012 16013 #line 5250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16014 , Tuple.Create(Tuple.Create("", 250493), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.FirstName) 16015 16016 #line default 16017 #line hidden 16018 , 250493), false) 16019 ); 16020 16021 WriteLiteralTo(__razor_helper_writer, " data-error-message=\""); 16022 16023 16024 #line 5250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 250743), Tuple.Create("\"", 250789) 16043 16044 #line 5252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16045 , Tuple.Create(Tuple.Create("", 250751), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email) 16046 16047 #line default 16048 #line hidden 16049 , 250751), 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 5252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 251000), Tuple.Create("\"", 251049) 16076 16077 #line 5253 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16078 , Tuple.Create(Tuple.Create("", 251008), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password) 16079 16080 #line default 16081 #line hidden 16082 , 251008), 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 5253 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 251275), Tuple.Create("\"", 251331) 16109 16110 #line 5254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16111 , Tuple.Create(Tuple.Create("", 251283), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ConfirmPassword) 16112 16113 #line default 16114 #line hidden 16115 , 251283), 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 5254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 251681), Tuple.Create("\"", 251788) 16159 16160 #line 5257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16161 , Tuple.Create(Tuple.Create("", 251688), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 16162 16163 #line default 16164 #line hidden 16165 , 251688), false) 16166 16167 #line 5257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16168 , Tuple.Create(Tuple.Create("", 251707), Tuple.Create<System.Object, System.Int32>(areaInfo.TermsAndConditions.ID 16169 16170 #line default 16171 #line hidden 16172 , 251707), false) 16173 , Tuple.Create(Tuple.Create("", 251738), Tuple.Create("&LayoutTemplate=Designs/", 251738), true) 16174 16175 #line 5257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16176 , Tuple.Create(Tuple.Create("", 251762), Tuple.Create<System.Object, System.Int32>(DesignFolder 16177 16178 #line default 16179 #line hidden 16180 , 251762), false) 16181 , Tuple.Create(Tuple.Create("", 251775), Tuple.Create("/clean.cshtml", 251775), true) 16182 ); 16183 16184 WriteLiteralTo(__razor_helper_writer, " id=\"asyncTerms\""); 16185 16186 WriteLiteralTo(__razor_helper_writer, "><span>"); 16187 16188 16189 #line 5257 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 252341), Tuple.Create("\"", 252430) 16227 16228 #line 5265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16229 , Tuple.Create(Tuple.Create("", 252350), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 16230 16231 #line default 16232 #line hidden 16233 , 252350), false) 16234 16235 #line 5265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16236 , Tuple.Create(Tuple.Create("", 252369), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("CreateDesignerAccount").ToString() 16237 16238 #line default 16239 #line hidden 16240 , 252369), 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 5265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 252806), Tuple.Create("\"", 252842) 16284 16285 #line 5267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16286 , Tuple.Create(Tuple.Create("", 252814), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCountryCode 16287 16288 #line default 16289 #line hidden 16290 , 252814), 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=\"", 252929), Tuple.Create("\"", 252997) 16300 16301 #line 5268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16302 , Tuple.Create(Tuple.Create("", 252937), Tuple.Create<System.Object, System.Int32>(countryService.GetCountry(cultureInfo.EcomCountryCode).Name 16303 16304 #line default 16305 #line hidden 16306 , 252937), 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=\"", 253085), Tuple.Create("\"", 253120) 16316 16317 #line 5269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16318 , Tuple.Create(Tuple.Create("", 253093), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomCurrencyId 16319 16320 #line default 16321 #line hidden 16322 , 253093), 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=\"", 253206), Tuple.Create("\"", 253237) 16332 16333 #line 5270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16334 , Tuple.Create(Tuple.Create("", 253214), Tuple.Create<System.Object, System.Int32>(cultureInfo.EcomShopId 16335 16336 #line default 16337 #line hidden 16338 , 253214), 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=\"", 253574), Tuple.Create("\"", 253623) 16370 16371 #line 5275 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16372 , Tuple.Create(Tuple.Create("", 253582), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LastName) 16373 16374 #line default 16375 #line hidden 16376 , 253582), false) 16377 ); 16378 16379 WriteLiteralTo(__razor_helper_writer, " data-error-message=\""); 16380 16381 16382 #line 5275 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 253831), Tuple.Create("\"", 253881) 16401 16402 #line 5276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16403 , Tuple.Create(Tuple.Create("", 253839), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.FirstName) 16404 16405 #line default 16406 #line hidden 16407 , 253839), false) 16408 ); 16409 16410 WriteLiteralTo(__razor_helper_writer, " data-error-message=\""); 16411 16412 16413 #line 5276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 254089), Tuple.Create("\"", 254135) 16432 16433 #line 5278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16434 , Tuple.Create(Tuple.Create("", 254097), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Email) 16435 16436 #line default 16437 #line hidden 16438 , 254097), 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 5278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 254346), Tuple.Create("\"", 254395) 16465 16466 #line 5279 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16467 , Tuple.Create(Tuple.Create("", 254354), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.Password) 16468 16469 #line default 16470 #line hidden 16471 , 254354), 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 5279 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 254621), Tuple.Create("\"", 254677) 16498 16499 #line 5280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16500 , Tuple.Create(Tuple.Create("", 254629), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ConfirmPassword) 16501 16502 #line default 16503 #line hidden 16504 , 254629), 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 5280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 255027), Tuple.Create("\"", 255134) 16548 16549 #line 5283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16550 , Tuple.Create(Tuple.Create("", 255034), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 16551 16552 #line default 16553 #line hidden 16554 , 255034), false) 16555 16556 #line 5283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16557 , Tuple.Create(Tuple.Create("", 255053), Tuple.Create<System.Object, System.Int32>(areaInfo.TermsAndConditions.ID 16558 16559 #line default 16560 #line hidden 16561 , 255053), false) 16562 , Tuple.Create(Tuple.Create("", 255084), Tuple.Create("&LayoutTemplate=Designs/", 255084), true) 16563 16564 #line 5283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16565 , Tuple.Create(Tuple.Create("", 255108), Tuple.Create<System.Object, System.Int32>(DesignFolder 16566 16567 #line default 16568 #line hidden 16569 , 255108), false) 16570 , Tuple.Create(Tuple.Create("", 255121), Tuple.Create("/clean.cshtml", 255121), true) 16571 ); 16572 16573 WriteLiteralTo(__razor_helper_writer, " id=\"asyncTerms\""); 16574 16575 WriteLiteralTo(__razor_helper_writer, "><span>"); 16576 16577 16578 #line 5283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 5294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16607 16608 16609 16610 #line default 16611 #line hidden 16612 }); 16613 16614 #line 5295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16615 } 16616 #line default 16617 #line hidden 16618 16619 16620 #line 5308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16662 } 16663 #line default 16664 #line hidden 16665 16666 16667 #line 5509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16697 } 16698 #line default 16699 #line hidden 16700 16701 16702 #line 5514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16741 } 16742 #line default 16743 #line hidden 16744 16745 16746 #line 5521 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16775 } 16776 #line default 16777 #line hidden 16778 16779 16780 #line 5527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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&amp;crop=5&amp;Compression=75&amp;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=\"", 264747), Tuple.Create("\"", 264783) 16824 , Tuple.Create(Tuple.Create("", 264754), Tuple.Create("/Default.aspx?ID=", 264754), true) 16825 16826 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16827 , Tuple.Create(Tuple.Create("", 264771), Tuple.Create<System.Object, System.Int32>(firstPageId 16828 16829 #line default 16830 #line hidden 16831 , 264771), 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=\"", 264817), Tuple.Create("\"", 264834) 16839 16840 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16841 , Tuple.Create(Tuple.Create("", 264823), Tuple.Create<System.Object, System.Int32>(mobileLogo 16842 16843 #line default 16844 #line hidden 16845 , 264823), false) 16846 ); 16847 16848 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 264835), Tuple.Create("\"", 264854) 16849 16850 #line 5554 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16851 , Tuple.Create(Tuple.Create("", 264841), Tuple.Create<System.Object, System.Int32>(businessName 16852 16853 #line default 16854 #line hidden 16855 , 264841), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16895 } 16896 #line default 16897 #line hidden 16898 16899 16900 #line 5567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 16926 16927 16928 #line default 16929 #line hidden 16930 16931 #line 5572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 265598), Tuple.Create("\"", 265632) 16941 , Tuple.Create(Tuple.Create("", 265605), Tuple.Create("tel:", 265605), true) 16942 16943 #line 5574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16944 , Tuple.Create(Tuple.Create("", 265609), Tuple.Create<System.Object, System.Int32>(areaInfo.ContactNumber 16945 16946 #line default 16947 #line hidden 16948 , 265609), 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=\"", 265670), Tuple.Create("\"", 265737) 16956 , Tuple.Create(Tuple.Create("", 265676), Tuple.Create("/Files/Templates/Designs/", 265676), true) 16957 16958 #line 5574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 16959 , Tuple.Create(Tuple.Create("", 265701), Tuple.Create<System.Object, System.Int32>(DesignFolder 16960 16961 #line default 16962 #line hidden 16963 , 265701), false) 16964 , Tuple.Create(Tuple.Create("", 265714), Tuple.Create("/icons/default/call.svg", 265714), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 265908), Tuple.Create("\"", 265944) 16998 , Tuple.Create(Tuple.Create("", 265915), Tuple.Create("mailto:", 265915), true) 16999 17000 #line 5578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17001 , Tuple.Create(Tuple.Create("", 265922), Tuple.Create<System.Object, System.Int32>(areaInfo.ContactEmail 17002 17003 #line default 17004 #line hidden 17005 , 265922), 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=\"", 265982), Tuple.Create("\"", 266049) 17013 , Tuple.Create(Tuple.Create("", 265988), Tuple.Create("/Files/Templates/Designs/", 265988), true) 17014 17015 #line 5578 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17016 , Tuple.Create(Tuple.Create("", 266013), Tuple.Create<System.Object, System.Int32>(DesignFolder 17017 17018 #line default 17019 #line hidden 17020 , 266013), false) 17021 , Tuple.Create(Tuple.Create("", 266026), Tuple.Create("/icons/default/mail.svg", 266026), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17053 } 17054 #line default 17055 #line hidden 17056 17057 17058 #line 5584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17102 } 17103 #line default 17104 #line hidden 17105 17106 17107 #line 5596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 270607), Tuple.Create("\"", 270629) 17184 17185 #line 5656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17186 , Tuple.Create(Tuple.Create("", 270615), Tuple.Create<System.Object, System.Int32>(menuLinkClass 17187 17188 #line default 17189 #line hidden 17190 , 270615), 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\DynamicArticle.parsed.cshtml" 17197 17198 17199 #line default 17200 #line hidden 17201 17202 #line 5657 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 270903), Tuple.Create("\"", 270945) 17231 , Tuple.Create(Tuple.Create("", 270910), Tuple.Create("/default.aspx?ID=", 270910), true) 17232 17233 #line 5663 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17234 , Tuple.Create(Tuple.Create("", 270927), Tuple.Create<System.Object, System.Int32>(myDashboardPageId 17235 17236 #line default 17237 #line hidden 17238 , 270927), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17267 } 17268 #line default 17269 #line hidden 17270 17271 17272 #line 5669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 271212), Tuple.Create("\"", 271321) 17291 17292 #line 5672 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17293 , Tuple.Create(Tuple.Create("", 271220), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue 17294 17295 #line default 17296 #line hidden 17297 , 271220), false) 17298 , Tuple.Create(Tuple.Create(" ", 271313), Tuple.Create("fa-1_5x", 271314), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17312 } 17313 #line default 17314 #line hidden 17315 17316 17317 #line 5677 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17362 } 17363 #line default 17364 #line hidden 17365 17366 17367 #line 5689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 274659), Tuple.Create("\"", 274691) 17441 17442 #line 5742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17443 , Tuple.Create(Tuple.Create("", 274673), Tuple.Create<System.Object, System.Int32>(searchPlaceholder 17444 17445 #line default 17446 #line hidden 17447 , 274673), false) 17448 ); 17449 17450 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 274692), Tuple.Create("\"", 274712) 17451 17452 #line 5742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17453 , Tuple.Create(Tuple.Create("", 274700), Tuple.Create<System.Object, System.Int32>(searchValue 17454 17455 #line default 17456 #line hidden 17457 , 274700), 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=\"", 275638), Tuple.Create("\"", 275739) 17469 17470 #line 5754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17471 , Tuple.Create(Tuple.Create("", 275646), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue 17472 17473 #line default 17474 #line hidden 17475 , 275646), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17509 } 17510 #line default 17511 #line hidden 17512 17513 17514 #line 5768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17568 } 17569 #line default 17570 #line hidden 17571 17572 17573 #line 5784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 277102), Tuple.Create("\"", 277169) 17648 , Tuple.Create(Tuple.Create("", 277108), Tuple.Create("/Files/Templates/Designs/", 277108), true) 17649 17650 #line 5793 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17651 , Tuple.Create(Tuple.Create("", 277133), Tuple.Create<System.Object, System.Int32>(DesignFolder 17652 17653 #line default 17654 #line hidden 17655 , 277133), false) 17656 , Tuple.Create(Tuple.Create("", 277146), Tuple.Create("/icons/default/menu.svg", 277146), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17670 } 17671 #line default 17672 #line hidden 17673 17674 17675 #line 5797 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 277417), Tuple.Create("\"", 277486) 17701 , Tuple.Create(Tuple.Create("", 277423), Tuple.Create("/Files/Templates/Designs/", 277423), true) 17702 17703 #line 5799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17704 , Tuple.Create(Tuple.Create("", 277448), Tuple.Create<System.Object, System.Int32>(DesignFolder 17705 17706 #line default 17707 #line hidden 17708 , 277448), false) 17709 , Tuple.Create(Tuple.Create("", 277461), Tuple.Create("/icons/default/search.svg", 277461), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17723 } 17724 #line default 17725 #line hidden 17726 17727 17728 #line 5802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 277649), Tuple.Create("\"", 277661) 17747 17748 #line 5804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17749 , Tuple.Create(Tuple.Create("", 277656), Tuple.Create<System.Object, System.Int32>(link 17750 17751 #line default 17752 #line hidden 17753 , 277656), 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\DynamicArticle.parsed.cshtml" 17762 17763 17764 #line default 17765 #line hidden 17766 17767 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 277736), Tuple.Create("\"", 277747) 17775 17776 #line 5805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17777 , Tuple.Create(Tuple.Create("", 277742), Tuple.Create<System.Object, System.Int32>(icon 17778 17779 #line default 17780 #line hidden 17781 , 277742), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17812 } 17813 #line default 17814 #line hidden 17815 17816 17817 #line 5810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 278290), Tuple.Create("\"", 278360) 17855 , Tuple.Create(Tuple.Create("", 278296), Tuple.Create("/Files/Templates/Designs/", 278296), true) 17856 17857 #line 5824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17858 , Tuple.Create(Tuple.Create("", 278321), Tuple.Create<System.Object, System.Int32>(DesignFolder 17859 17860 #line default 17861 #line hidden 17862 , 278321), false) 17863 , Tuple.Create(Tuple.Create("", 278334), Tuple.Create("/icons/default/account.svg", 278334), 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=\"", 278543), Tuple.Create("\"", 278599) 17881 17882 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17883 , Tuple.Create(Tuple.Create("", 278550), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 17884 17885 #line default 17886 #line hidden 17887 , 278550), false) 17888 17889 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17890 , Tuple.Create(Tuple.Create("", 278569), Tuple.Create<System.Object, System.Int32>(areaInfo.SignInProfilePage.ID 17891 17892 #line default 17893 #line hidden 17894 , 278569), 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=\"", 278661), Tuple.Create("\"", 278707) 17900 17901 #line 5828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17902 , Tuple.Create(Tuple.Create("", 278669), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.LogIn) 17903 17904 #line default 17905 #line hidden 17906 , 278669), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 17928 17929 17930 #line default 17931 #line hidden 17932 17933 #line 5830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 279085), Tuple.Create("\"", 279141) 17948 17949 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17950 , Tuple.Create(Tuple.Create("", 279092), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 17951 17952 #line default 17953 #line hidden 17954 , 279092), false) 17955 17956 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17957 , Tuple.Create(Tuple.Create("", 279111), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID 17958 17959 #line default 17960 #line hidden 17961 , 279111), 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=\"", 279225), Tuple.Create("\"", 279299) 17971 , Tuple.Create(Tuple.Create("", 279231), Tuple.Create("/Files/Templates/Designs/", 279231), true) 17972 17973 #line 5835 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 17974 , Tuple.Create(Tuple.Create("", 279256), Tuple.Create<System.Object, System.Int32>(DesignFolder 17975 17976 #line default 17977 #line hidden 17978 , 279256), false) 17979 , Tuple.Create(Tuple.Create("", 279269), Tuple.Create("/icons/default/account_add.svg", 279269), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 279827), Tuple.Create("\"", 279897) 18035 , Tuple.Create(Tuple.Create("", 279833), Tuple.Create("/Files/Templates/Designs/", 279833), true) 18036 18037 #line 5847 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18038 , Tuple.Create(Tuple.Create("", 279858), Tuple.Create<System.Object, System.Int32>(DesignFolder 18039 18040 #line default 18041 #line hidden 18042 , 279858), false) 18043 , Tuple.Create(Tuple.Create("", 279871), Tuple.Create("/icons/default/account.svg", 279871), 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=\"", 280080), Tuple.Create("\"", 280140) 18061 , Tuple.Create(Tuple.Create("", 280087), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 280087), true) 18062 18063 #line 5851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18064 , Tuple.Create(Tuple.Create("", 280124), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId 18065 18066 #line default 18067 #line hidden 18068 , 280124), 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=\"", 280194), Tuple.Create("\"", 280242) 18074 18075 #line 5851 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18076 , Tuple.Create(Tuple.Create("", 280202), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.SignOut) 18077 18078 #line default 18079 #line hidden 18080 , 280202), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18100 18101 18102 #line default 18103 #line hidden 18104 18105 #line 5853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18219 } 18220 #line default 18221 #line hidden 18222 18223 18224 #line 5895 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18253 18254 18255 #line default 18256 #line hidden 18257 18258 #line 6030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18269 18270 18271 #line default 18272 #line hidden 18273 18274 #line 6033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18298 } 18299 #line default 18300 #line hidden 18301 18302 18303 #line 6038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 288779), Tuple.Create("\"", 288804) 18331 18332 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18333 , Tuple.Create(Tuple.Create("", 288786), Tuple.Create<System.Object, System.Int32>(myProfilePageLink 18334 18335 #line default 18336 #line hidden 18337 , 288786), false) 18338 ); 18339 18340 WriteLiteralTo(__razor_helper_writer, "><i"); 18341 18342 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 288808), Tuple.Create("\"", 288939) 18343 18344 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18345 , Tuple.Create(Tuple.Create("", 288816), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue 18346 18347 #line default 18348 #line hidden 18349 , 288816), false) 18350 , Tuple.Create(Tuple.Create(" ", 288916), Tuple.Create("menu-mobile__link-icon", 288917), true) 18351 ); 18352 18353 WriteLiteralTo(__razor_helper_writer, "></i> "); 18354 18355 18356 #line 6050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18373 } 18374 #line default 18375 #line hidden 18376 18377 18378 #line 6055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18465 } 18466 #line default 18467 #line hidden 18468 18469 18470 #line 6099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18509 } 18510 #line default 18511 #line hidden 18512 18513 18514 #line 6108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 291562), Tuple.Create("\"", 291693) 18542 18543 #line 6111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18544 , Tuple.Create(Tuple.Create("", 291570), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue 18545 18546 #line default 18547 #line hidden 18548 , 291570), false) 18549 , Tuple.Create(Tuple.Create(" ", 291670), Tuple.Create("menu-mobile__link-icon", 291671), true) 18550 ); 18551 18552 WriteLiteralTo(__razor_helper_writer, "></i> "); 18553 18554 18555 #line 6111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18572 } 18573 #line default 18574 #line hidden 18575 18576 18577 #line 6115 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 291925), Tuple.Create("\"", 291969) 18599 , Tuple.Create(Tuple.Create("", 291932), Tuple.Create("/Default.aspx?ID=", 291932), true) 18600 18601 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18602 , Tuple.Create(Tuple.Create("", 291949), Tuple.Create<System.Object, System.Int32>(createAccountPageId 18603 18604 #line default 18605 #line hidden 18606 , 291949), false) 18607 ); 18608 18609 WriteLiteralTo(__razor_helper_writer, "><i"); 18610 18611 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 291973), Tuple.Create("\"", 292104) 18612 18613 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18614 , Tuple.Create(Tuple.Create("", 291981), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue 18615 18616 #line default 18617 #line hidden 18618 , 291981), false) 18619 , Tuple.Create(Tuple.Create(" ", 292081), Tuple.Create("menu-mobile__link-icon", 292082), true) 18620 ); 18621 18622 WriteLiteralTo(__razor_helper_writer, "></i> "); 18623 18624 18625 #line 6120 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18642 } 18643 #line default 18644 #line hidden 18645 18646 18647 #line 6124 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 292601), Tuple.Create("\"", 292626) 18672 18673 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18674 , Tuple.Create(Tuple.Create("", 292608), Tuple.Create<System.Object, System.Int32>(myProfilePageLink 18675 18676 #line default 18677 #line hidden 18678 , 292608), false) 18679 ); 18680 18681 WriteLiteralTo(__razor_helper_writer, "><i"); 18682 18683 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 292630), Tuple.Create("\"", 292761) 18684 18685 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18686 , Tuple.Create(Tuple.Create("", 292638), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SignInProfileIcon").SelectedValue 18687 18688 #line default 18689 #line hidden 18690 , 292638), false) 18691 , Tuple.Create(Tuple.Create(" ", 292738), Tuple.Create("menu-mobile__link-icon", 292739), true) 18692 ); 18693 18694 WriteLiteralTo(__razor_helper_writer, "></i> "); 18695 18696 18697 #line 6132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18714 } 18715 #line default 18716 #line hidden 18717 18718 18719 #line 6136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 293263), Tuple.Create("\"", 293287) 18741 18742 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18743 , Tuple.Create(Tuple.Create("", 293270), Tuple.Create<System.Object, System.Int32>(myOrdersPageLink 18744 18745 #line default 18746 #line hidden 18747 , 293270), false) 18748 ); 18749 18750 WriteLiteralTo(__razor_helper_writer, "><i"); 18751 18752 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 293291), Tuple.Create("\"", 293333) 18753 18754 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18755 , Tuple.Create(Tuple.Create("", 293299), Tuple.Create<System.Object, System.Int32>(ordersIcon 18756 18757 #line default 18758 #line hidden 18759 , 293299), false) 18760 , Tuple.Create(Tuple.Create(" ", 293310), Tuple.Create("menu-mobile__link-icon", 293311), true) 18761 ); 18762 18763 WriteLiteralTo(__razor_helper_writer, "></i> "); 18764 18765 18766 #line 6145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18783 } 18784 #line default 18785 #line hidden 18786 18787 18788 #line 6149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 294053), Tuple.Create("\"", 294080) 18811 18812 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18813 , Tuple.Create(Tuple.Create("", 294060), Tuple.Create<System.Object, System.Int32>(myFavoritesPageLink 18814 18815 #line default 18816 #line hidden 18817 , 294060), false) 18818 ); 18819 18820 WriteLiteralTo(__razor_helper_writer, "><i"); 18821 18822 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 294084), Tuple.Create("\"", 294129) 18823 18824 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18825 , Tuple.Create(Tuple.Create("", 294092), Tuple.Create<System.Object, System.Int32>(favoritesIcon 18826 18827 #line default 18828 #line hidden 18829 , 294092), false) 18830 , Tuple.Create(Tuple.Create(" ", 294106), Tuple.Create("menu-mobile__link-icon", 294107), true) 18831 ); 18832 18833 WriteLiteralTo(__razor_helper_writer, "></i> "); 18834 18835 18836 #line 6159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18853 } 18854 #line default 18855 #line hidden 18856 18857 18858 #line 6163 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 294852), Tuple.Create("\"", 294880) 18880 18881 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18882 , Tuple.Create(Tuple.Create("", 294859), Tuple.Create<System.Object, System.Int32>(mySavedCardsPageLink 18883 18884 #line default 18885 #line hidden 18886 , 294859), false) 18887 ); 18888 18889 WriteLiteralTo(__razor_helper_writer, "><i"); 18890 18891 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 294884), Tuple.Create("\"", 294930) 18892 18893 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18894 , Tuple.Create(Tuple.Create("", 294892), Tuple.Create<System.Object, System.Int32>(savedCardsIcon 18895 18896 #line default 18897 #line hidden 18898 , 294892), false) 18899 , Tuple.Create(Tuple.Create(" ", 294907), Tuple.Create("menu-mobile__link-icon", 294908), true) 18900 ); 18901 18902 WriteLiteralTo(__razor_helper_writer, "></i> "); 18903 18904 18905 #line 6172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18922 } 18923 #line default 18924 #line hidden 18925 18926 18927 #line 6176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 295342), Tuple.Create("\"", 295393) 18946 , Tuple.Create(Tuple.Create("", 295349), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 295349), true) 18947 18948 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18949 , Tuple.Create(Tuple.Create("", 295386), Tuple.Create<System.Object, System.Int32>(pageId 18950 18951 #line default 18952 #line hidden 18953 , 295386), false) 18954 ); 18955 18956 WriteLiteralTo(__razor_helper_writer, "><i"); 18957 18958 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 295397), Tuple.Create("\"", 295440) 18959 18960 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 18961 , Tuple.Create(Tuple.Create("", 295405), Tuple.Create<System.Object, System.Int32>(signOutIcon 18962 18963 #line default 18964 #line hidden 18965 , 295405), false) 18966 , Tuple.Create(Tuple.Create(" ", 295417), Tuple.Create("menu-mobile__link-icon", 295418), true) 18967 ); 18968 18969 WriteLiteralTo(__razor_helper_writer, "></i> "); 18970 18971 18972 #line 6182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 18989 } 18990 #line default 18991 #line hidden 18992 18993 18994 #line 6186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19022 19023 19024 #line default 19025 #line hidden 19026 19027 #line 6200 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 296260), Tuple.Create("\"", 296386) 19081 19082 #line 6209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19083 , Tuple.Create(Tuple.Create("", 296268), Tuple.Create<System.Object, System.Int32>(Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("LanguageIcon").SelectedValue 19084 19085 #line default 19086 #line hidden 19087 , 296268), false) 19088 , Tuple.Create(Tuple.Create(" ", 296363), Tuple.Create("menu-mobile__link-icon", 296364), true) 19089 ); 19090 19091 WriteLiteralTo(__razor_helper_writer, "></i> "); 19092 19093 19094 #line 6209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19108 19109 19110 #line default 19111 #line hidden 19112 19113 #line 6213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 297196), Tuple.Create("\"", 297233) 19175 , Tuple.Create(Tuple.Create("", 297203), Tuple.Create("/Default.aspx?ID=", 297203), true) 19176 19177 #line 6226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19178 , Tuple.Create(Tuple.Create("", 297220), Tuple.Create<System.Object, System.Int32>(lang.Page.ID 19179 19180 #line default 19181 #line hidden 19182 , 297220), false) 19183 ); 19184 19185 WriteLiteralTo(__razor_helper_writer, ">"); 19186 19187 19188 #line 6226 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19214 } 19215 #line default 19216 #line hidden 19217 19218 19219 #line 6233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19242 19243 19244 #line default 19245 #line hidden 19246 19247 #line 6236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 298258), Tuple.Create("\"", 298326) 19275 , Tuple.Create(Tuple.Create("", 298266), Tuple.Create("menu-mobile__item", 298266), true) 19276 19277 #line 6256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19278 , Tuple.Create(Tuple.Create(" ", 298283), Tuple.Create<System.Object, System.Int32>(node.InPath ? "menu__item--active" : "" 19279 19280 #line default 19281 #line hidden 19282 , 298284), 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=\"", 298405), Tuple.Create("\"", 298422) 19292 19293 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19294 , Tuple.Create(Tuple.Create("", 298412), Tuple.Create<System.Object, System.Int32>(node.Link 19295 19296 #line default 19297 #line hidden 19298 , 298412), false) 19299 ); 19300 19301 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 298423), Tuple.Create("\"", 298532) 19302 , Tuple.Create(Tuple.Create("", 298431), Tuple.Create("menu-mobile__link", 298431), true) 19303 , Tuple.Create(Tuple.Create(" ", 298448), Tuple.Create("text-decoration-none", 298449), true) 19304 , Tuple.Create(Tuple.Create(" ", 298469), Tuple.Create("menu-mobile__link--level-", 298470), true) 19305 19306 #line 6258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19307 , Tuple.Create(Tuple.Create("", 298495), Tuple.Create<System.Object, System.Int32>(level 19308 19309 #line default 19310 #line hidden 19311 , 298495), false) 19312 , Tuple.Create(Tuple.Create(" ", 298503), Tuple.Create("py-2", 298504), true) 19313 , Tuple.Create(Tuple.Create(" ", 298508), Tuple.Create("flex-wrap", 298509), true) 19314 , Tuple.Create(Tuple.Create(" ", 298518), Tuple.Create("space-between", 298519), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19374 } 19375 #line default 19376 #line hidden 19377 19378 19379 #line 6280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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) + "&amp;crop=5&amp;Compression=75&amp;image=" + areaInfo.Logo; 19404 logo = "/Admin/Public/GetImage.ashx?width=100&height=99&amp;crop=5&amp;Compression=75&amp;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=\"", 303491), Tuple.Create("\"", 303521) 19418 19419 #line 6410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19420 , Tuple.Create(Tuple.Create("", 303498), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink 19421 19422 #line default 19423 #line hidden 19424 , 303498), false) 19425 ); 19426 19427 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 303522), Tuple.Create("\"", 303564) 19428 , Tuple.Create(Tuple.Create("", 303530), Tuple.Create("header__logo", 303530), true) 19429 , Tuple.Create(Tuple.Create(" ", 303542), Tuple.Create("block", 303543), true) 19430 19431 #line 6410 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19432 , Tuple.Create(Tuple.Create(" ", 303548), Tuple.Create<System.Object, System.Int32>(cssClassCustom 19433 19434 #line default 19435 #line hidden 19436 , 303549), 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=\"", 303633), Tuple.Create("\"", 303653) 19448 19449 #line 6411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19450 , Tuple.Create(Tuple.Create("", 303639), Tuple.Create<System.Object, System.Int32>(areaInfo.Logo 19451 19452 #line default 19453 #line hidden 19454 , 303639), false) 19455 ); 19456 19457 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 303654), Tuple.Create("\"", 303697) 19458 19459 #line 6411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19460 , Tuple.Create(Tuple.Create("", 303660), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo) 19461 19462 #line default 19463 #line hidden 19464 , 303660), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19478 } 19479 #line default 19480 #line hidden 19481 19482 19483 #line 6435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19543 } 19544 #line default 19545 #line hidden 19546 19547 19548 #line 6457 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 305118), Tuple.Create("\"", 305224) 19566 19567 #line 6461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19568 , Tuple.Create(Tuple.Create("", 305126), Tuple.Create<System.Object, System.Int32>(level == 1 ? "nav--primary" : "megamenu__nav" 19569 19570 #line default 19571 #line hidden 19572 , 305126), false) 19573 , Tuple.Create(Tuple.Create(" ", 305174), Tuple.Create("menu-level-", 305175), true) 19574 19575 #line 6461 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19576 , Tuple.Create(Tuple.Create("", 305186), Tuple.Create<System.Object, System.Int32>(level 19577 19578 #line default 19579 #line hidden 19580 , 305186), false) 19581 , Tuple.Create(Tuple.Create(" ", 305194), Tuple.Create("flex-wrap", 305195), true) 19582 , Tuple.Create(Tuple.Create(" ", 305204), Tuple.Create("align-items-center", 305206), 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\DynamicArticle.parsed.cshtml" 19589 19590 19591 #line default 19592 #line hidden 19593 19594 #line 6462 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 305287), Tuple.Create("\"", 305317) 19607 19608 #line 6463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19609 , Tuple.Create(Tuple.Create("", 305294), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink 19610 19611 #line default 19612 #line hidden 19613 , 305294), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 305609), Tuple.Create("\"", 305671) 19654 19655 #line 6470 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19656 , Tuple.Create(Tuple.Create("", 305617), Tuple.Create<System.Object, System.Int32>(level == 1 && children.Any() ? "megamenu__nav" : "" 19657 19658 #line default 19659 #line hidden 19660 , 305617), false) 19661 ); 19662 19663 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 19664 19665 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 305693), Tuple.Create("\"", 305710) 19666 19667 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19668 , Tuple.Create(Tuple.Create("", 305700), Tuple.Create<System.Object, System.Int32>(node.Link 19669 19670 #line default 19671 #line hidden 19672 , 305700), false) 19673 ); 19674 19675 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 305711), Tuple.Create("\"", 305745) 19676 , Tuple.Create(Tuple.Create("", 305719), Tuple.Create("megamenu__category--", 305719), true) 19677 19678 #line 6471 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19679 , Tuple.Create(Tuple.Create("", 305739), Tuple.Create<System.Object, System.Int32>(level 19680 19681 #line default 19682 #line hidden 19683 , 305739), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19710 19711 19712 #line default 19713 #line hidden 19714 19715 #line 6472 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19734 19735 19736 #line default 19737 #line hidden 19738 19739 #line 6477 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19808 } 19809 #line default 19810 #line hidden 19811 19812 19813 #line 6493 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 306677), Tuple.Create("\"", 306760) 19833 19834 #line 6497 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19835 , Tuple.Create(Tuple.Create("", 306685), 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 , 306685), 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\DynamicArticle.parsed.cshtml" 19846 19847 19848 #line default 19849 #line hidden 19850 19851 #line 6498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 306933), Tuple.Create("\"", 306994) 19864 , Tuple.Create(Tuple.Create("", 306941), Tuple.Create("menu__item", 306941), true) 19865 19866 #line 6503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19867 , Tuple.Create(Tuple.Create(" ", 306951), Tuple.Create<System.Object, System.Int32>(node.InPath ? "menu__item--active" : "" 19868 19869 #line default 19870 #line hidden 19871 , 306952), false) 19872 ); 19873 19874 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 19875 19876 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 307016), Tuple.Create("\"", 307033) 19877 19878 #line 6504 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19879 , Tuple.Create(Tuple.Create("", 307023), Tuple.Create<System.Object, System.Int32>(node.Link 19880 19881 #line default 19882 #line hidden 19883 , 307023), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19924 19925 19926 #line default 19927 #line hidden 19928 19929 #line 6505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 307296), Tuple.Create("\"", 307334) 19939 , Tuple.Create(Tuple.Create("", 307304), Tuple.Create("level-", 307304), true) 19940 19941 #line 6507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 19942 , Tuple.Create(Tuple.Create("", 307310), Tuple.Create<System.Object, System.Int32>(level 19943 19944 #line default 19945 #line hidden 19946 , 307310), false) 19947 , Tuple.Create(Tuple.Create(" ", 307318), Tuple.Create("bg-light", 307319), true) 19948 , Tuple.Create(Tuple.Create(" ", 307327), Tuple.Create("border", 307328), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 19991 } 19992 #line default 19993 #line hidden 19994 19995 19996 #line 6541 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20028 } 20029 #line default 20030 #line hidden 20031 20032 20033 #line 6567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20392 } 20393 #line default 20394 #line hidden 20395 20396 20397 #line 6631 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 313727), Tuple.Create("\"", 313784) 20448 , Tuple.Create(Tuple.Create("", 313735), Tuple.Create("btn", 313735), true) 20449 , Tuple.Create(Tuple.Create(" ", 313738), Tuple.Create("btn-border--brand", 313739), true) 20450 20451 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20452 , Tuple.Create(Tuple.Create(" ", 313756), Tuple.Create<System.Object, System.Int32>(activeClass 20453 20454 #line default 20455 #line hidden 20456 , 313757), false) 20457 , Tuple.Create(Tuple.Create(" ", 313769), Tuple.Create("align-self-top", 313770), true) 20458 ); 20459 20460 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 313785), Tuple.Create("\"", 313805) 20461 20462 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20463 , Tuple.Create(Tuple.Create("", 313792), Tuple.Create<System.Object, System.Int32>(friendlyLink 20464 20465 #line default 20466 #line hidden 20467 , 313792), false) 20468 ); 20469 20470 WriteLiteralTo(__razor_helper_writer, ">"); 20471 20472 20473 #line 6668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20504 } 20505 #line default 20506 #line hidden 20507 20508 20509 #line 6715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 316348), Tuple.Create("\"", 316374) 20588 , Tuple.Create(Tuple.Create("", 316356), Tuple.Create("width-", 316356), true) 20589 20590 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20591 , Tuple.Create(Tuple.Create("", 316362), Tuple.Create<System.Object, System.Int32>(myCardLevel 20592 20593 #line default 20594 #line hidden 20595 , 316362), false) 20596 ); 20597 20598 WriteLiteralTo(__razor_helper_writer, ">"); 20599 20600 20601 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 316464), Tuple.Create("\"", 316541) 20623 , Tuple.Create(Tuple.Create("", 316472), Tuple.Create("ml-1", 316472), true) 20624 , Tuple.Create(Tuple.Create(" ", 316476), Tuple.Create("inline-flex", 316477), true) 20625 , Tuple.Create(Tuple.Create(" ", 316488), Tuple.Create("justify-content-center", 316489), true) 20626 , Tuple.Create(Tuple.Create(" ", 316511), Tuple.Create("text-center", 316512), true) 20627 , Tuple.Create(Tuple.Create(" ", 316523), Tuple.Create("card-", 316524), true) 20628 20629 #line 6728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20630 , Tuple.Create(Tuple.Create("", 316529), Tuple.Create<System.Object, System.Int32>(myCardLevel 20631 20632 #line default 20633 #line hidden 20634 , 316529), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20676 } 20677 #line default 20678 #line hidden 20679 20680 20681 #line 6731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20732 } 20733 #line default 20734 #line hidden 20735 20736 20737 #line 6742 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 318771), Tuple.Create("\"", 318827) 20792 20793 #line 6783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20794 , Tuple.Create(Tuple.Create("", 318778), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 20795 20796 #line default 20797 #line hidden 20798 , 318778), false) 20799 20800 #line 6783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20801 , Tuple.Create(Tuple.Create("", 318797), Tuple.Create<System.Object, System.Int32>(areaInfo.CreateAccountPage.ID 20802 20803 #line default 20804 #line hidden 20805 , 318797), 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\DynamicArticle.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\DynamicArticle.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=\'", 319069), Tuple.Create("\'", 319106) 20838 20839 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20840 , Tuple.Create(Tuple.Create("", 319076), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 20841 20842 #line default 20843 #line hidden 20844 , 319076), false) 20845 20846 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20847 , Tuple.Create(Tuple.Create("", 319095), Tuple.Create<System.Object, System.Int32>(signInLink 20848 20849 #line default 20850 #line hidden 20851 , 319095), false) 20852 ); 20853 20854 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 319107), Tuple.Create("\"", 319162) 20855 20856 #line 6787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 20857 , Tuple.Create(Tuple.Create("", 319120), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.MyProfile) 20858 20859 #line default 20860 #line hidden 20861 , 319120), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20924 20925 20926 #line default 20927 #line hidden 20928 20929 #line 6799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 20967 20968 20969 #line default 20970 #line hidden 20971 20972 #line 6806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21075 21076 21077 #line default 21078 #line hidden 21079 21080 #line 6825 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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&amp;height=150&amp;crop=0&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 324375), Tuple.Create("\"", 324455) 21222 , Tuple.Create(Tuple.Create("", 324381), Tuple.Create("/Files/Templates/Designs/", 324381), true) 21223 21224 #line 6865 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21225 , Tuple.Create(Tuple.Create("", 324406), Tuple.Create<System.Object, System.Int32>(DesignFolder 21226 21227 #line default 21228 #line hidden 21229 , 324406), false) 21230 , Tuple.Create(Tuple.Create("", 324419), Tuple.Create("/icons/default/help-circle-sharp.svg", 324419), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 325549), Tuple.Create("\"", 325609) 21318 , Tuple.Create(Tuple.Create("", 325556), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 325556), true) 21319 21320 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21321 , Tuple.Create(Tuple.Create("", 325593), Tuple.Create<System.Object, System.Int32>(areaInfo.PageId 21322 21323 #line default 21324 #line hidden 21325 , 325593), 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=\"", 325695), Tuple.Create("\"", 325743) 21333 21334 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21335 , Tuple.Create(Tuple.Create("", 325703), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.SignOut) 21336 21337 #line default 21338 #line hidden 21339 , 325703), false) 21340 ); 21341 21342 WriteLiteralTo(__razor_helper_writer, "><span>"); 21343 21344 21345 #line 6887 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21383 } 21384 #line default 21385 #line hidden 21386 21387 21388 #line 6905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21427 } 21428 #line default 21429 #line hidden 21430 21431 21432 #line 6912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 326333), Tuple.Create("\"", 326355) 21448 , Tuple.Create(Tuple.Create("", 326341), Tuple.Create("item", 326341), true) 21449 21450 #line 6914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21451 , Tuple.Create(Tuple.Create(" ", 326345), Tuple.Create<System.Object, System.Int32>(cssClass 21452 21453 #line default 21454 #line hidden 21455 , 326346), false) 21456 ); 21457 21458 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 21459 21460 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 326369), Tuple.Create("\"", 326381) 21461 21462 #line 6915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21463 , Tuple.Create(Tuple.Create("", 326376), Tuple.Create<System.Object, System.Int32>(link 21464 21465 #line default 21466 #line hidden 21467 , 326376), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21508 } 21509 #line default 21510 #line hidden 21511 21512 21513 #line 6923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21521 21522 21523 21524 #line default 21525 #line hidden 21526 WriteLiteralTo(__razor_helper_writer, " <li>&nbsp;</li>\r\n"); 21527 21528 21529 #line 6926 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21537 } 21538 #line default 21539 #line hidden 21540 21541 21542 #line 6948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 328094), Tuple.Create("\"", 328148) 21617 21618 #line 6966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21619 , Tuple.Create(Tuple.Create("", 328101), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 21620 21621 #line default 21622 #line hidden 21623 , 328101), false) 21624 21625 #line 6966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21626 , Tuple.Create(Tuple.Create("", 328120), Tuple.Create<System.Object, System.Int32>(areaInfo.MyFavoritesPage.ID 21627 21628 #line default 21629 #line hidden 21630 , 328120), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21661 } 21662 #line default 21663 #line hidden 21664 21665 21666 #line 6982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21761 21762 21763 #line default 21764 #line hidden 21765 21766 #line 7046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21811 21812 21813 #line default 21814 #line hidden 21815 21816 #line 7059 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21884 } 21885 #line default 21886 #line hidden 21887 21888 21889 #line 7097 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 333227), Tuple.Create("\"", 333282) 21907 21908 #line 7101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21909 , Tuple.Create(Tuple.Create("", 333234), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 21910 21911 #line default 21912 #line hidden 21913 , 333234), false) 21914 21915 #line 7101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 21916 , Tuple.Create(Tuple.Create("", 333253), Tuple.Create<System.Object, System.Int32>(areaInfo.DownloadCartPage.ID 21917 21918 #line default 21919 #line hidden 21920 , 333253), 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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 21938 } 21939 #line default 21940 #line hidden 21941 21942 21943 #line 7113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22028 } 22029 #line default 22030 #line hidden 22031 22032 22033 #line 7186 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22116 } 22117 #line default 22118 #line hidden 22119 22120 22121 #line 7238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 338948), Tuple.Create("\"", 338971) 22206 22207 #line 7252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22208 , Tuple.Create(Tuple.Create("", 338957), Tuple.Create<System.Object, System.Int32>(searchPageUrl 22209 22210 #line default 22211 #line hidden 22212 , 338957), 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=\"", 339176), Tuple.Create("\"", 339204) 22228 22229 #line 7254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22230 , Tuple.Create(Tuple.Create("", 339184), Tuple.Create<System.Object, System.Int32>(options.searchValue 22231 22232 #line default 22233 #line hidden 22234 , 339184), false) 22235 ); 22236 22237 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 339205), Tuple.Create("\"", 339239) 22238 22239 #line 7254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22240 , Tuple.Create(Tuple.Create("", 339213), Tuple.Create<System.Object, System.Int32>(options.searchPlaceholder 22241 22242 #line default 22243 #line hidden 22244 , 339213), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22298 22299 22300 #line default 22301 #line hidden 22302 22303 #line 7260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22423 } 22424 #line default 22425 #line hidden 22426 22427 22428 #line 7282 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 340998), Tuple.Create("\"", 341026) 22452 22453 #line 7286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22454 , Tuple.Create(Tuple.Create("", 341006), Tuple.Create<System.Object, System.Int32>(options.searchValue 22455 22456 #line default 22457 #line hidden 22458 , 341006), false) 22459 ); 22460 22461 WriteAttributeTo(__razor_helper_writer, "label", Tuple.Create(" label=\"", 341027), Tuple.Create("\"", 341061) 22462 22463 #line 7286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22464 , Tuple.Create(Tuple.Create("", 341035), Tuple.Create<System.Object, System.Int32>(options.searchPlaceholder 22465 22466 #line default 22467 #line hidden 22468 , 341035), 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\DynamicArticle.parsed.cshtml" 22477 22478 22479 #line default 22480 #line hidden 22481 22482 #line 7287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22612 } 22613 #line default 22614 #line hidden 22615 22616 22617 #line 7326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 344842), Tuple.Create("\"", 344868) 22680 , Tuple.Create(Tuple.Create("", 344850), Tuple.Create("width-", 344850), true) 22681 22682 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22683 , Tuple.Create(Tuple.Create("", 344856), Tuple.Create<System.Object, System.Int32>(myCardLevel 22684 22685 #line default 22686 #line hidden 22687 , 344856), false) 22688 ); 22689 22690 WriteLiteralTo(__razor_helper_writer, ">"); 22691 22692 22693 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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=\"", 344958), Tuple.Create("\"", 345035) 22715 , Tuple.Create(Tuple.Create("", 344966), Tuple.Create("ml-1", 344966), true) 22716 , Tuple.Create(Tuple.Create(" ", 344970), Tuple.Create("inline-flex", 344971), true) 22717 , Tuple.Create(Tuple.Create(" ", 344982), Tuple.Create("justify-content-center", 344983), true) 22718 , Tuple.Create(Tuple.Create(" ", 345005), Tuple.Create("text-center", 345006), true) 22719 , Tuple.Create(Tuple.Create(" ", 345017), Tuple.Create("card-", 345018), true) 22720 22721 #line 7364 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 22722 , Tuple.Create(Tuple.Create("", 345023), Tuple.Create<System.Object, System.Int32>(myCardLevel 22723 22724 #line default 22725 #line hidden 22726 , 345023), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22771 } 22772 #line default 22773 #line hidden 22774 22775 22776 #line 7387 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22855 } 22856 #line default 22857 #line hidden 22858 22859 22860 #line 7733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22907 } 22908 #line default 22909 #line hidden 22910 22911 22912 #line 7746 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 22963 } 22964 #line default 22965 #line hidden 22966 22967 22968 #line 7761 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23024 } 23025 #line default 23026 #line hidden 23027 23028 23029 #line 7778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23057 23058 23059 #line default 23060 #line hidden 23061 23062 #line 7788 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 372317), Tuple.Create("\"", 372334) 23072 , Tuple.Create(Tuple.Create("", 372324), Tuple.Create("tel:", 372324), true) 23073 23074 #line 7790 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23075 , Tuple.Create(Tuple.Create("", 372328), Tuple.Create<System.Object, System.Int32>(phone 23076 23077 #line default 23078 #line hidden 23079 , 372328), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 372549), Tuple.Create("\"", 372569) 23128 , Tuple.Create(Tuple.Create("", 372556), Tuple.Create("mailto:", 372556), true) 23129 23130 #line 7794 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23131 , Tuple.Create(Tuple.Create("", 372563), Tuple.Create<System.Object, System.Int32>(email 23132 23133 #line default 23134 #line hidden 23135 , 372563), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23185 } 23186 #line default 23187 #line hidden 23188 23189 23190 #line 7802 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23225 23226 23227 #line default 23228 #line hidden 23229 23230 #line 7824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 373706), Tuple.Create("\"", 373723) 23240 , Tuple.Create(Tuple.Create("", 373713), Tuple.Create("tel:", 373713), true) 23241 23242 #line 7826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23243 , Tuple.Create(Tuple.Create("", 373717), Tuple.Create<System.Object, System.Int32>(phone 23244 23245 #line default 23246 #line hidden 23247 , 373717), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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=\"", 373914), Tuple.Create("\"", 373934) 23296 , Tuple.Create(Tuple.Create("", 373921), Tuple.Create("mailto:", 373921), true) 23297 23298 #line 7830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23299 , Tuple.Create(Tuple.Create("", 373928), Tuple.Create<System.Object, System.Int32>(email 23300 23301 #line default 23302 #line hidden 23303 , 373928), 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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23387 } 23388 #line default 23389 #line hidden 23390 23391 23392 #line 7840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23432 } 23433 #line default 23434 #line hidden 23435 23436 23437 #line 7848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.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\DynamicArticle.parsed.cshtml" 23472 } 23473 #line default 23474 #line hidden 23475 23476 23477 #line 7897 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7898 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23507 23508 23509 #line default 23510 #line hidden 23511 23512 #line 7906 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 377555), Tuple.Create("\"", 377613) 23592 23593 #line 7928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23594 , Tuple.Create(Tuple.Create("", 377563), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.StopImpersonation) 23595 23596 #line default 23597 #line hidden 23598 , 377563), 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 7932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 379191), Tuple.Create("\"", 379247) 23734 23735 #line 7939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23736 , Tuple.Create(Tuple.Create("", 379198), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 23737 23738 #line default 23739 #line hidden 23740 , 379198), false) 23741 23742 #line 7939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23743 , Tuple.Create(Tuple.Create("", 379217), Tuple.Create<System.Object, System.Int32>(areaInfo.ImpersonationPage.ID 23744 23745 #line default 23746 #line hidden 23747 , 379217), false) 23748 ); 23749 23750 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 379248), Tuple.Create("\"", 379304) 23751 23752 #line 7939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23753 , Tuple.Create(Tuple.Create("", 379256), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Account.ViewListOfUsers) 23754 23755 #line default 23756 #line hidden 23757 , 379256), false) 23758 ); 23759 23760 WriteLiteralTo(__razor_helper_writer, ">"); 23761 23762 23763 #line 7939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7941 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 7945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23782 23783 23784 #line default 23785 #line hidden 23786 }); 23787 23788 #line 7945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23789 } 23790 #line default 23791 #line hidden 23792 23793 23794 #line 8061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23829 23830 23831 #line default 23832 #line hidden 23833 }); 23834 23835 #line 8069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23836 } 23837 #line default 23838 #line hidden 23839 23840 23841 #line 8071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8089 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8097 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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>&nbsp;</td> 23906 <td><div>{{name}}</div></td> 23907 <td>&nbsp;</td> 23908 <td>{{totalprice}}</td> 23909 </tr> 23910 {{/unless}} 23911 </script> 23912 "); 23913 23914 23915 #line 8108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23916 23917 23918 #line default 23919 #line hidden 23920 }); 23921 23922 #line 8108 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 23923 } 23924 #line default 23925 #line hidden 23926 23927 23928 #line 8110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8166 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24096 24097 24098 #line default 24099 #line hidden 24100 }); 24101 24102 #line 8166 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24103 } 24104 #line default 24105 #line hidden 24106 24107 24108 #line 8168 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8169 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8181 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24153 24154 24155 #line default 24156 #line hidden 24157 }); 24158 24159 #line 8185 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24160 } 24161 #line default 24162 #line hidden 24163 24164 24165 #line 8187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8188 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8193 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8196 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24195 24196 24197 #line default 24198 #line hidden 24199 }); 24200 24201 #line 8196 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24202 } 24203 #line default 24204 #line hidden 24205 24206 24207 #line 8198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8203 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24237 24238 24239 #line default 24240 #line hidden 24241 }); 24242 24243 #line 8205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24244 } 24245 #line default 24246 #line hidden 24247 24248 24249 #line 8207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24257 24258 24259 24260 #line default 24261 #line hidden 24262 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n <tr>\r\n <td>&nbsp;</td>\r\n <td>"); 24263 24264 24265 #line 8212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24297 24298 24299 #line default 24300 #line hidden 24301 }); 24302 24303 #line 8217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24304 } 24305 #line default 24306 #line hidden 24307 24308 24309 #line 8219 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24342 24343 24344 #line default 24345 #line hidden 24346 }); 24347 24348 #line 8234 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24349 } 24350 #line default 24351 #line hidden 24352 24353 24354 #line 8236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8237 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8243 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8249 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24400 24401 24402 #line default 24403 #line hidden 24404 }); 24405 24406 #line 8249 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24407 } 24408 #line default 24409 #line hidden 24410 24411 24412 #line 8251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8256 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24446 24447 24448 #line default 24449 #line hidden 24450 }); 24451 24452 #line 8258 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24453 } 24454 #line default 24455 #line hidden 24456 24457 24458 #line 8260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8261 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 391601), Tuple.Create("\"", 391658) 24497 24498 #line 8265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24499 , Tuple.Create(Tuple.Create("", 391619), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.EmptyCart) 24500 24501 #line default 24502 #line hidden 24503 , 391619), false) 24504 ); 24505 24506 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 391659), Tuple.Create("\"", 391706) 24507 24508 #line 8265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24509 , Tuple.Create(Tuple.Create("", 391667), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.EmptyCart) 24510 24511 #line default 24512 #line hidden 24513 , 391667), false) 24514 ); 24515 24516 WriteLiteralTo(__razor_helper_writer, " data-tooltip-content=\""); 24517 24518 24519 #line 8265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8265 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 391861), Tuple.Create("\"", 391908) 24541 24542 #line 8266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24543 , Tuple.Create(Tuple.Create("", 391868), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 24544 24545 #line default 24546 #line hidden 24547 , 391868), false) 24548 24549 #line 8266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24550 , Tuple.Create(Tuple.Create("", 391887), Tuple.Create<System.Object, System.Int32>(areaInfo.CartPage.ID 24551 24552 #line default 24553 #line hidden 24554 , 391887), false) 24555 ); 24556 24557 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 391909), Tuple.Create("\"", 391964) 24558 24559 #line 8266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24560 , Tuple.Create(Tuple.Create("", 391917), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.ProceedToCheckout) 24561 24562 #line default 24563 #line hidden 24564 , 391917), false) 24565 ); 24566 24567 WriteLiteralTo(__razor_helper_writer, "><span>"); 24568 24569 24570 #line 8266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24580 24581 24582 24583 #line default 24584 #line hidden 24585 }); 24586 24587 #line 8269 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24588 } 24589 #line default 24590 #line hidden 24591 24592 24593 #line 8271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8272 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24640 24641 24642 #line default 24643 #line hidden 24644 }); 24645 24646 #line 8283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24647 } 24648 #line default 24649 #line hidden 24650 24651 24652 #line 8285 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8291 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24698 24699 24700 #line default 24701 #line hidden 24702 }); 24703 24704 #line 8297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24705 } 24706 #line default 24707 #line hidden 24708 24709 24710 #line 8300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24775 WriteTo(__razor_helper_writer, areaInfo.LinkStart); 24776 24777 24778 #line default 24779 #line hidden 24780 24781 #line 8311 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8313 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24793 24794 24795 #line default 24796 #line hidden 24797 }); 24798 24799 #line 8313 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24800 } 24801 #line default 24802 #line hidden 24803 24804 24805 #line 8351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8352 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8354 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24828 24829 24830 #line default 24831 #line hidden 24832 }); 24833 24834 #line 8354 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24835 } 24836 #line default 24837 #line hidden 24838 24839 24840 #line 8356 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8357 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8369 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8385 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24908 WriteTo(__razor_helper_writer, areaInfo.LinkStart); 24909 24910 24911 #line default 24912 #line hidden 24913 24914 #line 8386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8397 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24938 24939 24940 #line default 24941 #line hidden 24942 }); 24943 24944 #line 8397 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24945 } 24946 #line default 24947 #line hidden 24948 24949 24950 #line 8399 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8400 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8404 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24978 24979 24980 #line default 24981 #line hidden 24982 }); 24983 24984 #line 8407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24985 } 24986 #line default 24987 #line hidden 24988 24989 24990 #line 8418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 24991 24992 BlocksPage footerBlocksPage = BlocksPage.GetBlockPage("Master"); 24993 24994 #line default 24995 #line hidden 24996 24997 24998 #line 8778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8786 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8792 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25048 25049 25050 25051 25052 25053 #line default 25054 #line hidden 25055 25056 #line 8795 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25057 25058 25059 25060 #line default 25061 #line hidden 25062 }); 25063 25064 #line 8796 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25065 } 25066 #line default 25067 #line hidden 25068 25069 25070 #line 8799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8800 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25078 25079 var footerLogo = ""; 25080 if (Path.GetExtension(areaInfo.FooterLogo).ToLower() != ".svg") 25081 { 25082 footerLogo = "/Admin/Public/GetImage.ashx?height=60&amp;crop=5&amp;Compression=75&amp;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=\"", 410919), Tuple.Create("\"", 410949) 25097 25098 #line 8812 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25099 , Tuple.Create(Tuple.Create("", 410926), Tuple.Create<System.Object, System.Int32>(areaInfo.FirstPageLink 25100 25101 #line default 25102 #line hidden 25103 , 410926), 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=\"", 411025), Tuple.Create("\"", 411051) 25115 25116 #line 8813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25117 , Tuple.Create(Tuple.Create("", 411031), Tuple.Create<System.Object, System.Int32>(areaInfo.FooterLogo 25118 25119 #line default 25120 #line hidden 25121 , 411031), false) 25122 ); 25123 25124 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 411052), Tuple.Create("\"", 411095) 25125 25126 #line 8813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25127 , Tuple.Create(Tuple.Create("", 411058), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Logo) 25128 25129 #line default 25130 #line hidden 25131 , 411058), false) 25132 ); 25133 25134 WriteLiteralTo(__razor_helper_writer, " />\r\n </a> \r\n"); 25135 25136 25137 #line 8815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25138 25139 25140 25141 #line default 25142 #line hidden 25143 }); 25144 25145 #line 8816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25146 } 25147 #line default 25148 #line hidden 25149 25150 25151 #line 8817 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25476 25477 25478 #line default 25479 #line hidden 25480 }); 25481 25482 #line 8884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25483 } 25484 #line default 25485 #line hidden 25486 25487 25488 #line 8885 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8885 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 426071), Tuple.Create("\"", 426089) 25505 25506 #line 8888 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25507 , Tuple.Create(Tuple.Create("", 426079), Tuple.Create<System.Object, System.Int32>(className 25508 25509 #line default 25510 #line hidden 25511 , 426079), false) 25512 ); 25513 25514 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 25515 25516 25517 #line 8889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25518 25519 25520 #line default 25521 #line hidden 25522 25523 #line 8889 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8891 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8892 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25547 } 25548 25549 25550 #line default 25551 #line hidden 25552 WriteLiteralTo(__razor_helper_writer, " \r\n"); 25553 25554 25555 #line 8894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25556 25557 25558 #line default 25559 #line hidden 25560 25561 #line 8894 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25575 25576 25577 #line default 25578 #line hidden 25579 25580 #line 8896 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 426806), Tuple.Create("\"", 426818) 25596 25597 #line 8904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25598 , Tuple.Create(Tuple.Create("", 426813), Tuple.Create<System.Object, System.Int32>(link 25599 25600 #line default 25601 #line hidden 25602 , 426813), false) 25603 ); 25604 25605 WriteLiteralTo(__razor_helper_writer, " "); 25606 25607 25608 #line 8904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 427003), Tuple.Create("\"", 427015) 25646 25647 #line 8908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25648 , Tuple.Create(Tuple.Create("", 427010), Tuple.Create<System.Object, System.Int32>(link 25649 25650 #line default 25651 #line hidden 25652 , 427010), 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 8908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8914 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8918 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8920 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25728 25729 25730 25731 #line default 25732 #line hidden 25733 }); 25734 25735 #line 8925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25736 } 25737 #line default 25738 #line hidden 25739 25740 25741 #line 8927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 427927), Tuple.Create("\"", 427968) 25792 25793 #line 8935 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25794 , Tuple.Create(Tuple.Create("", 427935), Tuple.Create<System.Object, System.Int32>(areaInfo.NewsletterSignUpPage.ID 25795 25796 #line default 25797 #line hidden 25798 , 427935), 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=\'", 428230), Tuple.Create("\'", 428293) 25818 25819 #line 8938 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25820 , Tuple.Create(Tuple.Create("", 428244), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress) 25821 25822 #line default 25823 #line hidden 25824 , 428244), 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 8939 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8944 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25850 } 25851 25852 25853 #line default 25854 #line hidden 25855 }); 25856 25857 #line 8945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25858 } 25859 #line default 25860 #line hidden 25861 25862 25863 #line 8947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8947 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8952 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25900 25901 25902 #line default 25903 #line hidden 25904 25905 #line 8953 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 429330), Tuple.Create("\"", 429348) 25920 25921 #line 8960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25922 , Tuple.Create(Tuple.Create("", 429337), Tuple.Create<System.Object, System.Int32>(socialLink 25923 25924 #line default 25925 #line hidden 25926 , 429337), false) 25927 ); 25928 25929 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 25930 25931 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 429365), Tuple.Create("\"", 429413) 25932 , Tuple.Create(Tuple.Create("", 429373), Tuple.Create("btn", 429373), true) 25933 , Tuple.Create(Tuple.Create(" ", 429376), Tuple.Create("btn-icon", 429377), true) 25934 , Tuple.Create(Tuple.Create(" ", 429385), Tuple.Create("btn-md", 429386), true) 25935 , Tuple.Create(Tuple.Create(" ", 429392), Tuple.Create("btn-", 429393), true) 25936 25937 #line 8960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25938 , Tuple.Create(Tuple.Create("", 429397), Tuple.Create<System.Object, System.Int32>(socialIconTitle 25939 25940 #line default 25941 #line hidden 25942 , 429397), false) 25943 ); 25944 25945 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 429414), Tuple.Create("\"", 429438) 25946 25947 #line 8960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25948 , Tuple.Create(Tuple.Create("", 429422), Tuple.Create<System.Object, System.Int32>(socialIconTitle 25949 25950 #line default 25951 #line hidden 25952 , 429422), 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 8960 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8961 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25972 } 25973 25974 25975 #line default 25976 #line hidden 25977 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 25978 25979 25980 #line 8963 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25981 } 25982 25983 25984 #line default 25985 #line hidden 25986 }); 25987 25988 #line 8964 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 25989 } 25990 #line default 25991 #line hidden 25992 25993 25994 #line 8966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8966 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\'", 429608), Tuple.Create("\'", 429678) 26009 , Tuple.Create(Tuple.Create("", 429615), Tuple.Create("/Default.aspx?ID=", 429615), true) 26010 26011 #line 8967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26012 , Tuple.Create(Tuple.Create("", 429632), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("MagazinePartenere") 26013 26014 #line default 26015 #line hidden 26016 , 429632), 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 8967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26080 26081 26082 26083 #line default 26084 #line hidden 26085 }); 26086 26087 #line 8983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26088 } 26089 #line default 26090 #line hidden 26091 26092 26093 #line 8984 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 8984 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 431564), Tuple.Create("\"", 431605) 26109 , Tuple.Create(Tuple.Create("", 431571), Tuple.Create("/Default.aspx?ID=", 431571), true) 26110 26111 #line 8986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26112 , Tuple.Create(Tuple.Create("", 431588), Tuple.Create<System.Object, System.Int32>(newsletterPageID 26113 26114 #line default 26115 #line hidden 26116 , 431588), 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 8986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9014 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26236 26237 26238 26239 #line default 26240 #line hidden 26241 }); 26242 26243 #line 9015 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26244 } 26245 #line default 26246 #line hidden 26247 26248 26249 #line 9016 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9016 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9018 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26269 26270 26271 #line default 26272 #line hidden 26273 26274 #line 9018 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 434066), Tuple.Create("\"", 434144) 26295 , Tuple.Create(Tuple.Create("", 434072), Tuple.Create("/Admin/Public/GetImage.ashx?height=40&Compression=75&image=", 434072), true) 26296 26297 #line 9029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26298 , Tuple.Create(Tuple.Create("", 434131), Tuple.Create<System.Object, System.Int32>(paymentImage 26299 26300 #line default 26301 #line hidden 26302 , 434131), false) 26303 ); 26304 26305 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 434145), Tuple.Create("\"", 434164) 26306 26307 #line 9029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26308 , Tuple.Create(Tuple.Create("", 434151), Tuple.Create<System.Object, System.Int32>(paymentTitle 26309 26310 #line default 26311 #line hidden 26312 , 434151), false) 26313 ); 26314 26315 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 434165), Tuple.Create("\"", 434186) 26316 26317 #line 9029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26318 , Tuple.Create(Tuple.Create("", 434173), Tuple.Create<System.Object, System.Int32>(paymentTitle 26319 26320 #line default 26321 #line hidden 26322 , 434173), false) 26323 ); 26324 26325 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 26326 26327 26328 #line 9030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26329 } 26330 26331 26332 #line default 26333 #line hidden 26334 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 26335 26336 26337 #line 9032 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26338 26339 26340 #line default 26341 #line hidden 26342 }); 26343 26344 #line 9032 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26345 } 26346 #line default 26347 #line hidden 26348 26349 26350 #line 9034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26379 26380 26381 #line default 26382 #line hidden 26383 }); 26384 26385 #line 9036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26386 } 26387 #line default 26388 #line hidden 26389 26390 26391 #line 9038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9039 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9040 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9042 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9043 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9043 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9044 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26490 26491 26492 26493 #line default 26494 #line hidden 26495 }); 26496 26497 #line 9049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26498 } 26499 #line default 26500 #line hidden 26501 26502 26503 #line 9050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26528 26529 26530 #line default 26531 #line hidden 26532 }); 26533 26534 #line 9055 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26535 } 26536 #line default 26537 #line hidden 26538 26539 26540 #line 9056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26565 26566 26567 #line default 26568 #line hidden 26569 }); 26570 26571 #line 9061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26572 } 26573 #line default 26574 #line hidden 26575 26576 26577 #line 9062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9066 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9067 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 435978), Tuple.Create("\"", 436016) 26670 26671 #line 9073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26672 , Tuple.Create(Tuple.Create("", 435986), Tuple.Create<System.Object, System.Int32>(Translate("Compare products") 26673 26674 #line default 26675 #line hidden 26676 , 435986), false) 26677 ); 26678 26679 WriteLiteralTo(__razor_helper_writer, ">"); 26680 26681 26682 #line 9073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 436297), Tuple.Create("\"", 436371) 26714 , Tuple.Create(Tuple.Create("", 436304), Tuple.Create("/Default.aspx?ID=", 436304), true) 26715 26716 #line 9077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26717 , Tuple.Create(Tuple.Create("", 436321), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage") 26718 26719 #line default 26720 #line hidden 26721 , 436321), false) 26722 , Tuple.Create(Tuple.Create("", 436362), Tuple.Create("&compare=", 436362), true) 26723 ); 26724 26725 WriteLiteralTo(__razor_helper_writer, ">"); 26726 26727 26728 #line 9077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26738 26739 26740 #line default 26741 #line hidden 26742 }); 26743 26744 #line 9079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26745 } 26746 #line default 26747 #line hidden 26748 26749 26750 #line 9101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26757 26758 26759 26760 #line default 26761 #line hidden 26762 26763 #line 9102 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26764 26765 26766 26767 #line default 26768 #line hidden 26769 26770 #line 9103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26771 26772 26773 26774 26775 #line default 26776 #line hidden 26777 26778 #line 9105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26779 WriteTo(__razor_helper_writer, RenderSnippet("Script")); 26780 26781 26782 #line default 26783 #line hidden 26784 26785 #line 9105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26786 26787 26788 26789 #line default 26790 #line hidden 26791 }); 26792 26793 #line 9106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26794 } 26795 #line default 26796 #line hidden 26797 26798 26799 #line 9133 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9145 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26846 26847 26848 #line default 26849 #line hidden 26850 26851 #line 9151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9154 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26866 } 26867 26868 26869 #line default 26870 #line hidden 26871 WriteLiteralTo(__razor_helper_writer, " "); 26872 26873 26874 #line 9155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9158 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26903 26904 26905 #line default 26906 #line hidden 26907 26908 #line 9164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9170 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9172 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9180 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 26982 26983 26984 #line default 26985 #line hidden 26986 26987 #line 9189 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 443074), Tuple.Create("\"", 443122) 27045 27046 #line 9205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27047 , Tuple.Create(Tuple.Create("", 443082), Tuple.Create<System.Object, System.Int32>(areaInfo.MiniCartFeedPage.ID.ToString() 27048 27049 #line default 27050 #line hidden 27051 , 443082), 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=\"", 443586), Tuple.Create("\"", 443657) 27087 27088 #line 9209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27089 , Tuple.Create(Tuple.Create("", 443604), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Cart.ProductIsAddedToTheCart) 27090 27091 #line default 27092 #line hidden 27093 , 443604), false) 27094 ); 27095 27096 WriteLiteralTo(__razor_helper_writer, ">\r\n <ion-icon"); 27097 27098 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 443722), Tuple.Create("\"", 443789) 27099 , Tuple.Create(Tuple.Create("", 443728), Tuple.Create("/Files/Templates/Designs/", 443728), true) 27100 27101 #line 9210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27102 , Tuple.Create(Tuple.Create("", 443753), Tuple.Create<System.Object, System.Int32>(DesignFolder 27103 27104 #line default 27105 #line hidden 27106 , 443753), false) 27107 , Tuple.Create(Tuple.Create("", 443766), Tuple.Create("/icons/default/cart.svg", 443766), true) 27108 ); 27109 27110 WriteLiteralTo(__razor_helper_writer, "></ion-icon>\r\n </button>\r\n " + 27111 " </form>\r\n"); 27112 27113 27114 #line 9213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 444084), Tuple.Create("\"", 444129) 27129 27130 #line 9214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27131 , Tuple.Create(Tuple.Create("", 444092), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.View) 27132 27133 #line default 27134 #line hidden 27135 , 444092), 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 9215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 444453), Tuple.Create("\"", 444498) 27162 27163 #line 9218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27164 , Tuple.Create(Tuple.Create("", 444461), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.View) 27165 27166 #line default 27167 #line hidden 27168 , 444461), false) 27169 ); 27170 27171 WriteLiteralTo(__razor_helper_writer, ">"); 27172 27173 27174 #line 9218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9219 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27184 } 27185 27186 27187 #line default 27188 #line hidden 27189 WriteLiteralTo(__razor_helper_writer, " "); 27190 27191 27192 #line 9220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 444785), Tuple.Create("\"", 444829) 27206 27207 #line 9222 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27208 , Tuple.Create(Tuple.Create("", 444793), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.Add) 27209 27210 #line default 27211 #line hidden 27212 , 444793), 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 9225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9242 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9252 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9254 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9261 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9273 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9289 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9293 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9302 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27481 27482 27483 27484 27485 #line default 27486 #line hidden 27487 }); 27488 27489 #line 9309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27490 } 27491 #line default 27492 #line hidden 27493 27494 27495 #line 9333 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9333 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9352 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9368 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9384 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9385 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9386 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9387 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9390 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27618 } 27619 27620 27621 #line default 27622 #line hidden 27623 WriteLiteralTo(__razor_helper_writer, " <!--$$Javascripts-->\r\n"); 27624 27625 27626 #line 9392 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27627 27628 27629 27630 #line default 27631 #line hidden 27632 27633 #line 9393 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27634 WriteTo(__razor_helper_writer, RenderSnippet("Messenger")); 27635 27636 27637 #line default 27638 #line hidden 27639 27640 #line 9393 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27641 27642 27643 27644 #line default 27645 #line hidden 27646 }); 27647 27648 #line 9394 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27649 } 27650 #line default 27651 #line hidden 27652 27653 27654 #line 9418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9418 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9428 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9434 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27711 27712 27713 #line default 27714 #line hidden 27715 }); 27716 27717 #line 9438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27718 } 27719 #line default 27720 #line hidden 27721 27722 27723 #line 9488 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9489 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9494 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27757 } 27758 27759 27760 #line default 27761 #line hidden 27762 }); 27763 27764 #line 9496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27765 } 27766 #line default 27767 #line hidden 27768 27769 27770 #line 9498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9499 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 454940), Tuple.Create("\"", 454967) 27794 27795 #line 9505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27796 , Tuple.Create(Tuple.Create("", 454948), Tuple.Create<System.Object, System.Int32>(areaInfo.PhoneIcon 27797 27798 #line default 27799 #line hidden 27800 , 454948), false) 27801 ); 27802 27803 WriteLiteralTo(__razor_helper_writer, "></i> "); 27804 27805 27806 #line 9505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 455027), Tuple.Create("\"", 455054) 27815 27816 #line 9506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27817 , Tuple.Create(Tuple.Create("", 455035), Tuple.Create<System.Object, System.Int32>(areaInfo.EmailIcon 27818 27819 #line default 27820 #line hidden 27821 , 455035), false) 27822 ); 27823 27824 WriteLiteralTo(__razor_helper_writer, "></i> "); 27825 27826 27827 #line 9506 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27837 } 27838 27839 27840 #line default 27841 #line hidden 27842 }); 27843 27844 #line 9509 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27845 } 27846 #line default 27847 #line hidden 27848 27849 27850 #line 9511 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9512 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27858 27859 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 27860 27861 27862 27863 #line default 27864 #line hidden 27865 27866 #line 9516 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9524 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9526 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27893 27894 27895 #line default 27896 #line hidden 27897 27898 #line 9526 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27899 27900 27901 27902 #line default 27903 #line hidden 27904 }); 27905 27906 #line 9527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27907 } 27908 #line default 27909 #line hidden 27910 27911 27912 #line 9529 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9530 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 455766), Tuple.Create("\"", 455796) 27933 27934 #line 9537 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27935 , Tuple.Create(Tuple.Create("", 455774), Tuple.Create<System.Object, System.Int32>(areaInfo.LanguageIcon 27936 27937 #line default 27938 #line hidden 27939 , 455774), 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 9540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27948 27949 27950 #line default 27951 #line hidden 27952 27953 #line 9540 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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=\"", 457176), Tuple.Create("\"", 457258) 27987 27988 #line 9567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27989 , Tuple.Create(Tuple.Create("", 457183), Tuple.Create<System.Object, System.Int32>(areaInfo.LinkStart 27990 27991 #line default 27992 #line hidden 27993 , 457183), false) 27994 27995 #line 9567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 27996 , Tuple.Create(Tuple.Create("", 457202), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID 27997 27998 #line default 27999 #line hidden 28000 , 457202), false) 28001 ); 28002 28003 WriteLiteralTo(__razor_helper_writer, ">"); 28004 28005 28006 #line 9567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9569 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28016 } 28017 28018 28019 #line default 28020 #line hidden 28021 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 28022 28023 28024 #line 9571 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28025 } 28026 28027 28028 #line default 28029 #line hidden 28030 }); 28031 28032 #line 9572 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28033 } 28034 #line default 28035 #line hidden 28036 28037 28038 #line 9577 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9739 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28072 28073 28074 #line default 28075 #line hidden 28076 28077 #line 9740 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28105 28106 28107 #line default 28108 #line hidden 28109 }); 28110 28111 #line 9747 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28112 } 28113 #line default 28114 #line hidden 28115 28116 28117 #line 9749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28125 28126 28127 #line default 28128 #line hidden 28129 28130 #line 9750 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.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 9753 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28140 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks)); 28141 28142 28143 #line default 28144 #line hidden 28145 28146 #line 9753 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28147 28148 28149 28150 #line default 28151 #line hidden 28152 }); 28153 28154 #line 9754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28155 } 28156 #line default 28157 #line hidden 28158 28159 28160 #line 9773 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28161 28162 BlocksPage articlePage = BlocksPage.GetBlockPage("DynamicArticle"); 28163 28164 public string GetParentSettingsItem(string systemName) { 28165 string item = null; 28166 28167 Dynamicweb.Content.Page current = Dynamicweb.Services.Pages.GetPage(Model.ID); 28168 while (current != null && current.Parent != current) { 28169 var temp = current.Item != null ? current.Item[systemName] : ""; 28170 28171 if (temp != null) { 28172 item = temp.ToString(); 28173 28174 if (item.HasValue() && !String.Equals("default", item, StringComparison.OrdinalIgnoreCase)) { 28175 break; 28176 } 28177 } 28178 28179 current = current.Parent; 28180 } 28181 28182 return item; 28183 } 28184 28185 public string GetArticleCategory(int pageId) 28186 { 28187 string categoryName = null; 28188 28189 //Secure that the article is not in the root folder = Actual has a category 28190 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent != null) { 28191 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent != null) { 28192 if (!String.IsNullOrEmpty(Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent.ItemType)) 28193 { 28194 categoryName = Dynamicweb.Services.Pages.GetPage(pageId).Parent.GetDisplayName(); 28195 } 28196 } 28197 } 28198 28199 return categoryName; 28200 } 28201 28202 public string GetArticleCategoryColor(int pageId) 28203 { 28204 string categoryColor = ""; 28205 28206 //Secure that the article is not in the root folder = Actual has a category 28207 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent != null) { 28208 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent != null) { 28209 if (!String.IsNullOrEmpty(Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent.ItemType)) 28210 { 28211 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Item["CategoryColor"] != null) 28212 { 28213 var service = new ColorSwatchService(); 28214 categoryColor = Dynamicweb.Services.Pages.GetPage(pageId).Parent.Item["CategoryColor"].ToString(); 28215 28216 if (!categoryColor.Contains("#")) { 28217 categoryColor = service.GetHexColor(Converter.ToInt32(Model.Area.ID), categoryColor); 28218 } 28219 } 28220 } 28221 } 28222 } 28223 28224 return categoryColor; 28225 } 28226 28227 #line default 28228 #line hidden 28229 28230 28231 #line 9756 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28232 public RazorEngine.Templating.TemplateWriter RenderPageContent() 28233 { 28234 #line default 28235 #line hidden 28236 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 28237 28238 #line 9756 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28239 28240 28241 #line default 28242 #line hidden 28243 28244 #line 9757 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28245 28246 28247 28248 #line default 28249 #line hidden 28250 WriteLiteralTo(__razor_helper_writer, "\t\t"); 28251 28252 WriteLiteralTo(__razor_helper_writer, "\r\n"); 28253 28254 WriteLiteralTo(__razor_helper_writer, "\r\n"); 28255 28256 WriteLiteralTo(__razor_helper_writer, "\r\n"); 28257 28258 28259 #line 9771 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28260 WriteTo(__razor_helper_writer, Model.Grid("Grid", "Grid", "default:true;sort:1", "Pages")); 28261 28262 28263 #line default 28264 #line hidden 28265 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 28266 28267 WriteLiteralTo(__razor_helper_writer, "\r\n"); 28268 28269 28270 #line 9840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28271 28272 string listPageId = Converter.ToString(GetPageIdByNavigationTag("DynamicListFeed")); 28273 string parentPageId = Dynamicweb.Services.Pages.GetPage(Model.ID).Parent.ID.ToString(); 28274 string topLayout = Model.Item.GetList("TopLayout") != null ? Model.Item.GetList("TopLayout").SelectedValue : "default"; 28275 topLayout = topLayout == "default" && GetParentSettingsItem("ArticleTopLayout") != null ? GetParentSettingsItem("ArticleTopLayout").ToString().ToLower() : topLayout; 28276 string textLayout = Model.Item.GetList("TextLayout") != null ? Model.Item.GetList("TextLayout").SelectedValue : "default"; 28277 textLayout = textLayout == "default" && GetParentSettingsItem("ArticleTextLayout") != null ? GetParentSettingsItem("ArticleTextLayout").ToString().ToLower() : textLayout; 28278 string imageLayout = Model.Item.GetList("ImageLayout") != null ? Model.Item.GetList("ImageLayout").SelectedValue : "default"; 28279 imageLayout = imageLayout == "default" && GetParentSettingsItem("ArticleImageLayout") != null ? GetParentSettingsItem("ArticleImageLayout").ToString().ToLower() : imageLayout; 28280 28281 string imageColumns = imageLayout == "straight" && textLayout != "full" ? "8" : "12"; 28282 string contentColumns = textLayout != "full" ? "8" : "12"; 28283 28284 int externalParagraphId = Model.Item.GetItem("CTAParagraphLink") != null ? Model.Item.GetItem("CTAParagraphLink").ParagraphID : 0; 28285 28286 var paragraphs = Model.Item.GetItems("Paragraphs"); 28287 bool hasRegularContent = paragraphs != null? paragraphs.Any() : false; 28288 28289 string bodyClass = ""; 28290 28291 28292 //start regular blocks 28293 28294 ArticleHeaderLayout headerLayout; 28295 28296 switch (topLayout) 28297 { 28298 case "default": 28299 headerLayout = ArticleHeaderLayout.Clean; 28300 break; 28301 case "split": 28302 headerLayout = ArticleHeaderLayout.Split; 28303 break; 28304 case "banner": 28305 headerLayout = ArticleHeaderLayout.Banner; 28306 break; 28307 case "overlay": 28308 headerLayout = ArticleHeaderLayout.Overlay; 28309 bodyClass = " article-margin-negative"; 28310 break; 28311 default: 28312 headerLayout = ArticleHeaderLayout.Clean; 28313 break; 28314 } 28315 28316 28317 Block articleContainer = new Block 28318 { 28319 Id = "ArticleContainer", 28320 SortId = 10, 28321 Design = new Design 28322 { 28323 CssClass = "article-detail" 28324 }, 28325 BlocksList = new List<Block> { 28326 new Block { 28327 Id = "ArticleHeader", 28328 SortId = 20, 28329 Design = new Design 28330 { 28331 CssClass = "w-100" 28332 } 28333 }, 28334 new Block { 28335 Id = "ArticleBody", 28336 SortId = 30, 28337 Design = new Design 28338 { 28339 CssClass = "block-container--narrow" + bodyClass 28340 } 28341 } 28342 } 28343 }; 28344 articlePage.Add(articleContainer); 28345 28346 ButtonLayout topBannerButtonLayout = ButtonLayout.Primary; 28347 28348 switch (Model.Item.GetString("ButtonDesign")) { 28349 case "primary": 28350 topBannerButtonLayout = ButtonLayout.Primary; 28351 break; 28352 case "secondary": 28353 topBannerButtonLayout = ButtonLayout.Secondary; 28354 break; 28355 case "teritary": 28356 topBannerButtonLayout = ButtonLayout.Tertiary; 28357 break; 28358 case "link": 28359 topBannerButtonLayout = ButtonLayout.Link; 28360 break; 28361 } 28362 28363 ArticleHeader topBanner = new ArticleHeader 28364 { 28365 Layout = headerLayout, 28366 Image = new Image { Path = Model.Item.GetFile("Image") }, 28367 Heading = Model.Item.GetString("Title"), 28368 Subheading = Model.Item.GetString("Summary"), 28369 TextColor = "#fff", 28370 Author = Model.Item.GetString("Author"), 28371 Date = Model.Item.GetString("Date"), 28372 Category = GetArticleCategory(Model.ID), 28373 CategoryColor = GetArticleCategoryColor(Model.ID), 28374 Link = Model.Item.GetString("Link"), 28375 LinkText = Model.Item.GetString("LinkText"), 28376 ButtonLayout = topBannerButtonLayout, 28377 RatingScore = Model.Item.GetString("Rating") != null ? Converter.ToInt32(Model.Item.GetList("Rating").SelectedValue) : 0, 28378 RatingOutOf = Model.Item.GetString("Rating") != null ? Model.Item.GetList("Rating").Options.Count : 0, 28379 ExternalParagraphId = externalParagraphId 28380 }; 28381 28382 Block articleTop = new Block 28383 { 28384 Id = "ArticleHead", 28385 SortId = 20, 28386 Component = topBanner 28387 }; 28388 28389 //articlePage.Add("ArticleHeader", articleTop); 28390 28391 28392 Block articleBodyRow = new Block 28393 { 28394 Id = "ArticleBodyRow", 28395 SortId = 10, 28396 SkipRenderBlocksList = true, 28397 Design = new Design 28398 { 28399 CssClass = "wrap-test" 28400 } 28401 }; 28402 //articlePage.Add("ArticleBody", articleBodyRow); 28403 28404 28405 if(hasRegularContent) 28406 { 28407 28408 articlePage.Add("ArticleHeader", articleTop); 28409 articlePage.Add("ArticleBody", articleBodyRow); 28410 28411 if (Model.Item.GetString("Paragraphs") != null && Model.Item.GetItems("Paragraphs") != null) 28412 { 28413 int count = 0; 28414 foreach (var paragraph in Model.Item.GetItems("Paragraphs")) 28415 { 28416 imageLayout = paragraph.GetList("ImageLayout") != null ? paragraph.GetList("ImageLayout").SelectedValue : "default"; 28417 if (!paragraph.GetBoolean("RenderAsQuote")) 28418 { 28419 string enableDropCap = Model.Item.GetString("EnableDropCap") != null ? Model.Item.GetList("EnableDropCap").SelectedValue.ToLower() : "default"; 28420 enableDropCap = enableDropCap == "default" && GetParentSettingsItem("EnableDropCap") != null ? GetParentSettingsItem("EnableDropCap").ToString().ToLower() : enableDropCap; 28421 string text = paragraph.GetString("Text") != null ? paragraph.GetString("Text") : ""; 28422 28423 if (text.HasValue() && enableDropCap == "true" && count == 0 && paragraph.GetString("Text").Substring(0, 3) == "<p>") 28424 { 28425 string firstLetter = paragraph.GetString("Text").Substring(3, 1); 28426 text = paragraph.GetString("Text").Remove(3, 1); 28427 text = text.Insert(3, "<span class=\"article__drop-cap\">" + firstLetter + "</span>"); 28428 } 28429 28430 if (paragraph.GetFile("Image") != null) 28431 { 28432 string imageTitle = paragraph.GetString("Heading").HasValue() ? paragraph.GetString("Heading") : ""; 28433 28434 Block articleParagraphImage = new Block 28435 { 28436 Id = "ArticleParagraph" + count + "Image", 28437 SortId = (count * 10), 28438 Design = new Design 28439 { 28440 CssClass = "image my-3" 28441 } 28442 }; 28443 28444 ArticleImageContainerAware imageArticle = new ArticleImageContainerAware 28445 { 28446 Link = paragraph.GetFile("Image").ToString(), 28447 Layout = imageLayout, 28448 Alt = paragraph.GetString("ImageCaption") 28449 }; 28450 articleParagraphImage.Component = imageArticle; 28451 28452 28453 articlePage.Add("ArticleBodyRow", articleParagraphImage); 28454 } 28455 28456 if (paragraph.GetString("VideoURL").HasValue()) 28457 { 28458 Block articleParagraphVideo = new Block 28459 { 28460 Id = "ArticleParagraph" + count + "Video", 28461 SortId = (count * 10) + 1, 28462 Component = new ArticleVideoRefactored { Url = paragraph.GetString("VideoURL"), AutoPlay = "false", Layout = imageLayout } 28463 }; 28464 articlePage.Add("ArticleBodyRow", articleParagraphVideo); 28465 } 28466 28467 if (paragraph.GetString("Heading").HasValue() && !paragraph.GetBoolean("HideTitle")) 28468 { 28469 string tag = paragraph.GetList("TitleHeadingSize") != null ? paragraph.GetList("TitleHeadingSize").SelectedValue : ""; 28470 Block articleParagraphHeader = new Block 28471 { 28472 Id = "ArticleParagraph" + count + "Heading", 28473 SortId = (count * 10) + 2, 28474 Component = new ArticleHeadingRefactored { Value = paragraph.GetString("Heading"), Tag = tag } 28475 }; 28476 articlePage.Add("ArticleBodyRow", articleParagraphHeader); 28477 } 28478 if (paragraph.GetString("Subtitle").HasValue()) 28479 { 28480 string tag = paragraph.GetList("SubtitleHeadingSize") != null ? paragraph.GetList("SubtitleHeadingSize").SelectedValue : ""; 28481 Block articleParagraphHeader = new Block 28482 { 28483 Id = "ArticleParagraph" + count + "SubHeading", 28484 SortId = (count * 10) + 3, 28485 Component = new ArticleSubHeadingRefactored { Value = paragraph.GetString("Subtitle"), Tag = tag } 28486 }; 28487 articlePage.Add("ArticleBodyRow", articleParagraphHeader); 28488 } 28489 28490 if (text.HasValue()) 28491 { 28492 Block articleParagraphText = new Block 28493 { 28494 Id = "ArticleParagraph" + count + "Text", 28495 SortId = (count * 10) + 4, 28496 Component = new ArticleText { Text = text } 28497 }; 28498 28499 articlePage.Add("ArticleBodyRow", articleParagraphText); 28500 } 28501 } 28502 else 28503 { 28504 if (paragraph.GetString("Text").HasValue()) 28505 { 28506 string quoteText = paragraph.GetString("Text") != null ? paragraph.GetString("Text") : ""; 28507 string quoteAuthor = paragraph.GetString("Heading") != null ? paragraph.GetString("Heading") : ""; 28508 28509 Block articleParagraphQuote = new Block 28510 { 28511 Id = "ArticleParagraph" + count + "Quote", 28512 SortId = (count * 10) + 3, 28513 Component = new ArticleQuote { Image = new Image { Path = paragraph.GetFile("Image") }, Text = quoteText, Author = quoteAuthor } 28514 }; 28515 articlePage.Add("ArticleBodyRow", articleParagraphQuote); 28516 } 28517 } 28518 28519 count++; 28520 } 28521 } 28522 28523 articleBodyRow.Component = new ArticleBodyRow { SubBlocks = articleBodyRow.BlocksList, TopLayout = topLayout, TextLayout = textLayout }; 28524 28525 } 28526 28527 28528 //Related 28529 string showRelatedArtices = Model.Item.GetString("ShowRelatedArticles") != null ? Model.Item.GetList("ShowRelatedArticles").SelectedValue.ToLower() : "default"; 28530 showRelatedArtices = showRelatedArtices == "default" && GetParentSettingsItem("ShowRelatedArticles") != null ? GetParentSettingsItem("ShowRelatedArticles").ToString().ToLower() : showRelatedArtices; 28531 28532 if (showRelatedArtices == "true") 28533 { 28534 Block articleRelated = new Block 28535 { 28536 Id = "ArticleRelated", 28537 SortId = 30, 28538 Component = new ArticleRelated { Title = Translate("Related articles"), FeedPageId = listPageId, Query = "sourceType=Page&sourcePage=" + parentPageId, PageSize = 4, CurrentPageId = Model.ID.ToString() } 28539 }; 28540 articlePage.Add("ArticleContainer", articleRelated); 28541 } 28542 28543 28544 #line default 28545 #line hidden 28546 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 28547 28548 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 28549 28550 28551 #line 10115 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28552 WriteTo(__razor_helper_writer, RenderBlockList(articlePage.BlocksRoot.BlocksList)); 28553 28554 28555 #line default 28556 #line hidden 28557 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 28558 28559 WriteLiteralTo(__razor_helper_writer, "\r\n"); 28560 28561 28562 #line 10118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28563 28564 28565 #line default 28566 #line hidden 28567 }); 28568 28569 #line 10118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28570 } 28571 #line default 28572 #line hidden 28573 28574 28575 public RazorEngine_21b8d87715e34960a0070f1a0420aa1c() { 28576 } 28577 28578 public override void Execute() { 28579 WriteLiteral("\r\n"); 28580 28581 28582 #line 18 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28583 if(!System.Web.HttpContext.Current.Request.Cookies.AllKeys.Contains("Theme")) { 28584 System.Web.HttpContext.Current.Response.Cookies["Theme"].Value = "decocenter"; 28585 } 28586 28587 28588 #line default 28589 #line hidden 28590 WriteLiteral("\r\n"); 28591 28592 WriteLiteral("\r\n"); 28593 28594 WriteLiteral("\r\n"); 28595 28596 WriteLiteral("\r\n\r\n\r\n"); 28597 28598 WriteLiteral("\r\n"); 28599 28600 WriteLiteral("\r\n"); 28601 28602 WriteLiteral("\r\n"); 28603 28604 WriteLiteral("\r\n"); 28605 28606 WriteLiteral("\r\n"); 28607 28608 WriteLiteral("\r\n\r\n\r\n"); 28609 28610 28611 #line 682 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28612 Write(SnippetStart("BottomJS")); 28613 28614 28615 #line default 28616 #line hidden 28617 WriteLiteral("\r\n"); 28618 28619 28620 #line 683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28621 28622 var areaInfoProductItemGrid = Df.Dw.Rapido.AreaInfo.Current(); 28623 var DesignFolderProductItemGrid = Pageview.Layout.Design.Name; 28624 var userIsLoggedInProductItemGrid = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 28625 28626 28627 #line default 28628 #line hidden 28629 WriteLiteral("\r\n \r\n<script"); 28630 28631 WriteLiteral(" id=\"ProductGridItem\""); 28632 28633 WriteLiteral(" type=\"text/x-template\""); 28634 28635 WriteLiteral(">\r\n {{#.}}\r\n <input type=\"hidden\" name=\"ProductLoopCounter{{id}" + 28636 "}\" value=\"{{id}}\" />\r\n <input type=\"hidden\" name=\"ProductID{{id}}\" va" + 28637 "lue=\"{{productId}}\" />\r\n <div class=\"product-item--grid borde border" + 28638 "-0\">\r\n <div class=\"c00 grid\">\r\n <div class=\"c0" + 28639 "\">\r\n <div class=\"product-item__image flex-wrap justify-co" + 28640 "ntent-center\">\r\n <a href=\"{{link}}\" onclick=\"{{google" + 28641 "ImpressionClick}}\" title=\"{{name}}\" class=\"image-hover__wrapper block w-100 mb-2" + 28642 " relative\">\r\n <img class=\"lazyload w-100\" width=\"" + 28643 "620\" height=\"416\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAA" + 28644 "BAAEAAAICTAEAOw==\"\r\n data-src=\"/Admin/Public" + 28645 "/GetImage.ashx?width=620&height=416&crop=5&Compression=95&DoNotUpscale=true&Fill" + 28646 "Canvas=true&image={{image}}\" alt=\"{{name}}\" \r\n " + 28647 " style=\"aspect-ratio: 620 / 416\" /> \r\n " + 28648 " {{#StickersContainers}}\r\n " + 28649 " {{>StickersContainer}}\r\n {{/StickersContainers" + 28650 "}}\r\n {{#if showPrices}} \r\n " + 28651 " {{#if Prices}}\r\n {{#displ" + 28652 "ayPromoPrice Prices}}{{/displayPromoPrice}}\r\n " + 28653 " {{/if}} \r\n {{/if}}\r\n " + 28654 " </a>\r\n {{#if showFavoriteLink}}\r\n " + 28655 " {{#if isFavoriteInAtLeastOneList}}\r\n " + 28656 " <button class=\"product-item__favorite on btn-fill--bran" + 28657 "d border-circle btn-icon icon-md\" aria-label=\"Open favorites list\" has-variants=" + 28658 "\"{{hasVariants}}\" data-modal-open=\"favoriteProductListModal{{productId}}\">\r\n"); 28659 28660 WriteLiteral(" "); 28661 28662 28663 #line 713 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28664 Write(RenderInlineSvg2("default","favorites-on")); 28665 28666 28667 #line default 28668 #line hidden 28669 WriteLiteral(@" 28670 </button> 28671 {{else}} 28672 <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}}""> 28673 "); 28674 28675 WriteLiteral(" "); 28676 28677 28678 #line 717 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28679 Write(RenderInlineSvg2("default","favorites-off")); 28680 28681 28682 #line default 28683 #line hidden 28684 WriteLiteral("\r\n </button>\r\n " + 28685 " {{/if}}\r\n"); 28686 28687 WriteLiteral("\t\t\t\t\t\t\t "); 28688 28689 28690 #line 720 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28691 Write(RenderFavoriteModalRefactored()); 28692 28693 28694 #line default 28695 #line hidden 28696 WriteLiteral(@" 28697 {{/if}} 28698 </div> 28699 </div> 28700 <div class=""c2 w-100""> 28701 <a href=""{{link}}"" onclick=""{{googleImpressionClick}}"" title=""{{name}}"" class=""product-item__title text-decoration-none w-100 block"" data-tooltip-content=""{{name}}"">{{name}}</a> 28702 </div> 28703 <div class=""c1 flex-wrap justify-content-center""> 28704 "); 28705 28706 WriteLiteral("\r\n {{#if showProductNumber}}\r\n " + 28707 " <div class=\"product-item__number small color-muted w-100 flex-wrap\"><span class" + 28708 "=\"mr-1 hidden\">"); 28709 28710 28711 #line 734 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28712 Write(Translate(Translations.Products.ProductNumber)); 28713 28714 28715 #line default 28716 #line hidden 28717 WriteLiteral(":</span><span>{{number}}</span></div>\r\n {{/if}}\r\n " + 28718 " {{#if manufacturer/name}}\r\n <div class" + 28719 "=\"product-item__number small color-muted w-100 flex-wrap\"><span class=\"mr-1 hidd" + 28720 "en\">"); 28721 28722 28723 #line 737 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28724 Write(Translate(Translations.Products.Brand)); 28725 28726 28727 #line default 28728 #line hidden 28729 WriteLiteral(@":</span><span>{{manufacturer/name}}</span></div> 28730 {{/if}} 28731 </div> 28732 28733 <div class=""c3 align-self-end hidden""> 28734 <div class=""prices text-center""> 28735 {{#if discount}} 28736 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block"">{{{discount}}}</span> 28737 {{/if}} 28738 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block"">{{{priceWithoutVAT}}}</span> 28739 {{#if showPriceWithoutVAT}} 28740 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithoutVAT}}}</span> 28741 {{#if showPriceWithVAT}} 28742 <small>{{{priceWithVAT}}} "); 28743 28744 28745 #line 750 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28746 Write(Translate(Translations.Products.InclVAT)); 28747 28748 28749 #line default 28750 #line hidden 28751 WriteLiteral(@"</small> 28752 {{/if}} 28753 {{else}} 28754 {{#if showPriceWithVAT}} 28755 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithVAT}}}</span> 28756 {{/if}} 28757 {{/if}} 28758 </div> 28759 </div> 28760 <div class=""c4 align-self-end flex-wrap space-between align-items-center my-1 hidden""> 28761 <div class=""stock""> 28762 {{#ifCond stockValue '>' 0}} 28763 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok""> 28764 "); 28765 28766 WriteLiteral(" "); 28767 28768 28769 #line 763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28770 Write(RenderInlineSvg2("default","stock-ok")); 28771 28772 28773 #line default 28774 #line hidden 28775 WriteLiteral(" "); 28776 28777 28778 #line 763 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28779 Write(Translate(Translations.Products.InStock)); 28780 28781 28782 #line default 28783 #line hidden 28784 WriteLiteral("</div>\r\n {{else}}\r\n <di" + 28785 "v class=\"product-item__stock weight-bold text-uppercase color-stock-none\">"); 28786 28787 28788 #line 765 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28789 Write(RenderInlineSvg2("default","stock-none")); 28790 28791 28792 #line default 28793 #line hidden 28794 WriteLiteral(" "); 28795 28796 28797 #line 765 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28798 Write(Translate(Translations.Products.OutOfStock)); 28799 28800 28801 #line default 28802 #line hidden 28803 WriteLiteral("</div>\r\n {{/ifCond}}\r\n </div>\r\n" + 28804 " <button name=\"Compare{{productId}}{{variantId}}\" class=\"" + 28805 "btn btn-fill--accent compare-trigger color-muted\" data-compare data-tooltip=\""); 28806 28807 28808 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28809 Write(Translate(Translations.Products.AddToCompare)); 28810 28811 28812 #line default 28813 #line hidden 28814 WriteLiteral("\" data-add-compare=\'"); 28815 28816 28817 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28818 Write(Translate(Translations.Products.AddToCompare)); 28819 28820 28821 #line default 28822 #line hidden 28823 WriteLiteral("\' data-remove-compare=\'"); 28824 28825 28826 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28827 Write(Translate(Translations.Products.RemoveFromCompare)); 28828 28829 28830 #line default 28831 #line hidden 28832 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>"); 28833 28834 28835 #line 768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28836 Write(Translate(Translations.Products.AddToCompare)); 28837 28838 28839 #line default 28840 #line hidden 28841 WriteLiteral(@"</span></button> 28842 </div> 28843 </div> 28844 <div class=""c01 align-self-end hidden""> 28845 <div class=""c5""> 28846 {{#if allowAddToCart}} 28847 <div class=""actions""> 28848 {{#ifCond stockValue '>' 0}} 28849 <form> 28850 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" /> 28851 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" /> 28852 <input type=""hidden"" name=""ID"" value="""); 28853 28854 28855 #line 779 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28856 Write(areaInfoProductItemGrid.MiniCartFeedPage.ID.ToString()); 28857 28858 28859 #line default 28860 #line hidden 28861 WriteLiteral(@""" /> 28862 <input type=""hidden"" name=""redirect"" value=""false"" /> 28863 <input type=""hidden"" name=""CartCmd"" value=""add"" /> 28864 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity hidden"" name=""Quantity"" value=""1"" min=""1"" max=""{{stockValue}}""></df-quantity> 28865 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy {{disabledBuyButton}} w-100"" 28866 icon-position=""right"" 28867 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}} 28868 data-role=""add-to-cart"" 28869 message-success="""); 28870 28871 28872 #line 787 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28873 Write(Translate(Translations.Cart.ProductIsAddedToTheCart)); 28874 28875 28876 #line default 28877 #line hidden 28878 WriteLiteral("\"\r\n >\r\n " + 28879 " <span>"); 28880 28881 28882 #line 789 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28883 Write(Translate(Translations.Cart.AddToCart)); 28884 28885 28886 #line default 28887 #line hidden 28888 WriteLiteral("</span>\r\n <span class=\"icon\">\r\n"); 28889 28890 WriteLiteral(" "); 28891 28892 28893 #line 791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28894 Write(RenderInlineSvg2("default","cart")); 28895 28896 28897 #line default 28898 #line hidden 28899 WriteLiteral(@" 28900 </span> 28901 28902 </button> 28903 </form> 28904 {{else}} 28905 <div class=""stock-notif-translates"" 28906 data-notification-already-sent="""); 28907 28908 28909 #line 798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28910 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)); 28911 28912 28913 #line default 28914 #line hidden 28915 WriteLiteral("\"\r\n data-notification-registered=\""); 28916 28917 28918 #line 799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28919 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered)); 28920 28921 28922 #line default 28923 #line hidden 28924 WriteLiteral("\"></div>\r\n "); 28925 28926 WriteLiteral("\r\n"); 28927 28928 28929 #line 801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28930 28931 28932 #line default 28933 #line hidden 28934 28935 #line 801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28936 if (userIsLoggedInProductItemGrid) 28937 { 28938 28939 28940 #line default 28941 #line hidden 28942 WriteLiteral(" "); 28943 28944 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 28945 28946 WriteLiteral("\r\n"); 28947 28948 WriteLiteral(" <button"); 28949 28950 WriteLiteral(" type=\"button\""); 28951 28952 WriteLiteral(" class=\"btn-fill--muted w-100\""); 28953 28954 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\""); 28955 28956 WriteLiteral(" data-notified=\"false\""); 28957 28958 WriteLiteral(" data-user-logged-in=\"true\""); 28959 28960 WriteLiteral(">\r\n"); 28961 28962 WriteLiteral(" "); 28963 28964 28965 #line 805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28966 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 28967 28968 28969 #line default 28970 #line hidden 28971 WriteLiteral("\r\n </button>\r\n"); 28972 28973 28974 #line 807 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 28975 28976 28977 28978 #line default 28979 #line hidden 28980 WriteLiteral(" "); 28981 28982 WriteLiteral("{{else}}"); 28983 28984 WriteLiteral("\r\n"); 28985 28986 WriteLiteral(" <button"); 28987 28988 WriteLiteral(" type=\"button\""); 28989 28990 WriteLiteral(" class=\"btn-fill--muted w-100\""); 28991 28992 WriteLiteral(" data-notified=\"true\""); 28993 28994 WriteLiteral(" data-user-logged-in=\"true\""); 28995 28996 WriteLiteral(">\r\n"); 28997 28998 WriteLiteral(" "); 28999 29000 29001 #line 810 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29002 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 29003 29004 29005 #line default 29006 #line hidden 29007 WriteLiteral("\r\n </button>\r\n"); 29008 29009 WriteLiteral(" "); 29010 29011 WriteLiteral("{{/ifCond}}"); 29012 29013 WriteLiteral("\r\n"); 29014 29015 29016 #line 813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29017 29018 } 29019 else 29020 { 29021 29022 29023 #line default 29024 #line hidden 29025 WriteLiteral(" "); 29026 29027 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 29028 29029 WriteLiteral("\r\n"); 29030 29031 WriteLiteral(" <button"); 29032 29033 WriteLiteral(" type=\"button\""); 29034 29035 WriteLiteral(" class=\"btn-fill--muted w-100\""); 29036 29037 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\""); 29038 29039 WriteLiteral(" data-notified=\"false\""); 29040 29041 WriteLiteral(" data-user-logged-in=\"false\""); 29042 29043 WriteLiteral(">\r\n"); 29044 29045 WriteLiteral(" "); 29046 29047 29048 #line 819 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29049 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 29050 29051 29052 #line default 29053 #line hidden 29054 WriteLiteral("\r\n </button>\r\n"); 29055 29056 WriteLiteral(" <df-modal"); 29057 29058 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\""); 29059 29060 WriteLiteral("\r\n data-product-name=\"{{name}}\""); 29061 29062 WriteAttribute("heading", Tuple.Create("\r\n heading=\"", 47038), Tuple.Create("\"", 47152) 29063 29064 #line 823 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29065 , Tuple.Create(Tuple.Create("", 47097), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock) 29066 29067 #line default 29068 #line hidden 29069 , 47097), false) 29070 ); 29071 29072 WriteLiteral(">\r\n <span>\r\n " + 29073 " {{#ifCond notificationRegistered \'==\' false}}\r\n " + 29074 " <form"); 29075 29076 WriteLiteral(" name=\"{{productId}}\""); 29077 29078 WriteAttribute("action", Tuple.Create(" action=\"", 47393), Tuple.Create("\"", 47460) 29079 , Tuple.Create(Tuple.Create("", 47402), Tuple.Create("/Default.aspx?ID=", 47402), true) 29080 29081 #line 826 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29082 , Tuple.Create(Tuple.Create("", 47419), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage") 29083 29084 #line default 29085 #line hidden 29086 , 47419), false) 29087 ); 29088 29089 WriteLiteral(">\r\n <input"); 29090 29091 WriteLiteral(" type=\"hidden\""); 29092 29093 WriteLiteral(" name=\"ProductID\""); 29094 29095 WriteLiteral(" id=\"ProductID\""); 29096 29097 WriteLiteral(" value=\"{{productId}}\""); 29098 29099 WriteLiteral(" />\r\n <input"); 29100 29101 WriteLiteral(" type=\"hidden\""); 29102 29103 WriteLiteral(" name=\"VariantID\""); 29104 29105 WriteLiteral(" id=\"VariantID\""); 29106 29107 WriteLiteral(" value=\"{{variantId}}\""); 29108 29109 WriteLiteral(" />\r\n <input"); 29110 29111 WriteLiteral(" type=\"hidden\""); 29112 29113 WriteLiteral(" name=\"CartCmd\""); 29114 29115 WriteLiteral(" id=\"CartCmd\""); 29116 29117 WriteLiteral(" value=\"createnotificationforthisproduct\""); 29118 29119 WriteLiteral(" />\r\n <df-input requir" + 29120 "ed"); 29121 29122 WriteLiteral(" type=\"email\""); 29123 29124 WriteLiteral(" class=\"mb-3\""); 29125 29126 WriteLiteral(" id=\"NotificationEmail\""); 29127 29128 WriteLiteral(" name=\"NotificationEmail\""); 29129 29130 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 48049), Tuple.Create("\"", 48112) 29131 29132 #line 830 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29133 , Tuple.Create(Tuple.Create("", 48063), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress) 29134 29135 #line default 29136 #line hidden 29137 , 48063), false) 29138 ); 29139 29140 WriteLiteral("></df-input>\r\n <button" + 29141 ""); 29142 29143 WriteLiteral(" type=\"submit\""); 29144 29145 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\""); 29146 29147 WriteLiteral(">"); 29148 29149 29150 #line 831 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29151 Write(Translate(Translations.Account.CreateRequest)); 29152 29153 29154 #line default 29155 #line hidden 29156 WriteLiteral("</button>\r\n </form>\r\n " + 29157 " {{else}}\r\n " + 29158 " <p>"); 29159 29160 29161 #line 834 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29162 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)); 29163 29164 29165 #line default 29166 #line hidden 29167 WriteLiteral("</p>\r\n {{/ifCond}}\r\n " + 29168 " </span>\r\n " + 29169 " </df-modal>\r\n"); 29170 29171 WriteLiteral(" "); 29172 29173 WriteLiteral("{{else}}"); 29174 29175 WriteLiteral("\r\n"); 29176 29177 WriteLiteral(" <button"); 29178 29179 WriteLiteral(" type=\"button\""); 29180 29181 WriteLiteral(" class=\"btn-fill--muted w-100\""); 29182 29183 WriteLiteral(" data-notified=\"true\""); 29184 29185 WriteLiteral(" data-user-logged-in=\"false\""); 29186 29187 WriteLiteral(">\r\n"); 29188 29189 WriteLiteral(" "); 29190 29191 29192 #line 840 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29193 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 29194 29195 29196 #line default 29197 #line hidden 29198 WriteLiteral("\r\n </button>\r\n"); 29199 29200 WriteLiteral(" "); 29201 29202 WriteLiteral("{{/ifCond}}"); 29203 29204 WriteLiteral("\r\n"); 29205 29206 29207 #line 843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29208 } 29209 29210 29211 #line default 29212 #line hidden 29213 WriteLiteral(" {{/ifCond}}\r\n </div>\r\n" + 29214 " {{else}}\r\n <div class=\"action" + 29215 "s\">\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" ti" + 29216 "tle=\""); 29217 29218 29219 #line 848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29220 Write(Translate(Translations.Products.ViewMore)); 29221 29222 29223 #line default 29224 #line hidden 29225 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">"); 29226 29227 29228 #line 848 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29229 Write(Translate(Translations.Products.ViewMore)); 29230 29231 29232 #line default 29233 #line hidden 29234 WriteLiteral("</a>\r\n </div>\r\n {{/if}}\r\n " + 29235 " </div>\r\n </div>\r\n </div>\r\n {{/.}}" + 29236 "\r\n </script>\r\n\r\n\r\n\t<script"); 29237 29238 WriteLiteral(" id=\"ProductGridItemList\""); 29239 29240 WriteLiteral(" type=\"text/x-template\""); 29241 29242 WriteLiteral(@"> 29243 {{#.}} 29244 <div id=""Product{{id}}"" data-template=""ProductGridItem"" class=""product-item col-6 col-lg-3 col-xxl-2 ""> 29245 {{#Product}} 29246 {{>ProductGridItem}} 29247 {{/Product}} 29248 </div> 29249 {{/.}} 29250 </script> 29251 "); 29252 29253 29254 #line 867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29255 Write(SnippetEnd("BottomJS")); 29256 29257 29258 #line default 29259 #line hidden 29260 WriteLiteral("\r\n"); 29261 29262 WriteLiteral("\r\n"); 29263 29264 WriteLiteral("\r\n"); 29265 29266 WriteLiteral("\r\n"); 29267 29268 WriteLiteral("\r\n\r\n\r\n"); 29269 29270 29271 #line 880 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29272 Write(SnippetStart("BottomJS")); 29273 29274 29275 #line default 29276 #line hidden 29277 WriteLiteral(" \r\n"); 29278 29279 29280 #line 881 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29281 29282 var areaInfoProductItemList = Df.Dw.Rapido.AreaInfo.Current(); 29283 var DesignFolderProductItemList = Pageview.Layout.Design.Name; 29284 var userIsLoggedInProductItemList = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 29285 //string salesUOMProductItemList = GetString("Ecom:Product:Field.SalesUOM.Value"); 29286 29287 29288 #line default 29289 #line hidden 29290 WriteLiteral(" \r\n \r" + 29291 "\n <script"); 29292 29293 WriteLiteral(" id=\"ProductItemContainer\""); 29294 29295 WriteLiteral(" type=\"text/x-template\""); 29296 29297 WriteLiteral(">\r\n\t {{#.}}\r\n\t <div id=\"Product{{id}}\" data-template=\"ProductItem\" clas" + 29298 "s=\"product-item\">\r\n\t\t {{#Product}}\r\n\t\t {{>ProductItem}}\r\n\t\t " + 29299 " {{/Product}}\r\n\t </div>\r\n\t {{/.}}\r\n </script>\r\n\r\n<script"); 29300 29301 WriteLiteral(" id=\"ProductListItem\""); 29302 29303 WriteLiteral(" type=\"text/x-template\""); 29304 29305 WriteLiteral(">\r\n\t {{#.}}\r\n {{#if googleImpression}}\r\n <text>{{{go" + 29306 "ogleEnchantImpression \'Product catalogue\' currency googleImpression}}}</text>\r\n " + 29307 " {{/if}}\r\n\t <input type=\"hidden\" name=\"ProductLoopCounter{{id}}" + 29308 "\" value=\"{{id}}\" />\r\n\t <input type=\"hidden\" name=\"ProductID{{id}}\" value=" + 29309 "\"{{productId}}\" />\r\n\t <input type=\"hidden\" value=\"{{variantid}}\" name=\"Va" + 29310 "riantID{{id}}\" id=\"Variant_{{id}}\" /> \r\n <div class=\"produc" + 29311 "t-item--list p-2\"> \r\n <div class=\"c0\">\r\n <div" + 29312 " class=\"product-item__image\">\r\n <a href=\"{{link}}\" onclic" + 29313 "k=\"{{googleImpressionClick}}\" title=\"{{name}}\" class=\"image-hover__wrapper\">\r\n " + 29314 " <img class=\"b-lazy\" src=\"/Admin/Public/GetImage.ashx?w" + 29315 "idth=160&amp;height=160&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;" + 29316 "FillCanvas=true&amp;image={{image}}\" \r\n data-src" + 29317 "=\"/Admin/Public/GetImage.ashx?width=160&amp;height=160&amp;crop=5&amp;Compressio" + 29318 "n=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}}\" alt=\"{{name}" + 29319 "}\" />\r\n {{#if secondaryImage}}\r\n " + 29320 " <img class=\"b-lazy\" data-secondary-image-src=\"/Admin/Public/GetImage" + 29321 ".ashx?width=160&amp;height=160&amp;crop=5&amp;Compression=75&amp;FillCanvas=true" + 29322 "&amp;DoNotUpscale=true&amp;image={{secondaryImage}}\" alt=\"{{name}}\" />\r\n " + 29323 " {{/if}} \r\n " + 29324 " {{#StickersContainers}}\r\n {{>StickersCont" + 29325 "ainer}}\r\n {{/StickersContainers}}\r\n " + 29326 " </a>\r\n </div>\r\n </div>\r\n " + 29327 "<div class=\"c1\">\r\n <a href=\"{{link}}\" onclick=\"{{googleImpres" + 29328 "sionClick}}\" title=\"{{name}}\" class=\"product-item__title text-decoration-none\">{" + 29329 "{name}}</a>\r\n <div class=\"c11 flex-wrap child-mr-2 align-item" + 29330 "s-center\">\r\n {{#if showProductNumber}}\r\n " + 29331 " <div class=\"product-item__number small color-muted\"><span class=\"mr-1" + 29332 " hidden\">"); 29333 29334 29335 #line 925 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29336 Write(Translate(Translations.Products.ProductNumber)); 29337 29338 29339 #line default 29340 #line hidden 29341 WriteLiteral(@":</span><span>{{number}}</span></div> 29342 {{/if}} 29343 <div class=""rating--stars my-1""> 29344 {{#each ratingStars as |item|}} 29345 <ion-icon src=""/Files/Templates/Designs/"); 29346 29347 29348 #line 929 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29349 Write(DesignFolderProductItemList); 29350 29351 29352 #line default 29353 #line hidden 29354 WriteLiteral(@"/icons/default/{{item}}""></ion-icon> 29355 {{/each}} 29356 </div> 29357 </div> 29358 29359 {{#if manufacturer/name}} 29360 <div class=""product-item__number"">"); 29361 29362 29363 #line 935 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29364 Write(Translate(Translations.Products.Brand)); 29365 29366 29367 #line default 29368 #line hidden 29369 WriteLiteral(@": <span>{{manufacturer/name}}</span></div> 29370 {{/if}} 29371 29372 29373 </div> 29374 <div class=""c2""> 29375 <div class=""stock""> 29376 {{#ifCond stockValue '>' 0}} 29377 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok""><ion-icon src=""/Files/Templates/Designs/"); 29378 29379 29380 #line 943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29381 Write(DesignFolderProductItemList); 29382 29383 29384 #line default 29385 #line hidden 29386 WriteLiteral("/icons/default/stock-ok.svg\"></ion-icon> "); 29387 29388 29389 #line 943 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29390 Write(Translate(Translations.Products.InStock)); 29391 29392 29393 #line default 29394 #line hidden 29395 WriteLiteral("</div> \r\n {{else}}\r\n <div class" + 29396 "=\"product-item__stock weight-bold text-uppercase color-stock-none\"><ion-icon src" + 29397 "=\"/Files/Templates/Designs/"); 29398 29399 29400 #line 945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29401 Write(DesignFolderProductItemList); 29402 29403 29404 #line default 29405 #line hidden 29406 WriteLiteral("/icons/default/stock-none.svg\"></ion-icon> "); 29407 29408 29409 #line 945 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29410 Write(Translate(Translations.Products.OutOfStock)); 29411 29412 29413 #line default 29414 #line hidden 29415 WriteLiteral(@"</div> 29416 {{/ifCond}} 29417 </div> 29418 </div> 29419 <div class=""c3""> 29420 {{#if description}} 29421 <div class=""product-item__description""> 29422 {{{description}}} 29423 </div> 29424 {{/if}} 29425 </div> 29426 <div class=""c4 flex-wrap""> 29427 <div class=""prices align-self-end""> 29428 {{#if recommendedPrice}} 29429 <span class=""product-item__price--recommended my-1 inline-block"">"); 29430 29431 29432 #line 959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29433 Write(Translate(Translations.Products.RecommendedPrice)); 29434 29435 29436 #line default 29437 #line hidden 29438 WriteLiteral(@" {{{recommendedPrice}}}</span> 29439 {{/if}} 29440 {{#if discount}} 29441 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}"">{{{discount}}}</span> 29442 {{/if}} 29443 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 inline-block {{onSale}}"">{{{priceWithoutVAT}}}</span> 29444 29445 {{#if showPriceWithoutVAT}} 29446 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithoutVAT}}}</span> 29447 {{#if showPriceWithVAT}} 29448 <small>{{{priceWithVAT}}} "); 29449 29450 29451 #line 969 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29452 Write(Translate(Translations.Products.InclVAT)); 29453 29454 29455 #line default 29456 #line hidden 29457 WriteLiteral(@"</small> 29458 {{/if}} 29459 {{else}} 29460 {{#if showPriceWithVAT}} 29461 <span class=""product-item__price--nosale color-brand my-1 inline-block"">{{{priceWithVAT}}}</span> 29462 {{/if}} 29463 {{/if}} 29464 </div> 29465 <div class=""product-item__extra""> 29466 {{#if discountAmount}} 29467 <span class=""product-item__price--discount"">"); 29468 29469 29470 #line 979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29471 Write(Translate(Translations.Products.YouSave)); 29472 29473 29474 #line default 29475 #line hidden 29476 WriteLiteral(" {{discountPercentage}} ({{discountAmount}})</span>\r\n {{/i" + 29477 "f}}\r\n {{#if unitContent}}\r\n <span>" + 29478 ""); 29479 29480 29481 #line 982 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29482 Write(Translate(Translations.Products.SalesUOM)); 29483 29484 29485 #line default 29486 #line hidden 29487 WriteLiteral(" {{unitContent}}</span>\r\n {{/if}}\r\n " + 29488 " {{#ifCond minimumQuantity \'>\' 1}}\r\n <span>"); 29489 29490 29491 #line 985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29492 Write(Translate(Translations.Products.MinimumQuantity)); 29493 29494 29495 #line default 29496 #line hidden 29497 WriteLiteral(" {{minimumQuantity}} "); 29498 29499 29500 #line 985 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29501 Write(Translate(Translations.Products.Buc)); 29502 29503 29504 #line default 29505 #line hidden 29506 WriteLiteral("</span>\r\n {{/ifCond}}\r\n {{#if promi" + 29507 "sedReceiptDate}}\r\n <span class=\"product-item__promised--d" + 29508 "ate\">{{promisedReceiptDate}}</span>\r\n {{/if}}\r\n " + 29509 " </div>\r\n </div>\r\n \r\n <div" + 29510 " class=\"c5 flex-wrap align-items-center\"> \r\n\t\t\t\t\t<div class=\"c51\"> " + 29511 " \r\n <div class=\"product__icons child-mr-1\">\r\n " + 29512 " {{#if productFields/icon1}}\r\n <img" + 29513 " alt=\"{{productFields/icon1Alt}}\" data-tooltip-content=\"{{productFields/icon1Alt" + 29514 "}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&amp;height=40&amp;cro" + 29515 "p=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{pro" + 29516 "ductFields/icon1}}\" />\r\n {{/if}}\r\n " + 29517 " {{#if productFields/icon2}}\r\n <img alt=\"{{p" + 29518 "roductFields/icon2Alt}}\" data-tooltip-content=\"{{productFields/icon2Alt}}\" class" + 29519 "=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&amp;height=40&amp;crop=5&amp;C" + 29520 "ompression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{productField" + 29521 "s/icon2}}\" />\r\n {{/if}}\r\n " + 29522 " {{#if productFields/icon3}}\r\n <img alt=\"{{productFie" + 29523 "lds/icon3Alt}}\" data-tooltip-content=\"{{productFields/icon3Alt}}\" class=\"item\" s" + 29524 "rc=\"/Admin/Public/GetImage.ashx?width=40&amp;height=40&amp;crop=5&amp;Compressio" + 29525 "n=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{productFields/icon3}}" + 29526 "\" />\r\n {{/if}}\r\n {{#if pr" + 29527 "oductFields/icon4}}\r\n <img alt=\"{{productFields/icon4" + 29528 "Alt}}\" data-tooltip-content=\"{{productFields/icon4Alt}}\" class=\"item\" src=\"/Admi" + 29529 "n/Public/GetImage.ashx?width=40&amp;height=40&amp;crop=5&amp;Compression=75&amp;" + 29530 "DoNotUpscale=true&amp;FillCanvas=true&amp;image={{productFields/icon4}}\" />\r\n " + 29531 " {{/if}}\r\n {{#if productFiel" + 29532 "ds/icon5}}\r\n <img alt=\"{{productFields/icon5Alt}}\" da" + 29533 "ta-tooltip-content=\"{{productFields/icon5Alt}}\" class=\"item\" src=\"/Admin/Public/" + 29534 "GetImage.ashx?width=40&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpsc" + 29535 "ale=true&amp;FillCanvas=true&amp;image={{productFields/icon5}}\" />\r\n " + 29536 " {{/if}}\r\n {{#if productFields/icon6}" + 29537 "}\r\n <img alt=\"{{productFields/icon6Alt}}\" data-toolti" + 29538 "p-content=\"{{productFields/icon6Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage." + 29539 "ashx?width=40&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&" + 29540 "amp;FillCanvas=true&amp;image={{productFields/icon6}}\" />\r\n " + 29541 " {{/if}}\r\n {{#if productFields/icon7}}\r\n " + 29542 " <img alt=\"{{productFields/icon7Alt}}\" data-tooltip-content" + 29543 "=\"{{productFields/icon7Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?widt" + 29544 "h=40&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillC" + 29545 "anvas=true&amp;image={{productFields/icon7}}\" />\r\n {" + 29546 "{/if}}\r\n {{#if productFields/icon8}}\r\n " + 29547 " <img alt=\"{{productFields/icon8Alt}}\" data-tooltip-content=\"{{produ" + 29548 "ctFields/icon8Alt}}\" class=\"item\" src=\"/Admin/Public/GetImage.ashx?width=40&amp;" + 29549 "height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=tru" + 29550 "e&amp;image={{productFields/icon8}}\" />\r\n {{/if}}\r\n " + 29551 " </div> \r\n <div class=\"list\"> " + 29552 " \r\n {{#if showFavoriteLink}}" + 29553 " \r\n\t\t\t\t\t\t\t\t\t<div class=\"item\">\r\n {{#ifCond isF" + 29554 "avoriteInAtLeastOneList \"==\" \"true\"}}\r\n <b" + 29555 "utton class=\"product-item__favorite on btn-icon\" data-tooltip-content=\""); 29556 29557 29558 #line 1025 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29559 Write(Translate(Translations.Products.RemoveFromFavorites)); 29560 29561 29562 #line default 29563 #line hidden 29564 WriteLiteral("\" aria-label=\"Open favorites list\" has-variants=\"{{hasVariants}}\" onclick=\"openMo" + 29565 "dal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " + 29566 " <ion-icon src=\"/Files/Templates/Designs/"); 29567 29568 29569 #line 1026 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29570 Write(DesignFolderProductItemList); 29571 29572 29573 #line default 29574 #line hidden 29575 WriteLiteral("/icons/default/favorites-on.svg\"></ion-icon>\r\n " + 29576 " </button>\r\n {{else}}\r\n " + 29577 " <button class=\"product-item__favorite off btn-icon\" data-tool" + 29578 "tip-content=\""); 29579 29580 29581 #line 1029 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29582 Write(Translate(Translations.Products.AddToFavorites)); 29583 29584 29585 #line default 29586 #line hidden 29587 WriteLiteral("\" aria-label=\"Open favorites list\" has-variants=\"{{hasVariants}}\" onclick=\"openMo" + 29588 "dal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " + 29589 " <ion-icon src=\"/Files/Templates/Designs/"); 29590 29591 29592 #line 1030 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29593 Write(DesignFolderProductItemList); 29594 29595 29596 #line default 29597 #line hidden 29598 WriteLiteral(@"/icons/default/favorites-off.svg""></ion-icon> 29599 </button> 29600 {{/ifCond}} 29601 29602 <df-modal id=""favoriteProductListModal{{productId}}"" 29603 data-was-added-to-list="""); 29604 29605 29606 #line 1035 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29607 Write(Translate(Translations.Products.WasAddedToFavoriteList)); 29608 29609 29610 #line default 29611 #line hidden 29612 WriteLiteral("\"\r\n data-was-removed-from-list=\""); 29613 29614 29615 #line 1036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29616 Write(Translate(Translations.Products.WasRemovedFromFavoriteList)); 29617 29618 29619 #line default 29620 #line hidden 29621 WriteLiteral("\"\r\n data-product-name=\"{{name}}\" \r\n " + 29622 " heading=\""); 29623 29624 29625 #line 1038 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29626 Write(Translate(Translations.Products.AddToFavorites)); 29627 29628 29629 #line default 29630 #line hidden 29631 WriteLiteral(@"""> 29632 <span> 29633 {{#Favorite}} 29634 {{>FavoriteTemplate}} 29635 {{/Favorite}} 29636 29637 <div data-link=""{{createNewFavoriteList}}"" 29638 data-enter-list-name="""); 29639 29640 29641 #line 1045 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29642 Write(Translate(Translations.Products.EnterAListName)); 29643 29644 29645 #line default 29646 #line hidden 29647 WriteLiteral("\"\r\n data-list-already-exists=\""); 29648 29649 29650 #line 1046 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29651 Write(Translate(Translations.Products.ListWithSameNameAlreadyExists)); 29652 29653 29654 #line default 29655 #line hidden 29656 WriteLiteral("\">\r\n <p class=\"margin-bottom-1em" + 29657 "\">"); 29658 29659 29660 #line 1047 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29661 Write(Translate(Translations.Products.OrCreateOneAndAddTheProductToIt)); 29662 29663 29664 #line default 29665 #line hidden 29666 WriteLiteral("</p>\r\n <df-input type=\"text\" val" + 29667 "ue=\"\" class=\"fav--list--name\" name=\"favorite\" id=\"favorite\" placeholder=\""); 29668 29669 29670 #line 1048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29671 Write(Translate(Translations.Products.OrCreateOne)); 29672 29673 29674 #line default 29675 #line hidden 29676 WriteLiteral("\"></df-input>\r\n <button type=\"bu" + 29677 "tton\" class=\"submit--fav--list\">"); 29678 29679 29680 #line 1049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29681 Write(Translate(Translations.General.Create)); 29682 29683 29684 #line default 29685 #line hidden 29686 WriteLiteral(@"</button> 29687 </div> 29688 </span> 29689 </df-modal> 29690 </div> 29691 {{/if}} 29692 <div class=""item""> 29693 <button name=""Compare{{productId}}{{variantId}}"" class=""btn btn-fill--accent compare-trigger color-muted"" data-compare data-tooltip="""); 29694 29695 29696 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29697 Write(Translate(Translations.Products.AddToCompare)); 29698 29699 29700 #line default 29701 #line hidden 29702 WriteLiteral("\" data-add-compare=\'"); 29703 29704 29705 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29706 Write(Translate(Translations.Products.AddToCompare)); 29707 29708 29709 #line default 29710 #line hidden 29711 WriteLiteral("\' data-remove-compare=\'"); 29712 29713 29714 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29715 Write(Translate(Translations.Products.RemoveFromCompare)); 29716 29717 29718 #line default 29719 #line hidden 29720 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>"); 29721 29722 29723 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29724 Write(Translate(Translations.Products.AddToCompare)); 29725 29726 29727 #line default 29728 #line hidden 29729 WriteLiteral(@"</span></button> 29730 </div> 29731 </div> 29732 </div> 29733 </div> 29734 <div class=""c6""> 29735 {{#if allowAddToCart}} 29736 <div class=""actions""> 29737 {{#ifCond stockValue '>' 0}} 29738 <form> 29739 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" /> 29740 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" /> 29741 <input type=""hidden"" name=""ID"" value="""); 29742 29743 29744 #line 1068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29745 Write(areaInfoProductItemList.MiniCartFeedPage.ID.ToString()); 29746 29747 29748 #line default 29749 #line hidden 29750 WriteLiteral(@""" /> 29751 <input type=""hidden"" name=""redirect"" value=""false"" /> 29752 <input type=""hidden"" name=""CartCmd"" value=""add"" /> 29753 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity"" name=""Quantity"" value=""{{minimumQuantity}}"" min=""{{minimumQuantity}}"" max=""{{stockValue}}"" step=""{{quantityStep}}""></df-quantity> 29754 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy {{disabledBuyButton}}"" 29755 icon-position=""right"" 29756 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}} 29757 data-role=""add-to-cart"" 29758 message-success="""); 29759 29760 29761 #line 1076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29762 Write(Translate(Translations.Cart.ProductIsAddedToTheCart)); 29763 29764 29765 #line default 29766 #line hidden 29767 WriteLiteral("\"\r\n > " + 29768 " \r\n\t\t\t\t\t\t\t\t\t\t<span>"); 29769 29770 29771 #line 1078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29772 Write(Translate(Translations.Cart.AddToCart)); 29773 29774 29775 #line default 29776 #line hidden 29777 WriteLiteral("</span>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"icon\"><ion-icon src=\"/Files/Templates/Designs/"); 29778 29779 29780 #line 1079 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29781 Write(DesignFolderProductItemList); 29782 29783 29784 #line default 29785 #line hidden 29786 WriteLiteral(@"/icons/default/cart.svg""></ion-icon></span> 29787 </button> 29788 </form> 29789 {{else}} 29790 29791 <div class=""stock-notif-translates"" 29792 data-notification-already-sent="""); 29793 29794 29795 #line 1085 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29796 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)); 29797 29798 29799 #line default 29800 #line hidden 29801 WriteLiteral("\"\r\n data-notification-registered=\""); 29802 29803 29804 #line 1086 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29805 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered)); 29806 29807 29808 #line default 29809 #line hidden 29810 WriteLiteral("\"></div>\r\n "); 29811 29812 WriteLiteral("\r\n"); 29813 29814 29815 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29816 29817 29818 #line default 29819 #line hidden 29820 29821 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29822 if (userIsLoggedInProductItemList) 29823 { 29824 29825 29826 #line default 29827 #line hidden 29828 WriteLiteral(" "); 29829 29830 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 29831 29832 WriteLiteral("\r\n"); 29833 29834 WriteLiteral(" <button"); 29835 29836 WriteLiteral(" type=\"button\""); 29837 29838 WriteLiteral(" class=\"btn-fill--muted\""); 29839 29840 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\""); 29841 29842 WriteLiteral(" data-notified=\"false\""); 29843 29844 WriteLiteral(" data-user-logged-in=\"true\""); 29845 29846 WriteLiteral("> "); 29847 29848 29849 #line 1091 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29850 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 29851 29852 29853 #line default 29854 #line hidden 29855 WriteLiteral("</button>\r\n"); 29856 29857 29858 #line 1092 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29859 29860 29861 29862 #line default 29863 #line hidden 29864 WriteLiteral(" "); 29865 29866 WriteLiteral("{{else}}"); 29867 29868 WriteLiteral("\r\n"); 29869 29870 WriteLiteral(" <button"); 29871 29872 WriteLiteral(" type=\"button\""); 29873 29874 WriteLiteral(" class=\"btn-fill--muted\""); 29875 29876 WriteLiteral(" data-notified=\"true\""); 29877 29878 WriteLiteral(" data-user-logged-in=\"true\""); 29879 29880 WriteLiteral(">"); 29881 29882 29883 #line 1094 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29884 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 29885 29886 29887 #line default 29888 #line hidden 29889 WriteLiteral("</button>\r\n"); 29890 29891 WriteLiteral(" "); 29892 29893 WriteLiteral("{{/ifCond}}"); 29894 29895 WriteLiteral("\r\n"); 29896 29897 29898 #line 1096 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29899 29900 } 29901 else 29902 { 29903 29904 29905 #line default 29906 #line hidden 29907 WriteLiteral(" "); 29908 29909 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 29910 29911 WriteLiteral("\r\n"); 29912 29913 WriteLiteral(" <button"); 29914 29915 WriteLiteral(" type=\"button\""); 29916 29917 WriteLiteral(" class=\"btn-fill--muted\""); 29918 29919 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\""); 29920 29921 WriteLiteral(" data-notified=\"false\""); 29922 29923 WriteLiteral(" data-user-logged-in=\"false\""); 29924 29925 WriteLiteral(">"); 29926 29927 29928 #line 1101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29929 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 29930 29931 29932 #line default 29933 #line hidden 29934 WriteLiteral("</button>\r\n"); 29935 29936 WriteLiteral(" <df-modal"); 29937 29938 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\""); 29939 29940 WriteLiteral("\r\n data-product-name=\"{{name}}\""); 29941 29942 WriteAttribute("heading", Tuple.Create(" \r\n heading=\"", 69195), Tuple.Create("\"", 69306) 29943 29944 #line 1104 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29945 , Tuple.Create(Tuple.Create("", 69251), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock) 29946 29947 #line default 29948 #line hidden 29949 , 69251), false) 29950 ); 29951 29952 WriteLiteral(">\r\n <span>\r\n " + 29953 " <form"); 29954 29955 WriteLiteral(" name=\"{{productId}}\""); 29956 29957 WriteAttribute("action", Tuple.Create(" action=\"", 69436), Tuple.Create("\"", 69503) 29958 , Tuple.Create(Tuple.Create("", 69445), Tuple.Create("/Default.aspx?ID=", 69445), true) 29959 29960 #line 1106 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 29961 , Tuple.Create(Tuple.Create("", 69462), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage") 29962 29963 #line default 29964 #line hidden 29965 , 69462), false) 29966 ); 29967 29968 WriteLiteral(">\r\n <input"); 29969 29970 WriteLiteral(" type=\"hidden\""); 29971 29972 WriteLiteral(" name=\"ProductID\""); 29973 29974 WriteLiteral(" id=\"ProductID\""); 29975 29976 WriteLiteral(" value=\"{{productId}}\""); 29977 29978 WriteLiteral(" />\r\n <input"); 29979 29980 WriteLiteral(" type=\"hidden\""); 29981 29982 WriteLiteral(" name=\"VariantID\""); 29983 29984 WriteLiteral(" id=\"VariantID\""); 29985 29986 WriteLiteral(" value=\"{{variantId}}\""); 29987 29988 WriteLiteral(" />\r\n <input"); 29989 29990 WriteLiteral(" type=\"hidden\""); 29991 29992 WriteLiteral(" name=\"CartCmd\""); 29993 29994 WriteLiteral(" id=\"CartCmd\""); 29995 29996 WriteLiteral(" value=\"createnotificationforthisproduct\""); 29997 29998 WriteLiteral(" />\r\n <df-input required"); 29999 30000 WriteLiteral(" class=\"mb-3\""); 30001 30002 WriteLiteral(" type=\"email\""); 30003 30004 WriteLiteral(" id=\"NotificationEmail\""); 30005 30006 WriteLiteral(" name=\"NotificationEmail\""); 30007 30008 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 70059), Tuple.Create("\"", 70122) 30009 30010 #line 1110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30011 , Tuple.Create(Tuple.Create("", 70073), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress) 30012 30013 #line default 30014 #line hidden 30015 , 70073), false) 30016 ); 30017 30018 WriteLiteral("></df-input>\r\n <button"); 30019 30020 WriteLiteral(" type=\"submit\""); 30021 30022 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\""); 30023 30024 WriteLiteral(">"); 30025 30026 30027 #line 1111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30028 Write(Translate(Translations.Account.CreateRequest)); 30029 30030 30031 #line default 30032 #line hidden 30033 WriteLiteral("</button>\r\n </form>\r\n " + 30034 " </span>\r\n " + 30035 "</df-modal>\r\n"); 30036 30037 WriteLiteral(" "); 30038 30039 WriteLiteral("{{else}}"); 30040 30041 WriteLiteral("\r\n"); 30042 30043 WriteLiteral(" <button"); 30044 30045 WriteLiteral(" type=\"button\""); 30046 30047 WriteLiteral(" class=\"btn-fill--muted\""); 30048 30049 WriteLiteral(" data-notified=\"true\""); 30050 30051 WriteLiteral(" data-user-logged-in=\"false\""); 30052 30053 WriteLiteral(">"); 30054 30055 30056 #line 1116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30057 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 30058 30059 30060 #line default 30061 #line hidden 30062 WriteLiteral("</button>\r\n"); 30063 30064 WriteLiteral(" "); 30065 30066 WriteLiteral("{{/ifCond}}"); 30067 30068 WriteLiteral("\r\n"); 30069 30070 30071 #line 1118 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30072 } 30073 30074 30075 #line default 30076 #line hidden 30077 WriteLiteral(" {{/ifCond}}\r\n \r\n " + 30078 " "); 30079 30080 WriteLiteral("\r\n </div>\r\n {{else}}\r\n " + 30081 " <div class=\"actions\">\r\n <a href=\"/Default.aspx" + 30082 "?ID={{signInPageId}}\" id=\"CartButton_{{id}}\" title=\'"); 30083 30084 30085 #line 1127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30086 Write(Translate(Translations.Account.SignIn)); 30087 30088 30089 #line default 30090 #line hidden 30091 WriteLiteral("\' onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--muted\">"); 30092 30093 30094 #line 1127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30095 Write(Translate(Translations.Account.SignIn)); 30096 30097 30098 #line default 30099 #line hidden 30100 WriteLiteral("</a>\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" title" + 30101 "=\""); 30102 30103 30104 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30105 Write(Translate(Translations.Products.ViewMore)); 30106 30107 30108 #line default 30109 #line hidden 30110 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">"); 30111 30112 30113 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30114 Write(Translate(Translations.Products.ViewMore)); 30115 30116 30117 #line default 30118 #line hidden 30119 WriteLiteral("</a>\r\n </div>\r\n {{/if}}\r\n " + 30120 " </div> \r\n </div>\r\n\t {{/.}}\r\n </script>\r\n\t<scr" + 30121 "ipt"); 30122 30123 WriteLiteral(" id=\"ProductListItemList\""); 30124 30125 WriteLiteral(" type=\"text/x-template\""); 30126 30127 WriteLiteral(">\t\t\r\n {{#.}}\r\n <div id=\"Product{{id}}\" data-template=\"ProductListIt" + 30128 "em\" class=\"product-item\">\r\n {{#Product}}\r\n {{>ProductListI" + 30129 "tem}}\r\n {{/Product}}\r\n </div>\r\n {{/.}} \t\t\r\n\t</sc" + 30130 "ript>\r\n"); 30131 30132 30133 #line 1144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30134 Write(SnippetEnd("BottomJS")); 30135 30136 30137 #line default 30138 #line hidden 30139 WriteLiteral(" \r\n"); 30140 30141 WriteLiteral("\r\n"); 30142 30143 WriteLiteral("\r\n"); 30144 30145 WriteLiteral("\r\n"); 30146 30147 WriteLiteral("\r\n\r\n\r\n"); 30148 30149 30150 #line 1157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30151 Write(SnippetStart("BottomJS")); 30152 30153 30154 #line default 30155 #line hidden 30156 WriteLiteral("\r\n"); 30157 30158 30159 #line 1158 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30160 30161 var areaInfoProductItemDetails = Df.Dw.Rapido.AreaInfo.Current(); 30162 var DesignFolderProductItemDetails = Pageview.Layout.Design.Name; 30163 var userIsLoggedInProductItemDetails = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 30164 30165 30166 #line default 30167 #line hidden 30168 WriteLiteral("\r\n<script"); 30169 30170 WriteLiteral(" id=\"ProductDetailsItem\""); 30171 30172 WriteLiteral(" type=\"text/x-template\""); 30173 30174 WriteLiteral(">\r\n {{#.}}\r\n {{#if googleImpression}}\r\n <text>{{{googleEncha" + 30175 "ntImpression \'Product catalogue\' currency googleImpression}}}</text>\r\n {{" + 30176 "/if}}\r\n <input type=\"hidden\" name=\"ProductLoopCounter{{id}}\" value=\"{{id}" + 30177 "}\" />\r\n <input type=\"hidden\" name=\"ProductID{{id}}\" value=\"{{productId}}\"" + 30178 " />\r\n \r\n <div class=\"product-item--details p-2 grid gap-2\"> \r\n " + 30179 " <div class=\"c0\">\r\n <div class=\"product-item__image\">\r\n " + 30180 " <a href=\"{{link}}\" onclick=\"{{googleImpressionClick}}\" title=\"" + 30181 "{{name}}\" class=\"image-hover__wrapper relative\">\r\n <img c" + 30182 "lass=\"b-lazy\" src=\"/Admin/Public/GetImage.ashx?width=70&amp;height=70&amp;crop=5" + 30183 "&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}" + 30184 "}\" \r\n data-src=\"/Admin/Public/GetImage.ashx?width=70" + 30185 "&amp;height=70&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanva" + 30186 "s=true&amp;image={{image}}\" alt=\"{{name}}\" />\r\n {{#if sec" + 30187 "ondaryImage}}\r\n <img class=\"b-lazy\" data-secondary-i" + 30188 "mage-src=\"/Admin/Public/GetImage.ashx?width=160&amp;height=160&amp;crop=5&amp;Co" + 30189 "mpression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;image={{secondaryImag" + 30190 "e}}\" alt=\"{{name}}\" />\r\n {{/if}} " + 30191 " \r\n {{#StickersContainers}}\r\n " + 30192 " {{>StickersContainer}}\r\n {{/StickersContainers}}\r\n{{" + 30193 "#if showPrices}} \r\n {{#if Prices}}\r\n " + 30194 " {{#displayPromoPrice Prices}}{{/displayPromoPr" + 30195 "ice}}\r\n {{/if}} \r\n " + 30196 " {{/if}}\r\n </a> " + 30197 " \r\n </div>\r\n </div>\r\n <div class=\"c1\">\r\n " + 30198 " {{#if showFavoriteLink}}\r\n {{#ifCond isFavoriteI" + 30199 "nAtLeastOneList \"==\" \"true\"}}\r\n <button class=\"product-it" + 30200 "em__favorite on btn-icon\" aria-label=\"Open favorites list\" has-variants=\"{{hasVa" + 30201 "riants}}\" onclick=\"openModal({id:\'favoriteProductListModal{{productId}}\'})\">\r\n " + 30202 " <ion-icon src=\"/Files/Templates/Designs/"); 30203 30204 30205 #line 1195 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30206 Write(DesignFolderProductItemDetails); 30207 30208 30209 #line default 30210 #line hidden 30211 WriteLiteral(@"/icons/default/favorites-on.svg""></ion-icon> 30212 </button> 30213 {{else}} 30214 <button class=""product-item__favorite off btn-icon"" aria-label=""Open favorites list"" has-variants=""{{hasVariants}}"" onclick=""openModal({id:'favoriteProductListModal{{productId}}'})""> 30215 <ion-icon src=""/Files/Templates/Designs/"); 30216 30217 30218 #line 1199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30219 Write(DesignFolderProductItemDetails); 30220 30221 30222 #line default 30223 #line hidden 30224 WriteLiteral(@"/icons/default/favorites-off.svg""></ion-icon> 30225 </button> 30226 {{/ifCond}} 30227 30228 <df-modal id=""favoriteProductListModal{{productId}}"" 30229 data-was-added-to-list="""); 30230 30231 30232 #line 1204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30233 Write(Translate(Translations.Products.WasAddedToFavoriteList)); 30234 30235 30236 #line default 30237 #line hidden 30238 WriteLiteral("\"\r\n data-was-removed-from-list=\""); 30239 30240 30241 #line 1205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30242 Write(Translate(Translations.Products.WasRemovedFromFavoriteList)); 30243 30244 30245 #line default 30246 #line hidden 30247 WriteLiteral("\"\r\n data-product-name=\"{{name}}\" \r\n " + 30248 " heading=\""); 30249 30250 30251 #line 1207 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30252 Write(Translate(Translations.Products.AddToFavorites)); 30253 30254 30255 #line default 30256 #line hidden 30257 WriteLiteral(@"""> 30258 <span> 30259 {{#Favorite}} 30260 {{>FavoriteTemplate}} 30261 {{/Favorite}} 30262 30263 <div data-link=""{{createNewFavoriteList}}"" 30264 data-enter-list-name="""); 30265 30266 30267 #line 1214 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30268 Write(Translate(Translations.Products.EnterAListName)); 30269 30270 30271 #line default 30272 #line hidden 30273 WriteLiteral("\"\r\n data-list-already-exists=\""); 30274 30275 30276 #line 1215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30277 Write(Translate(Translations.Products.ListWithSameNameAlreadyExists)); 30278 30279 30280 #line default 30281 #line hidden 30282 WriteLiteral("\">\r\n <p class=\"margin-bottom-1em\">"); 30283 30284 30285 #line 1216 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30286 Write(Translate(Translations.Products.OrCreateOneAndAddTheProductToIt)); 30287 30288 30289 #line default 30290 #line hidden 30291 WriteLiteral("</p>\r\n <df-input type=\"text\" value=\"\" class=\"fav" + 30292 "--list--name\" name=\"favorite\" id=\"favorite\" placeholder=\""); 30293 30294 30295 #line 1217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30296 Write(Translate(Translations.Products.OrCreateOne)); 30297 30298 30299 #line default 30300 #line hidden 30301 WriteLiteral("\"></df-input>\r\n <button type=\"button\" class=\"sub" + 30302 "mit--fav--list\">"); 30303 30304 30305 #line 1218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30306 Write(Translate(Translations.General.Create)); 30307 30308 30309 #line default 30310 #line hidden 30311 WriteLiteral(@"</button> 30312 </div> 30313 </span> 30314 </df-modal> 30315 {{/if}} 30316 <div class=""stock""> 30317 {{#ifCond stockValue '>' 0}} 30318 <div class=""product-item__stock weight-bold text-uppercase color-stock-ok""><ion-icon src=""/Files/Templates/Designs/"); 30319 30320 30321 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30322 Write(DesignFolderProductItemDetails); 30323 30324 30325 #line default 30326 #line hidden 30327 WriteLiteral("/icons/default/stock-ok.svg\"></ion-icon> "); 30328 30329 30330 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30331 Write(Translate(Translations.Products.InStock)); 30332 30333 30334 #line default 30335 #line hidden 30336 WriteLiteral("</div> \r\n {{else}}\r\n <div class=\"produc" + 30337 "t-item__stock weight-bold text-uppercase color-stock-none\"><ion-icon src=\"/Files" + 30338 "/Templates/Designs/"); 30339 30340 30341 #line 1227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30342 Write(DesignFolderProductItemDetails); 30343 30344 30345 #line default 30346 #line hidden 30347 WriteLiteral("/icons/default/stock-none.svg\"></ion-icon> "); 30348 30349 30350 #line 1227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30351 Write(Translate(Translations.Products.OutOfStock)); 30352 30353 30354 #line default 30355 #line hidden 30356 WriteLiteral(@"</div> 30357 {{/ifCond}} 30358 </div> 30359 </div> 30360 <div class=""c2 flex-wrap""> 30361 <div class=""c22""> 30362 <a href=""{{link}}"" onclick=""{{googleImpressionClick}}"" title=""{{name}}"" class=""product-item__title text-decoration-none block"">{{name}}</a> 30363 {{#if showProductNumber}} 30364 <div class=""product-item__number small color-muted my-1""><span class=""mr-1 hidden"">"); 30365 30366 30367 #line 1235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30368 Write(Translate(Translations.Products.ProductNumber)); 30369 30370 30371 #line default 30372 #line hidden 30373 WriteLiteral(":</span> <span>{{number}}</span></div>\r\n {{/if}}\r\n " + 30374 " {{#if manufacturer/name}}\r\n <div class=\"product-i" + 30375 "tem__number small color-muted my-1\"><span class=\"mr-1 hidden\">"); 30376 30377 30378 #line 1238 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30379 Write(Translate(Translations.Products.Brand)); 30380 30381 30382 #line default 30383 #line hidden 30384 WriteLiteral(@":</span> <span>{{manufacturer/name}}</span></div> 30385 {{/if}} 30386 </div> 30387 <div class=""list flex-wrap justify-content-center child-mr-2 align-items-center align-self-end w-100""> 30388 <div class=""item""> 30389 <div class=""rating--stars""> 30390 {{#each ratingStars as |item|}} 30391 <ion-icon src=""/Files/Templates/Designs/"); 30392 30393 30394 #line 1245 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30395 Write(DesignFolderProductItemDetails); 30396 30397 30398 #line default 30399 #line hidden 30400 WriteLiteral(@"/icons/default/{{item}}""></ion-icon> 30401 {{/each}} 30402 </div> 30403 </div> 30404 <div class=""item""> 30405 <button name=""Compare{{productId}}{{variantId}}"" class=""btn btn-fill--accent compare-trigger color-muted"" data-compare data-tooltip="""); 30406 30407 30408 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30409 Write(Translate(Translations.Products.AddToCompare)); 30410 30411 30412 #line default 30413 #line hidden 30414 WriteLiteral("\" data-add-compare=\'"); 30415 30416 30417 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30418 Write(Translate(Translations.Products.AddToCompare)); 30419 30420 30421 #line default 30422 #line hidden 30423 WriteLiteral("\' data-remove-compare=\'"); 30424 30425 30426 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30427 Write(Translate(Translations.Products.RemoveFromCompare)); 30428 30429 30430 #line default 30431 #line hidden 30432 WriteLiteral(@"' data-url=""{{link}}"" data-variant-id=""{{variantid}}"" data-id=""{{productId}}"" data-code=""{{number}}"" data-img=""/Admin/Public/GetImage.ashx?width=75&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;image={{image}}"" data-name=""{{name}}"" data-group=""{{groupId}}""><span>"); 30433 30434 30435 #line 1250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30436 Write(Translate(Translations.Products.AddToCompare)); 30437 30438 30439 #line default 30440 #line hidden 30441 WriteLiteral(@"</span></button> 30442 </div> 30443 </div> 30444 </div> 30445 <div class=""c3 flex-wrap align-items-center justify-content-end""> 30446 <div class=""prices""> 30447 <div class=""prices""> 30448 {{#if discount}} 30449 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}"">{{{discount}}}</span> 30450 {{/if}} 30451 <span class=""product-item__price--sale small line-through color-muted weight-normal my-1 {{onSale}}"">{{{priceWithoutVAT}}}</span> 30452 {{#if showPriceWithoutVAT}} 30453 <span class=""product-item__price--nosale color-brand my-1"">{{{priceWithoutVAT}}}</span> 30454 {{#if showPriceWithVAT}} 30455 <small>{{{priceWithVAT}}} "); 30456 30457 30458 #line 1264 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30459 Write(Translate(Translations.Products.InclVAT)); 30460 30461 30462 #line default 30463 #line hidden 30464 WriteLiteral(@"</small> 30465 {{/if}} 30466 {{else}} 30467 {{#if showPriceWithVAT}} 30468 <span class=""product-item__price--nosale color-brand my-1"">{{{priceWithVAT}}}</span> 30469 {{/if}} 30470 {{/if}} 30471 </div> 30472 </div> 30473 </div> 30474 <div class=""c4 flex-wrap align-items-center""> 30475 {{#if allowAddToCart}} 30476 <div class=""actions flex-wrap justify-content-end""> 30477 {{#ifCond stockValue '>' 0}} 30478 <form> 30479 <input type=""hidden"" name=""ProductID"" value=""{{productId}}"" /> 30480 <input type=""hidden"" name=""VariantID"" value=""{{variantId}}"" /> 30481 <input type=""hidden"" name=""ID"" value="""); 30482 30483 30484 #line 1281 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30485 Write(areaInfoProductItemDetails.MiniCartFeedPage.ID.ToString()); 30486 30487 30488 #line default 30489 #line hidden 30490 WriteLiteral(@""" /> 30491 <input type=""hidden"" name=""redirect"" value=""false"" /> 30492 <input type=""hidden"" name=""CartCmd"" value=""add"" /> 30493 <df-quantity type=""number"" id=""Quantity_{{id}}"" class=""product-item__quantity"" name=""Quantity"" value=""{{minimumQuantity}}"" min=""{{minimumQuantity}}"" max=""{{stockValue}}"" step=""{{quantityStep}}""></df-quantity> 30494 <button type=""button"" id=""CartButton_{{id}}"" class=""btn-fill--buy btn-icon {{disabledBuyButton}}"" 30495 onclick=""{{facebookPixelAction}}"" {{disabledBuyButton}} 30496 data-role=""add-to-cart"" 30497 message-success="""); 30498 30499 30500 #line 1288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30501 Write(Translate(Translations.Cart.ProductIsAddedToTheCart)); 30502 30503 30504 #line default 30505 #line hidden 30506 WriteLiteral("\"\r\n >\r\n <io" + 30507 "n-icon src=\"/Files/Templates/Designs/"); 30508 30509 30510 #line 1290 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30511 Write(DesignFolderProductItemDetails); 30512 30513 30514 #line default 30515 #line hidden 30516 WriteLiteral(@"/icons/default/cart.svg""></ion-icon> 30517 </button> 30518 </form> 30519 {{else}} 30520 <div class=""stock-notif-translates"" 30521 data-notification-already-sent="""); 30522 30523 30524 #line 1295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30525 Write(Translate(Translations.Products.NotifyWhenBackOnStockAlreadySent)); 30526 30527 30528 #line default 30529 #line hidden 30530 WriteLiteral("\"\r\n data-notification-registered=\""); 30531 30532 30533 #line 1296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30534 Write(Translate(Translations.Products.NotifyWhenBackOnStockRegistered)); 30535 30536 30537 #line default 30538 #line hidden 30539 WriteLiteral("\"></div>\r\n "); 30540 30541 WriteLiteral("\r\n"); 30542 30543 30544 #line 1298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30545 30546 30547 #line default 30548 #line hidden 30549 30550 #line 1298 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30551 if (userIsLoggedInProductItemDetails) 30552 { 30553 30554 30555 #line default 30556 #line hidden 30557 WriteLiteral(" "); 30558 30559 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 30560 30561 WriteLiteral("\r\n"); 30562 30563 WriteLiteral(" <button"); 30564 30565 WriteLiteral(" type=\"button\""); 30566 30567 WriteLiteral(" class=\"btn-fill--muted btn-icon\""); 30568 30569 WriteLiteral(" data-tooltip-content=\""); 30570 30571 30572 #line 1301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30573 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 30574 30575 30576 #line default 30577 #line hidden 30578 WriteLiteral("\""); 30579 30580 WriteLiteral(" data-create-notify=\"{{notifyWhenBackOnStockLink}}\""); 30581 30582 WriteLiteral(" data-notified=\"false\""); 30583 30584 WriteLiteral(" data-user-logged-in=\"true\""); 30585 30586 WriteLiteral(">\r\n <ion-icon"); 30587 30588 WriteAttribute("src", Tuple.Create(" src=\"", 84436), Tuple.Create("\"", 84529) 30589 , Tuple.Create(Tuple.Create("", 84442), Tuple.Create("/Files/Templates/Designs/", 84442), true) 30590 30591 #line 1302 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30592 , Tuple.Create(Tuple.Create("", 84467), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails 30593 30594 #line default 30595 #line hidden 30596 , 84467), false) 30597 , Tuple.Create(Tuple.Create("", 84498), Tuple.Create("/icons/default/alert-circle.svg", 84498), true) 30598 ); 30599 30600 WriteLiteral("></ion-icon>\r\n </button>\r\n"); 30601 30602 30603 #line 1304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30604 30605 30606 30607 #line default 30608 #line hidden 30609 WriteLiteral(" "); 30610 30611 WriteLiteral("{{else}}"); 30612 30613 WriteLiteral("\r\n"); 30614 30615 WriteLiteral(" <button"); 30616 30617 WriteLiteral(" type=\"button\""); 30618 30619 WriteLiteral(" class=\"btn-fill--muted btn-icon\""); 30620 30621 WriteLiteral(" data-tooltip-content=\""); 30622 30623 30624 #line 1306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30625 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 30626 30627 30628 #line default 30629 #line hidden 30630 WriteLiteral("\""); 30631 30632 WriteLiteral(" data-notified=\"true\""); 30633 30634 WriteLiteral(" data-user-logged-in=\"true\""); 30635 30636 WriteLiteral(">\r\n <ion-icon"); 30637 30638 WriteAttribute("src", Tuple.Create(" src=\"", 84965), Tuple.Create("\"", 85058) 30639 , Tuple.Create(Tuple.Create("", 84971), Tuple.Create("/Files/Templates/Designs/", 84971), true) 30640 30641 #line 1307 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30642 , Tuple.Create(Tuple.Create("", 84996), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails 30643 30644 #line default 30645 #line hidden 30646 , 84996), false) 30647 , Tuple.Create(Tuple.Create("", 85027), Tuple.Create("/icons/default/alert-circle.svg", 85027), true) 30648 ); 30649 30650 WriteLiteral("></ion-icon>\r\n </button>\r\n"); 30651 30652 WriteLiteral(" "); 30653 30654 WriteLiteral("{{/ifCond}}"); 30655 30656 WriteLiteral("\r\n"); 30657 30658 30659 #line 1310 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30660 30661 } 30662 else 30663 { 30664 30665 30666 #line default 30667 #line hidden 30668 WriteLiteral(" "); 30669 30670 WriteLiteral("{{#ifCond notificationRegistered \'==\' false}}"); 30671 30672 WriteLiteral("\r\n"); 30673 30674 WriteLiteral(" <button"); 30675 30676 WriteLiteral(" type=\"button\""); 30677 30678 WriteLiteral(" class=\"btn-fill--muted btn-icon\""); 30679 30680 WriteLiteral(" data-tooltip-content=\""); 30681 30682 30683 #line 1315 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30684 Write(Translate(Translations.Products.NotifyWhenBackOnStock)); 30685 30686 30687 #line default 30688 #line hidden 30689 WriteLiteral("\""); 30690 30691 WriteLiteral(" onclick=\"openModal({id:\'notifyWhenBackOnStock{{productId}}\'})\""); 30692 30693 WriteLiteral(" data-notified=\"false\""); 30694 30695 WriteLiteral(" data-user-logged-in=\"false\""); 30696 30697 WriteLiteral(">\r\n <ion-icon"); 30698 30699 WriteAttribute("src", Tuple.Create(" src=\"", 85734), Tuple.Create("\"", 85827) 30700 , Tuple.Create(Tuple.Create("", 85740), Tuple.Create("/Files/Templates/Designs/", 85740), true) 30701 30702 #line 1316 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30703 , Tuple.Create(Tuple.Create("", 85765), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails 30704 30705 #line default 30706 #line hidden 30707 , 85765), false) 30708 , Tuple.Create(Tuple.Create("", 85796), Tuple.Create("/icons/default/alert-circle.svg", 85796), true) 30709 ); 30710 30711 WriteLiteral("></ion-icon>\r\n </button>\r\n"); 30712 30713 WriteLiteral(" <df-modal"); 30714 30715 WriteLiteral(" id=\"notifyWhenBackOnStock{{productId}}\""); 30716 30717 WriteLiteral("\r\n data-product-name=\"{{name}}\""); 30718 30719 WriteAttribute("heading", Tuple.Create(" \r\n heading=\"", 86040), Tuple.Create("\"", 86147) 30720 30721 #line 1320 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30722 , Tuple.Create(Tuple.Create("", 86092), Tuple.Create<System.Object, System.Int32>(Translate(Translations.Products.NotifyWhenBackOnStock) 30723 30724 #line default 30725 #line hidden 30726 , 86092), false) 30727 ); 30728 30729 WriteLiteral(">\r\n <span>\r\n " + 30730 " <form"); 30731 30732 WriteLiteral(" name=\"{{productId}}\""); 30733 30734 WriteAttribute("action", Tuple.Create(" action=\"", 86269), Tuple.Create("\"", 86336) 30735 , Tuple.Create(Tuple.Create("", 86278), Tuple.Create("/Default.aspx?ID=", 86278), true) 30736 30737 #line 1322 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30738 , Tuple.Create(Tuple.Create("", 86295), Tuple.Create<System.Object, System.Int32>(GetPageIdByNavigationTag("ProductsPage") 30739 30740 #line default 30741 #line hidden 30742 , 86295), false) 30743 ); 30744 30745 WriteLiteral(">\r\n <input"); 30746 30747 WriteLiteral(" type=\"hidden\""); 30748 30749 WriteLiteral(" name=\"ProductID\""); 30750 30751 WriteLiteral(" id=\"ProductID\""); 30752 30753 WriteLiteral(" value=\"{{productId}}\""); 30754 30755 WriteLiteral(" />\r\n <input"); 30756 30757 WriteLiteral(" type=\"hidden\""); 30758 30759 WriteLiteral(" name=\"VariantID\""); 30760 30761 WriteLiteral(" id=\"VariantID\""); 30762 30763 WriteLiteral(" value=\"{{variantId}}\""); 30764 30765 WriteLiteral(" />\r\n <input"); 30766 30767 WriteLiteral(" type=\"hidden\""); 30768 30769 WriteLiteral(" name=\"CartCmd\""); 30770 30771 WriteLiteral(" id=\"CartCmd\""); 30772 30773 WriteLiteral(" value=\"createnotificationforthisproduct\""); 30774 30775 WriteLiteral(" />\r\n <df-input required"); 30776 30777 WriteLiteral(" type=\"email\""); 30778 30779 WriteLiteral(" class=\"mb-3\""); 30780 30781 WriteLiteral(" id=\"NotificationEmail\""); 30782 30783 WriteLiteral(" name=\"NotificationEmail\""); 30784 30785 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 86877), Tuple.Create("\"", 86940) 30786 30787 #line 1326 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30788 , Tuple.Create(Tuple.Create("", 86891), Tuple.Create<System.Object, System.Int32>(Translate(Translations.General.YourEmailAddress) 30789 30790 #line default 30791 #line hidden 30792 , 86891), false) 30793 ); 30794 30795 WriteLiteral("></df-input>\r\n <button"); 30796 30797 WriteLiteral(" type=\"submit\""); 30798 30799 WriteLiteral(" class=\"create-stock-notification-request btn-fill--brand\""); 30800 30801 WriteLiteral(">"); 30802 30803 30804 #line 1327 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30805 Write(Translate(Translations.Account.CreateRequest)); 30806 30807 30808 #line default 30809 #line hidden 30810 WriteLiteral("</button>\r\n </form>\r\n " + 30811 " </span>\r\n </df-modal>\r" + 30812 "\n"); 30813 30814 WriteLiteral(" "); 30815 30816 WriteLiteral("{{else}}"); 30817 30818 WriteLiteral("\r\n"); 30819 30820 WriteLiteral(" <button"); 30821 30822 WriteLiteral(" type=\"button\""); 30823 30824 WriteLiteral(" class=\"btn-fill--muted btn-icon\""); 30825 30826 WriteLiteral(" data-tooltip-content=\""); 30827 30828 30829 #line 1332 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30830 Write(Translate(Translations.Products.NotifyWhenBackOnStockSent)); 30831 30832 30833 #line default 30834 #line hidden 30835 WriteLiteral("\""); 30836 30837 WriteLiteral(" data-notified=\"true\""); 30838 30839 WriteLiteral(" data-user-logged-in=\"false\""); 30840 30841 WriteLiteral(">\r\n <ion-icon"); 30842 30843 WriteAttribute("src", Tuple.Create(" src=\"", 87616), Tuple.Create("\"", 87709) 30844 , Tuple.Create(Tuple.Create("", 87622), Tuple.Create("/Files/Templates/Designs/", 87622), true) 30845 30846 #line 1333 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30847 , Tuple.Create(Tuple.Create("", 87647), Tuple.Create<System.Object, System.Int32>(DesignFolderProductItemDetails 30848 30849 #line default 30850 #line hidden 30851 , 87647), false) 30852 , Tuple.Create(Tuple.Create("", 87678), Tuple.Create("/icons/default/alert-circle.svg", 87678), true) 30853 ); 30854 30855 WriteLiteral("></ion-icon>\r\n </button>\r\n"); 30856 30857 WriteLiteral(" "); 30858 30859 WriteLiteral("{{/ifCond}}"); 30860 30861 WriteLiteral("\r\n"); 30862 30863 30864 #line 1336 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30865 } 30866 30867 30868 #line default 30869 #line hidden 30870 WriteLiteral(@" {{/ifCond}} 30871 </div> 30872 {{else}} 30873 <div class=""actions""> 30874 <a href=""/Default.aspx?ID={{signInPageId}}"" id=""CartButton_{{id}}"" title='"); 30875 30876 30877 #line 1341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30878 Write(Translate(Translations.Account.SignIn)); 30879 30880 30881 #line default 30882 #line hidden 30883 WriteLiteral("\' onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--accent\">"); 30884 30885 30886 #line 1341 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30887 Write(Translate(Translations.Account.SignIn)); 30888 30889 30890 #line default 30891 #line hidden 30892 WriteLiteral("</a>\r\n <a href=\"{{link}}\" id=\"CartButton_{{id}}\" title=\""); 30893 30894 30895 #line 1342 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30896 Write(Translate(Translations.Products.ViewMore)); 30897 30898 30899 #line default 30900 #line hidden 30901 WriteLiteral("\" onclick=\"{{googleImpressionClick}}\" class=\"btn btn-fill--neutral\">"); 30902 30903 30904 #line 1342 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30905 Write(Translate(Translations.Products.ViewMore)); 30906 30907 30908 #line default 30909 #line hidden 30910 WriteLiteral("</a>\r\n </div> \r\n " + 30911 " {{/if}}\r\n </div> \r\n </div>\r\n {{/.}}\r\n <" + 30912 "/script>\r\n <script"); 30913 30914 WriteLiteral(" id=\"ProductDetailsItemList\""); 30915 30916 WriteLiteral(" type=\"text/x-template\""); 30917 30918 WriteLiteral(">\r\n\t\t{{#.}}\r\n <div id=\"Product{{id}}\" data-template=\"ProductDetailsItem\" c" + 30919 "lass=\"product-item\">\r\n {{#Product}}\r\n {{>ProductDetailsIte" + 30920 "m}}\r\n {{/Product}}\r\n </div>\r\n {{/.}}\t\t\t\r\n\t</script>\r\n"); 30921 30922 30923 #line 1358 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30924 Write(SnippetEnd("BottomJS")); 30925 30926 30927 #line default 30928 #line hidden 30929 WriteLiteral(" \r\n\r\n"); 30930 30931 30932 #line 1360 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30933 30934 //Font settings 30935 var fonts = new string[] { 30936 getFontFamily("Layout", "HeaderFont"), 30937 getFontFamily("Layout", "SubheaderFont"), 30938 getFontFamily("Layout", "TertiaryHeaderFont"), 30939 getFontFamily("Layout", "BodyText"), 30940 getFontFamily("Layout", "Header", "ToolsFont"), 30941 getFontFamily("Layout", "Header", "NavigationFont"), 30942 getFontFamily("Layout", "MobileNavigation", "Font"), 30943 getFontFamily("ProductList", "Facets", "HeaderFont"), 30944 getFontFamily("ProductPage", "PriceFontDesign"), 30945 getFontFamily("Ecommerce", "SaleSticker", "Font"), 30946 getFontFamily("Ecommerce", "NewSticker", "Font"), 30947 getFontFamily("Ecommerce", "CustomSticker", "Font") 30948 }; 30949 30950 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 30951 var googleAPIKey = areaInfo.GoogleMapsAPIKey; 30952 var user = User.GetCurrentExtranetUser(); 30953 bool isB2B = user.IsB2b(); 30954 bool isB2C = user.IsB2c(); 30955 30956 var DesignFolder = Pageview.Layout.Design.Name; 30957 bool useFontAwesomePro = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetBoolean("UseFontAwesomePro"); 30958 string fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomeFree/css/fontawesome-all.min.css"; 30959 30960 string autoCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/rapido/wizaris_" + Model.Area.ID.ToString() + ".min.css?ticks=" + Model.Area.UpdatedDate.Ticks; 30961 string wizarisCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/Dotfusion/app.css?ticks=" + Model.Area.UpdatedDate.Ticks; 30962 string ApplicationCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks; 30963 string ApplicationDeferCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/defer.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks; 30964 30965 if (useFontAwesomePro) 30966 { 30967 fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomePro/css/fontawesome-all.min.css"; 30968 } 30969 30970 30971 #line default 30972 #line hidden 30973 WriteLiteral("\r\n\r\n"); 30974 30975 30976 #line 1398 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 30977 30978 Block master = new Block() 30979 { 30980 Id = "Master", 30981 BlocksList = new List<Block> { 30982 new Block { 30983 Id = "MasterTopSnippets", 30984 SortId = 10 30985 }, 30986 new Block { 30987 Id = "MasterMain", 30988 SortId = 20, 30989 Template = RenderMain(), 30990 SkipRenderBlocksList = true, 30991 BlocksList = new List<Block> { 30992 // new Block { 30993 // Id = "MasterHeaderTop", 30994 // SortId = 1, 30995 // Template = RenderMasterTop(), 30996 // SkipRenderBlocksList = true 30997 // }, 30998 new Block { 30999 Id = "MasterHeader", 31000 SortId = 10, 31001 Template = RenderMasterHeader(), 31002 SkipRenderBlocksList = true 31003 }, 31004 new Block { 31005 Id = "MasterPageContent", 31006 SortId = 20, 31007 Template = RenderPageContent() 31008 } 31009 } 31010 }, 31011 new Block { 31012 Id = "MasterFooter", 31013 SortId = 30 31014 }, 31015 new Block { 31016 Id = "MasterReferences", 31017 SortId = 40 31018 }, 31019 new Block { 31020 Id = "MasterBottomSnippets", 31021 SortId = 50 31022 } 31023 } 31024 }; 31025 31026 masterPage.Add(master); 31027 31028 31029 #line default 31030 #line hidden 31031 WriteLiteral("\r\n\r\n"); 31032 31033 WriteLiteral("\r\n"); 31034 31035 WriteLiteral("\r\n\r\n"); 31036 31037 WriteLiteral("\r\n\r\n"); 31038 31039 WriteLiteral("\r\n"); 31040 31041 WriteLiteral("\r\n"); 31042 31043 WriteLiteral("\r\n\r\n\r\n"); 31044 31045 WriteLiteral("\r\n"); 31046 31047 WriteLiteral("\r\n"); 31048 31049 WriteLiteral("\r\n"); 31050 31051 WriteLiteral("\r\n\r\n"); 31052 31053 WriteLiteral("\r\n"); 31054 31055 WriteLiteral("\r\n"); 31056 31057 WriteLiteral("\r\n\r\n"); 31058 31059 WriteLiteral("\r\n\r\n"); 31060 31061 WriteLiteral("\r\n"); 31062 31063 WriteLiteral("\r\n\r\n"); 31064 31065 WriteLiteral("\r\n"); 31066 31067 WriteLiteral("\r\n"); 31068 31069 WriteLiteral("\r\n"); 31070 31071 WriteLiteral("\r\n"); 31072 31073 WriteLiteral("\r\n"); 31074 31075 WriteLiteral("\r\n\r\n"); 31076 31077 WriteLiteral("\r\n\r\n"); 31078 31079 WriteLiteral("\r\n\r\n"); 31080 31081 WriteLiteral("\r\n\r\n"); 31082 31083 WriteLiteral("\r\n\r\n"); 31084 31085 WriteLiteral("\r\n\r\n"); 31086 31087 WriteLiteral("\r\n\r\n"); 31088 31089 WriteLiteral("\r\n\r\n"); 31090 31091 WriteLiteral("\r\n\r\n"); 31092 31093 WriteLiteral("\r\n\r\n"); 31094 31095 WriteLiteral("\r\n\r\n"); 31096 31097 WriteLiteral("\r\n"); 31098 31099 WriteLiteral("\r\n\r\n"); 31100 31101 WriteLiteral("\r\n\r\n"); 31102 31103 WriteLiteral("\r\n\r\n"); 31104 31105 WriteLiteral("\r\n"); 31106 31107 WriteLiteral("\r\n"); 31108 31109 WriteLiteral("\r\n\r\n"); 31110 31111 WriteLiteral("\r\n"); 31112 31113 WriteLiteral("\r\n\r\n"); 31114 31115 WriteLiteral("\r\n"); 31116 31117 WriteLiteral("\r\n\r\n"); 31118 31119 WriteLiteral("\r\n"); 31120 31121 WriteLiteral("\r\n\r\n"); 31122 31123 WriteLiteral("\r\n\r\n"); 31124 31125 WriteLiteral("\r\n\r\n"); 31126 31127 WriteLiteral("\r\n\r\n"); 31128 31129 WriteLiteral("\r\n\r\n"); 31130 31131 WriteLiteral("\r\n"); 31132 31133 WriteLiteral("\r\n\r\n"); 31134 31135 WriteLiteral("\r\n\r\n"); 31136 31137 WriteLiteral("\r\n\r\n"); 31138 31139 WriteLiteral("\r\n"); 31140 31141 WriteLiteral("\r\n\r\n"); 31142 31143 WriteLiteral("\r\n\r\n"); 31144 31145 WriteLiteral("\r\n\r\n"); 31146 31147 WriteLiteral("\r\n"); 31148 31149 WriteLiteral("\r\n"); 31150 31151 WriteLiteral("\r\n\r\n"); 31152 31153 WriteLiteral("\r\n\r\n"); 31154 31155 WriteLiteral("\r\n\r\n"); 31156 31157 WriteLiteral("\r\n\r\n"); 31158 31159 WriteLiteral("\r\n\r\n"); 31160 31161 WriteLiteral("\r\n\r\n"); 31162 31163 WriteLiteral("\r\n\r\n"); 31164 31165 WriteLiteral("\r\n"); 31166 31167 WriteLiteral("\r\n\r\n"); 31168 31169 WriteLiteral("\r\n\r\n"); 31170 31171 WriteLiteral("\r\n"); 31172 31173 WriteLiteral("\r\n\r\n"); 31174 31175 WriteLiteral("\r\n\r\n"); 31176 31177 WriteLiteral("\r\n\r\n"); 31178 31179 WriteLiteral("\r\n\r\n"); 31180 31181 WriteLiteral("\r\n\r\n"); 31182 31183 WriteLiteral("\r\n\r\n"); 31184 31185 WriteLiteral("\r\n\r\n"); 31186 31187 WriteLiteral("\r\n\r\n"); 31188 31189 WriteLiteral("\r\n"); 31190 31191 WriteLiteral("\r\n\r\n"); 31192 31193 WriteLiteral("\r\n"); 31194 31195 WriteLiteral("\r\n"); 31196 31197 WriteLiteral("\r\n"); 31198 31199 WriteLiteral("\r\n"); 31200 31201 WriteLiteral("\r\n\r\n"); 31202 31203 WriteLiteral("\r\n"); 31204 31205 WriteLiteral("\r\n\r\n"); 31206 31207 WriteLiteral("\r\n"); 31208 31209 WriteLiteral("\r\n\r\n"); 31210 31211 WriteLiteral("\r\n"); 31212 31213 WriteLiteral("\r\n"); 31214 31215 WriteLiteral("\r\n\r\n"); 31216 31217 WriteLiteral("\r\n\r\n"); 31218 31219 WriteLiteral("\r\n\r\n"); 31220 31221 WriteLiteral("\r\n"); 31222 31223 WriteLiteral("\r\n"); 31224 31225 WriteLiteral("\r\n"); 31226 31227 WriteLiteral("\r\n"); 31228 31229 WriteLiteral("\r\n"); 31230 31231 WriteLiteral("\r\n"); 31232 31233 WriteLiteral("\r\n\r\n"); 31234 31235 WriteLiteral("\r\n"); 31236 31237 WriteLiteral("\r\n\r\n"); 31238 31239 WriteLiteral("\r\n\r\n"); 31240 31241 WriteLiteral("\r\n\r\n"); 31242 31243 WriteLiteral("\r\n\r\n"); 31244 31245 WriteLiteral("\r\n\r\n"); 31246 31247 WriteLiteral("\r\n\r\n"); 31248 31249 WriteLiteral("\r\n\r\n"); 31250 31251 WriteLiteral("\r\n"); 31252 31253 WriteLiteral("\r\n\r\n"); 31254 31255 WriteLiteral("\r\n"); 31256 31257 WriteLiteral("\r\n\r\n"); 31258 31259 WriteLiteral("\r\n\r\n"); 31260 31261 WriteLiteral("\r\n\r\n"); 31262 31263 WriteLiteral("\r\n\r\n"); 31264 31265 WriteLiteral("\r\n\r\n"); 31266 31267 WriteLiteral("\r\n"); 31268 31269 WriteLiteral("\r\n"); 31270 31271 WriteLiteral("\r\n\r\n"); 31272 31273 WriteLiteral("\r\n\r\n"); 31274 31275 WriteLiteral("\r\n\r\n"); 31276 31277 WriteLiteral("\r\n"); 31278 31279 WriteLiteral("\r\n"); 31280 31281 WriteLiteral("\r\n"); 31282 31283 WriteLiteral("\r\n\r\n"); 31284 31285 WriteLiteral("\r\n"); 31286 31287 WriteLiteral("\r\n\r\n"); 31288 31289 WriteLiteral("\r\n"); 31290 31291 WriteLiteral("\r\n\r\n"); 31292 31293 WriteLiteral("\r\n"); 31294 31295 WriteLiteral("\r\n\r\n"); 31296 31297 WriteLiteral("\r\n"); 31298 31299 WriteLiteral("\r\n"); 31300 31301 WriteLiteral("\r\n"); 31302 31303 WriteLiteral("\r\n"); 31304 31305 WriteLiteral("\r\n\r\n"); 31306 31307 WriteLiteral("\r\n\r\n"); 31308 31309 WriteLiteral("\r\n\r\n"); 31310 31311 WriteLiteral("\r\n"); 31312 31313 WriteLiteral("\r\n\r\n"); 31314 31315 WriteLiteral("\r\n"); 31316 31317 WriteLiteral("\r\n"); 31318 31319 WriteLiteral("\r\n\r\n"); 31320 31321 WriteLiteral("\r\n\r\n\r\n"); 31322 31323 WriteLiteral("\r\n\r\n"); 31324 31325 WriteLiteral("\r\n"); 31326 31327 WriteLiteral("\r\n"); 31328 31329 WriteLiteral("\r\n"); 31330 31331 31332 #line 4816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31333 if (File.Exists(HttpContext.Current.Server.MapPath("/Components/Custom/Custom__Components.cshtml"))) 31334 { 31335 31336 31337 #line default 31338 #line hidden 31339 WriteLiteral(" "); 31340 31341 WriteLiteral("\r\n"); 31342 31343 WriteLiteral("\r\n"); 31344 31345 WriteLiteral(" \r\n"); 31346 31347 WriteLiteral("\r\n"); 31348 31349 WriteLiteral("\r\n"); 31350 31351 WriteLiteral("\r\n"); 31352 31353 WriteLiteral("\r\n\r\n"); 31354 31355 WriteLiteral(" \r\n"); 31356 31357 WriteLiteral(" "); 31358 31359 WriteLiteral("\r\n"); 31360 31361 31362 #line 5060 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31363 } 31364 31365 31366 31367 #line default 31368 #line hidden 31369 31370 #line 5062 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31371 31372 31373 31374 #line default 31375 #line hidden 31376 WriteLiteral("\r\n\r\n"); 31377 31378 31379 #line 5072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31380 31381 BlocksPage topSnippetsBlocksPage = BlocksPage.GetBlockPage("Master"); 31382 31383 Block tagManager = new Block() 31384 { 31385 Id = "TagManager", 31386 SortId = 1, 31387 Template = RenderGoogleTagManager() 31388 }; 31389 31390 Block facebookPixel = new Block() 31391 { 31392 Id = "FacebookPixel", 31393 SortId = 2, 31394 Template = RenderFacebookPixel() 31395 }; 31396 31397 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, tagManager); 31398 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, facebookPixel); 31399 31400 31401 #line default 31402 #line hidden 31403 WriteLiteral("\r\n\r\n"); 31404 31405 WriteLiteral("\r\n"); 31406 31407 WriteLiteral("\r\n\r\n"); 31408 31409 31410 #line 5149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31411 31412 BlocksPage loginBlocksPage = BlocksPage.GetBlockPage("Master"); 31413 31414 Block loginModal = new Block() 31415 { 31416 Id = "LoginModal", 31417 SortId = 10, 31418 Template = LoginModal() 31419 }; 31420 loginBlocksPage.Add(MasterBlockId.MasterBottomSnippets, loginModal); 31421 31422 31423 #line default 31424 #line hidden 31425 WriteLiteral("\r\n\r\n"); 31426 31427 WriteLiteral("\r\n\r\n\r\n\r\n"); 31428 31429 WriteLiteral("\r\n\r\n"); 31430 31431 WriteLiteral("\r\n"); 31432 31433 31434 #line 5312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31435 31436 bool mobileOnlyPreview = Model.Area.Item.GetItem("Ecommerce").GetBoolean("mobileOnlyPreviewForAnonymous") && Model.CurrentUser.ID == 0; 31437 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"; 31438 bool mobileHideSearch = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSearch"); 31439 bool mobileHideCart = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideCart") || mobileOnlyPreview; 31440 31441 // Block mobileHeader = new Block() 31442 // { 31443 // Id = "MobileTop", 31444 // SortId = 10, 31445 // Template = RenderMobileTop(), 31446 // SkipRenderBlocksList = true 31447 // }; 31448 // mobileHeaderBlocksPage.Add("MasterReferences", mobileHeader); 31449 31450 // Block mobileContactContainer = new Block() 31451 // { 31452 // Id = "MobileContactContainer", 31453 // SortId = 90, 31454 // Template = RenderMobileContactContainer(), 31455 // SkipRenderBlocksList = true 31456 // }; 31457 //mobileHeaderBlocksPage.Add("MasterReferences", mobileContactContainer); 31458 31459 // Block mobileHeaderNavigation = new Block() 31460 // { 31461 // Id = "MobileHeaderNavigation", 31462 // SortId = 10, 31463 // Template = RenderMobileHeaderNavigation(), 31464 // SkipRenderBlocksList = true, 31465 // Design = new Design 31466 // { 31467 // CssClass = "nav--primary M" 31468 // }, 31469 // // BlocksList = new List<Block> { 31470 // // new Block { 31471 // // Id = "MobileHeaderNavigationTrigger", 31472 // // SortId = 10, 31473 // // Template = RenderMobileHeaderNavigationTrigger() 31474 // // } 31475 // // } 31476 // }; 31477 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderNavigation); 31478 31479 // Block mobileHeaderLogo = new Block() 31480 // { 31481 // Id = "MobileHeaderLogo", 31482 // SortId = 20, 31483 // Template = RenderMobileHeaderLogo(), 31484 // SkipRenderBlocksList = true 31485 // }; 31486 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderLogo); 31487 31488 // Block mobileHeaderActions = new Block() 31489 // { 31490 // Id = "MobileHeaderActions", 31491 // SortId = 30, 31492 // Template = RenderMobileTopActions(), 31493 // SkipRenderBlocksList = true 31494 // }; 31495 // mobileHeaderBlocksPage.Add("MobileTop", mobileHeaderActions); 31496 31497 // if (mobileHideSearch == false) 31498 // { 31499 // Block mobileHeaderSearch = new Block 31500 // { 31501 // Id = "MobileHeaderSearch", 31502 // SortId = 10 31503 // }; 31504 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderSearch); 31505 // } 31506 31507 // Block mobileHeaderMiniCart; 31508 31509 // if (!mobileHideCart) 31510 // { 31511 // mobileHeaderMiniCart = new Block 31512 // { 31513 // Id = "MobileHeaderMiniCart", 31514 // SortId = 20, 31515 // Template = RenderMobileMiniCart() 31516 // }; 31517 31518 Block miniCartCounterScriptTemplatev2 = new Block 31519 { 31520 Id = "MiniCartCounterScriptTemplate", 31521 Template = RenderMiniCartCounterContentRefactored() 31522 }; 31523 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", miniCartCounterScriptTemplatev2); 31524 //} 31525 // else 31526 // { 31527 // mobileHeaderMiniCart = new Block 31528 // { 31529 // Id = "MobileHeaderMiniCart", 31530 // SortId = 20 31531 // }; 31532 // } 31533 31534 // user 31535 // Block mobileHeaderUser = new Block 31536 // { 31537 // Id = "MobileHeaderUser", 31538 // SortId = 10, 31539 // Template = RenderMobileUser() 31540 // }; 31541 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderUser); 31542 // end user 31543 31544 31545 // if (!mobileHideSearch) 31546 // { 31547 // Block mobileHamburger = new Block 31548 // { 31549 // Id = "MobileHamburger", 31550 // SortId = 40, 31551 // Template = RenderMobileHamburger() 31552 // }; 31553 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHamburger); 31554 // } 31555 // 31556 // 31557 // if (!mobileHideSearch) 31558 // { 31559 // Block mobileBottomSearch = new Block 31560 // { 31561 // Id = "MobileBottomSearch", 31562 // SortId = 50, 31563 // Template = RenderMobileSearch() 31564 // }; 31565 // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileBottomSearch); 31566 // } 31567 31568 31569 31570 31571 // if (!mobileHideSearch) 31572 // { 31573 // Block mobileHeaderSearchBar = new Block() 31574 // { 31575 // Id = "MobileHeaderSearchBar", 31576 // SortId = 30, 31577 // Template = RenderMobileTopSearchBar(), 31578 // Design = new Design 31579 // { 31580 // CssClass = "nav--wrapper SC" 31581 // } 31582 // }; 31583 // mobileHeaderBlocksPage.Add(MasterBlockId.MasterHeader, mobileHeaderSearchBar); 31584 // } 31585 31586 // switch (mobileTopLayout) 31587 // { 31588 // case "nav-left": 31589 // mobileHeaderNavigation.SortId = 10; 31590 // mobileHeaderLogo.SortId = 20; 31591 // mobileHeaderActions.SortId = 30; 31592 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart); 31593 // break; 31594 // case "nav-right": 31595 // mobileHeaderLogo.SortId = 10; 31596 // mobileHeaderActions.SortId = 20; 31597 // mobileHeaderNavigation.SortId = 30; 31598 // // mobileHeaderBlocksPage.Add("MobileHeaderActions", mobileHeaderMiniCart); 31599 // break; 31600 // case "nav-search-left": 31601 // mobileHeaderNavigation.SortId = 10; 31602 // mobileHeaderLogo.SortId = 20; 31603 // mobileHeaderActions.SortId = 30; 31604 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart); 31605 // break; 31606 // case "search-left": 31607 // mobileHeaderActions.SortId = 10; 31608 // mobileHeaderLogo.SortId = 20; 31609 // mobileHeaderNavigation.SortId = 30; 31610 // mobileHeaderMiniCart.SortId = 0; 31611 // // mobileHeaderBlocksPage.Add("MobileHeaderNavigation", mobileHeaderMiniCart); 31612 // break; 31613 // } 31614 // 31615 // if (!mobileOnlyPreview) 31616 // { 31617 // BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", new Block { 31618 // Id = "CartInitialization", 31619 // Template = RenderMobileCartInitialization() 31620 // }); 31621 // } 31622 31623 31624 #line default 31625 #line hidden 31626 WriteLiteral("\r\n\r\n"); 31627 31628 WriteLiteral("\r\n"); 31629 31630 WriteLiteral("\r\n"); 31631 31632 WriteLiteral("\r\n"); 31633 31634 WriteLiteral("\r\n"); 31635 31636 WriteLiteral("\r\n"); 31637 31638 WriteLiteral("\r\n"); 31639 31640 WriteLiteral("\r\n\r\n"); 31641 31642 WriteLiteral("\r\n"); 31643 31644 WriteLiteral("\r\n"); 31645 31646 WriteLiteral("\r\n"); 31647 31648 WriteLiteral("\r\n"); 31649 31650 WriteLiteral("\r\n"); 31651 31652 WriteLiteral("\r\n\r\n"); 31653 31654 WriteLiteral("\r\n"); 31655 31656 WriteLiteral("\r\n"); 31657 31658 WriteLiteral("\r\n\r\n\r\n\r\n"); 31659 31660 WriteLiteral("\r\n\r\n"); 31661 31662 WriteLiteral("\r\n"); 31663 31664 31665 #line 5899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31666 31667 bool mobileNavigationItemsHideSignIn = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("HideSignIn"); 31668 bool mobileHideCreateAccountLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideCreateAccount"); 31669 bool mobileHideMyProfileLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideProfile"); 31670 bool mobileHideMyOrdersLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideOrders"); 31671 bool mobileHideMySavedCardsLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideSavedCards"); 31672 bool mobileHideMyFavoritesLink = Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("SignInHideFavorites"); 31673 31674 Block mobileNavigation = new Block() 31675 { 31676 Id = "MobileNavigation", 31677 SortId = 10, 31678 Template = MobileNavigation(), 31679 SkipRenderBlocksList = true 31680 }; 31681 mobileNavigationBlocksPage.Add("MasterReferences", mobileNavigation); 31682 31683 // if (Model.CurrentUser.ID > 0 && !mobileHideMyProfileLink) 31684 // { 31685 // Block mobileNavigationSignIn = new Block 31686 // { 31687 // Id = "MobileNavigationSignIn", 31688 // SortId = 10, 31689 // Template = RenderMobileNavigationSignIn() 31690 // }; 31691 // mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationSignIn); 31692 // } 31693 31694 Block mobileNavigationMenu = new Block 31695 { 31696 Id = "MobileNavigationMenu", 31697 SortId = 20, 31698 Template = RenderMobileNavigationMenu() 31699 }; 31700 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationMenu); 31701 31702 Block mobileNavigationActions = new Block 31703 { 31704 Id = "MobileNavigationActions", 31705 SortId = 30, 31706 Template = RenderMobileNavigationActions(), 31707 SkipRenderBlocksList = true 31708 }; 31709 mobileNavigationBlocksPage.Add("MobileNavigation", mobileNavigationActions); 31710 31711 if (!mobileNavigationItemsHideSignIn) 31712 { 31713 if (Model.CurrentUser.ID <= 0) 31714 { 31715 Block mobileNavigationSignInAction = new Block 31716 { 31717 Id = "MobileNavigationSignInAction", 31718 SortId = 10, 31719 Template = RenderMobileNavigationSignInAction() 31720 }; 31721 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignInAction); 31722 31723 if (!mobileHideCreateAccountLink) 31724 { 31725 Block mobileNavigationCreateAccountAction = new Block 31726 { 31727 Id = "MobileNavigationCreateAccountAction", 31728 SortId = 20, 31729 Template = RenderMobileNavigationCreateAccountAction() 31730 }; 31731 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationCreateAccountAction); 31732 } 31733 } 31734 else 31735 { 31736 if (!mobileHideMyOrdersLink) 31737 { 31738 Block mobileNavigationOrdersAction = new Block 31739 { 31740 Id = "MobileNavigationOrdersAction", 31741 SortId = 20, 31742 Template = RenderMobileNavigationOrdersAction() 31743 }; 31744 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationOrdersAction); 31745 } 31746 if (!mobileHideMyFavoritesLink) 31747 { 31748 Block mobileNavigationFavoritesAction = new Block 31749 { 31750 Id = "MobileNavigationFavoritesAction", 31751 SortId = 30, 31752 Template = RenderMobileNavigationFavoritesAction() 31753 }; 31754 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationFavoritesAction); 31755 } 31756 if (!mobileHideMySavedCardsLink) 31757 { 31758 Block mobileNavigationSavedCardsAction = new Block 31759 { 31760 Id = "MobileNavigationFavoritesAction", 31761 SortId = 30, 31762 Template = RenderMobileNavigationSavedCardsAction() 31763 }; 31764 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSavedCardsAction); 31765 } 31766 31767 Block mobileNavigationSignOutAction = new Block 31768 { 31769 Id = "MobileNavigationSignOutAction", 31770 SortId = 40, 31771 Template = RenderMobileNavigationSignOutAction() 31772 }; 31773 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationSignOutAction); 31774 } 31775 } 31776 31777 if (Model.Languages.Count > 1) 31778 { 31779 Block mobileNavigationLanguagesAction = new Block 31780 { 31781 Id = "MobileNavigationLanguagesAction", 31782 SortId = 50, 31783 Template = RenderMobileNavigationLanguagesAction() 31784 }; 31785 mobileNavigationBlocksPage.Add("MobileNavigationActions", mobileNavigationLanguagesAction); 31786 } 31787 31788 31789 #line default 31790 #line hidden 31791 WriteLiteral("\r\n\r\n\r\n"); 31792 31793 WriteLiteral("\r\n"); 31794 31795 WriteLiteral("\r\n"); 31796 31797 WriteLiteral("\r\n"); 31798 31799 WriteLiteral("\r\n"); 31800 31801 WriteLiteral("\r\n"); 31802 31803 WriteLiteral("\r\n"); 31804 31805 WriteLiteral("\r\n"); 31806 31807 WriteLiteral("\r\n"); 31808 31809 WriteLiteral("\r\n"); 31810 31811 WriteLiteral("\r\n"); 31812 31813 WriteLiteral("\r\n"); 31814 31815 WriteLiteral("\r\n"); 31816 31817 WriteLiteral("\r\n\r\n"); 31818 31819 31820 #line 6283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31821 31822 string UserTypeHeader = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : ""; 31823 bool isDesignerHeader = UserTypeHeader == "designer"; 31824 //var user = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 31825 //bool isB2B = user.IsB2b(); 31826 //bool isB2C = user.IsB2c(); 31827 if(isB2B || Model.SecondaryUsers.Count > 0 || isDesignerHeader) 31828 { 31829 Block headerTop = new Block() 31830 { 31831 Id = "MasterHeaderTop", 31832 SortId = 10, 31833 SkipRenderBlocksList = true, 31834 Template = RenderHeaderTop(), 31835 31836 BlocksList = new List<Block> 31837 { 31838 31839 new Block { 31840 Id = "MasterDesktopToolsText", 31841 SortId = 10, 31842 Template = RenderHeaderContactLinks() 31843 }, 31844 new Block { 31845 Id = "MasterDesktopToolsNavigation", 31846 SortId = 20, 31847 Template = RenderHeaderTopNavigation() 31848 }, 31849 } 31850 31851 31852 }; 31853 headerBlocksPage.Add("MasterHeader", headerTop); 31854 } 31855 Block headerMiddle = new Block 31856 { 31857 Id = "MasterHeaderMiddle", 31858 SortId = 20, 31859 SkipRenderBlocksList = true, 31860 Template = RenderHeaderMiddle(), 31861 BlocksList = new List<Block> 31862 { 31863 new Block { 31864 Id = "MasterHeaderMiddleLeft", 31865 SortId = 10, 31866 Design = {} 31867 }, 31868 new Block { 31869 Id = "MasterHeaderMiddleRight", 31870 SortId = 20, 31871 Design = {} 31872 }, 31873 } 31874 }; 31875 headerBlocksPage.Add("MasterHeader", headerMiddle); 31876 31877 Block headerBottom = new Block 31878 { 31879 Id = "MasterHeaderBottom", 31880 SortId = 20, 31881 SkipRenderBlocksList = true, 31882 Template = RenderHeaderBottom(), 31883 }; 31884 headerBlocksPage.Add("MasterHeader", headerBottom); 31885 31886 31887 Block masterDesktopExtra = new Block() 31888 { 31889 Id = "MasterDesktopExtra", 31890 SortId = 20, 31891 Template = RenderDesktopExtra(), 31892 SkipRenderBlocksList = true, 31893 Design = new Design 31894 { 31895 CssClass = "flex-wrap justify-content-end h-100 align-items-center" 31896 } 31897 }; 31898 headerBlocksPage.Add("MasterHeaderMiddleRight", masterDesktopExtra); 31899 31900 Block masterDesktopNavigation = new Block() 31901 { 31902 Id = "MasterDesktopNavigation", 31903 SortId = 40, 31904 Template = RenderDesktopNavigation(), 31905 SkipRenderBlocksList = true 31906 31907 }; 31908 headerBlocksPage.Add("MasterHeader", masterDesktopNavigation); 31909 31910 31911 #line default 31912 #line hidden 31913 WriteLiteral("\r\n\r\n"); 31914 31915 WriteLiteral("\r\n"); 31916 31917 WriteLiteral("\r\n"); 31918 31919 31920 #line 6381 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31921 31922 Block masterDesktopLogo = new Block 31923 { 31924 Id = "MasterDesktopLogo", 31925 SortId = 10, 31926 Template = RenderDesktopLogo(), 31927 }; 31928 31929 BlocksPage.GetBlockPage("Master").Add("MasterHeaderMiddleLeft", masterDesktopLogo); 31930 31931 31932 #line default 31933 #line hidden 31934 WriteLiteral("\r\n\r\n\r\n"); 31935 31936 WriteLiteral("\r\n"); 31937 31938 31939 #line 6422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31940 31941 Block masterDesktopMenu = new Block 31942 { 31943 Id = "MasterDesktopMenu", 31944 SortId = 10, 31945 Template = RenderDesktopMenu() 31946 }; 31947 31948 BlocksPage.GetBlockPage("Master").Add("MasterHeaderBottom", masterDesktopMenu); 31949 31950 31951 31952 31953 #line default 31954 #line hidden 31955 WriteLiteral("\r\n\r\n"); 31956 31957 WriteLiteral("\r\n"); 31958 31959 WriteLiteral("\r\n"); 31960 31961 WriteLiteral("\r\n"); 31962 31963 WriteLiteral("\r\n"); 31964 31965 31966 #line 6525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31967 31968 Block masterDesktopActionsMenu = new Block 31969 { 31970 Id = "MasterDesktopActionsMenu", 31971 SortId = 20, 31972 Template = RenderDesktopActionsMenu(), 31973 SkipRenderBlocksList = true, 31974 Design = new Design 31975 { 31976 CssClass = "nav--header flex-wrap font-condensed child-ml-1 child-ml-xs-3 align-items-center my-1" 31977 } 31978 31979 }; 31980 BlocksPage.GetBlockPage("Master").Add("MasterDesktopExtra", masterDesktopActionsMenu); 31981 31982 31983 #line default 31984 #line hidden 31985 WriteLiteral("\r\n\r\n"); 31986 31987 31988 #line 6547 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31989 31990 31991 #line default 31992 #line hidden 31993 WriteLiteral("\r\n\r\n"); 31994 31995 31996 #line 6556 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 31997 31998 Block masterDesktopActionsMenuLanguageSelector = new Block 31999 { 32000 Id = "MasterHeaderLanguageSelector", 32001 SortId = 80, 32002 Template = RenderLanguageSelector() 32003 }; 32004 32005 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuLanguageSelector); 32006 32007 32008 #line default 32009 #line hidden 32010 WriteLiteral("\r\n\r\n"); 32011 32012 WriteLiteral("\r\n"); 32013 32014 32015 #line 6684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32016 32017 Block masterDesktopActionsMenuSignIn = new Block 32018 { 32019 Id = "MasterDesktopActionsMenuSignIn", 32020 SortId = 20, 32021 Template = RenderSignIn() 32022 }; 32023 32024 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuSignIn); 32025 32026 32027 32028 Block masterDesktopActionsMenuAgentInfo = new Block 32029 { 32030 Id = "MasterDesktopActionsMenuAgentInfo", 32031 SortId = 1, 32032 Template = RenderAgentInfo() 32033 }; 32034 32035 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuAgentInfo); 32036 32037 Block masterMobileNavigationTrigger = new Block 32038 { 32039 Id = "MobileNavigationTrigger", 32040 SortId = 70, 32041 Template = MobileNavigationTrigger() 32042 }; 32043 32044 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterMobileNavigationTrigger); 32045 32046 32047 32048 #line default 32049 #line hidden 32050 WriteLiteral("\r\n"); 32051 32052 WriteLiteral("\r\n"); 32053 32054 WriteLiteral("\r\n\r\n"); 32055 32056 WriteLiteral("\r\n\r\n\r\n"); 32057 32058 WriteLiteral("\r\n"); 32059 32060 WriteLiteral("\r\n"); 32061 32062 32063 #line 6934 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32064 32065 Block masterDesktopActionsMenuFavorites = new Block 32066 { 32067 Id = "MasterHeaderFavorites", 32068 SortId = 40, 32069 Template = RenderHeaderFavorites() 32070 }; 32071 32072 if (!areaInfo.HideMyFavorites) 32073 { 32074 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuFavorites); 32075 } 32076 32077 32078 #line default 32079 #line hidden 32080 WriteLiteral("\r\n\r\n"); 32081 32082 WriteLiteral("\r\n"); 32083 32084 WriteLiteral("\r\n"); 32085 32086 32087 #line 6997 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32088 32089 32090 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null; 32091 bool showMyCart = true; 32092 string userType = user != null ? user.CustomFieldValues.First(f => string.Equals(f.CustomField.SystemName, "AccessUser_ERP_SiteCustomerType", StringComparison.OrdinalIgnoreCase)).Value.ToString() : ""; 32093 string DWUserType = user != null ? user.CustomFieldValues?.FirstOrDefault(f => string.Equals(f.CustomField.SystemName, "AccessUser_TipClient", StringComparison.OrdinalIgnoreCase))?.Value.ToString() ?? "" : ""; 32094 bool isDesigner = DWUserType == "designer"; 32095 32096 switch (userType) 32097 { 32098 case "Type 1": 32099 //showMyCart = true; 32100 break; 32101 case "Type 6": 32102 showMyCart = true; 32103 break; 32104 case "Type 8": 32105 //showMyCart = true; 32106 break; 32107 case "Type 9": 32108 showMyCart = false; 32109 break; 32110 default: 32111 showMyCart = true; 32112 break; 32113 } 32114 if (!onlyPreview && !areaInfo.HideCart && showMyCart && !isDesigner) 32115 { 32116 Block minicartCounter = new Block 32117 { 32118 Id = "MiniCartHeaderTrigger", 32119 Template = RenderMiniCartHeaderTrigger(), 32120 SortId = 50, 32121 }; 32122 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", minicartCounter); 32123 32124 } 32125 32126 32127 #line default 32128 #line hidden 32129 WriteLiteral("\r\n\r\n"); 32130 32131 WriteLiteral("\r\n\r\n\r\n\r\n \r\n"); 32132 32133 32134 #line 7083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32135 32136 Block masterDesktopActionsMenuDownloadCart = new Block 32137 { 32138 Id = "MasterDesktopActionsMenuDownloadCart", 32139 SortId = 35, 32140 Template = RenderDownloadCart() 32141 }; 32142 32143 if (areaInfo.ShowDownloadCartLink && user != null) 32144 { 32145 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterDesktopActionsMenuDownloadCart); 32146 } 32147 32148 32149 #line default 32150 #line hidden 32151 WriteLiteral("\r\n\r\n"); 32152 32153 WriteLiteral("\r\n"); 32154 32155 32156 #line 7142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32157 32158 Block masterSearchBar = new Block 32159 { 32160 Id = "MasterSearchBar", 32161 SortId = 10, 32162 Template = RenderSearch("bar"), 32163 Design = new Design{} 32164 }; 32165 32166 Block masterSearchAction = new Block 32167 { 32168 Id = "MasterDesktopActionsMenuSearch", 32169 SortId = 10, 32170 Template = RenderSearch() 32171 }; 32172 32173 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", masterSearchBar); 32174 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterSearchAction); 32175 32176 32177 32178 Block masterHeaderSearchIcon = new Block 32179 { 32180 Id = "MobileNavigationTrigger", 32181 SortId = 10, 32182 Template = RenderHeaderSearchIcon() 32183 }; 32184 32185 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderSearchIcon); 32186 32187 32188 32189 #line default 32190 #line hidden 32191 WriteLiteral("\r\n\r\n\r\n\r\n"); 32192 32193 WriteLiteral("\r\n"); 32194 32195 WriteLiteral("\r\n"); 32196 32197 WriteLiteral("\r\n"); 32198 32199 WriteLiteral("\r\n\r\n"); 32200 32201 32202 #line 7309 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32203 32204 //var user = User.GetCurrentExtranetUser(); 32205 32206 if(user != null) 32207 { 32208 Block masterHeaderMendolaClub = new Block 32209 { 32210 Id = "MobileNavigationTrigger", 32211 SortId = 1, 32212 Template = RenderHeaderMendolaClub(user) 32213 }; 32214 32215 BlocksPage.GetBlockPage("Master").Add("MasterDesktopActionsMenu", masterHeaderMendolaClub); 32216 } 32217 32218 32219 32220 #line default 32221 #line hidden 32222 WriteLiteral("\r\n\r\n"); 32223 32224 32225 #line 7367 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32226 if (File.Exists(HttpContext.Current.Server.MapPath("/Files/Templates/Designs/"+DesignFolder+"/MasterBlocks/HeaderBlocks/Custom__Blocks.cshtml"))) 32227 { 32228 32229 32230 #line default 32231 #line hidden 32232 WriteLiteral(" "); 32233 32234 WriteLiteral("\r\n"); 32235 32236 32237 #line 7376 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32238 32239 Block NavigationMegaMenu = new Block 32240 { 32241 Id = "NavigationMegaMenu", 32242 SortId = 90, 32243 Template = RenderNavigationMegaMenu(), 32244 }; 32245 32246 BlocksPage.GetBlockPage("Master").Add("MasterHeader", NavigationMegaMenu); 32247 32248 32249 #line default 32250 #line hidden 32251 WriteLiteral("\r\n\r\n"); 32252 32253 WriteLiteral("\r\n"); 32254 32255 32256 #line 7731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32257 } 32258 32259 32260 #line default 32261 #line hidden 32262 WriteLiteral("\r\n"); 32263 32264 WriteLiteral("\r\n"); 32265 32266 WriteLiteral("\r\n"); 32267 32268 WriteLiteral("\r\n"); 32269 32270 WriteLiteral("\r\n"); 32271 32272 WriteLiteral("\r\n"); 32273 32274 WriteLiteral("\r\n"); 32275 32276 WriteLiteral("\r\n\r\n"); 32277 32278 WriteLiteral("\r\n"); 32279 32280 32281 #line 7866 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32282 32283 Block impersonationBar = new Block 32284 { 32285 Id = "ImpersonationBar", 32286 SortId = 1, 32287 Template = RenderImpersonationBar(), 32288 Design = new Design{ 32289 CssClass = "hidden block-sm w-100 w-sm-unset" 32290 } 32291 32292 }; 32293 32294 Block impersonationBarMobile = new Block 32295 { 32296 Id = "ImpersonationBarMobile", 32297 SortId = 1, 32298 Template = RenderImpersonationBar(), 32299 Design = new Design{ 32300 CssClass = "hidden-sm w-100 impersonation-mobile" 32301 } 32302 32303 }; 32304 32305 if (user != null && Model.SecondaryUsers.Count > 0) 32306 32307 { 32308 BlocksPage.GetBlockPage("Master").Add("MasterHeaderTop", impersonationBar); 32309 BlocksPage.GetBlockPage("Master").Add("MasterHeader", impersonationBarMobile); 32310 } 32311 32312 32313 #line default 32314 #line hidden 32315 WriteLiteral("\r\n\r\n"); 32316 32317 WriteLiteral("\r\n\r\n"); 32318 32319 32320 #line 7954 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32321 32322 //Already defined in Master 32323 //var DesignFolder = Pageview.Layout.Design.Name; 32324 32325 32326 #line default 32327 #line hidden 32328 WriteLiteral("\r\n\r\n"); 32329 32330 32331 #line 7959 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32332 32333 BlocksPage miniCartBlocksPage = BlocksPage.GetBlockPage("Master"); 32334 32335 Block orderLines = new Block 32336 { 32337 Id = "MiniCartOrderLines", 32338 SkipRenderBlocksList = true, 32339 32340 BlocksList = new List<Block> 32341 { 32342 new Block { 32343 Id = "MiniCartOrderLinesList", 32344 SortId = 20, 32345 Design = new Design 32346 { 32347 CssClass = "minicart__orderlines" 32348 }, 32349 Template = RenderMiniCartOrderLinesList() 32350 } 32351 } 32352 }; 32353 32354 Block orderlinesScriptTemplates = new Block 32355 { 32356 Id = "OrderlinesScriptTemplates" 32357 }; 32358 32359 if (areaInfo.OrderlinesView == "table") 32360 { 32361 orderLines.Template = RenderMiniCartOrderLinesTable(); 32362 orderLines.BlocksList.Add( 32363 new Block { 32364 Id = "MiniCartOrderlinesTableHeader", 32365 SortId = 10, 32366 Template = RenderMiniCartOrderLinesHeader() 32367 } 32368 ); 32369 32370 orderlinesScriptTemplates.Template = RenderMiniCartScriptsTableTemplates(); 32371 } 32372 else 32373 { 32374 orderLines.Template = RenderMiniCartOrderLinesBlocks(); 32375 orderlinesScriptTemplates.Template = RenderMiniCartScriptsListTemplates(); 32376 } 32377 32378 miniCartBlocksPage.Add("MasterBottomSnippets", orderlinesScriptTemplates); 32379 32380 Block miniCartScriptTemplates = new Block() 32381 { 32382 Id = "MasterMiniCartTemplates", 32383 SortId = 1, 32384 Template = RenderMiniCartScriptTemplates(), 32385 SkipRenderBlocksList = true, 32386 BlocksList = new List<Block> 32387 { 32388 orderLines, 32389 new Block { 32390 Id = "MiniCartFooter", 32391 Template = RenderMiniCartFooter(), 32392 SortId = 50, 32393 SkipRenderBlocksList = true, 32394 BlocksList = new List<Block> 32395 { 32396 new Block { 32397 Id = "MiniCartFees", 32398 Template = RenderMiniCartFees(), 32399 SortId = 30 32400 }, 32401 //new Block { 32402 //Id = "MiniCartPoints", 32403 //Template = RenderMiniCartPoints(), 32404 //SortId = 40 32405 //}, 32406 new Block { 32407 Id = "MiniCartTotal", 32408 Template = RenderMiniCartTotal(), 32409 SortId = 50 32410 }, 32411 new Block { 32412 Id = "MiniCartActions", 32413 Template = RenderMiniCartActions(), 32414 SortId = 60 32415 } 32416 } 32417 } 32418 } 32419 }; 32420 32421 miniCartBlocksPage.Add("MasterBottomSnippets", miniCartScriptTemplates); 32422 32423 Block MiniCartPanel = new Block 32424 { 32425 Id = "MiniCartPanel", 32426 SkipRenderBlocksList = true, 32427 Template = RenderMiniCartPanelDesign(), 32428 }; 32429 32430 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets",MiniCartPanel); 32431 32432 32433 32434 #line default 32435 #line hidden 32436 WriteLiteral("\r\n\r\n"); 32437 32438 WriteLiteral("\r\n"); 32439 32440 WriteLiteral("\r\n"); 32441 32442 WriteLiteral("\r\n"); 32443 32444 WriteLiteral("\r\n"); 32445 32446 WriteLiteral("\r\n"); 32447 32448 WriteLiteral("\r\n"); 32449 32450 WriteLiteral("\r\n"); 32451 32452 WriteLiteral("\r\n"); 32453 32454 WriteLiteral("\r\n"); 32455 32456 WriteLiteral("\r\n"); 32457 32458 WriteLiteral("\r\n"); 32459 32460 WriteLiteral("\r\n"); 32461 32462 WriteLiteral("\r\n\r\n"); 32463 32464 WriteLiteral("\r\n"); 32465 32466 32467 #line 8321 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32468 32469 if (!areaInfo.OnlyPreviewForAnonymous && !string.IsNullOrEmpty(areaInfo.AddToCartNotificationType)) { 32470 if (areaInfo.AddToCartNotificationType == "modal") 32471 { 32472 Block addToCartNotificationModal = new Block 32473 { 32474 Id = "AddToCartNotificationModal", 32475 Template = RenderAddToCartNotificationModal() 32476 }; 32477 32478 Block addToCartNotificationScript = new Block 32479 { 32480 Id = "AddToCartNotificationScript", 32481 Template = RenderAddToCartNotificationModalScript() 32482 }; 32483 BlocksPage.GetBlockPage("Master").Add("MasterTopSnippets", addToCartNotificationModal); 32484 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript); 32485 } 32486 else if (areaInfo.AddToCartNotificationType == "toggle" && !areaInfo.AddToCartHideCartIcon && Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 32487 { 32488 Block addToCartNotificationScript = new Block 32489 { 32490 Id = "AddToCartNotificationScript", 32491 Template = RenderAddToCartNotificationToggleScript() 32492 }; 32493 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript); 32494 } 32495 } 32496 32497 32498 #line default 32499 #line hidden 32500 WriteLiteral("\r\n\r\n"); 32501 32502 WriteLiteral("\r\n"); 32503 32504 WriteLiteral("\r\n"); 32505 32506 WriteLiteral("\r\n\r\n"); 32507 32508 WriteLiteral("\r\n"); 32509 32510 32511 #line 8422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32512 32513 32514 32515 Block masterFooterContent = new Block() 32516 { 32517 Id = "MasterFooterContent", 32518 SortId = 10, 32519 Template = RenderFooter(areaInfo), 32520 SkipRenderBlocksList = true 32521 }; 32522 footerBlocksPage.Add(MasterBlockId.MasterFooter, masterFooterContent); 32523 32524 Block masterFooter1 = new Block() 32525 { 32526 Id = "MasterFooter1", 32527 SortId = 10, 32528 Design = new Design 32529 { 32530 CssClass = "c0 col-md-8 grid-1 col-lg-4 grid-md-12 space-between align-items-center mb-2 mb-md-0" 32531 } 32532 }; 32533 footerBlocksPage.Add("MasterFooterContent", masterFooter1); 32534 32535 Block masterFooter2 = new Block() 32536 { 32537 Id = "MasterFooter2", 32538 SortId = 20, 32539 Design = new Design 32540 { 32541 CssClass = "c1 col-md-2 col-lg-1" 32542 } 32543 }; 32544 footerBlocksPage.Add("MasterFooterContent", masterFooter2); 32545 32546 Block masterFooter3 = new Block() 32547 { 32548 Id = "MasterFooter3", 32549 SortId = 30, 32550 Design = new Design 32551 { 32552 CssClass = "c2 col-md-2 col-lg-1" 32553 } 32554 }; 32555 footerBlocksPage.Add("MasterFooterContent", masterFooter3); 32556 32557 Block masterFooter4 = new Block() 32558 { 32559 Id = "MasterFooter4", 32560 SortId = 40, 32561 Design = new Design{ 32562 32563 CssClass = "c3 child-mb-2 child-mb-xs-0 col-md-2 col-lg-1" 32564 } 32565 }; 32566 footerBlocksPage.Add("MasterFooterContent", masterFooter4); 32567 32568 Block masterFooter5 = new Block() 32569 { 32570 Id = "MasterFooter5", 32571 SortId = 50, 32572 Design = new Design 32573 { 32574 CssClass = "c4 col-md-2 col-lg-1" 32575 } 32576 }; 32577 footerBlocksPage.Add("MasterFooterContent", masterFooter5); 32578 32579 Block masterFooter6 = new Block() 32580 { 32581 Id = "MasterFooter6", 32582 SortId = 60, 32583 Design = new Design 32584 { 32585 CssClass = "c5 col-md-8 col-lg-4 footer__copyright border-top border-muted py-3 mt-3" 32586 } 32587 }; 32588 footerBlocksPage.Add("MasterFooterContent", masterFooter6); 32589 32590 Block masterFooter7 = new Block() 32591 { 32592 Id = "MasterFooter7", 32593 SortId = 70, 32594 Design = new Design{ 32595 32596 CssClass = "c6" 32597 } 32598 }; 32599 footerBlocksPage.Add("MasterFooterContent", masterFooter7); 32600 32601 Block masterFooter8 = new Block() 32602 { 32603 Id = "MasterFooter8", 32604 SortId = 80, 32605 Design = new Design 32606 { 32607 CssClass = "c7" 32608 } 32609 }; 32610 footerBlocksPage.Add("MasterFooterContent", masterFooter8); 32611 32612 32613 //content Blocks 32614 Block masterFooterLogo = new Block 32615 { 32616 Id = "FooterLogo", 32617 SortId = 10, 32618 Template = RenderFooterLogo(areaInfo), 32619 Design = new Design{ 32620 CssClass = "footer__logo col-md-12 col-lg-3" 32621 } 32622 }; 32623 Block masterFooterBeInspired = new Block 32624 { 32625 Id = "FooterBeInspired", 32626 SortId = 10, 32627 Template = RenderBeInspired(), 32628 Design = {} 32629 }; 32630 Block masterFooterGetConnected = new Block 32631 { 32632 Id = "FooterGetConnected", 32633 SortId = 10, 32634 Template = RenderGetConnected(), 32635 Design = {} 32636 }; 32637 32638 32639 Block masterFooterAddress = new Block 32640 { 32641 Id = "FooterAddress", 32642 SortId = 10, 32643 Template = RenderFooterAddress(areaInfo), 32644 Design = new Design{ 32645 CssClass = "footer__address" 32646 } 32647 }; 32648 32649 Block masterFooterColumnOne = new Block 32650 { 32651 Id = "MasterFooterColumnOne", 32652 SortId = 50, 32653 Template = RenderFooterColumn(areaInfo.FooterColumnOneHeader, areaInfo.FooterColumnOneContent, areaInfo.FooterColumnOneLinks, "footer__column-one") 32654 }; 32655 32656 Block masterFooterColumnTwo = new Block 32657 { 32658 Id = "MasterFooterColumnTwo", 32659 SortId = 20, 32660 Template = RenderFooterColumn(areaInfo.FooterColumnTwoHeader, areaInfo.FooterColumnTwoContent, areaInfo.FooterColumnTwoLinks, "footer__column-two") 32661 }; 32662 32663 Block masterFooterColumnThree = new Block 32664 { 32665 Id = "MasterFooterColumnThree", 32666 SortId = 30, 32667 Template = RenderFooterColumn(areaInfo.FooterColumnThreeHeader, areaInfo.FooterColumnThreeContent, areaInfo.FooterColumnThreeLinks, "footer__column-three") 32668 }; 32669 32670 Block masterFooterNewsletterSignUp = new Block 32671 { 32672 Id = "MasterFooterNewsletterSignUp", 32673 SortId = 9, 32674 Template = RenderFooterNewsletterSignUp(areaInfo), 32675 Design = new Design{ 32676 CssClass = "footer__newsletter" 32677 } 32678 }; 32679 32680 Block masterFooterPartnerShops = new Block 32681 { 32682 Id = "MasterFooterPartnerShops", 32683 SortId = 20, 32684 Template = RenderFooterPartnerShops(), 32685 Design = new Design { 32686 CssClass = "col-md-4 col-lg-3" 32687 } 32688 }; 32689 32690 Block masterFooterTopCenterContentB2B = new Block 32691 { 32692 Id = "MasterFooterTopCenterContentB2B", 32693 SortId = 20, 32694 Template = RenderFooterTopCenterContentB2B(), 32695 Design = new Design{ 32696 CssClass = "flex-wrap col-md-4 col-lg-3" 32697 } 32698 }; 32699 32700 Block masterFooterNewsletter = new Block 32701 { 32702 Id = "masterFooterNewsletter", 32703 SortId = 30, 32704 Template = RenderFooterNewsletter(), 32705 Design = new Design{ 32706 CssClass = "flex-wrap col-md-4 col-lg-3" 32707 } 32708 }; 32709 32710 Block masterFooterSocialLinks = new Block 32711 { 32712 Id = "MasterFooterSocialLinks", 32713 SortId = 50, 32714 Template = RenderFooterSocialLinks(areaInfo), 32715 Design = new Design{ 32716 CssClass = "footer__social col-md-4 col-lg-3" 32717 } 32718 }; 32719 32720 Block masterFooterPayments = new Block 32721 { 32722 Id = "MasterFooterPayments", 32723 SortId = 60, 32724 Template = RenderFooterPayments(areaInfo), 32725 Design = new Design{ 32726 CssClass = "footer__payments" 32727 } 32728 }; 32729 32730 Block masterFooterCopyright = new Block 32731 { 32732 Id = "MasterFooterCopyright", 32733 SortId = 10, 32734 Design ={}, 32735 Template = RenderFooterCopyright(areaInfo) 32736 }; 32737 32738 Block compareModal = new Block 32739 { 32740 Id = "MasterFooterModalCompare", 32741 SortId = 80, 32742 Template = RenderCompareModule(), 32743 Design = new Design 32744 { 32745 Size = "12", 32746 RenderType = RenderType.Column 32747 }, 32748 SkipRenderBlocksList = true 32749 }; 32750 footerBlocksPage.Add("MasterFooter", compareModal); 32751 32752 32753 //Begin configuration of blocks 32754 string footerLayout = areaInfo.FooterLayout; 32755 32756 switch (footerLayout) 32757 { 32758 case "1": 32759 masterFooter1.Design.Size = "3"; 32760 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 32761 footerBlocksPage.Add("MasterFooter1", masterFooterAddress); 32762 footerBlocksPage.RemoveBlock(masterFooterSocialLinks); 32763 footerBlocksPage.Add("MasterFooter1", masterFooterPayments); 32764 32765 masterFooter2.Design.Size = "3"; 32766 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 32767 32768 masterFooter3.Design.Size = "3"; 32769 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 32770 //footerBlocksPage.Add("MasterFooter3", masterFooterSocialLinks); 32771 32772 masterFooter4.Design.Size = "3"; 32773 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 32774 32775 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright); 32776 32777 footerBlocksPage.RemoveBlock(masterFooter6); 32778 footerBlocksPage.RemoveBlock(masterFooter7); 32779 footerBlocksPage.RemoveBlock(masterFooter8); 32780 break; 32781 32782 case "2": 32783 masterFooter1.Design.Size = "12"; 32784 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 32785 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 32786 if (isB2B) 32787 { 32788 footerBlocksPage.Add("MasterFooter1", masterFooterTopCenterContentB2B); 32789 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter); 32790 } 32791 else 32792 { 32793 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops); 32794 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter); 32795 } 32796 32797 32798 masterFooter2.Design.Size = "3"; 32799 //footerBlocksPage.Add("MasterFooter2", masterFooterAddress); 32800 //footerBlocksPage.Add("MasterFooter2", masterFooterPayments); 32801 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 32802 32803 masterFooter3.Design.Size = "3"; 32804 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 32805 32806 masterFooter4.Design.Size = "3"; 32807 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 32808 32809 32810 masterFooter5.Design.Size = "3"; 32811 footerBlocksPage.Add("MasterFooter5", masterFooterNewsletterSignUp); 32812 32813 32814 footerBlocksPage.Add("MasterFooter6", masterFooterCopyright); 32815 32816 footerBlocksPage.RemoveBlock(masterFooter7); 32817 footerBlocksPage.RemoveBlock(masterFooter8); 32818 break; 32819 case "3": 32820 masterFooter1.Design.Size = "4"; 32821 // footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 32822 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 32823 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops); 32824 32825 masterFooter2.Design.Size = "4"; 32826 // footerBlocksPage.Add("MasterFooter2", masterFooterAddress); 32827 // footerBlocksPage.Add("MasterFooter2", masterFooterPayments); 32828 footerBlocksPage.Add("MasterFooter2", masterFooterBeInspired); 32829 32830 masterFooter3.Design.Size = "4"; 32831 // footerBlocksPage.Add("MasterFooter3", masterFooterColumnOne); 32832 footerBlocksPage.Add("MasterFooter3", masterFooterGetConnected); 32833 32834 masterFooter4.Design.Size = "12"; 32835 // footerBlocksPage.Add("MasterFooter4", masterFooterColumnTwo); 32836 footerBlocksPage.Add("MasterFooter4", masterFooterCopyright); 32837 footerBlocksPage.Add("MasterFooter4", masterFooterColumnOne); 32838 32839 footerBlocksPage.RemoveBlock(masterFooter5); 32840 footerBlocksPage.RemoveBlock(masterFooter6); 32841 footerBlocksPage.RemoveBlock(masterFooter7); 32842 footerBlocksPage.RemoveBlock(masterFooter8); 32843 break; 32844 32845 default: 32846 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 32847 footerBlocksPage.Add("MasterFooter1", masterFooterAddress); 32848 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 32849 footerBlocksPage.Add("MasterFooter1", masterFooterPayments); 32850 32851 masterFooter2.Design.Size = "3"; 32852 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 32853 32854 masterFooter3.Design.Size = "3"; 32855 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 32856 32857 masterFooter4.Design.Size = "3"; 32858 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 32859 32860 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright); 32861 footerBlocksPage.RemoveBlock(masterFooter6); 32862 footerBlocksPage.RemoveBlock(masterFooter7); 32863 footerBlocksPage.RemoveBlock(masterFooter8); 32864 break; 32865 } 32866 32867 32868 #line default 32869 #line hidden 32870 WriteLiteral("\r\n\r\n"); 32871 32872 WriteLiteral("\r\n\r\n"); 32873 32874 WriteLiteral("\r\n"); 32875 32876 WriteLiteral("\r\n"); 32877 32878 WriteLiteral("\r\n"); 32879 32880 WriteLiteral("\r\n"); 32881 32882 WriteLiteral("\r\n"); 32883 32884 WriteLiteral("\r\n\r\n"); 32885 32886 32887 #line 9089 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32888 32889 BlocksPage referencesBlocksPage = BlocksPage.GetBlockPage("Master"); 32890 32891 Block masterScriptReferences = new Block() 32892 { 32893 Id = "MasterScriptReferences", 32894 SortId = 1, 32895 Template = RenderMasterScriptReferences() 32896 }; 32897 referencesBlocksPage.Add(MasterBlockId.MasterReferences, masterScriptReferences); 32898 32899 32900 #line default 32901 #line hidden 32902 WriteLiteral("\r\n\r\n"); 32903 32904 WriteLiteral("\r\n\r\n"); 32905 32906 32907 #line 9116 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32908 32909 BlocksPage searchBlocksPage = BlocksPage.GetBlockPage("Master"); 32910 bool isFavoriteList = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("ListID")); 32911 32912 if (!areaInfo.NavigationItemsHideSearch || isFavoriteList) 32913 { 32914 Block masterSearchScriptTemplates = new Block() 32915 { 32916 Id = "MasterSearchScriptTemplates", 32917 SortId = 1, 32918 Template = RenderSearchScriptTemplates() 32919 }; 32920 32921 searchBlocksPage.Add(MasterBlockId.MasterBottomSnippets, masterSearchScriptTemplates); 32922 } 32923 32924 32925 #line default 32926 #line hidden 32927 WriteLiteral("\r\n\r\n"); 32928 32929 WriteLiteral("\r\n\r\n"); 32930 32931 WriteLiteral("\r\n\r\n"); 32932 32933 32934 #line 9321 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32935 32936 BlocksPage bottomSnippetsBlocksPage = BlocksPage.GetBlockPage("Master"); 32937 32938 Block primaryBottomSnippets = new Block() 32939 { 32940 Id = "MasterJavascriptInitializers", 32941 SortId = 100, 32942 Template = RenderPrimaryBottomSnippets() 32943 }; 32944 bottomSnippetsBlocksPage.Add(MasterBlockId.MasterReferences, primaryBottomSnippets); 32945 32946 32947 #line default 32948 #line hidden 32949 WriteLiteral("\r\n\r\n"); 32950 32951 WriteLiteral("\r\n\r\n\r\n"); 32952 32953 WriteLiteral("\r\n"); 32954 32955 32956 #line 9405 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32957 32958 BlocksPage masterBlocksPage = BlocksPage.GetBlockPage("Master"); 32959 32960 Block StickersTemplateRefactored = new Block() 32961 { 32962 Id = "StickersTemplateRefactored", 32963 SortId = 100, 32964 Template = RenderStickersTemplateRefactored() 32965 }; 32966 masterBlocksPage.Add(MasterBlockId.MasterBottomSnippets, StickersTemplateRefactored); 32967 32968 32969 #line default 32970 #line hidden 32971 WriteLiteral("\r\n\r\n\r\n"); 32972 32973 WriteLiteral("\r\n"); 32974 32975 32976 #line 9440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32977 if (File.Exists(HttpContext.Current.Server.MapPath("Files/Templates/Designs/@DesignFolder/MasterBlocks/Custom__Blocks.cshtml"))) 32978 { 32979 32980 32981 #line default 32982 #line hidden 32983 WriteLiteral(" "); 32984 32985 WriteLiteral("\r\n\r\n"); 32986 32987 WriteLiteral("\r\n\r\n\r\n"); 32988 32989 32990 #line 9460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 32991 32992 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 32993 { 32994 Block masterToolsCustom = new Block() 32995 { 32996 Id = "MasterDesktopTools", 32997 SortId = 30, 32998 Template = RenderDesktopToolsCustom(), 32999 SkipRenderBlocksList = true, 33000 BlocksList = new List<Block> 33001 { 33002 33003 new Block { 33004 Id = "MasterDesktopToolsText", 33005 SortId = 10, 33006 Template = RenderDesktopToolsTextCustom() 33007 }, 33008 new Block { 33009 Id = "MasterDesktopToolsNavigation", 33010 SortId = 20, 33011 Template = RenderDesktopToolsNavigationCustom() 33012 } 33013 } 33014 }; 33015 headerBlocksPage.ReplaceBlock(masterToolsCustom); 33016 } 33017 33018 33019 #line default 33020 #line hidden 33021 WriteLiteral("\r\n\r\n"); 33022 33023 WriteLiteral("\r\n"); 33024 33025 WriteLiteral("\r\n"); 33026 33027 WriteLiteral("\r\n"); 33028 33029 WriteLiteral("\r\n"); 33030 33031 33032 #line 9574 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33033 } 33034 33035 33036 #line default 33037 #line hidden 33038 WriteLiteral("\r\n\r\n"); 33039 33040 WriteLiteral("\r\n"); 33041 33042 33043 #line 9599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33044 33045 if (areaInfo.AppName != null && areaInfo.AppIcon != null) { 33046 Manifest manifest = new Manifest 33047 { 33048 name = areaInfo.AppName, 33049 short_name = areaInfo.AppShortName != null ? areaInfo.AppShortName : areaInfo.AppName, 33050 start_url = "/", 33051 display = "standalone", 33052 background_color = areaInfo.AppBackgroundColor, 33053 theme_color = areaInfo.AppThemeColor 33054 }; 33055 33056 manifest.icons = new List<ManifestIcon> { 33057 new ManifestIcon { 33058 src = "/Admin/Public/GetImage.ashx?width=192&height=192&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 33059 sizes = "192x192", 33060 type = "image/png" 33061 }, 33062 new ManifestIcon { 33063 src = "/Admin/Public/GetImage.ashx?width=512&height=512&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 33064 sizes = "512x512", 33065 type = "image/png" 33066 }, 33067 new ManifestIcon { 33068 src = "/Admin/Public/GetImage.ashx?width=1024&height=1024&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 33069 sizes = "1024x1024", 33070 type = "image/png" 33071 } 33072 }; 33073 33074 string manifestFilePath = HttpContext.Current.Request.MapPath("/Files/Templates/Designs/"+DesignFolder+"/manifest.json"); 33075 string manifestJSON = Newtonsoft.Json.JsonConvert.SerializeObject(manifest); 33076 string currentManifest = File.ReadAllText(manifestFilePath); 33077 33078 if (manifestJSON != currentManifest) 33079 { 33080 File.WriteAllText(manifestFilePath, manifestJSON); 33081 } 33082 } 33083 33084 33085 #line default 33086 #line hidden 33087 WriteLiteral("\r\n\r\n\r\n"); 33088 33089 33090 #line 9641 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33091 33092 var swatches = new Dynamicweb.Content.Items.ColorSwatchService(); 33093 var brandColors = swatches.GetColorSwatch(1); 33094 string brandColorOne = brandColors.Palette["BrandColor1"]; 33095 string currentLang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 33096 bool isNavigationStickyMenu = Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet" && Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("StickyTop"); 33097 string stickyTop = isNavigationStickyMenu ? "header--sticky" : ""; 33098 string generalB2B = isB2B ? "general--b2c" : ""; 33099 33100 33101 #line default 33102 #line hidden 33103 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n\r\n<html"); 33104 33105 WriteAttribute("lang", Tuple.Create(" lang=\"", 459634), Tuple.Create("\"", 459653) 33106 33107 #line 9653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33108 , Tuple.Create(Tuple.Create("", 459641), Tuple.Create<System.Object, System.Int32>(currentLang 33109 33110 #line default 33111 #line hidden 33112 , 459641), false) 33113 ); 33114 33115 WriteLiteral(">\r\n<head>\r\n"); 33116 33117 33118 #line 9655 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33119 33120 33121 #line default 33122 #line hidden 33123 33124 #line 9655 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33125 33126 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false; 33127 if (!debugSpeedTest) 33128 { 33129 33130 33131 #line default 33132 #line hidden 33133 WriteLiteral(" <!-- Global site tag (gtag.js) - Google Analytics -->\r\n"); 33134 33135 WriteLiteral(" <script defer"); 33136 33137 WriteLiteral(" src=\"https://www.googletagmanager.com/gtag/js?id=UA-162570117-1\""); 33138 33139 WriteLiteral("></script>\r\n"); 33140 33141 WriteLiteral(" <script>\r\n window.dataLayer = window.dataLayer || [];\r\n function " + 33142 "gtag(){dataLayer.push(arguments);}\r\n gtag(\'js\', new Date());\r\n \r\n g" + 33143 "tag(\'config\', \'UA-162570117-1\');\r\n </script>\r\n"); 33144 33145 33146 #line 9668 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33147 33148 33149 33150 33151 } 33152 33153 33154 #line default 33155 #line hidden 33156 WriteLiteral("\r\n \r\n\t\r\n\t<!-- Rapido version 3.1.1 -->\r\n\t<meta"); 33157 33158 WriteLiteral(" charset=\"utf-8\""); 33159 33160 WriteLiteral("/>\r\n\t<title>"); 33161 33162 33163 #line 9678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33164 Write(areaInfo.AreaTitle); 33165 33166 33167 #line default 33168 #line hidden 33169 WriteLiteral("</title>\r\n\t<meta"); 33170 33171 WriteLiteral(" name=\"viewport\""); 33172 33173 WriteLiteral(" content=\"width=device-width, initial-scale=1.0\""); 33174 33175 WriteLiteral(">\r\n\t<meta"); 33176 33177 WriteLiteral(" name=\"robots\""); 33178 33179 WriteLiteral(" content=\"index, follow\""); 33180 33181 WriteLiteral(">\r\n\t<meta"); 33182 33183 WriteLiteral(" name=\"theme-color\""); 33184 33185 WriteAttribute("content", Tuple.Create(" content=\"", 460445), Tuple.Create("\"", 460478) 33186 33187 #line 9681 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33188 , Tuple.Create(Tuple.Create("", 460455), Tuple.Create<System.Object, System.Int32>(areaInfo.AppThemeColor 33189 33190 #line default 33191 #line hidden 33192 , 460455), false) 33193 ); 33194 33195 WriteLiteral("/>\r\n\t\r\n"); 33196 33197 WriteLiteral("\t"); 33198 33199 33200 #line 9683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33201 Write(Model.MetaTags); 33202 33203 33204 #line default 33205 #line hidden 33206 WriteLiteral("\r\n\r\n\t<meta"); 33207 33208 WriteLiteral(" name=\"p:domain_verify\""); 33209 33210 WriteLiteral(" content=\"8bd426b25628ced333803e24b51c0fbb\""); 33211 33212 WriteLiteral("/>\r\n\t<meta"); 33213 33214 WriteLiteral(" name=\"facebook-domain-verification\""); 33215 33216 WriteLiteral(" content=\"9jl54wm9h8awx6j6mn3oulemooi7q6\""); 33217 33218 WriteLiteral(" />\r\n\t<!-- Favicon -->\r\n\t<link"); 33219 33220 WriteAttribute("href", Tuple.Create(" href=\"", 460695), Tuple.Create("\"", 460723) 33221 33222 #line 9688 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33223 , Tuple.Create(Tuple.Create("", 460702), Tuple.Create<System.Object, System.Int32>(areaInfo.LogoFavicon 33224 33225 #line default 33226 #line hidden 33227 , 460702), false) 33228 ); 33229 33230 WriteLiteral(" rel=\"icon\""); 33231 33232 WriteLiteral(" type=\"image/png\""); 33233 33234 WriteLiteral(">\r\n\r\n\t"); 33235 33236 WriteLiteral("\r\n\r\n\t"); 33237 33238 WriteLiteral("\r\n\t<!-- Google fonts ttt-->\r\n"); 33239 33240 33241 #line 9694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33242 33243 33244 #line default 33245 #line hidden 33246 33247 #line 9694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33248 33249 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))); 33250 33251 33252 #line default 33253 #line hidden 33254 WriteLiteral("\r\n\t<link"); 33255 33256 WriteAttribute("href", Tuple.Create(" href=\"", 461098), Tuple.Create("\"", 461152) 33257 , Tuple.Create(Tuple.Create("", 461105), Tuple.Create("https://fonts.googleapis.com/css?family=", 461105), true) 33258 33259 #line 9697 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33260 , Tuple.Create(Tuple.Create("", 461145), Tuple.Create<System.Object, System.Int32>(family 33261 33262 #line default 33263 #line hidden 33264 , 461145), false) 33265 ); 33266 33267 WriteLiteral(" rel=\"stylesheet\""); 33268 33269 WriteLiteral(">\r\n\t"); 33270 33271 WriteLiteral("\r\n\t<link"); 33272 33273 WriteLiteral(" href=\"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&fa" + 33274 "mily=Raleway:wght@300;400;600&display=swap\""); 33275 33276 WriteLiteral(" rel=\"stylesheet\""); 33277 33278 WriteLiteral(">\r\n\t"); 33279 33280 WriteLiteral("\r\n\t"); 33281 33282 WriteLiteral("\r\n\r\n\r\n\t"); 33283 33284 WriteLiteral("\r\n\t<link"); 33285 33286 WriteLiteral(" rel=\"stylesheet\""); 33287 33288 WriteLiteral(" type=\"text/css\""); 33289 33290 WriteAttribute("href", Tuple.Create(" href=\"", 461648), Tuple.Create("\"", 461674) 33291 33292 #line 9705 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33293 , Tuple.Create(Tuple.Create("", 461655), Tuple.Create<System.Object, System.Int32>(ApplicationCssLink 33294 33295 #line default 33296 #line hidden 33297 , 461655), false) 33298 ); 33299 33300 WriteLiteral(">\r\n\t"); 33301 33302 WriteLiteral("\r\n\t<script"); 33303 33304 WriteLiteral(" type=\"module\""); 33305 33306 WriteLiteral(" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js\""); 33307 33308 WriteLiteral(" defer></script>\r\n\r\n\t\r\n\t"); 33309 33310 WriteLiteral("\r\n\t"); 33311 33312 WriteLiteral("\r\n\t"); 33313 33314 WriteLiteral("\r\n\t\r\n\t\r\n"); 33315 33316 33317 #line 9715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33318 33319 33320 #line default 33321 #line hidden 33322 33323 #line 9715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33324 if (areaInfo.AppName.HasValue()) 33325 { 33326 33327 33328 #line default 33329 #line hidden 33330 WriteLiteral("\t\t<link"); 33331 33332 WriteLiteral(" rel=\"manifest\""); 33333 33334 WriteAttribute("href", Tuple.Create(" href=\"", 462277), Tuple.Create("\"", 462336) 33335 , Tuple.Create(Tuple.Create("", 462284), Tuple.Create("/Files/Templates/Designs/", 462284), true) 33336 33337 #line 9717 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33338 , Tuple.Create(Tuple.Create("", 462309), Tuple.Create<System.Object, System.Int32>(DesignFolder 33339 33340 #line default 33341 #line hidden 33342 , 462309), false) 33343 , Tuple.Create(Tuple.Create("", 462322), Tuple.Create("/manifest.json", 462322), true) 33344 ); 33345 33346 WriteLiteral(">\r\n"); 33347 33348 33349 #line 9718 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33350 PushPromise("/Files/Templates/Designs/@DesignFolder/manifest.json"); 33351 } 33352 33353 33354 #line default 33355 #line hidden 33356 WriteLiteral(" "); 33357 33358 33359 #line 9720 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33360 if (!debugSpeedTest) 33361 { 33362 33363 33364 #line default 33365 #line hidden 33366 WriteLiteral(" <script"); 33367 33368 WriteLiteral(" type=\'text/javascript\'"); 33369 33370 WriteLiteral(" src=\'https://platform-api.sharethis.com/js/sharethis.js#property=5fad219b08fc500" + 33371 "013d1f78a&product=inline-share-buttons\'"); 33372 33373 WriteLiteral(" async=\'async\'"); 33374 33375 WriteLiteral("></script>\r\n"); 33376 33377 33378 #line 9723 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33379 } 33380 33381 33382 #line default 33383 #line hidden 33384 WriteLiteral("</head>\r\n\r\n<body"); 33385 33386 WriteAttribute("class", Tuple.Create(" class=\"", 462647), Tuple.Create("\"", 462677) 33387 33388 #line 9726 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33389 , Tuple.Create(Tuple.Create("", 462655), Tuple.Create<System.Object, System.Int32>(stickyTop 33390 33391 #line default 33392 #line hidden 33393 , 462655), false) 33394 33395 #line 9726 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33396 , Tuple.Create(Tuple.Create(" ", 462665), Tuple.Create<System.Object, System.Int32>(generalB2B 33397 33398 #line default 33399 #line hidden 33400 , 462666), false) 33401 ); 33402 33403 WriteLiteral(" "); 33404 33405 33406 #line 9726 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33407 Write(areaInfo.PageBackground); 33408 33409 33410 #line default 33411 #line hidden 33412 WriteLiteral(">\r\n"); 33413 33414 WriteLiteral("\r\n"); 33415 33416 WriteLiteral("\t"); 33417 33418 33419 #line 9728 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33420 Write(RenderBlockList(masterPage.BlocksRoot.BlocksList)); 33421 33422 33423 #line default 33424 #line hidden 33425 WriteLiteral("\r\n\r\n\t"); 33426 33427 WriteLiteral("\r\n"); 33428 33429 WriteLiteral("\r\n"); 33430 33431 WriteLiteral("\r\n"); 33432 33433 WriteLiteral("\t"); 33434 33435 33436 #line 10119 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33437 Write(RenderSnippet("BottomJS")); 33438 33439 33440 #line default 33441 #line hidden 33442 WriteLiteral("\r\n\r\n"); 33443 33444 33445 #line 10121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33446 33447 33448 #line default 33449 #line hidden 33450 33451 #line 10121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33452 33453 bool editParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["edit"]) ? true : false; 33454 bool debugParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["jsdebug"]) ? true : false; 33455 33456 33457 #line default 33458 #line hidden 33459 WriteLiteral("\r\n\r\n\t"); 33460 33461 WriteLiteral("\r\n"); 33462 33463 33464 #line 10127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33465 33466 33467 #line default 33468 #line hidden 33469 33470 #line 10127 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33471 if (editParameter) 33472 { 33473 33474 33475 #line default 33476 #line hidden 33477 WriteLiteral("\t\t<div"); 33478 33479 WriteLiteral(" id=\"config\""); 33480 33481 WriteLiteral(">\r\n\t\t\t<button"); 33482 33483 WriteLiteral(" type=\"button\""); 33484 33485 WriteLiteral(" id=\"toggleContainer\""); 33486 33487 WriteLiteral(">Toggle Container</button>\r\n\t\t\t<button"); 33488 33489 WriteLiteral(" type=\"button\""); 33490 33491 WriteLiteral(" id=\"toggleLayout\""); 33492 33493 WriteLiteral(">Toggle Layout</button>\r\n\t\t</div>\r\n"); 33494 33495 WriteLiteral("\t\t<script>\r\n let headerIndex = 0;\r\n const headerClasses = [" + 33496 "\"header vars container m--LSC--M style-1--1\",\"header vars container m-L-SC--M st" + 33497 "yle-2--1\", \"header vars container LmSC--M style-3--1\", \"header vars container LM" + 33498 "SC style-4--1\", \"header vars container L-M-SC style-5--1\", \"header vars containe" + 33499 "r LSC--M style-6--1\", \"header vars container SC--LM style-7--1\", \"header vars co" + 33500 "ntainer M-L-SC style-8--1\"];\r\n\t\t \r\n document.getElementById(\"toggleL" + 33501 "ayout\").addEventListener(\"click\",e=>{\r\n e.preventDefault();\r\n " + 33502 " if (headerIndex + 1 > headerClasses.length-1) {\r\n h" + 33503 "eaderIndex = 0;\r\n } else {\r\n headerIndex++;\r\n " + 33504 " }\r\n console.log(document.querySelector(\".header\").cl" + 33505 "assList);\r\n document.querySelector(\".header\").classList.value = h" + 33506 "eaderClasses[headerIndex];\r\n })\r\n \r\n document.g" + 33507 "etElementById(\"toggleContainer\").addEventListener(\"click\",e=>{\r\n " + 33508 "e.preventDefault();\r\n if(document.querySelectorAll(\".header.conta" + 33509 "iner\").length===0) {\r\n [...document.querySelectorAll(\".header\")" + 33510 "].forEach(element => {\r\n element.classList.add(\"container\")\r\n" + 33511 " });\r\n [...document.querySelectorAll(\".footer\"" + 33512 ")].forEach(element => {\r\n element.classList.add(\"container\")\r" + 33513 "\n });\r\n [...document.querySelectorAll(\".page\")" + 33514 "].forEach(element => {\r\n element.classList.add(\"container\")\r\n" + 33515 " });\t \r\n } else {\r\n [." + 33516 "..document.querySelectorAll(\".header\")].forEach(element => {\r\n " + 33517 " element.classList.remove(\"container\")\r\n });\r\n " + 33518 " [...document.querySelectorAll(\".footer\")].forEach(element => {\r\n " + 33519 " element.classList.remove(\"container\")\r\n });\r\n " + 33520 " [...document.querySelectorAll(\".page\")].forEach(element => {\r\n " + 33521 " element.classList.remove(\"container\")\r\n });\t \r" + 33522 "\n }\r\n });\r\n [...document.querySelectorA" + 33523 "ll(\".switcher\")].forEach(el=>{\r\n el.addEventListener(\"click\", ()=" + 33524 "> {\r\n let className = el.name + \"--\" +el.value;\r\n " + 33525 " let target = el.closest(\".header\");\r\n let filtered = [...el" + 33526 ".closest(\".header\").classList].filter(v=> !v.includes(el.name)); \r\n " + 33527 " target.classList = filtered.join(\" \"); \r\n target.clas" + 33528 "sList.add(className);\r\n });\r\n });\r\n\t \r\n\t\t</script>\r" + 33529 "\n"); 33530 33531 33532 #line 10183 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33533 } 33534 33535 33536 #line default 33537 #line hidden 33538 WriteLiteral("\t"); 33539 33540 33541 #line 10184 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33542 if (debugParameter) 33543 { 33544 33545 33546 #line default 33547 #line hidden 33548 WriteLiteral("\t\t<script>\r\n\t\t document.addEventListener(\"optionChanged\", e=>{console.log(e.ty" + 33549 "pe,e)});\r\n\t\t document.addEventListener(\"filtersChanged\", e=>{console.log(e.ty" + 33550 "pe,e.detail.url)})\r\n\t\t</script>\r\n"); 33551 33552 33553 #line 10190 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33554 } 33555 33556 33557 #line default 33558 #line hidden 33559 WriteLiteral("\r\n\r\n\r\n\r\n<script"); 33560 33561 WriteLiteral(" type=\"module\""); 33562 33563 WriteLiteral(" src=\"https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js\""); 33564 33565 WriteLiteral(" defer></script>\r\n"); 33566 33567 WriteLiteral("\r\n<script"); 33568 33569 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/noty@3.1.4/lib/noty.min.js\""); 33570 33571 WriteLiteral(" defer></script>\r\n<script"); 33572 33573 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/handlebars@4.7.6/dist/handlebars.min.js\""); 33574 33575 WriteLiteral(" defer></script>\r\n<script"); 33576 33577 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js\""); 33578 33579 WriteLiteral(" defer></script>\r\n<script"); 33580 33581 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/flatpickr\""); 33582 33583 WriteLiteral(" defer></script>\r\n<script"); 33584 33585 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/js-image-zoom/js-image-zoom.min.js\""); 33586 33587 WriteLiteral(" defer></script>\r\n<script"); 33588 33589 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js\""); 33590 33591 WriteLiteral(" defer></script>\r\n"); 33592 33593 WriteLiteral("\r\n"); 33594 33595 WriteLiteral("\r\n\r\n"); 33596 33597 33598 #line 10206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33599 if (currentLang == "en") 33600 { 33601 33602 33603 #line default 33604 #line hidden 33605 WriteLiteral(" <script"); 33606 33607 WriteAttribute("src", Tuple.Create(" src=\"", 482983), Tuple.Create("\"", 483062) 33608 , Tuple.Create(Tuple.Create("", 482989), Tuple.Create("/Files/Templates/Designs/", 482989), true) 33609 33610 #line 10208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33611 , Tuple.Create(Tuple.Create("", 483014), Tuple.Create<System.Object, System.Int32>(DesignFolder 33612 33613 #line default 33614 #line hidden 33615 , 483014), false) 33616 , Tuple.Create(Tuple.Create("", 483027), Tuple.Create("/js/translations/translations_23.js", 483027), true) 33617 ); 33618 33619 WriteLiteral(" defer></script>\r\n"); 33620 33621 33622 #line 10209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33623 } 33624 else 33625 { 33626 33627 33628 #line default 33629 #line hidden 33630 WriteLiteral(" <script"); 33631 33632 WriteAttribute("src", Tuple.Create(" src=\"", 483102), Tuple.Create("\"", 483181) 33633 , Tuple.Create(Tuple.Create("", 483108), Tuple.Create("/Files/Templates/Designs/", 483108), true) 33634 33635 #line 10212 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33636 , Tuple.Create(Tuple.Create("", 483133), Tuple.Create<System.Object, System.Int32>(DesignFolder 33637 33638 #line default 33639 #line hidden 33640 , 483133), false) 33641 , Tuple.Create(Tuple.Create("", 483146), Tuple.Create("/js/translations/translations_21.js", 483146), true) 33642 ); 33643 33644 WriteLiteral(" defer></script> \r\n"); 33645 33646 33647 #line 10213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33648 } 33649 33650 33651 #line default 33652 #line hidden 33653 WriteLiteral("\r\n"); 33654 33655 WriteLiteral("\r\n"); 33656 33657 WriteLiteral("\r\n"); 33658 33659 WriteLiteral("\r\n"); 33660 33661 WriteLiteral("\r\n"); 33662 33663 WriteLiteral("\r\n "); 33664 33665 WriteLiteral("\r\n"); 33666 33667 33668 #line 10221 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33669 33670 string scriptBundle = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.js?ticks=" + Model.Area.UpdatedDate.Ticks; 33671 33672 33673 #line default 33674 #line hidden 33675 WriteLiteral(" \r\n\r\n<script"); 33676 33677 WriteAttribute("src", Tuple.Create(" src=\"", 483661), Tuple.Create("\"", 483680) 33678 33679 #line 10225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33680 , Tuple.Create(Tuple.Create("", 483667), Tuple.Create<System.Object, System.Int32>(scriptBundle 33681 33682 #line default 33683 #line hidden 33684 , 483667), false) 33685 ); 33686 33687 WriteLiteral(@" defer></script> 33688 33689 33690 <script> 33691 33692 33693 window.googleEnchantImpressionClick = function (googleImpression) { 33694 if (typeof dataLayer !== 'undefined') { 33695 dataLayer.push({ 33696 'event': 'productClick', 33697 'ecommerce': { 33698 'click': { 33699 'actionField': { 33700 'list': googleImpression.list 33701 }, 33702 // Optional list property. 33703 'products': [{ 33704 'name': googleImpression.name, 33705 // Name or ID is required. 33706 'id': googleImpression.id, 33707 'price': googleImpression.price, 33708 'brand': googleImpression.brand, 33709 'category': googleImpression.category, 33710 'variant': googleImpression.variant, 33711 'position': googleImpression.position 33712 }] 33713 } 33714 }, 33715 'eventCallback': function () 33716 { 33717 console.log('callback from googleImpression' , googleImpression) 33718 // document.location = googleImpression.url; 33719 } 33720 }); 33721 } 33722 }; 33723 </script> 33724 <style> 33725 .block-structure ul{ 33726 33727 padding-left: 4rem; 33728 33729 } 33730 </style> 33731 "); 33732 33733 WriteLiteral("\r\n<div"); 33734 33735 WriteLiteral(" class=\"section__container container\""); 33736 33737 WriteLiteral(">\r\n\t<div"); 33738 33739 WriteLiteral(" class=\"section__content\""); 33740 33741 WriteLiteral(">\r\n\t\t<div"); 33742 33743 WriteLiteral(" class=\"block-structure hidden\""); 33744 33745 WriteLiteral(">"); 33746 33747 33748 #line 10272 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\_parsed\DynamicArticle.parsed.cshtml" 33749 Write(masterPage.GetBlocksStructure()); 33750 33751 33752 #line default 33753 #line hidden 33754 WriteLiteral("</div>\t\t\r\n\t</div>\r\n</div>\r\n\r\n\r\n\r\n"); 33755 33756 WriteLiteral("\r\n<div"); 33757 33758 WriteLiteral(" class=\"hidden\""); 33759 33760 WriteLiteral("><button"); 33761 33762 WriteLiteral(" type=\"button\""); 33763 33764 WriteLiteral(" data-role=\"confirm\""); 33765 33766 WriteLiteral(" data-content=\"Doresti sa golesti cosul ?\""); 33767 33768 WriteLiteral(" data-approve-label=\"Confirma\""); 33769 33770 WriteLiteral(" data-reject-label=\"Anuleaza\""); 33771 33772 WriteLiteral(">Sterge cosul</button></div>\r\n<button"); 33773 33774 WriteLiteral(" type=\"button\""); 33775 33776 WriteLiteral(" dev-role=\"switch-header\""); 33777 33778 WriteLiteral(" class=\"btn-icon hidden\""); 33779 33780 WriteLiteral(" style=\"--button-line-height: 2rem\""); 33781 33782 WriteLiteral("><div"); 33783 33784 WriteLiteral(" class=\"ico icon-xs\""); 33785 33786 WriteLiteral("><svg"); 33787 33788 WriteLiteral(" xmlns=\'http://www.w3.org/2000/svg\'"); 33789 33790 WriteLiteral(" width=\'512\'"); 33791 33792 WriteLiteral(" height=\'512\'"); 33793 33794 WriteLiteral(" viewBox=\'0 0 512 512\'"); 33795 33796 WriteLiteral("><path"); 33797 33798 WriteLiteral(" d=\'M368,112H144C64.6,112,0,176.6,0,256S64.6,400,144,400H368c79.4,0,144-64.6,144-" + 33799 "144S447.4,112,368,112Zm0,256A112,112,0,1,1,480,256,112.12,112.12,0,0,1,368,368Z\'" + 33800 ""); 33801 33802 WriteLiteral("/></svg></div></button>\r\n\r\n</body>\r\n</html>\r\n\r\n"); 33803 33804 } 33805 } 33806 } 33807

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&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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&amp;height=160&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}}" 911 data-src="/Admin/Public/GetImage.ashx?width=160&amp;height=160&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}}" alt="{{name}}" /> 912 {{#if secondaryImage}} 913 <img class="b-lazy" data-secondary-image-src="/Admin/Public/GetImage.ashx?width=160&amp;height=160&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=40&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;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&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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&amp;height=70&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}}" 1176 data-src="/Admin/Public/GetImage.ashx?width=70&amp;height=70&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image={{image}}" alt="{{name}}" /> 1177 {{#if secondaryImage}} 1178 <img class="b-lazy" data-secondary-image-src="/Admin/Public/GetImage.ashx?width=160&amp;height=160&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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&amp;height=75&amp;crop=5&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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 1383 var DesignFolder = Pageview.Layout.Design.Name; 1384 bool useFontAwesomePro = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetBoolean("UseFontAwesomePro"); 1385 string fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomeFree/css/fontawesome-all.min.css"; 1386 1387 string autoCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/rapido/wizaris_" + Model.Area.ID.ToString() + ".min.css?ticks=" + Model.Area.UpdatedDate.Ticks; 1388 string wizarisCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/Dotfusion/app.css?ticks=" + Model.Area.UpdatedDate.Ticks; 1389 string ApplicationCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks; 1390 string ApplicationDeferCssLink = "/Files/Templates/Designs/"+DesignFolder+"/dist/defer.bundle.css?ticks=" + Model.Area.UpdatedDate.Ticks; 1391 1392 if (useFontAwesomePro) 1393 { 1394 fontAwesomeCssLink = "/Files/Templates/Designs/"+DesignFolder+"/css/fonts/FontAwesomePro/css/fontawesome-all.min.css"; 1395 } 1396 } 1397 1398 @{ 1399 Block master = new Block() 1400 { 1401 Id = "Master", 1402 BlocksList = new List<Block> { 1403 new Block { 1404 Id = "MasterTopSnippets", 1405 SortId = 10 1406 }, 1407 new Block { 1408 Id = "MasterMain", 1409 SortId = 20, 1410 Template = RenderMain(), 1411 SkipRenderBlocksList = true, 1412 BlocksList = new List<Block> { 1413 // new Block { 1414 // Id = "MasterHeaderTop", 1415 // SortId = 1, 1416 // Template = RenderMasterTop(), 1417 // SkipRenderBlocksList = true 1418 // }, 1419 new Block { 1420 Id = "MasterHeader", 1421 SortId = 10, 1422 Template = RenderMasterHeader(), 1423 SkipRenderBlocksList = true 1424 }, 1425 new Block { 1426 Id = "MasterPageContent", 1427 SortId = 20, 1428 Template = RenderPageContent() 1429 } 1430 } 1431 }, 1432 new Block { 1433 Id = "MasterFooter", 1434 SortId = 30 1435 }, 1436 new Block { 1437 Id = "MasterReferences", 1438 SortId = 40 1439 }, 1440 new Block { 1441 Id = "MasterBottomSnippets", 1442 SortId = 50 1443 } 1444 } 1445 }; 1446 1447 masterPage.Add(master); 1448 } 1449 1450 @* Include the required Grid builder (Contains the methods @RenderBlockList and @RenderBlock) *@ 1451 @using System.Text.RegularExpressions 1452 @using System.Collections.Generic 1453 @using System.Reflection 1454 @using System.Web 1455 @using System.Web.UI.HtmlControls 1456 @using Dynamicweb.Rapido.Blocks.Components 1457 @using Dynamicweb.Rapido.Blocks.Components.Articles 1458 @using Dynamicweb.Rapido.Blocks.Components.Documentation 1459 @using Dynamicweb.Rapido.Blocks 1460 1461 1462 @*--- START: Base block renderers ---*@ 1463 1464 @helper RenderBlockList(List<Block> blocks) 1465 { 1466 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 1467 blocks = blocks.OrderBy(item => item.SortId).ToList(); 1468 1469 foreach (Block item in blocks) 1470 { 1471 if (debug) { 1472 <!-- Block START: @item.Id --> 1473 } 1474 1475 if (item.Design == null) 1476 { 1477 @RenderBlock(item) 1478 } 1479 else if (item.Design.RenderType == RenderType.None) { 1480 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 1481 1482 <div class="@cssClass dw-mod"> 1483 @RenderBlock(item) 1484 </div> 1485 } 1486 else if (item.Design.RenderType != RenderType.Hide) 1487 { 1488 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 1489 1490 if (!item.SkipRenderBlocksList) { 1491 if (item.Design.RenderType == RenderType.Row) 1492 { 1493 <div class="grid grid--align-content-start @cssClass dw-mod" id="Block__@item.Id"> 1494 @RenderBlock(item) 1495 </div> 1496 } 1497 1498 if (item.Design.RenderType == RenderType.Column) 1499 { 1500 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 1501 string size = item.Design.Size ?? "12"; 1502 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 1503 1504 <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"> 1505 @RenderBlock(item) 1506 </div> 1507 } 1508 1509 if (item.Design.RenderType == RenderType.Table) 1510 { 1511 <table class="table @cssClass dw-mod" id="Block__@item.Id"> 1512 @RenderBlock(item) 1513 </table> 1514 } 1515 1516 if (item.Design.RenderType == RenderType.TableRow) 1517 { 1518 <tr class="@cssClass dw-mod" id="Block__@item.Id"> 1519 @RenderBlock(item) 1520 </tr> 1521 } 1522 1523 if (item.Design.RenderType == RenderType.TableColumn) 1524 { 1525 <td class="@cssClass dw-mod" id="Block__@item.Id"> 1526 @RenderBlock(item) 1527 </td> 1528 } 1529 1530 if (item.Design.RenderType == RenderType.CardHeader) 1531 { 1532 <div class="card-header @cssClass dw-mod"> 1533 @RenderBlock(item) 1534 </div> 1535 } 1536 1537 if (item.Design.RenderType == RenderType.CardBody) 1538 { 1539 <div class="card @cssClass dw-mod"> 1540 @RenderBlock(item) 1541 </div> 1542 } 1543 1544 if (item.Design.RenderType == RenderType.CardFooter) 1545 { 1546 <div class="card-footer @cssClass dw-mod"> 1547 @RenderBlock(item) 1548 </div> 1549 } 1550 } 1551 else 1552 { 1553 @RenderBlock(item) 1554 } 1555 } 1556 1557 if (debug) { 1558 <!-- Block END: @item.Id --> 1559 } 1560 } 1561 } 1562 1563 @helper RenderBlock(Block item) 1564 { 1565 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 1566 1567 if (item.Template != null) 1568 { 1569 @BlocksPage.RenderTemplate(item.Template) 1570 } 1571 1572 if (item.Component != null) 1573 { 1574 string customSufix = "Custom"; 1575 string methodName = item.Component.HelperName; 1576 1577 ComponentBase[] methodParameters = new ComponentBase[1]; 1578 methodParameters[0] = item.Component; 1579 Type methodType = this.GetType(); 1580 1581 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 1582 MethodInfo generalMethod = methodType.GetMethod(methodName); 1583 1584 try { 1585 if (debug) { 1586 <!-- Component: @methodName.Replace("Render", "") --> 1587 } 1588 @customMethod.Invoke(this, methodParameters).ToString(); 1589 } catch { 1590 try { 1591 @generalMethod.Invoke(this, methodParameters).ToString(); 1592 } catch(Exception ex) { 1593 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 1594 } 1595 } 1596 } 1597 1598 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 1599 { 1600 @RenderBlockList(item.BlocksList) 1601 } 1602 } 1603 1604 @*--- END: Base block renderers ---*@ 1605 1606 1607 @* Include the components *@ 1608 @using Dynamicweb.Rapido.Blocks.Components 1609 @using Dynamicweb.Rapido.Blocks.Components.General 1610 @using Dynamicweb.Rapido.Blocks 1611 @using System.IO 1612 1613 @* Required *@ 1614 @using Dynamicweb.Rapido.Blocks.Components 1615 @using Dynamicweb.Rapido.Blocks.Components.General 1616 @using Dynamicweb.Rapido.Blocks 1617 1618 1619 @helper Render(ComponentBase component) 1620 { 1621 if (component != null) 1622 { 1623 @component.Render(this) 1624 } 1625 } 1626 1627 @* Components *@ 1628 @using System.Reflection 1629 @using Dynamicweb.Rapido.Blocks.Components.General 1630 1631 1632 @* Component *@ 1633 1634 @helper RenderIcon(Icon settings) 1635 { 1636 if (settings != null) 1637 { 1638 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 1639 1640 if (settings.Name != null) 1641 { 1642 if (string.IsNullOrEmpty(settings.Label)) 1643 { 1644 <i class="@settings.Prefix @settings.Name @settings.CssClass" @color></i> 1645 } 1646 else 1647 { 1648 if (settings.LabelPosition == IconLabelPosition.Before) 1649 { 1650 <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> 1651 } 1652 else 1653 { 1654 <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> 1655 } 1656 } 1657 } 1658 else if (!string.IsNullOrEmpty(settings.Label)) 1659 { 1660 @settings.Label 1661 } 1662 } 1663 } 1664 @using System.Reflection 1665 @using Dynamicweb.Rapido.Blocks.Components.General 1666 @using Dynamicweb.Rapido.Blocks.Components 1667 @using Dynamicweb.Core 1668 1669 @* Component *@ 1670 1671 @helper RenderButton(Button settings) 1672 { 1673 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1674 { 1675 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1676 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1677 if (settings.Disabled) { 1678 attributes.Add("disabled", "true"); 1679 classList.Add("disabled"); 1680 } 1681 1682 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle)) 1683 { 1684 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 1685 @RenderConfirmDialog(settings); 1686 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true"; 1687 } 1688 1689 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1690 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1691 if (!string.IsNullOrEmpty(settings.AltText)) 1692 { 1693 attributes.Add("title", settings.AltText); 1694 } 1695 else if (!string.IsNullOrEmpty(settings.Title)) 1696 { 1697 attributes.Add("title", settings.Title); 1698 } 1699 1700 var onClickEvents = new List<string>(); 1701 if (!string.IsNullOrEmpty(settings.OnClick)) 1702 { 1703 onClickEvents.Add(settings.OnClick); 1704 } 1705 if (!string.IsNullOrEmpty(settings.Href)) 1706 { 1707 onClickEvents.Add("location.href='" + settings.Href + "'"); 1708 } 1709 if (onClickEvents.Count > 0) 1710 { 1711 attributes.Add("onClick", string.Join(";", onClickEvents)); 1712 } 1713 1714 if (settings.ButtonLayout != ButtonLayout.None) 1715 { 1716 classList.Add("btn"); 1717 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1718 if (btnLayout == "linkclean") 1719 { 1720 btnLayout = "link-clean"; //fix 1721 } 1722 classList.Add("btn-fill--" + btnLayout); 1723 } 1724 1725 if (settings.Icon == null) 1726 { 1727 settings.Icon = new Icon(); 1728 } 1729 1730 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : ""; 1731 settings.Icon.Label = settings.Title; 1732 1733 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower()); 1734 1735 <button class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</button> 1736 } 1737 } 1738 1739 @helper RenderConfirmDialog(Button settings) 1740 { 1741 Modal confirmDialog = new Modal { 1742 Id = settings.Id, 1743 Width = ModalWidth.Sm, 1744 Heading = new Heading 1745 { 1746 Level = 2, 1747 Title = settings.ConfirmTitle 1748 }, 1749 BodyText = settings.ConfirmText 1750 }; 1751 1752 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"}); 1753 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick }); 1754 1755 @Render(confirmDialog) 1756 } 1757 @using Dynamicweb.Rapido.Blocks.Components.General 1758 @using Dynamicweb.Rapido.Blocks.Components 1759 @using Dynamicweb.Core 1760 1761 @helper RenderDashboard(Dashboard settings) 1762 { 1763 var widgets = settings.GetWidgets(); 1764 1765 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor)) 1766 { 1767 //set bg color for them 1768 1769 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor); 1770 int r = Convert.ToInt16(color.R); 1771 int g = Convert.ToInt16(color.G); 1772 int b = Convert.ToInt16(color.B); 1773 1774 var count = widgets.Length; 1775 var max = Math.Max(r, Math.Max(g, b)); 1776 double step = 255.0 / (max * count); 1777 var i = 0; 1778 foreach (var widget in widgets) 1779 { 1780 i++; 1781 1782 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")"; 1783 widget.BackgroundColor = shade; 1784 } 1785 } 1786 1787 <div class="dashboard @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1788 @foreach (var widget in widgets) 1789 { 1790 <div class="dashboard__widget"> 1791 @Render(widget) 1792 </div> 1793 } 1794 </div> 1795 } 1796 @using Dynamicweb.Rapido.Blocks.Components.General 1797 @using Dynamicweb.Rapido.Blocks.Components 1798 1799 @helper RenderDashboardWidgetLink(DashboardWidgetLink settings) 1800 { 1801 if (!string.IsNullOrEmpty(settings.Link)) 1802 { 1803 var backgroundStyles = ""; 1804 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1805 { 1806 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\""; 1807 } 1808 1809 <a href="@settings.Link" class="widget widget--link @settings.CssClass dw-mod" @backgroundStyles title="@settings.Title" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1810 <div class="u-center-middle u-color-light"> 1811 @if (settings.Icon != null) 1812 { 1813 settings.Icon.CssClass += "widget__icon"; 1814 @Render(settings.Icon) 1815 } 1816 <div class="widget__title">@settings.Title</div> 1817 </div> 1818 </a> 1819 } 1820 } 1821 @using Dynamicweb.Rapido.Blocks.Components.General 1822 @using Dynamicweb.Rapido.Blocks.Components 1823 1824 @helper RenderDashboardWidgetCounter(DashboardWidgetCounter settings) 1825 { 1826 var backgroundStyles = ""; 1827 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1828 { 1829 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'"; 1830 } 1831 1832 <div class="widget @settings.CssClass dw-mod" @backgroundStyles @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1833 <div class="u-center-middle u-color-light"> 1834 @if (settings.Icon != null) 1835 { 1836 settings.Icon.CssClass += "widget__icon"; 1837 @Render(settings.Icon) 1838 } 1839 <div class="widget__counter">@settings.Count</div> 1840 <div class="widget__title">@settings.Title</div> 1841 </div> 1842 </div> 1843 } 1844 @using System.Reflection 1845 @using Dynamicweb.Rapido.Blocks.Components.General 1846 @using Dynamicweb.Rapido.Blocks.Components 1847 @using Dynamicweb.Core 1848 1849 @* Component *@ 1850 1851 @helper RenderLink(Link settings) 1852 { 1853 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1854 { 1855 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1856 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1857 if (settings.Disabled) 1858 { 1859 attributes.Add("disabled", "true"); 1860 classList.Add("disabled"); 1861 } 1862 1863 if (!string.IsNullOrEmpty(settings.AltText)) 1864 { 1865 attributes.Add("title", settings.AltText); 1866 } 1867 else if (!string.IsNullOrEmpty(settings.Title)) 1868 { 1869 attributes.Add("title", settings.Title); 1870 } 1871 1872 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1873 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1874 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); } 1875 attributes.Add("href", settings.Href); 1876 1877 if (settings.ButtonLayout != ButtonLayout.None) 1878 { 1879 classList.Add("btn"); 1880 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1881 if (btnLayout == "linkclean") 1882 { 1883 btnLayout = "link-clean"; //fix 1884 } 1885 classList.Add("btn--" + btnLayout); 1886 } 1887 1888 if (settings.Icon == null) 1889 { 1890 settings.Icon = new Icon(); 1891 } 1892 settings.Icon.Label = settings.Title; 1893 1894 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None) 1895 { 1896 settings.Rel = LinkRelType.Noopener; 1897 } 1898 if (settings.Target != LinkTargetType.None) 1899 { 1900 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower()); 1901 } 1902 if (settings.Download) 1903 { 1904 attributes.Add("download", "true"); 1905 } 1906 if (settings.Rel != LinkRelType.None) 1907 { 1908 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower()); 1909 } 1910 1911 <a class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</a> 1912 } 1913 } 1914 @using System.Reflection 1915 @using Dynamicweb.Rapido.Blocks.Components 1916 @using Dynamicweb.Rapido.Blocks.Components.General 1917 @using Dynamicweb.Rapido.Blocks 1918 1919 1920 @* Component *@ 1921 1922 @helper RenderRating(Rating settings) 1923 { 1924 if (settings.Score > 0) 1925 { 1926 int rating = settings.Score; 1927 string iconType = "fa-star"; 1928 1929 switch (settings.Type.ToString()) { 1930 case "Stars": 1931 iconType = "fa-star"; 1932 break; 1933 case "Hearts": 1934 iconType = "fa-heart"; 1935 break; 1936 case "Lemons": 1937 iconType = "fa-lemon"; 1938 break; 1939 case "Bombs": 1940 iconType = "fa-bomb"; 1941 break; 1942 } 1943 1944 <div class="u-ta-right"> 1945 @for (int i = 0; i < settings.OutOf; i++) 1946 { 1947 <i class="@(rating > i ? "fas" : "far") @iconType"></i> 1948 } 1949 </div> 1950 } 1951 } 1952 @using System.Reflection 1953 @using Dynamicweb.Rapido.Blocks.Components.General 1954 @using Dynamicweb.Rapido.Blocks.Components 1955 1956 1957 @* Component *@ 1958 1959 @helper RenderSelectFieldOption(SelectFieldOption settings) 1960 { 1961 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1962 if (settings.Checked) { attributes.Add("selected", "true"); } 1963 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1964 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1965 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1966 1967 <option @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Label</option> 1968 } 1969 @using System.Reflection 1970 @using Dynamicweb.Rapido.Blocks.Components.General 1971 @using Dynamicweb.Rapido.Blocks.Components 1972 1973 1974 @* Component *@ 1975 1976 @helper RenderNavigation(Navigation settings) { 1977 @RenderNavigation(new 1978 { 1979 id = settings.Id, 1980 cssclass = settings.CssClass, 1981 startLevel = settings.StartLevel, 1982 endlevel = settings.EndLevel, 1983 expandmode = settings.Expandmode, 1984 sitemapmode = settings.SitemapMode, 1985 template = settings.Template 1986 }) 1987 } 1988 @using Dynamicweb.Rapido.Blocks.Components.General 1989 @using Dynamicweb.Rapido.Blocks.Components 1990 1991 1992 @* Component *@ 1993 1994 @helper RenderBreadcrumbNavigation(BreadcrumbNavigation settings) { 1995 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 1996 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 1997 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 1998 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 1999 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2000 settings.SitemapMode = false; 2001 2002 @RenderNavigation(settings) 2003 } 2004 @using Dynamicweb.Rapido.Blocks.Components.General 2005 @using Dynamicweb.Rapido.Blocks.Components 2006 2007 2008 @* Component *@ 2009 2010 @helper RenderLeftNavigation(LeftNavigation settings) { 2011 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 2012 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 2013 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 2014 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 2015 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2016 2017 <div class="grid__cell"> 2018 @RenderNavigation(settings) 2019 </div> 2020 } 2021 @using System.Reflection 2022 @using Dynamicweb.Rapido.Blocks.Components.General 2023 @using Dynamicweb.Core 2024 2025 @* Component *@ 2026 2027 @helper RenderHeading(Heading settings) 2028 { 2029 if (settings != null && !string.IsNullOrEmpty(settings.Title)) 2030 { 2031 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 2032 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div"; 2033 2034 @("<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">") 2035 if (!string.IsNullOrEmpty(settings.Link)) 2036 { 2037 @Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None }) 2038 } 2039 else 2040 { 2041 if (settings.Icon == null) 2042 { 2043 settings.Icon = new Icon(); 2044 } 2045 settings.Icon.Label = settings.Title; 2046 @Render(settings.Icon) 2047 } 2048 @("</" + tagName + ">"); 2049 } 2050 } 2051 @using Dynamicweb.Rapido.Blocks.Components 2052 @using Dynamicweb.Rapido.Blocks.Components.General 2053 @using Dynamicweb.Rapido.Blocks 2054 2055 2056 @* Component *@ 2057 2058 @helper RenderImage(Image settings) 2059 { 2060 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None) 2061 { 2062 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 2063 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); } 2064 2065 if (settings.Caption != null) 2066 { 2067 @:<div> 2068 } 2069 2070 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower(); 2071 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower(); 2072 2073 <div class="image-filter image-filter--@primaryFilterClass u-position-relative dw-mod" @ComponentMethods.AddAttributes(optionalAttributes)> 2074 <div class="image-filter image-filter--@secondaryFilterClass dw-mod"> 2075 @if (settings.Link != null) 2076 { 2077 <a href="@settings.Link"> 2078 @RenderTheImage(settings) 2079 </a> 2080 } 2081 else 2082 { 2083 @RenderTheImage(settings) 2084 } 2085 </div> 2086 </div> 2087 2088 if (settings.Caption != null) 2089 { 2090 <span class="image-caption dw-mod">@settings.Caption</span> 2091 @:</div> 2092 } 2093 } 2094 else 2095 { 2096 if (settings.Caption != null) 2097 { 2098 @:<div> 2099 } 2100 if (!string.IsNullOrEmpty(settings.Link)) 2101 { 2102 <a href="@settings.Link"> 2103 @RenderTheImage(settings) 2104 </a> 2105 } 2106 else 2107 { 2108 @RenderTheImage(settings) 2109 } 2110 2111 if (settings.Caption != null) 2112 { 2113 <span class="image-caption dw-mod">@settings.Caption</span> 2114 @:</div> 2115 } 2116 } 2117 } 2118 2119 @helper RenderTheImage(Image settings) 2120 { 2121 if (settings != null) 2122 { 2123 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg"; 2124 string placeholderImage = "/Files/Images/placeholder.gif"; 2125 string imageEngine = "/Admin/Public/GetImage.ashx?"; 2126 2127 string imageStyle = ""; 2128 2129 switch (settings.Style) 2130 { 2131 case ImageStyle.Ball: 2132 imageStyle = "grid__cell-img--ball"; 2133 break; 2134 2135 case ImageStyle.Triangle: 2136 imageStyle = "grid__cell-img--triangle"; 2137 break; 2138 } 2139 2140 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle) 2141 { 2142 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop; 2143 2144 if (settings.ImageDefault != null) 2145 { 2146 settings.ImageDefault.Height = settings.ImageDefault.Width; 2147 } 2148 if (settings.ImageMedium != null) 2149 { 2150 settings.ImageMedium.Height = settings.ImageMedium.Width; 2151 } 2152 if (settings.ImageSmall != null) 2153 { 2154 settings.ImageSmall.Height = settings.ImageSmall.Width; 2155 } 2156 } 2157 2158 string defaultImage = imageEngine; 2159 string imageSmall = ""; 2160 string imageMedium = ""; 2161 2162 if (settings.DisableImageEngine) 2163 { 2164 defaultImage = settings.Path; 2165 } 2166 else 2167 { 2168 if (settings.ImageDefault != null) 2169 { 2170 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault); 2171 2172 if (settings.Path.GetType() != typeof(string)) 2173 { 2174 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2175 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2176 } 2177 else 2178 { 2179 defaultImage += settings.Path != null ? "Image=" + settings.Path : ""; 2180 } 2181 2182 defaultImage += "&AlternativeImage=" + alternativeImage; 2183 } 2184 2185 if (settings.ImageSmall != null) 2186 { 2187 imageSmall = "data-src-small=\"" + imageEngine; 2188 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall); 2189 2190 if (settings.Path.GetType() != typeof(string)) 2191 { 2192 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2193 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2194 } 2195 else 2196 { 2197 imageSmall += settings.Path != null ? "Image=" + settings.Path : ""; 2198 } 2199 2200 imageSmall += "&alternativeImage=" + alternativeImage; 2201 2202 imageSmall += "\""; 2203 } 2204 2205 if (settings.ImageMedium != null) 2206 { 2207 imageMedium = "data-src-medium=\"" + imageEngine; 2208 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium); 2209 2210 if (settings.Path.GetType() != typeof(string)) 2211 { 2212 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2213 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2214 } 2215 else 2216 { 2217 imageMedium += settings.Path != null ? "Image=" + settings.Path : ""; 2218 } 2219 2220 imageMedium += "&alternativeImage=" + alternativeImage; 2221 2222 imageMedium += "\""; 2223 } 2224 } 2225 2226 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 2227 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); } 2228 if (!string.IsNullOrEmpty(settings.Title)) 2229 { 2230 optionalAttributes.Add("alt", settings.Title); 2231 optionalAttributes.Add("title", settings.Title); 2232 } 2233 2234 if (settings.DisableLazyLoad) 2235 { 2236 <img id="@settings.Id" class="@imageStyle @settings.CssClass dw-mod" src="@defaultImage" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes) /> 2237 } 2238 else 2239 { 2240 <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) /> 2241 } 2242 } 2243 } 2244 @using System.Reflection 2245 @using Dynamicweb.Rapido.Blocks.Components.General 2246 @using Dynamicweb.Rapido.Blocks.Components 2247 2248 @* Component *@ 2249 2250 @helper RenderFileField(FileField settings) 2251 { 2252 var attributes = new Dictionary<string, string>(); 2253 if (string.IsNullOrEmpty(settings.Id)) 2254 { 2255 settings.Id = Guid.NewGuid().ToString("N"); 2256 } 2257 2258 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2259 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2260 if (settings.Required) { attributes.Add("required", "true"); } 2261 if (settings.Multiple) { attributes.Add("multiple", "true"); } 2262 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2263 if (string.IsNullOrEmpty(settings.ChooseFileText)) 2264 { 2265 settings.ChooseFileText = Translate("Choose file"); 2266 } 2267 if (string.IsNullOrEmpty(settings.NoFilesChosenText)) 2268 { 2269 settings.NoFilesChosenText = Translate("No files chosen..."); 2270 } 2271 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2272 2273 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2274 2275 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)"; 2276 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : "")); 2277 2278 attributes.Add("type", "file"); 2279 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2280 settings.CssClass = "u-full-width " + settings.CssClass; 2281 2282 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2283 2284 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 2285 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2286 { 2287 <div class="u-full-width"> 2288 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2289 @if (settings.Link != null) { 2290 <div class="u-pull--right"> 2291 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2292 @RenderLink(settings.Link) 2293 </div> 2294 } 2295 </div> 2296 2297 } 2298 2299 @if (!string.IsNullOrEmpty(settings.HelpText)) 2300 { 2301 <small class="form__help-text">@settings.HelpText</small> 2302 } 2303 2304 <div class="form__field-combi file-input u-no-margin dw-mod"> 2305 <input @ComponentMethods.AddAttributes(resultAttributes) class="file-input__real-input" data-no-files-text="@settings.NoFilesChosenText" data-many-files-text="@Translate("files")" /> 2306 <label for="@settings.Id" class="file-input__btn btn--secondary btn dw-mod">@settings.ChooseFileText</label> 2307 <label for="@settings.Id" class="@settings.CssClass file-input__fake-input js-fake-input dw-mod">@settings.NoFilesChosenText</label> 2308 @if (settings.UploadButton != null) 2309 { 2310 settings.UploadButton.CssClass += " btn--condensed u-no-margin"; 2311 @RenderButton(settings.UploadButton) 2312 } 2313 </div> 2314 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 2315 </div> 2316 } 2317 @using System.Reflection 2318 @using Dynamicweb.Rapido.Blocks.Components.General 2319 @using Dynamicweb.Rapido.Blocks.Components 2320 @using Dynamicweb.Core 2321 @using System.Linq 2322 2323 @* Component *@ 2324 2325 @helper RenderDateTimeField(DateTimeField settings) 2326 { 2327 if (string.IsNullOrEmpty(settings.Id)) 2328 { 2329 settings.Id = Guid.NewGuid().ToString("N"); 2330 } 2331 2332 var textField = new TextField { 2333 Name = settings.Name, 2334 Id = settings.Id, 2335 Label = settings.Label, 2336 HelpText = settings.HelpText, 2337 Value = settings.Value, 2338 Disabled = settings.Disabled, 2339 Required = settings.Required, 2340 ErrorMessage = settings.ErrorMessage, 2341 CssClass = settings.CssClass, 2342 WrapperCssClass = settings.WrapperCssClass, 2343 OnChange = settings.OnChange, 2344 OnClick = settings.OnClick, 2345 Link = settings.Link, 2346 ExtraAttributes = settings.ExtraAttributes, 2347 // 2348 Placeholder = settings.Placeholder 2349 }; 2350 2351 @Render(textField) 2352 2353 List<string> jsAttributes = new List<string>(); 2354 2355 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'"); 2356 2357 if (!string.IsNullOrEmpty(settings.DateFormat)) 2358 { 2359 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'"); 2360 } 2361 if (!string.IsNullOrEmpty(settings.MinDate)) 2362 { 2363 jsAttributes.Add("minDate: '" + settings.MinDate + "'"); 2364 } 2365 if (!string.IsNullOrEmpty(settings.MaxDate)) 2366 { 2367 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'"); 2368 } 2369 if (settings.IsInline) 2370 { 2371 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower()); 2372 } 2373 if (settings.EnableTime) 2374 { 2375 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower()); 2376 } 2377 if (settings.EnableWeekNumbers) 2378 { 2379 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower()); 2380 } 2381 2382 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value)); 2383 2384 <script> 2385 document.addEventListener("DOMContentLoaded", function () { 2386 flatpickr("#@textField.Id", { 2387 @string.Join(",", jsAttributes) 2388 }); 2389 }); 2390 </script> 2391 } 2392 @using System.Reflection 2393 @using Dynamicweb.Rapido.Blocks.Components.General 2394 @using Dynamicweb.Rapido.Blocks.Components 2395 2396 @* Component *@ 2397 2398 @helper RenderTextField(TextField settings) 2399 { 2400 var attributes = new Dictionary<string, string>(); 2401 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2402 { 2403 settings.Id = Guid.NewGuid().ToString("N"); 2404 } 2405 2406 /*base settings*/ 2407 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2408 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2409 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2410 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2411 if (settings.Required) { attributes.Add("required", "true"); } 2412 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2413 /*end*/ 2414 2415 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 2416 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 2417 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 2418 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 2419 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 2420 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 2421 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower()); 2422 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); }; 2423 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2424 2425 settings.CssClass = "u-full-width " + settings.CssClass; 2426 2427 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2428 2429 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2430 2431 string noMargin = "u-no-margin"; 2432 if (!settings.ReadOnly) { 2433 noMargin = ""; 2434 } 2435 2436 <div class="form__field-group u-full-width @noMargin @settings.WrapperCssClass dw-mod"> 2437 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2438 { 2439 <div class="u-full-width"> 2440 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2441 @if (settings.Link != null) { 2442 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 2443 2444 <div class="u-pull--right"> 2445 @Render(settings.Link) 2446 </div> 2447 } 2448 </div> 2449 2450 } 2451 2452 @if (!string.IsNullOrEmpty(settings.HelpText)) 2453 { 2454 <small class="form__help-text">@settings.HelpText</small> 2455 } 2456 2457 @if (settings.ActionButton != null) 2458 { 2459 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 2460 <div class="form__field-combi u-no-margin dw-mod"> 2461 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2462 @Render(settings.ActionButton) 2463 </div> 2464 } 2465 else 2466 { 2467 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2468 } 2469 2470 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 2471 </div> 2472 } 2473 @using System.Reflection 2474 @using Dynamicweb.Rapido.Blocks.Components.General 2475 @using Dynamicweb.Rapido.Blocks.Components 2476 2477 @* Component *@ 2478 2479 @helper RenderNumberField(NumberField settings) 2480 { 2481 var attributes = new Dictionary<string, string>(); 2482 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2483 { 2484 settings.Id = Guid.NewGuid().ToString("N"); 2485 } 2486 2487 /*base settings*/ 2488 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2489 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2490 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2491 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2492 if (settings.Required) { attributes.Add("required", "true"); } 2493 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2494 /*end*/ 2495 2496 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 2497 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 2498 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 2499 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 2500 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 2501 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); } 2502 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); } 2503 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); } 2504 attributes.Add("type", "number"); 2505 2506 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2507 2508 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 2509 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2510 { 2511 <div class="u-full-width"> 2512 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2513 @if (settings.Link != null) { 2514 <div class="u-pull--right"> 2515 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2516 @RenderLink(settings.Link) 2517 </div> 2518 } 2519 </div> 2520 2521 } 2522 2523 @if (!string.IsNullOrEmpty(settings.HelpText)) 2524 { 2525 <small class="form__help-text">@settings.HelpText</small> 2526 } 2527 2528 @if (settings.ActionButton != null) 2529 { 2530 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 2531 <div class="form__field-combi u-no-margin dw-mod"> 2532 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2533 @RenderButton(settings.ActionButton) 2534 </div> 2535 } 2536 else 2537 { 2538 <div class="form__field-combi u-no-margin dw-mod"> 2539 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2540 </div> 2541 } 2542 2543 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 2544 </div> 2545 } 2546 @using System.Reflection 2547 @using Dynamicweb.Rapido.Blocks.Components.General 2548 @using Dynamicweb.Rapido.Blocks.Components 2549 2550 2551 @* Component *@ 2552 2553 @helper RenderTextareaField(TextareaField settings) 2554 { 2555 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2556 string id = settings.Id; 2557 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id)) 2558 { 2559 id = Guid.NewGuid().ToString("N"); 2560 } 2561 2562 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); } 2563 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2564 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 2565 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 2566 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 2567 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2568 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 2569 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2570 if (settings.Required) { attributes.Add("required", "true"); } 2571 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 2572 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 2573 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); } 2574 attributes.Add("name", settings.Name); 2575 2576 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2577 2578 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 2579 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2580 { 2581 <div class="u-full-width"> 2582 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2583 @if (settings.Link != null) { 2584 <div class="u-pull--right"> 2585 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2586 @Render(settings.Link) 2587 </div> 2588 } 2589 </div> 2590 } 2591 2592 @if (!string.IsNullOrEmpty(settings.HelpText)) 2593 { 2594 <small class="form__help-text">@settings.HelpText</small> 2595 } 2596 2597 <textarea class="u-full-width @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Value</textarea> 2598 2599 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 2600 </div> 2601 } 2602 @using System.Reflection 2603 @using Dynamicweb.Rapido.Blocks.Components.General 2604 @using Dynamicweb.Rapido.Blocks.Components 2605 2606 2607 @* Component *@ 2608 2609 @helper RenderHiddenField(HiddenField settings) { 2610 var attributes = new Dictionary<string, string>(); 2611 attributes.Add("type", "hidden"); 2612 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2613 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2614 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2615 2616 <input @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)/> 2617 } 2618 @using System.Reflection 2619 @using Dynamicweb.Rapido.Blocks.Components.General 2620 @using Dynamicweb.Rapido.Blocks.Components 2621 2622 @* Component *@ 2623 2624 @helper RenderCheckboxField(CheckboxField settings) 2625 { 2626 var attributes = new Dictionary<string, string>(); 2627 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2628 { 2629 settings.Id = Guid.NewGuid().ToString("N"); 2630 } 2631 2632 /*base settings*/ 2633 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2634 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2635 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2636 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2637 if (settings.Required) { attributes.Add("required", "true"); } 2638 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2639 /*end*/ 2640 2641 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2642 2643 attributes.Add("type", "checkbox"); 2644 if (settings.Checked) { attributes.Add("checked", "true"); } 2645 settings.CssClass = "form__control " + settings.CssClass; 2646 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2647 2648 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2649 2650 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 2651 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2652 @if (!string.IsNullOrEmpty(settings.Label)) 2653 { 2654 <label for="@settings.Id" class="dw-mod">@settings.Label</label> 2655 } 2656 2657 @if (settings.Link != null) { 2658 <span> 2659 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2660 @RenderLink(settings.Link) 2661 </span> 2662 } 2663 2664 @if (!string.IsNullOrEmpty(settings.HelpText)) 2665 { 2666 <small class="form__help-text checkbox-help dw-mod">@settings.HelpText</small> 2667 } 2668 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 2669 </div> 2670 } 2671 @using System.Reflection 2672 @using Dynamicweb.Rapido.Blocks.Components.General 2673 @using Dynamicweb.Rapido.Blocks.Components 2674 2675 2676 @* Component *@ 2677 2678 @helper RenderCheckboxListField(CheckboxListField settings) 2679 { 2680 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 2681 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2682 { 2683 <div class="u-full-width"> 2684 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2685 @if (settings.Link != null) { 2686 <div class="u-pull--right"> 2687 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2688 @RenderLink(settings.Link) 2689 </div> 2690 } 2691 </div> 2692 2693 } 2694 2695 <div class="u-pull--left"> 2696 @if (!string.IsNullOrEmpty(settings.HelpText)) 2697 { 2698 <small class="form__help-text">@settings.HelpText</small> 2699 } 2700 2701 @foreach (var item in settings.Options) 2702 { 2703 if (settings.Required) 2704 { 2705 item.Required = true; 2706 } 2707 if (settings.Disabled) 2708 { 2709 item.Disabled = true; 2710 } 2711 if (!string.IsNullOrEmpty(settings.Name)) 2712 { 2713 item.Name = settings.Name; 2714 } 2715 if (!string.IsNullOrEmpty(settings.CssClass)) 2716 { 2717 item.CssClass += settings.CssClass; 2718 } 2719 2720 /* value is not supported */ 2721 2722 if (!string.IsNullOrEmpty(settings.OnClick)) 2723 { 2724 item.OnClick += settings.OnClick; 2725 } 2726 if (!string.IsNullOrEmpty(settings.OnChange)) 2727 { 2728 item.OnChange += settings.OnChange; 2729 } 2730 @Render(item) 2731 } 2732 2733 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 2734 </div> 2735 2736 </div> 2737 } 2738 @using Dynamicweb.Rapido.Blocks.Components.General 2739 2740 @* Component *@ 2741 2742 @helper RenderSearch(Search settings) 2743 { 2744 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? ""; 2745 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? ""; 2746 2747 if (string.IsNullOrEmpty(settings.Id)) 2748 { 2749 settings.Id = Guid.NewGuid().ToString("N"); 2750 } 2751 2752 var resultAttributes = new Dictionary<string, string>(); 2753 2754 if (settings.PageSize != 0) 2755 { 2756 resultAttributes.Add("data-page-size", settings.PageSize.ToString()); 2757 } 2758 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 2759 { 2760 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl); 2761 if (!string.IsNullOrEmpty(groupValue)) 2762 { 2763 resultAttributes.Add("data-selected-group", groupValue); 2764 } 2765 if (!string.IsNullOrEmpty(settings.GroupsParameter)) 2766 { 2767 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter); 2768 } 2769 } 2770 resultAttributes.Add("data-force-init", "true"); 2771 if (settings.GoToFirstSearchResultOnEnter) 2772 { 2773 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower()); 2774 } 2775 if (!string.IsNullOrEmpty(settings.SearchParameter)) 2776 { 2777 resultAttributes.Add("data-search-parameter", settings.SearchParameter); 2778 } 2779 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl); 2780 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId); 2781 2782 if (settings.SecondSearchData != null) 2783 { 2784 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl); 2785 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId); 2786 } 2787 if (!string.IsNullOrEmpty(settings.ResultsPageUrl)) 2788 { 2789 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl); 2790 } 2791 2792 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2793 2794 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : ""; 2795 2796 <div class="search @settings.CssClass @searchFieldCss js-search-data-source dw-mod" id="@settings.Id" @ComponentMethods.AddAttributes(resultAttributes)> 2797 @if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 2798 { 2799 <button type="button" class="search__groups-btn dw-mod js-search-groups-btn">@Translate("All")</button> 2800 <ul class="dropdown dropdown--absolute-position dw-mod search__groups-results js-search-groups-list"></ul> 2801 } 2802 2803 <input type="text" class="search__field dw-mod js-search-field" placeholder="@settings.Placeholder" value="@searchValue"> 2804 2805 <div class="dropdown dropdown--absolute-position search__results dw-mod js-search-results @(settings.SecondSearchData != null ? "search__results--combined" : "")"> 2806 @if (settings.SecondSearchData != null) 2807 { 2808 <div class="search__column search__column--products dw-mod"> 2809 <div class="search__column-header dw-mod">@Translate("Products")</div> 2810 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul> 2811 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 2812 { 2813 @Render(new Link { 2814 Title = Translate("View all"), 2815 CssClass = "js-view-all-button u-margin", 2816 Href = settings.SearchData.ResultsPageUrl 2817 }); 2818 } 2819 </div> 2820 <div class="search__column search__column--pages dw-mod"> 2821 <div class="search__column-header">@Translate("Pages")</div> 2822 <ul class="search__results-list dw-mod js-search-results-second-list" id="@(settings.Id)_SecondResultsList"></ul> 2823 @if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 2824 { 2825 @Render(new Link 2826 { 2827 Title = Translate("View all"), 2828 CssClass = "js-view-all-button u-margin", 2829 Href = settings.SecondSearchData.ResultsPageUrl 2830 }); 2831 } 2832 </div> 2833 } 2834 else 2835 { 2836 <div class="search__column search__column--only dw-mod"> 2837 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul> 2838 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 2839 { 2840 @Render(new Link { 2841 Title = Translate("View all"), 2842 CssClass = "js-view-all-button u-margin", 2843 Href = settings.SearchData.ResultsPageUrl 2844 }); 2845 } 2846 </div> 2847 } 2848 </div> 2849 2850 @if (settings.SearchButton != null) 2851 { 2852 settings.SearchButton.CssClass += " search__btn js-search-btn"; 2853 if (settings.RenderDefaultSearchIcon) 2854 { 2855 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue }; 2856 } 2857 @Render(settings.SearchButton); 2858 } 2859 </div> 2860 } 2861 @using System.Reflection 2862 @using Dynamicweb.Rapido.Blocks.Components.General 2863 @using Dynamicweb.Rapido.Blocks.Components 2864 2865 2866 @* Component *@ 2867 2868 @helper RenderSelectField(SelectField settings) 2869 { 2870 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2871 { 2872 settings.Id = Guid.NewGuid().ToString("N"); 2873 } 2874 2875 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 2876 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 2877 { 2878 <div class="u-full-width"> 2879 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 2880 @if (settings.Link != null) { 2881 <div class="u-pull--right"> 2882 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 2883 @Render(settings.Link) 2884 </div> 2885 } 2886 </div> 2887 } 2888 2889 @if (!string.IsNullOrEmpty(settings.HelpText)) 2890 { 2891 <small class="form__help-text">@settings.HelpText</small> 2892 } 2893 2894 @if (settings.ActionButton != null) 2895 { 2896 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 2897 <div class="form__field-combi u-no-margin dw-mod"> 2898 @RenderSelectBase(settings) 2899 @Render(settings.ActionButton) 2900 </div> 2901 } 2902 else 2903 { 2904 @RenderSelectBase(settings) 2905 } 2906 2907 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 2908 </div> 2909 } 2910 2911 @helper RenderSelectBase(SelectField settings) 2912 { 2913 var attributes = new Dictionary<string, string>(); 2914 2915 /*base settings*/ 2916 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2917 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2918 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2919 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2920 if (settings.Required) { attributes.Add("required", "true"); } 2921 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2922 /*end*/ 2923 2924 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2925 2926 <select @ComponentMethods.AddAttributes(resultAttributes) class="u-full-width @settings.CssClass dw-mod"> 2927 @if (settings.Default != null) 2928 { 2929 @Render(settings.Default) 2930 } 2931 2932 @foreach (var item in settings.Options) 2933 { 2934 if (settings.Value != null) { 2935 item.Checked = item.Value == settings.Value; 2936 } 2937 @Render(item) 2938 } 2939 </select> 2940 } 2941 @using System.Reflection 2942 @using Dynamicweb.Rapido.Blocks.Components.General 2943 @using Dynamicweb.Rapido.Blocks.Components 2944 2945 @* Component *@ 2946 2947 @helper RenderRadioButtonField(RadioButtonField settings) 2948 { 2949 var attributes = new Dictionary<string, string>(); 2950 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2951 { 2952 settings.Id = Guid.NewGuid().ToString("N"); 2953 } 2954 2955 /*base settings*/ 2956 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2957 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2958 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2959 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2960 if (settings.Required) { attributes.Add("required", "true"); } 2961 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2962 /*end*/ 2963 2964 attributes.Add("type", "radio"); 2965 if (settings.Checked) { attributes.Add("checked", "true"); } 2966 settings.CssClass = "form__control " + settings.CssClass; 2967 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2968 2969 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2970 2971 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 2972 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 2973 @if (!string.IsNullOrEmpty(settings.Label)) 2974 { 2975 <label for="@settings.Id" class="dw-mod">@settings.Label</label> 2976 } 2977 @if (!string.IsNullOrEmpty(settings.HelpText)) 2978 { 2979 <small class="form__help-text">@settings.HelpText</small> 2980 } 2981 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 2982 </div> 2983 } 2984 @using System.Reflection 2985 @using Dynamicweb.Rapido.Blocks.Components.General 2986 @using Dynamicweb.Rapido.Blocks.Components 2987 2988 2989 @* Component *@ 2990 2991 @helper RenderRadioButtonListField(RadioButtonListField settings) 2992 { 2993 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2994 2995 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 2996 @if (!string.IsNullOrEmpty(settings.Label)) 2997 { 2998 <label>@settings.Label</label> 2999 } 3000 @if (!string.IsNullOrEmpty(settings.HelpText)) 3001 { 3002 <small class="form__help-text">@settings.HelpText</small> 3003 } 3004 3005 @foreach (var item in settings.Options) 3006 { 3007 if (settings.Required) 3008 { 3009 item.Required = true; 3010 } 3011 if (settings.Disabled) 3012 { 3013 item.Disabled = true; 3014 } 3015 if (!string.IsNullOrEmpty(settings.Name)) 3016 { 3017 item.Name = settings.Name; 3018 } 3019 if (settings.Value != null && settings.Value == item.Value) 3020 { 3021 item.Checked = true; 3022 } 3023 if (!string.IsNullOrEmpty(settings.OnClick)) 3024 { 3025 item.OnClick += settings.OnClick; 3026 } 3027 if (!string.IsNullOrEmpty(settings.OnChange)) 3028 { 3029 item.OnChange += settings.OnChange; 3030 } 3031 if (!string.IsNullOrEmpty(settings.CssClass)) 3032 { 3033 item.CssClass += settings.CssClass; 3034 } 3035 @Render(item) 3036 } 3037 3038 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 3039 </div> 3040 } 3041 @using System.Reflection 3042 @using Dynamicweb.Rapido.Blocks.Components.General 3043 @using Dynamicweb.Rapido.Blocks.Components 3044 3045 3046 @* Component *@ 3047 3048 @helper RenderNotificationMessage(NotificationMessage settings) 3049 { 3050 if (!string.IsNullOrEmpty(settings.Message)) 3051 { 3052 var attributes = new Dictionary<string, string>(); 3053 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3054 3055 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower(); 3056 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower(); 3057 string minHeightClass = settings.Icon != null ? "u-min-h70px" : ""; 3058 3059 <div class="notification-message-@messageTypeClass notification-message-@messageLayoutClass @messageLayoutClass @minHeightClass @settings.CssClass u-full-width dw-mod" @ComponentMethods.AddAttributes(attributes)> 3060 @if (settings.Icon != null) { 3061 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message; 3062 @Render(settings.Icon) 3063 } else { 3064 @settings.Message 3065 } 3066 </div> 3067 } 3068 } 3069 @using Dynamicweb.Rapido.Blocks.Components.General 3070 3071 3072 @* Component *@ 3073 3074 @helper RenderHandlebarsRoot(HandlebarsRoot settings) { 3075 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : ""; 3076 3077 <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> 3078 @if (settings.SubBlocks != null) { 3079 @RenderBlockList(settings.SubBlocks) 3080 } 3081 </div> 3082 } 3083 @*Include("General/Sticker.cshtml")*@ 3084 @using System.Reflection 3085 @using Dynamicweb.Rapido.Blocks.Components.General 3086 @using Dynamicweb.Rapido.Blocks.Components 3087 3088 3089 @* Component *@ 3090 3091 @helper RenderStickersCollection(StickersCollection settings) 3092 { 3093 @*if (settings.Stickers.Count > 0) 3094 { 3095 string position = "stickers-container--" + Regex.Replace(settings.Position.ToString(), "([a-z])([A-Z])", "$1-$2").ToLower(); 3096 3097 <div class="stickers-container @position @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 3098 @foreach (Sticker sticker in settings.Stickers) 3099 { 3100 @Render(sticker) 3101 } 3102 </div> 3103 }*@ 3104 } 3105 3106 @using Dynamicweb.Rapido.Blocks.Components.General 3107 3108 3109 @* Component *@ 3110 3111 @helper RenderForm(Form settings) { 3112 if (settings != null) 3113 { 3114 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 3115 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); }; 3116 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); }; 3117 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); }; 3118 var enctypes = new Dictionary<string, string> 3119 { 3120 { "multipart", "multipart/form-data" }, 3121 { "text", "text/plain" }, 3122 { "application", "application/x-www-form-urlencoded" } 3123 }; 3124 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); }; 3125 optionalAttributes.Add("method", settings.Method.ToString()); 3126 3127 if (!string.IsNullOrEmpty(settings.FormStartMarkup)) 3128 { 3129 @settings.FormStartMarkup 3130 } 3131 else 3132 { 3133 @:<form class="@settings.CssClass u-no-margin dw-mod" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 3134 } 3135 3136 foreach (var field in settings.GetFields()) 3137 { 3138 @Render(field) 3139 } 3140 3141 @:</form> 3142 } 3143 } 3144 @using System.Reflection 3145 @using Dynamicweb.Rapido.Blocks.Components.General 3146 @using Dynamicweb.Rapido.Blocks.Components 3147 3148 3149 @* Component *@ 3150 3151 @helper RenderText(Text settings) 3152 { 3153 @settings.Content 3154 } 3155 @using System.Reflection 3156 @using Dynamicweb.Rapido.Blocks.Components.General 3157 @using Dynamicweb.Rapido.Blocks.Components 3158 3159 3160 @* Component *@ 3161 3162 @helper RenderContentModule(ContentModule settings) { 3163 if (!string.IsNullOrEmpty(settings.Content)) 3164 { 3165 @settings.Content 3166 } 3167 } 3168 @using System.Reflection 3169 @using Dynamicweb.Rapido.Blocks.Components.General 3170 @using Dynamicweb.Rapido.Blocks.Components 3171 3172 3173 @* Component *@ 3174 3175 @helper RenderModal(Modal settings) { 3176 if (settings != null) 3177 { 3178 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 3179 3180 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : ""; 3181 3182 <input type="checkbox" id="@(modalId)ModalTrigger" class="modal-trigger" @onchange /> 3183 3184 <div class="modal-container"> 3185 @if (!settings.DisableDarkOverlay) 3186 { 3187 <label for="@(modalId)ModalTrigger" id="@(modalId)ModalOverlay" class="modal-overlay"></label> 3188 } 3189 <div class="modal modal--@settings.Width.ToString().ToLower() modal-height--@settings.Height.ToString().ToLower()" id="@(modalId)Modal"> 3190 @if (settings.Heading != null) 3191 { 3192 if (!string.IsNullOrEmpty(settings.Heading.Title)) 3193 { 3194 <div class="modal__header"> 3195 @Render(settings.Heading) 3196 </div> 3197 } 3198 } 3199 <div class="modal__body @(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "")"> 3200 @if (!string.IsNullOrEmpty(settings.BodyText)) 3201 { 3202 @settings.BodyText 3203 } 3204 @if (settings.BodyTemplate != null) 3205 { 3206 @settings.BodyTemplate 3207 } 3208 @{ 3209 var actions = settings.GetActions(); 3210 } 3211 </div> 3212 @if (actions.Length > 0) 3213 { 3214 <div class="modal__footer"> 3215 @foreach (var action in actions) 3216 { 3217 if (Pageview.Device.ToString() != "Mobile") { 3218 action.CssClass += " u-no-margin"; 3219 } else { 3220 action.CssClass += " u-full-width u-margin-bottom"; 3221 } 3222 3223 @Render(action) 3224 } 3225 </div> 3226 } 3227 <label class="modal__close-btn" for="@(modalId)ModalTrigger"></label> 3228 </div> 3229 </div> 3230 } 3231 } 3232 @using Dynamicweb.Rapido.Blocks.Components.General 3233 3234 @* Component *@ 3235 3236 @helper RenderMediaListItem(MediaListItem settings) 3237 { 3238 <div class="media-list-item @settings.CssClass dw-mod" @(!string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : "")> 3239 @if (!string.IsNullOrEmpty(settings.Label)) 3240 { 3241 if (!string.IsNullOrEmpty(settings.Link)) 3242 { 3243 @Render(new Link 3244 { 3245 Href = settings.Link, 3246 CssClass = "media-list-item__sticker dw-mod", 3247 ButtonLayout = ButtonLayout.None, 3248 Title = settings.Label, 3249 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 3250 }) 3251 } 3252 else if (!string.IsNullOrEmpty(settings.OnClick)) 3253 { 3254 <span class="media-list-item__sticker dw-mod" onclick="@(settings.OnClick)"> 3255 <span class="u-uppercase">@settings.Label</span> 3256 </span> 3257 } 3258 else 3259 { 3260 <span class="media-list-item__sticker media-list-item__sticker--no-link dw-mod"> 3261 <span class="u-uppercase">@settings.Label</span> 3262 </span> 3263 } 3264 } 3265 <div class="media-list-item__wrap"> 3266 <div class="media-list-item__info dw-mod"> 3267 <div class="media-list-item__header dw-mod"> 3268 @if (!string.IsNullOrEmpty(settings.Title)) 3269 { 3270 if (!string.IsNullOrEmpty(settings.Link)) 3271 { 3272 @Render(new Link 3273 { 3274 Href = settings.Link, 3275 CssClass = "media-list-item__name dw-mod", 3276 ButtonLayout = ButtonLayout.None, 3277 Title = settings.Title, 3278 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 3279 }) 3280 } 3281 else if (!string.IsNullOrEmpty(settings.OnClick)) 3282 { 3283 <span class="media-list-item__name dw-mod" onclick="@(settings.OnClick)">@settings.Title</span> 3284 } 3285 else 3286 { 3287 <span class="media-list-item__name media-list-item__name--no-link dw-mod">@settings.Title</span> 3288 } 3289 } 3290 3291 @if (!string.IsNullOrEmpty(settings.Status)) 3292 { 3293 <div class="media-list-item__state dw-mod">@settings.Status</div> 3294 } 3295 </div> 3296 @{ 3297 settings.InfoTable.CssClass += " media-list-item__parameters-table"; 3298 } 3299 3300 @Render(settings.InfoTable) 3301 </div> 3302 <div class="media-list-item__actions dw-mod"> 3303 <div class="media-list-item__actions-list dw-mod"> 3304 @{ 3305 var actions = settings.GetActions(); 3306 3307 foreach (ButtonBase action in actions) 3308 { 3309 action.ButtonLayout = ButtonLayout.None; 3310 action.CssClass += " media-list-item__action link"; 3311 3312 @Render(action) 3313 } 3314 } 3315 </div> 3316 3317 @if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title)) 3318 { 3319 settings.SelectButton.CssClass += " u-no-margin"; 3320 3321 <div class="media-list-item__action-button"> 3322 @Render(settings.SelectButton) 3323 </div> 3324 } 3325 </div> 3326 </div> 3327 </div> 3328 } 3329 @using Dynamicweb.Rapido.Blocks.Components.General 3330 @using Dynamicweb.Rapido.Blocks.Components 3331 3332 @helper RenderTable(Table settings) 3333 { 3334 Dictionary<string, string> attributes = new Dictionary<string, string>(); 3335 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3336 3337 var enumToClasses = new Dictionary<TableDesign, string> 3338 { 3339 { TableDesign.Clean, "table--clean" }, 3340 { TableDesign.Bordered, "table--bordered" }, 3341 { TableDesign.Striped, "table--striped" }, 3342 { TableDesign.Hover, "table--hover" }, 3343 { TableDesign.Compact, "table--compact" }, 3344 { TableDesign.Condensed, "table--condensed" }, 3345 { TableDesign.NoTopBorder, "table--no-top-border" } 3346 }; 3347 string tableDesignClass = ""; 3348 if (settings.Design != TableDesign.None) 3349 { 3350 tableDesignClass = enumToClasses[settings.Design]; 3351 } 3352 3353 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); } 3354 3355 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 3356 3357 <table @ComponentMethods.AddAttributes(resultAttributes)> 3358 @if (settings.Header != null) 3359 { 3360 <thead> 3361 @Render(settings.Header) 3362 </thead> 3363 } 3364 <tbody> 3365 @foreach (var row in settings.Rows) 3366 { 3367 @Render(row) 3368 } 3369 </tbody> 3370 @if (settings.Footer != null) 3371 { 3372 <tfoot> 3373 @Render(settings.Footer) 3374 </tfoot> 3375 } 3376 </table> 3377 } 3378 @using Dynamicweb.Rapido.Blocks.Components.General 3379 @using Dynamicweb.Rapido.Blocks.Components 3380 3381 @helper RenderTableRow(TableRow settings) 3382 { 3383 Dictionary<string, string> attributes = new Dictionary<string, string>(); 3384 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3385 3386 var enumToClasses = new Dictionary<TableRowDesign, string> 3387 { 3388 { TableRowDesign.NoBorder, "table__row--no-border" }, 3389 { TableRowDesign.Border, "table__row--border" }, 3390 { TableRowDesign.TopBorder, "table__row--top-line" }, 3391 { TableRowDesign.BottomBorder, "table__row--bottom-line" }, 3392 { TableRowDesign.Solid, "table__row--solid" } 3393 }; 3394 3395 string tableRowDesignClass = ""; 3396 if (settings.Design != TableRowDesign.None) 3397 { 3398 tableRowDesignClass = enumToClasses[settings.Design]; 3399 } 3400 3401 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); } 3402 3403 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 3404 3405 <tr @ComponentMethods.AddAttributes(resultAttributes)> 3406 @foreach (var cell in settings.Cells) 3407 { 3408 if (settings.IsHeaderRow) 3409 { 3410 cell.IsHeader = true; 3411 } 3412 @Render(cell) 3413 } 3414 </tr> 3415 } 3416 @using Dynamicweb.Rapido.Blocks.Components.General 3417 @using Dynamicweb.Rapido.Blocks.Components 3418 @using Dynamicweb.Core 3419 3420 @helper RenderTableCell(TableCell settings) 3421 { 3422 Dictionary<string, string> attributes = new Dictionary<string, string>(); 3423 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3424 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); } 3425 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); } 3426 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); } 3427 3428 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 3429 3430 string tagName = settings.IsHeader ? "th" : "td"; 3431 3432 @("<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">") 3433 @settings.Content 3434 @("</" + tagName + ">"); 3435 } 3436 @using System.Linq 3437 @using Dynamicweb.Rapido.Blocks.Components.General 3438 3439 @* Component *@ 3440 3441 @helper RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings) 3442 { 3443 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter 3444 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring 3445 3446 if (settings.NumberOfPages > 1) 3447 { 3448 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx"; 3449 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation"); 3450 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings); 3451 3452 <div class="pager u-margin-top dw-mod @settings.CssClass" aria-label="@ariaLabel"> 3453 @if (settings.ShowPagingInfo) 3454 { 3455 <div class="pager__info dw-mod"> 3456 @Translate("Page") @settings.CurrentPageNumber @Translate("of") @settings.NumberOfPages 3457 </div> 3458 } 3459 <ul class="pager__list dw-mod"> 3460 @if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 3461 { 3462 @Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon }) 3463 } 3464 @if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 3465 { 3466 @Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon }) 3467 } 3468 @if (settings.GetPages().Any()) 3469 { 3470 foreach (var page in settings.GetPages()) 3471 { 3472 @Render(page) 3473 } 3474 } 3475 else 3476 { 3477 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++) 3478 { 3479 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString()); 3480 @Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) }); 3481 } 3482 } 3483 @if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 3484 { 3485 @Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon }) 3486 } 3487 @if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 3488 { 3489 @Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon }) 3490 } 3491 </ul> 3492 </div> 3493 } 3494 } 3495 3496 @helper RenderPaginationItem(PaginationItem settings) 3497 { 3498 if (settings.Icon == null) 3499 { 3500 settings.Icon = new Icon(); 3501 } 3502 3503 settings.Icon.Label = settings.Label; 3504 <li class="pager__btn dw-mod"> 3505 @if (settings.IsActive) 3506 { 3507 <span class="pager__num pager__num--current dw-mod"> 3508 @Render(settings.Icon) 3509 </span> 3510 } 3511 else 3512 { 3513 <a href="@settings.Link" class="pager__num dw-mod text-decoration-none"> 3514 @Render(settings.Icon) 3515 </a> 3516 } 3517 </li> 3518 } 3519 3520 3521 @*Include("Custom/Custom__Components.cshtml")*@ 3522 @using Dynamicweb.Frontend 3523 @using System.Reflection 3524 @using Dynamicweb.Content.Items 3525 @using System.Web.UI.HtmlControls 3526 @using Dynamicweb.Rapido.Blocks.Components 3527 @using Dynamicweb.Rapido.Blocks 3528 3529 3530 @* Components for the articles *@ 3531 @using System.Reflection 3532 @using Dynamicweb.Rapido.Blocks.Components.Articles 3533 3534 @* Component for the articles *@ 3535 3536 @helper RenderArticleBanner(dynamic settings) { 3537 dynamic[] methodParameters = new dynamic[1]; 3538 methodParameters[0] = settings; 3539 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerCustom"); 3540 3541 if (customMethod != null) 3542 { 3543 @customMethod.Invoke(this, methodParameters).ToString(); 3544 } else { 3545 settings.Layout = ArticleHeaderLayout.Banner; 3546 3547 if (settings.Image != null) 3548 { 3549 if (settings.Image.Path != null) 3550 { 3551 <div class="section__container container--wide"> 3552 <div class="section__content"> 3553 <div class="article-detail-hero"> 3554 <div class="article-detail-hero__content"> 3555 <div class="block-container flex-wrap align-items-center h-100" style="max-width: 100rem;"> 3556 <div class="c0 p-5 article-detail-hero__backdrop"> 3557 @if (!String.IsNullOrEmpty(settings.Heading)) 3558 { 3559 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1> 3560 } 3561 @if (!String.IsNullOrEmpty(settings.Subheading)) 3562 { 3563 <div class="article-detail__subtitle h3 weight-normal mb-2">@settings.Subheading</div> 3564 } 3565 @* @if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) *@ 3566 @* { *@ 3567 @* DateTime date = Convert.ToDateTime(settings.Date); *@ 3568 @* var dateFormatted = date.ToString("dd/MM/yyyy"); *@ 3569 @* <div class="article-detail__info mb-2"><span>@settings.Author @dateFormatted</span></div> *@ 3570 @* } *@ 3571 @if (!String.IsNullOrEmpty(settings.Link)) 3572 { 3573 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}) 3574 } 3575 @if (settings.ExternalParagraphId != 0) 3576 { 3577 @RenderParagraphContent(settings.ExternalParagraphId) 3578 } 3579 </div> 3580 </div> 3581 </div> 3582 <div class="article-detail-hero__image"> 3583 <img src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" class="object-fit-cover h-100 block w-100 lazyload"/> 3584 </div> 3585 </div> 3586 </div> 3587 </div> 3588 } 3589 else 3590 { 3591 settings.Layout = ArticleHeaderLayout.Clean; 3592 @RenderArticleCleanHeader(settings); 3593 } 3594 } 3595 else 3596 { 3597 settings.Layout = ArticleHeaderLayout.Clean; 3598 @RenderArticleCleanHeader(settings); 3599 } 3600 } 3601 } 3602 @using System.Reflection 3603 @using Dynamicweb.Rapido.Blocks.Components 3604 @using Dynamicweb.Rapido.Blocks.Components.General 3605 @using Dynamicweb.Rapido.Blocks.Components.Articles 3606 @using Dynamicweb.Rapido.Blocks 3607 @using Df.Dw 3608 3609 3610 @* Component for the articles *@ 3611 3612 @helper RenderTitle(){ 3613 <h2 class="h1 letter-spacing mb-2">@Pageview.Item["Title"].ToString()</h2> 3614 } 3615 3616 @helper RenderArticleHeader(ArticleHeader settings) { 3617 dynamic[] methodParameters = new dynamic[1]; 3618 methodParameters[0] = settings; 3619 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleHeaderCustom"); 3620 3621 if (customMethod != null) 3622 { 3623 @customMethod.Invoke(this, methodParameters).ToString(); 3624 } else { 3625 switch (settings.Layout) 3626 { 3627 case ArticleHeaderLayout.Clean: 3628 @RenderArticleCleanHeader(settings); 3629 break; 3630 case ArticleHeaderLayout.Split: 3631 @RenderArticleSplitHeader(settings); 3632 break; 3633 case ArticleHeaderLayout.Banner: 3634 @RenderArticleBannerHeader(settings); 3635 break; 3636 case ArticleHeaderLayout.Overlay: 3637 @RenderArticleOverlayHeader(settings); 3638 break; 3639 default: 3640 @RenderArticleCleanHeader(settings); 3641 break; 3642 } 3643 } 3644 } 3645 3646 @helper RenderArticleCleanHeader(ArticleHeader settings) { 3647 dynamic[] methodParameters = new dynamic[1]; 3648 methodParameters[0] = settings; 3649 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleCleanHeaderCustom"); 3650 <div class="section__container container"> 3651 <div class="section__content"> 3652 @if (customMethod != null) 3653 { 3654 @customMethod.Invoke(this, methodParameters).ToString(); 3655 } 3656 else 3657 { 3658 if (settings.Category.HasValue() || settings.Author.HasValue() || settings.Date.HasValue() || settings.RatingOutOf != 0) 3659 { 3660 if (settings.Category.HasValue()) 3661 { 3662 <div class="article-detail__category" style="color: @settings.CategoryColor">@settings.Category</div> 3663 } 3664 3665 if (settings.Author.HasValue() || settings.Date.HasValue()) 3666 { 3667 <small class="article-detail__info mb-2">@settings.Author @settings.Date</small> 3668 } 3669 if (settings.RatingOutOf != 0) 3670 { 3671 @RenderRating(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf }) 3672 } 3673 } 3674 if (settings.Heading.HasValue()) 3675 { 3676 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1> 3677 } 3678 3679 if (settings.Image != null) 3680 { 3681 if (settings.Image.Path != null) 3682 { 3683 <div class="article-detail__image mb-2"> 3684 <img class="lazyload w-100" width="1920" height="1080" src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" /> 3685 </div> 3686 } 3687 } 3688 3689 if (settings.Subheading.HasValue()) 3690 { 3691 <h3 class="article-detail__subtitle h3 weight-normal mb-2 color-muted hidden">@settings.Subheading</h3> 3692 } 3693 if (settings.Link.HasValue()) 3694 { 3695 <div class="article-detail__button"> 3696 @RenderButton(new Button { Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout }) 3697 </div> 3698 } 3699 3700 if (settings.ExternalParagraphId != 0) 3701 { 3702 @RenderParagraphContent(settings.ExternalParagraphId) 3703 } 3704 } 3705 </div> 3706 </div> 3707 } 3708 3709 @helper RenderArticleSplitHeader(ArticleHeader settings) { 3710 dynamic[] methodParameters = new dynamic[1]; 3711 methodParameters[0] = settings; 3712 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSplitHeaderCustom"); 3713 3714 if (customMethod != null) 3715 { 3716 @customMethod.Invoke(this, methodParameters).ToString(); 3717 } 3718 else 3719 { 3720 if (settings.Image != null) 3721 { 3722 if (settings.Image.Path != null) 3723 { 3724 <div class="grid-xs-2 bg-neutral"> 3725 <div class="article-detail__header__split mb-2 mb-xs-0 px-2 flex-wrap align-items-center"> 3726 <div class="c0"> 3727 @if (settings.Category.HasValue()) 3728 { 3729 <div class="article-detail__category" style="color: @settings.CategoryColor">@settings.Category</div> 3730 } 3731 @if (settings.Heading.HasValue()) 3732 { 3733 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1> 3734 } 3735 @if (settings.Subheading.HasValue()) 3736 { 3737 <h3 class="article-detail__subtitle h3 weight-normal mb-2 color-muted">@settings.Subheading</h3> 3738 } 3739 @if (settings.Author.HasValue() || settings.Date.HasValue()) 3740 { 3741 <small class="article-detail__info mb-2">@settings.Author @settings.Date</small> 3742 } 3743 @if (settings.RatingOutOf != 0) 3744 { 3745 @RenderRating(new Rating {Score = settings.RatingScore, OutOf = settings.RatingOutOf}) 3746 } 3747 @if (settings.Link.HasValue()) 3748 { 3749 <div class="article-detail__button"> 3750 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}) 3751 </div> 3752 } 3753 </div> 3754 </div> 3755 3756 <div class="article-detail__image mb-2 mb-xs-0"> 3757 <img src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path"/> 3758 </div> 3759 </div> 3760 if (settings.ExternalParagraphId != 0) 3761 { 3762 @RenderParagraphContent(settings.ExternalParagraphId) 3763 } 3764 } 3765 } 3766 else 3767 { 3768 @RenderArticleCleanHeader(settings); 3769 } 3770 } 3771 } 3772 3773 @helper RenderArticleOverlayHeader(ArticleHeader settings) { 3774 dynamic[] methodParameters = new dynamic[1]; 3775 methodParameters[0] = settings; 3776 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleOverlayHeaderCustom"); 3777 3778 if (customMethod != null) 3779 { 3780 @customMethod.Invoke(this, methodParameters).ToString(); 3781 } 3782 else 3783 { 3784 if (settings.Image != null) 3785 { 3786 if (settings.Image.Path != null) 3787 { 3788 if (settings.ExternalParagraphId == 0) 3789 { 3790 <div class="section__container container--wide"> 3791 <div class="section__content"> 3792 <div class="article-detail-hero"> 3793 <div class="article-detail-hero__content"> 3794 <div class="block-container flex-wrap align-items-top h-100"> 3795 <div class="c0 mt-4"> 3796 @if (!String.IsNullOrEmpty(settings.Heading)) 3797 { 3798 <h1 class="article-detail__title h1 mb-2">@settings.Heading</h1> 3799 } 3800 @if (!String.IsNullOrEmpty(settings.Subheading)) 3801 { 3802 <div class="article-detail__subtitle h3 weight-normal mb-2">@settings.Subheading</div> 3803 } 3804 @if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) 3805 { 3806 <div class="article-detail__info mb-2">@settings.Author @settings.Date</div> 3807 } 3808 @if (!String.IsNullOrEmpty(settings.Link)) 3809 { 3810 <div class="article-detail__button"> 3811 @RenderButton(new Button {Link = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout}) 3812 </div> 3813 } 3814 @if (settings.ExternalParagraphId != 0) 3815 { 3816 @RenderParagraphContent(settings.ExternalParagraphId) 3817 } 3818 </div> 3819 </div> 3820 </div> 3821 <div class="article-detail-hero__image"> 3822 <img src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=20&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" data-src="/Admin/Public/GetImage.ashx?Width=1920&amp;Height=1080&amp;Crop=5&amp;Compression=95&amp;DoNotUpscale=True&amp;FillCanvas=False&amp;Image=@settings.Image.Path" class="object-fit-cover h-100 block w-100 lazyload"/> 3823 </div> 3824 </div> 3825 </div> 3826 </div> 3827 } 3828 else 3829 { 3830 @RenderArticleBanner(settings); 3831 } 3832 } 3833 } 3834 else 3835 { 3836 @RenderArticleCleanHeader(settings); 3837 } 3838 } 3839 } 3840 3841 @helper RenderArticleBannerHeader(dynamic settings) { 3842 dynamic[] methodParameters = new dynamic[1]; 3843 methodParameters[0] = settings; 3844 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerHeaderCustom"); 3845 3846 if (customMethod != null) 3847 { 3848 @customMethod.Invoke(this, methodParameters).ToString(); 3849 } 3850 else 3851 { 3852 @RenderArticleBanner(settings); 3853 } 3854 } 3855 @using System.Reflection 3856 @using System.Text.RegularExpressions; 3857 @using Dynamicweb.Frontend 3858 @using Dynamicweb.Content.Items 3859 @using Dynamicweb.Rapido.Blocks.Components 3860 @using Dynamicweb.Rapido.Blocks.Components.Articles 3861 @using Dynamicweb.Rapido.Blocks 3862 3863 @* Component for the articles *@ 3864 3865 @helper RenderArticleBodyRow(ArticleBodyRow settings) 3866 { 3867 dynamic[] methodParameters = new dynamic[1]; 3868 methodParameters[0] = settings; 3869 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBodyRowCustom"); 3870 3871 if (customMethod != null) 3872 { 3873 @customMethod.Invoke(this, methodParameters).ToString(); 3874 } else { 3875 @RenderBlockList(settings.SubBlocks) 3876 } 3877 } 3878 @using System.Reflection 3879 @using Dynamicweb.Rapido.Blocks.Components 3880 @using Dynamicweb.Rapido.Blocks.Components.General 3881 @using Dynamicweb.Rapido.Blocks.Components.Articles 3882 @using Dynamicweb.Rapido.Blocks 3883 3884 @* Component for the articles *@ 3885 3886 @helper RenderArticleImage(ArticleImage settings) 3887 { 3888 dynamic[] methodParameters = new dynamic[1]; 3889 methodParameters[0] = settings; 3890 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleImageCustom"); 3891 3892 if (customMethod != null) 3893 { 3894 @customMethod.Invoke(this, methodParameters).ToString(); 3895 } 3896 else 3897 { 3898 if (settings.Image != null) 3899 { 3900 if (settings.Image.Path != null) 3901 { 3902 <img data-src="/Admin/Public/GetImage.ashx?Width=1000&amp;Height=1000&amp;Crop=5&amp;Format=jpg&amp;Resolution=72&amp;Image=@settings.Image.Path" class="w-100 h-auto block lazyload" src="/Admin/Public/GetImage.ashx?Width=1000&amp;Height=1000&amp;Crop=5&amp;Format=jpg&amp;Resolution=20&amp;Image=@settings.Image.Path"> 3903 } 3904 } 3905 } 3906 } 3907 @using System.Reflection 3908 @using Dynamicweb.Rapido.Blocks.Components 3909 @using Dynamicweb.Rapido.Blocks.Components.Articles 3910 3911 3912 @* Component for the articles *@ 3913 3914 @helper RenderArticleSubHeader(ArticleSubHeader settings) 3915 { 3916 dynamic[] methodParameters = new dynamic[1]; 3917 methodParameters[0] = settings; 3918 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSubHeaderCustom"); 3919 3920 if (customMethod != null) 3921 { 3922 @customMethod.Invoke(this, methodParameters).ToString(); 3923 } else { 3924 if (!String.IsNullOrEmpty(settings.Title)) 3925 { 3926 <div class="section__container container--narrow"> 3927 <div class="section__content"> 3928 <h2 class="article-detail__header h3">@settings.Title</h2> 3929 </div> 3930 </div> 3931 } 3932 } 3933 } 3934 @using System.Reflection 3935 @using Df.Dw 3936 @using Dynamicweb.Rapido.Blocks.Components 3937 @using Dynamicweb.Rapido.Blocks.Components.Articles 3938 @using Dynamicweb.Rapido.Blocks 3939 3940 3941 @* Component for the articles *@ 3942 3943 @helper RenderArticleText(ArticleText settings) 3944 { 3945 dynamic[] methodParameters = new dynamic[1]; 3946 methodParameters[0] = settings; 3947 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom"); 3948 3949 if (customMethod != null) 3950 { 3951 @customMethod.Invoke(this, methodParameters).ToString(); 3952 } else { 3953 if (settings.Text.HasValue()) 3954 { 3955 <div class="section__container container--narrow mt-2 mb-3"> 3956 <div class="section__content"> 3957 <div class="article-detail__content font-size-20">@settings.Text</div> 3958 </div> 3959 </div> 3960 3961 } 3962 } 3963 } 3964 @using System.Reflection 3965 @using Dynamicweb.Rapido.Blocks.Components 3966 @using Dynamicweb.Rapido.Blocks.Components.Articles 3967 @using Dynamicweb.Rapido.Blocks 3968 3969 3970 @* Component for the articles *@ 3971 3972 @helper RenderArticleQuote(ArticleQuote settings) 3973 { 3974 dynamic[] methodParameters = new dynamic[1]; 3975 methodParameters[0] = settings; 3976 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleQuoteCustom"); 3977 3978 if (customMethod != null) 3979 { 3980 @customMethod.Invoke(this, methodParameters).ToString(); 3981 } else { 3982 string text = Regex.Replace(settings.Text, "<.*?>", String.Empty); 3983 3984 <div class="section__container container--narrow"> 3985 <div class="section__content"> 3986 @if (settings.Image != null) 3987 { 3988 if (settings.Image.Path != null) 3989 { 3990 <div class="grid__col-3"> 3991 <div class="grid__cell-img"> 3992 @{ 3993 settings.Image.Title = !String.IsNullOrEmpty(settings.Image.Title) ? settings.Image.Title : settings.Author; 3994 settings.Image.CssClass += " article__image article__image--ball"; 3995 settings.Image.ImageDefault.Width = 200; 3996 settings.Image.ImageDefault.Height = 200; 3997 } 3998 @RenderImage(settings.Image) 3999 </div> 4000 </div> 4001 } 4002 } 4003 <div class="bg-neutral h4 my-5 p-5 article-detail__quote relative overflow-hidden"> 4004 @if (!String.IsNullOrEmpty(settings.Text)) 4005 { 4006 <div class="ico quote--start"> 4007 <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> 4008 </div> 4009 <div class="ico quote--end"> 4010 <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> 4011 </div> 4012 <div class="article-detail__quote__content relative"> 4013 @settings.Text 4014 </div> 4015 4016 } 4017 @if (!String.IsNullOrEmpty(settings.Author)) 4018 { 4019 <div class="article__quote-author dw-mod"> 4020 - @settings.Author 4021 </div> 4022 } 4023 </div> 4024 </div> 4025 </div> 4026 } 4027 } 4028 @using System.Reflection 4029 @using Dynamicweb.Rapido.Blocks.Components 4030 @using Dynamicweb.Rapido.Blocks.Components.Articles 4031 @using Dynamicweb.Rapido.Blocks 4032 4033 @* Component for the articles *@ 4034 4035 @helper RenderArticleInfoTable(ArticleInfoTable settings) 4036 { 4037 dynamic[] methodParameters = new dynamic[1]; 4038 methodParameters[0] = settings; 4039 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleInfoTableCustom"); 4040 4041 if (customMethod != null) 4042 { 4043 @customMethod.Invoke(this, methodParameters).ToString(); 4044 } else { 4045 <div class="grid-md-2"> 4046 @foreach (var row in settings.Rows) 4047 { 4048 string iconColor = row.IconColor != null ? row.IconColor : "u-brand-color-two"; 4049 4050 if (!String.IsNullOrEmpty(row.Icon)) 4051 { 4052 <div><i class="@row.Icon fa-2x @row.IconColor"></i></div> 4053 } 4054 <div> 4055 <div>@row.Title</div> 4056 @if (!String.IsNullOrEmpty(row.SubTitle)) 4057 { 4058 if (row.Link == null) 4059 { 4060 <div>@row.SubTitle</div> 4061 } 4062 else 4063 { 4064 <a href="@row.Link" class="u-color-inherit">@row.SubTitle</a> 4065 } 4066 } 4067 </div> 4068 } 4069 </div> 4070 } 4071 } 4072 @using System.Reflection 4073 @using Dynamicweb.Rapido.Blocks.Components 4074 @using Dynamicweb.Rapido.Blocks.Components.Articles 4075 @using Dynamicweb.Rapido.Blocks 4076 4077 @* Component for the articles *@ 4078 4079 @helper RenderArticleGalleryModal(ArticleGalleryModal settings) 4080 { 4081 dynamic[] methodParameters = new dynamic[1]; 4082 methodParameters[0] = settings; 4083 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom"); 4084 4085 if (customMethod != null) 4086 { 4087 @customMethod.Invoke(this, methodParameters).ToString(); 4088 } 4089 else 4090 { 4091 <input type="checkbox" id="ParagraphGalleryModalTrigger" class="modal-trigger" /> 4092 <div class="modal-container"> 4093 <label for="ParagraphGalleryModalTrigger" id="ParagraphGalleryModalOverlay" class="modal-overlay"></label> 4094 <div class="modal modal--full" id="ParagraphGalleryModal"> 4095 <div class="modal__body modal__body--full"> 4096 <div class="modal__image-min-size-wrapper"> 4097 <img src="/Files/Images/placeholder.gif" id="ParagraphGallery" class="modal--full__img" alt=""> 4098 </div> 4099 <div class="modal__images-counter" id="ParagraphGallery_counter"></div> 4100 <button class="modal__prev-btn" id="ParagraphGallery_prev" onclick="Gallery.prevImage('ParagraphGallery')" type="button"> 4101 <i class="far fa-angle-left"></i> 4102 </button> 4103 <button class="modal__next-btn" id="ParagraphGallery_next" onclick="Gallery.nextImage('ParagraphGallery')" type="button"> 4104 <i class="far fa-angle-right"></i> 4105 </button> 4106 </div> 4107 <label class="modal__close-btn" for="ParagraphGalleryModalTrigger"></label> 4108 </div> 4109 </div> 4110 } 4111 } 4112 @using System.Reflection 4113 @using Dynamicweb.Rapido.Blocks.Components 4114 @using Dynamicweb.Rapido.Blocks.Components.Articles 4115 @using Dynamicweb.Rapido.Blocks 4116 4117 4118 @* Component for the articles *@ 4119 4120 @helper RenderArticleRelated(ArticleRelated settings) 4121 { 4122 //string cardClass = Pageview.Device.ToString() != "Tablet" ? "card u-color-light--bg u-full-height" : ""; 4123 //string cardFooterClass = Pageview.Device.ToString() != "Tablet" ? "card-footer u-color-light--bg" : ""; 4124 4125 <section class="col-12 related"> 4126 <h2 class="article__header">@settings.Title</h2> 4127 4128 <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> 4129 4130 <script id="RelatedSimpleTemplate" type="text/x-template"> 4131 {{#.}} 4132 <div class="grid"> 4133 {{#Cases}} 4134 <div class="col-4"> 4135 <a href="{{link}}"> 4136 {{#if image}} 4137 <div class="flex-img image-hover__wrapper"> 4138 <img class="img-fluid lazyload" loading="lazy" src="/Admin/Public/GetImage.ashx?width=680&height=314&amp;crop=1&amp;DoNotUpscale=True&amp;Compression=75&amp;image={{image}}" alt="{{title}}" /> 4139 </div> 4140 {{/if}} 4141 4142 <div class="card"> 4143 <h3 class="article-list__item-header">{{title}}</h3> 4144 <p class="article__summary">{{summary}}</p> 4145 </div> 4146 </a> 4147 </div> 4148 {{/Cases}} 4149 </div> 4150 {{/.}} 4151 </script> 4152 </section> 4153 } 4154 @using System.Reflection 4155 @using Df.Dw 4156 @using Dynamicweb.Rapido.Blocks.Components 4157 @using Dynamicweb.Rapido.Blocks.Components.Articles 4158 @using Dynamicweb.Rapido.Blocks 4159 4160 4161 @* Component for the articles *@ 4162 4163 @helper RenderArticleMenu(ArticleMenu settings) 4164 { 4165 dynamic[] methodParameters = new dynamic[1]; 4166 methodParameters[0] = settings; 4167 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuCustom"); 4168 4169 if (customMethod != null) 4170 { 4171 @customMethod.Invoke(this, methodParameters).ToString(); 4172 } else { 4173 if (settings.Title.HasValue()) { 4174 <h3>@settings.Title</h3> 4175 } 4176 4177 <ul class="menu-left"> 4178 @foreach (var item in settings.Items) 4179 { 4180 @RenderArticleMenuItem(item) 4181 } 4182 </ul> 4183 } 4184 } 4185 4186 @helper RenderArticleMenuItem(ArticleMenuItem settings) 4187 { 4188 dynamic[] methodParameters = new dynamic[1]; 4189 methodParameters[0] = settings; 4190 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleMenuItemCustom"); 4191 4192 if (customMethod != null) 4193 { 4194 @customMethod.Invoke(this, methodParameters).ToString(); 4195 } else { 4196 string link = !String.IsNullOrEmpty(settings.Link) ? settings.Link : "#"; 4197 4198 if (settings.Title.HasValue()) { 4199 <li class="menu-left__item"> 4200 <a href="@link" onclick="@settings.OnClick" class="menu-left__link">@settings.Title</a> 4201 </li> 4202 } 4203 } 4204 } 4205 @using System.Reflection 4206 @using Dynamicweb.Rapido.Blocks.Components 4207 @using Dynamicweb.Rapido.Blocks.Components.Articles 4208 @using Dynamicweb.Rapido.Blocks 4209 4210 @* Component for the articles *@ 4211 4212 @helper RenderArticleList(ArticleList settings) 4213 { 4214 dynamic[] methodParameters = new dynamic[1]; 4215 methodParameters[0] = settings; 4216 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCustom"); 4217 4218 if (customMethod != null) 4219 { 4220 @customMethod.Invoke(this, methodParameters).ToString(); 4221 } else { 4222 if (Pageview != null) 4223 { 4224 bool isParagraph = Pageview.CurrentParagraph != null ? true : false; 4225 string[] sortArticlesListBy = new string[2]; 4226 4227 if (isParagraph) { 4228 sortArticlesListBy = Pageview.CurrentParagraph.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString()) ? Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" }; 4229 } 4230 else { 4231 sortArticlesListBy = Pageview.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.Item["SortArticlesListBy"].ToString()) ? Pageview.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" }; 4232 } 4233 4234 string sourcePage = settings.SourcePage != null ? settings.SourcePage : Pageview.ID.ToString(); 4235 4236 @RenderItemList(new 4237 { 4238 ItemType = !String.IsNullOrEmpty(settings.ItemType) ? settings.ItemType : "DynamicArticle", 4239 ListSourceType = settings.SourceType, 4240 ListSourcePage = sourcePage, 4241 ItemFieldsList = "*", 4242 Filter = settings.Filter, 4243 ListOrderBy = sortArticlesListBy[0], 4244 ListOrderByDirection = sortArticlesListBy[1], 4245 ListSecondOrderBy = sortArticlesListBy[0] == "Date" ? "InFocusSortId" : "Date", 4246 ListSecondOrderByDirection = "ASC", 4247 IncludeAllChildItems = true, 4248 ListTemplate = settings.Template, 4249 ListPageSize = settings.PageSize.ToString() 4250 }); 4251 } 4252 } 4253 } 4254 @using System.Reflection 4255 @using Df.Dw 4256 @using Dynamicweb.Rapido.Blocks.Components.Articles 4257 4258 4259 @* Component for the articles *@ 4260 4261 @helper RenderArticleSummary(ArticleSummary settings) 4262 { 4263 dynamic[] methodParameters = new dynamic[1]; 4264 methodParameters[0] = settings; 4265 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSummaryCustom"); 4266 4267 if (customMethod != null) 4268 { 4269 @customMethod.Invoke(this, methodParameters).ToString(); 4270 } else { 4271 if (settings.Text.HasValue()) 4272 { 4273 <div class="article__summary">@settings.Text</div> 4274 } 4275 } 4276 } 4277 @using System.Reflection 4278 @using Dynamicweb.Rapido.Blocks.Components 4279 @using Dynamicweb.Rapido.Blocks.Components.Articles 4280 @using Dynamicweb.Rapido.Blocks 4281 4282 @* Component for the articles *@ 4283 @helper RenderArticleListCategoryFilter(ArticleListCategoryFilter settings) 4284 { 4285 dynamic[] methodParameters = new dynamic[1]; 4286 methodParameters[0] = settings; 4287 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListCategoryFilterCustom"); 4288 4289 if (customMethod != null) 4290 { 4291 @customMethod.Invoke(this, methodParameters).ToString(); 4292 } else { 4293 string pageId = Pageview.ID.ToString(); 4294 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("sourcePage")) ? HttpContext.Current.Request.QueryString.Get("sourcePage") : Translate("All"); 4295 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString()); 4296 4297 foreach (var option in settings.Categories) 4298 { 4299 selectedFilter = selectedFilter == option.Value ? option.Key : selectedFilter; 4300 } 4301 4302 if (selectedFilter == pageId) 4303 { 4304 selectedFilter = Translate(Translations.General.All); 4305 } 4306 4307 <div class="col-3 article__sort mb-3"> 4308 <p>@Translate("Category")</p> 4309 <df-select name="CategorySelector" value="" placeholder="@Translate(Translations.General.All)" selected="@selectedFilter" data-role="sort"> 4310 @foreach (var option in settings.Categories) 4311 { 4312 <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> 4313 } 4314 </df-select> 4315 </div> 4316 } 4317 } 4318 @using System.Reflection 4319 @using Dynamicweb.Rapido.Blocks.Components 4320 @using Dynamicweb.Rapido.Blocks.Components.Articles 4321 @using Dynamicweb.Rapido.Blocks 4322 4323 @* Component for the articles *@ 4324 4325 @helper RenderArticleListFilter(ArticleListFilter settings) 4326 { 4327 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get(settings.SystemName)) ? HttpContext.Current.Request.QueryString.Get(settings.SystemName) : Translate("All"); 4328 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString()); 4329 string pageId = Pageview.ID.ToString(); 4330 4331 if (settings.Options != null) 4332 { 4333 foreach (var option in settings.Options) 4334 { 4335 selectedFilter = selectedFilter == option.Value ? option.Name : selectedFilter; 4336 } 4337 4338 <df-select name="CategorySelector" value="" placeholder="@Translate(Translations.General.All)" selected="@selectedFilter" data-role="sort"> 4339 @foreach (var option in settings.Options) 4340 { 4341 <df-option label="@Translate(option.Name)" value="[( '@settings.SystemName', '@option.Value' )]"><span>@Translate(option.Name)</span></df-option> 4342 } 4343 </df-select> 4344 } 4345 } 4346 @using System.Reflection 4347 @using Dynamicweb.Rapido.Blocks.Components 4348 @using Dynamicweb.Rapido.Blocks.Components.Articles 4349 @using Dynamicweb.Rapido.Blocks 4350 4351 @* Component for the articles *@ 4352 4353 @helper RenderArticleListSearch(ArticleListSearch settings) 4354 { 4355 dynamic[] methodParameters = new dynamic[1]; 4356 methodParameters[0] = settings; 4357 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListSearchCustom"); 4358 4359 if (customMethod != null) 4360 { 4361 @customMethod.Invoke(this, methodParameters).ToString(); 4362 } else { 4363 string searchString = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("Title")) ? HttpContext.Current.Request.QueryString.Get("Title").Trim('*') : ""; 4364 4365 <div class="typeahead"> 4366 <input type="text" class="typeahead-search-field" placeholder="@Translate("Search in list")" value="@searchString" id="ArticleListSearchInput" onchange="QueryArray.setParameterInCurrentURL('Title', '*' + document.getElementById('ArticleListSearchInput').value + '*')"> 4367 <button type="button" class="btn"><i class="fas fa-search"></i></button> 4368 </div> 4369 } 4370 } 4371 @using System.Reflection 4372 @using Dynamicweb.Rapido.Blocks.Components 4373 @using Dynamicweb.Rapido.Blocks.Components.Articles 4374 @using Dynamicweb.Rapido.Blocks 4375 4376 @* Component for the articles *@ 4377 4378 @helper RenderArticleListNoResultsInfo(ArticleListNoResultsInfo settings) 4379 { 4380 dynamic[] methodParameters = new dynamic[1]; 4381 methodParameters[0] = settings; 4382 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleListNoResultsInfoCustom"); 4383 4384 if (customMethod != null) 4385 { 4386 @customMethod.Invoke(this, methodParameters).ToString(); 4387 } else { 4388 @Translate(settings.Message) 4389 } 4390 } 4391 @using System.Reflection 4392 @using Dynamicweb.Rapido.Blocks.Components 4393 @using Dynamicweb.Rapido.Blocks.Components.General 4394 @using Dynamicweb.Rapido.Blocks.Components.Articles 4395 @using Dynamicweb.Rapido.Blocks 4396 @using System.Text.RegularExpressions 4397 4398 @* Component for the articles *@ 4399 4400 @helper RenderArticleListItem(ArticleListItem settings) 4401 { 4402 switch (settings.Type) { 4403 case ArticleListItemType.Card: 4404 @RenderArticleListItemCard(settings); 4405 break; 4406 case ArticleListItemType.List: 4407 @RenderArticleListItemList(settings); 4408 break; 4409 case ArticleListItemType.Simple: 4410 @RenderArticleListItemSimple(settings); 4411 break; 4412 default: 4413 @RenderArticleListItemCard(settings); 4414 break; 4415 } 4416 } 4417 4418 @helper RenderArticleListItemCard(ArticleListItem settings) { 4419 <a href="@settings.Link" class="article__item__link text-decoration-none"> 4420 @if (settings.Logo != null) 4421 { 4422 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;image=" + settings.Image.Path + "); background-size: cover;" : ""; 4423 settings.Logo.ImageDefault.Crop = 5; 4424 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width; 4425 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height; 4426 <div class="image-hover__wrapper layered-image layered-image--tinted" style="@backgroundImage"> 4427 @if (settings.Stickers != null) 4428 { 4429 if (settings.Stickers.Position != StickersListPosition.Custom) 4430 { 4431 @RenderStickersCollection(settings.Stickers); 4432 } 4433 } 4434 @RenderImage(settings.Logo) 4435 </div> 4436 } else if (settings.Image != null) 4437 { 4438 <div class="article__item__image mb-2 w-100"> 4439 @if (settings.Stickers != null) 4440 { 4441 if (settings.Stickers.Position != StickersListPosition.Custom) 4442 { 4443 @RenderStickersCollection(settings.Stickers); 4444 } 4445 } 4446 <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="" /> 4447 </div> 4448 } 4449 4450 @if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary)) 4451 { 4452 if (settings.Stickers != null) 4453 { 4454 if (settings.Stickers.Position == StickersListPosition.Custom) 4455 { 4456 @RenderStickersCollection(settings.Stickers); 4457 } 4458 } 4459 if (!String.IsNullOrEmpty(settings.Title)) 4460 { 4461 <h3 class="article__item__title mb-1 h4 weight-normal">@settings.Title</h3> 4462 } 4463 if (!String.IsNullOrEmpty(settings.SubTitle)) 4464 { 4465 <div class="article-list__item-micro-info">@settings.SubTitle</div> 4466 } 4467 if (!String.IsNullOrEmpty(settings.Summary)) 4468 { 4469 <p class="article__item__summary">@settings.Summary</p> 4470 } 4471 } 4472 </a> 4473 } 4474 4475 @helper RenderArticleListItemList(ArticleListItem settings) { 4476 <a href="@settings.Link"> 4477 <div class="grid"> 4478 <div class="grid__col-md-3"> 4479 <div> 4480 @if (settings.Logo != null) 4481 { 4482 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;image=" + settings.Image.Path + "); background-size: cover;" : ""; 4483 settings.Logo.ImageDefault.Crop = 5; 4484 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width; 4485 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height; 4486 <div class="image-hover__wrapper layered-image layered-image--tinted" style="@backgroundImage"> 4487 @if (settings.Stickers != null) 4488 { 4489 if (settings.Stickers.Position != StickersListPosition.Custom) 4490 { 4491 @RenderStickersCollection(settings.Stickers); 4492 } 4493 } 4494 @RenderImage(settings.Logo) 4495 </div> 4496 } else if (settings.Image != null) 4497 { 4498 <div class="flex-img image-hover__wrapper"> 4499 @if (settings.Stickers != null) 4500 { 4501 if (settings.Stickers.Position != StickersListPosition.Custom) 4502 { 4503 @RenderStickersCollection(settings.Stickers); 4504 } 4505 } 4506 @RenderImage(settings.Image) 4507 </div> 4508 } 4509 </div> 4510 </div> 4511 4512 @if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary)) 4513 { 4514 <div class="grid__col-md-9"> 4515 @if (!String.IsNullOrEmpty(settings.Title)) 4516 { 4517 <h3 class="test h3 weight-normal">@settings.Title</h3> 4518 } 4519 @if (settings.Stickers != null) 4520 { 4521 if (settings.Stickers.Position == StickersListPosition.Custom) 4522 { 4523 @RenderStickersCollection(settings.Stickers); 4524 } 4525 } 4526 @if (!String.IsNullOrEmpty(settings.SubTitle)) 4527 { 4528 <div class="article-list__item-micro-info">@settings.SubTitle</div> 4529 } 4530 @if (!String.IsNullOrEmpty(settings.Summary)) 4531 { 4532 <p class="article__summary">@settings.Summary</p> 4533 } 4534 </div> 4535 } 4536 </div> 4537 </a> 4538 } 4539 4540 @helper RenderArticleListItemSimple(ArticleListItem settings) { 4541 <div class="col-4">RenderArticleListCategoryFilter 4542 <a href="@settings.Link"> 4543 @if (!String.IsNullOrEmpty(settings.Title)) 4544 { 4545 <div class="article-list-item__header">@settings.Title</div> 4546 } 4547 @if (!String.IsNullOrEmpty(settings.SubTitle)) 4548 { 4549 <div class="article-list__item-micro-info">@settings.SubTitle</div> 4550 } 4551 </a> 4552 </div> 4553 } 4554 @using System.Reflection 4555 @using Df.Dw 4556 @using Dynamicweb.Rapido.Blocks.Components.Articles 4557 4558 @* Component for the articles *@ 4559 4560 @helper RenderArticleAuthorAndDate(ArticleAuthorAndDate settings) 4561 { 4562 dynamic[] methodParameters = new dynamic[1]; 4563 methodParameters[0] = settings; 4564 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleAuthorAndDateCustom"); 4565 4566 if (customMethod != null) 4567 { 4568 @customMethod.Invoke(this, methodParameters).ToString(); 4569 } else { 4570 <small class="article__subscription"> 4571 @if (settings.Author.HasValue() && string.IsNullOrWhiteSpace(settings.Date)) 4572 { 4573 <text>@Translate(Translations.General.Written)</text> 4574 } 4575 @if (settings.Author.HasValue()) 4576 { 4577 <text>@Translate(Translations.General.By) @settings.Author</text> 4578 } 4579 @if (!string.IsNullOrWhiteSpace(settings.Date)) 4580 { 4581 <text>@Translate(Translations.General.On) @settings.Date</text> 4582 } 4583 </small> 4584 } 4585 } 4586 @using System.Reflection 4587 @using Dynamicweb.Rapido.Blocks.Components.Articles 4588 4589 4590 @* Component for the articles *@ 4591 4592 @helper RenderArticleLink(ArticleLink settings) 4593 { 4594 dynamic[] methodParameters = new dynamic[1]; 4595 methodParameters[0] = settings; 4596 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleLinkCustom"); 4597 4598 if (customMethod != null) 4599 { 4600 @customMethod.Invoke(this, methodParameters).ToString(); 4601 } else { 4602 if (!String.IsNullOrEmpty(settings.Title)) 4603 { 4604 @RenderButton(settings) 4605 } 4606 } 4607 } 4608 @using System.Reflection 4609 @using Dynamicweb.Rapido.Blocks 4610 @using Dynamicweb.Rapido.Blocks.Components.Articles 4611 @using Dynamicweb.Rapido.Blocks.Components.General 4612 @using Df.Dw 4613 4614 @* Component for the articles *@ 4615 4616 @helper RenderArticleCarousel(ArticleCarousel settings) 4617 { 4618 dynamic[] methodParameters = new dynamic[1]; 4619 methodParameters[0] = settings; 4620 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom"); 4621 4622 if (customMethod != null) 4623 { 4624 @customMethod.Invoke(this, methodParameters).ToString(); 4625 } else { 4626 <div class="carousel" id="carousel_@settings.Id"> 4627 <div class="carousel__container js-carousel-slides"> 4628 @RenderBlockList(settings.SubBlocks) 4629 </div> 4630 </div> 4631 @SnippetStart("BottomJS") 4632 <script> 4633 document.addEventListener("DOMContentLoaded", function () { 4634 new CarouselModule("#carousel_@settings.Id", { 4635 slideTime: 0, 4636 dots: true 4637 }); 4638 }); 4639 </script> 4640 @SnippetEnd("BottomJS") 4641 } 4642 } 4643 4644 @helper RenderArticleCarouselSlide(ArticleCarouselSlide settings) 4645 { 4646 dynamic[] methodParameters = new dynamic[1]; 4647 methodParameters[0] = settings; 4648 MethodInfo customMethod = this.GetType().GetMethod(settings.HelperName + "Custom"); 4649 4650 if (customMethod != null) 4651 { 4652 @customMethod.Invoke(this, methodParameters).ToString(); 4653 } 4654 else 4655 { 4656 string imageEngine = "/Admin/Public/GetImage.ashx?"; 4657 4658 string defaultImage = settings.ImageSettings != null ? imageEngine : settings.Image; 4659 if (settings.ImageSettings != null) 4660 { 4661 defaultImage += settings.ImageSettings.Width != 0 ? "Width=" + settings.ImageSettings.Width + "&" : ""; 4662 defaultImage += settings.ImageSettings.Height != 0 ? "Height=" + settings.ImageSettings.Height + "&" : ""; 4663 defaultImage += "Crop=" + settings.ImageSettings.Crop + "&"; 4664 defaultImage += "Compression=" + settings.ImageSettings.Compression + "&"; 4665 defaultImage += "DoNotUpscale=" + settings.ImageSettings.DoNotUpscale.ToString() + "&"; 4666 defaultImage += "FillCanvas=" + settings.ImageSettings.FillCanvas.ToString() + "&"; 4667 } 4668 defaultImage += "&Image=" + settings.Image; 4669 4670 <div class="carousel__slide u-min-h300px" style="background-size:cover; background-image:url('@defaultImage')"> 4671 <a class="article-carousel-item__wrap" href="@settings.Link" title="@settings.Title"> 4672 <h2 class="article-list__item-header">@settings.Title</h2> 4673 <div class="article-list__item-info"> 4674 @if (settings.Stickers != null) 4675 { 4676 settings.Stickers.Position = StickersListPosition.Custom; 4677 @RenderStickersCollection(settings.Stickers); 4678 } 4679 4680 <small class="u-margin-top--lg u-color-light"> 4681 @if (!(string.IsNullOrWhiteSpace(settings.Author) && string.IsNullOrWhiteSpace(settings.Date))) 4682 { 4683 <text>@Translate(Translations.General.Written)</text> 4684 } 4685 @if (!string.IsNullOrWhiteSpace(settings.Author)) 4686 { 4687 <text>@Translate(Translations.General.By) @settings.Author</text> 4688 } 4689 @if (!string.IsNullOrWhiteSpace(settings.Date)) 4690 { 4691 <text>@Translate(Translations.General.On) @settings.Date</text> 4692 } 4693 </small> 4694 </div> 4695 4696 <h3 class="article__summary u-color-light">@settings.Summary</h3> 4697 </a> 4698 @if (settings.UseFilters == true) 4699 { 4700 <div class="background-image image-filter image-filter--darken"></div> 4701 } 4702 </div> 4703 } 4704 } 4705 @using System.Text.RegularExpressions 4706 @using Dynamicweb.Rapido.Blocks.Components 4707 @using Dynamicweb.Rapido.Blocks.Components.General 4708 @using Dynamicweb.Rapido.Blocks.Components.Articles 4709 @using Dynamicweb.Rapido.Blocks 4710 4711 @* Component for the articles *@ 4712 4713 @helper RenderArticleVideo(ArticleVideo settings) 4714 { 4715 dynamic[] methodParameters = new dynamic[1]; 4716 methodParameters[0] = settings; 4717 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleTextCustom"); 4718 4719 if (customMethod != null) 4720 { 4721 @customMethod.Invoke(this, methodParameters).ToString(); 4722 } else { 4723 if (settings.Url != null) 4724 { 4725 //getting video ID from youtube URL 4726 string videoCode = settings.Url; 4727 Regex regex = new Regex(@".be\/(.[^?]*)"); 4728 Match match = regex.Match(videoCode); 4729 string videoId = ""; 4730 if (match.Success) 4731 { 4732 videoId = match.Groups[1].Value; 4733 } 4734 else 4735 { 4736 regex = new Regex(@"v=([^&]+)"); 4737 match = regex.Match(videoCode); 4738 if (match.Success) 4739 { 4740 videoId = match.Groups[1].Value; 4741 } 4742 } 4743 4744 int autoPlay = settings.AutoPlay == "true" ? 1 : 0; 4745 4746 <div class="section__container container--wide my-3"> 4747 <div class="section__content"> 4748 <div class="video-container"> 4749 <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> 4750 @* <div class="js-youtube-video" data-video="@videoId" id="ytPlayer@(Guid.NewGuid().ToString("N"))" data-auto-play="@autoPlay" data-enable-controls="1"></div> *@ 4751 </div> 4752 </div> 4753 </div> 4754 4755 } 4756 } 4757 } 4758 4759 4760 4761 @* Simple helpers *@ 4762 4763 @*Requires the Gallery ItemType that comes with Rapido*@ 4764 @helper RenderArticleItemGallery(IList<ItemViewModel> gallery) { 4765 if (gallery != null && gallery.Count > 0) 4766 { 4767 int count = 1; 4768 4769 foreach (var item in gallery) 4770 { 4771 if (item.GetFile("ImagePath") != null) 4772 { 4773 string image = item.GetFile("ImagePath").PathUrlEncoded; 4774 string imagePrefix = "/Admin/Public/GetImage.ashx?width=1200&amp;height=820&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=1&amp;image="; 4775 int imagesCount = gallery.Count; 4776 4777 if (count == 1) 4778 { 4779 <label class="gallery" for="ParagraphGalleryModalTrigger" onclick="Gallery.openImage(this.querySelector('.js-gallery'))"> 4780 <span class="gallery__main-image"> 4781 <img src="/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=1&amp;image=@image" class="flex-img js-gallery" alt="" data-for="ParagraphGallery" data-image="@imagePrefix@image" /> 4782 </span> 4783 <span class="gallery__image-counter"> 4784 <i class="fas fa-camera fa-2x"></i> <span class="gallery__image-counter__number">@imagesCount</span> 4785 <span class="gallery__image-counter__text">@Translate("See all") <i class="fas fa-angle-right"></i></span> 4786 </span> 4787 </label> 4788 } 4789 else 4790 { 4791 <div class="u-hidden js-gallery" data-for="ParagraphGallery" data-image="@imagePrefix@image"></div> 4792 } 4793 4794 count++; 4795 } 4796 } 4797 @RenderArticleGalleryModal(new ArticleGalleryModal()) 4798 } 4799 } 4800 4801 @helper RenderMobileFilters(List<Block> subBlocks) 4802 { 4803 if (subBlocks.Count > 0) 4804 { 4805 <div class="grid__col-12"> 4806 <input type="checkbox" id="CheckFilters" class="js-remember-state u-hidden" data-expand="CheckFilters" /> 4807 <div class="grid u-margin-bottom dw-mod" data-trigger="CheckFilters"> 4808 @RenderBlockList(subBlocks) 4809 </div> 4810 <label for="CheckFilters" class="btn btn--secondary btn--full dw-mod js-expand-hide" data-trigger="CheckFilters">@Translate("Select filters")</label> 4811 <label for="CheckFilters" class="btn btn--secondary btn--full dw-mod expandable--collapsed" data-trigger="CheckFilters">@Translate("Close filters")</label> 4812 </div> 4813 } 4814 } 4815 4816 @if (File.Exists(HttpContext.Current.Server.MapPath("/Components/Custom/Custom__Components.cshtml"))) 4817 { 4818 <text>@using Dynamicweb.Rapido.Blocks.Components.General 4819 4820 @helper RenderInlineSvg(string theme = "default", string icon="none.svg") 4821 { 4822 var DesignFolder = Pageview.Layout.Design.Name; 4823 // string themeCookie = HttpContext.Current.Request.Cookies["Theme"] != null ? HttpContext.Current.Request.Cookies["Theme"].Value : theme; 4824 // var themeNormalized = theme; 4825 // if (!string.IsNullOrEmpty(themeCookie)) 4826 // { 4827 // themeNormalized = themeCookie; 4828 // } 4829 var themeNormalized = "decocenter"; 4830 4831 <div class="ico"> 4832 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg")) 4833 </div> 4834 } 4835 4836 @functions { 4837 public class ArticleImageContainerAware : ComponentBase 4838 { 4839 public string Link { get; set; } 4840 public string Layout { get; set; } 4841 public string Alt { get; set; } 4842 } 4843 public class ArticleHeadingRefactored : ComponentBase 4844 { 4845 public string Value { get; set; } 4846 public string Tag { get; set; } 4847 } 4848 public class ArticleSubHeadingRefactored : ComponentBase 4849 { 4850 public string Value { get; set; } 4851 public string Tag { get; set; } 4852 } 4853 public class ArticleVideoRefactored : ComponentBase 4854 { 4855 public string Url { get; set; } 4856 public string AutoPlay { get; set; } 4857 public string Layout { get; set; } 4858 } 4859 } 4860 4861 @helper RenderArticleImageContainerAware (ArticleImageContainerAware settings) { 4862 switch (settings.Layout) 4863 { 4864 case "banner": 4865 <div class="section__container container--wide"> 4866 <div class="section__content"> 4867 <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"> 4868 </div> 4869 </div> 4870 break; 4871 case "wide": 4872 <div class="section__container container"> 4873 <div class="section__content"> 4874 <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"> 4875 </div> 4876 </div> 4877 break; 4878 case "straight": 4879 <div class="section__container container--narrow"> 4880 <div class="section__content"> 4881 <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"> 4882 </div> 4883 </div> 4884 break; 4885 default: 4886 <div class="section__container container--wide"> 4887 <div class="section__content"> 4888 <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"> 4889 </div> 4890 </div> 4891 break; 4892 } 4893 4894 } 4895 4896 @helper RenderArticleHeadingRefactored (ArticleHeadingRefactored settings) 4897 { 4898 <div class="section__container container--narrow"> 4899 <div class="section__content"> 4900 @switch (settings.Tag) 4901 { 4902 case "2": 4903 <h2 class="article-detail__header h2">@settings.Value</h2> 4904 break; 4905 case "3": 4906 <h3 class="article-detail__header h2">@settings.Value</h3> 4907 break; 4908 case "4": 4909 <h4 class="article-detail__header h2">@settings.Value</h4> 4910 break; 4911 case "5": 4912 <h5 class="article-detail__header h2">@settings.Value</h5> 4913 break; 4914 case "0": 4915 <div class="article-detail__header h2">@settings.Value</div> 4916 break; 4917 default: 4918 <h2 class="article-detail__header h2">@settings.Value</h2> 4919 break; 4920 } 4921 </div> 4922 </div> 4923 } 4924 4925 @helper RenderArticleSubHeadingRefactored (ArticleSubHeadingRefactored settings) 4926 { 4927 <div class="section__container container--narrow my-2"> 4928 <div class="section__content"> 4929 @switch(settings.Tag) { 4930 case "2": 4931 <h2 class="article-detail__subheading h3">@settings.Value</h2> 4932 break; 4933 case "3": 4934 <h3 class="article-detail__subheading h3">@settings.Value</h3> 4935 break; 4936 case "4": 4937 <h4 class="article-detail__subheading h3">@settings.Value</h4> 4938 break; 4939 case "5": 4940 <h5 class="article-detail__subheading h3">@settings.Value</h5> 4941 break; 4942 case "0": 4943 <div class="article-detail__subheading h3">@settings.Value</div> 4944 break; 4945 default: 4946 <h3 class="article-detail__subheading h3">@settings.Value</h3> 4947 break; 4948 } 4949 </div> 4950 </div> 4951 } 4952 4953 @helper RenderArticleVideoRefactored (ArticleVideoRefactored settings) { 4954 //getting video ID from youtube URL 4955 string videoCode = settings.Url; 4956 Regex regex = new Regex(@".be\/(.[^?]*)"); 4957 Match match = regex.Match(videoCode); 4958 string videoId = ""; 4959 if (match.Success) 4960 { 4961 videoId = match.Groups[1].Value; 4962 } 4963 else 4964 { 4965 regex = new Regex(@"v=([^&]+)"); 4966 match = regex.Match(videoCode); 4967 if (match.Success) 4968 { 4969 videoId = match.Groups[1].Value; 4970 } 4971 } 4972 4973 int autoPlay = settings.AutoPlay == "true" ? 1 : 0; 4974 4975 switch (settings.Layout) 4976 { 4977 case "banner": 4978 <div class="section__container container--wide my-3"> 4979 <div class="section__content"> 4980 <div class="video-container"> 4981 <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> 4982 </div> 4983 </div> 4984 </div> 4985 break; 4986 case "wide": 4987 <div class="section__container container my-3"> 4988 <div class="section__content"> 4989 <div class="video-container"> 4990 <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> 4991 </div> 4992 </div> 4993 </div> 4994 break; 4995 case "straight": 4996 <div class="section__container container--narrow my-3"> 4997 <div class="section__content"> 4998 <div class="video-container"> 4999 <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> 5000 </div> 5001 </div> 5002 </div> 5003 break; 5004 default: 5005 <div class="section__container container--wide my-3"> 5006 <div class="section__content"> 5007 <div class="video-container"> 5008 <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> 5009 </div> 5010 </div> 5011 </div> 5012 break; 5013 } 5014 5015 } 5016 5017 5018 @functions { 5019 public class ButtonRefactored : ComponentBase 5020 { 5021 public string Style { get; set; } 5022 public string Theme { get; set; } 5023 public string CssClass { get; set; } 5024 public string Attributes { get; set; } 5025 public string Label { get; set; } 5026 public string AriaLabel { get; set; } 5027 public string Type { get; set; } 5028 } 5029 public class LinkRefactored : ComponentBase 5030 { 5031 public string Style { get; set; } 5032 public string Theme { get; set; } 5033 public string CssClass { get; set; } 5034 public string Attributes { get; set; } 5035 public string Label { get; set; } 5036 public string URL { get; set; } 5037 } 5038 } 5039 5040 @helper RenderButtonRefactored (ButtonRefactored settings) { 5041 if (settings != null && !string.IsNullOrEmpty(settings.Label)) 5042 { 5043 string btnStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill"; 5044 string btnTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted"; 5045 string btnType = !string.IsNullOrEmpty(settings.Type) ? settings.Type : "button"; 5046 string btnAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : ""; 5047 string btnAriaLabel = !string.IsNullOrEmpty(settings.AriaLabel) ? settings.AriaLabel : settings.Label; 5048 <button type="@btnType" class="btn-@btnStyle--@btnTheme @settings.CssClass" @btnAttributes aria-label="">@settings.Label</button> 5049 } 5050 } 5051 @helper RenderLinkRefactored (LinkRefactored settings) { 5052 if (settings != null && !string.IsNullOrEmpty(settings.URL) && !string.IsNullOrEmpty(settings.Label)) 5053 { 5054 string linkStyle = !string.IsNullOrEmpty(settings.Style) ? settings.Style : "fill"; 5055 string linkTheme = !string.IsNullOrEmpty(settings.Theme) ? settings.Theme : "muted"; 5056 string linkAttributes = !string.IsNullOrEmpty(settings.Attributes) ? settings.Attributes : ""; 5057 <a href="@settings.URL" class="btn btn-@linkStyle--@linkTheme @settings.CssClass" @linkAttributes>@settings.Label</a> 5058 } 5059 } </text> 5060 } 5061 5062 @* Include the Blocks for the page *@ 5063 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 5064 5065 @using System 5066 @using System.Web 5067 @using Df.Dw 5068 @using Dynamicweb.Rapido.Blocks.Extensibility 5069 @using Dynamicweb.Rapido.Blocks 5070 @*using System.Collections.Generic *@ 5071 5072 @{ 5073 BlocksPage topSnippetsBlocksPage = BlocksPage.GetBlockPage("Master"); 5074 5075 Block tagManager = new Block() 5076 { 5077 Id = "TagManager", 5078 SortId = 1, 5079 Template = RenderGoogleTagManager() 5080 }; 5081 5082 Block facebookPixel = new Block() 5083 { 5084 Id = "FacebookPixel", 5085 SortId = 2, 5086 Template = RenderFacebookPixel() 5087 }; 5088 5089 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, tagManager); 5090 topSnippetsBlocksPage.Add(MasterBlockId.MasterTopSnippets, facebookPixel); 5091 } 5092 5093 @helper RenderGoogleTagManager() { 5094 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 5095 5096 if (areaInfo.GoogleTagManagerID.HasValue()) 5097 { 5098 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false; 5099 if (!debugSpeedTest) 5100 { 5101 <script> 5102 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 5103 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 5104 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 5105 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 5106 })(window,document,'script','dataLayer','@areaInfo.GoogleTagManagerID'); 5107 </script> 5108 <!-- Google Tag Manager (noscript) --> 5109 <noscript> 5110 <iframe src="https://www.googletagmanager.com/ns.html?id=@areaInfo.GoogleTagManagerID" 5111 height="0" width="0" style="display:none;visibility:hidden"></iframe> 5112 </noscript> 5113 <!-- End Google Tag Manager (noscript) --> 5114 } 5115 } 5116 } 5117 5118 @helper RenderFacebookPixel() { 5119 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 5120 5121 if (areaInfo.FacebookPixelID.HasValue()) 5122 { 5123 <!-- Facebook Pixel Code --> 5124 <script> 5125 !function(f,b,e,v,n,t,s) 5126 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 5127 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 5128 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 5129 n.queue=[];t=b.createElement(e);t.async=!0; 5130 t.src=v;s=b.getElementsByTagName(e)[0]; 5131 s.parentNode.insertBefore(t,s)}(window, document,'script', 5132 'https://connect.facebook.net/en_US/fbevents.js'); 5133 fbq('init', '@areaInfo.FacebookPixelID'); 5134 fbq('track', 'PageView'); 5135 </script> 5136 <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=@areaInfo.FacebookPixelID&ev=PageView&noscript=1" alt="" /></noscript> 5137 } 5138 } 5139 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 5140 5141 @using System 5142 @using System.Web 5143 @using Dynamicweb.Rapido.Blocks 5144 @using Dynamicweb.Rapido.Blocks.Extensibility 5145 @using Dynamicweb.Security.UserManagement 5146 @using Dynamicweb.Security.UserManagement.ExternalAuthentication 5147 @* using System.Collections.Generic *@ 5148 5149 @{ 5150 BlocksPage loginBlocksPage = BlocksPage.GetBlockPage("Master"); 5151 5152 Block loginModal = new Block() 5153 { 5154 Id = "LoginModal", 5155 SortId = 10, 5156 Template = LoginModal() 5157 }; 5158 loginBlocksPage.Add(MasterBlockId.MasterBottomSnippets, loginModal); 5159 } 5160 5161 @helper LoginModal() { 5162 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 5163 string userSignedInErrorText = ""; 5164 string loginJsonPage = GetPageIdByNavigationTag("LoginJSON").ToString(); 5165 var cultureInfo = Pageview.Area; 5166 var countryService = new Dynamicweb.Ecommerce.International.CountryService(); 5167 var DesignFolder = Pageview.Layout.Design.Name; 5168 5169 if (Model.LogOnFailed) { 5170 switch (Model.LogOnFailedReason) 5171 { 5172 case LogOnFailedReason.PasswordLengthInvalid: 5173 userSignedInErrorText = Translate(Translations.Account.PasswordLengthIsInvalid); 5174 break; 5175 case LogOnFailedReason.IncorrectLogin: 5176 userSignedInErrorText = Translate(Translations.Account.InvalidEmailOrPassword); 5177 break; 5178 case LogOnFailedReason.ExceededFailedLogOnLimit: 5179 userSignedInErrorText = Translate(Translations.Account.LimitOfAllowedLoginAttempts); 5180 break; 5181 case LogOnFailedReason.LoginLocked: 5182 userSignedInErrorText = Translate(Translations.Account.TheUserAccountIsTemporarilyLocked); 5183 break; 5184 case LogOnFailedReason.PasswordExpired: 5185 userSignedInErrorText = Translate(Translations.Account.ThePasswordHasExpired); 5186 break; 5187 default: 5188 userSignedInErrorText = Translate(Translations.Account.AnUnknownErrorOccured); 5189 break; 5190 } 5191 } 5192 5193 <df-modal id="SignInModal" class="login-container align-items-center"> 5194 5195 <span class="login__form-wrapper grid-md-12 gap-0"> 5196 <div class="content__login col-md-5 bg-brand color-light px-4 py-2 align-items-center flex-wrap text-center"> 5197 <div class="c0 w-100"> 5198 @if (!string.IsNullOrEmpty(areaInfo.FooterLogo)) 5199 { 5200 <div class="content__login-img mb-2"> 5201 <a href="@areaInfo.FirstPageLink" class="flex-wrap w-100 align-items-center justify-content-center"> 5202 <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)"/> 5203 </a> 5204 </div> 5205 } 5206 <div class="content__login-text"> 5207 <h5 class="h3">@Translate(Translations.General.LoginModalHeading)</h5> 5208 <p>@Translate(Translations.General.LoginModalSubHeading)</p> 5209 </div> 5210 </div> 5211 5212 </div> 5213 <div class="form__section col-md-7 p-4"> 5214 <div class="tab"> 5215 <div class="tablinks" data-tab="Login"><span class="h5 px-2 px-xs-3">@Translate(Translations.Account.LogIn)</span></div> 5216 <div class="tablinks" data-tab="CreateAccount"><span class="h5 px-2 px-xs-3">@Translate(Translations.Account.CreateAccount)</span></div> 5217 <div class="tablinks" data-tab="CreateDesignerAccount"><span class="h5 px-2 px-xs-3">@Translate("Solicita cont designer")</span></div> 5218 </div> 5219 <div id="Login" class="tab-content"> 5220 <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> 5221 <input type="hidden" name="ID" value="@areaInfo.PageId"/> 5222 <input type="hidden" name="DWExtranetUsernameRemember" value="True"/> 5223 <input type="hidden" name="DWExtranetPasswordRemember" value="True"/> 5224 <df-input class="item" type="email" name="username" id="Modal__username" label="@Translate(Translations.Account.Email)" value="" required></df-input> 5225 <df-input class="item" type="password" name="password" id="Modal__password" label="@Translate(Translations.Account.Password)" value="" required></df-input> 5226 @* <div class="field-error dw-mod">@userSignedInErrorText</div> *@ 5227 5228 5229 <df-checkbox class="item" name="Autologin" id="Modal__Autologin" value="True" checked><span>@Translate(Translations.Account.RememberMe)</span></df-checkbox> 5230 5231 <div class="login__actions flex-wrap align-items-center child-mr-2"> 5232 <button type="submit" class="btn-fill--accent" name="LoginAction" value="Login">@Translate(Translations.Account.SignIn)</button> 5233 <a href="@areaInfo.ForgotPasswordPageLink" class="forgot--password">@Translate(Translations.Account.ForgotYourPassword)</a> 5234 </div> 5235 5236 </form> 5237 </div> 5238 <div id="CreateAccount" class="tab-content"> 5239 <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> 5240 <input type="hidden" name="UserManagementForm" value="1"> 5241 <input type="hidden" name="UserManagement_Form_CountryCode" value="@cultureInfo.EcomCountryCode"> 5242 <input type="hidden" name="UserManagement_Form_Country" value="@countryService.GetCountry(cultureInfo.EcomCountryCode).Name"> 5243 <input type="hidden" name="UserManagement_Form_Currency" value="@cultureInfo.EcomCurrencyId"> 5244 <input type="hidden" name="UserManagement_Form_ShopId" value="@cultureInfo.EcomShopId"> 5245 <input type="checkbox" class="hide" name="UserManagement_Form_DisableLivePrices" value="1" checked="checked"> 5246 <input type="hidden" name="UserManagement_Form_Name" value=""> 5247 5248 5249 <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> 5250 <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> 5251 5252 <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> 5253 <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> 5254 <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> 5255 5256 <div class="item"> 5257 <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> 5258 5259 </div> 5260 <button type="submit" class="btn-fill--accent" id="submitter">@Translate(Translations.Account.CreateYourNewAccount)</button> 5261 5262 </form> 5263 </div> 5264 <div id="CreateDesignerAccount" class="tab-content"> 5265 <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> 5266 <input type="hidden" name="UserManagementForm" value="1"> 5267 <input type="hidden" name="UserManagement_Form_CountryCode" value="@cultureInfo.EcomCountryCode"> 5268 <input type="hidden" name="UserManagement_Form_Country" value="@countryService.GetCountry(cultureInfo.EcomCountryCode).Name"> 5269 <input type="hidden" name="UserManagement_Form_Currency" value="@cultureInfo.EcomCurrencyId"> 5270 <input type="hidden" name="UserManagement_Form_ShopId" value="@cultureInfo.EcomShopId"> 5271 <input type="checkbox" class="hide" name="UserManagement_Form_DisableLivePrices" value="1" checked="checked"> 5272 <input type="hidden" name="UserManagement_Form_Name" value=""> 5273 5274 5275 <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> 5276 <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> 5277 5278 <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> 5279 <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> 5280 <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> 5281 5282 <div class="item"> 5283 <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> 5284 5285 </div> 5286 <button type="submit" class="btn-fill--accent" id="submitter">@Translate(Translations.Account.CreateYourNewAccount)</button> 5287 5288 </form> 5289 </div> 5290 </div> 5291 </span> 5292 5293 </df-modal> 5294 5295 } 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&amp;crop=5&amp;Compression=75&amp;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) + "&amp;crop=5&amp;Compression=75&amp;image=" + areaInfo.Logo; 6403 logo = "/Admin/Public/GetImage.ashx?width=100&height=99&amp;crop=5&amp;Compression=75&amp;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&amp;height=150&amp;crop=0&amp;Compression=75&amp;FillCanvas=true&amp;DoNotUpscale=true&amp;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>&nbsp;</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 7858 7859 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 7860 7861 @using System 7862 @using System.Web 7863 @using Dynamicweb.Rapido.Blocks.Extensibility 7864 @using Dynamicweb.Rapido.Blocks 7865 @* using System.Collections.Generic *@ 7866 @{ 7867 Block impersonationBar = new Block 7868 { 7869 Id = "ImpersonationBar", 7870 SortId = 1, 7871 Template = RenderImpersonationBar(), 7872 Design = new Design{ 7873 CssClass = "hidden block-sm w-100 w-sm-unset" 7874 } 7875 7876 }; 7877 7878 Block impersonationBarMobile = new Block 7879 { 7880 Id = "ImpersonationBarMobile", 7881 SortId = 1, 7882 Template = RenderImpersonationBar(), 7883 Design = new Design{ 7884 CssClass = "hidden-sm w-100 impersonation-mobile" 7885 } 7886 7887 }; 7888 7889 if (user != null && Model.SecondaryUsers.Count > 0) 7890 7891 { 7892 BlocksPage.GetBlockPage("Master").Add("MasterHeaderTop", impersonationBar); 7893 BlocksPage.GetBlockPage("Master").Add("MasterHeader", impersonationBarMobile); 7894 } 7895 } 7896 7897 @helper RenderImpersonationBar() 7898 { 7899 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 7900 var user = User.GetCurrentExtranetUser(); 7901 var secondaryUser = user.CurrentSecondaryUser; 7902 var DesignFolder = Pageview.Layout.Design.Name; 7903 7904 <div class="impersonation"> 7905 <div class="impersonation-bar flex-wrap align-items-center space-between font-md"> 7906 @if (secondaryUser != null && secondaryUser.ID > 0) 7907 { 7908 string username = ""; 7909 if (!string.IsNullOrEmpty(secondaryUser.FirstName) && !string.IsNullOrEmpty(secondaryUser.LastName)) 7910 { 7911 username = secondaryUser.FirstName + " " + secondaryUser.LastName; 7912 } 7913 else if (!string.IsNullOrEmpty(secondaryUser.Name)) 7914 { 7915 username = secondaryUser.Name; 7916 } 7917 else if (!string.IsNullOrEmpty(secondaryUser.Email)) 7918 { 7919 username = secondaryUser.Email; 7920 } 7921 else 7922 { 7923 username = secondaryUser.UserName; 7924 } 7925 <div class="flex-wrap align-items-center"> 7926 <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> 7927 <form method="post"> 7928 <input type="submit" name="DwExtranetRemoveSecondaryUser" class="pl-1 pr-0" value="@Translate(Translations.Account.StopImpersonation)"> 7929 </form> 7930 </div> 7931 <div class="mobile-impersonation-icon"> 7932 <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> 7933 </div> 7934 } 7935 else 7936 { 7937 <div class="flex-wrap align-items-center"> 7938 <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> 7939 <a href="@areaInfo.LinkStart@areaInfo.ImpersonationPage.ID" title="@Translate(Translations.Account.ViewListOfUsers)">@Translate(Translations.Account.ViewListOfUsers)</a> 7940 </div> 7941 } 7942 7943 </div> 7944 </div> 7945 } 7946 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 7947 7948 @using System 7949 @using System.Web 7950 @using Dynamicweb.Rapido.Blocks.Extensibility 7951 @using Dynamicweb.Rapido.Blocks 7952 7953 7954 @{ 7955 //Already defined in Master 7956 //var DesignFolder = Pageview.Layout.Design.Name; 7957 } 7958 7959 @{ 7960 BlocksPage miniCartBlocksPage = BlocksPage.GetBlockPage("Master"); 7961 7962 Block orderLines = new Block 7963 { 7964 Id = "MiniCartOrderLines", 7965 SkipRenderBlocksList = true, 7966 7967 BlocksList = new List<Block> 7968 { 7969 new Block { 7970 Id = "MiniCartOrderLinesList", 7971 SortId = 20, 7972 Design = new Design 7973 { 7974 CssClass = "minicart__orderlines" 7975 }, 7976 Template = RenderMiniCartOrderLinesList() 7977 } 7978 } 7979 }; 7980 7981 Block orderlinesScriptTemplates = new Block 7982 { 7983 Id = "OrderlinesScriptTemplates" 7984 }; 7985 7986 if (areaInfo.OrderlinesView == "table") 7987 { 7988 orderLines.Template = RenderMiniCartOrderLinesTable(); 7989 orderLines.BlocksList.Add( 7990 new Block { 7991 Id = "MiniCartOrderlinesTableHeader", 7992 SortId = 10, 7993 Template = RenderMiniCartOrderLinesHeader() 7994 } 7995 ); 7996 7997 orderlinesScriptTemplates.Template = RenderMiniCartScriptsTableTemplates(); 7998 } 7999 else 8000 { 8001 orderLines.Template = RenderMiniCartOrderLinesBlocks(); 8002 orderlinesScriptTemplates.Template = RenderMiniCartScriptsListTemplates(); 8003 } 8004 8005 miniCartBlocksPage.Add("MasterBottomSnippets", orderlinesScriptTemplates); 8006 8007 Block miniCartScriptTemplates = new Block() 8008 { 8009 Id = "MasterMiniCartTemplates", 8010 SortId = 1, 8011 Template = RenderMiniCartScriptTemplates(), 8012 SkipRenderBlocksList = true, 8013 BlocksList = new List<Block> 8014 { 8015 orderLines, 8016 new Block { 8017 Id = "MiniCartFooter", 8018 Template = RenderMiniCartFooter(), 8019 SortId = 50, 8020 SkipRenderBlocksList = true, 8021 BlocksList = new List<Block> 8022 { 8023 new Block { 8024 Id = "MiniCartFees", 8025 Template = RenderMiniCartFees(), 8026 SortId = 30 8027 }, 8028 //new Block { 8029 //Id = "MiniCartPoints", 8030 //Template = RenderMiniCartPoints(), 8031 //SortId = 40 8032 //}, 8033 new Block { 8034 Id = "MiniCartTotal", 8035 Template = RenderMiniCartTotal(), 8036 SortId = 50 8037 }, 8038 new Block { 8039 Id = "MiniCartActions", 8040 Template = RenderMiniCartActions(), 8041 SortId = 60 8042 } 8043 } 8044 } 8045 } 8046 }; 8047 8048 miniCartBlocksPage.Add("MasterBottomSnippets", miniCartScriptTemplates); 8049 8050 Block MiniCartPanel = new Block 8051 { 8052 Id = "MiniCartPanel", 8053 SkipRenderBlocksList = true, 8054 Template = RenderMiniCartPanelDesign(), 8055 }; 8056 8057 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets",MiniCartPanel); 8058 8059 } 8060 8061 @helper RenderInlineSvgMiniCart(string theme = "default", string icon="none.svg") 8062 { 8063 var DesignFolder = Pageview.Layout.Design.Name; 8064 var themeNormalized = "decocenter"; 8065 8066 <div class="ico"> 8067 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/" + DesignFolder + "/icons/"+ themeNormalized +"/" + icon +".svg")) 8068 </div> 8069 } 8070 8071 @helper RenderMiniCartScriptsTableTemplates() 8072 { 8073 <script id="MiniCartOrderline" type="text/x-template"> 8074 {{#unless isEmpty}} 8075 <tr> 8076 <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> 8077 <td> 8078 <a href="{{link}}" title="{{name}}">{{name}}</a> 8079 {{#if variantname}} 8080 <a href="{{link}}">{{variantname}}</a> 8081 {{/if}} 8082 {{#if unitname}} 8083 <div>{{unitname}}</div> 8084 {{/if}} 8085 </td> 8086 <td>{{quantity}}</td> 8087 <td> 8088 {{#if pointsTotal}} 8089 <span>{{pointsTotal}}</span> @Translate(Translations.Cart.Points) 8090 {{else}} 8091 {{totalprice}} 8092 {{/if}} 8093 </td> 8094 </tr> 8095 {{/unless}} 8096 </script> 8097 8098 <script id="MiniCartOrderlineDiscount" type="text/x-template"> 8099 {{#unless isEmpty}} 8100 <tr> 8101 <td>&nbsp;</td> 8102 <td><div>{{name}}</div></td> 8103 <td>&nbsp;</td> 8104 <td>{{totalprice}}</td> 8105 </tr> 8106 {{/unless}} 8107 </script> 8108 } 8109 8110 @helper RenderMiniCartScriptsListTemplates() 8111 { 8112 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 8113 var DesignFolder = Pageview.Layout.Design.Name; 8114 8115 <script id="MiniCartOrderline" type="text/x-template"> 8116 {{#unless isEmpty}} 8117 <div class="c0 p-2"> 8118 <div class="item grid align-items-center"> 8119 <div class="item__image"> 8120 <a href="{{link}}" class="flex-wrap align-items-center h-100 {{hideimage}}"> 8121 <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}}"> 8122 </a> 8123 </div> 8124 <div class="item__content"> 8125 <div class="c0 flex-wrap"> 8126 <a href="{{link}}" class="item__title text-decoration-none w-100 weight-bold font-product" data-tooltip-content="{{name}}">{{name}}</a> 8127 {{#if variantname}} 8128 <div>@Translate(Translations.Cart.Variant): {{variantname}}</div> 8129 {{/if}} 8130 {{#if unitname}} 8131 <div>@Translate(Translations.Cart.Unit): {{unitname}}</div> 8132 {{/if}} 8133 <div class="item__number font-sm color-muted">{{productnumber}}</div> 8134 <div class="item__orderline__info small w-100 flex-wrap align-items-center"> 8135 {{#if totalprice}} 8136 <span class="inline-flex align-items-center mr-1"> 8137 <span class="item__price color-brand">{{{totalprice}}}</span> 8138 </span> 8139 (<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> 8140 {{else}} 8141 (<span class="item__quantity">{{quantity}}</span>)</div> 8142 {{/if}} 8143 <div class="item__actions flex-wrap w-100 mt-1"> 8144 <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" 8145 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> 8146 </div> 8147 </div> 8148 </div> 8149 </div> 8150 </div> 8151 {{/unless}} 8152 </script> 8153 8154 <script id="MiniCartOrderlineDiscount" type="text/x-template"> 8155 {{#unless isEmpty}} 8156 {{#if totalprice}} 8157 <div class="item item--discount flex-wrap space-between p-2"> 8158 <div class="item__title item__title--discount flex-wrap child-mr-2"> 8159 <span class="ico icon-lg">@RenderInlineSvgMiniCart("default","discount") </span> <span>{{orderLineCampaignName}}</span> 8160 </div> 8161 <div class="item__price price item__price--discount">{{{totalprice}}}</div> 8162 </div> 8163 {{/if}} 8164 {{/unless}} 8165 </script> 8166 } 8167 8168 @helper RenderMiniCartScriptTemplates() 8169 { 8170 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMiniCartTemplates").OrderBy(item => item.SortId).ToList(); 8171 8172 <script id="MiniCartContent" type="text/x-template"> 8173 {{#.}} 8174 {{#ifCond discountStepMessage '!==' ""}} 8175 <div class="cart__step__discount">{{discountStepMessage}}</div> 8176 {{/ifCond}} 8177 {{#each ErrorMessages}} 8178 <div class="{{cssClass}}">{{text}}</div> 8179 {{/each}} 8180 {{#unless isEmpty}} 8181 @RenderBlockList(subBlocks) 8182 {{/unless}} 8183 {{/.}} 8184 </script> 8185 } 8186 8187 @helper RenderMiniCartOrderLinesTable() 8188 { 8189 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList(); 8190 8191 <div> 8192 <table> 8193 @RenderBlockList(subBlocks) 8194 </table> 8195 </div> 8196 } 8197 8198 @helper RenderMiniCartOrderLinesBlocks() 8199 { 8200 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartOrderLines").OrderBy(item => item.SortId).ToList(); 8201 8202 <div> 8203 @RenderBlockList(subBlocks) 8204 </div> 8205 } 8206 8207 @helper RenderMiniCartOrderLinesHeader() 8208 { 8209 <thead> 8210 <tr> 8211 <td>&nbsp;</td> 8212 <td>@Translate(Translations.Products.Product)</td> 8213 <td>@Translate(Translations.Cart.Qty)</td> 8214 <td width="120">@Translate(Translations.Products.Price)</td> 8215 </tr> 8216 </thead> 8217 } 8218 8219 @helper RenderMiniCartOrderLinesList() 8220 { 8221 <text> 8222 {{#OrderLines}} 8223 {{#ifCond template "===" "CartOrderline"}} 8224 {{>MiniCartOrderline}} 8225 {{/ifCond}} 8226 {{#ifCond template "===" "CartOrderlineMobile"}} 8227 {{>MiniCartOrderline}} 8228 {{/ifCond}} 8229 {{#ifCond template "===" "CartOrderlineDiscount"}} 8230 {{>MiniCartOrderlineDiscount}} 8231 {{/ifCond}} 8232 {{/OrderLines}} 8233 </text> 8234 } 8235 8236 @helper RenderMiniCartFees() 8237 { 8238 <text> 8239 {{#if totalprice}} 8240 <div class="minicart__fees child-mb-1 mb-1 small"> 8241 8242 <div class="minicart__shipping flex-wrap space-between"> 8243 <span class="block">@Translate("Products_Delivery")</span> 8244 <span class="weight-bold inline-flex align-items-center">{{{shippingfee}}}</span> 8245 </div> 8246 </div> 8247 {{/if}} 8248 </text> 8249 } 8250 8251 @helper RenderMiniCartFooter() 8252 { 8253 List<Block> subBlocks = this.masterPage.GetBlockListById("MiniCartFooter").OrderBy(item => item.SortId).ToList(); 8254 8255 <div class="minicart__footer sticky--bottom p-2"> 8256 @RenderBlockList(subBlocks) 8257 </div> 8258 } 8259 8260 @helper RenderMiniCartActions() 8261 { 8262 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 8263 var DesignFolder = Pageview.Layout.Design.Name; 8264 <div class="minicart__actions mt-2 grid-auto-1"> 8265 <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> 8266 <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> 8267 </div> 8268 8269 } 8270 8271 @helper RenderMiniCartPoints() 8272 { 8273 <text> 8274 {{#if earnings}} 8275 <div class="minicart__points mb-1 small flex-wrap space-between"> 8276 <div>@Translate(Translations.Cart.Earnings)</div> 8277 <div class="weight-bold font-price"> 8278 <span>{{earnings}}</span> @Translate(Translations.Cart.Points) 8279 </div> 8280 </div> 8281 {{/if}} 8282 </text> 8283 } 8284 8285 @helper RenderMiniCartTotal() 8286 { 8287 <text> 8288 {{#if totalprice}} 8289 <div class="minicart__summary child-mb-1 mb-1 small"> 8290 <div class="item flex-wrap space-between"> 8291 <span class="block">@Translate(Translations.Cart.Total)</span> 8292 <span class="minicart__total weight-bold inline-flex align-items-center color-brand">{{{totalprice}}}</span> 8293 </div> 8294 </div> 8295 {{/if}} 8296 </text> 8297 } 8298 8299 8300 @helper RenderMiniCartPanelDesign() 8301 { 8302 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 8303 var DesignFolder = Pageview.Layout.Design.Name; 8304 8305 <div class="minicart animate__faster" id="minicart"> 8306 <div class="minicart__header grid-auto-1 sticky--top bg-brand color-light align-items-center gap-0"> 8307 <button class="btn-icon minicart__close child-mr-2" data-role="minicart-trigger">@RenderInlineSvg("default","close-raw")</button> 8308 <span class="block minicart__heading h5 font-heading">@Translate(Translations.Cart.ShoppingCart)</span> 8309 </div> 8310 8311 <div id="miniCartContent" data-template="MiniCartContent" data-json="@areaInfo.LinkStart@areaInfo.MiniCartFeedPage.ID&feedType=MiniCart"></div> 8312 </div> 8313 } 8314 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 8315 8316 @using System 8317 @using System.Web 8318 @using Dynamicweb.Rapido.Blocks.Extensibility 8319 @using Dynamicweb.Rapido.Blocks 8320 8321 @{ 8322 if (!areaInfo.OnlyPreviewForAnonymous && !string.IsNullOrEmpty(areaInfo.AddToCartNotificationType)) { 8323 if (areaInfo.AddToCartNotificationType == "modal") 8324 { 8325 Block addToCartNotificationModal = new Block 8326 { 8327 Id = "AddToCartNotificationModal", 8328 Template = RenderAddToCartNotificationModal() 8329 }; 8330 8331 Block addToCartNotificationScript = new Block 8332 { 8333 Id = "AddToCartNotificationScript", 8334 Template = RenderAddToCartNotificationModalScript() 8335 }; 8336 BlocksPage.GetBlockPage("Master").Add("MasterTopSnippets", addToCartNotificationModal); 8337 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript); 8338 } 8339 else if (areaInfo.AddToCartNotificationType == "toggle" && !areaInfo.AddToCartHideCartIcon && Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 8340 { 8341 Block addToCartNotificationScript = new Block 8342 { 8343 Id = "AddToCartNotificationScript", 8344 Template = RenderAddToCartNotificationToggleScript() 8345 }; 8346 BlocksPage.GetBlockPage("Master").Add("MasterBottomSnippets", addToCartNotificationScript); 8347 } 8348 } 8349 } 8350 8351 @helper RenderAddToCartNotificationModal() 8352 { 8353 <div id="LastAddedProductModal" data-template="LastAddedProductTemplate"></div> 8354 } 8355 8356 @helper RenderAddToCartNotificationModalScript() 8357 { 8358 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 8359 8360 <script id="LastAddedProductTemplate" type="text/x-template"> 8361 <!-- Trigger for the login modal --> 8362 <input type="checkbox" id="LastAddedProductModalTrigger" class="modal-trigger" /> 8363 8364 <!-- Login modal --> 8365 <div class="modal-container"> 8366 <label for="LastAddedProductModalTrigger" class="modal-overlay"></label> 8367 <div class="modal modal--md"> 8368 <div class="modal__header"> 8369 <h2>@Translate(Translations.Cart.ProductIsAddedToTheCart)</h2> 8370 </div> 8371 <div class="modal__body"> 8372 <a href="{{productInfo.link}}"> 8373 <img src="{{productInfo.image}}" alt="{{productInfo.name}}" class="dw-mod" /> 8374 </a> 8375 <span>{{quantity}}</span> x 8376 <div>{{productInfo.name}}</div> 8377 {{#if productInfo.variantName}} 8378 <small class="u-margin-bottom-5px">{{productInfo.variantName}}</small> 8379 {{/if}} 8380 {{#if productInfo.unitName}} 8381 <small class="u-margin-bottom-5px">{{productInfo.unitName}}</small> 8382 {{/if}} 8383 </div> 8384 <div class="modal__footer"> 8385 <label for="LastAddedProductModalTrigger">@Translate(Translations.Cart.ContinueShopping)</label> 8386 <a href="@areaInfo.LinkStart@areaInfo.CartPage.ID">@Translate(Translations.Cart.ProceedToCheckout)</a> 8387 </div> 8388 <label for="LastAddedProductModalTrigger"></label> 8389 </div> 8390 </div> 8391 </script> 8392 <script> 8393 document.addEventListener('addToCart', function (event) { 8394 Cart.ShowLastAddedProductModal(event.detail); 8395 }); 8396 </script> 8397 } 8398 8399 @helper RenderAddToCartNotificationToggleScript() 8400 { 8401 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 8402 <script> 8403 document.addEventListener('addToCart', function () { 8404 Cart.ToggleMiniCart('miniCartTrigger', 'miniCart', 'cartCounter', '@areaInfo.MiniCartFeedPage.ID'); 8405 }); 8406 </script> 8407 } 8408 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 8409 8410 @using System 8411 @using System.Web 8412 @using Df.Dw 8413 @using Dynamicweb.Rapido.Blocks.Extensibility 8414 @using Dynamicweb.Rapido.Blocks 8415 @using Df.Dw.Rapido 8416 @* using System.Collections.Generic *@ 8417 8418 @functions { 8419 BlocksPage footerBlocksPage = BlocksPage.GetBlockPage("Master"); 8420 } 8421 8422 @{ 8423 8424 8425 Block masterFooterContent = new Block() 8426 { 8427 Id = "MasterFooterContent", 8428 SortId = 10, 8429 Template = RenderFooter(areaInfo), 8430 SkipRenderBlocksList = true 8431 }; 8432 footerBlocksPage.Add(MasterBlockId.MasterFooter, masterFooterContent); 8433 8434 Block masterFooter1 = new Block() 8435 { 8436 Id = "MasterFooter1", 8437 SortId = 10, 8438 Design = new Design 8439 { 8440 CssClass = "c0 col-md-8 grid-1 col-lg-4 grid-md-12 space-between align-items-center mb-2 mb-md-0" 8441 } 8442 }; 8443 footerBlocksPage.Add("MasterFooterContent", masterFooter1); 8444 8445 Block masterFooter2 = new Block() 8446 { 8447 Id = "MasterFooter2", 8448 SortId = 20, 8449 Design = new Design 8450 { 8451 CssClass = "c1 col-md-2 col-lg-1" 8452 } 8453 }; 8454 footerBlocksPage.Add("MasterFooterContent", masterFooter2); 8455 8456 Block masterFooter3 = new Block() 8457 { 8458 Id = "MasterFooter3", 8459 SortId = 30, 8460 Design = new Design 8461 { 8462 CssClass = "c2 col-md-2 col-lg-1" 8463 } 8464 }; 8465 footerBlocksPage.Add("MasterFooterContent", masterFooter3); 8466 8467 Block masterFooter4 = new Block() 8468 { 8469 Id = "MasterFooter4", 8470 SortId = 40, 8471 Design = new Design{ 8472 8473 CssClass = "c3 child-mb-2 child-mb-xs-0 col-md-2 col-lg-1" 8474 } 8475 }; 8476 footerBlocksPage.Add("MasterFooterContent", masterFooter4); 8477 8478 Block masterFooter5 = new Block() 8479 { 8480 Id = "MasterFooter5", 8481 SortId = 50, 8482 Design = new Design 8483 { 8484 CssClass = "c4 col-md-2 col-lg-1" 8485 } 8486 }; 8487 footerBlocksPage.Add("MasterFooterContent", masterFooter5); 8488 8489 Block masterFooter6 = new Block() 8490 { 8491 Id = "MasterFooter6", 8492 SortId = 60, 8493 Design = new Design 8494 { 8495 CssClass = "c5 col-md-8 col-lg-4 footer__copyright border-top border-muted py-3 mt-3" 8496 } 8497 }; 8498 footerBlocksPage.Add("MasterFooterContent", masterFooter6); 8499 8500 Block masterFooter7 = new Block() 8501 { 8502 Id = "MasterFooter7", 8503 SortId = 70, 8504 Design = new Design{ 8505 8506 CssClass = "c6" 8507 } 8508 }; 8509 footerBlocksPage.Add("MasterFooterContent", masterFooter7); 8510 8511 Block masterFooter8 = new Block() 8512 { 8513 Id = "MasterFooter8", 8514 SortId = 80, 8515 Design = new Design 8516 { 8517 CssClass = "c7" 8518 } 8519 }; 8520 footerBlocksPage.Add("MasterFooterContent", masterFooter8); 8521 8522 8523 //content Blocks 8524 Block masterFooterLogo = new Block 8525 { 8526 Id = "FooterLogo", 8527 SortId = 10, 8528 Template = RenderFooterLogo(areaInfo), 8529 Design = new Design{ 8530 CssClass = "footer__logo col-md-12 col-lg-3" 8531 } 8532 }; 8533 Block masterFooterBeInspired = new Block 8534 { 8535 Id = "FooterBeInspired", 8536 SortId = 10, 8537 Template = RenderBeInspired(), 8538 Design = {} 8539 }; 8540 Block masterFooterGetConnected = new Block 8541 { 8542 Id = "FooterGetConnected", 8543 SortId = 10, 8544 Template = RenderGetConnected(), 8545 Design = {} 8546 }; 8547 8548 8549 Block masterFooterAddress = new Block 8550 { 8551 Id = "FooterAddress", 8552 SortId = 10, 8553 Template = RenderFooterAddress(areaInfo), 8554 Design = new Design{ 8555 CssClass = "footer__address" 8556 } 8557 }; 8558 8559 Block masterFooterColumnOne = new Block 8560 { 8561 Id = "MasterFooterColumnOne", 8562 SortId = 50, 8563 Template = RenderFooterColumn(areaInfo.FooterColumnOneHeader, areaInfo.FooterColumnOneContent, areaInfo.FooterColumnOneLinks, "footer__column-one") 8564 }; 8565 8566 Block masterFooterColumnTwo = new Block 8567 { 8568 Id = "MasterFooterColumnTwo", 8569 SortId = 20, 8570 Template = RenderFooterColumn(areaInfo.FooterColumnTwoHeader, areaInfo.FooterColumnTwoContent, areaInfo.FooterColumnTwoLinks, "footer__column-two") 8571 }; 8572 8573 Block masterFooterColumnThree = new Block 8574 { 8575 Id = "MasterFooterColumnThree", 8576 SortId = 30, 8577 Template = RenderFooterColumn(areaInfo.FooterColumnThreeHeader, areaInfo.FooterColumnThreeContent, areaInfo.FooterColumnThreeLinks, "footer__column-three") 8578 }; 8579 8580 Block masterFooterNewsletterSignUp = new Block 8581 { 8582 Id = "MasterFooterNewsletterSignUp", 8583 SortId = 9, 8584 Template = RenderFooterNewsletterSignUp(areaInfo), 8585 Design = new Design{ 8586 CssClass = "footer__newsletter" 8587 } 8588 }; 8589 8590 Block masterFooterPartnerShops = new Block 8591 { 8592 Id = "MasterFooterPartnerShops", 8593 SortId = 20, 8594 Template = RenderFooterPartnerShops(), 8595 Design = new Design { 8596 CssClass = "col-md-4 col-lg-3" 8597 } 8598 }; 8599 8600 Block masterFooterTopCenterContentB2B = new Block 8601 { 8602 Id = "MasterFooterTopCenterContentB2B", 8603 SortId = 20, 8604 Template = RenderFooterTopCenterContentB2B(), 8605 Design = new Design{ 8606 CssClass = "flex-wrap col-md-4 col-lg-3" 8607 } 8608 }; 8609 8610 Block masterFooterNewsletter = new Block 8611 { 8612 Id = "masterFooterNewsletter", 8613 SortId = 30, 8614 Template = RenderFooterNewsletter(), 8615 Design = new Design{ 8616 CssClass = "flex-wrap col-md-4 col-lg-3" 8617 } 8618 }; 8619 8620 Block masterFooterSocialLinks = new Block 8621 { 8622 Id = "MasterFooterSocialLinks", 8623 SortId = 50, 8624 Template = RenderFooterSocialLinks(areaInfo), 8625 Design = new Design{ 8626 CssClass = "footer__social col-md-4 col-lg-3" 8627 } 8628 }; 8629 8630 Block masterFooterPayments = new Block 8631 { 8632 Id = "MasterFooterPayments", 8633 SortId = 60, 8634 Template = RenderFooterPayments(areaInfo), 8635 Design = new Design{ 8636 CssClass = "footer__payments" 8637 } 8638 }; 8639 8640 Block masterFooterCopyright = new Block 8641 { 8642 Id = "MasterFooterCopyright", 8643 SortId = 10, 8644 Design ={}, 8645 Template = RenderFooterCopyright(areaInfo) 8646 }; 8647 8648 Block compareModal = new Block 8649 { 8650 Id = "MasterFooterModalCompare", 8651 SortId = 80, 8652 Template = RenderCompareModule(), 8653 Design = new Design 8654 { 8655 Size = "12", 8656 RenderType = RenderType.Column 8657 }, 8658 SkipRenderBlocksList = true 8659 }; 8660 footerBlocksPage.Add("MasterFooter", compareModal); 8661 8662 8663 //Begin configuration of blocks 8664 string footerLayout = areaInfo.FooterLayout; 8665 8666 switch (footerLayout) 8667 { 8668 case "1": 8669 masterFooter1.Design.Size = "3"; 8670 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 8671 footerBlocksPage.Add("MasterFooter1", masterFooterAddress); 8672 footerBlocksPage.RemoveBlock(masterFooterSocialLinks); 8673 footerBlocksPage.Add("MasterFooter1", masterFooterPayments); 8674 8675 masterFooter2.Design.Size = "3"; 8676 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 8677 8678 masterFooter3.Design.Size = "3"; 8679 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 8680 //footerBlocksPage.Add("MasterFooter3", masterFooterSocialLinks); 8681 8682 masterFooter4.Design.Size = "3"; 8683 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 8684 8685 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright); 8686 8687 footerBlocksPage.RemoveBlock(masterFooter6); 8688 footerBlocksPage.RemoveBlock(masterFooter7); 8689 footerBlocksPage.RemoveBlock(masterFooter8); 8690 break; 8691 8692 case "2": 8693 masterFooter1.Design.Size = "12"; 8694 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 8695 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 8696 if (isB2B) 8697 { 8698 footerBlocksPage.Add("MasterFooter1", masterFooterTopCenterContentB2B); 8699 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter); 8700 } 8701 else 8702 { 8703 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops); 8704 footerBlocksPage.Add("MasterFooter1", masterFooterNewsletter); 8705 } 8706 8707 8708 masterFooter2.Design.Size = "3"; 8709 //footerBlocksPage.Add("MasterFooter2", masterFooterAddress); 8710 //footerBlocksPage.Add("MasterFooter2", masterFooterPayments); 8711 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 8712 8713 masterFooter3.Design.Size = "3"; 8714 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 8715 8716 masterFooter4.Design.Size = "3"; 8717 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 8718 8719 8720 masterFooter5.Design.Size = "3"; 8721 footerBlocksPage.Add("MasterFooter5", masterFooterNewsletterSignUp); 8722 8723 8724 footerBlocksPage.Add("MasterFooter6", masterFooterCopyright); 8725 8726 footerBlocksPage.RemoveBlock(masterFooter7); 8727 footerBlocksPage.RemoveBlock(masterFooter8); 8728 break; 8729 case "3": 8730 masterFooter1.Design.Size = "4"; 8731 // footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 8732 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 8733 footerBlocksPage.Add("MasterFooter1", masterFooterPartnerShops); 8734 8735 masterFooter2.Design.Size = "4"; 8736 // footerBlocksPage.Add("MasterFooter2", masterFooterAddress); 8737 // footerBlocksPage.Add("MasterFooter2", masterFooterPayments); 8738 footerBlocksPage.Add("MasterFooter2", masterFooterBeInspired); 8739 8740 masterFooter3.Design.Size = "4"; 8741 // footerBlocksPage.Add("MasterFooter3", masterFooterColumnOne); 8742 footerBlocksPage.Add("MasterFooter3", masterFooterGetConnected); 8743 8744 masterFooter4.Design.Size = "12"; 8745 // footerBlocksPage.Add("MasterFooter4", masterFooterColumnTwo); 8746 footerBlocksPage.Add("MasterFooter4", masterFooterCopyright); 8747 footerBlocksPage.Add("MasterFooter4", masterFooterColumnOne); 8748 8749 footerBlocksPage.RemoveBlock(masterFooter5); 8750 footerBlocksPage.RemoveBlock(masterFooter6); 8751 footerBlocksPage.RemoveBlock(masterFooter7); 8752 footerBlocksPage.RemoveBlock(masterFooter8); 8753 break; 8754 8755 default: 8756 footerBlocksPage.Add("MasterFooter1", masterFooterLogo); 8757 footerBlocksPage.Add("MasterFooter1", masterFooterAddress); 8758 footerBlocksPage.Add("MasterFooter1", masterFooterSocialLinks); 8759 footerBlocksPage.Add("MasterFooter1", masterFooterPayments); 8760 8761 masterFooter2.Design.Size = "3"; 8762 footerBlocksPage.Add("MasterFooter2", masterFooterColumnOne); 8763 8764 masterFooter3.Design.Size = "3"; 8765 footerBlocksPage.Add("MasterFooter3", masterFooterColumnTwo); 8766 8767 masterFooter4.Design.Size = "3"; 8768 footerBlocksPage.Add("MasterFooter4", masterFooterColumnThree); 8769 8770 footerBlocksPage.Add("MasterFooter5", masterFooterCopyright); 8771 footerBlocksPage.RemoveBlock(masterFooter6); 8772 footerBlocksPage.RemoveBlock(masterFooter7); 8773 footerBlocksPage.RemoveBlock(masterFooter8); 8774 break; 8775 } 8776 } 8777 8778 @helper RenderFooter(Df.Dw.Rapido.AreaInfo areaInfo) { 8779 List<Block> subBlocks = this.footerBlocksPage.GetBlockListById("MasterFooterContent").OrderBy(item => item.SortId).ToList(); 8780 string footerClass = "footer__theme-" + areaInfo.FooterLayout; 8781 <footer class="footer bg-neutral pb-0 pt-3 py-lg-4 mt-4"> 8782 <div class="section__container container"> 8783 <div class="section__content"> 8784 <div class="block w-100"> 8785 <div class="grid-1 grid-md-8 grid-lg-4"> 8786 @RenderBlockList(subBlocks) 8787 </div> 8788 </div> 8789 </div> 8790 </div> 8791 </footer> 8792 8793 8794 8795 @* @RenderFooterCopyright(areaInfo) *@ 8796 } 8797 8798 8799 @helper RenderFooterLogo(Df.Dw.Rapido.AreaInfo areaInfo) 8800 { 8801 var footerLogo = ""; 8802 if (Path.GetExtension(areaInfo.FooterLogo).ToLower() != ".svg") 8803 { 8804 footerLogo = "/Admin/Public/GetImage.ashx?height=60&amp;crop=5&amp;Compression=75&amp;image=" + areaInfo.FooterLogo; 8805 } 8806 else 8807 { 8808 footerLogo = HttpUtility.UrlDecode(areaInfo.FooterLogo); 8809 } 8810 8811 8812 <a href="@areaInfo.FirstPageLink" class="footer__logo block mb-2"> 8813 <img width="300" height="57" src="@areaInfo.FooterLogo" alt="@Translate(Translations.General.Logo)" /> 8814 </a> 8815 8816 } 8817 @helper RenderFooterTopCenterContentB2B() 8818 { 8819 <div class="grid-2 w-100"> 8820 <div style="max-width: 12rem;"> 8821 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.63 44.65"> 8822 <g id="Layer_2" data-name="Layer 2"> 8823 <g id="Layer_1-2" data-name="Layer 1"> 8824 <g> 8825 <g> 8826 <path d="M17.21,44.65h-.82v-10h.82Z" fill="#5e5f5f"/> 8827 <path d="M30.43,44.65l-5-8.61v8.61h-.86v-10h.86l5,8.6v-8.6h.82v10Z" fill="#5e5f5f"/> 8828 <path d="M45.27,34.61v.86H42.36v9.18H41.5V35.47H38.59v-.86Z" fill="#5e5f5f"/> 8829 <path d="M53.45,35.47v5.41h5v.84h-5v2.11h5.84v.82H52.61v-10h6.68v.86Z" fill="#5e5f5f"/> 8830 <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"/> 8831 <path d="M81.49,44.65h-.82v-10h.82Z" fill="#5e5f5f"/> 8832 <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"/> 8833 <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"/> 8834 </g> 8835 <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"/> 8836 <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"/> 8837 <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"/> 8838 <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"/> 8839 <rect x="106.85" width="3.26" height="24.9" fill="#5e5f5f"/> 8840 <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"/> 8841 <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"/> 8842 </g> 8843 </g> 8844 </g> 8845 </svg> 8846 8847 </div> 8848 <div style="max-width: 16rem;"> 8849 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152.75 47.06"> 8850 <g id="Layer_2" data-name="Layer 2"> 8851 <g id="Layer_1-2" data-name="Layer 1"> 8852 <g> 8853 <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"/> 8854 <g> 8855 <rect x="62.45" y="10.14" width="1.66" height="14.73" fill="#5e5f5f"/> 8856 <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"/> 8857 <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"/> 8858 <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"/> 8859 <rect x="119.12" y="10.14" width="1.66" height="14.73" fill="#5e5f5f"/> 8860 <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"/> 8861 <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"/> 8862 <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"/> 8863 <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"/> 8864 <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"/> 8865 <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"/> 8866 <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"/> 8867 <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"/> 8868 <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"/> 8869 <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"/> 8870 <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"/> 8871 <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"/> 8872 <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"/> 8873 <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"/> 8874 <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"/> 8875 <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"/> 8876 </g> 8877 </g> 8878 </g> 8879 </g> 8880 </svg> 8881 8882 </div> 8883 </div> 8884 } 8885 @helper RenderFooterColumn(string header, string content, IList<ItemViewModel> links, string className = "column") { 8886 8887 8888 <div class="@className"> 8889 @if (!string.IsNullOrEmpty(header)) 8890 { 8891 <h6 class="footer__heading h5 mb-2 weight-bold">@header</h6> 8892 } 8893 8894 @if(links.Any()){ 8895 <nav class="footer-links child-mb-1 font-md"> 8896 @foreach(var pageLink in links){ 8897 string link = pageLink.GetString("Link"); 8898 string title = pageLink.GetString("Title"); 8899 string icon = pageLink.GetString("Icon"); 8900 string newWindow = pageLink.GetBoolean("NewWindow") ? " target=\"_blank\"" : ""; 8901 8902 if (!string.IsNullOrEmpty(newWindow)) 8903 { 8904 <a href="@link" @newWindow rel="noreferrer" class="footer-links__link block w-100">@icon @title</a> 8905 } 8906 else 8907 { 8908 <a href="@link" class="footer-links__link block w-100">@icon @title</a> 8909 } 8910 8911 8912 } 8913 </nav> 8914 }else{ 8915 if (!string.IsNullOrEmpty(header)) 8916 { 8917 <div class="content"> 8918 @content 8919 </div> 8920 } 8921 8922 } 8923 </div> 8924 8925 } 8926 8927 @helper RenderFooterNewsletterSignUp(Df.Dw.Rapido.AreaInfo areaInfo) { 8928 if (Model.Area.Item.GetItem("Layout").GetBoolean("FooterNewsletterSignUp")) 8929 { 8930 8931 <div class="newsletter"> 8932 <h6 class="footer__heading h5 mb-2 weight-bold">@Translate(Translations.General.SubscribeToNewsletter)</h6> 8933 8934 <form class="form block w-100" id="NewsletterRedirect" name="NewsletterRedirect" action='/Default.aspx' method="get" enctype="multipart/form-data"> 8935 <input name="ID" value="@areaInfo.NewsletterSignUpPage.ID" type="hidden" /> 8936 @*<label for="NewsletterEmail">@Translate(Translations.General.SignUpMessage)</label>*@ 8937 <div class="newsletter__container flex-wrap"> 8938 <df-input name="NewsletterEmail" id="NewsletterEmail" type="email" placeholder='@Translate(Translations.General.YourEmailAddress)' value="" ></df-input> 8939 <button type="submit" class="btn-fill--brand" id="Submitter">@Translate(Translations.General.Go)</button> 8940 </div> 8941 </form> 8942 8943 </div> 8944 } 8945 } 8946 8947 @helper RenderFooterSocialLinks(Df.Dw.Rapido.AreaInfo areaInfo) { 8948 if (areaInfo.FooterSocialLinks != null && areaInfo.FooterSocialLinks.Count > 0) 8949 { 8950 8951 <div class="contact__social-media flex-wrap align-items-center child-mr-2 child-mr-xxl-4"> 8952 <h6 class="footer__heading h5 weight-bold w-100 w-md-auto mb-2 mb-md-0">@Translate(Translations.General.SocialLinks)</h6> 8953 @foreach (var socialitem in areaInfo.FooterSocialLinks) 8954 { 8955 var socialIcon = socialitem.GetValue("Icon") as Dynamicweb.Frontend.ListViewModel; 8956 string socialIconClass = socialIcon.SelectedValue; 8957 string socialIconTitle = socialIcon.SelectedName.ToLower(); 8958 string socialLink = socialitem.GetString("Link"); 8959 8960 <a href="@socialLink" target="_blank" class="btn btn-icon btn-md btn-@socialIconTitle" title="@socialIconTitle" rel="noopener" class="">@RenderInlineSvg("default","logo-" + socialIconTitle)</a> 8961 } 8962 </div> 8963 } 8964 } 8965 8966 @helper RenderFooterPartnerShops() { 8967 <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;"> 8968 <div class="ico"> 8969 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.7 23.23"> 8970 <g id="Layer_2" data-name="Layer 2"> 8971 <g id="Layer_1-2" data-name="Layer 1"> 8972 <g> 8973 <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)"/> 8974 <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)"/> 8975 </g> 8976 </g> 8977 </g> 8978 </svg> 8979 8980 </div> 8981 </span></a> 8982 8983 } 8984 @helper RenderFooterNewsletter() { 8985 int newsletterPageID = GetPageIdByNavigationTag("NewsletterSignUp"); 8986 <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"> 8987 <div class="ico"> 8988 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43.08 17.46"> 8989 <g id="Layer_2" data-name="Layer 2"> 8990 <g id="Layer_1-2" data-name="Layer 1"> 8991 <g> 8992 <g id="Layer_2-2" data-name="Layer 2"> 8993 <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)"/> 8994 </g> 8995 <g> 8996 <line x1="0.5" y1="0.65" x2="18" y2="0.65" fill="#fff"/> 8997 <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)"/> 8998 </g> 8999 <g> 9000 <line x1="3.96" y1="3.86" x2="16.8" y2="3.86" fill="#fff"/> 9001 <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)"/> 9002 </g> 9003 <g> 9004 <line x1="7.87" y1="7.08" x2="16.04" y2="7.08" fill="#fff"/> 9005 <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)"/> 9006 </g> 9007 </g> 9008 </g> 9009 </g> 9010 </svg> 9011 9012 </div> 9013 </span></a> 9014 9015 } 9016 @helper RenderFooterPayments(Df.Dw.Rapido.AreaInfo areaInfo) { 9017 <div class="payment--icons"> 9018 @foreach (var payment in areaInfo.FooterPayments) 9019 { 9020 var paymentItem = payment.GetValue("CardTypeOrVerifiedPayment") as Dynamicweb.Frontend.ListViewModel; 9021 string paymentImage = null; 9022 string paymentTitle = paymentItem.SelectedName; 9023 ListOptionViewModel selected = paymentItem.SelectedOptions.FirstOrDefault(); 9024 if (selected != null) 9025 { 9026 paymentImage = selected.Icon; 9027 } 9028 9029 <img class="b-lazy" src="/Admin/Public/GetImage.ashx?height=40&Compression=75&image=@paymentImage" alt="@paymentTitle" title="@paymentTitle" /> 9030 } 9031 </div> 9032 } 9033 9034 @helper RenderFooterCopyright(Df.Dw.Rapido.AreaInfo areaInfo) { 9035 <span class="h5 font-condensed order-1 order-xs-0 mt-2 mt-xs-0 font-md">@areaInfo.FooterCopyrightText</span> 9036 } 9037 9038 @helper RenderFooterAddress(Df.Dw.Rapido.AreaInfo areaInfo) 9039 { 9040 <h6 class="footer__heading h5 weight-bold mb-2">@Translate(Translations.General.Contact)</h6> 9041 <div class="company-address font-md"> 9042 <p>@areaInfo.CompanyAddressStreetAddress, @areaInfo.CompanyAddressPostalCode</p> 9043 <p>@areaInfo.CompanyAddressCity, @areaInfo.CompanyAddressRegion</p> 9044 <p>@areaInfo.CompanyAddressCountry</p> 9045 <p>@areaInfo.ContactEmail</p> 9046 <p>@areaInfo.ContactNumber</p> 9047 </div> 9048 9049 } 9050 @helper RenderBeInspired() 9051 { 9052 <div class="flex-wrap align-items-center"> 9053 <h5 class="footer__heading h4 weight-normal">Be Inspired</h5> 9054 </div> 9055 } 9056 @helper RenderGetConnected() 9057 { 9058 <div class="flex-wrap align-items-center"> 9059 <h5 class="footer__heading h4 weight-normal">Get Connected</h5> 9060 </div> 9061 } 9062 @helper RenderCompareModule() { 9063 var compareMaxItems = Pageview.Device.ToString() == "Mobile" ? "2" : "3"; 9064 var DesignFolder = Pageview.Layout.Design.Name; 9065 <div class="row compareWrapper hidden" 9066 data-compare-new-list="@Translate("Compare new list")" 9067 data-compare-keep-list="@Translate("Compare keep list")" 9068 data-compare-different-group="@Translate("Compare product is in different group")" 9069 data-compare-list-full="@Translate("Compare list is full")" data-compare-max-items="@compareMaxItems"> 9070 9071 <div class="compareHeader"> 9072 <span> @Translate("Compare products")</span> 9073 <button id="collapseCompareWrapper" class="btn-icon" title="@Translate("Compare products")">@RenderInlineSvg("default","compare")</button> 9074 </div> 9075 9076 <div class="compareList"></div> 9077 <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> 9078 </div> 9079 } 9080 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9081 9082 @using System 9083 @using System.Web 9084 @using Dynamicweb.Rapido.Blocks.Extensibility 9085 @using Dynamicweb.Rapido.Blocks 9086 @using Dynamicweb.Ecommerce.Common 9087 @* using System.Collections.Generic *@ 9088 9089 @{ 9090 BlocksPage referencesBlocksPage = BlocksPage.GetBlockPage("Master"); 9091 9092 Block masterScriptReferences = new Block() 9093 { 9094 Id = "MasterScriptReferences", 9095 SortId = 1, 9096 Template = RenderMasterScriptReferences() 9097 }; 9098 referencesBlocksPage.Add(MasterBlockId.MasterReferences, masterScriptReferences); 9099 } 9100 9101 @helper RenderMasterScriptReferences() { 9102 @* <script src="/Files/Templates/Designs/Wizaris/dist/js/app.min.js"></script> *@ 9103 @* PushPromise("/Files/Templates/Designs/Wizaris/dist/js/app.min.js"); *@ 9104 9105 @RenderSnippet("Script") 9106 } 9107 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9108 9109 @using System 9110 @using System.Web 9111 @using Df.Dw 9112 @using Dynamicweb.Rapido.Blocks.Extensibility 9113 @using Dynamicweb.Rapido.Blocks 9114 @* using System.Collections.Generic *@ 9115 9116 @{ 9117 BlocksPage searchBlocksPage = BlocksPage.GetBlockPage("Master"); 9118 bool isFavoriteList = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("ListID")); 9119 9120 if (!areaInfo.NavigationItemsHideSearch || isFavoriteList) 9121 { 9122 Block masterSearchScriptTemplates = new Block() 9123 { 9124 Id = "MasterSearchScriptTemplates", 9125 SortId = 1, 9126 Template = RenderSearchScriptTemplates() 9127 }; 9128 9129 searchBlocksPage.Add(MasterBlockId.MasterBottomSnippets, masterSearchScriptTemplates); 9130 } 9131 } 9132 9133 @helper RenderSearchScriptTemplates() 9134 { 9135 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9136 var user = User.GetCurrentExtranetUser(); 9137 bool onlyPreview = areaInfo.OnlyPreviewForAnonymous && user == null; 9138 var DesignFolder = Pageview.Layout.Design.Name; 9139 9140 <script id="SearchGroupsTemplate" type="text/x-template"> 9141 {{#.}} 9142 <li class="dropdown__item" onclick="Search.UpdateGroupSelection(this)" data-group-id="{{id}}">{{name}}</li> 9143 {{/.}} 9144 </script> 9145 9146 <script id="SearchProductsTemplate" type="text/x-template"> 9147 {{#each this}} 9148 {{#Product}} 9149 {{#ifCond template "!==" "SearchMore"}} 9150 <li class="item bg-neutral p-2"> 9151 @if (areaInfo.FacebookPixelID.HasValue()) 9152 { 9153 <text>{{{facebookPixelSearch name number priceDouble currency searchParameter}}}</text> 9154 } 9155 @if (areaInfo.GoogleTagManagerID.HasValue()) 9156 { 9157 <text>{{{googleEnchantImpression 'Search results' currency googleImpression}}}</text> 9158 } 9159 9160 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="item__title grid-auto-1 text-decoration-none" title="{{name}}"> 9161 <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}}"> 9162 9163 <div class="item__name order--1">{{name}}</div> 9164 @if (areaInfo.ShowPrice && !onlyPreview) 9165 { 9166 if (areaInfo.PointShopOnly) 9167 { 9168 <text> 9169 {{#if havePointPrice}} 9170 <span>{{points}}</span> @Translate(Translations.Cart.Points) 9171 {{else}} 9172 <small>@Translate(Translations.General.NotAvailable)</small> 9173 {{/if}} 9174 {{#unless canBePurchasedWithPoints}} 9175 {{#if havePointPrice}} 9176 <small>@Translate(Translations.Cart.NotEnoughPointsToBuyThis)</small> 9177 {{/if}} 9178 {{/unless}} 9179 </text> 9180 } 9181 else 9182 { 9183 <div>{{price}}</div> 9184 } 9185 } 9186 9187 </a> 9188 <div class="item__actions hidden"> 9189 @if (areaInfo.ProductListShowCartButton && !onlyPreview) { 9190 if (areaInfo.PointShopOnly) 9191 { 9192 <button type="button" class="btn-icon--dark {{hideBuyOptions}} js-ignore-click-outside {{#unless canBePurchasedWithPoints}}js-stay-disabled{{/unless}}" name="CartCmd" value="addWithPoints" 9193 onclick="Cart.AddToCart(event, { 9194 id: '{{productId}}', 9195 quantity: 1, 9196 buyForPoints: true, 9197 productInfo: {{productInfo}} 9198 }); {{facebookPixelAction}}" {{disabledBuyButton}}> 9199 <ion-icon name="arrow-forward"></ion-icon> 9200 </button> 9201 } else { 9202 <form> 9203 <input type="hidden" name="ProductID" value="{{productId}}" /> 9204 @*<input type="hidden" name="Quantity" value="1" />*@ 9205 <input type="hidden" name="ID" value="@areaInfo.MiniCartFeedPage.ID.ToString()" /> 9206 <input type="hidden" name="redirect" value="false" /> 9207 <input type="hidden" name="CartCmd" value="add" /> 9208 <df-quantity name="Quantity" value="1" class="item__quantity"></df-quantity> 9209 <button type="button" class="btn-icon {{hideBuyOptions}} item__addToCart" data-role="add-to-cart" message-success="@Translate(Translations.Cart.ProductIsAddedToTheCart)"> 9210 <ion-icon src="/Files/Templates/Designs/@DesignFolder/icons/default/cart.svg"></ion-icon> 9211 </button> 9212 </form> 9213 } 9214 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="btn-icon--dark hidden {{hideViewMore}}" title="@Translate(Translations.General.View)"><ion-icon name="arrow-forward"></ion-icon></a> 9215 } 9216 else if (areaInfo.ProductListShowViewButton) 9217 { 9218 <a href="{{link}}" onclick="{{googleImpressionClick}}" class="btn js-ignore-click-outside" title="@Translate(Translations.General.View)">@Translate(Translations.General.View)</a> 9219 } 9220 @if (areaInfo.ProductListShowAddToDownloadButton) 9221 { 9222 <button type="button" class="btn js-add-to-downloads" title="@Translate(Translations.General.Add)" data-product-id="{{productId}}"> 9223 <i class="fas fa-plus js-button-icon"></i> 9224 </button> 9225 } 9226 </div> 9227 </li> 9228 {{/ifCond}} 9229 {{#ifCond template "===" "SearchMore"}} 9230 @*{{>SearchMoreProducts}}*@ 9231 <li class="item item--full {{stickToBottom}}"> 9232 <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> 9233 </li> 9234 {{/ifCond}} 9235 {{/Product}} 9236 {{else}} 9237 <li class="dropdown__item"> 9238 @Translate(Translations.General.YourSearchGave0Results) 9239 </li> 9240 {{/each}} 9241 </script> 9242 9243 <script id="RecentSearchesTemplate" type="text/x-template"> 9244 <li class="recent-searches-header"> 9245 <h4>@Translate(Translations.Products.RecentSearches)</h4> 9246 <button class="clear-recent-searches"> Clear </button> 9247 </li> 9248 {{#each RecentSearches}} 9249 <li> {{this}} </li> 9250 {{/each}} 9251 </script> 9252 9253 <script id="SearchCategoriesTemplate" type="text/x-template"> 9254 <df-select id="headerSearch__categories" name="headerSearch__categories" value="" label="@Translate(Translations.Products.Categories)"> 9255 {{#each this}} 9256 <df-option value="{{id}}" label="{{name}}"><span>{{name}}</span></df-option> 9257 {{/each}} 9258 </df-select> 9259 9260 </script> 9261 9262 <script id="SearchMoreProducts" type="text/x-template"> 9263 <li class="dropdown__item {{stickToBottom}}"> 9264 <button type="button" class="btn" data-results-page="/Default.aspx?ID=@areaInfo.ProductsPage.ID"> @Translate(Translations.General.ViewAll)</button> 9265 </li> 9266 </script> 9267 9268 <script id="SearchMorePages" type="text/x-template"> 9269 <li class="dropdown__item {{stickToBottom}}"> 9270 <button type="button" class="btn" data-results-page="/Default.aspx?ID=@areaInfo.ProductsPage.ID"> @Translate(Translations.General.ViewAll)</button> 9271 </li> 9272 </script> 9273 9274 <script id="SearchPagesTemplate" type="text/x-template"> 9275 {{#each .}} 9276 {{#ifCond template "!==" "SearchMore"}} 9277 <li class="dropdown__item"> 9278 <a href="/Default.aspx?ID={{id}}" class="js-typeahead-link"> 9279 <i class="fa {{icon}}"></i> 9280 <div class="js-typeahead-name">{{name}}</div> 9281 </a> 9282 </li> 9283 {{/ifCond}} 9284 {{#ifCond template "===" "SearchMore"}} 9285 {{>SearchMorePages}} 9286 {{/ifCond}} 9287 {{else}} 9288 <li> 9289 @Translate(Translations.General.YourSearchGave0Results) 9290 </li> 9291 {{/each}} 9292 </script> 9293 9294 <script id="SearchPagesTemplateWrap" type="text/x-template"> 9295 <div class="dropdown__column-header">@Translate(Translations.General.Pages)</div> 9296 <ul class="dropdown__list"> 9297 {{>SearchPagesTemplate}} 9298 </ul> 9299 </script> 9300 9301 <script id="SearchProductsTemplateWrap" type="text/x-template"> 9302 <div>@Translate(Translations.Products.ProductsGeneral)</div> 9303 <ul> 9304 {{>SearchProductsTemplate}} 9305 </ul> 9306 </script> 9307 9308 9309 } 9310 9311 9312 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9313 9314 @using System 9315 @using System.Web 9316 @using Df.Dw 9317 @using Dynamicweb.Rapido.Blocks.Extensibility 9318 @using Dynamicweb.Rapido.Blocks 9319 @* using System.Collections.Generic *@ 9320 9321 @{ 9322 BlocksPage bottomSnippetsBlocksPage = BlocksPage.GetBlockPage("Master"); 9323 9324 Block primaryBottomSnippets = new Block() 9325 { 9326 Id = "MasterJavascriptInitializers", 9327 SortId = 100, 9328 Template = RenderPrimaryBottomSnippets() 9329 }; 9330 bottomSnippetsBlocksPage.Add(MasterBlockId.MasterReferences, primaryBottomSnippets); 9331 } 9332 9333 @helper RenderPrimaryBottomSnippets() { 9334 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9335 9336 if (areaInfo.IsWireframeMode) 9337 { 9338 <script> 9339 Wireframe.Init(true); 9340 </script> 9341 } 9342 9343 9344 if (areaInfo.GoogleTagManagerID.HasValue()) 9345 { 9346 <script> 9347 document.addEventListener('addToCart', function(event) { 9348 var googleImpression = event.detail.productInfo.googleImpression; 9349 dataLayer.push({ 9350 'event': 'addToCart', 9351 'ecommerce': { 9352 'currencyCode': '@Dynamicweb.Ecommerce.Services.Currencies.GetDefaultCurrency().Code', 9353 'add': { 9354 'products': [{ 9355 'name': googleImpression.name, 9356 'id': googleImpression.id, 9357 'price': googleImpression.price, 9358 'brand': googleImpression.brand, 9359 'category': googleImpression.category, 9360 'variant': googleImpression.variant, 9361 'quantity': event.detail.quantity 9362 }] 9363 } 9364 } 9365 }); 9366 }); 9367 </script> 9368 } 9369 9370 //if digitalwarehouse 9371 if (Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("ShowDownloadCart")) 9372 { 9373 string cartContextId = Converter.ToString(HttpContext.Current.Application["DownloadCartContext"]); 9374 9375 if (!cartContextId.HasValue()) { 9376 var moduleProps = Dynamicweb.Modules.Properties.GetParagraphModuleSettings(GetPageIdByNavigationTag("DownloadCart"), "eCom_CartV2"); 9377 var cartSettings = new Dynamicweb.Ecommerce.Cart.ModuleSettings(moduleProps); 9378 cartContextId = cartSettings.OrderContextID; 9379 HttpContext.Current.Application["DownloadCartContext"] = cartContextId; 9380 } 9381 9382 <script> 9383 let downloadCart = new DownloadCart({ 9384 cartPageId: @GetPageIdByNavigationTag("MiniCartFeed"), 9385 contextId: "@cartContextId", 9386 addButtonText: "@Translate(Translations.General.Add)", 9387 removeButtonText: "@Translate(Translations.General.Remove)" 9388 }); 9389 </script> 9390 } 9391 <!--$$Javascripts--> 9392 9393 @RenderSnippet("Messenger") 9394 } 9395 9396 9397 9398 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 9399 @using Dynamicweb.Core 9400 @using System 9401 @using System.Web 9402 @using System.Collections.Generic 9403 @using Dynamicweb.Rapido.Blocks 9404 9405 @{ 9406 BlocksPage masterBlocksPage = BlocksPage.GetBlockPage("Master"); 9407 9408 Block StickersTemplateRefactored = new Block() 9409 { 9410 Id = "StickersTemplateRefactored", 9411 SortId = 100, 9412 Template = RenderStickersTemplateRefactored() 9413 }; 9414 masterBlocksPage.Add(MasterBlockId.MasterBottomSnippets, StickersTemplateRefactored); 9415 } 9416 9417 9418 @helper RenderStickersTemplateRefactored() { 9419 <script id="StickersContainer" type="text/x-template"> 9420 <div class="stickers-container stickers-container--{{position}}"> 9421 <div class="list"> 9422 {{#Stickers}} 9423 {{>Sticker}} 9424 {{/Stickers}} 9425 </div> 9426 </div> 9427 </script> 9428 9429 <script id="Sticker" type="text/x-template"> 9430 <div class="list-item"> 9431 <div class="sticker {{className}} font-sm px-2 py-1">{{text}}</div> 9432 </div> 9433 </script> 9434 9435 <script id="MiniSticker" type="text/x-template"> 9436 <div class="sticker stickers-container__tag--micro {{className}}">{{text}}</div> 9437 </script> 9438 } 9439 9440 @if (File.Exists(HttpContext.Current.Server.MapPath("Files/Templates/Designs/@DesignFolder/MasterBlocks/Custom__Blocks.cshtml"))) 9441 { 9442 <text>@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9443 9444 @using System 9445 @using System.Web 9446 @using Dynamicweb.Rapido.Blocks 9447 @using Dynamicweb.Rapido.Blocks.Extensibility 9448 @* using System.Collections.Generic *@ 9449 9450 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9451 9452 @using System 9453 @using System.Web 9454 @using Df.Dw 9455 @using Dynamicweb.Rapido.Blocks.Extensibility 9456 @using Dynamicweb.Rapido.Blocks 9457 @* using System.Collections.Generic *@ 9458 9459 9460 @{ 9461 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 9462 { 9463 Block masterToolsCustom = new Block() 9464 { 9465 Id = "MasterDesktopTools", 9466 SortId = 30, 9467 Template = RenderDesktopToolsCustom(), 9468 SkipRenderBlocksList = true, 9469 BlocksList = new List<Block> 9470 { 9471 9472 new Block { 9473 Id = "MasterDesktopToolsText", 9474 SortId = 10, 9475 Template = RenderDesktopToolsTextCustom() 9476 }, 9477 new Block { 9478 Id = "MasterDesktopToolsNavigation", 9479 SortId = 20, 9480 Template = RenderDesktopToolsNavigationCustom() 9481 } 9482 } 9483 }; 9484 headerBlocksPage.ReplaceBlock(masterToolsCustom); 9485 } 9486 } 9487 9488 @helper RenderDesktopToolsCustom() 9489 { 9490 List<Block> subBlocks = headerBlocksPage.GetBlockListById("MasterDesktopTools").OrderBy(item => item.SortId).ToList(); 9491 9492 if (subBlocks.Count > 0) 9493 { 9494 <div class="m">@RenderBlockList(subBlocks)</div> 9495 } 9496 } 9497 9498 @helper RenderDesktopToolsTextCustom() 9499 { 9500 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9501 9502 if (areaInfo.ToolsText.HasValue()) 9503 { 9504 <div class="nav--tertiary m1"> 9505 <span><i class="@areaInfo.PhoneIcon"></i> @areaInfo.ContactNumber</span> 9506 <span><i class="@areaInfo.EmailIcon"></i> @areaInfo.ContactEmail</span> 9507 </div> 9508 } 9509 } 9510 9511 @helper RenderDesktopToolsNavigationCustom() 9512 { 9513 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9514 9515 @* if (areaInfo.RenderPagesInToolBar) 9516 { *@ 9517 <div class="nav--secondary m2"> 9518 @* @RenderNavigation(new 9519 { 9520 id = "topToolsNavigation", 9521 template = "TopMenu.xslt" 9522 }) *@ 9523 Urmareste comanda 9524 @RenderLanguageSelectorCustom() 9525 </div> 9526 @* } *@ 9527 } 9528 9529 @helper RenderLanguageSelectorCustom() 9530 { 9531 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9532 9533 if (Model.Languages.Count > 1) 9534 { 9535 9536 <div> 9537 <i class="@areaInfo.LanguageIcon"></i> 9538 </div> 9539 <div> 9540 @foreach (var lang in Model.Languages) 9541 { 9542 string langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + "\"></span>" + lang.Name; 9543 string cultureName = Regex.Replace(Dynamicweb.Services.Areas.GetArea(lang.ID).CultureInfo.NativeName, @" ?\(.*?\)", string.Empty); 9544 cultureName = char.ToUpper(cultureName[0]) + cultureName.Substring(1); 9545 9546 if (areaInfo.LanguageViewType == "flag-culture") 9547 { 9548 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span> " + cultureName; 9549 } 9550 9551 if (areaInfo.LanguageViewType == "flag") 9552 { 9553 langInfo = "<span class=\"flag-icon flag-icon-" + Dynamicweb.Services.Areas.GetArea(lang.ID).EcomCountryCode.ToLower() + " \"></span>"; 9554 } 9555 9556 if (areaInfo.LanguageViewType == "name") 9557 { 9558 langInfo = lang.Name; 9559 } 9560 9561 if (areaInfo.LanguageViewType == "culture") 9562 { 9563 langInfo = cultureName; 9564 } 9565 9566 <div> 9567 <a href="@areaInfo.LinkStart@Dynamicweb.Services.Pages.GetPage(lang.Page.ID).Area.ID">@langInfo</a> 9568 </div> 9569 } 9570 </div> 9571 } 9572 } 9573 </text> 9574 } 9575 9576 9577 @functions { 9578 public class ManifestIcon 9579 { 9580 public string 9581 src, 9582 type, 9583 sizes; 9584 } 9585 9586 public class Manifest 9587 { 9588 public string 9589 name, 9590 short_name, 9591 start_url, 9592 display, 9593 background_color, 9594 theme_color; 9595 public List<ManifestIcon> icons; 9596 } 9597 } 9598 9599 @{ 9600 if (areaInfo.AppName != null && areaInfo.AppIcon != null) { 9601 Manifest manifest = new Manifest 9602 { 9603 name = areaInfo.AppName, 9604 short_name = areaInfo.AppShortName != null ? areaInfo.AppShortName : areaInfo.AppName, 9605 start_url = "/", 9606 display = "standalone", 9607 background_color = areaInfo.AppBackgroundColor, 9608 theme_color = areaInfo.AppThemeColor 9609 }; 9610 9611 manifest.icons = new List<ManifestIcon> { 9612 new ManifestIcon { 9613 src = "/Admin/Public/GetImage.ashx?width=192&height=192&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 9614 sizes = "192x192", 9615 type = "image/png" 9616 }, 9617 new ManifestIcon { 9618 src = "/Admin/Public/GetImage.ashx?width=512&height=512&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 9619 sizes = "512x512", 9620 type = "image/png" 9621 }, 9622 new ManifestIcon { 9623 src = "/Admin/Public/GetImage.ashx?width=1024&height=1024&crop=5&image=" + areaInfo.AppIcon.PathUrlEncoded, 9624 sizes = "1024x1024", 9625 type = "image/png" 9626 } 9627 }; 9628 9629 string manifestFilePath = HttpContext.Current.Request.MapPath("/Files/Templates/Designs/"+DesignFolder+"/manifest.json"); 9630 string manifestJSON = Newtonsoft.Json.JsonConvert.SerializeObject(manifest); 9631 string currentManifest = File.ReadAllText(manifestFilePath); 9632 9633 if (manifestJSON != currentManifest) 9634 { 9635 File.WriteAllText(manifestFilePath, manifestJSON); 9636 } 9637 } 9638 } 9639 9640 9641 @{ 9642 var swatches = new Dynamicweb.Content.Items.ColorSwatchService(); 9643 var brandColors = swatches.GetColorSwatch(1); 9644 string brandColorOne = brandColors.Palette["BrandColor1"]; 9645 string currentLang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 9646 bool isNavigationStickyMenu = Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet" && Model.Area.Item.GetItem("Layout").GetItem("Header").GetBoolean("StickyTop"); 9647 string stickyTop = isNavigationStickyMenu ? "header--sticky" : ""; 9648 string generalB2B = isB2B ? "general--b2c" : ""; 9649 } 9650 9651 <!DOCTYPE html> 9652 9653 <html lang="@currentLang"> 9654 <head> 9655 @{ 9656 bool debugSpeedTest = !string.IsNullOrEmpty(HttpContext.Current.Request["speedtest"]) ? true : false; 9657 if (!debugSpeedTest) 9658 { 9659 <!-- Global site tag (gtag.js) - Google Analytics --> 9660 <script defer src="https://www.googletagmanager.com/gtag/js?id=UA-162570117-1"></script> 9661 <script> 9662 window.dataLayer = window.dataLayer || []; 9663 function gtag(){dataLayer.push(arguments);} 9664 gtag('js', new Date()); 9665 9666 gtag('config', 'UA-162570117-1'); 9667 </script> 9668 9669 9670 9671 9672 } 9673 } 9674 9675 9676 <!-- Rapido version 3.1.1 --> 9677 <meta charset="utf-8"/> 9678 <title>@areaInfo.AreaTitle</title> 9679 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 9680 <meta name="robots" content="index, follow"> 9681 <meta name="theme-color" content="@areaInfo.AppThemeColor"/> 9682 9683 @Model.MetaTags 9684 9685 <meta name="p:domain_verify" content="8bd426b25628ced333803e24b51c0fbb"/> 9686 <meta name="facebook-domain-verification" content="9jl54wm9h8awx6j6mn3oulemooi7q6" /> 9687 <!-- Favicon --> 9688 <link href="@areaInfo.LogoFavicon" rel="icon" type="image/png"> 9689 9690 @* <link relnpm="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"> *@ 9691 9692 @* Libraries *@ 9693 <!-- Google fonts ttt--> 9694 @{ 9695 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))); 9696 } 9697 <link href="https://fonts.googleapis.com/css?family=@family" rel="stylesheet"> 9698 @* Mendola Specific *@ 9699 <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"> 9700 @* <link rel="stylesheet" rel="preload" href="https://use.typekit.net/mki7ofu.css" as="style"> *@ 9701 @* <link rel="stylesheet" id="variablesCss" href="@autoCssLink" type="text/css"> *@ 9702 9703 9704 @* <link rel="stylesheet" href="@wizarisCssLink" type="text/css"> *@ 9705 <link rel="stylesheet" type="text/css" href="@ApplicationCssLink"> 9706 @* <link rel="stylesheet" type="text/css" href="@ApplicationDeferCssLink"> *@ 9707 <script type="module" src="https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js" defer></script> 9708 9709 9710 @* <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"> *@ 9711 @* <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drift-zoom/1.4.0/drift-basic.min.css"/> *@ 9712 @* <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tippy.js@6.2.5/animations/shift-away-subtle.min.css"> *@ 9713 9714 9715 @if (areaInfo.AppName.HasValue()) 9716 { 9717 <link rel="manifest" href="/Files/Templates/Designs/@DesignFolder/manifest.json"> 9718 PushPromise("/Files/Templates/Designs/@DesignFolder/manifest.json"); 9719 } 9720 @if (!debugSpeedTest) 9721 { 9722 <script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=5fad219b08fc500013d1f78a&product=inline-share-buttons' async='async'></script> 9723 } 9724 </head> 9725 9726 <body class="@stickyTop @generalB2B" @areaInfo.PageBackground> 9727 @* The @RenderBlockList base helper is included in Components/GridBuilder.cshtml *@ 9728 @RenderBlockList(masterPage.BlocksRoot.BlocksList) 9729 9730 @*@helper RenderMasterTop() 9731 { 9732 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9733 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeaderTop").OrderBy(item => item.SortId).ToList(); 9734 9735 <div class="@areaInfo.CenterContainer"> 9736 @RenderBlockList(subBlocks) 9737 </div> 9738 } *@ 9739 @helper RenderMasterHeader() 9740 { 9741 var areaInfo = Df.Dw.Rapido.AreaInfo.Current(); 9742 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterHeader").OrderBy(item => item.SortId).ToList(); 9743 9744 <header class="header fixed bg-light"> 9745 @RenderBlockList(subBlocks) 9746 </header> 9747 } 9748 9749 @helper RenderMain() 9750 { 9751 List<Block> subBlocks = this.masterPage.GetBlockListById("MasterMain").OrderBy(item => item.SortId).ToList(); 9752 9753 @RenderBlockList(subBlocks) 9754 } 9755 9756 @helper RenderPageContent() 9757 { 9758 <text>@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 9759 9760 9761 @using Dynamicweb.Extensibility 9762 @using Dynamicweb.Core 9763 @using Dynamicweb.Rapido.Blocks.Components 9764 @using Dynamicweb.Rapido.Blocks.Components.Articles 9765 @using Dynamicweb.Rapido.Blocks.Components.General 9766 @using Dynamicweb.Rapido.Blocks 9767 @using Dynamicweb.Content.Items 9768 @using Df.Dw 9769 9770 @* Render the grid *@ 9771 @Model.Grid("Grid", "Grid", "default:true;sort:1", "Pages") 9772 9773 @functions { 9774 BlocksPage articlePage = BlocksPage.GetBlockPage("DynamicArticle"); 9775 9776 public string GetParentSettingsItem(string systemName) { 9777 string item = null; 9778 9779 Dynamicweb.Content.Page current = Dynamicweb.Services.Pages.GetPage(Model.ID); 9780 while (current != null && current.Parent != current) { 9781 var temp = current.Item != null ? current.Item[systemName] : ""; 9782 9783 if (temp != null) { 9784 item = temp.ToString(); 9785 9786 if (item.HasValue() && !String.Equals("default", item, StringComparison.OrdinalIgnoreCase)) { 9787 break; 9788 } 9789 } 9790 9791 current = current.Parent; 9792 } 9793 9794 return item; 9795 } 9796 9797 public string GetArticleCategory(int pageId) 9798 { 9799 string categoryName = null; 9800 9801 //Secure that the article is not in the root folder = Actual has a category 9802 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent != null) { 9803 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent != null) { 9804 if (!String.IsNullOrEmpty(Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent.ItemType)) 9805 { 9806 categoryName = Dynamicweb.Services.Pages.GetPage(pageId).Parent.GetDisplayName(); 9807 } 9808 } 9809 } 9810 9811 return categoryName; 9812 } 9813 9814 public string GetArticleCategoryColor(int pageId) 9815 { 9816 string categoryColor = ""; 9817 9818 //Secure that the article is not in the root folder = Actual has a category 9819 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent != null) { 9820 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent != null) { 9821 if (!String.IsNullOrEmpty(Dynamicweb.Services.Pages.GetPage(pageId).Parent.Parent.ItemType)) 9822 { 9823 if (Dynamicweb.Services.Pages.GetPage(pageId).Parent.Item["CategoryColor"] != null) 9824 { 9825 var service = new ColorSwatchService(); 9826 categoryColor = Dynamicweb.Services.Pages.GetPage(pageId).Parent.Item["CategoryColor"].ToString(); 9827 9828 if (!categoryColor.Contains("#")) { 9829 categoryColor = service.GetHexColor(Converter.ToInt32(Model.Area.ID), categoryColor); 9830 } 9831 } 9832 } 9833 } 9834 } 9835 9836 return categoryColor; 9837 } 9838 } 9839 9840 @{ 9841 string listPageId = Converter.ToString(GetPageIdByNavigationTag("DynamicListFeed")); 9842 string parentPageId = Dynamicweb.Services.Pages.GetPage(Model.ID).Parent.ID.ToString(); 9843 string topLayout = Model.Item.GetList("TopLayout") != null ? Model.Item.GetList("TopLayout").SelectedValue : "default"; 9844 topLayout = topLayout == "default" && GetParentSettingsItem("ArticleTopLayout") != null ? GetParentSettingsItem("ArticleTopLayout").ToString().ToLower() : topLayout; 9845 string textLayout = Model.Item.GetList("TextLayout") != null ? Model.Item.GetList("TextLayout").SelectedValue : "default"; 9846 textLayout = textLayout == "default" && GetParentSettingsItem("ArticleTextLayout") != null ? GetParentSettingsItem("ArticleTextLayout").ToString().ToLower() : textLayout; 9847 string imageLayout = Model.Item.GetList("ImageLayout") != null ? Model.Item.GetList("ImageLayout").SelectedValue : "default"; 9848 imageLayout = imageLayout == "default" && GetParentSettingsItem("ArticleImageLayout") != null ? GetParentSettingsItem("ArticleImageLayout").ToString().ToLower() : imageLayout; 9849 9850 string imageColumns = imageLayout == "straight" && textLayout != "full" ? "8" : "12"; 9851 string contentColumns = textLayout != "full" ? "8" : "12"; 9852 9853 int externalParagraphId = Model.Item.GetItem("CTAParagraphLink") != null ? Model.Item.GetItem("CTAParagraphLink").ParagraphID : 0; 9854 9855 var paragraphs = Model.Item.GetItems("Paragraphs"); 9856 bool hasRegularContent = paragraphs != null? paragraphs.Any() : false; 9857 9858 string bodyClass = ""; 9859 9860 9861 //start regular blocks 9862 9863 ArticleHeaderLayout headerLayout; 9864 9865 switch (topLayout) 9866 { 9867 case "default": 9868 headerLayout = ArticleHeaderLayout.Clean; 9869 break; 9870 case "split": 9871 headerLayout = ArticleHeaderLayout.Split; 9872 break; 9873 case "banner": 9874 headerLayout = ArticleHeaderLayout.Banner; 9875 break; 9876 case "overlay": 9877 headerLayout = ArticleHeaderLayout.Overlay; 9878 bodyClass = " article-margin-negative"; 9879 break; 9880 default: 9881 headerLayout = ArticleHeaderLayout.Clean; 9882 break; 9883 } 9884 9885 9886 Block articleContainer = new Block 9887 { 9888 Id = "ArticleContainer", 9889 SortId = 10, 9890 Design = new Design 9891 { 9892 CssClass = "article-detail" 9893 }, 9894 BlocksList = new List<Block> { 9895 new Block { 9896 Id = "ArticleHeader", 9897 SortId = 20, 9898 Design = new Design 9899 { 9900 CssClass = "w-100" 9901 } 9902 }, 9903 new Block { 9904 Id = "ArticleBody", 9905 SortId = 30, 9906 Design = new Design 9907 { 9908 CssClass = "block-container--narrow" + bodyClass 9909 } 9910 } 9911 } 9912 }; 9913 articlePage.Add(articleContainer); 9914 9915 ButtonLayout topBannerButtonLayout = ButtonLayout.Primary; 9916 9917 switch (Model.Item.GetString("ButtonDesign")) { 9918 case "primary": 9919 topBannerButtonLayout = ButtonLayout.Primary; 9920 break; 9921 case "secondary": 9922 topBannerButtonLayout = ButtonLayout.Secondary; 9923 break; 9924 case "teritary": 9925 topBannerButtonLayout = ButtonLayout.Tertiary; 9926 break; 9927 case "link": 9928 topBannerButtonLayout = ButtonLayout.Link; 9929 break; 9930 } 9931 9932 ArticleHeader topBanner = new ArticleHeader 9933 { 9934 Layout = headerLayout, 9935 Image = new Image { Path = Model.Item.GetFile("Image") }, 9936 Heading = Model.Item.GetString("Title"), 9937 Subheading = Model.Item.GetString("Summary"), 9938 TextColor = "#fff", 9939 Author = Model.Item.GetString("Author"), 9940 Date = Model.Item.GetString("Date"), 9941 Category = GetArticleCategory(Model.ID), 9942 CategoryColor = GetArticleCategoryColor(Model.ID), 9943 Link = Model.Item.GetString("Link"), 9944 LinkText = Model.Item.GetString("LinkText"), 9945 ButtonLayout = topBannerButtonLayout, 9946 RatingScore = Model.Item.GetString("Rating") != null ? Converter.ToInt32(Model.Item.GetList("Rating").SelectedValue) : 0, 9947 RatingOutOf = Model.Item.GetString("Rating") != null ? Model.Item.GetList("Rating").Options.Count : 0, 9948 ExternalParagraphId = externalParagraphId 9949 }; 9950 9951 Block articleTop = new Block 9952 { 9953 Id = "ArticleHead", 9954 SortId = 20, 9955 Component = topBanner 9956 }; 9957 9958 //articlePage.Add("ArticleHeader", articleTop); 9959 9960 9961 Block articleBodyRow = new Block 9962 { 9963 Id = "ArticleBodyRow", 9964 SortId = 10, 9965 SkipRenderBlocksList = true, 9966 Design = new Design 9967 { 9968 CssClass = "wrap-test" 9969 } 9970 }; 9971 //articlePage.Add("ArticleBody", articleBodyRow); 9972 9973 9974 if(hasRegularContent) 9975 { 9976 9977 articlePage.Add("ArticleHeader", articleTop); 9978 articlePage.Add("ArticleBody", articleBodyRow); 9979 9980 if (Model.Item.GetString("Paragraphs") != null && Model.Item.GetItems("Paragraphs") != null) 9981 { 9982 int count = 0; 9983 foreach (var paragraph in Model.Item.GetItems("Paragraphs")) 9984 { 9985 imageLayout = paragraph.GetList("ImageLayout") != null ? paragraph.GetList("ImageLayout").SelectedValue : "default"; 9986 if (!paragraph.GetBoolean("RenderAsQuote")) 9987 { 9988 string enableDropCap = Model.Item.GetString("EnableDropCap") != null ? Model.Item.GetList("EnableDropCap").SelectedValue.ToLower() : "default"; 9989 enableDropCap = enableDropCap == "default" && GetParentSettingsItem("EnableDropCap") != null ? GetParentSettingsItem("EnableDropCap").ToString().ToLower() : enableDropCap; 9990 string text = paragraph.GetString("Text") != null ? paragraph.GetString("Text") : ""; 9991 9992 if (text.HasValue() && enableDropCap == "true" && count == 0 && paragraph.GetString("Text").Substring(0, 3) == "<p>") 9993 { 9994 string firstLetter = paragraph.GetString("Text").Substring(3, 1); 9995 text = paragraph.GetString("Text").Remove(3, 1); 9996 text = text.Insert(3, "<span class=\"article__drop-cap\">" + firstLetter + "</span>"); 9997 } 9998 9999 if (paragraph.GetFile("Image") != null) 10000 { 10001 string imageTitle = paragraph.GetString("Heading").HasValue() ? paragraph.GetString("Heading") : ""; 10002 10003 Block articleParagraphImage = new Block 10004 { 10005 Id = "ArticleParagraph" + count + "Image", 10006 SortId = (count * 10), 10007 Design = new Design 10008 { 10009 CssClass = "image my-3" 10010 } 10011 }; 10012 10013 ArticleImageContainerAware imageArticle = new ArticleImageContainerAware 10014 { 10015 Link = paragraph.GetFile("Image").ToString(), 10016 Layout = imageLayout, 10017 Alt = paragraph.GetString("ImageCaption") 10018 }; 10019 articleParagraphImage.Component = imageArticle; 10020 10021 10022 articlePage.Add("ArticleBodyRow", articleParagraphImage); 10023 } 10024 10025 if (paragraph.GetString("VideoURL").HasValue()) 10026 { 10027 Block articleParagraphVideo = new Block 10028 { 10029 Id = "ArticleParagraph" + count + "Video", 10030 SortId = (count * 10) + 1, 10031 Component = new ArticleVideoRefactored { Url = paragraph.GetString("VideoURL"), AutoPlay = "false", Layout = imageLayout } 10032 }; 10033 articlePage.Add("ArticleBodyRow", articleParagraphVideo); 10034 } 10035 10036 if (paragraph.GetString("Heading").HasValue() && !paragraph.GetBoolean("HideTitle")) 10037 { 10038 string tag = paragraph.GetList("TitleHeadingSize") != null ? paragraph.GetList("TitleHeadingSize").SelectedValue : ""; 10039 Block articleParagraphHeader = new Block 10040 { 10041 Id = "ArticleParagraph" + count + "Heading", 10042 SortId = (count * 10) + 2, 10043 Component = new ArticleHeadingRefactored { Value = paragraph.GetString("Heading"), Tag = tag } 10044 }; 10045 articlePage.Add("ArticleBodyRow", articleParagraphHeader); 10046 } 10047 if (paragraph.GetString("Subtitle").HasValue()) 10048 { 10049 string tag = paragraph.GetList("SubtitleHeadingSize") != null ? paragraph.GetList("SubtitleHeadingSize").SelectedValue : ""; 10050 Block articleParagraphHeader = new Block 10051 { 10052 Id = "ArticleParagraph" + count + "SubHeading", 10053 SortId = (count * 10) + 3, 10054 Component = new ArticleSubHeadingRefactored { Value = paragraph.GetString("Subtitle"), Tag = tag } 10055 }; 10056 articlePage.Add("ArticleBodyRow", articleParagraphHeader); 10057 } 10058 10059 if (text.HasValue()) 10060 { 10061 Block articleParagraphText = new Block 10062 { 10063 Id = "ArticleParagraph" + count + "Text", 10064 SortId = (count * 10) + 4, 10065 Component = new ArticleText { Text = text } 10066 }; 10067 10068 articlePage.Add("ArticleBodyRow", articleParagraphText); 10069 } 10070 } 10071 else 10072 { 10073 if (paragraph.GetString("Text").HasValue()) 10074 { 10075 string quoteText = paragraph.GetString("Text") != null ? paragraph.GetString("Text") : ""; 10076 string quoteAuthor = paragraph.GetString("Heading") != null ? paragraph.GetString("Heading") : ""; 10077 10078 Block articleParagraphQuote = new Block 10079 { 10080 Id = "ArticleParagraph" + count + "Quote", 10081 SortId = (count * 10) + 3, 10082 Component = new ArticleQuote { Image = new Image { Path = paragraph.GetFile("Image") }, Text = quoteText, Author = quoteAuthor } 10083 }; 10084 articlePage.Add("ArticleBodyRow", articleParagraphQuote); 10085 } 10086 } 10087 10088 count++; 10089 } 10090 } 10091 10092 articleBodyRow.Component = new ArticleBodyRow { SubBlocks = articleBodyRow.BlocksList, TopLayout = topLayout, TextLayout = textLayout }; 10093 10094 } 10095 10096 10097 //Related 10098 string showRelatedArtices = Model.Item.GetString("ShowRelatedArticles") != null ? Model.Item.GetList("ShowRelatedArticles").SelectedValue.ToLower() : "default"; 10099 showRelatedArtices = showRelatedArtices == "default" && GetParentSettingsItem("ShowRelatedArticles") != null ? GetParentSettingsItem("ShowRelatedArticles").ToString().ToLower() : showRelatedArtices; 10100 10101 if (showRelatedArtices == "true") 10102 { 10103 Block articleRelated = new Block 10104 { 10105 Id = "ArticleRelated", 10106 SortId = 30, 10107 Component = new ArticleRelated { Title = Translate("Related articles"), FeedPageId = listPageId, Query = "sourceType=Page&sourcePage=" + parentPageId, PageSize = 4, CurrentPageId = Model.ID.ToString() } 10108 }; 10109 articlePage.Add("ArticleContainer", articleRelated); 10110 } 10111 } 10112 10113 @* The @RenderBlockList base helper is included in Components/GridBuilder.cshtml *@ 10114 10115 @RenderBlockList(articlePage.BlocksRoot.BlocksList) 10116 10117 </text> 10118 } 10119 @RenderSnippet("BottomJS") 10120 10121 @{ 10122 bool editParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["edit"]) ? true : false; 10123 bool debugParameter = !String.IsNullOrEmpty(HttpContext.Current.Request["jsdebug"]) ? true : false; 10124 } 10125 10126 @* Toggle Container, Toggle Layout *@ 10127 @if (editParameter) 10128 { 10129 <div id="config"> 10130 <button type="button" id="toggleContainer">Toggle Container</button> 10131 <button type="button" id="toggleLayout">Toggle Layout</button> 10132 </div> 10133 <script> 10134 let headerIndex = 0; 10135 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"]; 10136 10137 document.getElementById("toggleLayout").addEventListener("click",e=>{ 10138 e.preventDefault(); 10139 if (headerIndex + 1 > headerClasses.length-1) { 10140 headerIndex = 0; 10141 } else { 10142 headerIndex++; 10143 } 10144 console.log(document.querySelector(".header").classList); 10145 document.querySelector(".header").classList.value = headerClasses[headerIndex]; 10146 }) 10147 10148 document.getElementById("toggleContainer").addEventListener("click",e=>{ 10149 e.preventDefault(); 10150 if(document.querySelectorAll(".header.container").length===0) { 10151 [...document.querySelectorAll(".header")].forEach(element => { 10152 element.classList.add("container") 10153 }); 10154 [...document.querySelectorAll(".footer")].forEach(element => { 10155 element.classList.add("container") 10156 }); 10157 [...document.querySelectorAll(".page")].forEach(element => { 10158 element.classList.add("container") 10159 }); 10160 } else { 10161 [...document.querySelectorAll(".header")].forEach(element => { 10162 element.classList.remove("container") 10163 }); 10164 [...document.querySelectorAll(".footer")].forEach(element => { 10165 element.classList.remove("container") 10166 }); 10167 [...document.querySelectorAll(".page")].forEach(element => { 10168 element.classList.remove("container") 10169 }); 10170 } 10171 }); 10172 [...document.querySelectorAll(".switcher")].forEach(el=>{ 10173 el.addEventListener("click", ()=> { 10174 let className = el.name + "--" +el.value; 10175 let target = el.closest(".header"); 10176 let filtered = [...el.closest(".header").classList].filter(v=> !v.includes(el.name)); 10177 target.classList = filtered.join(" "); 10178 target.classList.add(className); 10179 }); 10180 }); 10181 10182 </script> 10183 } 10184 @if (debugParameter) 10185 { 10186 <script> 10187 document.addEventListener("optionChanged", e=>{console.log(e.type,e)}); 10188 document.addEventListener("filtersChanged", e=>{console.log(e.type,e.detail.url)}) 10189 </script> 10190 } 10191 10192 10193 10194 10195 <script type="module" src="https://unpkg.com/ionicons@5.0.0/dist/ionicons/ionicons.esm.js" defer></script> 10196 @* TODO: Florin: mutate callurile de axios in fisier JS *@ 10197 <script src="https://cdn.jsdelivr.net/npm/noty@3.1.4/lib/noty.min.js" defer></script> 10198 <script src="https://cdn.jsdelivr.net/npm/handlebars@4.7.6/dist/handlebars.min.js" defer></script> 10199 <script src="https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js" defer></script> 10200 <script src="https://cdn.jsdelivr.net/npm/flatpickr" defer></script> 10201 <script src="https://cdn.jsdelivr.net/npm/js-image-zoom/js-image-zoom.min.js" defer></script> 10202 <script src="https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js" defer></script> 10203 @* <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/popper.min.js" defer></script> *@ 10204 @* <script src="https://unpkg.com/tippy.js@6" defer></script> *@ 10205 10206 @if (currentLang == "en") 10207 { 10208 <script src="/Files/Templates/Designs/@DesignFolder/js/translations/translations_23.js" defer></script> 10209 } 10210 else 10211 { 10212 <script src="/Files/Templates/Designs/@DesignFolder/js/translations/translations_21.js" defer></script> 10213 } 10214 10215 @* @if (!string.IsNullOrEmpty(googleAPIKey)) *@ 10216 @* { *@ 10217 @* <script src="https://maps.googleapis.com/maps/api/js?key=@googleAPIKey&libraries=places&language=@currentLang" async defer></script> *@ 10218 @* *@ 10219 @* } *@ 10220 @* <script type="module" src="/Files/Templates/Designs/@DesignFolder/js/app.js"></script> *@ 10221 @{ 10222 string scriptBundle = "/Files/Templates/Designs/"+DesignFolder+"/dist/app.bundle.js?ticks=" + Model.Area.UpdatedDate.Ticks; 10223 } 10224 10225 <script src="@scriptBundle" defer></script> 10226 10227 10228 <script> 10229 10230 10231 window.googleEnchantImpressionClick = function (googleImpression) { 10232 if (typeof dataLayer !== 'undefined') { 10233 dataLayer.push({ 10234 'event': 'productClick', 10235 'ecommerce': { 10236 'click': { 10237 'actionField': { 10238 'list': googleImpression.list 10239 }, 10240 // Optional list property. 10241 'products': [{ 10242 'name': googleImpression.name, 10243 // Name or ID is required. 10244 'id': googleImpression.id, 10245 'price': googleImpression.price, 10246 'brand': googleImpression.brand, 10247 'category': googleImpression.category, 10248 'variant': googleImpression.variant, 10249 'position': googleImpression.position 10250 }] 10251 } 10252 }, 10253 'eventCallback': function () 10254 { 10255 console.log('callback from googleImpression' , googleImpression) 10256 // document.location = googleImpression.url; 10257 } 10258 }); 10259 } 10260 }; 10261 </script> 10262 <style> 10263 .block-structure ul{ 10264 10265 padding-left: 4rem; 10266 10267 } 10268 </style> 10269 @*<button type="button" onclick='(e) => document.querySelector(".block-structure").classList.toggle("hidden")'></button>*@ 10270 <div class="section__container container"> 10271 <div class="section__content"> 10272 <div class="block-structure hidden">@masterPage.GetBlocksStructure()</div> 10273 </div> 10274 </div> 10275 10276 10277 10278 @*<script> 10279 document.addEventListener("DOMContentLoaded", e=>{ 10280 document.querySelector("body").insertAdjacentHTML("beforeend", 10281 `<div style="position: fixed; left:0; bottom:0; z-index: 99; box-shadow: 0px 0px 4px #000;"><button data-theme class="btn-fill--brand" value="mendola">Mendola</button><button data-theme class="btn-fill--brand" value="">Reset</button><div>` 10282 ) 10283 10284 function setCookie(cname, cvalue, exdays) { 10285 var d = new Date(); 10286 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 10287 var expires = "expires="+ d.toUTCString(); 10288 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 10289 } 10290 10291 document.querySelectorAll('[data-theme]').forEach(el=>el.addEventListener("click", e=>{ 10292 e.preventDefault(); 10293 if (e.currentTarget.value === "") { 10294 setCookie("Theme","default", 1) 10295 } else { 10296 setCookie("Theme","outline", 1) 10297 } 10298 10299 document.querySelector("html").classList.value = e.currentTarget.value; 10300 })) 10301 10302 }); 10303 10304 </script>*@ 10305 <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> 10306 <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> 10307 10308 </body> 10309 </html> 10310 10311