Exception in template (Designs/trademarkliving/_parsed/espresso.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.cbaaabbadcef.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 Co3.Espresso.Website.TemplateBases.Pages.PageBase @using System.Web; @{ string globalAreaLang = GetGlobalValue("Global:Area.Lang"); string baseUrl = GetGlobalValue( "Global:Request.Scheme" ) + "://" + GetGlobalValue( "Global:Request.Host" ); string openGraphUrl = baseUrl + GetGlobalValue( "Global:Pageview.Url" ); string openGraphImage = baseUrl + Espresso.OpenGraphImage; } <!DOCTYPE html> <html lang="@globalAreaLang"> <head> @GetValue("CopyRightNotice") <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>@GetValue("Title")</title> @Espresso.CriticalCSS <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin=""> <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700|Material+Icons" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> <link href="/Files/Templates/Designs/trademarkliving/_assets/_dist/css/default.css" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> @Espresso.CriticalJS <link rel="shortcut icon" href="@Espresso.Area.Item.Favicon"> @GetValue("MetaTags") @if( Espresso.IsStagingUrl == true ) { <meta name="robots" content="noindex,nofollow"> } <meta property="og:url" content="@openGraphUrl"> <meta property="og:title" content="@Espresso.OpenGraphTitle"> <meta property="og:description" content="@Espresso.OpenGraphDescription"> <meta property="og:image" content="@openGraphImage"> <meta property="og:type" content="website"> @if( string.IsNullOrEmpty( Espresso.Area.Item.GoogleSiteVerification ) == false ) { <meta name="google-site-verification" content="@Espresso.Area.Item.GoogleSiteVerification"> } @{ if( 1 == 2 ) { @GetValue("Stylesheets") } } @if( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" ) { <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','@Espresso.Area.GoogleTagManagerID');</script> <!-- End Google Tag Manager --> } @GetValue("Javascripts") </head> <body class="@Espresso.Item.CustomClasses"> @if( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" ) { <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> } @using Co3.Espresso.Website.Models.FrontEnd @{ Espresso.Canvas.ClassList.AddClasses( "js-e-canvas is-loading" ); if ( Espresso.Item.CanvasFullscreen == "True" ) { Espresso.Canvas.ClassList.AddClasses( "is-fullscreen" ); } bool isExtranet = GetGlobalValue("Global:Extranet.UserID") == "0" ? false : true; string redirect = GetGlobalValue("Global:Pageview.Url.Raw"); } @using System.Globalization @using Co3.Espresso.Base.Extensions @using Co3.Espresso.Website.Models.FrontEnd @using Co3.Espresso.Website.Services @using Dynamicweb.Frontend @using Dynamicweb.Rendering @using EcomContext = Dynamicweb.Ecommerce.Common.Context @using Dynamicweb.Security.UserManagement @helper ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null) { if ( string.IsNullOrEmpty( content ) == false ) { ClassList headingClassList = new ClassList(); headingClassList.AddClasses( "col-12" ); ClassList contentClassList = new ClassList(); contentClassList.AddClasses( "col-12" ); @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses ) if ( string.IsNullOrEmpty( heading ) == false ) { <div class="@headingClassList"> <h2>@heading</h2> </div> } <div class="@contentClassList"> @content </div> @sectionEnd() } } @helper ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null) { if ( string.IsNullOrEmpty( videoURL ) == false ) { ClassList headingClassList = new ClassList(); headingClassList.AddClasses( "col-12" ); ClassList contentClassList = new ClassList(); contentClassList.AddClasses( "col-12" ); @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses ) if ( string.IsNullOrEmpty( heading ) == false ) { <div class="@headingClassList"> <h2>@heading</h2> </div> } <div class="@contentClassList"> <div class="embed-responsive embed-responsive-16by9 mb-2"> <iframe class="embed-responsive-item" src="@videoURL" width="1080" height="608" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> </div> </div> @sectionEnd() } } @helper ProductRelatedProducts(string sectionClasses = "e-section", string contentClasses = null, string heading = null, IEnumerable<RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem> productLoop = null, string tmlHeadingsVarenummer = "", string tmlHeadingsHeight = "", string tmlHeadingsWidth = "", string tmlHeadingsDepth = "", string tmlHeadingsSeatHeight ="", string tmlHeadingsLabelNews = "", string tmlHeadingsLabelSale = "" ) { if ( productLoop != null && productLoop.Any() == true ) { ClassList headingClassList = new ClassList(); headingClassList.AddClasses( "col-12" ); ClassList contentClassList = new ClassList(); contentClassList.AddClasses( "col-12" ); @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses ) if ( string.IsNullOrEmpty( heading ) == false ) { <div class="@headingClassList"> <h2 class="text-center">@heading</h2> </div> } <div class="@contentClassList"> <div class="e-products mb-2"> <div class="row"> @{ string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth( null ).ToResponsiveClasses(); } @foreach ( RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product in productLoop ) { @ProductlistItem( product, productlistItemClassList, tmlHeadingsVarenummer, tmlHeadingsHeight, tmlHeadingsWidth, tmlHeadingsDepth, tmlHeadingsSeatHeight, tmlHeadingsLabelNews, tmlHeadingsLabelSale ) } </div> </div> </div> @sectionEnd() } } @helper ProductlistItem(RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product, string productlistItemClassList = null, string tmlHeadingsVarenummer = "", string tmlHeadingsHeight = "", string tmlHeadingsWidth = "", string tmlHeadingsDepth = "", string tmlHeadingsSeatHeight = "", string tmlHeadingsLabelNews = "", string tmlHeadingsLabelSale = "" ) { if ( product != null ) { dynamic productData = new { id = product.GetString( "Ecom:Product.ID" ), url = ProductService.Instance.GetProductLink( product.GetString( "Ecom:Product.PrimaryOrFirstGroupID" ), product.GetString( "Ecom:Product.ID" ) ), number = product.GetString( "Ecom:Product.Number" ), name = product.GetString( "Ecom:Product.Name" ), imageLarge = "/admin/public/getimage.ashx?Crop=5&Image=/files/Images/ecom/products/" + product.GetString( "Ecom:Product.Number" ) + ".png&Format=png&Width=400&Height=400&Quality=90", price = ProductService.Instance.GetPriceFormatted( product.GetDouble( "Ecom:Product.Price.PriceWithoutVAT" ) ), descriptionShortExtra01 = product.GetString( "Ecom:Product:Field.DescriptionShortExtra01" ), height = product.GetString("Ecom:Product:Field.Height.Value.Raw"), width = product.GetString("Ecom:Product:Field.Width.Value.Raw"), depth = product.GetString("Ecom:Product:Field.Depth.Value.Raw"), seatheight = product.GetString("Ecom:Product:Field.SeatHeight.Value.Raw"), isNewProduct = product.GetDate("Ecom:Product:Field.NewsUntilDate") >= DateTime.Now, isOnSale = product.GetString("Ecom:Product:Field.Bazar"), oneOfaKind = product.GetString("Ecom:Product:Field.Unika") }; <div class="@productlistItemClassList"> <div class="e-products-item js-e-products-item js-e-block-link"> <div class="e-products-item-container"> <div class="e-products-item-image-container"> <a class="e-products-item-image-wrapper" href="@productData.url"> <img src="@productData.imageLarge" alt="" class="e-products-item-image"> @if ( productData.isNewProduct ) { <span class="list-label-news">@tmlHeadingsLabelNews</span> } @if ( productData.isOnSale !="" ) { <span class="list-label-sale">@tmlHeadingsLabelSale</span> } @if ( productData.oneOfaKind !="" ) { <span class="list-label-oneofakind"></span> } </a> </div> <div class="e-products-item-text-container text-left small"> <h3 class="e-products-item-name mb-0 mt-3"><a href="{{url}}">@productData.name</a></h3> <h4 class="e-products-item-number">@tmlHeadingsVarenummer. @productData.number</h4> <h4 class="e-products-item-number">@tmlHeadingsHeight: @productData.height cm <small>x</small> @tmlHeadingsWidth: @productData.width cm <small>x</small> @tmlHeadingsDepth: @productData.depth cm</h4> @if( productData.seatheight !="0") { <h4 class="e-products-item-number">@tmlHeadingsSeatHeight: @productData.seatheight cm</h4> } @if( Dynamicweb.Security.UserManagement.User.get_Current( PagePermissionLevels.Frontend ) != null ) { <p class="e-products-item-text mb-0"> <span class="e-products-item-price"> <a href="{{url}}"> <strong>@productData.price</strong> </a> </span> </p> } </div> </div> </div> </div> } } @helper sectionStart(string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false) { ClassList sectionClassList = new ClassList(); sectionClassList.AddClasses( sectionClasses ); ClassList contentClassList; string collapseId = Guid.NewGuid().ToString( "N" ); ClassList collapseToggleClassList = new ClassList(); string collapseToggleTextExpand = "Se mere"; string collapseToggleTextCollapse = "Se mindre"; if ( contentClasses == null ) { contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item ); } else { contentClassList = new ClassList(); contentClassList.AddClasses( contentClasses ); } if ( sectionCollapse == true ) { sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" ); collapseToggleClassList.AddClasses( contentClasses ); collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" ); contentClassList.AddClasses( "p-section-collapse-content collapse is-md" ); } @:<section class="@sectionClassList"> @:<div class="container-fluid"> @:<div class="row"> if ( sectionCollapse == true ) // TODO: SplitPattern into seperate heler function { <div class="@collapseToggleClassList" data-toggle="collapse" data-target="#@collapseId"> <button class="btn btn-primary p-section-collapse-toggle-btn" type="button"> <i class="material-icons p-section-collapse-toggle-icon">keyboard_arrow_down</i> </button> <small class="p-section-collapse-toggle-text h4" data-expand-text="@collapseToggleTextExpand" data-collapse-text="@collapseToggleTextCollapse"></small> </div> } @:<div class="@contentClassList" id="@collapseId"> @:<div class="row"> } @helper sectionEnd() { @:</div> @:</div> @:</div> @:</div> @:</section> } <div class="e-loading-overlay e-page-loading-overlay is-loading js-e-page-loading-overlay"> <div class="e-loading-spinner"></div> </div> <div class="@Espresso.Canvas.ClassList"> @{ ClassList headerClassList = new ClassList(); headerClassList.AddClasses( "e-header js-e-header is-sticky" ); if ( Espresso.Item.HeaderTransparent == "True" ) { headerClassList.AddClasses( "is-transparent" ); } ClassList logoClassList = new ClassList(); logoClassList.AddClasses( "e-logo" ); string backButtonLink = Espresso.Item.BackButtonLink; ClassList backButtonClassList = new ClassList(); ClassList backButtonIconClassList = new ClassList(); if ( Espresso.Item.BackButton == "True" ) { backButtonClassList.AddClasses( "btn btn-sm btn-secondary my-1 align-self-center" ); if ( backButtonLink == "" || backButtonLink == "/" ) { backButtonLink = "/"; backButtonClassList.AddClasses( "js-e-back-link" ); } backButtonIconClassList.AddClasses( "material-icons" ); if ( Espresso.Item.BackButtonPosition == "right" ) { backButtonClassList.AddClasses( "order-last" ); logoClassList.AddClasses( "order-first" ); } else { backButtonClassList.AddClasses( "order-first" ); logoClassList.AddClasses( "mr-0 ml-auto order-last" ); } if ( Espresso.Item.BackButtonIcon == "arrow_back" ) { backButtonClassList.AddClasses( "arrow-left" ); backButtonIconClassList.AddClasses( "d-none" ); } else if ( Espresso.Item.BackButtonIcon == "arrow_forward" ) { backButtonClassList.AddClasses( "arrow-right" ); backButtonIconClassList.AddClasses( "d-none" ); } } string logoPrimary = Espresso.Area.Item.LogoPrimary; string logoSecondary = Espresso.Area.Item.LogoSecondary; if ( string.IsNullOrEmpty( logoSecondary ) == true ) { logoSecondary = logoPrimary; } string tagline = Espresso.Area.Item.Tagline; Dictionary< string, string > navigationHtml = new Dictionary< string, string > { { "global", RenderNavigation( new { id = "dwnav-global", template = "global.xslt", startlevel = 1, endlevel = 8, expandmode = "all" } ) }, { "utilities-primary", RenderNavigation( new { id = "dwnav-utilities-primary", template = "utilities.xslt", startlevel = 4, endlevel = 5, expandmode = "all", parenttag = "utilities-primary" } ) }, { "utilities-secondary", RenderNavigation( new { id = "dwnav-utilities-secondary", template = "utilities.xslt", startlevel = 4, endlevel = 4, expandmode = "all", parenttag = "utilities-secondary" } ) }, { "hamburger-header", RenderNavigation( new { id = "dwnav-hamburger-header", template = "utilities.xslt", startlevel = 4, endlevel = 4, expandmode = "all", parenttag = "hamburger-header" } ) }, { "hamburger-aside", RenderNavigation( new { id = "dwnav-hamburger-aside", template = "utilities.xslt", startlevel = 4, endlevel = 4, expandmode = "all", parenttag = "hamburger-aside" } ) } }; } @if ( Espresso.Item.HeaderHide != "True" ) { <header class="@headerClassList" data-autohide="true"> <div class="e-header-hamburger"> @sectionStart( "e-header-section e-section", "col-12" ) <div class="col-12 e-header-section-content"> <div class="@logoClassList"> <a class="e-logo-link" href="/"> <img src="@logoPrimary" class="e-logo-img e-logo-img-primary" alt="@Espresso.Area.Item.CompanyName"> <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName"> @if ( string.IsNullOrEmpty( tagline ) == false ) { <p class="e-logo-tagline">@tagline</p> } </a> </div> @if ( Espresso.Item.NavigationHide != "True" ) { <section class="e-nav-hamburger-header"> <ul class="nav"> @navigationHtml[ "hamburger-header" ] @* TODO: Move to xslt *@ <li class="e-nav-item-hamburger-open nav-item"> <a class="nav-link" data-target=".modal.e-nav" data-toggle="modal" href="#"> <i class="e-nav-pageicon material-icons">menu</i> <span class="e-nav-pagename">@Translate( "Header - Hamburger menu open - Button", "Menu" )</span> </a> </li> </ul> </section> } @if ( Espresso.Item.BackButton == "True" ) { <a class="@backButtonClassList" href="@backButtonLink"> @if ( Espresso.Item.BackButtonIcon != "" ) { <i class="@backButtonIconClassList">@Espresso.Item.BackButtonIcon</i> } @Espresso.Item.BackButtonText </a> } </div> @sectionEnd() </div> <div class="e-nav js-e-nav modal p-0" data-backdrop="false"> <div class="e-nav-container"> @if ( string.IsNullOrEmpty( navigationHtml[ "utilities-primary" ] ) == false ) { @sectionStart( "bg-white e-header-section e-section navbar tml-nav-utilities-primary", "col-12" ) @:<div class="col-12 e-header-section-content"> <nav class="e-nav-utilities-primary js-e-nav-utilities-primary"> <ul class="nav"> @navigationHtml[ "utilities-primary" ] <li class="d-none d-lg-block" style="margin-bottom: 0;"> <div class="tml-custom-searchbar"> <div class="e-header-btn e-search-toggle"> <div class="header-search-input large-search"> <form action="/pages-da" class="e-search-form js-custom-search-form"> <div class="form-group"> <div class="e-search-container"> <input name="q" class="form-control custom-search-input" type="search" placeholder='@Translate( "Header - Menu - CustomSearch", "Søg direkte på varenummer eller indhold" )'> <button class="btn btn-primary" type="submit"> <i class="material-icons">search</i> </button> </div> </div> </form> </div> <a data-toggle="modal" data-target=".modal.e-search" class="nav-link small-search d-none"> <i class="material-icons">search</i> </a> </div> </div> </li> </ul> </nav> @:</div> @sectionEnd() } @sectionStart( "e-header-section e-section", "col-12" ) <div class="col-12 e-header-section-content"> <div class="@logoClassList"> <a class="e-logo-link" href="/"> <img src="@logoPrimary" class="e-logo-img e-logo-img-primary" alt="@Espresso.Area.Item.CompanyName"> <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName"> @if ( string.IsNullOrEmpty( tagline ) == false ) { <p class="e-logo-tagline">@tagline</p> } </a> </div> @if ( Espresso.Item.NavigationHide != "True" ) { <nav class="e-nav-global js-e-nav-global"> <ul class="nav"> @navigationHtml[ "global" ] </ul> </nav> <div class="e-nav-item-hamburger-close"> <a class="nav-link" data-target=".modal.e-nav" data-toggle="modal" href="#"> <i class="e-nav-pageicon material-icons">close</i> <span class="e-nav-pagename">@Translate( "Header - Hamburger menu close - Button", "Close" )</span> </a> </div> if ( string.IsNullOrEmpty( navigationHtml[ "utilities-secondary" ] ) == false ) { <nav class="e-nav-utilities-secondary"> <ul class="nav"> @navigationHtml[ "utilities-secondary" ] </ul> </nav> } if ( string.IsNullOrEmpty( navigationHtml[ "hamburger-aside" ] ) == false ) { <nav class="e-nav-hamburger-aside"> <ul class="nav"> @navigationHtml[ "hamburger-aside" ] </ul> </nav> } } @if ( Espresso.Item.BackButton == "True" ) { <a class="@backButtonClassList" href="@backButtonLink"> @if ( Espresso.Item.BackButtonIcon != "" ) { <i class="@backButtonIconClassList">@Espresso.Item.BackButtonIcon</i> } @Espresso.Item.BackButtonText </a> } </div> @sectionEnd() </div> </div> </header> } @using Dynamicweb.Security.UserManagement @{ User currentUser = User.get_Current( PagePermissionLevels.Frontend ); if ( currentUser != null ) { User currentSecondaryUser = currentUser.CurrentSecondaryUser; if ( currentSecondaryUser != null ) { @sectionStart( "e-section bg-warning", "col-12 small" ) <div class="align-self-center col-12 col-lg-9 col-md-8 my-1"> <p class="line-height-sm mb-0 text-center text-md-left"> <i class="material-icons material-icons-2x">supervisor_account</i> @Translate( "Extranet Impersonation - Active impersonation message - Text", "You are currently impersonating this user:" ) <strong>@currentUser.Name &mdash; @currentUser.Company </strong> </p> </div> <div class="align-self-center col-12 col-lg-3 col-md-4 my-1"> <form class="mb-0 small text-center text-md-right" method="post" action="@Espresso.Area.Item.ExtranetImpersonationPage"> <button class="btn btn-primary" name="DwExtranetRemoveSecondaryUser" type="submit">@Translate( "Extranet Impersonation - Stop impersonation - Button", "Stop impersonation" )</button> </form> </div> @sectionEnd() } } } <main class="e-content"> @using Dynamicweb.Content; @using Dynamicweb.Extensibility; @{ string eBreadcrumbClasslist = "e-breadcrumb js-e-breadcrumb d-none d-lg-block"; if ( Espresso.Item.Breadcrumb != "auto" && Espresso.Item.Breadcrumb != "none" && String.IsNullOrEmpty( Espresso.Item.Breadcrumb ) == false ) { eBreadcrumbClasslist += string.Format( " e-breadcrumb-{0}", Espresso.Item.Breadcrumb ); } string navigationHtmlBreadcrumb = RenderNavigation( new { id = "dwnav-breadcrumb", template = "breadcrumb.xslt", startlevel = 1, endlevel = 10, expandmode = "pathonly" } ); } @if ( string.IsNullOrEmpty( navigationHtmlBreadcrumb ) == false && Espresso.Item.Breadcrumb != "none" && string.IsNullOrEmpty( Espresso.Item.Breadcrumb ) == false ) { <section class="e-section @eBreadcrumbClasslist"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="row"> <div class="col-12"> <nav class="e-breadcrumb-container"> <ol class="breadcrumb nav text-muted"> <li class="breadcrumb-item m-0 p-0"> <a class="arrow-left breadcrumb-back-link js-e-back-link px-0" href="/">@Translate( "Breadcrumb - Back link", "Back" )</a> | </li> @navigationHtmlBreadcrumb </ol> </nav> </div> </div> </div> </div> </div> </section> } <article id="dwcontentmain" class="e-content-main @Espresso.ContentArea.ClassList"> @{ string NavigationLocalHorizontalClassList = "e-nav-local e-nav-local-horizontal js-e-nav-local-horizontal"; string NavigationLocalHorizontalContainerClassList = "e-nav-local-container"; if( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "horizontal" ) { NavigationLocalHorizontalClassList += " " + Espresso.Item.NavigationLocalCustomClasses; if( Espresso.Item.NavigationLocalSticky == "True" ) { NavigationLocalHorizontalClassList += " is-sticky"; } if( Espresso.Item.NavigationLocalAbsolute == "True" ) { NavigationLocalHorizontalClassList += " is-absolute"; } else{ if( Espresso.Item.NavigationLocalMarginTop != "0" && Espresso.Item.NavigationLocalMarginTop != "" ) { NavigationLocalHorizontalClassList += " mt-" + Espresso.Item.NavigationLocalMarginTop; } if( Espresso.Item.NavigationLocalMarginBottom != "0" && Espresso.Item.NavigationLocalMarginBottom != "" ) { NavigationLocalHorizontalClassList += " mb-" + Espresso.Item.NavigationLocalMarginBottom; } } } } @if( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "horizontal" ) { <section class="e-section @NavigationLocalHorizontalClassList"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="row"> <div class="col-12"> <nav id="dwnav-local-horizontal-@Espresso.DynamicwebPage.ID" class="@NavigationLocalHorizontalContainerClassList"> <ul class="nav justify-content-start"> @if( Espresso.Item.NavigationLocalHeading != "" ){ <li class="e-nav-local-heading"><h2>@Espresso.Item.NavigationLocalHeading</h2></li> } @RenderNavigation( new { id = "dwnav-local-horizontal-" + Espresso.DynamicwebPage.ID, parentid = string.IsNullOrEmpty( Espresso.Item.NavigationLocalParentPage ) == false ? Espresso.Item.NavigationLocalParentPage : Espresso.DynamicwebPage.ID, template = string.IsNullOrEmpty( Espresso.Item.NavigationLocalTemplate ) == false ? Espresso.Item.NavigationLocalTemplate : "local-" + Espresso.Item.NavigationLocalLayout + ".xslt", startlevel = Espresso.Item.NavigationLocalLevelStart, endlevel = Espresso.Item.NavigationLocalLevelEnd, expandmode = Espresso.Item.NavigationLocalPageTreeExpand == "True" ? "all" : "path" } ) </ul> </nav> </div> </div> </div> </div> </div> </section> } @{ string NavigationLocalVerticalClassList = "e-nav-local e-nav-local-vertical js-e-nav-local-vertical"; string NavigationLocalVerticalContainerClassList = "e-nav-local-container"; if( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "vertical" ) { NavigationLocalVerticalClassList += " " + Espresso.Item.NavigationLocalCustomClasses; //NavigationLocalVerticalClassList += " col-3"; if( Espresso.Item.NavigationLocalMarginTop != "0" && Espresso.Item.NavigationLocalMarginTop != "" ) { NavigationLocalVerticalClassList += " mt-" + Espresso.Item.NavigationLocalMarginTop; } if( Espresso.Item.NavigationLocalMarginBottom != "0" && Espresso.Item.NavigationLocalMarginBottom != "" ) { NavigationLocalVerticalClassList += " mb-" + Espresso.Item.NavigationLocalMarginBottom; } if( Espresso.Item.NavigationLocalSticky == "True" ) { NavigationLocalVerticalClassList += " is-sticky"; } if( Espresso.Item.NavigationLocalAbsolute == "True" ) { NavigationLocalVerticalClassList += " is-absolute"; } } } @if( Espresso.Item.NavigationLocalShow == "True" && Espresso.Item.NavigationLocalLayout == "vertical" ) { <section class="e-section @NavigationLocalVerticalClassList"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="row"> <div class="col-3"> <nav id="dwnav-local-vertical-@Espresso.DynamicwebPage.ID" class="@NavigationLocalVerticalContainerClassList"> <ul class="nav flex-column"> @if( Espresso.Item.NavigationLocalHeading != "" ){ <li class="e-nav-local-heading"><h2>@Espresso.Item.NavigationLocalHeading</h2></li> } @RenderNavigation( new { id = "dwnav-local-vertical" + Espresso.DynamicwebPage.ID, parentid = string.IsNullOrEmpty( Espresso.Item.NavigationLocalParentPage ) == false ? Espresso.Item.NavigationLocalParentPage : Espresso.DynamicwebPage.ID, template = string.IsNullOrEmpty( Espresso.Item.NavigationLocalTemplate ) == false ? Espresso.Item.NavigationLocalTemplate : "local-" + Espresso.Item.NavigationLocalLayout + ".xslt", startlevel = Espresso.Item.NavigationLocalLevelStart, endlevel = Espresso.Item.NavigationLocalLevelEnd, expandmode = Espresso.Item.NavigationLocalPageTreeExpand == "True" ? "all" : "path" } ) </ul> </nav> </div> </div> </div> </div> </div> </section> } @sectionStart() @GetValue("DwContent(dwcontentmain)") @sectionEnd() </article> </main> @{ string FooterContentClassList = "e-footer-content e-section"; if( Espresso.Item.ContentAnimate == "True" ){ @* FooterContentClassList += " js-e-scroll-reveal"; *@ } } @if( Espresso.Item.FooterHide != "True" ){ <footer class="e-footer"> <article class="e-footer-wrapper"> <section class="@FooterContentClassList"> <div class="container-fluid"> <div class="row"> @if( string.IsNullOrEmpty( Espresso.Area.Item.FooterParagraphs ) == false ){ foreach( string paragraphID in Espresso.Area.Item.FooterParagraphs.Split( new char[]{','}, StringSplitOptions.None ) ){ @RenderParagraphContent( int.Parse( paragraphID ) ); } } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavutilitiessecondaryfooter)") ) == false ){ <div class="col-12"> <aside class="e-nav-utilities-secondary"> <ul class="nav nav-inline"> @GetValue("DwNavigation(dwnavutilitiessecondaryfooter)") </ul> </aside> </div> } </div> </div> </section> <section class="e-footer-copyright e-section"> <div class="container-fluid"> <div class="row align-items-center"> <div class="col-12 text-center"> <p class="e-copyright"> @Espresso.Area.Item.CompanyName &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; @Translate("Footer - CompanyAddress - Text", "Niels Bohrs Vej 28") &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; @Translate("Footer - CompanyCity - Text", "8660 Skanderborg") &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; @Translate("Footer - CompanyCountry - Text", "Denmark") &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; @Translate("Footer - CompanyPhone - Text", "+45 70 24 16 44") &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href='mailto:@Translate("Footer - CompanyEmail - Text", "info@trademarkliving.dk")'>@Translate("Footer - CompanyEmail - Text", "info@trademarkliving.dk")</a> </p> </div> </div> </div> </section> </article> </footer> } @if( string.IsNullOrEmpty( GetString("DwContent(dwcontentcta)") ) == false ) { <aside id="dwcontentcta" class="js-e-cta e-cta is-hidden fixed-top"> <section class="e-section"> <div class="container-fluid"> <div class="row no-gutters"> <div class="col-12"> <div class="row no-gutters justify-content-center align-items-center"> @GetValue("DwContent(dwcontentcta)") @* <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> *@ </div> </div> </div> </div> </section> </aside> } <div class="e-cart-msg modal fade small" id="js-e-cart-msg" data-backdrop="false"> <div class="modal-dialog e-cart-msg-modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="m-0 js-e-cart-msg-heading modal-title"> <i class="material-icons material-icons-large text-success">check_circle</i> <span>@Translate( "eCom Cart - Product Added - Heading", "Added to your cart" )</span> </h4> <button class="close" data-dismiss="modal" type="button"> <i class="material-icons">close</i> </button> </div> <div class="modal-body"> <div class="js-e-cart-msg-content"> <script id="js-e-handlebars-tmpl-cart-msg-lastadded" type="text/x-handlebars-template"> <div class="row"> {{#each cart.lastAdded}} <div class="col-12 py-1"> <div class="row"> <div class="col-4"> <a class="" href="{{url}}"> <img alt="" class="img-fluid" src="/admin/public/getimage.ashx?Crop=5&Image=/files/Images/ecom/products/{{number}}.png&Format=png&Width=400&Height=400&Quality=90"> </a> </div> <div class="col-8"> <h3 class="mb-0"> <a href="{{url}}" class="text-decoration-none">{{name}}</a> </h3> <p class="mb-0"> <a href="{{url}}" class="text-auto text-decoration-none"> {{{price}}} </a> </p> </div> </div> </div> {{/each}} </div> </script> </div> </div> <div class="bg-info e-cart-msg-footer modal-footer border-top-0"> <a class="btn btn-secondary mr-1" href="/shop/cart-<!--@Global:Area.Lang-->" data-dismiss="modal">@Translate( "TML eCom Cart - Keep shopping - Heading", "Shop videre" )</a> <a class="arrow-right btn btn-primary" href="/shop/cart-<!--@Global:Area.Lang-->">@Translate( "TML eCom Cart - Gotobasket - Heading", "Gå til kurv" )</a> </div> </div> </div> </div> </div> <div id="login-modal" class="modal fade js-login-modal login-modal" data-remote="login-@globalAreaLang" data-redirect="@redirect"> <div class="modal-dialog modal-sm"> <div class="modal-load"> </div> <div class="modal-content"> <div class="e-page-loading-overlay e-loading-overlay is-loading"> <div class="e-loading-spinner"> </div> </div> </div> </div> </div> @using Co3.Espresso.Base.Extensions @using Co3.Espresso.Website.Services <div class="modal fade e-search js-e-search js-e-search-modal modal-fullscreen" data-backdrop="false" data-keyboard="true" data-focus="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <a class="btn btn-sm btn-secondary js-e-back-link arrow-left" href="/" data-dismiss="modal"> @Translate("Search - Back button", "Back") </a> <div class="e-logo"> <a href="/" class="e-logo-link my-0"> <img src="@logoPrimary" class="e-logo-img e-logo-img-primary" alt="@Espresso.Area.Item.CompanyName"> <img src="@logoSecondary" class="e-logo-img e-logo-img-secondary" alt="@Espresso.Area.Item.CompanyName"> </a> </div> </div> <div class="modal-body"> <div class="container-fluid"> <div class="e-search-form-container"> <div class="row justify-content-center"> <div class="col-12 col-md-10 col-lg-8 col-xl-6 mt-3"> <form action="" class="e-search-form js-e-search-form"> <div class="js-e-search-input-group e-search-input-group is-empty"> <label class="e-search-label" for="e-search-input"><i class="material-icons">search</i></label> @{ string Translate_Search_InputText = Translate("Search - Input Placeholder - Text", "Search"); } <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"> <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span> <button class="e-search-submit btn btn-primary" type="submit"><i class="material-icons">search</i></button> </div> </form> </div> </div> </div> <div class="js-e-search-result-container e-search-result-container"> <div class="row justify-content-center"> <div class="col-12 col-md-10 col-lg-8 col-xl-6"> <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> </div> </div> <div class="row justify-content-center"> <div class="col-12 col-xl-10"> <div class="js-e-search-result-products e-search-result-products is-empty mb-4"> @{string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth( null ).ToResponsiveClasses();} <script id="js-e-handlebars-tmpl-search-result-item-product" type="text/x-handlebars-template"> <div class="e-products"> <div class="row"> {{#loop products}} <div class="col-12 col-sm-6 col-md-3 col-lg-3 col-xl-3"> <div class="e-products-item"> <div class="e-products-item-container"> <div class="e-products-item-image-container"> <a class="e-products-item-image-wrapper" href="{{url}}"> <img src="/admin/public/getimage.ashx?Crop=5&Image=/files/Images/ecom/products/{{number}}.png&Format=png&Width=400&Height=400&Quality=90" alt="" class="e-products-item-image"> {{#if isNewProduct}} <span class="list-label-news">@Translate( "TML vareliste - Label - Nyhed", "Nyhed" )</span> {{/if}} {{#compare isOnSale "!==" ""}} <span class="list-label-sale">@Translate( "TML vareliste - Label - Sale", "Sale" )</span> {{/compare}} {{#compare oneOfaKind "!==" ""}} <span class="list-label-oneofakind"></span> {{/compare}} </a> </div> <div class="e-products-item-text-container text-left small"> <h3 class="e-products-item-name mb-0 mt-3"><a href="{{url}}">{{name}}</a></h3> <h4 class="e-products-item-number">@Translate( "TML varekort - Headings - Varenummer", "Varenr" ). {{number}}</h4> <h4 class="e-products-item-number">@Translate( "TML productData - Headings - Height", "H" ):{{height}} cm @Translate( "TML productData - Headings - Width", "W" ):{{width}} cm @Translate( "TML productData - Headings - Depth", "D" ):{{depth}} cm</h4> @if( GetGlobalValue("Global:Extranet.UserID") != "0" ) { <p class="e-products-item-text mb-0"> <span class="e-products-item-price"> <a href="{{url}}"> <strong>{{{price}}}</strong> </a> </span> </p> } </div> </div> </div> </div> {{/loop}} </div> <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> </div> </script> </div> </div> </div> <div class="row justify-content-center"> <div class="col-12 col-md-10 col-lg-8 col-xl-6"> <div class="js-e-search-result-pages e-search-result-pages is-empty mb-3"> <script id="js-e-handlebars-tmpl-search-result-item-page" type="text/x-handlebars-template"> <div class="row"> {{#loop pages}} <div class="col-12"> <p class="mb-0"><a href="{{{url}}}" class="text-bold">{{{title}}}</a></p> <p class="mb-0 small text-truncate"> <a href="{{{url}}}" class="text-auto text-muted text-decoration-none"><span class="d-none d-sm-inline">@GetGlobalValue( "Global:Request.Host" )</span>{{{url}}}</a></p> <p class="small">{{{text}}}...</p> </div> {{/loop}} </div> </script> </div> </div> </div> <div class="js-e-search-loading-overlay e-loading-overlay e-search-loading-overlay"> <div class="e-loading-spinner"></div> </div> </div> </div> </div> </div> </div> </div> @if( Espresso.Area.Item.BackToTopLink == "True" ){ <a href="#top" class="e-back-to-top js-e-back-to-top"><i class="material-icons">keyboard_arrow_up</i></a> } @using System.Web; @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase <div class="js-e-cookie e-cookie py-1" hidden=""> <aside class="e-cookie-wrapper"> <section class="e-section"> <div class="container-fluid"> <div class="row align-items-center"> <div class="col-12 col-md-9 col-lg-10 my-1"> <p class="mb-0 text-center text-md-left line-height-sm small"> <span class="d-none d-md-inline"> @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") </span> <span class="d-md-none"> @Translate("Cookie Warning - Message Short - Text", "This website uses cookies to improve your experience. Learn more about our") </span> &nbsp; <a href="@Espresso.Area.Item.CookieMessage"> @Translate("Cookie Warning - Policy - Link", "cookie policy") </a> </p> </div> <div class="col-12 col-md-3 col-lg-2 my-1"> <p class="mb-0 text-center text-md-right"> <button type="button" class="js-e-cookie-accept-btn e-cookie-accept-btn btn"> @Translate("Cookie Warning - Accept - Button", "OKAY") </button> </p> </div> </div> </div> </section> </aside> </div> <script src="/Files/Templates/Designs/trademarkliving/_assets/_dist/js/default.js?v=1.0" async=""></script> </body> @GetValue("CopyRightNotice") </html>