Error executing template "Designs/isabella/_parsed/espresso.parsed.cshtml"System.ArgumentNullException: Value cannot be null.Parameter name: sourceat System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)at Dynamicweb.Frontend.XmlNavigation.MakeXml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, Int32 selectedAreaId)at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, String name, String xsltPath, Int32 selectedAreaId, Boolean sitemapMode, NameValueCollection settings, NameValueCollection attributes, IncludeMode mode)at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)at Dynamicweb.Rendering.TemplateBase`1.RenderNavigation(Object settings)at CompiledRazorTemplates.Dynamic.RazorEngine_159ec5732e504e65a317f06e8808b0a7.Execute() in D:\dynamicweb.net\Solutions\isabella.espresso4.dk\files\Templates\Designs\isabella\_parsed\espresso.parsed.cshtml:line 997at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase 2 @using System.IO 3 @using System.Web 4 @using Co3.Espresso.Website.Services 5 @using Dynamicweb.Admin.dk.dynamicweb.templates 6 @using Dynamicweb.Ecommerce.Common 7 @using Dynamicweb.Frontend 8 @using System.Net 9 @using System.Net.Sockets 10 @{ 11 string globalAreaLang = PageView.Current().Area.CultureInfo.TwoLetterISOLanguageName; 12 string globalAreaName = string.Empty; 13 globalAreaName = PageView.Current().Area.Name; 14 string currencySeparatorDecimal = PageView.Current().Area.CultureInfo.NumberFormat.NumberDecimalSeparator; 15 string currencySeparatorInteger = PageView.Current().Area.CultureInfo.NumberFormat.NumberGroupSeparator; 16 string openGraphUrl = PageView.Current().SearchFriendlyUrl; 17 string openGraphImage = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Host + Espresso.OpenGraphImage; 18 bool isUserAuthenticated = PageView.Current().User != null; 19 string webfontsSnippetHtml = RenderSnippet( "webfonts" ).ToString().Trim(); 20 string customWebsite = PageView.Current().Area.Item["CustomWebsite"]?.ToString(); 21 22 //string hostName = Dns.GetHostName(); 23 //List< string > visitorIP = ( from ip in host.AddressList where ip.AddressFamily == AddressFamily.InterNetwork select ip.ToString() ).ToList(); 24 } 25 <!DOCTYPE html> 26 <html lang="@globalAreaLang" data-separator-integer="@currencySeparatorInteger" data-separator-decimal="@currencySeparatorDecimal" data-area="@globalAreaName"> 27 <head> 28 @GetValue( "CopyRightNotice" ) 29 <meta charset="utf-8"> 30 <meta content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui" name="viewport"> 31 <meta content="ie=edge" http-equiv="x-ua-compatible"> 32 <title>@GetValue("Title")</title> 33 @Espresso.CriticalCSS 34 @if ( webfontsSnippetHtml != "<!--@Snippet(webfonts)-->" ) 35 { 36 @webfontsSnippetHtml 37 } 38 <link href="/Files/Templates/Designs/isabella/_assets/_dist/css/default.css?v=1.03" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> 39 @Espresso.CriticalJS 40 @*<meta name="description" content="@Espresso.DynamicwebPage.Description">*@ 41 <link rel="shortcut icon" href="@Espresso.Area.Item.Favicon"> 42 @GetValue( "MetaTags" ) 43 @if ( Espresso.IsStagingUrl ) 44 { 45 <meta content="noindex,nofollow" name="robots"> 46 } 47 <meta property="og:url" content="@openGraphUrl"> 48 <meta property="og:title" content="@Espresso.OpenGraphTitle"> 49 <meta property="og:description" content="@Espresso.OpenGraphDescription"> 50 <meta property="og:image" content="@openGraphImage"> 51 <meta property="og:type" content="website"> 52 <meta name="facebook-domain-verification" content="8kymtn6m9jq0t3gqsk3y6dqbadc3qf"> 53 @if ( string.IsNullOrEmpty( Espresso.Area.Item.GoogleSiteVerification ) == false ) 54 { 55 <meta name="google-site-verification" content="@Espresso.Area.Item.GoogleSiteVerification"> 56 } 57 @{ 58 if ( 1 == 2 ) 59 { 60 @GetValue( "Stylesheets" ) 61 } 62 } 63 64 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase 65 @using System.Web; 66 @using System.IO 67 @using Dynamicweb.Content 68 @using Dynamicweb.Content.Items 69 @using Dynamicweb.Rendering 70 @using Dynamicweb.Frontend 71 72 <!-- Hreflang --> 73 @{ 74 @* Get areas from service *@ 75 Dynamicweb.Content.AreaService areaService = new Dynamicweb.Content.AreaService(); 76 IList<Area> areas = areaService.GetAreas(); 77 @* Get current page's relation-text from page-item *@ 78 string currentPageRelation = PageView.Current().Page.Item["PageRelation"] != null ? PageView.Current().Page.Item["PageRelation"].ToString() : string.Empty; 79 @* Frontpage must have 'frontpage' as relation-text *@ 80 81 string frontpageRelation = "i-frontpage"; 82 int REDIRECT_ID = 1; 83 if (PageView.Current().Area.Item["CustomWebsite"] != null && PageView.Current().Area.Item["CustomWebsite"].ToString() == "timeout-website") 84 { 85 frontpageRelation = "t-frontpage"; 86 REDIRECT_ID = 63; 87 } 88 string domainBase = areas.FirstOrDefault( a => a?.ID == REDIRECT_ID ).DomainLock; 89 List<dynamic> areaInfoList = new List< dynamic >(); 90 91 @* Iterate areas *@ 92 foreach ( Area area in areas ) 93 { 94 if ( area.Active == true && area.ID != REDIRECT_ID ) 95 { 96 97 @* Get current area's culture *@ 98 string culture = area.Culture; 99 string name = area.Name;100 @* Check for IsDefault Hreflang on area *@101 string isDefaultHrefLang = area.Item[ "IsDefaultHrefLang" ] != null ? area.Item[ "IsDefaultHrefLang" ].ToString() : string.Empty;102 @* Check for override-culture text on area *@103 string hreflangCultureOverride = area.Item[ "HreflangLanguageOverride" ] != null ? area.Item[ "HreflangLanguageOverride" ].ToString() : string.Empty;104105 string isWebsiteExcluded = area.Item["ExcludeFromHreflang"] != null ? area.Item["ExcludeFromHreflang"]?.ToString() : string.Empty;106 @* Get scheme and domain *@107 string scheme = GetGlobalValue("Global:Request.Scheme");108 string domain = domainBase;109 @* If we have a primary domain call pageservice and get pages *@110111 string productId = HttpContext.Current.Request[ "productid" ];112 if (string.IsNullOrEmpty(productId) == false)113 {114 currentPageRelation = PageView.Current().Page.Parent.Item["PageRelation"].ToString();115 }116117 if ( string.IsNullOrEmpty(currentPageRelation) == false && string.IsNullOrEmpty(domain) == false )118 {119120121 Dynamicweb.Content.PageService pageService = new Dynamicweb.Content.PageService();122 IEnumerable< Dynamicweb.Content.Page > pages = pageService.GetPagesByAreaID(area.ID);123 @* Iterate pages in area - check if is active + has item + has item-pagerelation + item-pagerelation equals current pagerelation *@124 foreach ( Dynamicweb.Content.Page page in pages.Where(p => p.Published && p.Item != null && p.Item[ "PageRelation" ] != null && p.Item[ "PageRelation" ].ToString().Equals(currentPageRelation)) )125 {126127 string url = string.Empty;128 if ( string.IsNullOrEmpty(productId) == false )129 {130 @* Build url to area product page *@131 string prodUrl = string.Format("Default.aspx?ID={0}&ProductId={1}", pageService.GetPagesByParentID(page.ID)?.FirstOrDefault()?.ID, productId);132 url = string.Format("{0}://{1}{2}", scheme, domain, SearchEngineFriendlyURLs.GetFriendlyUrl(prodUrl, area.EcomLanguageId));133 }134 else135 {136 @* Build url to area page *@137 url = string.Format("{0}://{1}{2}", scheme, domain, SearchEngineFriendlyURLs.GetFriendlyUrl(page.GetPageHrefValue()));138 }139 @* If our current page relation match frontpage - set link to domain only *@140 if ( currentPageRelation == frontpageRelation )141 {142 url = string.Format("{0}://{1}/{2}", scheme, domain, name);143 }144145 @* If our area item has checked in Default hreflang, we render x-default link *@146 if ( isDefaultHrefLang == "True" )147 {148 <link rel="alternate" hreflang="x-default" href="@url">149 }150 @* If we have a value in the area-item to overrule the culture, override the value here *@151 if ( string.IsNullOrEmpty(hreflangCultureOverride) == false )152 {153 culture = hreflangCultureOverride;154 }155 @* Render hreflang-link *@156 if ( isWebsiteExcluded != "True")157 {158 <link rel="alternate" hreflang="@culture.ToLower()" href="@url">159 }160161 }162 }163 }164 }165166 }167 <!-- End Hreflang -->168169 @if ( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" )170 {171 <!-- Google Tag Manager -->172 <script>173 (function(w, d, s, l, i) {174 w[l] = w[l] || [];175 w[l].push({176 'gtm.start':177 new Date().getTime(),178 event: 'gtm.js'179 });180 var f = d.getElementsByTagName(s)[0],181 j = d.createElement(s),182 dl = l != 'dataLayer' ? '&l=' + l : '';183 j.async = true;184 j.src =185 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;186 f.parentNode.insertBefore(j, f);187 })(window, document, 'script', 'dataLayer', '@Espresso.Area.GoogleTagManagerID');188 </script>189 <!-- End Google Tag Manager -->190 }191192 <meta name="p:domain_verify" content="f3602094bd5d9d79dad3925721bc1ae4">193 <meta name="msvalidate.01" content="DF1E6C310BF3052B5579FABC80E4444D">194195 </dynamic></head>196197 @*198 @{199 if ( Context.Currency.Code != Pageview.Area.EcomCurrencyId)200 {201 Context.Currency.Code = Pageview.Area.EcomCurrencyId;202 Dynamicweb.Context.Current.Response.Redirect(Dynamicweb.Context.Current.Request.RawUrl);203 }204 }205206 *@207208 <body class="@Espresso.Item.CustomClasses @customWebsite" data-cart-currencycode="@Context.Currency.Code" data-shop-currencycode="@Pageview.Area.EcomCurrencyId" data-userauthenticated="@isUserAuthenticated.ToString().ToLower()">209 @if ( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" )210 {211 <!-- Google Tag Manager (noscript) -->212 <noscript>213 <iframe src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" height="0" width="0" style="display: none; visibility: hidden"></iframe>214 </noscript>215 <!-- End Google Tag Manager (noscript) -->216 }217 @using Dynamicweb.Frontend218 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase219 @{220 Espresso.Canvas.ClassList.AddClasses( "js-e-canvas is-loading" );221 if ( Espresso.Item.CanvasFullscreen == "True" )222 {223 Espresso.Canvas.ClassList.AddClasses( "is-fullscreen" );224 }225226 }227228229230231 @using System.Globalization232 @using System.Security.Cryptography.X509Certificates233 @using Co3.Espresso.Base.Extensions234 @using Co3.Espresso.Website.Models.FrontEnd235 @using Co3.Espresso.Website.Services236 @using Co3.Isabella.Dw.Models.FrontEnd.Ecommerce237 @using Dynamicweb.Content238 @using Dynamicweb.Ecommerce.Products239 @using Dynamicweb.Frontend240 @using Dynamicweb.Rendering241 @using Dynamicweb.Rendering.Translation242 @using EcomContext = Dynamicweb.Ecommerce.Common.Context243 @using eProductService = Co3.Espresso.Website.Services.ProductService244245 @functions {246247 public string getCountryCodeFromArea(Area area)248 {249 RegionInfo regionInfo = new RegionInfo( area.CultureInfo.LCID );250 return regionInfo.TwoLetterISORegionName;251 }252253 public string getCheckoutSetup()254 {255 bool isB2bCheckout = PageView.Current().User != null;256 string checkoutStepSetup = isB2bCheckout ? "shipping,customer,approve" : "customer,approve";257 return checkoutStepSetup;258 }259260 public static string GetStandardCollapseToggleTextExpand()261 {262 return "Se mere";263 }264265 public static string GetStandardCollapseToggleTextCollapse()266 {267 return "Se mindre";268 }269270 public string getModelTypeLink()271 {272 bool isUserAuthenticated = PageView.Current().User != null;273 string eComCountryCode = PageView.Current().Area.Item[ "EcommerceCountryCode" ] != null ? PageView.Current().Area.Item[ "EcommerceCountryCode" ].ToString() : "";274 string returnValue = string.Empty;275276 if ( isUserAuthenticated == false )277 {278 if ( string.IsNullOrEmpty(eComCountryCode) == false)279 {280 {281 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLink_{0}.Value", eComCountryCode );282 }283 }284 else285 {286 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLink.Value";287 }288 }289 else290 {291 if ( string.IsNullOrEmpty(eComCountryCode) == false)292 {293 {294 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B_{0}.Value", eComCountryCode );295 }296 }297 else298 {299 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B.Value";300 }301 }302303 return returnValue;304 }305306 }307308 @helper ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null)309 {310 if ( string.IsNullOrEmpty( content ) == false )311 {312 ClassList headingClassList = new ClassList();313 headingClassList.AddClasses( "col-12" );314 ClassList contentClassList = new ClassList();315 contentClassList.AddClasses( "col-12" );316317 @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand )318319 if ( string.IsNullOrEmpty( heading ) == false )320 {321 <div class="@headingClassList">322 <h2>@heading</h2>323 </div>324 }325 <div class="@contentClassList">326 @content327 </div>328329 @sectionEnd()330 }331 }332333334 @helper ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null)335 {336 if ( string.IsNullOrEmpty( videoURL ) == false )337 {338 ClassList headingClassList = new ClassList();339 headingClassList.AddClasses( "col-12" );340 ClassList contentClassList = new ClassList();341 contentClassList.AddClasses( "col-12" );342343344 @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses )345346 if ( string.IsNullOrEmpty( heading ) == false )347 {348 <div class="@headingClassList">349 <h2>@heading</h2>350 </div>351 }352353 <div class="@contentClassList">354 <div class="embed-responsive embed-responsive-16by9 mb-2">355 <iframe class="embed-responsive-item" src="@videoURL" width="1080" height="608" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>356 </div>357 </div>358 @sectionEnd()359 }360 }361362 @helper ProductRelatedProducts(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null,363 IEnumerable< Product > productLoop = null)364 {365 if ( productLoop != null && productLoop.Any() == true )366 {367 ClassList headingClassList = new ClassList();368 headingClassList.AddClasses( "col-12" );369 ClassList contentClassList = new ClassList();370 contentClassList.AddClasses( "col-12" );371372 @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand )373374 if ( string.IsNullOrEmpty( heading ) == false )375 {376 <div class="@headingClassList">377 <h4 class="isabella-text-bullets-left mb-3">@heading</h4>378 </div>379 }380 <div class="@contentClassList">381 <div class="e-products mb-2">382 <div class="row">383 @{384 string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth( null ).ToResponsiveClasses();385 }386 @foreach ( Product product in productLoop.Where(p => p.Groups.Any(g => g.ShopId.Equals("SHOP1")) && (bool) p.GetCategoryValue( "ProductsGeneral", "PIMActive" ) != false && (bool) p.ShowInProductList == true && Co3.Isabella.Dw.Services.ProductService.Instance.IsProductAllowed(PageView.Current().User, p)) )387 {388 @ProductlistItem(product, productlistItemClassList)389 }390 </div>391 </div>392 </div>393394 @sectionEnd()395 }396 }397398399 @helper ProductlistItem(Product product, string productlistItemClassList = null, string isModelProductList = null)400 {401 Dynamicweb.Ecommerce.Products.ProductService dwProductService = new Dynamicweb.Ecommerce.Products.ProductService();402403 string productLink = eProductService.Instance.GetProductLink( product.GetDefaultGroupByShopId( product.DefaultShopId ).Id, product.Id, product.VariantId );404 productLink = SearchEngineFriendlyURLs.GetFriendlyUrl( productLink );405406 string productlistDetailImage = product.Details.FirstOrDefault( pd => pd.Type == 0 && pd.GroupId == 4 )?.Value;407408 if ( product != null )409 {410 dynamic productData = new411 {412 id = product.Id,413 url = productLink,414 number = product.Number,415 name = product.Name,416 imageDefault = Co3.Isabella.Dw.Services.ImageService.Instance.GetImageURL( Dynamicweb.Ecommerce.Services.Details.GetDefaultDetail( product.Id, product.VariantId,417 EcomContext.LanguageID )?.Value, 400, 225, 0, 75, "jpg", "/Files/Templates/Designs/isabella/_assets/img/NoImage.gif" ),418 price = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Format(),419 priceClean = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Price,420 productIntroText = product.GetCategoryValue( "ProductsGeneral", "ProductIntroText" )?.ToString(),421 news = product.GetCategoryValue( "ProductsGeneral", "News" )?.ToString(),422 productType = product.GetCategoryValue( "ProductsGeneral", "ProductType" )?.ToString(),423 isModelProductList = isModelProductList,424 productlistDetailImage = Co3.Isabella.Dw.Services.ImageService.Instance.GetImageURL( productlistDetailImage ),425 };426427 <div class="@productlistItemClassList">428 <div class="border-1 card mb-6">429 <a href="@productData.url">430 @if ( productData.isModelProductList == "True" )431 {432 <img src="@productData.productlistDetailImage" alt="@productData.name @productData.productType" class="col-12 p-0">433 }434 else435 {436 <img src="@productData.imageDefault" alt="@productData.name @productData.productType" class="col-12 p-0">437 }438 @if ( productData.news == "True" )439 {440 <div class="isabella-product-item-news">441 @Translation.GetTranslation( "Ecom Product - News Badge - Text" )442 </div>443 }444 </a>445 <div class="card-body p-1 p-lg-3">446 <h4 class="e-products-item-name mb-0">447 <a href="@productData.url">448 @productData.name449 </a>450 </h4>451 @if ( string.IsNullOrEmpty( productData.productIntroText ) == false )452 {453 @productData.productIntroText454 }455 @* <p class="e-products-item-text mt-2 mb-0 @Co3.Isabella.Dw.Services.ProductService.Instance.GetNoBuyB2CandB2B()" style="display: flex">456 <small class="e-products-item-price small">457 <a href="@productData.url" class="text-dark" style="text-decoration: none">458 @productData.price459 </a>460 </small>461 <a href="@productData.url" style="left: 0" class="isabella-arrow arrow-primary-small ml-auto"></a>462 </p>463 *@464 </div>465 </div>466 </div>467 }468 }469470471 @helper sectionStart(string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false, string sectionId = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null)472 {473 sectionId = string.IsNullOrEmpty( sectionId ) ? Guid.NewGuid().ToString( "N" ) : sectionId;474 ClassList sectionClassList = new ClassList();475 sectionClassList.AddClasses( sectionClasses );476 ClassList contentClassList;477478 if ( contentClasses == null )479 {480 contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item );481 }482 else483 {484 contentClassList = new ClassList();485 contentClassList.AddClasses( contentClasses );486 }487488 // TODO: Split collapse logic into separate helper function.489 string collapseId = Guid.NewGuid().ToString( "N" );490 ClassList collapseToggleClassList = new ClassList();491 if ( sectionCollapse )492 {493 sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" );494 collapseToggleClassList.AddClasses( contentClasses );495 collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" );496 contentClassList.AddClasses( "p-section-collapse-content collapse is-md" );497 }498499 @:<section class="@sectionClassList" id="@sectionId">500 @:<div class="container-fluid">501 @:<div class="row">502503 // TODO: Split collapse logic into separate helper function.504 if ( sectionCollapse )505 {506 <div class="@collapseToggleClassList" data-toggle="collapse" data-target="#@collapseId">507 <button class="btn btn-primary p-section-collapse-toggle-btn" type="button">508 <i class="material-icons p-section-collapse-toggle-icon">keyboard_arrow_down</i>509 </button>510 <small class="h4 p-section-collapse-toggle-text" data-expand-text="@( string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand )" data-collapse-text="@( string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse )"></small>511 </div>512 }513514 @:<div class="@contentClassList" id="@collapseId">515 @:<div class="row">516 }517518 @helper sectionEnd()519 {520 @:</div>521 @:</div>522 @:</div>523 @:</div>524 @:</section>525 }526527528529530531 <div class="e-loading-overlay e-page-loading-overlay is-loading js-e-page-loading-overlay">532 <div class="e-loading-spinner"></div>533 </div>534535 @* https://medium.com/clio-calliope/making-google-fonts-faster-aadf3c02a36d *@536 @SnippetStart("webfonts")537 <link crossorigin="" href="https://fonts.gstatic.com/" rel="preconnect">538 <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700|Material+Icons" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style">539 @SnippetEnd("webfonts")540541542543 <div class="@Espresso.Canvas.ClassList">544 @using Dynamicweb.Frontend545 @{546 ClassList headerClassList = new ClassList();547 headerClassList.AddClasses( "e-header js-e-header is-sticky" );548 if ( Espresso.Item.HeaderTransparent == "True" )549 {550 headerClassList.AddClasses( "is-transparent" );551 }552553 ClassList logoClassList = new ClassList();554 logoClassList.AddClasses( "e-logo" );555556 string backButtonLink = Espresso.Item.BackButtonLink;557 ClassList backButtonClassList = new ClassList();558 ClassList backButtonIconClassList = new ClassList();559 if ( Espresso.Item.BackButton == "True" )560 {561 backButtonClassList.AddClasses( "btn btn-sm btn-secondary my-1 align-self-center" );562 if ( backButtonLink == "" || backButtonLink == "/" )563 {564 backButtonLink = "/";565 backButtonClassList.AddClasses( "js-e-back-link" );566 }567 backButtonIconClassList.AddClasses( "material-icons material-icons-large" );568 if ( Espresso.Item.BackButtonPosition == "right" )569 {570 backButtonClassList.AddClasses( "mr-0 ml-auto order-last" );571 logoClassList.AddClasses( "order-first" );572 }573 else574 {575 backButtonClassList.AddClasses( "order-first" );576 logoClassList.AddClasses( "mr-0 ml-auto order-last" );577 }578 if ( Espresso.Item.BackButtonIcon == "arrow_back" )579 {580 backButtonClassList.AddClasses( "arrow-left" );581 backButtonIconClassList.AddClasses( "d-none" );582 }583 else if ( Espresso.Item.BackButtonIcon == "arrow_forward" )584 {585 backButtonClassList.AddClasses( "arrow-right" );586 backButtonIconClassList.AddClasses( "d-none" );587 }588 }589590 string logoPrimary = Espresso.Area.Item.LogoPrimary;591 string logoSecondary = Espresso.Area.Item.LogoSecondary;592 if ( string.IsNullOrEmpty( logoSecondary ) == true )593 {594 logoSecondary = logoPrimary;595 }596 string tagline = Espresso.Area.Item.Tagline;597 Dictionary< string, string > navigationHtml = new Dictionary< string, string >598 {599 {600 "global", RenderNavigation( new601 {602 id = "dwnav-global",603 template = "global.xslt",604 startlevel = 1,605 endlevel = 8,606 expandmode = "all"607 } )608 },609 {610 "utilities-primary", RenderNavigation( new611 {612 id = "dwnav-utilities-primary",613 template = "utilities.xslt",614 startlevel = 4,615 endlevel = 5,616 expandmode = "all",617 parenttag = "utilities-primary"618 } )619 },620 {621 "utilities-secondary", RenderNavigation( new622 {623 id = "dwnav-utilities-secondary",624 template = "utilities.xslt",625 startlevel = 4,626 endlevel = 4,627 expandmode = "all",628 parenttag = "utilities-secondary"629 } )630 },631 {632 "hamburger-header", RenderNavigation( new633 {634 id = "dwnav-hamburger-header",635 template = "utilities.xslt",636 startlevel = 4,637 endlevel = 4,638 expandmode = "all",639 parenttag = "hamburger-header"640 } )641 },642 {643 "hamburger-aside", RenderNavigation( new644 {645 id = "dwnav-hamburger-aside",646 template = "utilities.xslt",647 startlevel = 4,648 endlevel = 4,649 expandmode = "all",650 parenttag = "hamburger-aside"651 } )652 }653 };654655 }656 @if ( Espresso.Item.HeaderHide != "True" )657 {658 <header class="@headerClassList" data-autohide="true">659660 <div class="e-header-hamburger">661 @sectionStart( "e-header-section e-section", "col-12" )662 <div class="col-12 e-header-section-content">663 <div class="@logoClassList">664 <a class="e-logo-link" href="/@globalAreaName/">665 <img src="@logoPrimary" class="e-logo-img e-logo-img-primary" alt="@Espresso.Area.Item.CompanyName">666 <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName">667 @if ( string.IsNullOrEmpty( tagline ) == false )668 {669 <p class="e-logo-tagline">@tagline</p>670 }671 </a>672 </div>673 @if ( Espresso.Item.NavigationHide != "True" )674 {675 <section class="e-nav-hamburger-header">676 <ul class="nav">677 @navigationHtml[ "hamburger-header" ]678 @* TODO: Move to xslt *@679 <li class="e-nav-item-hamburger-open nav-item">680 <a class="nav-link" data-target=".modal.e-nav" data-toggle="modal" href="#">681 <i class="e-nav-pageicon material-icons">menu</i>682 <span class="e-nav-pagename">@Translate( "Header - Hamburger menu open - Button", "Menu" )</span>683 </a>684 </li>685 </ul>686 </section>687 }688 @if ( Espresso.Item.BackButton == "True" )689 {690 <a class="@backButtonClassList" href="@backButtonLink">691 @if ( Espresso.Item.BackButtonIcon != "" )692 {693 <i class="@backButtonIconClassList">@Espresso.Item.BackButtonIcon</i>694 }695 @Espresso.Item.BackButtonText696 </a>697 }698 </div>699 @sectionEnd()700 </div>701 <div class="e-nav js-e-nav modal p-0" data-backdrop="false">702 <div class="e-nav-container navbar flex-column d-flex">703704 @sectionStart( "e-header-section e-header-section-primary e-section order-xl-2", "col-12" )705 <div class="col-12 e-header-section-content">706 <div class="@logoClassList">707 <a class="e-logo-link" href="/@globalAreaName/">708 <span class="d-none d-xl-inline">@GetSvgFileData(@logoPrimary)</span>709 <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName">710 @if ( string.IsNullOrEmpty( tagline ) == false )711 {712 <p class="e-logo-tagline">@tagline</p>713 }714 </a>715 </div>716717 @if ( Espresso.Item.NavigationHide != "True" )718 {719 <nav class="e-nav-global js-e-nav-global">720 <ul class="nav">721 @navigationHtml[ "global" ]722 </ul>723 </nav>724725 <div class="e-nav-item-hamburger-close">726 <a class="nav-link" data-target=".modal.e-nav" data-toggle="modal" href="#">727 <i class="e-nav-pageicon material-icons">close</i>728 <span class="e-nav-pagename">@Translate( "Header - Hamburger menu close - Button", "Close" )</span>729 </a>730 </div>731732 if ( string.IsNullOrEmpty( navigationHtml[ "utilities-primary" ] ) == false )733 {734 @:</div>735 @sectionEnd()736 @sectionStart( "e-header-section e-header-section-secondary e-section order-xl-1", "col-12" )737 @:<div class="col-12 e-header-section-content">738739 <nav class="e-nav-utilities-primary js-e-nav-utilities-primary">740 <ul class="nav">741 @navigationHtml[ "utilities-primary" ]742 </ul>743 </nav>744 }745746 if ( string.IsNullOrEmpty( navigationHtml[ "utilities-secondary" ] ) == false )747 {748 <nav class="e-nav-utilities-secondary">749 <ul class="nav">750 @navigationHtml[ "utilities-secondary" ]751 </ul>752 </nav>753 }754 if ( string.IsNullOrEmpty( navigationHtml[ "hamburger-aside" ] ) == false )755 {756 <nav class="e-nav-hamburger-aside">757 <ul class="nav">758 @navigationHtml[ "hamburger-aside" ]759 </ul>760 </nav>761 }762 }763 @if ( Espresso.Item.BackButton == "True" )764 {765 <a class="@backButtonClassList" href="@backButtonLink">766 @if ( Espresso.Item.BackButtonIcon != "" )767 {768 <i class="@backButtonIconClassList">@Espresso.Item.BackButtonIcon</i>769 }770 @Espresso.Item.BackButtonText771 </a>772 }773 </div>774 @sectionEnd()775776 </div>777 </div>778779 </header>780 }781782 @helper GetSvgFileData(string svgfile)783 {784 string rtnValue = svgfile;785 if (!string.IsNullOrEmpty(svgfile))786 {787 string FilePath = svgfile;788789 if (System.IO.Path.GetExtension(FilePath) == ".svg")790 {791 System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();792 settings.DtdProcessing = System.Xml.DtdProcessing.Ignore;793 string svgFilePath = System.Web.HttpContext.Current.Server.MapPath(FilePath) ?? string.Empty;794 if (System.IO.File.Exists(svgFilePath))795 {796 using (System.IO.StreamReader sr = new System.IO.StreamReader(svgFilePath))797 {798 using (System.Xml.XmlReader xr = System.Xml.XmlReader.Create(sr, settings))799 {800 bool done = false;801 while (xr.Read() && !done)802 {803 if (xr.NodeType == System.Xml.XmlNodeType.Element && xr.Name == "svg")804 {805 rtnValue = xr.ReadOuterXml();806 done = true;807 }808 }809 }810 }811 }812 }813 }814 @rtnValue;815 }816817818 @*General - Website Settings*@819820 @if ( Espresso.Item.Notificationbar != "True" )821 {822 if ( !string.IsNullOrEmpty(Espresso.Area.Item.NotificationbarPageId) )823 {824 <section class="e-section">825 <div class="container-fluid">826 <div class="row">827 <div class="col-12">828 <div class="row">829 @RenderPageContent(int.Parse(Espresso.Area.Item.NotificationbarPageId))830 </div>831 </div>832 </div>833 </div>834 </section>835 }836 }837838 @*Specific - Page*@839840 @if ( !string.IsNullOrEmpty(Espresso.Item.NotificationbarPageId) )841 {842 <section class="e-section">843 <div class="container-fluid">844 <div class="row">845 <div class="col-12">846 <div class="row">847 @RenderPageContent(int.Parse(Espresso.Item.NotificationbarPageId))848 </div>849 </div>850 </div>851 </div>852 </section>853 }854 @using Dynamicweb.Frontend855 @using Dynamicweb.Security.UserManagement856 @{857 User currentUser = PageView.Current().User;858 if ( currentUser != null )859 {860 User currentSecondaryUser = currentUser.CurrentSecondaryUser;861 if ( currentSecondaryUser != null )862 {863 @sectionStart( "e-section bg-warning e-text-dark js-e-section is-sticky zi-fixed py-1", "col-12 small" )864 <div class="align-self-center col-12 col-lg-9 col-md-8">865 <p class="line-height-sm mb-1 mb-md-0 text-center text-md-left">866 <i class="material-icons material-icons-2x">supervisor_account</i>&nbsp;@Translate( "Extranet Impersonation - Active impersonation message - Text", "You are currently impersonating this user:" ) <strong>@currentUser.Name &mdash; @currentUser.Company </strong>867 </p>868 </div>869 <div class="align-self-center col-12 col-lg-3 col-md-4">870 <form class="mb-0 small text-center text-md-right" method="post" action="@Espresso.Area.Item.ExtranetImpersonationPage">871 <button class="btn btn-primary" name="DwExtranetRemoveSecondaryUser" type="submit">@Translate( "Extranet Impersonation - Stop impersonation - Button", "Stop impersonation" )</button>872 </form>873 </div>874 @sectionEnd()875 }876 }877 }878879880 <main id="dwcontentmain" class="e-content js-e-content @Espresso.ContentArea.ClassList">881 @using Dynamicweb.Content;882 @using Dynamicweb.Extensibility;883 @{884 string eBreadcrumbClasslist = "e-breadcrumb js-e-breadcrumb d-none d-lg-block";885 if ( Espresso.Item.Breadcrumb != "auto" && Espresso.Item.Breadcrumb != "none" && String.IsNullOrEmpty( Espresso.Item.Breadcrumb ) == false )886 {887 eBreadcrumbClasslist += string.Format( " e-breadcrumb-{0}", Espresso.Item.Breadcrumb );888 }889 string navigationHtmlBreadcrumb = RenderNavigation( new890 {891 id = "dwnav-breadcrumb",892 template = "breadcrumb.xslt",893 startlevel = 1,894 endlevel = 10,895 expandmode = "pathonly",896 sitemapmode = true897 } );898 }899900 @if ( string.IsNullOrEmpty( navigationHtmlBreadcrumb ) == false && Espresso.Item.Breadcrumb != "none" && string.IsNullOrEmpty( Espresso.Item.Breadcrumb ) == false )901 {902 <section class="e-section @eBreadcrumbClasslist">903 <div class="container-fluid">904 <div class="row">905 <div class="col-12">906 <div class="row">907908 <div class="col-12">909 <nav class="e-breadcrumb-container">910 <ol class="breadcrumb nav text-muted" itemscope="" itemtype="https://schema.org/BreadcrumbList">911 <li class="breadcrumb-item m-0 p-0">912 <a class="arrow-left breadcrumb-back-link js-e-back-link px-0" href="/">@Translate( "Breadcrumb - Back link", "Back" )</a>913 <span class="breadcrumb-prefix-text">914 @Translate( "Breadcrumb - Prefix - Text", "You are here:" )915 </span>916 <a href="/">917 @ServiceLocator.Current.GetPageService().GetFirstPageForArea( GetInteger( "DwAreaID" ) ).MenuText918 </a>919 </li>920 @navigationHtmlBreadcrumb921 </ol>922 </nav>923 </div>924925 </div>926 </div>927 </div>928 </div>929 </section>930 }931932933 <article class="e-content-article">934 @{935 int NavigationLocalHorizontalParentPageId = 0;936 if ( !string.IsNullOrEmpty( Espresso.Item.NavigationLocalParentPage ) )937 {938 int.TryParse( Espresso.Item.NavigationLocalParentPage, out NavigationLocalHorizontalParentPageId );939 }940 if ( NavigationLocalHorizontalParentPageId == 0 )941 {942 NavigationLocalHorizontalParentPageId = PageView.Current().Page.ID;943 if ( !Dynamicweb.Services.Pages.GetPagesByParentID( NavigationLocalHorizontalParentPageId ).Any() )944 {945 NavigationLocalHorizontalParentPageId = PageView.Current().Page.ParentPageId;946 }947 }948 string NavigationLocalHorizontalClassList = "e-nav-local e-nav-local-horizontal js-e-nav-local-horizontal";949 string NavigationLocalHorizontalContainerClassList = "e-nav-local-container";950 string NavigationLocalHorizontalTemplate = "local-" + Espresso.Item.NavigationLocalLayout + ".xslt";951 if ( string.IsNullOrEmpty( Espresso.Item.NavigationLocalTemplate ) == false && Path.GetExtension( Espresso.Item.NavigationLocalTemplate ) == ".xslt" )952 {953 NavigationLocalHorizontalTemplate = Path.GetFileName( Espresso.Item.NavigationLocalTemplate );954 }955956 if ( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "horizontal" )957 {958 NavigationLocalHorizontalClassList += " " + Espresso.Item.NavigationLocalCustomClasses;959 if ( Espresso.Item.NavigationLocalSticky == "True" )960 {961 NavigationLocalHorizontalClassList += " is-sticky";962 }963 if ( Espresso.Item.NavigationLocalAbsolute == "True" )964 {965 NavigationLocalHorizontalClassList += " is-absolute";966 }967 else968 {969 if ( Espresso.Item.NavigationLocalMarginTop != "0" && Espresso.Item.NavigationLocalMarginTop != "" )970 {971 NavigationLocalHorizontalClassList += " mt-" + Espresso.Item.NavigationLocalMarginTop;972 }973 if ( Espresso.Item.NavigationLocalMarginBottom != "0" && Espresso.Item.NavigationLocalMarginBottom != "" )974 {975 NavigationLocalHorizontalClassList += " mb-" + Espresso.Item.NavigationLocalMarginBottom;976 }977 }978 }979 }980 @if ( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "horizontal" )981 {982 <section class="e-section @NavigationLocalHorizontalClassList">983 <div class="container-fluid">984 <div class="row">985 <div class="col-12">986 <div class="row">987988 <div class="col-12">989 <nav id="dwnav-local-horizontal-@NavigationLocalHorizontalParentPageId" class="@NavigationLocalHorizontalContainerClassList">990 <ul class="justify-content-start nav">991 @if ( Espresso.Item.NavigationLocalHeading != "" )992 {993 <li class="e-nav-local-heading">994 <h2>@Espresso.Item.NavigationLocalHeading</h2>995 </li>996 }997 @RenderNavigation( new998 {999 id = "dwnav-local-horizontal-" + NavigationLocalHorizontalParentPageId,1000 parentid = NavigationLocalHorizontalParentPageId,1001 template = NavigationLocalHorizontalTemplate,1002 startlevel = Espresso.Item.NavigationLocalLevelStart,1003 endlevel = Espresso.Item.NavigationLocalLevelEnd,1004 expandmode = Espresso.Item.NavigationLocalPageTreeExpand == "True" ? "all" : "path"1005 } )1006 </ul>1007 </nav>1008 </div>10091010 </div>1011 </div>1012 </div>1013 </div>1014 </section>1015 }101610171018 @{1019 int NavigationLocalVerticalParentPageId = 0;1020 if ( !string.IsNullOrEmpty( Espresso.Item.NavigationLocalParentPage ) )1021 {1022 int.TryParse( Espresso.Item.NavigationLocalParentPage, out NavigationLocalVerticalParentPageId );1023 }1024 if ( NavigationLocalVerticalParentPageId == 0 )1025 {1026 NavigationLocalVerticalParentPageId = PageView.Current().Page.ID;1027 if ( !Dynamicweb.Services.Pages.GetPagesByParentID( NavigationLocalVerticalParentPageId ).Any() )1028 {1029 NavigationLocalVerticalParentPageId = PageView.Current().Page.ParentPageId;1030 }1031 }10321033 string NavigationLocalVerticalClassList = "e-nav-local e-nav-local-vertical js-e-nav-local-vertical";1034 string NavigationLocalVerticalContainerClassList = "e-nav-local-container";1035 string NavigationLocalVerticalTemplate = "local-" + Espresso.Item.NavigationLocalLayout + ".xslt";1036 if ( string.IsNullOrEmpty( Espresso.Item.NavigationLocalTemplate ) == false && Path.GetExtension( Espresso.Item.NavigationLocalTemplate ) == ".xslt" )1037 {1038 NavigationLocalVerticalTemplate = Path.GetFileName( Espresso.Item.NavigationLocalTemplate );1039 }10401041 if ( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "vertical" )1042 {1043 NavigationLocalVerticalClassList += " " + Espresso.Item.NavigationLocalCustomClasses;10441045 if ( Espresso.Item.NavigationLocalMarginTop != "0" && Espresso.Item.NavigationLocalMarginTop != "" )1046 {1047 NavigationLocalVerticalClassList += " mt-" + Espresso.Item.NavigationLocalMarginTop;1048 }1049 if ( Espresso.Item.NavigationLocalMarginBottom != "0" && Espresso.Item.NavigationLocalMarginBottom != "" )1050 {1051 NavigationLocalVerticalClassList += " mb-" + Espresso.Item.NavigationLocalMarginBottom;1052 }10531054 if ( Espresso.Item.NavigationLocalSticky == "True" )1055 {1056 NavigationLocalVerticalClassList += " is-sticky";1057 }10581059 if ( Espresso.Item.NavigationLocalAbsolute == "True" )1060 {1061 NavigationLocalVerticalClassList += " is-absolute";1062 }1063 else1064 {1065 Espresso.ContentSection.ClassList.Clear();1066 Espresso.ContentSection.ClassList.AddClasses( "wtf col-12 col-lg-9 ml-auto" );1067 }1068 }1069 }10701071 @if ( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "vertical" )1072 {1073 <section class="e-section @NavigationLocalVerticalClassList">1074 <div class="container-fluid">1075 <div class="row">1076 <div class="col-12">1077 <div class="row">10781079 <div class="col-3">1080 <nav id="dwnav-local-@NavigationLocalVerticalParentPageId" class="@NavigationLocalVerticalContainerClassList">1081 <ul class="flex-column nav">1082 @if ( Espresso.Item.NavigationLocalHeading != "" )1083 {1084 <li class="e-nav-local-heading">1085 <h2>@Espresso.Item.NavigationLocalHeading</h2>1086 </li>1087 }1088 @RenderNavigation( new1089 {1090 id = "dwnav-local-" + NavigationLocalVerticalParentPageId,1091 parentid = NavigationLocalVerticalParentPageId,1092 template = NavigationLocalVerticalTemplate,1093 startlevel = Espresso.Item.NavigationLocalLevelStart,1094 endlevel = Espresso.Item.NavigationLocalLevelEnd,1095 expandmode = Espresso.Item.NavigationLocalPageTreeExpand == "True" ? "all" : "path",1096 } )1097 </ul>1098 </nav>1099 </div>11001101 </div>1102 </div>1103 </div>1104 </div>1105 </section>1106 }110711081109 @sectionStart()1110 @GetValue("DwContent(dwcontentmain)")1111 @sectionEnd()1112 </article>1113 </main>1114 @{1115 string FooterContentClassList = "e-footer-content e-section";1116 }1117 @if ( Espresso.Item.FooterHide != "True" )1118 {1119 <footer class="e-footer">1120 <article class="e-footer-wrapper">1121 <section class="@FooterContentClassList">1122 <div class="container-fluid">1123 <div class="row">1124 @if ( !string.IsNullOrEmpty( Espresso.Area.Item.FooterPageId ) )1125 {1126 @RenderPageContent( int.Parse( Espresso.Area.Item.FooterPageId ) )1127 }1128 </div>1129 </div>1130 </section>1131 <section class="e-footer-copyright e-section">1132 <div class="container-fluid">1133 <div class="align-items-baseline row">1134 <div class="col-12 col-lg-5">1135 @if (string.IsNullOrEmpty(Espresso.Area.Item.Adresse) == false)1136 {1137 @Espresso.Area.Item.Adresse1138 }1139 </div>1140 <div class="col-12 col-lg-4">1141 @if ( string.IsNullOrEmpty( GetString( "DwNavigation(dwnavutilitiessecondaryfooter)" ) ) == false )1142 {1143 <div class="col-12 p-0">1144 <aside class="e-nav-utilities-secondary">1145 <ul class="nav nav-inline">1146 @GetValue("DwNavigation(dwnavutilitiessecondaryfooter)")1147 </ul>1148 </aside>1149 </div>1150 }1151 </div>1152 <div class="col-12 col-lg-3 text-lg-right">1153 <p class="e-copyright nav-link">1154 @*@Translate( "Footer - Copyright - Text", "Copyright &copy;" )&nbsp;*@1155 @*@DateTime.Now.Year.ToString()&nbsp;*@1156 @Translate( "Footer - All Rights Reserved - Text", "All rights reserved." )&nbsp;1157 @Espresso.Area.Item.CompanyName.&nbsp;1158 </p>1159 </div>1160 </div>1161 </div>1162 </section>1163 </article>1164 </footer>1165 }1166 @if( string.IsNullOrEmpty( GetString("DwContent(dwcontentcta)") ) == false ) {1167 <aside id="dwcontentcta" class="js-e-cta e-cta is-hidden fixed-top">1168 <section class="e-section">1169 <div class="container-fluid">1170 <div class="row no-gutters">1171 <div class="col-12">1172 <div class="row no-gutters justify-content-center align-items-center">1173 @GetValue("DwContent(dwcontentcta)")1174 @* <p><a class="d-flex align-items-center justify-content-center justify-content-lg-left text-black text-decoration-none small" href="/bliv-ringet-op"><i class="material-icons material-icons-large text-primary mr-1">phone</i>Bliv ringet op</a></p> *@1175 </div>1176 </div>1177 </div>1178 </div>1179 </section>1180 </aside>1181 }11821183 @using Dynamicweb.Frontend11841185 @{1186 string cartUrl = "/cart";11871188 if ( PageView.Current().Area.Name.Contains( "webshop" ) == false )1189 {1190 cartUrl = string.Format("{0}{1}", PageView.Current().Area.Name, cartUrl);1191 }1192 else1193 {1194 cartUrl = string.Format("{0}/shop{1}", PageView.Current().Area.Name.ToLower(), cartUrl);1195 }1196 }1197 <div class="e-cart-msg modal fade small" id="js-e-cart-msg" data-backdrop="false">1198 <div class="modal-dialog e-cart-msg-modal-dialog">1199 <div class="modal-content">1200 <div class="modal-header">1201 <h4 class="js-e-cart-msg-heading modal-title">1202 <i class="material-icons material-icons-large text-success">check_circle</i>1203 <span>@Translate( "eCom Cart - Product Added - Heading", "Added to your cart" )</span>1204 </h4>1205 <button class="close" data-dismiss="modal" type="button">1206 <i class="material-icons">close</i>1207 </button>1208 </div>1209 <div class="modal-body">1210 <div class="js-e-cart-msg-content">1211 <script id="js-e-handlebars-tmpl-cart-msg-lastadded" type="text/x-handlebars-template">1212 <div class="row">1213 {{#each cart.lastAdded}}1214 <div class="col-12 py-1">1215 <div class="row">1216 <div class="col-4">1217 <a class="" href="{{url}}">1218 <img alt="" class="img-fluid" src="{{imageDefault}}">1219 </a>1220 </div>1221 <div class="col-8">1222 <h3 class="mb-0">1223 <a href="{{url}}" class="text-decoration-none">{{name}}</a>1224 </h3>1225 <p class="mb-0">1226 <a href="{{url}}" class="text-auto text-decoration-none">1227 {{{price}}}<br>1228 {{{stock.text}}}<br>1229 {{{stock.delivery}}}<br>1230 </a>1231 </p>1232 </div>1233 </div>1234 </div>1235 {{/each}}1236 </div>1237 </script>1238 </div>1239 </div>1240 <div class="bg-info e-cart-msg-footer modal-footer border-top-0">1241 <a class="btn btn-secondary mr-1" href="/" data-dismiss="modal">@Translate( "eCom Cart - Continue Shopping - Button", "Continue shopping" )</a>1242 <a class="arrow-right btn btn-primary" href="@cartUrl">@Translate( "eCom Cart - Checkout - Button", "Checkout" )</a>1243 </div>1244 </div>1245 </div>1246 </div>12471248 </div>12491250 @using Co3.Espresso.Base.Extensions1251 @using Co3.Espresso.Website.Services1252 @using Dynamicweb.Frontend12531254 <div class="modal fade e-search js-e-search js-e-search-modal modal-fullscreen" data-backdrop="false" data-keyboard="true" data-focus="true">1255 <div class="modal-dialog">1256 <div class="modal-content">125712581259 <div class="modal-header">1260 <a class="btn btn-sm btn-secondary js-e-back-link arrow-left" href="/" data-dismiss="modal">1261 @Translate("Search - Back button", "Back")1262 </a>1263 <div class="e-logo">1264 <a href="/" class="e-logo-link my-0">1265 <img src="@logoPrimary" class="e-logo-img e-logo-img-primary" alt="@Espresso.Area.Item.CompanyName">1266 <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName">1267 </a>1268 </div>1269 </div>12701271 <div class="modal-body">12721273 <div class="container-fluid">12741275 <div class="e-search-form-container">1276 <div class="row justify-content-center">1277 <div class="col-12 col-md-10 col-lg-8 col-xl-6 mt-3">1278 <form action="" class="e-search-form js-e-search-form">1279 <div class="js-e-search-input-group e-search-input-group is-empty">1280 <label class="e-search-label" for="e-search-input"><i class="material-icons">search</i></label>1281 @{ string Translate_Search_InputText = Translate("Search - Input Placeholder - Text", "Search"); }1282 <input type="text" class="js-e-search-input e-search-input form-control-plaintext border-0" name="q" id="e-search-input" placeholder="@Translate_Search_InputText">1283 <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span>1284 <button class="e-search-submit btn btn-primary" type="submit"><i class="material-icons">search</i></button>1285 </div>1286 </form>1287 </div>1288 </div>1289 </div>12901291 <div class="js-e-search-result-container e-search-result-container">12921293 <div class="row justify-content-center">1294 <div class="col-12 col-md-10 col-lg-8 col-xl-6">1295 <p class="e-search-result-info small text-muted mt-1 mb-3"><span class="js-e-search-result-count">0</span> @Translate("Search - Result Count - Text", "results")</p>1296 </div>1297 </div>12981299 <div class="row justify-content-center">1300 <div class="col-12 col-xl-10">1301 <div class="js-e-search-result-products e-search-result-products is-empty mb-4">1302 @{string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth(null).ToResponsiveClasses();}1303 <script id="js-e-handlebars-tmpl-search-result-item-product" type="text/x-handlebars-template">1304 <div class="e-products">1305 <div class="row justify-content-center">1306 {{#each products}}1307 <div class="@productlistItemClassList">1308 <div class="card border-1 mb-6">1309 <a href="{{url}}">1310 @if (Espresso.Item.ModelProductlist == "True")1311 {1312 <img src="{{productlistDetailImage}}" alt="{{name}}" class="col-12 p-0">1313 }1314 else1315 {1316 <img src="{{imageDefault}}" alt="{{name}}" class="col-12 p-0">1317 }1318 {{#if news}}1319 <div class="isabella-product-item-news">1320 @Translate("Ecom Product - News Badge - Text", "Nyhed")1321 </div>1322 {{/if}}1323 </a>1324 <div class="card-body p-1 p-lg-3">1325 <h4 class="e-products-item-name mb-0">1326 <a href="{{url}}">1327 {{{name}}}1328 </a>1329 </h4>1330 {{#if shortDescription}}1331 {{{shortDescription}}}1332 {{/if}}1333 @* @if (PageView.Current().Area.Name.Contains("webshop") != false)1334 {1335 <p class="e-products-item-text mt-2 mb-0 @Co3.Isabella.Dw.Services.ProductService.Instance.GetNoBuyB2CandB2B()" style="display: flex">1336 <small class="e-products-item-price small">1337 <a href="{{url}}" class="text-dark" style="text-decoration: none">1338 {{#if pimActive}}{{{price}}}{{else}}@Translate("eCom Product - Add To Cart Form Table - Accessory Discontinued - Text", "Udgået"){{/if}}1339 </a>1340 </small>1341 <a href="{{url}}" style="left: 0" class="isabella-arrow arrow-primary-small ml-auto"></a>1342 </p>1343 }1344 *@1345 </div>1346 </div>1347 </div>1348 {{/each}}1349 </div>1350 <p class="js-e-search-products-show-all text-center"><a href="" class="btn btn-secondary px-6">@Translate("Search - View All Products - Button", "View All Products")</a></p>1351 </div>1352 </script>1353 </div>1354 </div>1355 </div>13561357 <div class="row justify-content-center">1358 <div class="col-12 col-md-10 col-lg-8 col-xl-6">1359 <div class="js-e-search-result-pages e-search-result-pages is-empty mb-3">1360 <script id="js-e-handlebars-tmpl-search-result-item-page" type="text/x-handlebars-template">1361 <div class="row">1362 {{#each pages}}1363 <div class="col-12">1364 <p class="mb-0"><a href="{{{url}}}" class="text-bold">{{{title}}}</a></p>1365 <p class="mb-0 small text-truncate">1366 <a href="{{{url}}}" class="text-auto text-muted text-decoration-none"><span class="d-none d-sm-inline">@HttpContext.Current.Request.Url.Host</span>{{{url}}}</a></p>1367 <p class="small">{{{text}}}...</p>1368 </div>1369 {{/each}}1370 </div>1371 </script>1372 </div>1373 </div>1374 </div>13751376 <div class="js-e-search-loading-overlay e-loading-overlay e-search-loading-overlay">1377 <div class="e-loading-spinner"></div>1378 </div>13791380 </div>13811382 </div>1383 </div>1384 </div>1385 </div>1386 </div>13871388 @if( Espresso.Area.Item.BackToTopLink == "True" ){1389 <a href="#top" class="e-back-to-top js-e-back-to-top"><i class="material-icons">keyboard_arrow_up</i></a>1390 }139113921393 @* @using System.Web;1394 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase13951396 @{1397 HttpCookie optInLevel = HttpContext.Current.Request.Cookies[ "Dynamicweb.CookieOptInLevel" ];1398 bool showCookieWarning = optInLevel == null;1399 if ( optInLevel != null )1400 {1401 showCookieWarning = optInLevel.Value != "2";1402 }1403 }14041405 @if ( showCookieWarning )1406 {1407 <div class="e-cookie js-e-cookie py-1" hidden="">1408 <aside class="e-cookie-wrapper">1409 <section class="e-section">1410 <div class="container-fluid">1411 <div class="align-items-center row">1412 <div class="col-12 col-lg-10 col-md-9 my-1">1413 <p class="line-height-sm mb-0 small text-center text-md-left">1414 <span class="d-md-inline d-none">1415 @Translate( "Cookie Warning - Message Long - Text", "This website uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our" )1416 </span>1417 <span class="d-md-none">1418 @Translate( "Cookie Warning - Message Short - Text", "This website uses cookies to improve your experience. Learn more about our" )1419 </span>1420 &nbsp;1421 <a href="@Espresso.Area.Item.CookieMessage">@Translate( "Cookie Warning - Policy - Link", "cookie policy" )</a>1422 </p>1423 </div>1424 <div class="col-12 col-lg-2 col-md-3 my-1">1425 <p class="mb-0 text-center text-md-right">1426 <button class="btn e-cookie-accept-btn js-e-cookie-accept-btn" type="button">1427 @Translate( "Cookie Warning - Accept - Button", "OKAY" )1428 </button>1429 </p>1430 </div>1431 </div>1432 </div>1433 </section>1434 </aside>1435 </div>1436 }14371438 @if ( 1 == 2 )1439 {1440 @GetValue( "DwCookieWarning" )1441 }14421443 *@14441445 <script data-cookieconsent="ignore" async="" src="/Files/Templates/Designs/isabella/_assets/_dist/js/default.js?v=1.9.5"></script>1446 <script>14471448 window.dataLayer.push({1449 'event':'ipEvent',1450 'ipAddress' : '@Dynamicweb.Context.Current.Request.UserHostAddress'1451 });1452 </script>1453 </body>14541455 @GetValue( "CopyRightNotice" )1456 </html>1457