Exception in template (Designs/Rapido/_parsed/Page.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.cbaacefbf.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @using Dynamicweb.Frontend.Devices @using Dynamicweb.Extensibility @using Dynamicweb.Content @using Dynamicweb.Security; @using System @using System.Web @{ //General settings string favicon = Model.Area.Item.GetFile("LogoFavicon") != null ? Model.Area.Item.GetFile("LogoFavicon").Path : "/Files/Images/favicon.png"; string logo = Model.Area.Item.GetFile("LogoImage") != null ? Model.Area.Item.GetFile("LogoImage").Path : "/Files/Images/logo-dynamicweb.png"; string logoWhite = Model.Area.Item.GetFile("LogoImageWhite") != null ? Model.Area.Item.GetFile("LogoImageWhite").Path : "/Files/Images/DWLogo.png"; bool megaMenu = Model.Area.Item.GetList("NavigationMegaMenu").SelectedValue.ToLower() == "true" ? true : false; bool stickyMenu = Pageview.Device.ToString() == "Mobile" ? false : Model.Area.Item.GetBoolean("NavigationStickyMenu"); string mobileNavigationLevels = Model.Area.Item.GetBoolean("MobileNavigationLevels") ? Model.Area.Item.GetString("MobileNavigationLevels") : "3"; string footerColumnOneContent = !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterColumnOne")) ? Model.Area.Item.GetString("FooterColumnOne") : ""; string footerColumnTwoContent = !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterColumnTwo")) ? Model.Area.Item.GetString("FooterColumnTwo") : ""; string searchPlaceholder = Translate("Search products", "Search products"); string userSignedInError = !Model.LogOnFailed ? "" : "checked"; string userSignedInErrorText = ""; if (Model.LogOnFailed) { switch (Model.LogOnFailedReason) { case Dynamicweb.Security.UserManagement.LogOnFailedReason.PasswordLengthInvalid: userSignedInErrorText = Translate("Password length is invalid","Password length is invalid"); break; case Dynamicweb.Security.UserManagement.LogOnFailedReason.IncorrectLogin: userSignedInErrorText = Translate("Invalid email or password","Invalid email or password"); break; case Dynamicweb.Security.UserManagement.LogOnFailedReason.ExceededFailedLogOnLimit: userSignedInErrorText = Translate("You have exceeded the limit of allowed login attempts. The user account is temporarily locked","You have exceeded the limit of allowed login attempts. The user account is temporarily locked"); break; case Dynamicweb.Security.UserManagement.LogOnFailedReason.LoginLocked: userSignedInErrorText = Translate("The user account is temporarily locked","The user account is temporarily locked"); break; case Dynamicweb.Security.UserManagement.LogOnFailedReason.PasswordExpired: userSignedInErrorText = Translate("The password has expired and needs to be renewed","The password has expired and needs to be renewed"); break; default: userSignedInErrorText = Translate("An unknown error occured","An unknown error occured"); break; } } string loggedIn = Model.CurrentUser.ID > 0 ? "true" : "false"; double cartProductsCount = Model.Cart.TotalProductsCount; string wireframeMode = Model.Area.Item.GetBoolean("WireframeMode").ToString(); //Font settings string navigationFont = Model.Area.Item.GetItem("NavigationFont").GetString("FontFamily").Replace(" ", "+"); string mobileNavigationFont = Model.Area.Item.GetItem("MobileNavigationFont").GetString("FontFamily").Replace(" ", "+"); string headerFont = Model.Area.Item.GetItem("ContentLayoutHeaderFont").GetString("FontFamily").Replace(" ", "+"); string subHeaderFont = Model.Area.Item.GetItem("ContentLayoutSubheaderFont").GetString("FontFamily").Replace(" ", "+"); string contentFont = Model.Area.Item.GetItem("ContentLayoutBodyText").GetString("FontFamily").Replace(" ", "+"); //Page IDs for use in the template string firstPageId = Model.Area.FirstActivePage.ID.ToString(); string areaId = Model.Area.ID.ToString(); string autoCssLink = "/Files/Templates/Designs/Rapido/css/rapido/rapido_" + areaId + ".min.css"; int pageId = Model.TopPage.ID; string currentUserId = Model.CurrentUser.ID > 0 ? Model.CurrentUser.ID.ToString() : ""; int cartPageId = GetPageIdByNavigationTag("CartPage"); int miniCartFeedPageId = GetPageIdByNavigationTag("MiniCartFeed"); int cartFeedPageId = GetPageIdByNavigationTag("CartOrderlinesFeed"); int productsPageId = GetPageIdByNavigationTag("ProductsPage"); int productSearchPageId = GetPageIdByNavigationTag("ProductSearchFeed"); int productGroupsPageId = GetPageIdByNavigationTag("ProductGroupsFeed"); string myProfilePageId = (Model.CurrentUser.ID <= 0) ? GetPageIdByNavigationTag("SignInProfile").ToString() : GetPageIdByNavigationTag("CustomerProfile").ToString(); string myOrdersPageId = (Model.CurrentUser.ID <= 0) ? GetPageIdByNavigationTag("SignInOrders").ToString() : GetPageIdByNavigationTag("CustomerOrders").ToString(); string myFavoritesPageId = (Model.CurrentUser.ID <= 0) ? GetPageIdByNavigationTag("SignInFavorites").ToString() : GetPageIdByNavigationTag("CustomerFavorites").ToString(); int createAccountPageId = GetPageIdByNavigationTag("CreateAccount"); int signInProfilePageId = GetPageIdByNavigationTag("SignInProfile"); string forgotPasswordPageId = signInProfilePageId.ToString() + "&LoginAction=Recovery"; int myDashboardPageId = GetPageIdByNavigationTag("CustomerDashboard"); int newsletterSignUpPageId = GetPageIdByNavigationTag("NewsletterSignUp"); int createCommentPageId = GetPageIdByNavigationTag("CreateComment"); int commentPageId = GetPageIdByNavigationTag("Comments"); int ImpersonationPageId = GetPageIdByNavigationTag("Impersonation"); string stickyTop = stickyMenu ? "top-container--sticky" : ""; string pagePos = stickyMenu ? "js-page-pos" : ""; string topLayout = Model.Area.Item.GetList("LayoutTop").SelectedValue; string announcementBarText = Model.Area.Item.GetString("AnnouncementBarText"); string megamenuPromotionImage = Model.Area.Item.GetFile("NavigationMegamenuPromotionImage") != null ? Model.Area.Item.GetFile("NavigationMegamenuPromotionImage").Path : ""; } <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>@Model.TopPage.Name</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Slick Carousel --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css" /> <!-- Favicon --> <link href="@favicon" rel="icon" type="image/png"> <!-- Font awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css"> <!-- Bootstrap --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> <!-- Base (Default, wireframe) styles --> <link rel="stylesheet" href="/Files/Templates/Designs/Rapido/css/base/base.css" type="text/css"> <!-- Rapido Css from Website Settings --> <link id="rapidoCss" rel="stylesheet" href="@autoCssLink" type="text/css"> <!-- Ignite Css (Custom site specific styles) --> <link id="igniteCss" type="text/css" href="/Files/Templates/Designs/Rapido/css/ignite/ignite.min.css" rel="stylesheet"> <link id="igniteCss" type="text/css" href="/Files/Templates/Designs/Rapido/css/ignite/ignite.css" rel="stylesheet"> <!-- Custom CSS (Css provided by the client) --> <link type="text/css" href="/Files/Templates/Designs/Rapido/css/ignite/main.css" rel="stylesheet"> <!-- Google fonts --> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@navigationFont:100,200,300,400,500,600,700,800,900"> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@mobileNavigationFont:100,200,300,400,500,600,700,800,900"> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@headerFont:100,200,300,400,500,600,700,800,900"> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@subHeaderFont:100,200,300,400,500,600,700,800,900"> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@contentFont:100,200,300,400,500,600,700,800,900"> <link type="text/css" href="https://fonts.googleapis.com/css?family=Muli:400,800" rel="stylesheet"> <!-- Select2 --> <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/css/select2.min.css" rel="stylesheet" /> <!-- Analytics code --> @{ String googleTrackingId = Model.Area.Item.GetString("GoogleTracking_ID").ToString(); int userID = Model.CurrentUser.ID; } @if (!string.IsNullOrWhiteSpace(googleTrackingId)) { <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', '@googleTrackingId', 'auto'); ga('set', 'userId', '@userID'); // Set the user ID using signed-in user_id. ga('require','ecommerce','ecommerce.js'); ga('send', 'pageview'); </script> } <!-- Analytics code --> </head> <body> <!-- Pop Up--> <div id="burn" onclick="closeBurn()"> <div id="burnPopup"> <div id="burnClose" class="pull-right"> <a onclick="closeBurn()"><i class="fa fa-times" aria-hidden="true"></i></a> </div> <div id="burnBody" class="text-center"> <div id="burnTitle" class=""> </div> <div id="burnText" class=""> </div> <div id="burnButton" class=""> <a class=""></a> </div> </div> </div> </div> <!-- Pop Up--> <main class="site dw-mod"> @*Custom Header*@ <div class="bg-purple free-delivery"> <div class="container py-4"> <p class="m-0 text-center">@announcementBarText</p> </div> <span class="free-delivery-close">x</span> </div> @{ bool isMobile = Pageview.Device.ToString() == "Mobile" ? true : false; } <header class="custom-header"> <div class="container pt-3 pb-3 navigation"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-3" style="max-height:112px!important"> <a class="logo" href="Default.aspx?ID=@firstPageId"> <img src="/Admin/Public/GetImage.ashx?width=300&height=92&crop=1&Compression=100&image=@logoWhite" class="img-fluid" alt="logo"> </a> </div> <div class="col-12 col-sm-12 col-md-12 col-lg-9 text-right navigation-right"> <div> <ul class="header-buttons clearfix pt-4 mb-4"> <li class="d-inline-block px-5"> <div class="menu__link is-dropdown is-dropdown--no-icon search-button"> <i class="fa fa-search"></i> <div class="menu menu--dropdown u-w340px top-micro-search"> <div class="typeahead js-typeahead" data-page-size="10" id="ProductSearchBar" data-search-page-id="@productSearchPageId" data-result-page-id="@productsPageId" data-groups-page-id="@productGroupsPageId"> <div class="typeahead-search-field"> <input type="text" class="u-no-margin u-full-width js-typeahead-search-field" placeholder="@searchPlaceholder"> <ul class="dropdown dropdown--absolute-position u-full-width js-ajax-container js-typeahead-search-content" id="ProductSearchBarContent" data-template="SearchContentTemplate" data-no-result-template="SearchEmpty" data-json-feed="/Default.aspx?ID=@productSearchPageId&LayoutTemplate=Json.cshtml&DisableStatistics=True&feedType=productsOnly" data-init-onload="false"></ul> </div> </div> </div> </div> </li> @if (loggedIn == "true") { <li class="d-inline-block px-5 "> <a href="/Default.aspx?ID=@myFavoritesPageId" class="menu__link "> <i class="fa fa-heart-o"></i> </a> </li> } <li class=" d-inline-block px-5"> <div class="mini-cart "> @if(isMobile){ <a href="javascript:void(0)" class="menu__link dw-mod js-mini-cart-button" onmouseover="Cart.UpdateMiniCart(event, 'miniCart', '/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart')" style="cursor:pointer;"> <i class="fa fa-shopping-bag"></i> <div class="mini-cart__counter mini-cart__counter--inline "> <div class="js-ajax-container js-mini-cart-counter" id="cartCounter" data-template="MiniCartCounterContent" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=Counter" data-init-onload="false" data-preloader="false"> <div class="js-mini-cart-counter-content"> @cartProductsCount </div> </div> </div> </a> }else{ if(loggedIn == "true") { <a href="/Default.aspx?ID=@cartPageId&Purge=True" class="menu__link dw-mod js-mini-cart-button" onmouseover="Cart.UpdateMiniCart(event, 'miniCart', '/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart')" style="cursor:pointer;"> <i class="fa fa-shopping-bag"></i> <div class="mini-cart__counter mini-cart__counter--inline "> <div class="js-ajax-container js-mini-cart-counter" id="cartCounter" data-template="MiniCartCounterContent" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=Counter" data-init-onload="false" data-preloader="false"> <div class="js-mini-cart-counter-content"> @cartProductsCount </div> </div> </div> </a> } else { <a href="/Default.aspx?ID=@signInProfilePageId&Purge=True" class="menu__link dw-mod js-mini-cart-button" onmouseover="Cart.UpdateMiniCart(event, 'miniCart', '/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart')" style="cursor:pointer;"> <i class="fa fa-shopping-bag"></i> <div class="mini-cart__counter mini-cart__counter--inline "> <div class="js-ajax-container js-mini-cart-counter" id="cartCounter" data-template="MiniCartCounterContent" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=Counter" data-init-onload="false" data-preloader="false"> <div class="js-mini-cart-counter-content"> @cartProductsCount </div> </div> </div> </a> } } <div class="mini-cart-dropdown js-ajax-container js-mini-cart" id="miniCart" data-template="MiniCartContent" data-cart-id="@cartFeedPageId" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart" data-init-onload="false"></div> </div> </li> <li class="d-inline-block px-5" style="padding-right: 0px !important;"> <div class="header-menu__link is-dropdown is-dropdown--no-icon"> @if (loggedIn == "false") { <a href="/default.aspx?ID=@signInProfilePageId" class="u-color-inherit"><i class="fa fa-user u-color-inherit"></i> <small>LOGIN</small></a> } else { <a href="/default.aspx?ID=@myProfilePageId" class="u-color-inherit"><i class="fa fa-user u-color-inherit"></i> @Model.CurrentUser.Name </a> } <div class="menu menu--dropdown sign-in-dropdown u-w160px"> <div class="menu-dropdown__item"> <ul class="list list--clean"> @if (loggedIn == "true") { <li class="list__seperator"></li> <li> <a href="/Admin/Public/ExtranetLogoff.aspx?ID=12" class="list__link">@Translate("Sign out")</a> </li> }else{ <li class="list__seperator"></li> <li> <a href="/Default.aspx?id=@createAccountPageId" class="list__link">@Translate("Register")</a> </li> } </ul> </div> </div> </div> </li> </ul> <nav class="navbar navbar-expand-lg navbar-light p-0"> <button aria-controls="menu" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler ml-auto" data-target="#menu" data-toggle="collapse" type="button"><span class="navbar-toggler-icon"><i class="fa fa-bars" aria-hidden="true"></i></span></button> <div class="collapse navbar-collapse custom-nav" id="menu"> @if (!megaMenu) { @RenderNavigation(new { id = "topnavigation", cssclass = "menu dw-mod dwnavigation", startLevel = 1, endlevel = 3, expandmode = "All", template = "BaseMenuWithDropdown.xslt" }); } else { @RenderNavigation(new { id = "topnavigation", cssclass = "menu dw-mod dwnavigation", startLevel = 1, endlevel = 1, promotionImage = megamenuPromotionImage, promotionLink = Model.Area.Item.GetString("NavigationMegamenuPromotionLink"), template = "BaseMegaMenu.xslt" }); } </div> </nav> </div> </div> </div> <div class="clearfix"></div> </div> </header> @* End Custom Header*@ <!-- Floating mini cart --> @if (!stickyMenu && pageId == productsPageId) { <div class="floating-mini-cart u-hidden" id="FloatingMiniCart"> <div class="mini-cart"> if(loggedIn =="true") { <a href="/Default.aspx?ID=@cartPageId" class="menu-tools__link menu__link--condensed dw-mod js-mini-cart-button" onclick="Cart.UpdateMiniCart(event, 'SecondaryMiniCart', '/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart')"> <i class="fa fa-shopping-cart fa-4x"></i> <div class="mini-cart__counter mini-cart__counter--lg dw-mod"> <div class="js-ajax-container js-mini-cart-counter" id="FloatingCartCounter" data-template="MiniCartCounterContent" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=Counter" data-preloader="false" data-init-onload="false"> <div class="js-mini-cart-counter-content"> @cartProductsCount </div> </div> </div> </a> } else { <a href="/Default.aspx?ID=@signInProfilePageId" class="menu-tools__link menu__link--condensed dw-mod js-mini-cart-button" onclick="Cart.UpdateMiniCart(event, 'SecondaryMiniCart', '/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart')"> <i class="fa fa-shopping-cart fa-4x"></i> <div class="mini-cart__counter mini-cart__counter--lg dw-mod"> <div class="js-ajax-container js-mini-cart-counter" id="FloatingCartCounter" data-template="MiniCartCounterContent" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=Counter" data-preloader="false" data-init-onload="false"> <div class="js-mini-cart-counter-content"> @cartProductsCount </div> </div> </div> </a> } <div class="mini-cart-dropdown js-ajax-container js-mini-cart" id="SecondaryMiniCart" data-template="MiniCartContent" data-cart-id="@cartFeedPageId" data-json-feed="/Default.aspx?ID=@miniCartFeedPageId&feedType=MiniCart" data-init-onload="false"></div> </div> </div> } <!-- Render the content --> <div id="Page" class="page @pagePos"> <section class="center-container content-container dw-mod" id="content"> @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @if (Model.PropertyItem.GetBoolean("ShowBreadcrumb")) { <div class="grid__col-12"> @RenderNavigation(new { id = "breadcrumb", template = "breadcrumb.xslt" }) </div> } <div class="grid"> @if (Model.PropertyItem.GetBoolean("LeftMenu")) { <nav class="grid__col-md-3 grid__col-sm-12 grid__col-xs-12"> @RenderNavigation(new { id = "leftnav", cssclass = "menu menu--left dwnavigation", expandmode = "All", template = "LeftNavigation.xslt" }) </nav> } <div class="grid__col-auto grid__col--bleed"> <div class="grid"> @Model.Placeholder("dwcontent", "content", "default:true;sort:1") </div> </div> </div> </section> </div> </main> <!-- Footer section --> @* <footer class="footer dw-mod"> <div class="center-container dw-mod"> <div class="grid"> @if (!String.IsNullOrEmpty(footerColumnOneContent)) { <div class="grid__col-md-auto"> <h4 class="footer__heading">@Translate("Contact", "Contact")</h4> @footerColumnOneContent </div> } @if (!String.IsNullOrEmpty(footerColumnTwoContent)) { <div class="grid__col-md-auto"> @footerColumnTwoContent </div> } @if (Model.Area.Item.GetBoolean("FooterNewsletterSignUp")) { <div class="grid__col-md-auto"> <h4 class="footer__heading">@Translate("Mailing list", "Mailing list")</h4> <p>@Translate("Sign up if you would like to receive occasional treats from us", "Sign up if you would like to receive occasional treats from us").</p> <form class="form" name="NewsletterRedirect" action='/Default.aspx' method="get" enctype="multipart/form-data"> <input name="ID" id="ID" value="@newsletterSignUpPageId" type="hidden"/> <div class="form__field-combi"> <input name="NewsletterEmail" id="NewsletterEmail" type="text" placeholder='@Translate("Your email address", "Your email address")' /> <input class="btn btn--primary dw-mod" type="submit" id="Submitter" value='@Translate("Go", "Go")' /> </div> </form> </div> } @if (Model.Area.Item.GetItems("FooterSocialLinks").Count > 0) { <div class="grid__col-md-auto"> <h4 class="footer__heading">@Translate("Social links", "Social links")</h4> <div class="collection"> @foreach (var socialitem in Model.Area.Item.GetItems("FooterSocialLinks")) { //Fields.FirstOrDefault(x => x.SystemName == "Icon").GetString() var socialIcon = socialitem.GetValue("Icon") as Dynamicweb.Frontend.ListViewModel; string socialIconClass = socialIcon.SelectedValue; string socialIconTitle = socialIcon.SelectedName; string socialLink = socialitem.GetString("Link"); <a href="@socialLink" title="@socialIconTitle"><i class="fa @socialIconClass fa-2x u-color-light"></i></a> } </div> </div> } <div class="grid__col-12 grid--align-center"> <p>@Model.Area.Item.GetString("FooterCopyrightText")</p> </div> </div> </div> </footer> *@ <footer class="bg-grey pt-4 mt-5"> <div class="container"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-4 border border-light border-top-0 border-left-0 border-bottom-0"> <h5 class="mb-3" style="color:white;">About TAF</h5> <ul class="list-unstyled"> @foreach (var aboutitem in Model.Area.Item.GetItems("About_Us_Links")) { string footerLink = aboutitem.GetString("Link"); string footerLinkText = aboutitem.GetString("Link_Text"); <li class="mb-2"><a href="@footerLink" class="text-white" style="color: white !important;">@footerLinkText</a></li> } </ul> <h5 class="mt-4 mb-3" style="color:white;">Connect with Us</h5> <ul class="list-unstyled"> @foreach (var socialitem in Model.Area.Item.GetItems("FooterSocialLinks")) { //Fields.FirstOrDefault(x => x.SystemName == "Icon").GetString() var socialIcon = socialitem.GetValue("Icon") as Dynamicweb.Frontend.ListViewModel; string socialIconClass = socialIcon.SelectedValue; string socialIconTitle = socialIcon.SelectedName; string socialLink = socialitem.GetString("Link"); string socialText = socialitem.GetString("Text"); <li class="d-lg-table-cell pr-5"><a href="@socialLink" class="text-white"><i class="fa @socialIconClass"></i> <small>@socialText</small></a></li> } </ul> </div> <div class="col-12 col-sm-12 col-md-12 col-lg-4 pl-5 border border-light border-top-0 border-left-0 border-bottom-0"> <h5 class="mb-3" style="color:white;">Information</h5> <ul class="list-unstyled"> @foreach (var informationitem in Model.Area.Item.GetItems("InformationLinks")) { string footerLink = informationitem.GetString("Link"); string footerLinkText = informationitem.GetString("Link_Text"); <li class="mb-2"><a href="@footerLink" class="text-white">@footerLinkText</a></li> } </ul> <h5 class="mt-4 mb-3" style="color:white;">Customer Services</h5> <ul class="list-unstyled"> @foreach (var informationitem in Model.Area.Item.GetItems("Customer_Services_Links")) { string footerLink = informationitem.GetString("Link"); string footerLinkText = informationitem.GetString("Link_Text"); <li class="mb-2"><a href="@footerLink" class="text-white">@footerLinkText</a></li> } </ul> </div> <div class="col-12 col-sm-12 col-md-12 col-lg-4 pl-5"> <h5 class="mb-3" style="color:white;">Our Brands</h5> <ul class="list-unstyled"> @foreach (var informationitem in Model.Area.Item.GetItems("Our_BrandsLinks")) { string footerLink = informationitem.GetString("Link"); string footerLinkText = informationitem.GetString("Link_Text"); <li class="mb-2"><a href="@footerLink" class="text-white">@footerLinkText</a></li> } </ul> <h5 class="mt-4 mb-3" style="color:white;">Keep in touch with us</h5> <form class="form" name="NewsletterRedirect" action='/Default.aspx' method="get" enctype="multipart/form-data"> <input name="ID" id="ID" value="@newsletterSignUpPageId" type="hidden"/> <div class="form__field-combi"> <input name="NewsletterEmail" id="NewsletterEmail" type="text" placeholder='@Translate("Your email address", "Your email address")' /> <input class="btn btn--primary dw-mod" type="submit" id="Submitter" value="JOIN" /> </div> </form> </div> </div> </div> <div class="bg-black mt-4"> <div class="container py-3"> <p class="text-center mb-0">@Model.Area.Item.GetString("FooterCopyrightText")</p> </div> </div> </footer> <!--Footer section end --> @* Wireframe mode *@ @if (wireframeMode == "True" && Model.CurrentUser.ID > 0) { <input type="checkbox" class="panel-trigger" id="WireframeToolsTrigger" /> <aside id="WireframeTools" class="panel panel--right wireframe-tools"> <label for="WireframeToolsTrigger" id="wireframeToolsToggle" class="panel-trigger-btn wireframe-tools-toggle"></label> <div id="WireframeToolsContent" class="panel__content"> <div id="WireframeToolsHelpText" class="wireframe-tools__info"> @Translate("Click on a selectable element to add a comment","Click on a selectable element to add a comment") </div> <div class="js-ajax-container u-visually-hidden" id="CreateCommentForm" data-template="CreateCommentFormTemplate" data-json-feed="/Default.aspx?ID=@createCommentPageId&LayoutTemplate=Json.cshtml&DisableStatistics=True&feedType=Comments"></div> <div class="js-ajax-container" id="Comments" data-template="CommentListTemplate" data-json-feed="/Default.aspx?ID=@commentPageId&LayoutTemplate=Json.cshtml&DisableStatistics=True&Comment_PageId=@pageId" data-init-onload="false"></div> </div> </aside> <script id="CreateCommentFormTemplate" type="text/x-template"> <div> {{formBegin}} <label>@Translate("Comment","Comment")</label> <textarea name="Comment" class="comment-textarea u-full-width"></textarea> <input type="hidden" id="TargetElement" name="TargetElement" value="" /> <input type="hidden" name="Comment_PageId" value="@pageId" /> <input type="hidden" name="Comment_UserId" value="@currentUserId" /> <input type="submit" class="btn btn--primary btn--full dw-mod" value="Save changes"> {{formEnd}} </div> </script> <script id="CommentListTemplate" type="text/x-template"> <div id="Comment" class="comment" data-template="CommentTemplate"></div> </script> <script id="CommentTemplate" type="text/x-template"> <div> <div id="Comment_{{count}}" class="js-comment"><span class="comment__number">{{count}}</span> {{comment}}</div> </div> </script> } @* Templates for Typeahead *@ <script id="SearchGroupsTemplate" type="text/x-template"> <li class="dropdown__item" onclick="Search.UpdateGroupSelection(this)" data-group-id="{{id}}">{{name}}</li> </script> <script id="SearchContentTemplate" type="text/x-template"> <li class="dropdown__item dropdown__item--seperator"> <a href="{{link}}" class="js-typeahead-link u-color-inherit u-pull--left"> <div class="u-margin-right u-pull--left {{noimage}} u-hidden-xs u-hidden-xxs"><img src="/Admin/Public/GetImage.ashx?width=45&height=38&crop=1&Compression=75&image={{image}}" alt="{{name}}"></div> <div class="u-pull--left"> <div class="u-bold u-max-w220px u-truncate-text js-typeahead-name">{{name}}</div> <div>{{price}}</div> </div> </a> <div class="u-margin-left u-pull--right"> <button class="btn btn--primary btn--condensed u-no-margin dw-mod {{hideBuyOptions}} js-ignore-click-outside" onclick="Cart.AddToCart(event, '{{id}}', '1')"><i class="fa fa-shopping-cart js-ignore-click-outside"></i></button> <a href="{{link}}" class="btn btn--secondary btn--condensed u-no-margin dw-mod {{hideViewMore}} js-ignore-click-outside">@Translate("View","View")</a> </div> </li> </script> <script id="SearchMore" type="text/x-template"> <li class="dropdown__item dropdown__item--not-selectable"> <a href="/Default.aspx?ID=@productsPageId&Search={{searchParameter}}&GroupID={{groupId}}" class="btn btn--primary btn--full u-no-margin dw-mod js-typeahead-link"> @Translate("View all","View all") </a> </li> </script> <script id="SearchEmpty" type="text/x-template"> <li class="u-margin u-padding-left"> @Translate("Your search gave 0 results","Your search gave 0 results") </li> </script> @* Templates for the mini cart *@ <script id="MiniCartCounterContent" type="text/x-template"> <div class="js-mini-cart-counter-content"> {{numberofproducts}} </div> </script> <script id="MiniCartContent" type="text/x-template"> <div class="mini-cart-dropdown__inner {{isempty}}"> <h4 class="u-ta-center">@Translate("Shopping cart","Shopping cart")</h4> <div class="mini-cart-dropdown__body"> <table class="table mini-cart-table"> <thead> <tr> <td>&nbsp;</td> <td>@Translate("Product")</td> <td class="u-ta-right">@Translate("Qty","Qty")</td> <td class="u-ta-right">@Translate("Price","Price")</td> </tr> </thead> <tbody id="MiniCartOrderLines"></tbody> <tr> <td><i class="fa fa-credit-card"></i></td> <td>{{paymentmethod}}</td> <td colspan="2" class="u-ta-right">$0.00</td> </tr> <tr> <td><i class="fa fa-truck"></i></td> <td>{{shippingmethod}}</td> <td colspan="2" class="u-ta-right">${{shippingfee}}</td> </tr> <tr class="mini-cart-totals"> <td colspan="2">@Translate("Total","Total")</td> <td class="u-ta-right">{{numberofproducts}}</td> <td class="u-ta-right">{{totalprice}}</td> </tr> </table> </div> @if(loggedIn =="true") { <table class="table mini-cart-table"> <tr class="mini-cart-orderlines__footer"> <td colspan="2"><button type="button" class="btn btn--secondary u-pull--left u-no-margin dw-mod btn--sm" onclick="EmptyCart();">@Translate("Empty cart","Empty cart")</button></td> <td colspan="2" class="u-ta-right"><a href="/Default.aspx?ID=@cartPageId" class="btn btn--primary u-pull--right u-no-margin dw-mod btn--sm">@Translate("Proceed to checkout","Proceed to checkout")</a></td> </tr> </table> } else { <table class="table mini-cart-table"> <tr class="mini-cart-orderlines__footer"> <td colspan="2"><button type="button" class="btn btn--secondary u-pull--left u-no-margin dw-mod btn--sm" onclick="Cart.EmptyCart(event)">@Translate("Empty cart","Empty cart")</button></td> <td colspan="2" class="u-ta-right"><a onclick="showPopup()" class="btn btn--primary u-pull--right u-no-margin dw-mod btn--sm">@Translate("Login","Login")</a></td> </tr> </table> } </div> </script> <script id="MiniCartOrderline" type="text/x-template"> <tr class="{{isempty}}"> <td><a href="{{link}}" class="{{hideimage}}"><img src="/Admin/Public/GetImage.ashx?width=50&height=50&crop=5&Compression=75&image={{image}}" alt="{{name}}"></a></td> <td> <a href="{{link}}" class="mini-cart-orderlines__name">{{name}}</a> <a href="{{link}}" class="mini-cart-orderlines__name">{{variantname}}</a> </td> <td class="u-ta-right">{{quantity}}</td> <td class="u-ta-right">{{totalprice}}</td> </tr> </script> <script id="MiniCartOrderlineDiscount" type="text/x-template"> <tr class="table__row--no-border {{isempty}}"> <td>&nbsp;</td> <td><div class="mini-cart-orderlines__name">{{name}}</div></td> <td class="u-ta-right">&nbsp;</td> <td class="u-ta-right">{{totalprice}}</td> </tr> </script> <!-- Javascript --> <script src="/Files/Templates/Designs/Rapido/js/Buttons.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Facets.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Cart.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Search.js"></script> <script src="/Files/Templates/Designs/Rapido/js/DynamoConfig.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Dynamo.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Variants.js"></script> <script src="/Files/Templates/Designs/Rapido/js/ImageList.js"></script> <script src="/Files/Templates/Designs/Rapido/js/LoadMore.js"></script> <script src="/Files/Templates/Designs/Rapido/js/_RememberState.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Scroll.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Wireframe.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> <script> Wireframe.Init(@wireframeMode.ToLower(), "productList", @loggedIn); function showPopup() { var answer = confirm("Please login or register to place an order"); if( answer == true ){ window.location.replace("/default.aspx?id=@signInProfilePageId"); } } function EmptyCart() { var currentlink=window.location.href; console.log("Current Link "+currentlink); if(currentlink.includes("Purge=true")) { currentlink.split('?')[0]+"?cartcmd=emptycart"; } else { window.location.href=currentlink+"?cartcmd=emptycart"; } } // Pop Up function closeBurn(){ jQuery("#burn").hide(); } $(document).ready(function(){ var screenHeight = 0; screenHeight = screen.height; var burnPopup = $('#burnPopup'); if( screenHeight < 321 ){ $(burnPopup).css('height','70%'); } }); </script> <!-- Slick Carousel --> <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/js/select2.min.js"></script> <script src="/Files/Templates/Designs/Rapido/js/Custom.js"></script> </body> </html>