Lorem ipsum dolor sit amet, consectetur adipiscing

Mauris tristique pharetra nisl, ornare interdum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed id tellus lacus. Vestibulum vitae purus eget arcu porta pretium. Vestibulum dignissim, diam ornare dapibus semper, nisl nibh imperdiet nulla, vitae tempor elit lectus quis sem. Praesent iaculis felis leo, nec suscipit libero blandit non. Suspendisse eget turpis quis sem ullamcorper tristique eu eu dolor. Proin risus nulla, sollicitudin quis interdum ac, vestibulum non sem. Fusce sem enim, laoreet id sollicitudin vitae, finibus nec diam. Vestibulum finibus rhoncus lacus, a consequat ipsum. Aenean dui felis, fermentum eu sapien sed, iaculis accumsan leo. Cras dignissim cursus iaculis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Morbi sodales blandit elit hendrerit eleifend. Nullam luctus, arcu in facilisis vestibulum, est est malesuada augue, id tempor mauris turpis facilisis dolor.

Error executing template "Designs/Wizaris/Paragraph/Banner_V2.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 630
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.Execute() in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 772
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using System.Collections.Generic 3 @using System 4 @using System.Text.RegularExpressions 5 @using Dynamicweb.Core 6 @using Dynamicweb.Frontend 7 @using Df.Dw.Rapido 8 9 @using System.Text.RegularExpressions 10 @using System.Collections.Generic 11 @using System.Reflection 12 @using System.Web.UI.HtmlControls 13 @using Dynamicweb.News 14 @using Dynamicweb.Rapido.Blocks.Components 15 @using Dynamicweb.Rapido.Blocks.Components.Articles 16 @using Dynamicweb.Rapido.Blocks.Components.Documentation 17 @using Dynamicweb.Rapido.Blocks 18 19 @functions{ 20 public class Translations 21 { 22 public class General 23 { 24 public static string 25 Logo = "General_Logo", 26 GenerateAWB = "General_GenerateAWB", 27 DeliveryAgent = "General_DeliveryAgent", 28 SelectCountry = "General_SelectCountry", 29 DateInterval = "General_DateInterval", 30 CloseModal = "General_CloseModal", 31 ClosePanel = "General_ClosePanel", 32 SearchPage = "General_SearchPage", 33 Search = "General_Search", 34 CloseSearch = "General_CloseSearch", 35 All = "General_All", 36 View = "General_View", 37 ViewAll = "General_ViewAll", 38 ReadMore = "General_ReadMore", 39 More = "General_More", 40 Load = "General_Load", 41 Add = "General_Add", 42 Remove = "General_Remove", 43 Save = "General_Save", 44 Close = "General_Close", 45 Go = "General_Go", 46 Back = "General_Back", 47 Hi = "General_Hi", 48 Edit = "General_Edit", 49 Delete = "General_Delete", 50 DownloadExcel = "General_DownloadExcel", 51 Cancel = "General_Cancel", 52 SetDefault = "General_SetDefault", 53 Submit = "General_Submit", 54 SocialLinks = "General_SocialLinks", 55 MailingList = "General_MailingList", 56 YourEmailAddress = "General_YourEmailAddress", 57 SignUpMessage = "General_SignUpMessage", 58 SignUpForm = "General_SignUpForm", 59 YourSearchGave0Results = "General_YourSearchGave0Results", 60 Contact = "General_Contact", 61 Pages = "General_Pages", 62 NotAvailable = "General_NotAvailable", 63 Default = "General_Default", 64 Yes = "General_Yes", 65 No = "General_No", 66 Page = "General_Page", 67 Of = "General_Of", 68 FirstPage = "General_FirstPage", 69 LastPage = "General_LastPage", 70 ReturnToTop = "General_ReturnToTop", 71 Details = "General_Details", 72 Information = "General_Information", 73 Downloads = "General_Downloads", 74 Download = "General_Download", 75 GeneratePdf = "General_GeneratePdf", 76 DownloadPdf = "General_DownloadPdf", 77 Select = "General_Select", 78 SelectType = "General_SelectType", 79 Type = "General_Type", 80 RequestType = "General_RequestType", 81 Language = "General_Language", 82 Images = "General_Images", 83 Documents = "General_Documents", 84 Export = "General_Export", 85 ImagePurpose = "General_ImagePurpose", 86 Office = "General_Office", 87 Original = "General_Original", 88 Print = "General_Print", 89 Web = "General_Web", 90 ExportFormat = "General_ExportFormat", 91 Videos = "General_Videos", 92 AskForInfo = "General_AskForInfo", 93 DataSheet = "General_DataSheet", 94 LinkToPage = "General_LinkToPage", 95 Again = "General_Again", 96 Notice = "General_Notice", 97 Form = "General_Form", 98 TechnicalContact = "General_TechnicalContact", 99 Error = "General_Error", 100 Warning = "General_Warning", 101 Status = "General_Status", 102 State = "General_State", 103 NoDocumentsFound = "General_NoDocumentsFound", 104 CreditMemo = "General_CreditMemo", 105 History = "General_History", 106 Comment = "General_Comment", 107 AddComment = "General_AddComment", 108 EnterComment = "General_EnterComment", 109 NothingSelected = "General_NothingSelected", 110 Never = "General_Never", 111 Days = "General_Days", 112 Weeks = "General_Weeks", 113 Months = "General_Months", 114 IAcceptTheTermsAndConditions = "General_IAcceptTheTermsAndConditions", 115 TheTermsAndConditionsOfThisWebsite = "General_TheTermsAndConditionsOfThisWebsite", 116 ReadGeneralConditions = "General_ReadGeneralConditions", 117 SubscribeToNewsletter = "General_SubscribeToNewsletter", 118 Use = "General_Use", 119 Choose = "General_Choose", 120 Free = "General_Free", 121 Next = "General_Next", 122 GoTo = "General_GoTo", 123 NotFound = "General_NotFound", 124 AlreadyUsed = "General_AlreadyUsed", 125 IsNotActive = "General_IsNotActive", 126 Apply = "General_Apply", 127 NoItemsFound = "General_NoItemsFound", 128 GoToFrontPage = "General_GoToFrontPage", 129 LoginModalHeading = "General_LoginModalHeading", 130 LoginModalSubHeading = "General_LoginModalSubHeading", 131 ViewInBrowser = "General_ViewInBrowser", 132 CantSeeMessage = "General_CantSeeMessage", 133 Welcome = "General_Welcome", 134 Continue = "General_Continue", 135 UserIsActivated = "General_UserIsActivated", 136 Create = "General_Create", 137 ViewOffer = "General_ViewOffer", 138 CookiesHeader = "General_CookiesHeader", 139 CookiesText1 = "General_CookiesText1", 140 CookiesText2 = "General_CookiesText2", 141 CookiesDoNotAcceptCookies = "General_CookiesDoNotAcceptCookies", 142 CookiesOnlyAcceptFunctionalCookies = "General_OnlyAcceptFunctionalCookies", 143 CookiesAcceptAllCookies = "General_AcceptAllCookies", 144 RMADetailsEmail = "General_RMADetailsEmail", 145 RMAClientName = "General_RMAClientName", 146 RMADataCererii = "General_RMADataCererii", 147 RMATipCerere = "General_RMATipCerere", 148 RMAOrderInitial = "General_RMAOrderInitial", 149 RMAEmailText = "General_RMAEmailText", 150 Written = "General_Written", 151 By = "General_By", 152 On = "General_On", 153 Category = "General_Category"; 154 } 155 public class Account 156 { 157 public static string 158 LogIn = "Account_LogIn", 159 Promotions = "Account_Promotions", 160 Resupply = "Account_Resupply", 161 WorkInProgressOrders = "Account_WorkInProgressOrders", 162 ExchangePartsRequests = "Account_ExchangePartsRequests", 163 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 164 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 165 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 166 SignIn = "Account_SignIn", 167 SignOut = "Account_SignOut", 168 CreateAccount = "Account_CreateAccount", 169 ForgotYourPassword = "Account_ForgotYourPassword", 170 ResetYourPassword = "Account_ResetYourPassword", 171 RememberMe = "Account_RememberMe", 172 Password = "Account_Password", 173 Name = "Account_Name", 174 FirstName = "Account_FirstName", 175 LastName = "Account_LastName", 176 Description = "Address_Description", 177 Email = "Account_Email", 178 Username = "Account_Username", 179 Phone = "Account_Phone", 180 ZipCode = "Account_ZipCode", 181 City = "Account_City", 182 Country = "Account_Country", 183 CompanyName = "Account_CompanyName", 184 CompanyAddress = "Account_CompanyAddress", 185 CompanyCity = "Account_CompanyCity ", 186 CompanyZip = "Account_CompanyZip", 187 CompanyCountry = "Account_CompanyCountry", 188 CompanyID = "Account_CompanyID", 189 CompanyTIN = "Account_CompanyTIN", 190 CompanyVAT = "Account_CompanyVAT", 191 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 192 Company = "Account_Company", 193 StateRegion = "Account_StateRegion", 194 NewPassword = "Account_NewPassword", 195 OldPassword = "Account_OldPassword", 196 ConfirmPassword = "Account_ConfirmPassword", 197 BusinessNumber = "Account_BusinessNumber", 198 AlreadyACustomer = "Account_AlreadyACustomer", 199 MyProfile = "Account_MyProfile", 200 EditProfile = "Account_EditProfile", 201 MyOrders = "Account_MyOrders", 202 MyFavorites = "Account_MyFavorites", 203 MySavedCards = "Account_MySavedCards", 204 StopImpersonation = "Account_StopImpersonation", 205 Impersonate = "Account_Impersonate", 206 IsImpersonating = "Account_IsImpersonating", 207 StopImpresonationPageText ="Account_StopImpresonationPageText", 208 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 209 SearchUser = "Account_SearchUser", 210 ViewListOfUsers = "Account_ViewListOfUsers", 211 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 212 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 213 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 214 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 215 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 216 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 217 CreateAccountIncentive = "Account_CreateAccountIncentive", 218 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 219 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 220 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 221 UserNotFound = "Account_UserNotFound", 222 UsersFound = "Account_UsersFound", 223 SendPasswordRecovery = "Account_SendPasswordRecovery", 224 PasswordRecovery = "Account_PasswordRecovery", 225 SomethingWentWrong = "Account_SomethingWentWrong", 226 TryRecoverPassword = "Account_TryRecoverPassword", 227 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 228 ChooseANewPassword = "Account_ChooseANewPassword", 229 PasswordChanged = "Account_PasswordChanged", 230 SentEmailWithALinks = "Account_SentEmailWithALinks", 231 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 232 AStrongPassword = "Account_AStrongPassword", 233 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 234 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 235 IgnoreThisEmail = "Account_IgnoreThisEmail", 236 CompleteOrdersCount = "Account_CompleteOrdersCount", 237 CompanyCreditLimit = "Account_CompanyCreditLimit", 238 InvoiceValue = "Account_InvoiceValue", 239 CompanySold = "Account_CompanySold", 240 CompanyOverdue = "Account_CompanyOverdue", 241 OpenOrders = "Account_OpenOrders", 242 PlacedOrders = "Account_PlacedOrders", 243 ProductsOnSale = "Account_ProductsOnSale", 244 LoyaltyPoints = "Account_LoyaltyPoints", 245 RequestAccountStatements = "Account_RequestAccountStatements", 246 RequestComplaintForm = "Account_RequestComplaintForm", 247 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 248 YourConsents = "Account_YourConsents", 249 YourPointBalance = "Account_YourPointBalance", 250 Address = "Account_Address", 251 Address2 = "Account_Address2", 252 Addresses = "Account_Addresses", 253 MyAddresses = "Account_MyAddresses", 254 ManageAddresses = "Account_ManageAddresses", 255 NoAddressFound = "Account_NoAddressFound", 256 DefaultLocation = "Account_DefaultLocation", 257 DefaultPayment = "Account_DefaultPayment", 258 PaymentTerm = "Account_PaymentTerm", 259 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 260 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 261 AddNewAddress = "Account_AddNewAddress", 262 DeliveryAddresses = "Account_DeliveryAddresses", 263 BillingAddresses = "Account_BillingAddresses", 264 NoAddressesFound = "Account_NoAddressesFound", 265 EditAddress = "Account_EditAddress", 266 AddAddress = "Account_AddAddress", 267 SaveAddress = "Account_SaveAnAddress", 268 StreetNumber = "Account_StreetNumber", 269 DeleteThisAddress = "Account_DeleteThisAddress", 270 NoRMAsListFound = "Account_NoRMAsListFound", 271 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 272 CancelTheRequest = "Account_CancelTheRequest", 273 EmittedWarranties = "Account_EmittedWarranties", 274 ViewRma = "Account_ViewRma", 275 CancelRma = "Account_CancelRma", 276 CreateNewRequest = "Account_CreateNewRequest", 277 CreateRequest = "Account_CreateRequest", 278 CancelRequest = "Account_CancelRequest", 279 ViewRequest = "Account_ViewRequest", 280 RmaId = "Account_RmaId", 281 AdditionalInfo = "Account_AdditionalInfo", 282 CustomerComment = "Account_CustomerComment", 283 CustomerDetails = "Account_CustomerDetails", 284 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 285 CreateNewList = "Account_CreateNewList", 286 AddNewList = "Account_AddNewList", 287 EditList = "Account_EditList", 288 SetAsDefault = "Account_SetAsDefault", 289 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 290 PublishedTo = "Account_PublishedTo", 291 ReturnToList = "Account_ReturnToList", 292 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 293 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 294 CreateList = "Account_CreateList", 295 BackToProfile = "Account_BackToProfile", 296 YouAreAlmostThere = "Account_YouAreAlmostThere", 297 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 298 ProfileComplete = "Account_ProfileComplete", 299 ProfileCompletePageText = "Account_ProfileCompletePageText", 300 CreateUserAccount = "Account_CreateUserAccount", 301 CreateYourNewAccount = "Account_CreateYourNewAccount", 302 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 303 ResetPassword = "Account_ResetPassword", 304 PrivatePerson = "Account_PrivatePerson", 305 EmptyFields = "Account_CompleteAllFields", 306 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 307 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 308 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 309 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 310 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 311 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 312 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 313 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 314 ConfirmAccount = "Account_ConfirmAccount", 315 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 316 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 317 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 318 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 319 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 320 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 321 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 322 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 323 ConfirmEmail = "Account_ConfirmEmail", 324 AddNewWarranty = "Account_AddNewWarranty", 325 CreateNewWarranty = "Account_CreateWarranty", 326 CreateNewService = "Account_CreateService", 327 CreateNewPartsExchange = "Account_CreatePartsExchange", 328 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 329 LoginToViewFavorites = "Account_LoginToViewFavorites"; 330 } 331 public class Products 332 { 333 public static string 334 SelectRating = "Products_SelectRating", 335 RatingHeadline = "Products_RatingHeadline", 336 LoginToReview = "Products_LoginToReview", 337 NoReviewsFound = "Products_NoReviewsFound", 338 ProductsGeneral = "Products_ProductsGeneral", 339 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 340 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 341 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 342 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 343 ExchangePartsFor = "Products_ExchangePartsFor", 344 Product = "Products_Product", 345 AnyProduct = "Product_AnyProduct", 346 ProductNo = "Products_ProductNo", 347 ProductCode = "Products_ProductCode", 348 Prod = "Products_Prod", 349 Price = "Products_Price", 350 Vat = "Products_Vat", 351 SearchProductsOrPages = "Products_SearchProductsOrPages", 352 SearchProducts = "Products_SearchProducts", 353 SearchResultFor = "Products_SearchResultFor", 354 Newest = "Products_Newest", 355 PriceHighLow = "Products_PriceHighLow", 356 PriceLowHigh = "Products_PriceLowHigh", 357 Stock = "Products_Stock", 358 TotalStock = "Products_TotalStock", 359 InStock = "Products_InStock", 360 OutOfStock = "Products_OutOfStock", 361 Delivery = "Products_Delivery", 362 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 363 Filters = "Products_Filters", 364 SelectFilters = "Products_SelectFilters", 365 CloseFilters = "Products_CloseFilters", 366 RemoveFilters = "Products_RemoveFilters", 367 ResetAllFilters = "Products_ResetAllFilters", 368 ProductCategories = "Products_ProductCategories", 369 Categories = "Products_Categories", 370 ExclVAT = "Products_ExclVAT", 371 InclVAT = "Products_InclVAT", 372 BuyWithPoints = "Products_BuyWithPoints", 373 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 374 ProductNumber = "Products_ProductNumber", 375 Brand = "Products_Brand", 376 Buc = "Products_Buc", 377 PleaseSelectVariant = "Products_PleaseSelectVariant", 378 Sort = "Products_Sort", 379 SortBy = "Products_SortBy", 380 Summary = "Products_Summary", 381 Description = "Products_Description", 382 Specifications = "Products_Specifications", 383 Reviews = "Products_Reviews", 384 GeneralReviews = "Products_GeneralReviews", 385 AddAReview = "Products_AddAReview", 386 ProductAssets = "Products_ProductAssets", 387 Variants = "Products_Variants", 388 VariantsList = "Products_VariantsList", 389 IncludingProducts = "Products_IncludingProducts", 390 MinimumQuantity = "Products_MinimumQuantity", 391 StepQuantity = "Products_StepQuantity", 392 PriceWithVat = "Products_PriceWithVat", 393 Quantity = "Products_Quantity", 394 TotalPrice = "Products_TotalPrice", 395 TotalWithVat = "Products_TotalWithVat", 396 RecentSearches = "Products_RecentSearches", 397 ItemNumber = "Products_ItemNumber", 398 UnitPrice = "Products_UnitPrice", 399 ViewFavorites = "Products_ViewFavorites", 400 ChooseList = "Products_ChooseList", 401 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 402 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 403 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 404 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 405 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 406 AddToFavorites = "Products_AddToFavorites", 407 RemoveFromFavorites = "Products_RemoveFromFavorites", 408 OrCreateOne = "Products_OrCreateOne", 409 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 410 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 411 EnterAListName = "Products_EnterAListName", 412 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 413 SeeFavoriteList = "Products_SeeFavoriteList", 414 Compare = "Products_Compare", 415 AddToCompare = "Products_AddToCompare", 416 RemoveFromCompare = "Products_RemoveFromCompare", 417 ViewMore = "Products_ViewMore", 418 RecommendedPrice = "Products_RecommendedPrice", 419 YouSave = "Products_YouSave", 420 SalesUOM = "Products_SalesUOM", 421 AvailablilityDateMessage = "Product_AvailableIn"; 422 } 423 public class Cart 424 { 425 public static string 426 CartGeneral = "Cart_CartGeneral", 427 SignInCart = "Cart_SignInCart", 428 PlacedOrderDate = "Cart_PlacedOrderDate", 429 MaxFinalizeDate = "Cart_MaxFinalizeDate", 430 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 431 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 432 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 433 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 434 DeliverOrder = "Cart_DeliverOrder", 435 OrderDetails = "Cart_OrderDetails", 436 ApproveOrder = "Cart_ApproveOrder", 437 ApprovedOrder = "Cart_ApprovedOrder", 438 RejectOrder = "Cart_RejectOrder", 439 RejectedOrder = "Cart_RejectedOrder", 440 DeliveredOrder = "Cart_DeliveredOrder", 441 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 442 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 443 ShoppingCart = "Cart_ShoppingCart", 444 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 445 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 446 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 447 ContinueShopping = "Cart_ContinueShopping", 448 ProceedToCheckout = "Cart_ProceedToCheckout", 449 Earnings = "Cart_Earnings", 450 Points = "Cart_Points", 451 NoPointsFound = "Cart_NoPointsFound", 452 YourPointBalance = "Cart_YourPointBalance", 453 UsedPoints = "Cart_UsedPoints", 454 AddPoints = "Cart_AddPoints", 455 Variant = "Cart_Variant", 456 Unit = "Cart_Unit", 457 Qty = "Cart_Qty", 458 Subtotal = "Cart_Subtotal", 459 Total = "Cart_Total", 460 CannotOrder = "Cart_CannotOrder", 461 RemoveOrderline = "Cart_RemoveOrderline", 462 UpdateOrderline = "Cart_UpdateOrderline", 463 OrderlineUpdating = "Cart_OrderlineUpdating", 464 OrderlineUpdated = "Cart_OrderlineUpdated", 465 OrderlineRemoving = "Cart_OrderlineRemoving", 466 OrderlineRemoved = "Cart_OrderlineRemoved", 467 EmptyCartStart = "Cart_EmptyCartStart", 468 EmptyCartFinished = "Cart_EmptyCartFinished", 469 EmptyCarCheck = "Cart_EmptyCartCheck", 470 SelectShippingOption = "Cart_SelectShippingOption", 471 SelectBillingOption = "Cart_SelectBillingOption", 472 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 473 MaximumPointsText = "Cart_MaximumPointsText", 474 EmptyCart = "Cart_EmptyCart", 475 Shipping = "Cart_Shipping", 476 AddToCart = "Cart_AddToCart", 477 BuyAll = "Cart_BuyAll", 478 BuyFor = "Cart_BuyFor", 479 Order = "Cart_Order", 480 OrderID = "Cart_OrderID", 481 Date = "Cart_Date", 482 OrderNumber = "Cart_OrderNumber", 483 OrderNumberNav = "Cart_OrderNumberNav", 484 OrderDate = "Cart_OrderDate", 485 OrderValue = "Cart_OrderValue", 486 ViewOrder = "Cart_ViewOrder", 487 PONumber = "Cart_PONumber", 488 Reorder = "Cart_Reorder", 489 NoOrdersFound = "Cart_NoOrdersFound", 490 Invoice = "Cart_Invoice", 491 ChooseInvoice = "Cart_ChooseInvoice", 492 SearchInvoices = "Cart_SearchInvoices", 493 NoInvoicesFound = "Cart_NoInvoicesFound", 494 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 495 InvoiceNumber = "Cart_InvoiceNumber", 496 InvoiceDate = "Cart_InvoiceDate", 497 TrackingNumber = "Cart_TrackingNumber", 498 DeliveryNote = "Cart_DeliveryNote", 499 ViewDeliveryNote = "Cart_ViewDeliveryNote", 500 SelectOrder = "Cart_SelectOrder", 501 Payment = "Cart_Payment", 502 PaymentMethod = "Cart_PaymentMethod", 503 ShippingMethod = "Cart_ShippingMethod", 504 SelectShipping = "Cart_SelectShipping", 505 SelectPayment = "Cart_SelectPayment", 506 BillingAddress = "Cart_BillingAddress", 507 SameBillingAsShipping = "Cart_BillingAsShipping", 508 ShippmentNumber = "Cart_ShippmentNumber", 509 ShippingAddress = "Cart_ShippingAddress", 510 AddAlternativeAdr = "Cart_AddAlternativeAdr", 511 SelectSavedAddress = "Cart_SelectSavedAddress", 512 PaymentAndShipping = "Cart_PaymentAndShipping", 513 RecurringEvery = "Cart_RecurringEvery", 514 RecurringStartDate = "Cart_RecurringStartDate", 515 RecurringEndDate = "Cart_RecurringEndDate", 516 StartDate = "Cart_StartDate", 517 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 518 GiftCardName = "Cart_GiftCardName", 519 GiftCardCode = "Cart_GiftCardCode", 520 ExpiryDate = "Cart_ExpiryDate", 521 InitialAmount = "Cart_InitialAmount", 522 UsedAmount = "Cart_UsedAmount", 523 RemainingBalance = "Cart_RemainingBalance", 524 Vouchers = "Cart_Vouchers", 525 Voucher = "Cart_Voucher", 526 HasBeenUsed = "Cart_HasBeenUsed ", 527 GiftCardAmount = "Cart_GiftCardAmount", 528 ShopInformation = "Cart_ShopInformation", 529 ShopName = "Cart_ShopName", 530 CardNo = "Cart_CardNo", 531 TransactionNo = "Cart_TransactionNo", 532 TransactionState = "Cart_TransactionState", 533 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 534 RecurringOrder = "Cart_RecurringOrder", 535 RecurringOrderSettings = "Cart_RecurringOrderSettings", 536 SaveUsedCard = "Cart_SaveUsedCard", 537 SavedCardName = "Cart_SavedCardName", 538 PayWithASavedCard = "Cart_PayWithASavedCard", 539 CreateRecurringOrder = "Cart_CreateRecurringOrder", 540 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 541 AndItShouldEndOn = "Cart_AndItShouldEndOn", 542 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 543 GoToCheckout = "Cart_GoToCheckout", 544 CreateQuoteRequest = "Cart_CreateQuoteRequest", 545 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 546 ReviewOrder = "Cart_ReviewOrder", 547 ReviewOrderLine = "Cart_ReviewOrderLine", 548 GetParcelShops = "Cart_GetParcelShops", 549 ChangeParcelShop = "Cart_ChangeParcelShop", 550 ChooseAParcelShop = "Cart_ChooseAParcelShop", 551 ConfirmOrder = "Cart_ConfirmOrder", 552 AppliedToOrder = "Cart_AppliedToOrder", 553 EnterVoucherCode = "Cart_EnterVoucherCode", 554 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 555 RequiresAnAddress = "Cart_RequiresAnAddress", 556 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 557 NoAddressSelected = "Cart_NoAddressSelected", 558 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 559 AddressForm = "Cart_AddressForm", 560 AddressWasSent = "Account_AddressWasSent", 561 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 562 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 563 BillingAddressFieldError = "Account_BillingAddressFieldError", 564 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 565 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 566 OrderEmailText = "Crt_OrderEmailText", 567 CantBePickedUp = "Cart_CantBePickedUp", 568 CreateUserInCheckout = "Cart_CreateUserInCheckout", 569 ProductNoPickup = "Cart_ProductNoPickup", 570 SelectShippingAddress = "Cart_SelectShippingAddress", 571 DiscountStepMessage = "Cart_DiscountStepMessage", 572 ServiceRequestNumber = "Cart_ServiceRequestNumber", 573 InsertAccountEmail = "Cart_InsertAccountEmail", 574 InsertAccountPassword = "Cart_InsertAccountPassword", 575 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 576 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 577 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 578 SelectBillingAddress = "Cart_SelectBillingAddress", 579 RMAId = "Cart_RMAId", 580 RMAEmailNotification = "Cart_RMAEmailNotification"; 581 582 } 583 } 584 } 585 586 587 588 589 @helper RenderContent() 590 { 591 string title = Model.Item.GetString("Title"); 592 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 593 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 594 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 595 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 596 597 string subtitle = Model.Item.GetString("Subtitle"); 598 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 599 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 600 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 601 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 602 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 603 604 string content = Model.Item.GetString("Content"); 605 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 606 bool hasContentImage = contentImage.ToString() != ""; 607 608 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 609 bool hasImage = image.ToString() != ""; 610 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 611 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 612 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 613 614 string container = Model.Item.GetValue("Add_Container").ToString() == "True" && Model.Item.GetList("Container_Type").SelectedValue == "full" && Model.Item.GetValue("Add_Container_Padding").ToString() == "True"? "container" : ""; 615 616 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 617 string contentAwareCssClass = bannerType == "content-aware" ? "object-fit-cover h-100" : bannerType == "image-aware" && Model.Item.GetValue("Option__Mobile_Content_Aware").ToString() == "True" ? "object-fit-cover object-fit-md-unset h-100 h-md-unset" : ""; 618 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 619 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 620 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 621 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 622 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 623 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 624 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 625 626 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 627 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 628 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 629 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 630 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 631 // string imageSnapCssClass = ""; 632 string customCssClass = Model.Item.GetString("Custom_Class"); 633 634 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 635 @if (contentLayout == "1") 636 { 637 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 638 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 639 <div class="decor color-@(contentColor) child-mb-2"> 640 @if (!string.IsNullOrEmpty(title)) 641 { 642 @titleRender 643 } 644 @if (!string.IsNullOrEmpty(subtitle)) 645 { 646 @subtitleRender 647 } 648 @if (!string.IsNullOrEmpty(content)) 649 { 650 <div class="content">@content</div> 651 } 652 </div> 653 } 654 </div> 655 <div class="component-b-refactored__image @imageSnapCssClass"> 656 @if ((image.ToString()).Contains(".mp4")) 657 { 658 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 659 <source src="@image" type="video/mp4"> 660 </video> 661 } 662 else 663 { 664 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 665 } 666 </div> 667 } else if (contentLayout == "1/2") 668 { 669 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 670 671 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 672 @if (hasContentImage) 673 { 674 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload w-100 h-auto"/> 675 } 676 </div> 677 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 678 { 679 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 680 @if (!string.IsNullOrEmpty(title)) 681 { 682 @titleRender 683 } 684 @if (!string.IsNullOrEmpty(subtitle)) 685 { 686 @subtitleRender 687 } 688 @if (!string.IsNullOrEmpty(content)) 689 { 690 <div class="content">@content</div> 691 } 692 <div class="actions"> 693 <button type="button" class="btn-fill--brand">Discover our materials</button> 694 </div> 695 </div> 696 } 697 </div> 698 <div class="component-b-refactored__image @imageSnapCssClass"> 699 @if ((image.ToString()).Contains(".mp4")) 700 { 701 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 702 <source src="@image" type="video/mp4"> 703 </video> 704 } 705 else 706 { 707 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 708 } 709 </div> 710 } else if (contentLayout == "1/3" || contentLayout == "2/3") 711 { 712 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 713 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 714 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 715 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 716 @if (hasContentImage) 717 { 718 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload block w-100 h-auto" /> 719 } 720 </div> 721 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 722 { 723 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 724 725 @if (!string.IsNullOrEmpty(title)) 726 { 727 @titleRender 728 } 729 @if (!string.IsNullOrEmpty(subtitle)) 730 { 731 @subtitleRender 732 } 733 @if (!string.IsNullOrEmpty(content)) 734 { 735 <div class="content">@content</div> 736 } 737 <div class="actions"> 738 <button type="button" class="btn-fill--brand">Discover our materials</button> 739 </div> 740 </div> 741 } 742 </div> 743 744 <div class="component-b-refactored__image @imageSnapCssClass"> 745 @if ((image.ToString()).Contains(".mp4")) 746 { 747 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 748 <source src="@image" type="video/mp4"> 749 </video> 750 } 751 else 752 { 753 <img src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Compression=20&Resolution=72&Image=@(image)" data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload block w-100"/> 754 } 755 </div> 756 757 } 758 759 </div> 760 } 761 762 @{ 763 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 764 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 765 if (!hasContainer) 766 { 767 @RenderContent() 768 } else { 769 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 770 <div class="section__container @containerClass"> 771 <div class="section__content"> 772 @RenderContent() 773 </div> 774 </div> 775 } 776 } 777 778 779 780
Error executing template "Designs/Wizaris/Paragraph/Banner_V2.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 630
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.Execute() in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 772
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using System.Collections.Generic 3 @using System 4 @using System.Text.RegularExpressions 5 @using Dynamicweb.Core 6 @using Dynamicweb.Frontend 7 @using Df.Dw.Rapido 8 9 @using System.Text.RegularExpressions 10 @using System.Collections.Generic 11 @using System.Reflection 12 @using System.Web.UI.HtmlControls 13 @using Dynamicweb.News 14 @using Dynamicweb.Rapido.Blocks.Components 15 @using Dynamicweb.Rapido.Blocks.Components.Articles 16 @using Dynamicweb.Rapido.Blocks.Components.Documentation 17 @using Dynamicweb.Rapido.Blocks 18 19 @functions{ 20 public class Translations 21 { 22 public class General 23 { 24 public static string 25 Logo = "General_Logo", 26 GenerateAWB = "General_GenerateAWB", 27 DeliveryAgent = "General_DeliveryAgent", 28 SelectCountry = "General_SelectCountry", 29 DateInterval = "General_DateInterval", 30 CloseModal = "General_CloseModal", 31 ClosePanel = "General_ClosePanel", 32 SearchPage = "General_SearchPage", 33 Search = "General_Search", 34 CloseSearch = "General_CloseSearch", 35 All = "General_All", 36 View = "General_View", 37 ViewAll = "General_ViewAll", 38 ReadMore = "General_ReadMore", 39 More = "General_More", 40 Load = "General_Load", 41 Add = "General_Add", 42 Remove = "General_Remove", 43 Save = "General_Save", 44 Close = "General_Close", 45 Go = "General_Go", 46 Back = "General_Back", 47 Hi = "General_Hi", 48 Edit = "General_Edit", 49 Delete = "General_Delete", 50 DownloadExcel = "General_DownloadExcel", 51 Cancel = "General_Cancel", 52 SetDefault = "General_SetDefault", 53 Submit = "General_Submit", 54 SocialLinks = "General_SocialLinks", 55 MailingList = "General_MailingList", 56 YourEmailAddress = "General_YourEmailAddress", 57 SignUpMessage = "General_SignUpMessage", 58 SignUpForm = "General_SignUpForm", 59 YourSearchGave0Results = "General_YourSearchGave0Results", 60 Contact = "General_Contact", 61 Pages = "General_Pages", 62 NotAvailable = "General_NotAvailable", 63 Default = "General_Default", 64 Yes = "General_Yes", 65 No = "General_No", 66 Page = "General_Page", 67 Of = "General_Of", 68 FirstPage = "General_FirstPage", 69 LastPage = "General_LastPage", 70 ReturnToTop = "General_ReturnToTop", 71 Details = "General_Details", 72 Information = "General_Information", 73 Downloads = "General_Downloads", 74 Download = "General_Download", 75 GeneratePdf = "General_GeneratePdf", 76 DownloadPdf = "General_DownloadPdf", 77 Select = "General_Select", 78 SelectType = "General_SelectType", 79 Type = "General_Type", 80 RequestType = "General_RequestType", 81 Language = "General_Language", 82 Images = "General_Images", 83 Documents = "General_Documents", 84 Export = "General_Export", 85 ImagePurpose = "General_ImagePurpose", 86 Office = "General_Office", 87 Original = "General_Original", 88 Print = "General_Print", 89 Web = "General_Web", 90 ExportFormat = "General_ExportFormat", 91 Videos = "General_Videos", 92 AskForInfo = "General_AskForInfo", 93 DataSheet = "General_DataSheet", 94 LinkToPage = "General_LinkToPage", 95 Again = "General_Again", 96 Notice = "General_Notice", 97 Form = "General_Form", 98 TechnicalContact = "General_TechnicalContact", 99 Error = "General_Error", 100 Warning = "General_Warning", 101 Status = "General_Status", 102 State = "General_State", 103 NoDocumentsFound = "General_NoDocumentsFound", 104 CreditMemo = "General_CreditMemo", 105 History = "General_History", 106 Comment = "General_Comment", 107 AddComment = "General_AddComment", 108 EnterComment = "General_EnterComment", 109 NothingSelected = "General_NothingSelected", 110 Never = "General_Never", 111 Days = "General_Days", 112 Weeks = "General_Weeks", 113 Months = "General_Months", 114 IAcceptTheTermsAndConditions = "General_IAcceptTheTermsAndConditions", 115 TheTermsAndConditionsOfThisWebsite = "General_TheTermsAndConditionsOfThisWebsite", 116 ReadGeneralConditions = "General_ReadGeneralConditions", 117 SubscribeToNewsletter = "General_SubscribeToNewsletter", 118 Use = "General_Use", 119 Choose = "General_Choose", 120 Free = "General_Free", 121 Next = "General_Next", 122 GoTo = "General_GoTo", 123 NotFound = "General_NotFound", 124 AlreadyUsed = "General_AlreadyUsed", 125 IsNotActive = "General_IsNotActive", 126 Apply = "General_Apply", 127 NoItemsFound = "General_NoItemsFound", 128 GoToFrontPage = "General_GoToFrontPage", 129 LoginModalHeading = "General_LoginModalHeading", 130 LoginModalSubHeading = "General_LoginModalSubHeading", 131 ViewInBrowser = "General_ViewInBrowser", 132 CantSeeMessage = "General_CantSeeMessage", 133 Welcome = "General_Welcome", 134 Continue = "General_Continue", 135 UserIsActivated = "General_UserIsActivated", 136 Create = "General_Create", 137 ViewOffer = "General_ViewOffer", 138 CookiesHeader = "General_CookiesHeader", 139 CookiesText1 = "General_CookiesText1", 140 CookiesText2 = "General_CookiesText2", 141 CookiesDoNotAcceptCookies = "General_CookiesDoNotAcceptCookies", 142 CookiesOnlyAcceptFunctionalCookies = "General_OnlyAcceptFunctionalCookies", 143 CookiesAcceptAllCookies = "General_AcceptAllCookies", 144 RMADetailsEmail = "General_RMADetailsEmail", 145 RMAClientName = "General_RMAClientName", 146 RMADataCererii = "General_RMADataCererii", 147 RMATipCerere = "General_RMATipCerere", 148 RMAOrderInitial = "General_RMAOrderInitial", 149 RMAEmailText = "General_RMAEmailText", 150 Written = "General_Written", 151 By = "General_By", 152 On = "General_On", 153 Category = "General_Category"; 154 } 155 public class Account 156 { 157 public static string 158 LogIn = "Account_LogIn", 159 Promotions = "Account_Promotions", 160 Resupply = "Account_Resupply", 161 WorkInProgressOrders = "Account_WorkInProgressOrders", 162 ExchangePartsRequests = "Account_ExchangePartsRequests", 163 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 164 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 165 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 166 SignIn = "Account_SignIn", 167 SignOut = "Account_SignOut", 168 CreateAccount = "Account_CreateAccount", 169 ForgotYourPassword = "Account_ForgotYourPassword", 170 ResetYourPassword = "Account_ResetYourPassword", 171 RememberMe = "Account_RememberMe", 172 Password = "Account_Password", 173 Name = "Account_Name", 174 FirstName = "Account_FirstName", 175 LastName = "Account_LastName", 176 Description = "Address_Description", 177 Email = "Account_Email", 178 Username = "Account_Username", 179 Phone = "Account_Phone", 180 ZipCode = "Account_ZipCode", 181 City = "Account_City", 182 Country = "Account_Country", 183 CompanyName = "Account_CompanyName", 184 CompanyAddress = "Account_CompanyAddress", 185 CompanyCity = "Account_CompanyCity ", 186 CompanyZip = "Account_CompanyZip", 187 CompanyCountry = "Account_CompanyCountry", 188 CompanyID = "Account_CompanyID", 189 CompanyTIN = "Account_CompanyTIN", 190 CompanyVAT = "Account_CompanyVAT", 191 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 192 Company = "Account_Company", 193 StateRegion = "Account_StateRegion", 194 NewPassword = "Account_NewPassword", 195 OldPassword = "Account_OldPassword", 196 ConfirmPassword = "Account_ConfirmPassword", 197 BusinessNumber = "Account_BusinessNumber", 198 AlreadyACustomer = "Account_AlreadyACustomer", 199 MyProfile = "Account_MyProfile", 200 EditProfile = "Account_EditProfile", 201 MyOrders = "Account_MyOrders", 202 MyFavorites = "Account_MyFavorites", 203 MySavedCards = "Account_MySavedCards", 204 StopImpersonation = "Account_StopImpersonation", 205 Impersonate = "Account_Impersonate", 206 IsImpersonating = "Account_IsImpersonating", 207 StopImpresonationPageText ="Account_StopImpresonationPageText", 208 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 209 SearchUser = "Account_SearchUser", 210 ViewListOfUsers = "Account_ViewListOfUsers", 211 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 212 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 213 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 214 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 215 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 216 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 217 CreateAccountIncentive = "Account_CreateAccountIncentive", 218 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 219 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 220 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 221 UserNotFound = "Account_UserNotFound", 222 UsersFound = "Account_UsersFound", 223 SendPasswordRecovery = "Account_SendPasswordRecovery", 224 PasswordRecovery = "Account_PasswordRecovery", 225 SomethingWentWrong = "Account_SomethingWentWrong", 226 TryRecoverPassword = "Account_TryRecoverPassword", 227 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 228 ChooseANewPassword = "Account_ChooseANewPassword", 229 PasswordChanged = "Account_PasswordChanged", 230 SentEmailWithALinks = "Account_SentEmailWithALinks", 231 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 232 AStrongPassword = "Account_AStrongPassword", 233 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 234 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 235 IgnoreThisEmail = "Account_IgnoreThisEmail", 236 CompleteOrdersCount = "Account_CompleteOrdersCount", 237 CompanyCreditLimit = "Account_CompanyCreditLimit", 238 InvoiceValue = "Account_InvoiceValue", 239 CompanySold = "Account_CompanySold", 240 CompanyOverdue = "Account_CompanyOverdue", 241 OpenOrders = "Account_OpenOrders", 242 PlacedOrders = "Account_PlacedOrders", 243 ProductsOnSale = "Account_ProductsOnSale", 244 LoyaltyPoints = "Account_LoyaltyPoints", 245 RequestAccountStatements = "Account_RequestAccountStatements", 246 RequestComplaintForm = "Account_RequestComplaintForm", 247 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 248 YourConsents = "Account_YourConsents", 249 YourPointBalance = "Account_YourPointBalance", 250 Address = "Account_Address", 251 Address2 = "Account_Address2", 252 Addresses = "Account_Addresses", 253 MyAddresses = "Account_MyAddresses", 254 ManageAddresses = "Account_ManageAddresses", 255 NoAddressFound = "Account_NoAddressFound", 256 DefaultLocation = "Account_DefaultLocation", 257 DefaultPayment = "Account_DefaultPayment", 258 PaymentTerm = "Account_PaymentTerm", 259 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 260 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 261 AddNewAddress = "Account_AddNewAddress", 262 DeliveryAddresses = "Account_DeliveryAddresses", 263 BillingAddresses = "Account_BillingAddresses", 264 NoAddressesFound = "Account_NoAddressesFound", 265 EditAddress = "Account_EditAddress", 266 AddAddress = "Account_AddAddress", 267 SaveAddress = "Account_SaveAnAddress", 268 StreetNumber = "Account_StreetNumber", 269 DeleteThisAddress = "Account_DeleteThisAddress", 270 NoRMAsListFound = "Account_NoRMAsListFound", 271 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 272 CancelTheRequest = "Account_CancelTheRequest", 273 EmittedWarranties = "Account_EmittedWarranties", 274 ViewRma = "Account_ViewRma", 275 CancelRma = "Account_CancelRma", 276 CreateNewRequest = "Account_CreateNewRequest", 277 CreateRequest = "Account_CreateRequest", 278 CancelRequest = "Account_CancelRequest", 279 ViewRequest = "Account_ViewRequest", 280 RmaId = "Account_RmaId", 281 AdditionalInfo = "Account_AdditionalInfo", 282 CustomerComment = "Account_CustomerComment", 283 CustomerDetails = "Account_CustomerDetails", 284 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 285 CreateNewList = "Account_CreateNewList", 286 AddNewList = "Account_AddNewList", 287 EditList = "Account_EditList", 288 SetAsDefault = "Account_SetAsDefault", 289 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 290 PublishedTo = "Account_PublishedTo", 291 ReturnToList = "Account_ReturnToList", 292 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 293 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 294 CreateList = "Account_CreateList", 295 BackToProfile = "Account_BackToProfile", 296 YouAreAlmostThere = "Account_YouAreAlmostThere", 297 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 298 ProfileComplete = "Account_ProfileComplete", 299 ProfileCompletePageText = "Account_ProfileCompletePageText", 300 CreateUserAccount = "Account_CreateUserAccount", 301 CreateYourNewAccount = "Account_CreateYourNewAccount", 302 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 303 ResetPassword = "Account_ResetPassword", 304 PrivatePerson = "Account_PrivatePerson", 305 EmptyFields = "Account_CompleteAllFields", 306 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 307 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 308 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 309 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 310 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 311 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 312 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 313 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 314 ConfirmAccount = "Account_ConfirmAccount", 315 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 316 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 317 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 318 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 319 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 320 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 321 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 322 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 323 ConfirmEmail = "Account_ConfirmEmail", 324 AddNewWarranty = "Account_AddNewWarranty", 325 CreateNewWarranty = "Account_CreateWarranty", 326 CreateNewService = "Account_CreateService", 327 CreateNewPartsExchange = "Account_CreatePartsExchange", 328 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 329 LoginToViewFavorites = "Account_LoginToViewFavorites"; 330 } 331 public class Products 332 { 333 public static string 334 SelectRating = "Products_SelectRating", 335 RatingHeadline = "Products_RatingHeadline", 336 LoginToReview = "Products_LoginToReview", 337 NoReviewsFound = "Products_NoReviewsFound", 338 ProductsGeneral = "Products_ProductsGeneral", 339 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 340 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 341 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 342 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 343 ExchangePartsFor = "Products_ExchangePartsFor", 344 Product = "Products_Product", 345 AnyProduct = "Product_AnyProduct", 346 ProductNo = "Products_ProductNo", 347 ProductCode = "Products_ProductCode", 348 Prod = "Products_Prod", 349 Price = "Products_Price", 350 Vat = "Products_Vat", 351 SearchProductsOrPages = "Products_SearchProductsOrPages", 352 SearchProducts = "Products_SearchProducts", 353 SearchResultFor = "Products_SearchResultFor", 354 Newest = "Products_Newest", 355 PriceHighLow = "Products_PriceHighLow", 356 PriceLowHigh = "Products_PriceLowHigh", 357 Stock = "Products_Stock", 358 TotalStock = "Products_TotalStock", 359 InStock = "Products_InStock", 360 OutOfStock = "Products_OutOfStock", 361 Delivery = "Products_Delivery", 362 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 363 Filters = "Products_Filters", 364 SelectFilters = "Products_SelectFilters", 365 CloseFilters = "Products_CloseFilters", 366 RemoveFilters = "Products_RemoveFilters", 367 ResetAllFilters = "Products_ResetAllFilters", 368 ProductCategories = "Products_ProductCategories", 369 Categories = "Products_Categories", 370 ExclVAT = "Products_ExclVAT", 371 InclVAT = "Products_InclVAT", 372 BuyWithPoints = "Products_BuyWithPoints", 373 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 374 ProductNumber = "Products_ProductNumber", 375 Brand = "Products_Brand", 376 Buc = "Products_Buc", 377 PleaseSelectVariant = "Products_PleaseSelectVariant", 378 Sort = "Products_Sort", 379 SortBy = "Products_SortBy", 380 Summary = "Products_Summary", 381 Description = "Products_Description", 382 Specifications = "Products_Specifications", 383 Reviews = "Products_Reviews", 384 GeneralReviews = "Products_GeneralReviews", 385 AddAReview = "Products_AddAReview", 386 ProductAssets = "Products_ProductAssets", 387 Variants = "Products_Variants", 388 VariantsList = "Products_VariantsList", 389 IncludingProducts = "Products_IncludingProducts", 390 MinimumQuantity = "Products_MinimumQuantity", 391 StepQuantity = "Products_StepQuantity", 392 PriceWithVat = "Products_PriceWithVat", 393 Quantity = "Products_Quantity", 394 TotalPrice = "Products_TotalPrice", 395 TotalWithVat = "Products_TotalWithVat", 396 RecentSearches = "Products_RecentSearches", 397 ItemNumber = "Products_ItemNumber", 398 UnitPrice = "Products_UnitPrice", 399 ViewFavorites = "Products_ViewFavorites", 400 ChooseList = "Products_ChooseList", 401 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 402 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 403 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 404 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 405 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 406 AddToFavorites = "Products_AddToFavorites", 407 RemoveFromFavorites = "Products_RemoveFromFavorites", 408 OrCreateOne = "Products_OrCreateOne", 409 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 410 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 411 EnterAListName = "Products_EnterAListName", 412 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 413 SeeFavoriteList = "Products_SeeFavoriteList", 414 Compare = "Products_Compare", 415 AddToCompare = "Products_AddToCompare", 416 RemoveFromCompare = "Products_RemoveFromCompare", 417 ViewMore = "Products_ViewMore", 418 RecommendedPrice = "Products_RecommendedPrice", 419 YouSave = "Products_YouSave", 420 SalesUOM = "Products_SalesUOM", 421 AvailablilityDateMessage = "Product_AvailableIn"; 422 } 423 public class Cart 424 { 425 public static string 426 CartGeneral = "Cart_CartGeneral", 427 SignInCart = "Cart_SignInCart", 428 PlacedOrderDate = "Cart_PlacedOrderDate", 429 MaxFinalizeDate = "Cart_MaxFinalizeDate", 430 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 431 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 432 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 433 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 434 DeliverOrder = "Cart_DeliverOrder", 435 OrderDetails = "Cart_OrderDetails", 436 ApproveOrder = "Cart_ApproveOrder", 437 ApprovedOrder = "Cart_ApprovedOrder", 438 RejectOrder = "Cart_RejectOrder", 439 RejectedOrder = "Cart_RejectedOrder", 440 DeliveredOrder = "Cart_DeliveredOrder", 441 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 442 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 443 ShoppingCart = "Cart_ShoppingCart", 444 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 445 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 446 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 447 ContinueShopping = "Cart_ContinueShopping", 448 ProceedToCheckout = "Cart_ProceedToCheckout", 449 Earnings = "Cart_Earnings", 450 Points = "Cart_Points", 451 NoPointsFound = "Cart_NoPointsFound", 452 YourPointBalance = "Cart_YourPointBalance", 453 UsedPoints = "Cart_UsedPoints", 454 AddPoints = "Cart_AddPoints", 455 Variant = "Cart_Variant", 456 Unit = "Cart_Unit", 457 Qty = "Cart_Qty", 458 Subtotal = "Cart_Subtotal", 459 Total = "Cart_Total", 460 CannotOrder = "Cart_CannotOrder", 461 RemoveOrderline = "Cart_RemoveOrderline", 462 UpdateOrderline = "Cart_UpdateOrderline", 463 OrderlineUpdating = "Cart_OrderlineUpdating", 464 OrderlineUpdated = "Cart_OrderlineUpdated", 465 OrderlineRemoving = "Cart_OrderlineRemoving", 466 OrderlineRemoved = "Cart_OrderlineRemoved", 467 EmptyCartStart = "Cart_EmptyCartStart", 468 EmptyCartFinished = "Cart_EmptyCartFinished", 469 EmptyCarCheck = "Cart_EmptyCartCheck", 470 SelectShippingOption = "Cart_SelectShippingOption", 471 SelectBillingOption = "Cart_SelectBillingOption", 472 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 473 MaximumPointsText = "Cart_MaximumPointsText", 474 EmptyCart = "Cart_EmptyCart", 475 Shipping = "Cart_Shipping", 476 AddToCart = "Cart_AddToCart", 477 BuyAll = "Cart_BuyAll", 478 BuyFor = "Cart_BuyFor", 479 Order = "Cart_Order", 480 OrderID = "Cart_OrderID", 481 Date = "Cart_Date", 482 OrderNumber = "Cart_OrderNumber", 483 OrderNumberNav = "Cart_OrderNumberNav", 484 OrderDate = "Cart_OrderDate", 485 OrderValue = "Cart_OrderValue", 486 ViewOrder = "Cart_ViewOrder", 487 PONumber = "Cart_PONumber", 488 Reorder = "Cart_Reorder", 489 NoOrdersFound = "Cart_NoOrdersFound", 490 Invoice = "Cart_Invoice", 491 ChooseInvoice = "Cart_ChooseInvoice", 492 SearchInvoices = "Cart_SearchInvoices", 493 NoInvoicesFound = "Cart_NoInvoicesFound", 494 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 495 InvoiceNumber = "Cart_InvoiceNumber", 496 InvoiceDate = "Cart_InvoiceDate", 497 TrackingNumber = "Cart_TrackingNumber", 498 DeliveryNote = "Cart_DeliveryNote", 499 ViewDeliveryNote = "Cart_ViewDeliveryNote", 500 SelectOrder = "Cart_SelectOrder", 501 Payment = "Cart_Payment", 502 PaymentMethod = "Cart_PaymentMethod", 503 ShippingMethod = "Cart_ShippingMethod", 504 SelectShipping = "Cart_SelectShipping", 505 SelectPayment = "Cart_SelectPayment", 506 BillingAddress = "Cart_BillingAddress", 507 SameBillingAsShipping = "Cart_BillingAsShipping", 508 ShippmentNumber = "Cart_ShippmentNumber", 509 ShippingAddress = "Cart_ShippingAddress", 510 AddAlternativeAdr = "Cart_AddAlternativeAdr", 511 SelectSavedAddress = "Cart_SelectSavedAddress", 512 PaymentAndShipping = "Cart_PaymentAndShipping", 513 RecurringEvery = "Cart_RecurringEvery", 514 RecurringStartDate = "Cart_RecurringStartDate", 515 RecurringEndDate = "Cart_RecurringEndDate", 516 StartDate = "Cart_StartDate", 517 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 518 GiftCardName = "Cart_GiftCardName", 519 GiftCardCode = "Cart_GiftCardCode", 520 ExpiryDate = "Cart_ExpiryDate", 521 InitialAmount = "Cart_InitialAmount", 522 UsedAmount = "Cart_UsedAmount", 523 RemainingBalance = "Cart_RemainingBalance", 524 Vouchers = "Cart_Vouchers", 525 Voucher = "Cart_Voucher", 526 HasBeenUsed = "Cart_HasBeenUsed ", 527 GiftCardAmount = "Cart_GiftCardAmount", 528 ShopInformation = "Cart_ShopInformation", 529 ShopName = "Cart_ShopName", 530 CardNo = "Cart_CardNo", 531 TransactionNo = "Cart_TransactionNo", 532 TransactionState = "Cart_TransactionState", 533 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 534 RecurringOrder = "Cart_RecurringOrder", 535 RecurringOrderSettings = "Cart_RecurringOrderSettings", 536 SaveUsedCard = "Cart_SaveUsedCard", 537 SavedCardName = "Cart_SavedCardName", 538 PayWithASavedCard = "Cart_PayWithASavedCard", 539 CreateRecurringOrder = "Cart_CreateRecurringOrder", 540 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 541 AndItShouldEndOn = "Cart_AndItShouldEndOn", 542 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 543 GoToCheckout = "Cart_GoToCheckout", 544 CreateQuoteRequest = "Cart_CreateQuoteRequest", 545 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 546 ReviewOrder = "Cart_ReviewOrder", 547 ReviewOrderLine = "Cart_ReviewOrderLine", 548 GetParcelShops = "Cart_GetParcelShops", 549 ChangeParcelShop = "Cart_ChangeParcelShop", 550 ChooseAParcelShop = "Cart_ChooseAParcelShop", 551 ConfirmOrder = "Cart_ConfirmOrder", 552 AppliedToOrder = "Cart_AppliedToOrder", 553 EnterVoucherCode = "Cart_EnterVoucherCode", 554 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 555 RequiresAnAddress = "Cart_RequiresAnAddress", 556 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 557 NoAddressSelected = "Cart_NoAddressSelected", 558 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 559 AddressForm = "Cart_AddressForm", 560 AddressWasSent = "Account_AddressWasSent", 561 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 562 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 563 BillingAddressFieldError = "Account_BillingAddressFieldError", 564 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 565 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 566 OrderEmailText = "Crt_OrderEmailText", 567 CantBePickedUp = "Cart_CantBePickedUp", 568 CreateUserInCheckout = "Cart_CreateUserInCheckout", 569 ProductNoPickup = "Cart_ProductNoPickup", 570 SelectShippingAddress = "Cart_SelectShippingAddress", 571 DiscountStepMessage = "Cart_DiscountStepMessage", 572 ServiceRequestNumber = "Cart_ServiceRequestNumber", 573 InsertAccountEmail = "Cart_InsertAccountEmail", 574 InsertAccountPassword = "Cart_InsertAccountPassword", 575 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 576 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 577 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 578 SelectBillingAddress = "Cart_SelectBillingAddress", 579 RMAId = "Cart_RMAId", 580 RMAEmailNotification = "Cart_RMAEmailNotification"; 581 582 } 583 } 584 } 585 586 587 588 589 @helper RenderContent() 590 { 591 string title = Model.Item.GetString("Title"); 592 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 593 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 594 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 595 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 596 597 string subtitle = Model.Item.GetString("Subtitle"); 598 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 599 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 600 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 601 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 602 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 603 604 string content = Model.Item.GetString("Content"); 605 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 606 bool hasContentImage = contentImage.ToString() != ""; 607 608 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 609 bool hasImage = image.ToString() != ""; 610 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 611 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 612 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 613 614 string container = Model.Item.GetValue("Add_Container").ToString() == "True" && Model.Item.GetList("Container_Type").SelectedValue == "full" && Model.Item.GetValue("Add_Container_Padding").ToString() == "True"? "container" : ""; 615 616 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 617 string contentAwareCssClass = bannerType == "content-aware" ? "object-fit-cover h-100" : bannerType == "image-aware" && Model.Item.GetValue("Option__Mobile_Content_Aware").ToString() == "True" ? "object-fit-cover object-fit-md-unset h-100 h-md-unset" : ""; 618 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 619 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 620 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 621 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 622 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 623 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 624 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 625 626 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 627 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 628 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 629 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 630 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 631 // string imageSnapCssClass = ""; 632 string customCssClass = Model.Item.GetString("Custom_Class"); 633 634 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 635 @if (contentLayout == "1") 636 { 637 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 638 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 639 <div class="decor color-@(contentColor) child-mb-2"> 640 @if (!string.IsNullOrEmpty(title)) 641 { 642 @titleRender 643 } 644 @if (!string.IsNullOrEmpty(subtitle)) 645 { 646 @subtitleRender 647 } 648 @if (!string.IsNullOrEmpty(content)) 649 { 650 <div class="content">@content</div> 651 } 652 </div> 653 } 654 </div> 655 <div class="component-b-refactored__image @imageSnapCssClass"> 656 @if ((image.ToString()).Contains(".mp4")) 657 { 658 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 659 <source src="@image" type="video/mp4"> 660 </video> 661 } 662 else 663 { 664 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 665 } 666 </div> 667 } else if (contentLayout == "1/2") 668 { 669 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 670 671 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 672 @if (hasContentImage) 673 { 674 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload w-100 h-auto"/> 675 } 676 </div> 677 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 678 { 679 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 680 @if (!string.IsNullOrEmpty(title)) 681 { 682 @titleRender 683 } 684 @if (!string.IsNullOrEmpty(subtitle)) 685 { 686 @subtitleRender 687 } 688 @if (!string.IsNullOrEmpty(content)) 689 { 690 <div class="content">@content</div> 691 } 692 <div class="actions"> 693 <button type="button" class="btn-fill--brand">Discover our materials</button> 694 </div> 695 </div> 696 } 697 </div> 698 <div class="component-b-refactored__image @imageSnapCssClass"> 699 @if ((image.ToString()).Contains(".mp4")) 700 { 701 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 702 <source src="@image" type="video/mp4"> 703 </video> 704 } 705 else 706 { 707 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 708 } 709 </div> 710 } else if (contentLayout == "1/3" || contentLayout == "2/3") 711 { 712 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 713 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 714 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 715 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 716 @if (hasContentImage) 717 { 718 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload block w-100 h-auto" /> 719 } 720 </div> 721 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 722 { 723 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 724 725 @if (!string.IsNullOrEmpty(title)) 726 { 727 @titleRender 728 } 729 @if (!string.IsNullOrEmpty(subtitle)) 730 { 731 @subtitleRender 732 } 733 @if (!string.IsNullOrEmpty(content)) 734 { 735 <div class="content">@content</div> 736 } 737 <div class="actions"> 738 <button type="button" class="btn-fill--brand">Discover our materials</button> 739 </div> 740 </div> 741 } 742 </div> 743 744 <div class="component-b-refactored__image @imageSnapCssClass"> 745 @if ((image.ToString()).Contains(".mp4")) 746 { 747 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 748 <source src="@image" type="video/mp4"> 749 </video> 750 } 751 else 752 { 753 <img src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Compression=20&Resolution=72&Image=@(image)" data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload block w-100"/> 754 } 755 </div> 756 757 } 758 759 </div> 760 } 761 762 @{ 763 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 764 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 765 if (!hasContainer) 766 { 767 @RenderContent() 768 } else { 769 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 770 <div class="section__container @containerClass"> 771 <div class="section__content"> 772 @RenderContent() 773 </div> 774 </div> 775 } 776 } 777 778 779 780
Error executing template "Designs/Wizaris/Paragraph/Banner_V2.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 630
   at CompiledRazorTemplates.Dynamic.RazorEngine_2c528dcccefc45d8b86cac62ee7f903b.Execute() in C:\inetpub\wwwroot\DecoCenter\Live\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 772
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using System.Collections.Generic 3 @using System 4 @using System.Text.RegularExpressions 5 @using Dynamicweb.Core 6 @using Dynamicweb.Frontend 7 @using Df.Dw.Rapido 8 9 @using System.Text.RegularExpressions 10 @using System.Collections.Generic 11 @using System.Reflection 12 @using System.Web.UI.HtmlControls 13 @using Dynamicweb.News 14 @using Dynamicweb.Rapido.Blocks.Components 15 @using Dynamicweb.Rapido.Blocks.Components.Articles 16 @using Dynamicweb.Rapido.Blocks.Components.Documentation 17 @using Dynamicweb.Rapido.Blocks 18 19 @functions{ 20 public class Translations 21 { 22 public class General 23 { 24 public static string 25 Logo = "General_Logo", 26 GenerateAWB = "General_GenerateAWB", 27 DeliveryAgent = "General_DeliveryAgent", 28 SelectCountry = "General_SelectCountry", 29 DateInterval = "General_DateInterval", 30 CloseModal = "General_CloseModal", 31 ClosePanel = "General_ClosePanel", 32 SearchPage = "General_SearchPage", 33 Search = "General_Search", 34 CloseSearch = "General_CloseSearch", 35 All = "General_All", 36 View = "General_View", 37 ViewAll = "General_ViewAll", 38 ReadMore = "General_ReadMore", 39 More = "General_More", 40 Load = "General_Load", 41 Add = "General_Add", 42 Remove = "General_Remove", 43 Save = "General_Save", 44 Close = "General_Close", 45 Go = "General_Go", 46 Back = "General_Back", 47 Hi = "General_Hi", 48 Edit = "General_Edit", 49 Delete = "General_Delete", 50 DownloadExcel = "General_DownloadExcel", 51 Cancel = "General_Cancel", 52 SetDefault = "General_SetDefault", 53 Submit = "General_Submit", 54 SocialLinks = "General_SocialLinks", 55 MailingList = "General_MailingList", 56 YourEmailAddress = "General_YourEmailAddress", 57 SignUpMessage = "General_SignUpMessage", 58 SignUpForm = "General_SignUpForm", 59 YourSearchGave0Results = "General_YourSearchGave0Results", 60 Contact = "General_Contact", 61 Pages = "General_Pages", 62 NotAvailable = "General_NotAvailable", 63 Default = "General_Default", 64 Yes = "General_Yes", 65 No = "General_No", 66 Page = "General_Page", 67 Of = "General_Of", 68 FirstPage = "General_FirstPage", 69 LastPage = "General_LastPage", 70 ReturnToTop = "General_ReturnToTop", 71 Details = "General_Details", 72 Information = "General_Information", 73 Downloads = "General_Downloads", 74 Download = "General_Download", 75 GeneratePdf = "General_GeneratePdf", 76 DownloadPdf = "General_DownloadPdf", 77 Select = "General_Select", 78 SelectType = "General_SelectType", 79 Type = "General_Type", 80 RequestType = "General_RequestType", 81 Language = "General_Language", 82 Images = "General_Images", 83 Documents = "General_Documents", 84 Export = "General_Export", 85 ImagePurpose = "General_ImagePurpose", 86 Office = "General_Office", 87 Original = "General_Original", 88 Print = "General_Print", 89 Web = "General_Web", 90 ExportFormat = "General_ExportFormat", 91 Videos = "General_Videos", 92 AskForInfo = "General_AskForInfo", 93 DataSheet = "General_DataSheet", 94 LinkToPage = "General_LinkToPage", 95 Again = "General_Again", 96 Notice = "General_Notice", 97 Form = "General_Form", 98 TechnicalContact = "General_TechnicalContact", 99 Error = "General_Error", 100 Warning = "General_Warning", 101 Status = "General_Status", 102 State = "General_State", 103 NoDocumentsFound = "General_NoDocumentsFound", 104 CreditMemo = "General_CreditMemo", 105 History = "General_History", 106 Comment = "General_Comment", 107 AddComment = "General_AddComment", 108 EnterComment = "General_EnterComment", 109 NothingSelected = "General_NothingSelected", 110 Never = "General_Never", 111 Days = "General_Days", 112 Weeks = "General_Weeks", 113 Months = "General_Months", 114 IAcceptTheTermsAndConditions = "General_IAcceptTheTermsAndConditions", 115 TheTermsAndConditionsOfThisWebsite = "General_TheTermsAndConditionsOfThisWebsite", 116 ReadGeneralConditions = "General_ReadGeneralConditions", 117 SubscribeToNewsletter = "General_SubscribeToNewsletter", 118 Use = "General_Use", 119 Choose = "General_Choose", 120 Free = "General_Free", 121 Next = "General_Next", 122 GoTo = "General_GoTo", 123 NotFound = "General_NotFound", 124 AlreadyUsed = "General_AlreadyUsed", 125 IsNotActive = "General_IsNotActive", 126 Apply = "General_Apply", 127 NoItemsFound = "General_NoItemsFound", 128 GoToFrontPage = "General_GoToFrontPage", 129 LoginModalHeading = "General_LoginModalHeading", 130 LoginModalSubHeading = "General_LoginModalSubHeading", 131 ViewInBrowser = "General_ViewInBrowser", 132 CantSeeMessage = "General_CantSeeMessage", 133 Welcome = "General_Welcome", 134 Continue = "General_Continue", 135 UserIsActivated = "General_UserIsActivated", 136 Create = "General_Create", 137 ViewOffer = "General_ViewOffer", 138 CookiesHeader = "General_CookiesHeader", 139 CookiesText1 = "General_CookiesText1", 140 CookiesText2 = "General_CookiesText2", 141 CookiesDoNotAcceptCookies = "General_CookiesDoNotAcceptCookies", 142 CookiesOnlyAcceptFunctionalCookies = "General_OnlyAcceptFunctionalCookies", 143 CookiesAcceptAllCookies = "General_AcceptAllCookies", 144 RMADetailsEmail = "General_RMADetailsEmail", 145 RMAClientName = "General_RMAClientName", 146 RMADataCererii = "General_RMADataCererii", 147 RMATipCerere = "General_RMATipCerere", 148 RMAOrderInitial = "General_RMAOrderInitial", 149 RMAEmailText = "General_RMAEmailText", 150 Written = "General_Written", 151 By = "General_By", 152 On = "General_On", 153 Category = "General_Category"; 154 } 155 public class Account 156 { 157 public static string 158 LogIn = "Account_LogIn", 159 Promotions = "Account_Promotions", 160 Resupply = "Account_Resupply", 161 WorkInProgressOrders = "Account_WorkInProgressOrders", 162 ExchangePartsRequests = "Account_ExchangePartsRequests", 163 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 164 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 165 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 166 SignIn = "Account_SignIn", 167 SignOut = "Account_SignOut", 168 CreateAccount = "Account_CreateAccount", 169 ForgotYourPassword = "Account_ForgotYourPassword", 170 ResetYourPassword = "Account_ResetYourPassword", 171 RememberMe = "Account_RememberMe", 172 Password = "Account_Password", 173 Name = "Account_Name", 174 FirstName = "Account_FirstName", 175 LastName = "Account_LastName", 176 Description = "Address_Description", 177 Email = "Account_Email", 178 Username = "Account_Username", 179 Phone = "Account_Phone", 180 ZipCode = "Account_ZipCode", 181 City = "Account_City", 182 Country = "Account_Country", 183 CompanyName = "Account_CompanyName", 184 CompanyAddress = "Account_CompanyAddress", 185 CompanyCity = "Account_CompanyCity ", 186 CompanyZip = "Account_CompanyZip", 187 CompanyCountry = "Account_CompanyCountry", 188 CompanyID = "Account_CompanyID", 189 CompanyTIN = "Account_CompanyTIN", 190 CompanyVAT = "Account_CompanyVAT", 191 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 192 Company = "Account_Company", 193 StateRegion = "Account_StateRegion", 194 NewPassword = "Account_NewPassword", 195 OldPassword = "Account_OldPassword", 196 ConfirmPassword = "Account_ConfirmPassword", 197 BusinessNumber = "Account_BusinessNumber", 198 AlreadyACustomer = "Account_AlreadyACustomer", 199 MyProfile = "Account_MyProfile", 200 EditProfile = "Account_EditProfile", 201 MyOrders = "Account_MyOrders", 202 MyFavorites = "Account_MyFavorites", 203 MySavedCards = "Account_MySavedCards", 204 StopImpersonation = "Account_StopImpersonation", 205 Impersonate = "Account_Impersonate", 206 IsImpersonating = "Account_IsImpersonating", 207 StopImpresonationPageText ="Account_StopImpresonationPageText", 208 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 209 SearchUser = "Account_SearchUser", 210 ViewListOfUsers = "Account_ViewListOfUsers", 211 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 212 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 213 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 214 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 215 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 216 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 217 CreateAccountIncentive = "Account_CreateAccountIncentive", 218 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 219 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 220 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 221 UserNotFound = "Account_UserNotFound", 222 UsersFound = "Account_UsersFound", 223 SendPasswordRecovery = "Account_SendPasswordRecovery", 224 PasswordRecovery = "Account_PasswordRecovery", 225 SomethingWentWrong = "Account_SomethingWentWrong", 226 TryRecoverPassword = "Account_TryRecoverPassword", 227 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 228 ChooseANewPassword = "Account_ChooseANewPassword", 229 PasswordChanged = "Account_PasswordChanged", 230 SentEmailWithALinks = "Account_SentEmailWithALinks", 231 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 232 AStrongPassword = "Account_AStrongPassword", 233 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 234 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 235 IgnoreThisEmail = "Account_IgnoreThisEmail", 236 CompleteOrdersCount = "Account_CompleteOrdersCount", 237 CompanyCreditLimit = "Account_CompanyCreditLimit", 238 InvoiceValue = "Account_InvoiceValue", 239 CompanySold = "Account_CompanySold", 240 CompanyOverdue = "Account_CompanyOverdue", 241 OpenOrders = "Account_OpenOrders", 242 PlacedOrders = "Account_PlacedOrders", 243 ProductsOnSale = "Account_ProductsOnSale", 244 LoyaltyPoints = "Account_LoyaltyPoints", 245 RequestAccountStatements = "Account_RequestAccountStatements", 246 RequestComplaintForm = "Account_RequestComplaintForm", 247 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 248 YourConsents = "Account_YourConsents", 249 YourPointBalance = "Account_YourPointBalance", 250 Address = "Account_Address", 251 Address2 = "Account_Address2", 252 Addresses = "Account_Addresses", 253 MyAddresses = "Account_MyAddresses", 254 ManageAddresses = "Account_ManageAddresses", 255 NoAddressFound = "Account_NoAddressFound", 256 DefaultLocation = "Account_DefaultLocation", 257 DefaultPayment = "Account_DefaultPayment", 258 PaymentTerm = "Account_PaymentTerm", 259 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 260 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 261 AddNewAddress = "Account_AddNewAddress", 262 DeliveryAddresses = "Account_DeliveryAddresses", 263 BillingAddresses = "Account_BillingAddresses", 264 NoAddressesFound = "Account_NoAddressesFound", 265 EditAddress = "Account_EditAddress", 266 AddAddress = "Account_AddAddress", 267 SaveAddress = "Account_SaveAnAddress", 268 StreetNumber = "Account_StreetNumber", 269 DeleteThisAddress = "Account_DeleteThisAddress", 270 NoRMAsListFound = "Account_NoRMAsListFound", 271 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 272 CancelTheRequest = "Account_CancelTheRequest", 273 EmittedWarranties = "Account_EmittedWarranties", 274 ViewRma = "Account_ViewRma", 275 CancelRma = "Account_CancelRma", 276 CreateNewRequest = "Account_CreateNewRequest", 277 CreateRequest = "Account_CreateRequest", 278 CancelRequest = "Account_CancelRequest", 279 ViewRequest = "Account_ViewRequest", 280 RmaId = "Account_RmaId", 281 AdditionalInfo = "Account_AdditionalInfo", 282 CustomerComment = "Account_CustomerComment", 283 CustomerDetails = "Account_CustomerDetails", 284 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 285 CreateNewList = "Account_CreateNewList", 286 AddNewList = "Account_AddNewList", 287 EditList = "Account_EditList", 288 SetAsDefault = "Account_SetAsDefault", 289 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 290 PublishedTo = "Account_PublishedTo", 291 ReturnToList = "Account_ReturnToList", 292 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 293 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 294 CreateList = "Account_CreateList", 295 BackToProfile = "Account_BackToProfile", 296 YouAreAlmostThere = "Account_YouAreAlmostThere", 297 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 298 ProfileComplete = "Account_ProfileComplete", 299 ProfileCompletePageText = "Account_ProfileCompletePageText", 300 CreateUserAccount = "Account_CreateUserAccount", 301 CreateYourNewAccount = "Account_CreateYourNewAccount", 302 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 303 ResetPassword = "Account_ResetPassword", 304 PrivatePerson = "Account_PrivatePerson", 305 EmptyFields = "Account_CompleteAllFields", 306 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 307 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 308 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 309 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 310 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 311 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 312 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 313 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 314 ConfirmAccount = "Account_ConfirmAccount", 315 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 316 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 317 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 318 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 319 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 320 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 321 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 322 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 323 ConfirmEmail = "Account_ConfirmEmail", 324 AddNewWarranty = "Account_AddNewWarranty", 325 CreateNewWarranty = "Account_CreateWarranty", 326 CreateNewService = "Account_CreateService", 327 CreateNewPartsExchange = "Account_CreatePartsExchange", 328 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 329 LoginToViewFavorites = "Account_LoginToViewFavorites"; 330 } 331 public class Products 332 { 333 public static string 334 SelectRating = "Products_SelectRating", 335 RatingHeadline = "Products_RatingHeadline", 336 LoginToReview = "Products_LoginToReview", 337 NoReviewsFound = "Products_NoReviewsFound", 338 ProductsGeneral = "Products_ProductsGeneral", 339 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 340 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 341 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 342 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 343 ExchangePartsFor = "Products_ExchangePartsFor", 344 Product = "Products_Product", 345 AnyProduct = "Product_AnyProduct", 346 ProductNo = "Products_ProductNo", 347 ProductCode = "Products_ProductCode", 348 Prod = "Products_Prod", 349 Price = "Products_Price", 350 Vat = "Products_Vat", 351 SearchProductsOrPages = "Products_SearchProductsOrPages", 352 SearchProducts = "Products_SearchProducts", 353 SearchResultFor = "Products_SearchResultFor", 354 Newest = "Products_Newest", 355 PriceHighLow = "Products_PriceHighLow", 356 PriceLowHigh = "Products_PriceLowHigh", 357 Stock = "Products_Stock", 358 TotalStock = "Products_TotalStock", 359 InStock = "Products_InStock", 360 OutOfStock = "Products_OutOfStock", 361 Delivery = "Products_Delivery", 362 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 363 Filters = "Products_Filters", 364 SelectFilters = "Products_SelectFilters", 365 CloseFilters = "Products_CloseFilters", 366 RemoveFilters = "Products_RemoveFilters", 367 ResetAllFilters = "Products_ResetAllFilters", 368 ProductCategories = "Products_ProductCategories", 369 Categories = "Products_Categories", 370 ExclVAT = "Products_ExclVAT", 371 InclVAT = "Products_InclVAT", 372 BuyWithPoints = "Products_BuyWithPoints", 373 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 374 ProductNumber = "Products_ProductNumber", 375 Brand = "Products_Brand", 376 Buc = "Products_Buc", 377 PleaseSelectVariant = "Products_PleaseSelectVariant", 378 Sort = "Products_Sort", 379 SortBy = "Products_SortBy", 380 Summary = "Products_Summary", 381 Description = "Products_Description", 382 Specifications = "Products_Specifications", 383 Reviews = "Products_Reviews", 384 GeneralReviews = "Products_GeneralReviews", 385 AddAReview = "Products_AddAReview", 386 ProductAssets = "Products_ProductAssets", 387 Variants = "Products_Variants", 388 VariantsList = "Products_VariantsList", 389 IncludingProducts = "Products_IncludingProducts", 390 MinimumQuantity = "Products_MinimumQuantity", 391 StepQuantity = "Products_StepQuantity", 392 PriceWithVat = "Products_PriceWithVat", 393 Quantity = "Products_Quantity", 394 TotalPrice = "Products_TotalPrice", 395 TotalWithVat = "Products_TotalWithVat", 396 RecentSearches = "Products_RecentSearches", 397 ItemNumber = "Products_ItemNumber", 398 UnitPrice = "Products_UnitPrice", 399 ViewFavorites = "Products_ViewFavorites", 400 ChooseList = "Products_ChooseList", 401 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 402 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 403 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 404 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 405 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 406 AddToFavorites = "Products_AddToFavorites", 407 RemoveFromFavorites = "Products_RemoveFromFavorites", 408 OrCreateOne = "Products_OrCreateOne", 409 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 410 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 411 EnterAListName = "Products_EnterAListName", 412 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 413 SeeFavoriteList = "Products_SeeFavoriteList", 414 Compare = "Products_Compare", 415 AddToCompare = "Products_AddToCompare", 416 RemoveFromCompare = "Products_RemoveFromCompare", 417 ViewMore = "Products_ViewMore", 418 RecommendedPrice = "Products_RecommendedPrice", 419 YouSave = "Products_YouSave", 420 SalesUOM = "Products_SalesUOM", 421 AvailablilityDateMessage = "Product_AvailableIn"; 422 } 423 public class Cart 424 { 425 public static string 426 CartGeneral = "Cart_CartGeneral", 427 SignInCart = "Cart_SignInCart", 428 PlacedOrderDate = "Cart_PlacedOrderDate", 429 MaxFinalizeDate = "Cart_MaxFinalizeDate", 430 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 431 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 432 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 433 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 434 DeliverOrder = "Cart_DeliverOrder", 435 OrderDetails = "Cart_OrderDetails", 436 ApproveOrder = "Cart_ApproveOrder", 437 ApprovedOrder = "Cart_ApprovedOrder", 438 RejectOrder = "Cart_RejectOrder", 439 RejectedOrder = "Cart_RejectedOrder", 440 DeliveredOrder = "Cart_DeliveredOrder", 441 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 442 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 443 ShoppingCart = "Cart_ShoppingCart", 444 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 445 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 446 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 447 ContinueShopping = "Cart_ContinueShopping", 448 ProceedToCheckout = "Cart_ProceedToCheckout", 449 Earnings = "Cart_Earnings", 450 Points = "Cart_Points", 451 NoPointsFound = "Cart_NoPointsFound", 452 YourPointBalance = "Cart_YourPointBalance", 453 UsedPoints = "Cart_UsedPoints", 454 AddPoints = "Cart_AddPoints", 455 Variant = "Cart_Variant", 456 Unit = "Cart_Unit", 457 Qty = "Cart_Qty", 458 Subtotal = "Cart_Subtotal", 459 Total = "Cart_Total", 460 CannotOrder = "Cart_CannotOrder", 461 RemoveOrderline = "Cart_RemoveOrderline", 462 UpdateOrderline = "Cart_UpdateOrderline", 463 OrderlineUpdating = "Cart_OrderlineUpdating", 464 OrderlineUpdated = "Cart_OrderlineUpdated", 465 OrderlineRemoving = "Cart_OrderlineRemoving", 466 OrderlineRemoved = "Cart_OrderlineRemoved", 467 EmptyCartStart = "Cart_EmptyCartStart", 468 EmptyCartFinished = "Cart_EmptyCartFinished", 469 EmptyCarCheck = "Cart_EmptyCartCheck", 470 SelectShippingOption = "Cart_SelectShippingOption", 471 SelectBillingOption = "Cart_SelectBillingOption", 472 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 473 MaximumPointsText = "Cart_MaximumPointsText", 474 EmptyCart = "Cart_EmptyCart", 475 Shipping = "Cart_Shipping", 476 AddToCart = "Cart_AddToCart", 477 BuyAll = "Cart_BuyAll", 478 BuyFor = "Cart_BuyFor", 479 Order = "Cart_Order", 480 OrderID = "Cart_OrderID", 481 Date = "Cart_Date", 482 OrderNumber = "Cart_OrderNumber", 483 OrderNumberNav = "Cart_OrderNumberNav", 484 OrderDate = "Cart_OrderDate", 485 OrderValue = "Cart_OrderValue", 486 ViewOrder = "Cart_ViewOrder", 487 PONumber = "Cart_PONumber", 488 Reorder = "Cart_Reorder", 489 NoOrdersFound = "Cart_NoOrdersFound", 490 Invoice = "Cart_Invoice", 491 ChooseInvoice = "Cart_ChooseInvoice", 492 SearchInvoices = "Cart_SearchInvoices", 493 NoInvoicesFound = "Cart_NoInvoicesFound", 494 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 495 InvoiceNumber = "Cart_InvoiceNumber", 496 InvoiceDate = "Cart_InvoiceDate", 497 TrackingNumber = "Cart_TrackingNumber", 498 DeliveryNote = "Cart_DeliveryNote", 499 ViewDeliveryNote = "Cart_ViewDeliveryNote", 500 SelectOrder = "Cart_SelectOrder", 501 Payment = "Cart_Payment", 502 PaymentMethod = "Cart_PaymentMethod", 503 ShippingMethod = "Cart_ShippingMethod", 504 SelectShipping = "Cart_SelectShipping", 505 SelectPayment = "Cart_SelectPayment", 506 BillingAddress = "Cart_BillingAddress", 507 SameBillingAsShipping = "Cart_BillingAsShipping", 508 ShippmentNumber = "Cart_ShippmentNumber", 509 ShippingAddress = "Cart_ShippingAddress", 510 AddAlternativeAdr = "Cart_AddAlternativeAdr", 511 SelectSavedAddress = "Cart_SelectSavedAddress", 512 PaymentAndShipping = "Cart_PaymentAndShipping", 513 RecurringEvery = "Cart_RecurringEvery", 514 RecurringStartDate = "Cart_RecurringStartDate", 515 RecurringEndDate = "Cart_RecurringEndDate", 516 StartDate = "Cart_StartDate", 517 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 518 GiftCardName = "Cart_GiftCardName", 519 GiftCardCode = "Cart_GiftCardCode", 520 ExpiryDate = "Cart_ExpiryDate", 521 InitialAmount = "Cart_InitialAmount", 522 UsedAmount = "Cart_UsedAmount", 523 RemainingBalance = "Cart_RemainingBalance", 524 Vouchers = "Cart_Vouchers", 525 Voucher = "Cart_Voucher", 526 HasBeenUsed = "Cart_HasBeenUsed ", 527 GiftCardAmount = "Cart_GiftCardAmount", 528 ShopInformation = "Cart_ShopInformation", 529 ShopName = "Cart_ShopName", 530 CardNo = "Cart_CardNo", 531 TransactionNo = "Cart_TransactionNo", 532 TransactionState = "Cart_TransactionState", 533 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 534 RecurringOrder = "Cart_RecurringOrder", 535 RecurringOrderSettings = "Cart_RecurringOrderSettings", 536 SaveUsedCard = "Cart_SaveUsedCard", 537 SavedCardName = "Cart_SavedCardName", 538 PayWithASavedCard = "Cart_PayWithASavedCard", 539 CreateRecurringOrder = "Cart_CreateRecurringOrder", 540 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 541 AndItShouldEndOn = "Cart_AndItShouldEndOn", 542 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 543 GoToCheckout = "Cart_GoToCheckout", 544 CreateQuoteRequest = "Cart_CreateQuoteRequest", 545 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 546 ReviewOrder = "Cart_ReviewOrder", 547 ReviewOrderLine = "Cart_ReviewOrderLine", 548 GetParcelShops = "Cart_GetParcelShops", 549 ChangeParcelShop = "Cart_ChangeParcelShop", 550 ChooseAParcelShop = "Cart_ChooseAParcelShop", 551 ConfirmOrder = "Cart_ConfirmOrder", 552 AppliedToOrder = "Cart_AppliedToOrder", 553 EnterVoucherCode = "Cart_EnterVoucherCode", 554 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 555 RequiresAnAddress = "Cart_RequiresAnAddress", 556 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 557 NoAddressSelected = "Cart_NoAddressSelected", 558 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 559 AddressForm = "Cart_AddressForm", 560 AddressWasSent = "Account_AddressWasSent", 561 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 562 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 563 BillingAddressFieldError = "Account_BillingAddressFieldError", 564 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 565 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 566 OrderEmailText = "Crt_OrderEmailText", 567 CantBePickedUp = "Cart_CantBePickedUp", 568 CreateUserInCheckout = "Cart_CreateUserInCheckout", 569 ProductNoPickup = "Cart_ProductNoPickup", 570 SelectShippingAddress = "Cart_SelectShippingAddress", 571 DiscountStepMessage = "Cart_DiscountStepMessage", 572 ServiceRequestNumber = "Cart_ServiceRequestNumber", 573 InsertAccountEmail = "Cart_InsertAccountEmail", 574 InsertAccountPassword = "Cart_InsertAccountPassword", 575 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 576 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 577 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 578 SelectBillingAddress = "Cart_SelectBillingAddress", 579 RMAId = "Cart_RMAId", 580 RMAEmailNotification = "Cart_RMAEmailNotification"; 581 582 } 583 } 584 } 585 586 587 588 589 @helper RenderContent() 590 { 591 string title = Model.Item.GetString("Title"); 592 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 593 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 594 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 595 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 596 597 string subtitle = Model.Item.GetString("Subtitle"); 598 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 599 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 600 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 601 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 602 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 603 604 string content = Model.Item.GetString("Content"); 605 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 606 bool hasContentImage = contentImage.ToString() != ""; 607 608 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 609 bool hasImage = image.ToString() != ""; 610 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 611 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 612 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 613 614 string container = Model.Item.GetValue("Add_Container").ToString() == "True" && Model.Item.GetList("Container_Type").SelectedValue == "full" && Model.Item.GetValue("Add_Container_Padding").ToString() == "True"? "container" : ""; 615 616 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 617 string contentAwareCssClass = bannerType == "content-aware" ? "object-fit-cover h-100" : bannerType == "image-aware" && Model.Item.GetValue("Option__Mobile_Content_Aware").ToString() == "True" ? "object-fit-cover object-fit-md-unset h-100 h-md-unset" : ""; 618 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 619 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 620 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 621 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 622 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 623 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 624 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 625 626 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 627 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 628 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 629 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 630 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 631 // string imageSnapCssClass = ""; 632 string customCssClass = Model.Item.GetString("Custom_Class"); 633 634 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 635 @if (contentLayout == "1") 636 { 637 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 638 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 639 <div class="decor color-@(contentColor) child-mb-2"> 640 @if (!string.IsNullOrEmpty(title)) 641 { 642 @titleRender 643 } 644 @if (!string.IsNullOrEmpty(subtitle)) 645 { 646 @subtitleRender 647 } 648 @if (!string.IsNullOrEmpty(content)) 649 { 650 <div class="content">@content</div> 651 } 652 </div> 653 } 654 </div> 655 <div class="component-b-refactored__image @imageSnapCssClass"> 656 @if ((image.ToString()).Contains(".mp4")) 657 { 658 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 659 <source src="@image" type="video/mp4"> 660 </video> 661 } 662 else 663 { 664 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 665 } 666 </div> 667 } else if (contentLayout == "1/2") 668 { 669 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 670 671 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 672 @if (hasContentImage) 673 { 674 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload w-100 h-auto"/> 675 } 676 </div> 677 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 678 { 679 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 680 @if (!string.IsNullOrEmpty(title)) 681 { 682 @titleRender 683 } 684 @if (!string.IsNullOrEmpty(subtitle)) 685 { 686 @subtitleRender 687 } 688 @if (!string.IsNullOrEmpty(content)) 689 { 690 <div class="content">@content</div> 691 } 692 <div class="actions"> 693 <button type="button" class="btn-fill--brand">Discover our materials</button> 694 </div> 695 </div> 696 } 697 </div> 698 <div class="component-b-refactored__image @imageSnapCssClass"> 699 @if ((image.ToString()).Contains(".mp4")) 700 { 701 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 702 <source src="@image" type="video/mp4"> 703 </video> 704 } 705 else 706 { 707 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 708 } 709 </div> 710 } else if (contentLayout == "1/3" || contentLayout == "2/3") 711 { 712 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 713 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 714 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 715 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 716 @if (hasContentImage) 717 { 718 <img data-src="/Admin/Public/GetImage.ashx?Width=950&Height=720&Crop=5&Format=jpg&Resolution=72&Image=@contentImage" class="lazyload block w-100 h-auto" /> 719 } 720 </div> 721 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 722 { 723 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 724 725 @if (!string.IsNullOrEmpty(title)) 726 { 727 @titleRender 728 } 729 @if (!string.IsNullOrEmpty(subtitle)) 730 { 731 @subtitleRender 732 } 733 @if (!string.IsNullOrEmpty(content)) 734 { 735 <div class="content">@content</div> 736 } 737 <div class="actions"> 738 <button type="button" class="btn-fill--brand">Discover our materials</button> 739 </div> 740 </div> 741 } 742 </div> 743 744 <div class="component-b-refactored__image @imageSnapCssClass"> 745 @if ((image.ToString()).Contains(".mp4")) 746 { 747 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 748 <source src="@image" type="video/mp4"> 749 </video> 750 } 751 else 752 { 753 <img src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Compression=20&Resolution=72&Image=@(image)" data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload block w-100"/> 754 } 755 </div> 756 757 } 758 759 </div> 760 } 761 762 @{ 763 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 764 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 765 if (!hasContainer) 766 { 767 @RenderContent() 768 } else { 769 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 770 <div class="section__container @containerClass"> 771 <div class="section__content"> 772 @RenderContent() 773 </div> 774 </div> 775 } 776 } 777 778 779 780
Coș de cumpărături