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_127aa97cc26749a3b43e42947b43bbbb.<RenderContent>b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 633
   at CompiledRazorTemplates.Dynamic.RazorEngine_127aa97cc26749a3b43e42947b43bbbb.Execute() in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 775
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   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 Hello = "General_Hello"; 155 } 156 public class Account 157 { 158 public static string 159 LogIn = "Account_LogIn", 160 Promotions = "Account_Promotions", 161 Resupply = "Account_Resupply", 162 WorkInProgressOrders = "Account_WorkInProgressOrders", 163 ExchangePartsRequests = "Account_ExchangePartsRequests", 164 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 165 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 166 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 167 SignIn = "Account_SignIn", 168 SignOut = "Account_SignOut", 169 CreateAccount = "Account_CreateAccount", 170 ForgotYourPassword = "Account_ForgotYourPassword", 171 ResetYourPassword = "Account_ResetYourPassword", 172 RememberMe = "Account_RememberMe", 173 Password = "Account_Password", 174 Name = "Account_Name", 175 FirstName = "Account_FirstName", 176 LastName = "Account_LastName", 177 Description = "Address_Description", 178 Email = "Account_Email", 179 Username = "Account_Username", 180 Phone = "Account_Phone", 181 ZipCode = "Account_ZipCode", 182 City = "Account_City", 183 Country = "Account_Country", 184 CompanyName = "Account_CompanyName", 185 CompanyAddress = "Account_CompanyAddress", 186 CompanyCity = "Account_CompanyCity ", 187 CompanyZip = "Account_CompanyZip", 188 CompanyCountry = "Account_CompanyCountry", 189 CompanyID = "Account_CompanyID", 190 CompanyTIN = "Account_CompanyTIN", 191 CompanyVAT = "Account_CompanyVAT", 192 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 193 Company = "Account_Company", 194 StateRegion = "Account_StateRegion", 195 NewPassword = "Account_NewPassword", 196 OldPassword = "Account_OldPassword", 197 ConfirmPassword = "Account_ConfirmPassword", 198 BusinessNumber = "Account_BusinessNumber", 199 AlreadyACustomer = "Account_AlreadyACustomer", 200 MyProfile = "Account_MyProfile", 201 EditProfile = "Account_EditProfile", 202 MyOrders = "Account_MyOrders", 203 MyFavorites = "Account_MyFavorites", 204 MySavedCards = "Account_MySavedCards", 205 StopImpersonation = "Account_StopImpersonation", 206 Impersonate = "Account_Impersonate", 207 IsImpersonating = "Account_IsImpersonating", 208 StopImpresonationPageText ="Account_StopImpresonationPageText", 209 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 210 SearchUser = "Account_SearchUser", 211 ViewListOfUsers = "Account_ViewListOfUsers", 212 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 213 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 214 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 215 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 216 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 217 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 218 CreateAccountIncentive = "Account_CreateAccountIncentive", 219 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 220 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 221 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 222 UserNotFound = "Account_UserNotFound", 223 UsersFound = "Account_UsersFound", 224 SendPasswordRecovery = "Account_SendPasswordRecovery", 225 PasswordRecovery = "Account_PasswordRecovery", 226 SomethingWentWrong = "Account_SomethingWentWrong", 227 TryRecoverPassword = "Account_TryRecoverPassword", 228 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 229 ChooseANewPassword = "Account_ChooseANewPassword", 230 PasswordChanged = "Account_PasswordChanged", 231 SentEmailWithALinks = "Account_SentEmailWithALinks", 232 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 233 AStrongPassword = "Account_AStrongPassword", 234 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 235 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 236 IgnoreThisEmail = "Account_IgnoreThisEmail", 237 CompleteOrdersCount = "Account_CompleteOrdersCount", 238 CompanyCreditLimit = "Account_CompanyCreditLimit", 239 InvoiceValue = "Account_InvoiceValue", 240 CompanySold = "Account_CompanySold", 241 CompanyOverdue = "Account_CompanyOverdue", 242 OpenOrders = "Account_OpenOrders", 243 PlacedOrders = "Account_PlacedOrders", 244 ProductsOnSale = "Account_ProductsOnSale", 245 LoyaltyPoints = "Account_LoyaltyPoints", 246 RequestAccountStatements = "Account_RequestAccountStatements", 247 RequestComplaintForm = "Account_RequestComplaintForm", 248 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 249 YourConsents = "Account_YourConsents", 250 YourPointBalance = "Account_YourPointBalance", 251 Address = "Account_Address", 252 Address2 = "Account_Address2", 253 Addresses = "Account_Addresses", 254 MyAddresses = "Account_MyAddresses", 255 ManageAddresses = "Account_ManageAddresses", 256 NoAddressFound = "Account_NoAddressFound", 257 DefaultLocation = "Account_DefaultLocation", 258 DefaultPayment = "Account_DefaultPayment", 259 PaymentTerm = "Account_PaymentTerm", 260 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 261 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 262 AddNewAddress = "Account_AddNewAddress", 263 DeliveryAddresses = "Account_DeliveryAddresses", 264 BillingAddresses = "Account_BillingAddresses", 265 NoAddressesFound = "Account_NoAddressesFound", 266 EditAddress = "Account_EditAddress", 267 AddAddress = "Account_AddAddress", 268 SaveAddress = "Account_SaveAnAddress", 269 StreetNumber = "Account_StreetNumber", 270 DeleteThisAddress = "Account_DeleteThisAddress", 271 NoRMAsListFound = "Account_NoRMAsListFound", 272 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 273 CancelTheRequest = "Account_CancelTheRequest", 274 EmittedWarranties = "Account_EmittedWarranties", 275 ViewRma = "Account_ViewRma", 276 CancelRma = "Account_CancelRma", 277 CreateNewRequest = "Account_CreateNewRequest", 278 CreateRequest = "Account_CreateRequest", 279 CancelRequest = "Account_CancelRequest", 280 ViewRequest = "Account_ViewRequest", 281 RmaId = "Account_RmaId", 282 AdditionalInfo = "Account_AdditionalInfo", 283 CustomerComment = "Account_CustomerComment", 284 CustomerDetails = "Account_CustomerDetails", 285 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 286 CreateNewList = "Account_CreateNewList", 287 AddNewList = "Account_AddNewList", 288 EditList = "Account_EditList", 289 SetAsDefault = "Account_SetAsDefault", 290 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 291 PublishedTo = "Account_PublishedTo", 292 ReturnToList = "Account_ReturnToList", 293 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 294 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 295 CreateList = "Account_CreateList", 296 BackToProfile = "Account_BackToProfile", 297 YouAreAlmostThere = "Account_YouAreAlmostThere", 298 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 299 ProfileComplete = "Account_ProfileComplete", 300 ProfileCompletePageText = "Account_ProfileCompletePageText", 301 CreateUserAccount = "Account_CreateUserAccount", 302 CreateYourNewAccount = "Account_CreateYourNewAccount", 303 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 304 ResetPassword = "Account_ResetPassword", 305 PrivatePerson = "Account_PrivatePerson", 306 EmptyFields = "Account_CompleteAllFields", 307 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 308 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 309 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 310 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 311 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 312 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 313 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 314 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 315 ConfirmAccount = "Account_ConfirmAccount", 316 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 317 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 318 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 319 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 320 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 321 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 322 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 323 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 324 ConfirmEmail = "Account_ConfirmEmail", 325 AddNewWarranty = "Account_AddNewWarranty", 326 CreateNewWarranty = "Account_CreateWarranty", 327 CreateNewService = "Account_CreateService", 328 CreateNewPartsExchange = "Account_CreatePartsExchange", 329 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 330 LoginToViewFavorites = "Account_LoginToViewFavorites"; 331 } 332 public class Products 333 { 334 public static string 335 SelectRating = "Products_SelectRating", 336 RatingHeadline = "Products_RatingHeadline", 337 LoginToReview = "Products_LoginToReview", 338 NoReviewsFound = "Products_NoReviewsFound", 339 ProductsGeneral = "Products_ProductsGeneral", 340 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 341 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 342 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 343 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 344 ExchangePartsFor = "Products_ExchangePartsFor", 345 Product = "Products_Product", 346 AnyProduct = "Product_AnyProduct", 347 ProductNo = "Products_ProductNo", 348 ProductCode = "Products_ProductCode", 349 Prod = "Products_Prod", 350 Price = "Products_Price", 351 Vat = "Products_Vat", 352 SearchProductsOrPages = "Products_SearchProductsOrPages", 353 SearchProducts = "Products_SearchProducts", 354 SearchResultFor = "Products_SearchResultFor", 355 Newest = "Products_Newest", 356 PriceHighLow = "Products_PriceHighLow", 357 PriceLowHigh = "Products_PriceLowHigh", 358 Stock = "Products_Stock", 359 TotalStock = "Products_TotalStock", 360 InStock = "Products_InStock", 361 OutOfStock = "Products_OutOfStock", 362 Delivery = "Products_Delivery", 363 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 364 Filters = "Products_Filters", 365 SelectFilters = "Products_SelectFilters", 366 CloseFilters = "Products_CloseFilters", 367 RemoveFilters = "Products_RemoveFilters", 368 ResetAllFilters = "Products_ResetAllFilters", 369 ProductCategories = "Products_ProductCategories", 370 Categories = "Products_Categories", 371 ExclVAT = "Products_ExclVAT", 372 InclVAT = "Products_InclVAT", 373 BuyWithPoints = "Products_BuyWithPoints", 374 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 375 ProductNumber = "Products_ProductNumber", 376 Brand = "Products_Brand", 377 Buc = "Products_Buc", 378 PleaseSelectVariant = "Products_PleaseSelectVariant", 379 Sort = "Products_Sort", 380 SortBy = "Products_SortBy", 381 Summary = "Products_Summary", 382 Description = "Products_Description", 383 Specifications = "Products_Specifications", 384 Reviews = "Products_Reviews", 385 GeneralReviews = "Products_GeneralReviews", 386 AddAReview = "Products_AddAReview", 387 ProductAssets = "Products_ProductAssets", 388 Variants = "Products_Variants", 389 VariantsList = "Products_VariantsList", 390 IncludingProducts = "Products_IncludingProducts", 391 MinimumQuantity = "Products_MinimumQuantity", 392 StepQuantity = "Products_StepQuantity", 393 PriceWithVat = "Products_PriceWithVat", 394 Quantity = "Products_Quantity", 395 TotalPrice = "Products_TotalPrice", 396 TotalWithVat = "Products_TotalWithVat", 397 RecentSearches = "Products_RecentSearches", 398 ItemNumber = "Products_ItemNumber", 399 UnitPrice = "Products_UnitPrice", 400 ViewFavorites = "Products_ViewFavorites", 401 ChooseList = "Products_ChooseList", 402 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 403 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 404 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 405 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 406 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 407 AddToFavorites = "Products_AddToFavorites", 408 RemoveFromFavorites = "Products_RemoveFromFavorites", 409 OrCreateOne = "Products_OrCreateOne", 410 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 411 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 412 EnterAListName = "Products_EnterAListName", 413 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 414 SeeFavoriteList = "Products_SeeFavoriteList", 415 Compare = "Products_Compare", 416 AddToCompare = "Products_AddToCompare", 417 RemoveFromCompare = "Products_RemoveFromCompare", 418 ViewMore = "Products_ViewMore", 419 RecommendedPrice = "Products_RecommendedPrice", 420 YouSave = "Products_YouSave", 421 SalesUOM = "Products_SalesUOM", 422 AvailablilityDateMessage = "Product_AvailableIn"; 423 } 424 public class Cart 425 { 426 public static string 427 CartGeneral = "Cart_CartGeneral", 428 UpdateQuantitiesInCart ="Cart_UpdateQuantitiesInCart", 429 SignInCart = "Cart_SignInCart", 430 InvalidQuantitiesInCart = "Cart_InvalidQuantitiesInCart", 431 PlacedOrderDate = "Cart_PlacedOrderDate", 432 MaxFinalizeDate = "Cart_MaxFinalizeDate", 433 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 434 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 435 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 436 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 437 DeliverOrder = "Cart_DeliverOrder", 438 OrderDetails = "Cart_OrderDetails", 439 ApproveOrder = "Cart_ApproveOrder", 440 ApprovedOrder = "Cart_ApprovedOrder", 441 RejectOrder = "Cart_RejectOrder", 442 RejectedOrder = "Cart_RejectedOrder", 443 DeliveredOrder = "Cart_DeliveredOrder", 444 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 445 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 446 ShoppingCart = "Cart_ShoppingCart", 447 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 448 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 449 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 450 ContinueShopping = "Cart_ContinueShopping", 451 ProceedToCheckout = "Cart_ProceedToCheckout", 452 Earnings = "Cart_Earnings", 453 Points = "Cart_Points", 454 NoPointsFound = "Cart_NoPointsFound", 455 YourPointBalance = "Cart_YourPointBalance", 456 UsedPoints = "Cart_UsedPoints", 457 AddPoints = "Cart_AddPoints", 458 Variant = "Cart_Variant", 459 Unit = "Cart_Unit", 460 Qty = "Cart_Qty", 461 Subtotal = "Cart_Subtotal", 462 Total = "Cart_Total", 463 CannotOrder = "Cart_CannotOrder", 464 RemoveOrderline = "Cart_RemoveOrderline", 465 UpdateOrderline = "Cart_UpdateOrderline", 466 OrderlineUpdating = "Cart_OrderlineUpdating", 467 OrderlineUpdated = "Cart_OrderlineUpdated", 468 OrderlineRemoving = "Cart_OrderlineRemoving", 469 OrderlineRemoved = "Cart_OrderlineRemoved", 470 EmptyCartStart = "Cart_EmptyCartStart", 471 EmptyCartFinished = "Cart_EmptyCartFinished", 472 EmptyCarCheck = "Cart_EmptyCartCheck", 473 SelectShippingOption = "Cart_SelectShippingOption", 474 SelectBillingOption = "Cart_SelectBillingOption", 475 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 476 MaximumPointsText = "Cart_MaximumPointsText", 477 EmptyCart = "Cart_EmptyCart", 478 Shipping = "Cart_Shipping", 479 AddToCart = "Cart_AddToCart", 480 BuyAll = "Cart_BuyAll", 481 BuyFor = "Cart_BuyFor", 482 Order = "Cart_Order", 483 OrderID = "Cart_OrderID", 484 Date = "Cart_Date", 485 OrderNumber = "Cart_OrderNumber", 486 OrderNumberNav = "Cart_OrderNumberNav", 487 OrderDate = "Cart_OrderDate", 488 OrderValue = "Cart_OrderValue", 489 ViewOrder = "Cart_ViewOrder", 490 PONumber = "Cart_PONumber", 491 Reorder = "Cart_Reorder", 492 NoOrdersFound = "Cart_NoOrdersFound", 493 Invoice = "Cart_Invoice", 494 ChooseInvoice = "Cart_ChooseInvoice", 495 SearchInvoices = "Cart_SearchInvoices", 496 NoInvoicesFound = "Cart_NoInvoicesFound", 497 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 498 InvoiceNumber = "Cart_InvoiceNumber", 499 InvoiceDate = "Cart_InvoiceDate", 500 TrackingNumber = "Cart_TrackingNumber", 501 DeliveryNote = "Cart_DeliveryNote", 502 ViewDeliveryNote = "Cart_ViewDeliveryNote", 503 SelectOrder = "Cart_SelectOrder", 504 Payment = "Cart_Payment", 505 PaymentMethod = "Cart_PaymentMethod", 506 ShippingMethod = "Cart_ShippingMethod", 507 SelectShipping = "Cart_SelectShipping", 508 SelectPayment = "Cart_SelectPayment", 509 BillingAddress = "Cart_BillingAddress", 510 SameBillingAsShipping = "Cart_BillingAsShipping", 511 ShippmentNumber = "Cart_ShippmentNumber", 512 ShippingAddress = "Cart_ShippingAddress", 513 AddAlternativeAdr = "Cart_AddAlternativeAdr", 514 SelectSavedAddress = "Cart_SelectSavedAddress", 515 PaymentAndShipping = "Cart_PaymentAndShipping", 516 RecurringEvery = "Cart_RecurringEvery", 517 RecurringStartDate = "Cart_RecurringStartDate", 518 RecurringEndDate = "Cart_RecurringEndDate", 519 StartDate = "Cart_StartDate", 520 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 521 GiftCardName = "Cart_GiftCardName", 522 GiftCardCode = "Cart_GiftCardCode", 523 ExpiryDate = "Cart_ExpiryDate", 524 InitialAmount = "Cart_InitialAmount", 525 UsedAmount = "Cart_UsedAmount", 526 RemainingBalance = "Cart_RemainingBalance", 527 Vouchers = "Cart_Vouchers", 528 Voucher = "Cart_Voucher", 529 HasBeenUsed = "Cart_HasBeenUsed ", 530 GiftCardAmount = "Cart_GiftCardAmount", 531 ShopInformation = "Cart_ShopInformation", 532 ShopName = "Cart_ShopName", 533 CardNo = "Cart_CardNo", 534 TransactionNo = "Cart_TransactionNo", 535 TransactionState = "Cart_TransactionState", 536 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 537 RecurringOrder = "Cart_RecurringOrder", 538 RecurringOrderSettings = "Cart_RecurringOrderSettings", 539 SaveUsedCard = "Cart_SaveUsedCard", 540 SavedCardName = "Cart_SavedCardName", 541 PayWithASavedCard = "Cart_PayWithASavedCard", 542 CreateRecurringOrder = "Cart_CreateRecurringOrder", 543 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 544 AndItShouldEndOn = "Cart_AndItShouldEndOn", 545 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 546 GoToCheckout = "Cart_GoToCheckout", 547 CreateQuoteRequest = "Cart_CreateQuoteRequest", 548 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 549 ReviewOrder = "Cart_ReviewOrder", 550 ReviewOrderLine = "Cart_ReviewOrderLine", 551 GetParcelShops = "Cart_GetParcelShops", 552 ChangeParcelShop = "Cart_ChangeParcelShop", 553 ChooseAParcelShop = "Cart_ChooseAParcelShop", 554 ConfirmOrder = "Cart_ConfirmOrder", 555 AppliedToOrder = "Cart_AppliedToOrder", 556 EnterVoucherCode = "Cart_EnterVoucherCode", 557 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 558 RequiresAnAddress = "Cart_RequiresAnAddress", 559 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 560 NoAddressSelected = "Cart_NoAddressSelected", 561 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 562 AddressForm = "Cart_AddressForm", 563 AddressWasSent = "Account_AddressWasSent", 564 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 565 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 566 BillingAddressFieldError = "Account_BillingAddressFieldError", 567 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 568 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 569 OrderEmailText = "Crt_OrderEmailText", 570 CantBePickedUp = "Cart_CantBePickedUp", 571 CreateUserInCheckout = "Cart_CreateUserInCheckout", 572 ProductNoPickup = "Cart_ProductNoPickup", 573 SelectShippingAddress = "Cart_SelectShippingAddress", 574 DiscountStepMessage = "Cart_DiscountStepMessage", 575 ServiceRequestNumber = "Cart_ServiceRequestNumber", 576 InsertAccountEmail = "Cart_InsertAccountEmail", 577 InsertAccountPassword = "Cart_InsertAccountPassword", 578 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 579 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 580 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 581 SelectBillingAddress = "Cart_SelectBillingAddress", 582 RMAId = "Cart_RMAId", 583 RMAEmailNotification = "Cart_RMAEmailNotification"; 584 585 } 586 } 587 } 588 589 590 591 592 @helper RenderContent() 593 { 594 string title = Model.Item.GetString("Title"); 595 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 596 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 597 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 598 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 599 600 string subtitle = Model.Item.GetString("Subtitle"); 601 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 602 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 603 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 604 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 605 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 606 607 string content = Model.Item.GetString("Content"); 608 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 609 bool hasContentImage = contentImage.ToString() != ""; 610 611 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 612 bool hasImage = image.ToString() != ""; 613 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 614 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 615 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 616 617 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" : ""; 618 619 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 620 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" : ""; 621 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 622 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 623 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 624 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 625 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 626 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 627 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 628 629 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 630 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 631 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 632 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 633 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 634 // string imageSnapCssClass = ""; 635 string customCssClass = Model.Item.GetString("Custom_Class"); 636 637 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 638 @if (contentLayout == "1") 639 { 640 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 641 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 642 <div class="decor color-@(contentColor) child-mb-2"> 643 @if (!string.IsNullOrEmpty(title)) 644 { 645 @titleRender 646 } 647 @if (!string.IsNullOrEmpty(subtitle)) 648 { 649 @subtitleRender 650 } 651 @if (!string.IsNullOrEmpty(content)) 652 { 653 <div class="content">@content</div> 654 } 655 </div> 656 } 657 </div> 658 <div class="component-b-refactored__image @imageSnapCssClass"> 659 @if ((image.ToString()).Contains(".mp4")) 660 { 661 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 662 <source src="@image" type="video/mp4"> 663 </video> 664 } 665 else 666 { 667 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 668 } 669 </div> 670 } else if (contentLayout == "1/2") 671 { 672 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 673 674 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 675 @if (hasContentImage) 676 { 677 <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"/> 678 } 679 </div> 680 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 681 { 682 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 683 @if (!string.IsNullOrEmpty(title)) 684 { 685 @titleRender 686 } 687 @if (!string.IsNullOrEmpty(subtitle)) 688 { 689 @subtitleRender 690 } 691 @if (!string.IsNullOrEmpty(content)) 692 { 693 <div class="content">@content</div> 694 } 695 <div class="actions"> 696 <button type="button" class="btn-fill--brand">Discover our materials</button> 697 </div> 698 </div> 699 } 700 </div> 701 <div class="component-b-refactored__image @imageSnapCssClass"> 702 @if ((image.ToString()).Contains(".mp4")) 703 { 704 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 705 <source src="@image" type="video/mp4"> 706 </video> 707 } 708 else 709 { 710 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 711 } 712 </div> 713 } else if (contentLayout == "1/3" || contentLayout == "2/3") 714 { 715 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 716 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 717 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 718 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 719 @if (hasContentImage) 720 { 721 <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" /> 722 } 723 </div> 724 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 725 { 726 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 727 728 @if (!string.IsNullOrEmpty(title)) 729 { 730 @titleRender 731 } 732 @if (!string.IsNullOrEmpty(subtitle)) 733 { 734 @subtitleRender 735 } 736 @if (!string.IsNullOrEmpty(content)) 737 { 738 <div class="content">@content</div> 739 } 740 <div class="actions"> 741 <button type="button" class="btn-fill--brand">Discover our materials</button> 742 </div> 743 </div> 744 } 745 </div> 746 747 <div class="component-b-refactored__image @imageSnapCssClass"> 748 @if ((image.ToString()).Contains(".mp4")) 749 { 750 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 751 <source src="@image" type="video/mp4"> 752 </video> 753 } 754 else 755 { 756 <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"/> 757 } 758 </div> 759 760 } 761 762 </div> 763 } 764 765 @{ 766 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 767 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 768 if (!hasContainer) 769 { 770 @RenderContent() 771 } else { 772 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 773 <div class="section__container @containerClass"> 774 <div class="section__content"> 775 @RenderContent() 776 </div> 777 </div> 778 } 779 } 780 781 782 783
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_127aa97cc26749a3b43e42947b43bbbb.<RenderContent>b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 633
   at CompiledRazorTemplates.Dynamic.RazorEngine_127aa97cc26749a3b43e42947b43bbbb.Execute() in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 775
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   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 Hello = "General_Hello"; 155 } 156 public class Account 157 { 158 public static string 159 LogIn = "Account_LogIn", 160 Promotions = "Account_Promotions", 161 Resupply = "Account_Resupply", 162 WorkInProgressOrders = "Account_WorkInProgressOrders", 163 ExchangePartsRequests = "Account_ExchangePartsRequests", 164 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 165 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 166 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 167 SignIn = "Account_SignIn", 168 SignOut = "Account_SignOut", 169 CreateAccount = "Account_CreateAccount", 170 ForgotYourPassword = "Account_ForgotYourPassword", 171 ResetYourPassword = "Account_ResetYourPassword", 172 RememberMe = "Account_RememberMe", 173 Password = "Account_Password", 174 Name = "Account_Name", 175 FirstName = "Account_FirstName", 176 LastName = "Account_LastName", 177 Description = "Address_Description", 178 Email = "Account_Email", 179 Username = "Account_Username", 180 Phone = "Account_Phone", 181 ZipCode = "Account_ZipCode", 182 City = "Account_City", 183 Country = "Account_Country", 184 CompanyName = "Account_CompanyName", 185 CompanyAddress = "Account_CompanyAddress", 186 CompanyCity = "Account_CompanyCity ", 187 CompanyZip = "Account_CompanyZip", 188 CompanyCountry = "Account_CompanyCountry", 189 CompanyID = "Account_CompanyID", 190 CompanyTIN = "Account_CompanyTIN", 191 CompanyVAT = "Account_CompanyVAT", 192 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 193 Company = "Account_Company", 194 StateRegion = "Account_StateRegion", 195 NewPassword = "Account_NewPassword", 196 OldPassword = "Account_OldPassword", 197 ConfirmPassword = "Account_ConfirmPassword", 198 BusinessNumber = "Account_BusinessNumber", 199 AlreadyACustomer = "Account_AlreadyACustomer", 200 MyProfile = "Account_MyProfile", 201 EditProfile = "Account_EditProfile", 202 MyOrders = "Account_MyOrders", 203 MyFavorites = "Account_MyFavorites", 204 MySavedCards = "Account_MySavedCards", 205 StopImpersonation = "Account_StopImpersonation", 206 Impersonate = "Account_Impersonate", 207 IsImpersonating = "Account_IsImpersonating", 208 StopImpresonationPageText ="Account_StopImpresonationPageText", 209 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 210 SearchUser = "Account_SearchUser", 211 ViewListOfUsers = "Account_ViewListOfUsers", 212 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 213 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 214 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 215 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 216 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 217 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 218 CreateAccountIncentive = "Account_CreateAccountIncentive", 219 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 220 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 221 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 222 UserNotFound = "Account_UserNotFound", 223 UsersFound = "Account_UsersFound", 224 SendPasswordRecovery = "Account_SendPasswordRecovery", 225 PasswordRecovery = "Account_PasswordRecovery", 226 SomethingWentWrong = "Account_SomethingWentWrong", 227 TryRecoverPassword = "Account_TryRecoverPassword", 228 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 229 ChooseANewPassword = "Account_ChooseANewPassword", 230 PasswordChanged = "Account_PasswordChanged", 231 SentEmailWithALinks = "Account_SentEmailWithALinks", 232 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 233 AStrongPassword = "Account_AStrongPassword", 234 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 235 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 236 IgnoreThisEmail = "Account_IgnoreThisEmail", 237 CompleteOrdersCount = "Account_CompleteOrdersCount", 238 CompanyCreditLimit = "Account_CompanyCreditLimit", 239 InvoiceValue = "Account_InvoiceValue", 240 CompanySold = "Account_CompanySold", 241 CompanyOverdue = "Account_CompanyOverdue", 242 OpenOrders = "Account_OpenOrders", 243 PlacedOrders = "Account_PlacedOrders", 244 ProductsOnSale = "Account_ProductsOnSale", 245 LoyaltyPoints = "Account_LoyaltyPoints", 246 RequestAccountStatements = "Account_RequestAccountStatements", 247 RequestComplaintForm = "Account_RequestComplaintForm", 248 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 249 YourConsents = "Account_YourConsents", 250 YourPointBalance = "Account_YourPointBalance", 251 Address = "Account_Address", 252 Address2 = "Account_Address2", 253 Addresses = "Account_Addresses", 254 MyAddresses = "Account_MyAddresses", 255 ManageAddresses = "Account_ManageAddresses", 256 NoAddressFound = "Account_NoAddressFound", 257 DefaultLocation = "Account_DefaultLocation", 258 DefaultPayment = "Account_DefaultPayment", 259 PaymentTerm = "Account_PaymentTerm", 260 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 261 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 262 AddNewAddress = "Account_AddNewAddress", 263 DeliveryAddresses = "Account_DeliveryAddresses", 264 BillingAddresses = "Account_BillingAddresses", 265 NoAddressesFound = "Account_NoAddressesFound", 266 EditAddress = "Account_EditAddress", 267 AddAddress = "Account_AddAddress", 268 SaveAddress = "Account_SaveAnAddress", 269 StreetNumber = "Account_StreetNumber", 270 DeleteThisAddress = "Account_DeleteThisAddress", 271 NoRMAsListFound = "Account_NoRMAsListFound", 272 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 273 CancelTheRequest = "Account_CancelTheRequest", 274 EmittedWarranties = "Account_EmittedWarranties", 275 ViewRma = "Account_ViewRma", 276 CancelRma = "Account_CancelRma", 277 CreateNewRequest = "Account_CreateNewRequest", 278 CreateRequest = "Account_CreateRequest", 279 CancelRequest = "Account_CancelRequest", 280 ViewRequest = "Account_ViewRequest", 281 RmaId = "Account_RmaId", 282 AdditionalInfo = "Account_AdditionalInfo", 283 CustomerComment = "Account_CustomerComment", 284 CustomerDetails = "Account_CustomerDetails", 285 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 286 CreateNewList = "Account_CreateNewList", 287 AddNewList = "Account_AddNewList", 288 EditList = "Account_EditList", 289 SetAsDefault = "Account_SetAsDefault", 290 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 291 PublishedTo = "Account_PublishedTo", 292 ReturnToList = "Account_ReturnToList", 293 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 294 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 295 CreateList = "Account_CreateList", 296 BackToProfile = "Account_BackToProfile", 297 YouAreAlmostThere = "Account_YouAreAlmostThere", 298 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 299 ProfileComplete = "Account_ProfileComplete", 300 ProfileCompletePageText = "Account_ProfileCompletePageText", 301 CreateUserAccount = "Account_CreateUserAccount", 302 CreateYourNewAccount = "Account_CreateYourNewAccount", 303 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 304 ResetPassword = "Account_ResetPassword", 305 PrivatePerson = "Account_PrivatePerson", 306 EmptyFields = "Account_CompleteAllFields", 307 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 308 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 309 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 310 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 311 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 312 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 313 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 314 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 315 ConfirmAccount = "Account_ConfirmAccount", 316 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 317 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 318 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 319 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 320 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 321 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 322 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 323 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 324 ConfirmEmail = "Account_ConfirmEmail", 325 AddNewWarranty = "Account_AddNewWarranty", 326 CreateNewWarranty = "Account_CreateWarranty", 327 CreateNewService = "Account_CreateService", 328 CreateNewPartsExchange = "Account_CreatePartsExchange", 329 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 330 LoginToViewFavorites = "Account_LoginToViewFavorites"; 331 } 332 public class Products 333 { 334 public static string 335 SelectRating = "Products_SelectRating", 336 RatingHeadline = "Products_RatingHeadline", 337 LoginToReview = "Products_LoginToReview", 338 NoReviewsFound = "Products_NoReviewsFound", 339 ProductsGeneral = "Products_ProductsGeneral", 340 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 341 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 342 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 343 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 344 ExchangePartsFor = "Products_ExchangePartsFor", 345 Product = "Products_Product", 346 AnyProduct = "Product_AnyProduct", 347 ProductNo = "Products_ProductNo", 348 ProductCode = "Products_ProductCode", 349 Prod = "Products_Prod", 350 Price = "Products_Price", 351 Vat = "Products_Vat", 352 SearchProductsOrPages = "Products_SearchProductsOrPages", 353 SearchProducts = "Products_SearchProducts", 354 SearchResultFor = "Products_SearchResultFor", 355 Newest = "Products_Newest", 356 PriceHighLow = "Products_PriceHighLow", 357 PriceLowHigh = "Products_PriceLowHigh", 358 Stock = "Products_Stock", 359 TotalStock = "Products_TotalStock", 360 InStock = "Products_InStock", 361 OutOfStock = "Products_OutOfStock", 362 Delivery = "Products_Delivery", 363 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 364 Filters = "Products_Filters", 365 SelectFilters = "Products_SelectFilters", 366 CloseFilters = "Products_CloseFilters", 367 RemoveFilters = "Products_RemoveFilters", 368 ResetAllFilters = "Products_ResetAllFilters", 369 ProductCategories = "Products_ProductCategories", 370 Categories = "Products_Categories", 371 ExclVAT = "Products_ExclVAT", 372 InclVAT = "Products_InclVAT", 373 BuyWithPoints = "Products_BuyWithPoints", 374 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 375 ProductNumber = "Products_ProductNumber", 376 Brand = "Products_Brand", 377 Buc = "Products_Buc", 378 PleaseSelectVariant = "Products_PleaseSelectVariant", 379 Sort = "Products_Sort", 380 SortBy = "Products_SortBy", 381 Summary = "Products_Summary", 382 Description = "Products_Description", 383 Specifications = "Products_Specifications", 384 Reviews = "Products_Reviews", 385 GeneralReviews = "Products_GeneralReviews", 386 AddAReview = "Products_AddAReview", 387 ProductAssets = "Products_ProductAssets", 388 Variants = "Products_Variants", 389 VariantsList = "Products_VariantsList", 390 IncludingProducts = "Products_IncludingProducts", 391 MinimumQuantity = "Products_MinimumQuantity", 392 StepQuantity = "Products_StepQuantity", 393 PriceWithVat = "Products_PriceWithVat", 394 Quantity = "Products_Quantity", 395 TotalPrice = "Products_TotalPrice", 396 TotalWithVat = "Products_TotalWithVat", 397 RecentSearches = "Products_RecentSearches", 398 ItemNumber = "Products_ItemNumber", 399 UnitPrice = "Products_UnitPrice", 400 ViewFavorites = "Products_ViewFavorites", 401 ChooseList = "Products_ChooseList", 402 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 403 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 404 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 405 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 406 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 407 AddToFavorites = "Products_AddToFavorites", 408 RemoveFromFavorites = "Products_RemoveFromFavorites", 409 OrCreateOne = "Products_OrCreateOne", 410 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 411 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 412 EnterAListName = "Products_EnterAListName", 413 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 414 SeeFavoriteList = "Products_SeeFavoriteList", 415 Compare = "Products_Compare", 416 AddToCompare = "Products_AddToCompare", 417 RemoveFromCompare = "Products_RemoveFromCompare", 418 ViewMore = "Products_ViewMore", 419 RecommendedPrice = "Products_RecommendedPrice", 420 YouSave = "Products_YouSave", 421 SalesUOM = "Products_SalesUOM", 422 AvailablilityDateMessage = "Product_AvailableIn"; 423 } 424 public class Cart 425 { 426 public static string 427 CartGeneral = "Cart_CartGeneral", 428 UpdateQuantitiesInCart ="Cart_UpdateQuantitiesInCart", 429 SignInCart = "Cart_SignInCart", 430 InvalidQuantitiesInCart = "Cart_InvalidQuantitiesInCart", 431 PlacedOrderDate = "Cart_PlacedOrderDate", 432 MaxFinalizeDate = "Cart_MaxFinalizeDate", 433 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 434 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 435 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 436 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 437 DeliverOrder = "Cart_DeliverOrder", 438 OrderDetails = "Cart_OrderDetails", 439 ApproveOrder = "Cart_ApproveOrder", 440 ApprovedOrder = "Cart_ApprovedOrder", 441 RejectOrder = "Cart_RejectOrder", 442 RejectedOrder = "Cart_RejectedOrder", 443 DeliveredOrder = "Cart_DeliveredOrder", 444 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 445 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 446 ShoppingCart = "Cart_ShoppingCart", 447 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 448 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 449 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 450 ContinueShopping = "Cart_ContinueShopping", 451 ProceedToCheckout = "Cart_ProceedToCheckout", 452 Earnings = "Cart_Earnings", 453 Points = "Cart_Points", 454 NoPointsFound = "Cart_NoPointsFound", 455 YourPointBalance = "Cart_YourPointBalance", 456 UsedPoints = "Cart_UsedPoints", 457 AddPoints = "Cart_AddPoints", 458 Variant = "Cart_Variant", 459 Unit = "Cart_Unit", 460 Qty = "Cart_Qty", 461 Subtotal = "Cart_Subtotal", 462 Total = "Cart_Total", 463 CannotOrder = "Cart_CannotOrder", 464 RemoveOrderline = "Cart_RemoveOrderline", 465 UpdateOrderline = "Cart_UpdateOrderline", 466 OrderlineUpdating = "Cart_OrderlineUpdating", 467 OrderlineUpdated = "Cart_OrderlineUpdated", 468 OrderlineRemoving = "Cart_OrderlineRemoving", 469 OrderlineRemoved = "Cart_OrderlineRemoved", 470 EmptyCartStart = "Cart_EmptyCartStart", 471 EmptyCartFinished = "Cart_EmptyCartFinished", 472 EmptyCarCheck = "Cart_EmptyCartCheck", 473 SelectShippingOption = "Cart_SelectShippingOption", 474 SelectBillingOption = "Cart_SelectBillingOption", 475 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 476 MaximumPointsText = "Cart_MaximumPointsText", 477 EmptyCart = "Cart_EmptyCart", 478 Shipping = "Cart_Shipping", 479 AddToCart = "Cart_AddToCart", 480 BuyAll = "Cart_BuyAll", 481 BuyFor = "Cart_BuyFor", 482 Order = "Cart_Order", 483 OrderID = "Cart_OrderID", 484 Date = "Cart_Date", 485 OrderNumber = "Cart_OrderNumber", 486 OrderNumberNav = "Cart_OrderNumberNav", 487 OrderDate = "Cart_OrderDate", 488 OrderValue = "Cart_OrderValue", 489 ViewOrder = "Cart_ViewOrder", 490 PONumber = "Cart_PONumber", 491 Reorder = "Cart_Reorder", 492 NoOrdersFound = "Cart_NoOrdersFound", 493 Invoice = "Cart_Invoice", 494 ChooseInvoice = "Cart_ChooseInvoice", 495 SearchInvoices = "Cart_SearchInvoices", 496 NoInvoicesFound = "Cart_NoInvoicesFound", 497 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 498 InvoiceNumber = "Cart_InvoiceNumber", 499 InvoiceDate = "Cart_InvoiceDate", 500 TrackingNumber = "Cart_TrackingNumber", 501 DeliveryNote = "Cart_DeliveryNote", 502 ViewDeliveryNote = "Cart_ViewDeliveryNote", 503 SelectOrder = "Cart_SelectOrder", 504 Payment = "Cart_Payment", 505 PaymentMethod = "Cart_PaymentMethod", 506 ShippingMethod = "Cart_ShippingMethod", 507 SelectShipping = "Cart_SelectShipping", 508 SelectPayment = "Cart_SelectPayment", 509 BillingAddress = "Cart_BillingAddress", 510 SameBillingAsShipping = "Cart_BillingAsShipping", 511 ShippmentNumber = "Cart_ShippmentNumber", 512 ShippingAddress = "Cart_ShippingAddress", 513 AddAlternativeAdr = "Cart_AddAlternativeAdr", 514 SelectSavedAddress = "Cart_SelectSavedAddress", 515 PaymentAndShipping = "Cart_PaymentAndShipping", 516 RecurringEvery = "Cart_RecurringEvery", 517 RecurringStartDate = "Cart_RecurringStartDate", 518 RecurringEndDate = "Cart_RecurringEndDate", 519 StartDate = "Cart_StartDate", 520 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 521 GiftCardName = "Cart_GiftCardName", 522 GiftCardCode = "Cart_GiftCardCode", 523 ExpiryDate = "Cart_ExpiryDate", 524 InitialAmount = "Cart_InitialAmount", 525 UsedAmount = "Cart_UsedAmount", 526 RemainingBalance = "Cart_RemainingBalance", 527 Vouchers = "Cart_Vouchers", 528 Voucher = "Cart_Voucher", 529 HasBeenUsed = "Cart_HasBeenUsed ", 530 GiftCardAmount = "Cart_GiftCardAmount", 531 ShopInformation = "Cart_ShopInformation", 532 ShopName = "Cart_ShopName", 533 CardNo = "Cart_CardNo", 534 TransactionNo = "Cart_TransactionNo", 535 TransactionState = "Cart_TransactionState", 536 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 537 RecurringOrder = "Cart_RecurringOrder", 538 RecurringOrderSettings = "Cart_RecurringOrderSettings", 539 SaveUsedCard = "Cart_SaveUsedCard", 540 SavedCardName = "Cart_SavedCardName", 541 PayWithASavedCard = "Cart_PayWithASavedCard", 542 CreateRecurringOrder = "Cart_CreateRecurringOrder", 543 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 544 AndItShouldEndOn = "Cart_AndItShouldEndOn", 545 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 546 GoToCheckout = "Cart_GoToCheckout", 547 CreateQuoteRequest = "Cart_CreateQuoteRequest", 548 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 549 ReviewOrder = "Cart_ReviewOrder", 550 ReviewOrderLine = "Cart_ReviewOrderLine", 551 GetParcelShops = "Cart_GetParcelShops", 552 ChangeParcelShop = "Cart_ChangeParcelShop", 553 ChooseAParcelShop = "Cart_ChooseAParcelShop", 554 ConfirmOrder = "Cart_ConfirmOrder", 555 AppliedToOrder = "Cart_AppliedToOrder", 556 EnterVoucherCode = "Cart_EnterVoucherCode", 557 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 558 RequiresAnAddress = "Cart_RequiresAnAddress", 559 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 560 NoAddressSelected = "Cart_NoAddressSelected", 561 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 562 AddressForm = "Cart_AddressForm", 563 AddressWasSent = "Account_AddressWasSent", 564 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 565 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 566 BillingAddressFieldError = "Account_BillingAddressFieldError", 567 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 568 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 569 OrderEmailText = "Crt_OrderEmailText", 570 CantBePickedUp = "Cart_CantBePickedUp", 571 CreateUserInCheckout = "Cart_CreateUserInCheckout", 572 ProductNoPickup = "Cart_ProductNoPickup", 573 SelectShippingAddress = "Cart_SelectShippingAddress", 574 DiscountStepMessage = "Cart_DiscountStepMessage", 575 ServiceRequestNumber = "Cart_ServiceRequestNumber", 576 InsertAccountEmail = "Cart_InsertAccountEmail", 577 InsertAccountPassword = "Cart_InsertAccountPassword", 578 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 579 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 580 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 581 SelectBillingAddress = "Cart_SelectBillingAddress", 582 RMAId = "Cart_RMAId", 583 RMAEmailNotification = "Cart_RMAEmailNotification"; 584 585 } 586 } 587 } 588 589 590 591 592 @helper RenderContent() 593 { 594 string title = Model.Item.GetString("Title"); 595 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 596 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 597 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 598 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 599 600 string subtitle = Model.Item.GetString("Subtitle"); 601 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 602 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 603 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 604 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 605 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 606 607 string content = Model.Item.GetString("Content"); 608 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 609 bool hasContentImage = contentImage.ToString() != ""; 610 611 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 612 bool hasImage = image.ToString() != ""; 613 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 614 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 615 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 616 617 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" : ""; 618 619 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 620 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" : ""; 621 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 622 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 623 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 624 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 625 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 626 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 627 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 628 629 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 630 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 631 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 632 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 633 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 634 // string imageSnapCssClass = ""; 635 string customCssClass = Model.Item.GetString("Custom_Class"); 636 637 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 638 @if (contentLayout == "1") 639 { 640 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 641 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 642 <div class="decor color-@(contentColor) child-mb-2"> 643 @if (!string.IsNullOrEmpty(title)) 644 { 645 @titleRender 646 } 647 @if (!string.IsNullOrEmpty(subtitle)) 648 { 649 @subtitleRender 650 } 651 @if (!string.IsNullOrEmpty(content)) 652 { 653 <div class="content">@content</div> 654 } 655 </div> 656 } 657 </div> 658 <div class="component-b-refactored__image @imageSnapCssClass"> 659 @if ((image.ToString()).Contains(".mp4")) 660 { 661 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 662 <source src="@image" type="video/mp4"> 663 </video> 664 } 665 else 666 { 667 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 668 } 669 </div> 670 } else if (contentLayout == "1/2") 671 { 672 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 673 674 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 675 @if (hasContentImage) 676 { 677 <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"/> 678 } 679 </div> 680 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 681 { 682 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 683 @if (!string.IsNullOrEmpty(title)) 684 { 685 @titleRender 686 } 687 @if (!string.IsNullOrEmpty(subtitle)) 688 { 689 @subtitleRender 690 } 691 @if (!string.IsNullOrEmpty(content)) 692 { 693 <div class="content">@content</div> 694 } 695 <div class="actions"> 696 <button type="button" class="btn-fill--brand">Discover our materials</button> 697 </div> 698 </div> 699 } 700 </div> 701 <div class="component-b-refactored__image @imageSnapCssClass"> 702 @if ((image.ToString()).Contains(".mp4")) 703 { 704 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 705 <source src="@image" type="video/mp4"> 706 </video> 707 } 708 else 709 { 710 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 711 } 712 </div> 713 } else if (contentLayout == "1/3" || contentLayout == "2/3") 714 { 715 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 716 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 717 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 718 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 719 @if (hasContentImage) 720 { 721 <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" /> 722 } 723 </div> 724 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 725 { 726 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 727 728 @if (!string.IsNullOrEmpty(title)) 729 { 730 @titleRender 731 } 732 @if (!string.IsNullOrEmpty(subtitle)) 733 { 734 @subtitleRender 735 } 736 @if (!string.IsNullOrEmpty(content)) 737 { 738 <div class="content">@content</div> 739 } 740 <div class="actions"> 741 <button type="button" class="btn-fill--brand">Discover our materials</button> 742 </div> 743 </div> 744 } 745 </div> 746 747 <div class="component-b-refactored__image @imageSnapCssClass"> 748 @if ((image.ToString()).Contains(".mp4")) 749 { 750 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 751 <source src="@image" type="video/mp4"> 752 </video> 753 } 754 else 755 { 756 <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"/> 757 } 758 </div> 759 760 } 761 762 </div> 763 } 764 765 @{ 766 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 767 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 768 if (!hasContainer) 769 { 770 @RenderContent() 771 } else { 772 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 773 <div class="section__container @containerClass"> 774 <div class="section__content"> 775 @RenderContent() 776 </div> 777 </div> 778 } 779 } 780 781 782 783
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_127aa97cc26749a3b43e42947b43bbbb.<RenderContent>b__1_0(TextWriter __razor_helper_writer) in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 633
   at CompiledRazorTemplates.Dynamic.RazorEngine_127aa97cc26749a3b43e42947b43bbbb.Execute() in C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Paragraph\Banner_V2.cshtml:line 775
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   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 Hello = "General_Hello"; 155 } 156 public class Account 157 { 158 public static string 159 LogIn = "Account_LogIn", 160 Promotions = "Account_Promotions", 161 Resupply = "Account_Resupply", 162 WorkInProgressOrders = "Account_WorkInProgressOrders", 163 ExchangePartsRequests = "Account_ExchangePartsRequests", 164 DeliverYourselfOrders = "Account_DeliverYourselfOrders", 165 PickedUpFromStoreOrders = "Account_PickedUpFromStoreOrders", 166 OrdersDeliveredByYou = "Account_OrdersDeliveredByYou", 167 SignIn = "Account_SignIn", 168 SignOut = "Account_SignOut", 169 CreateAccount = "Account_CreateAccount", 170 ForgotYourPassword = "Account_ForgotYourPassword", 171 ResetYourPassword = "Account_ResetYourPassword", 172 RememberMe = "Account_RememberMe", 173 Password = "Account_Password", 174 Name = "Account_Name", 175 FirstName = "Account_FirstName", 176 LastName = "Account_LastName", 177 Description = "Address_Description", 178 Email = "Account_Email", 179 Username = "Account_Username", 180 Phone = "Account_Phone", 181 ZipCode = "Account_ZipCode", 182 City = "Account_City", 183 Country = "Account_Country", 184 CompanyName = "Account_CompanyName", 185 CompanyAddress = "Account_CompanyAddress", 186 CompanyCity = "Account_CompanyCity ", 187 CompanyZip = "Account_CompanyZip", 188 CompanyCountry = "Account_CompanyCountry", 189 CompanyID = "Account_CompanyID", 190 CompanyTIN = "Account_CompanyTIN", 191 CompanyVAT = "Account_CompanyVAT", 192 CompanyTermsOfPayment = "Account_CompanyTermsOfPayment", 193 Company = "Account_Company", 194 StateRegion = "Account_StateRegion", 195 NewPassword = "Account_NewPassword", 196 OldPassword = "Account_OldPassword", 197 ConfirmPassword = "Account_ConfirmPassword", 198 BusinessNumber = "Account_BusinessNumber", 199 AlreadyACustomer = "Account_AlreadyACustomer", 200 MyProfile = "Account_MyProfile", 201 EditProfile = "Account_EditProfile", 202 MyOrders = "Account_MyOrders", 203 MyFavorites = "Account_MyFavorites", 204 MySavedCards = "Account_MySavedCards", 205 StopImpersonation = "Account_StopImpersonation", 206 Impersonate = "Account_Impersonate", 207 IsImpersonating = "Account_IsImpersonating", 208 StopImpresonationPageText ="Account_StopImpresonationPageText", 209 SelectUserToImpersonate = "Account_SelectUserToImpersonate", 210 SearchUser = "Account_SearchUser", 211 ViewListOfUsers = "Account_ViewListOfUsers", 212 PasswordLengthIsInvalid = "Account_PasswordLengthIsInvalid", 213 InvalidEmailOrPassword = "Account_InvalidEmailOrPassword", 214 LimitOfAllowedLoginAttempts = "Account_LimitOfAllowedLoginAttempts", 215 TheUserAccountIsTemporarilyLocked = "Account_TheUserAccountIsTemporarilyLocked", 216 ThePasswordHasExpired = "Account_ThePasswordHasExpired", 217 AnUnknownErrorOccured = "Account_AnUnknownErrorOccured", 218 CreateAccountIncentive = "Account_CreateAccountIncentive", 219 CreateAccountIncentiveWithoutStock = "Account_CreateAccountIncentiveWithoutStock", 220 SignUpToSeeTheStock = "Account_SignUpToSeeTheStock", 221 InsertYourEmailMsg = "Account_InsertYourEmailMsg", 222 UserNotFound = "Account_UserNotFound", 223 UsersFound = "Account_UsersFound", 224 SendPasswordRecovery = "Account_SendPasswordRecovery", 225 PasswordRecovery = "Account_PasswordRecovery", 226 SomethingWentWrong = "Account_SomethingWentWrong", 227 TryRecoverPassword = "Account_TryRecoverPassword", 228 TheRecoveryPasswordLinkOutOfDate = "Account_TheRecoveryPasswordLinkOutOfDate", 229 ChooseANewPassword = "Account_ChooseANewPassword", 230 PasswordChanged = "Account_PasswordChanged", 231 SentEmailWithALinks = "Account_SentEmailWithALinks", 232 SentEmailWithThePassword = "Account_SentEmailWithThePassword", 233 AStrongPassword = "Account_AStrongPassword", 234 WeHaveReceivedARequest = "Account_WeHaveReceivedARequest", 235 ClickToSetANewPassword = "Account_ClickToSetANewPassword", 236 IgnoreThisEmail = "Account_IgnoreThisEmail", 237 CompleteOrdersCount = "Account_CompleteOrdersCount", 238 CompanyCreditLimit = "Account_CompanyCreditLimit", 239 InvoiceValue = "Account_InvoiceValue", 240 CompanySold = "Account_CompanySold", 241 CompanyOverdue = "Account_CompanyOverdue", 242 OpenOrders = "Account_OpenOrders", 243 PlacedOrders = "Account_PlacedOrders", 244 ProductsOnSale = "Account_ProductsOnSale", 245 LoyaltyPoints = "Account_LoyaltyPoints", 246 RequestAccountStatements = "Account_RequestAccountStatements", 247 RequestComplaintForm = "Account_RequestComplaintForm", 248 CompanyCreditLimitInfo = "Account_CompanyCreditLimitInfo", 249 YourConsents = "Account_YourConsents", 250 YourPointBalance = "Account_YourPointBalance", 251 Address = "Account_Address", 252 Address2 = "Account_Address2", 253 Addresses = "Account_Addresses", 254 MyAddresses = "Account_MyAddresses", 255 ManageAddresses = "Account_ManageAddresses", 256 NoAddressFound = "Account_NoAddressFound", 257 DefaultLocation = "Account_DefaultLocation", 258 DefaultPayment = "Account_DefaultPayment", 259 PaymentTerm = "Account_PaymentTerm", 260 MainAddressCanNotBeDeleted = "Account_MainAddressCanNotBeDeleted", 261 YouCanNotDeleteADefaultAddress = "Account_YouCanNotDeleteADefaultAddress", 262 AddNewAddress = "Account_AddNewAddress", 263 DeliveryAddresses = "Account_DeliveryAddresses", 264 BillingAddresses = "Account_BillingAddresses", 265 NoAddressesFound = "Account_NoAddressesFound", 266 EditAddress = "Account_EditAddress", 267 AddAddress = "Account_AddAddress", 268 SaveAddress = "Account_SaveAnAddress", 269 StreetNumber = "Account_StreetNumber", 270 DeleteThisAddress = "Account_DeleteThisAddress", 271 NoRMAsListFound = "Account_NoRMAsListFound", 272 RMASelectTypeFirst = "Account_SelectRMATypeFirst", 273 CancelTheRequest = "Account_CancelTheRequest", 274 EmittedWarranties = "Account_EmittedWarranties", 275 ViewRma = "Account_ViewRma", 276 CancelRma = "Account_CancelRma", 277 CreateNewRequest = "Account_CreateNewRequest", 278 CreateRequest = "Account_CreateRequest", 279 CancelRequest = "Account_CancelRequest", 280 ViewRequest = "Account_ViewRequest", 281 RmaId = "Account_RmaId", 282 AdditionalInfo = "Account_AdditionalInfo", 283 CustomerComment = "Account_CustomerComment", 284 CustomerDetails = "Account_CustomerDetails", 285 NoFavoritesListsFound = "Account_NoFavoritesListsFound", 286 CreateNewList = "Account_CreateNewList", 287 AddNewList = "Account_AddNewList", 288 EditList = "Account_EditList", 289 SetAsDefault = "Account_SetAsDefault", 290 DeleteThisFavoriteList = "Account_DeleteThisFavoriteList", 291 PublishedTo = "Account_PublishedTo", 292 ReturnToList = "Account_ReturnToList", 293 ShouldTheListBePublic = "Account_ShouldTheListBePublic", 294 IsThisTheDefaultList = "Account_IsThisTheDefaultList", 295 CreateList = "Account_CreateList", 296 BackToProfile = "Account_BackToProfile", 297 YouAreAlmostThere = "Account_YouAreAlmostThere", 298 CheckYourEmailToConfirmYourUserProfile = "Account_CheckYourEmailToConfirmYourUserProfile", 299 ProfileComplete = "Account_ProfileComplete", 300 ProfileCompletePageText = "Account_ProfileCompletePageText", 301 CreateUserAccount = "Account_CreateUserAccount", 302 CreateYourNewAccount = "Account_CreateYourNewAccount", 303 YouAlreadyExistInOurSystemClickBelowToResetYourPassword = "Account_YouAlreadyExistInOurSystemClickBelowToResetYourPassword", 304 ResetPassword = "Account_ResetPassword", 305 PrivatePerson = "Account_PrivatePerson", 306 EmptyFields = "Account_CompleteAllFields", 307 PasswordsNoMatch = "Account_PasswordsDoNotMatch", 308 FillOldPasswordFirst = "Account_FillOldPasswordFirst", 309 PasswordFieldCannotBeEmpty = "Account_PasswordShouldNotBeEmpty", 310 PasswordCannotBeEmpty = "Account_PasswordCannotBeEmpty", 311 NewPasswordConfimShouldNotBeEmpty = "Account_NewPasswordConfimShouldNotBeEmpty", 312 NameCannotBeEmpty = "Account_NameCannotBeEmpty", 313 FirstNameCannotBeEmpty = "Account_FirstNameCannotBeEmpty", 314 LastNameCannotBeEmpty = "Account_LastNameCannotBeEmpty", 315 ConfirmAccount = "Account_ConfirmAccount", 316 ConfirmAccountEmailSubheader = "Account_ConfirmAccountEmailSubheader", 317 ConfirmAccountEmailHi = "Account_ConfirmAccountEmailHi", 318 ConfirmAccountEmailTextOne = "Account_ConfirmAccountEmailTextOne", 319 ConfirmAccountEmailTextTwo = "Account_ConfirmAccountEmailTextTwo", 320 ConfirmAccountEmailTextEnd = "Account_ConfirmAccountEmailTextEnd", 321 ActivatedEmailAccountTextOne = "Account_ActivatedEmailAccountTextOne", 322 ActivatedEmailClickButton = "Account_ActivatedEmailClickButton", 323 ActivatedEmailTextFooter = "Account_ActivatedEmailTextFooter", 324 ConfirmEmail = "Account_ConfirmEmail", 325 AddNewWarranty = "Account_AddNewWarranty", 326 CreateNewWarranty = "Account_CreateWarranty", 327 CreateNewService = "Account_CreateService", 328 CreateNewPartsExchange = "Account_CreatePartsExchange", 329 EmailCannotBeEmpty = "Account_EmailCannotBeEmpty", 330 LoginToViewFavorites = "Account_LoginToViewFavorites"; 331 } 332 public class Products 333 { 334 public static string 335 SelectRating = "Products_SelectRating", 336 RatingHeadline = "Products_RatingHeadline", 337 LoginToReview = "Products_LoginToReview", 338 NoReviewsFound = "Products_NoReviewsFound", 339 ProductsGeneral = "Products_ProductsGeneral", 340 NotifyWhenBackOnStock = "Products_NotifyWhenBackOnStock", 341 NotifyWhenBackOnStockSent = "Products_NotifyWhenBackOnStockSent", 342 NotifyWhenBackOnStockRegistered = "Products_NotifyWhenBackOnStockRegistered", 343 NotifyWhenBackOnStockAlreadySent = "Products_NotifyWhenBackOnStockAlreadySent", 344 ExchangePartsFor = "Products_ExchangePartsFor", 345 Product = "Products_Product", 346 AnyProduct = "Product_AnyProduct", 347 ProductNo = "Products_ProductNo", 348 ProductCode = "Products_ProductCode", 349 Prod = "Products_Prod", 350 Price = "Products_Price", 351 Vat = "Products_Vat", 352 SearchProductsOrPages = "Products_SearchProductsOrPages", 353 SearchProducts = "Products_SearchProducts", 354 SearchResultFor = "Products_SearchResultFor", 355 Newest = "Products_Newest", 356 PriceHighLow = "Products_PriceHighLow", 357 PriceLowHigh = "Products_PriceLowHigh", 358 Stock = "Products_Stock", 359 TotalStock = "Products_TotalStock", 360 InStock = "Products_InStock", 361 OutOfStock = "Products_OutOfStock", 362 Delivery = "Products_Delivery", 363 SearchFavoriteProducts = "Products_SearchFavoriteProducts", 364 Filters = "Products_Filters", 365 SelectFilters = "Products_SelectFilters", 366 CloseFilters = "Products_CloseFilters", 367 RemoveFilters = "Products_RemoveFilters", 368 ResetAllFilters = "Products_ResetAllFilters", 369 ProductCategories = "Products_ProductCategories", 370 Categories = "Products_Categories", 371 ExclVAT = "Products_ExclVAT", 372 InclVAT = "Products_InclVAT", 373 BuyWithPoints = "Products_BuyWithPoints", 374 MoreOptionsAvailable = "Products_MoreOptionsAvailable", 375 ProductNumber = "Products_ProductNumber", 376 Brand = "Products_Brand", 377 Buc = "Products_Buc", 378 PleaseSelectVariant = "Products_PleaseSelectVariant", 379 Sort = "Products_Sort", 380 SortBy = "Products_SortBy", 381 Summary = "Products_Summary", 382 Description = "Products_Description", 383 Specifications = "Products_Specifications", 384 Reviews = "Products_Reviews", 385 GeneralReviews = "Products_GeneralReviews", 386 AddAReview = "Products_AddAReview", 387 ProductAssets = "Products_ProductAssets", 388 Variants = "Products_Variants", 389 VariantsList = "Products_VariantsList", 390 IncludingProducts = "Products_IncludingProducts", 391 MinimumQuantity = "Products_MinimumQuantity", 392 StepQuantity = "Products_StepQuantity", 393 PriceWithVat = "Products_PriceWithVat", 394 Quantity = "Products_Quantity", 395 TotalPrice = "Products_TotalPrice", 396 TotalWithVat = "Products_TotalWithVat", 397 RecentSearches = "Products_RecentSearches", 398 ItemNumber = "Products_ItemNumber", 399 UnitPrice = "Products_UnitPrice", 400 ViewFavorites = "Products_ViewFavorites", 401 ChooseList = "Products_ChooseList", 402 WasAddedToFavoriteList = "Product_WasAddedToFavoriteList", 403 WasRemovedFromFavoriteList = "Product_WasRemovedFromFavoriteList", 404 RemoveFromCurrentFavoriteList = "Product_RemoveFromCurrentFavoriteList", 405 NotEligibleForWarranty = "Product_NotEligibleForWarranty", 406 AddToFavoritesLabel = "Products_AddToFavoritesLabel", 407 AddToFavorites = "Products_AddToFavorites", 408 RemoveFromFavorites = "Products_RemoveFromFavorites", 409 OrCreateOne = "Products_OrCreateOne", 410 OrCreateOneAndAddTheProductToIt = "Products_OrCreateOneAndAddTheProductToIt", 411 NoListsCreateOneAbove = "Products_NoListsCreateOneAbove", 412 EnterAListName = "Products_EnterAListName", 413 ListWithSameNameAlreadyExists = "Products_ListWithSameNameExists", 414 SeeFavoriteList = "Products_SeeFavoriteList", 415 Compare = "Products_Compare", 416 AddToCompare = "Products_AddToCompare", 417 RemoveFromCompare = "Products_RemoveFromCompare", 418 ViewMore = "Products_ViewMore", 419 RecommendedPrice = "Products_RecommendedPrice", 420 YouSave = "Products_YouSave", 421 SalesUOM = "Products_SalesUOM", 422 AvailablilityDateMessage = "Product_AvailableIn"; 423 } 424 public class Cart 425 { 426 public static string 427 CartGeneral = "Cart_CartGeneral", 428 UpdateQuantitiesInCart ="Cart_UpdateQuantitiesInCart", 429 SignInCart = "Cart_SignInCart", 430 InvalidQuantitiesInCart = "Cart_InvalidQuantitiesInCart", 431 PlacedOrderDate = "Cart_PlacedOrderDate", 432 MaxFinalizeDate = "Cart_MaxFinalizeDate", 433 WaitingMarketplaceOrders = "Cart_WaitingMarketplaceOrders", 434 ApprovedOrRejectedMarketplaceOrders = "Cart_ApprovedOrRejectedMarketplaceOrders", 435 MarketplaceNoOrdersWaitingFound = "Cart_NoMarketplaceOrdersWaitingFound", 436 MarketplaceNoOrdersAcceptedOrRejectedFound = "Cart_NoMarketplaceOrdersAcceptedOrRejectedFound", 437 DeliverOrder = "Cart_DeliverOrder", 438 OrderDetails = "Cart_OrderDetails", 439 ApproveOrder = "Cart_ApproveOrder", 440 ApprovedOrder = "Cart_ApprovedOrder", 441 RejectOrder = "Cart_RejectOrder", 442 RejectedOrder = "Cart_RejectedOrder", 443 DeliveredOrder = "Cart_DeliveredOrder", 444 SearchMarketplaceOrders = "Cart_SearchMarketplaceOrders", 445 SelectOneOrMoreExchangeParts = "Cart_ChooseOneOrMoreExchangeParts", 446 ShoppingCart = "Cart_ShoppingCart", 447 ProductIsAddedToTheCart = "Cart_ProductIsAddedToTheCart", 448 ProductWasAddedToTheCart = "Cart_ProductWasAddedToTheCart", 449 ProductsAreAddedToTheCart = "Cart_ProductsAreAddedToTheCart", 450 ContinueShopping = "Cart_ContinueShopping", 451 ProceedToCheckout = "Cart_ProceedToCheckout", 452 Earnings = "Cart_Earnings", 453 Points = "Cart_Points", 454 NoPointsFound = "Cart_NoPointsFound", 455 YourPointBalance = "Cart_YourPointBalance", 456 UsedPoints = "Cart_UsedPoints", 457 AddPoints = "Cart_AddPoints", 458 Variant = "Cart_Variant", 459 Unit = "Cart_Unit", 460 Qty = "Cart_Qty", 461 Subtotal = "Cart_Subtotal", 462 Total = "Cart_Total", 463 CannotOrder = "Cart_CannotOrder", 464 RemoveOrderline = "Cart_RemoveOrderline", 465 UpdateOrderline = "Cart_UpdateOrderline", 466 OrderlineUpdating = "Cart_OrderlineUpdating", 467 OrderlineUpdated = "Cart_OrderlineUpdated", 468 OrderlineRemoving = "Cart_OrderlineRemoving", 469 OrderlineRemoved = "Cart_OrderlineRemoved", 470 EmptyCartStart = "Cart_EmptyCartStart", 471 EmptyCartFinished = "Cart_EmptyCartFinished", 472 EmptyCarCheck = "Cart_EmptyCartCheck", 473 SelectShippingOption = "Cart_SelectShippingOption", 474 SelectBillingOption = "Cart_SelectBillingOption", 475 NotEnoughPointsToBuyThis = "Cart_NotEnoughPointsToBuyThis", 476 MaximumPointsText = "Cart_MaximumPointsText", 477 EmptyCart = "Cart_EmptyCart", 478 Shipping = "Cart_Shipping", 479 AddToCart = "Cart_AddToCart", 480 BuyAll = "Cart_BuyAll", 481 BuyFor = "Cart_BuyFor", 482 Order = "Cart_Order", 483 OrderID = "Cart_OrderID", 484 Date = "Cart_Date", 485 OrderNumber = "Cart_OrderNumber", 486 OrderNumberNav = "Cart_OrderNumberNav", 487 OrderDate = "Cart_OrderDate", 488 OrderValue = "Cart_OrderValue", 489 ViewOrder = "Cart_ViewOrder", 490 PONumber = "Cart_PONumber", 491 Reorder = "Cart_Reorder", 492 NoOrdersFound = "Cart_NoOrdersFound", 493 Invoice = "Cart_Invoice", 494 ChooseInvoice = "Cart_ChooseInvoice", 495 SearchInvoices = "Cart_SearchInvoices", 496 NoInvoicesFound = "Cart_NoInvoicesFound", 497 PleaseChooseAnInvoice = "Cart_ChooseAnInvoice", 498 InvoiceNumber = "Cart_InvoiceNumber", 499 InvoiceDate = "Cart_InvoiceDate", 500 TrackingNumber = "Cart_TrackingNumber", 501 DeliveryNote = "Cart_DeliveryNote", 502 ViewDeliveryNote = "Cart_ViewDeliveryNote", 503 SelectOrder = "Cart_SelectOrder", 504 Payment = "Cart_Payment", 505 PaymentMethod = "Cart_PaymentMethod", 506 ShippingMethod = "Cart_ShippingMethod", 507 SelectShipping = "Cart_SelectShipping", 508 SelectPayment = "Cart_SelectPayment", 509 BillingAddress = "Cart_BillingAddress", 510 SameBillingAsShipping = "Cart_BillingAsShipping", 511 ShippmentNumber = "Cart_ShippmentNumber", 512 ShippingAddress = "Cart_ShippingAddress", 513 AddAlternativeAdr = "Cart_AddAlternativeAdr", 514 SelectSavedAddress = "Cart_SelectSavedAddress", 515 PaymentAndShipping = "Cart_PaymentAndShipping", 516 RecurringEvery = "Cart_RecurringEvery", 517 RecurringStartDate = "Cart_RecurringStartDate", 518 RecurringEndDate = "Cart_RecurringEndDate", 519 StartDate = "Cart_StartDate", 520 OrderUsedGiftCards = "Cart_OrderUsedGiftCards", 521 GiftCardName = "Cart_GiftCardName", 522 GiftCardCode = "Cart_GiftCardCode", 523 ExpiryDate = "Cart_ExpiryDate", 524 InitialAmount = "Cart_InitialAmount", 525 UsedAmount = "Cart_UsedAmount", 526 RemainingBalance = "Cart_RemainingBalance", 527 Vouchers = "Cart_Vouchers", 528 Voucher = "Cart_Voucher", 529 HasBeenUsed = "Cart_HasBeenUsed ", 530 GiftCardAmount = "Cart_GiftCardAmount", 531 ShopInformation = "Cart_ShopInformation", 532 ShopName = "Cart_ShopName", 533 CardNo = "Cart_CardNo", 534 TransactionNo = "Cart_TransactionNo", 535 TransactionState = "Cart_TransactionState", 536 GiftcardsBoughtOnThisOrder = "Cart_GiftcardsBoughtOnThisOrder", 537 RecurringOrder = "Cart_RecurringOrder", 538 RecurringOrderSettings = "Cart_RecurringOrderSettings", 539 SaveUsedCard = "Cart_SaveUsedCard", 540 SavedCardName = "Cart_SavedCardName", 541 PayWithASavedCard = "Cart_PayWithASavedCard", 542 CreateRecurringOrder = "Cart_CreateRecurringOrder", 543 IWantMyOrderEvery = "Cart_IWantMyOrderEvery", 544 AndItShouldEndOn = "Cart_AndItShouldEndOn", 545 YouHaveNoItemsInTheCart = "Cart_YouHaveNoItemsInTheCart", 546 GoToCheckout = "Cart_GoToCheckout", 547 CreateQuoteRequest = "Cart_CreateQuoteRequest", 548 SubmitQuoteRequest = "Cart_SubmitQuoteRequest", 549 ReviewOrder = "Cart_ReviewOrder", 550 ReviewOrderLine = "Cart_ReviewOrderLine", 551 GetParcelShops = "Cart_GetParcelShops", 552 ChangeParcelShop = "Cart_ChangeParcelShop", 553 ChooseAParcelShop = "Cart_ChooseAParcelShop", 554 ConfirmOrder = "Cart_ConfirmOrder", 555 AppliedToOrder = "Cart_AppliedToOrder", 556 EnterVoucherCode = "Cart_EnterVoucherCode", 557 CartAddAlternativeAdr = "Cart_CartAddAlternativeAdr", 558 RequiresAnAddress = "Cart_RequiresAnAddress", 559 YouHavePlacedASubscription = "Cart_YouHavePlacedASubscription", 560 NoAddressSelected = "Cart_NoAddressSelected", 561 CompanyNrInmatriculare = "Cart_CompanyNrInmatriculare", 562 AddressForm = "Cart_AddressForm", 563 AddressWasSent = "Account_AddressWasSent", 564 CreateAccountReceiptMessage = "Cart_CreateAccountReceiptMessage", 565 ShippingAddressFieldError = "Account_ShippingAddressFieldError", 566 BillingAddressFieldError = "Account_BillingAddressFieldError", 567 ThereWasAnErrorPleaseTryAgain = "Cart_ThereWasAnErrorPleaseTryAgain", 568 OrderEmailShippingConfirmation = "Cart_OrderEmailShippingConfirmation", 569 OrderEmailText = "Crt_OrderEmailText", 570 CantBePickedUp = "Cart_CantBePickedUp", 571 CreateUserInCheckout = "Cart_CreateUserInCheckout", 572 ProductNoPickup = "Cart_ProductNoPickup", 573 SelectShippingAddress = "Cart_SelectShippingAddress", 574 DiscountStepMessage = "Cart_DiscountStepMessage", 575 ServiceRequestNumber = "Cart_ServiceRequestNumber", 576 InsertAccountEmail = "Cart_InsertAccountEmail", 577 InsertAccountPassword = "Cart_InsertAccountPassword", 578 NoParcelShopsSelected = "Cart_NoParcelShopsSelected", 579 ShippingDiscountMessage = "Cart_ShippingDiscountMessage", 580 NoParcelShopsInYourArea = "Cart_NoParcelShopsInYourArea", 581 SelectBillingAddress = "Cart_SelectBillingAddress", 582 RMAId = "Cart_RMAId", 583 RMAEmailNotification = "Cart_RMAEmailNotification"; 584 585 } 586 } 587 } 588 589 590 591 592 @helper RenderContent() 593 { 594 string title = Model.Item.GetString("Title"); 595 string titleTag = Model.Item.GetList("Title_Tag").SelectedValue; 596 string titleStyle = Model.Item.GetList("Title_Style").SelectedValue; 597 string titleWeight = Model.Item.GetList("Title_Weight").SelectedValue; 598 string titleColor = Model.Item.GetList("Title_Color").SelectedValue; 599 600 string subtitle = Model.Item.GetString("Subtitle"); 601 string subtitleTag = Model.Item.GetList("Subtitle_Tag").SelectedValue; 602 string subtitleStyle = Model.Item.GetList("Subtitle_Style").SelectedValue; 603 string subtitleWeight = Model.Item.GetList("Subtitle_Weight").SelectedValue; 604 string subtitleColor = Model.Item.GetList("Subtitle_Color").SelectedValue; 605 string subtitleSwitchPosition = Model.Item.GetValue("Switch_Subtitle_Position").ToString(); 606 607 string content = Model.Item.GetString("Content"); 608 FileViewModel contentImage = Model.Item.GetFile("Content_Image_Source") ?? new FileViewModel(); 609 bool hasContentImage = contentImage.ToString() != ""; 610 611 FileViewModel image = Model.Item.GetFile("Image") ?? new FileViewModel(); 612 bool hasImage = image.ToString() != ""; 613 string subtitleSwitchPositionCssClass = subtitleSwitchPosition == "True" ? " order--1 " : " "; 614 string titleRender= "<"+titleTag+" class='w-100 line-height-inline "+titleStyle+" color-"+ titleColor+" weight-"+titleWeight+"'>"+title+"</"+titleTag+">"; 615 string subtitleRender= "<"+subtitleTag+" class='w-100 line-height-inline "+subtitleStyle + subtitleSwitchPositionCssClass +" color-"+ subtitleColor+" weight-"+subtitleWeight+"'>"+subtitle+"</"+subtitleTag+">"; 616 617 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" : ""; 618 619 string bannerType = Model.Item.GetList("Banner_Type").SelectedValue; 620 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" : ""; 621 string bannerXPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-x-" + Model.Item.GetList("Horizontal_Spacing").SelectedValue : ""; 622 string bannerYPadding = Model.Item.GetList("Banner_Height").SelectedValue == "auto" ? "padding-y-" + Model.Item.GetList("Vertical_Spacing").SelectedValue : ""; 623 string bannerHeightCssClass = bannerType == "content-aware" ? "height-"+Model.Item.GetList("Banner_Height").SelectedValue : ""; 624 string contentLayout = Model.Item.GetList("Content_Width").SelectedValue; 625 string contentColor = Model.Item.GetList("Content_Color").SelectedValue; 626 string contentPlacement = Model.Item.GetList("Content_Placement").SelectedValue; 627 string contentImagePlacementCssClass = contentPlacement == "left" ? "order-md-1" : ""; 628 629 string horizontalAlignment = Model.Item.GetList("Horizontal_Alignment").SelectedValue; 630 string verticalAlignment = Model.Item.GetList("Vertical_Alignment").SelectedValue; 631 string horizontalAlignmentCssClass = horizontalAlignment == "center" ? "justify-content-center text-center" : horizontalAlignment == "left" ? "justify-content-start text-left" : "justify-content-end text-right"; 632 string verticalAlignmentCssClass = verticalAlignment == "center" ? "align-items-center" : verticalAlignment == "top" ? "align-items-top" : "align-items-bottom"; 633 string imageSnapCssClass = !string.IsNullOrEmpty(content) ? Model.Item.GetValue("Option__Snap_Image_To_Content").ToString() == "True" ? "snap" : "" : ""; 634 // string imageSnapCssClass = ""; 635 string customCssClass = Model.Item.GetString("Custom_Class"); 636 637 <div class="component-b-refactored @container @bannerHeightCssClass @customCssClass" > 638 @if (contentLayout == "1") 639 { 640 <div class="component-b-refactored__content flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 @bannerXPadding @bannerYPadding"> 641 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) { 642 <div class="decor color-@(contentColor) child-mb-2"> 643 @if (!string.IsNullOrEmpty(title)) 644 { 645 @titleRender 646 } 647 @if (!string.IsNullOrEmpty(subtitle)) 648 { 649 @subtitleRender 650 } 651 @if (!string.IsNullOrEmpty(content)) 652 { 653 <div class="content">@content</div> 654 } 655 </div> 656 } 657 </div> 658 <div class="component-b-refactored__image @imageSnapCssClass"> 659 @if ((image.ToString()).Contains(".mp4")) 660 { 661 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 662 <source src="@image" type="video/mp4"> 663 </video> 664 } 665 else 666 { 667 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 668 } 669 </div> 670 } else if (contentLayout == "1/2") 671 { 672 <div class="component-b-refactored__content grid-md-2 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 673 674 <div class="image flex-wrap place-items-center col-md-1 w-100 @contentImagePlacementCssClass"> 675 @if (hasContentImage) 676 { 677 <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"/> 678 } 679 </div> 680 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 681 { 682 <div class="decor p-2 p-md-0 color-@(contentColor) col-md-1 child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 683 @if (!string.IsNullOrEmpty(title)) 684 { 685 @titleRender 686 } 687 @if (!string.IsNullOrEmpty(subtitle)) 688 { 689 @subtitleRender 690 } 691 @if (!string.IsNullOrEmpty(content)) 692 { 693 <div class="content">@content</div> 694 } 695 <div class="actions"> 696 <button type="button" class="btn-fill--brand">Discover our materials</button> 697 </div> 698 </div> 699 } 700 </div> 701 <div class="component-b-refactored__image @imageSnapCssClass"> 702 @if ((image.ToString()).Contains(".mp4")) 703 { 704 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 705 <source src="@image" type="video/mp4"> 706 </video> 707 } 708 else 709 { 710 <img data-src="/Admin/Public/GetImage.ashx?Width=1920&Crop=5&Format=jpg&Resolution=72&Image=@(image)" class="@contentAwareCssClass lazyload w-100"/> 711 } 712 </div> 713 } else if (contentLayout == "1/3" || contentLayout == "2/3") 714 { 715 string contentCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-1" : "col-md-1 col-lg-2"; 716 string imageCssClass = contentLayout == "1/3" ? "col-md-1 col-lg-2" : "col-md-1 col-lg-1"; 717 <div class="component-b-refactored__content grid-md-2 grid-lg-3 flex-wrap @horizontalAlignmentCssClass @verticalAlignmentCssClass p-2 gap-4 @bannerXPadding @bannerYPadding"> 718 <div class="image flex-wrap place-items-center w-100 @imageCssClass @contentImagePlacementCssClass"> 719 @if (hasContentImage) 720 { 721 <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" /> 722 } 723 </div> 724 @if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(subtitle) || !string.IsNullOrEmpty(content)) 725 { 726 <div class="decor p-2 p-md-0 color-@(contentColor) @contentCssClass child-mb-2 flex-wrap @horizontalAlignmentCssClass"> 727 728 @if (!string.IsNullOrEmpty(title)) 729 { 730 @titleRender 731 } 732 @if (!string.IsNullOrEmpty(subtitle)) 733 { 734 @subtitleRender 735 } 736 @if (!string.IsNullOrEmpty(content)) 737 { 738 <div class="content">@content</div> 739 } 740 <div class="actions"> 741 <button type="button" class="btn-fill--brand">Discover our materials</button> 742 </div> 743 </div> 744 } 745 </div> 746 747 <div class="component-b-refactored__image @imageSnapCssClass"> 748 @if ((image.ToString()).Contains(".mp4")) 749 { 750 <video autoplay muted loop class="@contentAwareCssClass w-100 block"> 751 <source src="@image" type="video/mp4"> 752 </video> 753 } 754 else 755 { 756 <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"/> 757 } 758 </div> 759 760 } 761 762 </div> 763 } 764 765 @{ 766 bool hasContainer = Model.Item.GetValue("Add_Container").ToString() == "True"; 767 string containerType = Model.Item.GetList("Container_Type").SelectedValue; 768 if (!hasContainer) 769 { 770 @RenderContent() 771 } else { 772 string containerClass = containerType == "full" ? "container--wide" : containerType == "narrow" ? "container--narrow" : "container"; 773 <div class="section__container @containerClass"> 774 <div class="section__content"> 775 @RenderContent() 776 </div> 777 </div> 778 } 779 } 780 781 782 783
Coș de cumpărături