Exception in template (Designs/MTimes/_parsed/Blog.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.dbbbecaceceaa.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb @using System.Text.RegularExpressions @using CustomCodes.CustomModules.PageExtenders; @{ var logo = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["Logo"]); var favicon = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["Favicon"]); /* Pages */ string cartPage = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["Cart"]); string minicartPage = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["MiniCart"]); string productPage = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["Products"]); string productPageId = Regex.Match(productPage, @"\d+").Value; string googleId = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["GoogleID"]); string facebookLink = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["FacebookLink"]); string CheckoutPageID = Dynamicweb.Frontend.PageView.Current().Area.Item["CheckoutPageID"].ToString(); string mt_master_telephone = Translate("mt_master_telephone", "TLF:"); string mt_master_contact = Translate("mt_master_contact", "Kontakt oss"); string mt_master_email = Translate("mt_master_email", "Email:"); string mt_master_myaccount = Translate("mt_master_myaccount", "Min konto"); string mt_master_checkout = Translate("mt_master_checkout", "Handlekurv"); string mt_master_wishlist = Translate("mt_master_wishlist", "Ønskeliste"); string mt_master_loginorregister = Translate("mt_master_loginorregister", "login eller registrer"); string mt_master_login = Translate("mt_master_login", "login"); string mt_master_createaccount = Translate("mt_master_createaccount", "Opprett konto"); string mt_master_or = Translate("mt_master_or", "eller"); string mt_master_customer_service = Translate("mt_master_customer_service", "Kundeservice"); string mt_master_newsletter = Translate("mt_master_newsletter", "Nyhetsbrev"); string mt_master_search = Translate("mt_master_search", "Søk"); string mt_master_newsletter_signup = Translate("mt_master_newsletter_signup", "Meld deg på vårt nyhetsbrev for oppdateringer"); string mt_master_newsletter_placeholder = Translate("mt_master_newsletter_placeholder", "Epost"); string mt_master_newsletter_value = Translate("mt_master_newsletter_value", "Meld på"); string mt_master_copyright = Translate("mt_master_copyright"); string pageID_Ajax_Cart = Dynamicweb.Frontend.PageView.Current().Area.Item["Ajax_Cart"].ToString(); string PageID_Ajax_Minicart = Dynamicweb.Frontend.PageView.Current().Area.Item["PageID_Ajax_Minicart"].ToString(); string contactLink = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["ContactPage"]); string pinterestMeta = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["PinterestMeta"]); string metadata = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["Metadata"]); string SiteTitle = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["SiteTitle"]); string pageID_SeikoDealer = Dynamicweb.Frontend.PageView.Current().Area.Item["SeikoFlashLink"].ToString(); string masterTitle = Dynamicweb.Frontend.PageView.Current().Meta.Title; pageID_Ajax_Cart = pageID_Ajax_Cart.Replace("/", ""); string userRef = ""; bool userAuthenticated = false; int totalInWishlist = 0; if (userAuthenticated == true) { } else { if (HttpContext.Current.Request.Cookies["hasVisited"] == null) { // increment counter and add cookie for future reference... HttpCookie aCookie = new HttpCookie("hasVisited"); string randomString = WishListHelper.RandomString(24); aCookie.Value = randomString; aCookie.Expires = DateTime.Now.AddDays(100); HttpContext.Current.Response.Cookies.Add(aCookie); userRef = randomString; } else { string randomString = HttpContext.Current.Request.Cookies["hasVisited"].Value; userRef = randomString; } } totalInWishlist = WishListHelper.countInList(userRef); //search word string searchword = Base.Request("search"); } <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> @if (Pageview.Area.ID == 1) { <meta name="google-site-verification" content="OE_lqBpk6O7rwjSPiARgFNYPjQsqDRaQC0Wd1V0AV-M"> } else if (Pageview.Area.ID == 4) { <meta name="google-site-verification" content="FO1QCtCpW5xoCKmNwWxqvY3wnDdlLBZ1jiJ1jGQQISw"> } @{ if(!String.IsNullOrEmpty(searchword)){ <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") }else{ <title>@masterTitle</title> } } @if(!String.IsNullOrEmpty(pinterestMeta)){ <meta name="p:domain_verify" content="@pinterestMeta"> } @if(!String.IsNullOrEmpty(metadata)){ } <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="@favicon"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/bootstrap.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/meanmenu.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/xoss-style.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/style.min.css"> <!-- Modernizer JS ============================================ --> <script src="/Files/Templates/Designs/MTimes/js/vendor/jquery-1.12.0.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/vendor/modernizr-2.8.3.min.js"></script> <!--Start of Zendesk Chat Script--> <script type="text/javascript"> window.$zopim||(function(d,s){var z=$zopim=function(c){ z._.push(c)},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); $.src='//v2.zopim.com/?4KbP1vAcQ9Z4wIIMZ4FcqtxL58OHY0ZY';z.t=+new Date;$. type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); </script> <!--End of Zendesk Chat Script--> <!-- Hotjar Tracking Code for https://www.mtimes.no/ --> <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:582683,hjsv:5}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv='); </script> <!-- 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', 'GTM-T7GVKHV'); </script> <!-- End Google Tag Manager --> <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1360597724002401'); fbq('track', 'PageView'); fbq('track', 'ViewContent'); </script> <noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=1360597724002401&ev=PageView&noscript=1"> </noscript> <!-- End Facebook Pixel Code --> <meta name="google-site-verification" content="OE_lqBpk6O7rwjSPiARgFNYPjQsqDRaQC0Wd1V0AV-M"> @GetValue("Stylesheets") @GetValue("Javascripts") </head> <body> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T7GVKHV" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <!-- Tag for Activity Group: Retargeting, Activity Name: Mtimes.no_SeikoPadiSolar_Retargeting, Activity ID: 6030921 --> <!-- Expected URL: https://www.mtimes.no/produkter/seiko-prospex-padi-solar-44mm-200m-diver-xl --> <!-- Activity ID: 6030921 Activity Name: Mtimes.no_SeikoPadiSolar_Retargeting Activity Group Name: Retargeting --> <!-- Start of DoubleClick Floodlight Tag: Please do not remove Activity name of this tag: Mtimes.no_SeikoPadiSolar_Retargeting URL of the webpage where the tag is expected to be placed: https://www.mtimes.no/produkter/seiko-prospex-padi-solar-44mm-200m-diver-xl This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag. Creation Date: 06/12/2017 --> @{ var prodid = Dynamicweb.Input.Request("ProductID"); if (prodid != null) { <script type="text/javascript"> var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<iframe src="https://8009309.fls.doubleclick.net/activityi;src=8009309;type=retar0;cat=mtime0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>'); </script> <noscript> <iframe src="https://8009309.fls.doubleclick.net/activityi;src=8009309;type=retar0;cat=mtime0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe> </noscript> <!-- End of DoubleClick Floodlight Tag: Please do not remove --> } } <!-- End of DoubleClick Floodlight Tag: Please do not remove --> <!-- Pre Loader ============================================ --> <div class="preloader"> <div class="loading-center"> <div class="loading-center-absolute"> <div class="object object_one"></div> <div class="object object_two"></div> <div class="object object_three"></div> </div> </div> </div> <div class="as-mainwrapper"> <!-- Header ============================================ --> <div class="header transparent fixed"> <!-- Header Top --> <div class="header-top"> <div class="container"> <div class="row"> <div class="col-sm-6 col-xs-4 header-top-left"> <a href="@contactLink"><img src='/admin/public/getimage.ashx?Image=/Files/Images/Ekstra/flagg_@(GetString("Lang")).png&height=20&width=30&Compression=100' alt="country flag @GetString(" lang")"=""><span class="mtimes-customerservice">@mt_master_customer_service</span></a> </div> <div class="col-sm-6 col-xs-8 header-top-right"> <!-- Header Mini Cart --> <div class="mini-cart float-right"> <a href="@cartPage" id="mtimes-minicart-icon-link" style="padding-top:3px;"><img src="/Files/Templates/Designs/MTimes/img/carticon.png" border="0"><!--<i class="zmdi zmdi-shopping-basket"></i>--></a> <!-- Mini Cart Wrapper --> <div class="mini-cart-wrapper top-sub-menu sub-menu-right" id="mtimes-minicart"> </div> </div> <!-- Header Account Login --> <div class="header-account-login float-right"> <ul class="header-acc float-left"> <li> @{ if (totalInWishlist > 0) { <a href="/Liste"><span class="wishlist_master_wrap">@mt_master_wishlist<span class="totalInWishlist_count">@totalInWishlist</span></span></a> } else { <a href="/Liste"><span class="wishlist_master_wrap empty">@mt_master_wishlist<!--(at)mt_master_wishlist--><i class="zmdi zmdi-star-outline"></i></span></a> } } </li> </ul> <!-- Header Account --> <!--<ul class="header-acc float-left"> <li> <a href="#">@mt_master_myaccount<i class="zmdi zmdi-chevron-down"></i></a> <ul class="top-sub-menu sub-menu-right"> <li><a href="#">@mt_master_checkout</a></li> <li><a href="#">@mt_master_wishlist</a></li> </ul> </li> </ul>--> <!-- Header Login --> <!--<div class="header-login float-left text-center"> <a href="#">login <i class="zmdi zmdi-chevron-down"></i></a> <div class="header-login-opt top-sub-menu sub-menu-right"> <h5>@mt_master_loginorregister</h5> <a class="button small" href="#">@mt_master_login</a> <span>@mt_master_or</span> <a class="button small transparent" href="#">@mt_master_createaccount</a> </div> </div>--> </div> </div> </div> </div> </div> <!-- Header Bottom --> <div class="header-bottom"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="mobilesearchfield"> <form action="/Default.aspx"> <input type="hidden" name="ID" value="@productPageId"> <input type="text" name="search" placeholder="@mt_master_search"> <button type="submit"><i class="zmdi zmdi-search"></i></button> </form> </div> </div> </div> <div class="row"> <div class="header-bottom-wrap"> <!-- Logo --> <div class="header-logo col-lg-3 col-md-3"> <div class="logo"><a href="/"><img src="@logo" alt="logo"></a></div> </div> <!-- Main Menu --> <div class="main-menu-wrap col-lg-7 col-md-7 hidden-sm hidden-xs"> <div class="main-menu"> <nav> <ul> @{ var MenuAreaID = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["MenuArea"]); var intMenuAreaID = Regex.Match(MenuAreaID, @"\d+").Value; var menu_areas = Dynamicweb.Frontend.Page.FindPage(Int32.Parse(intMenuAreaID)); } @foreach (var i in menu_areas.Children) { var href = i.Values["pagepathurl"]; var menuText = (string)i.Values["pagemenutext"]; var cls = ""; //unntak if (menuText.ToLower() == "merker") { cls = "merker-scrollto"; } if (menuText == "Salg" || menuText == "Sale" || menuText == "Rea") { <li><a class="SaleMenuItem @cls" href="@href" style="color:#f05a66;font-weight:bold;">@menuText</a></li> } else { <li><a class="@cls" href="@href">@menuText</a></li> } } </ul> </nav> </div> </div> <!-- Mobile Menu --> <div class="mobile-menu text-center hidden-lg hidden-md"> <nav> <ul> @foreach (var i in menu_areas.Children) { var href = i.Values["pagepathurl"]; var menuText = (string)i.Values["pagemenutext"]; var cls=""; //unntak if(menuText.ToLower()=="merker") { cls= "merker-scrollto"; } <li><a class="@cls" href="@href">@menuText</a></li> } </ul> </nav> </div> <!-- Header Search --> <div class="header-search col-lg-2 col-md-2"> <form action="/Default.aspx"> <input type="hidden" name="ID" value="@productPageId"> <input type="text" name="search" placeholder="@mt_master_search"> <button type="submit"><i class="zmdi zmdi-search"></i></button> </form> </div> </div> </div> </div> </div> @using System.Web @{ string fullUrl = ""; string PageID = ""; string GroupID = ""; string ProductID = ""; string url = HttpContext.Current.Request.Url.AbsoluteUri; Uri uri = new Uri(url); var query = HttpUtility.ParseQueryString(uri.Query); PageID = query.Get("ID"); GroupID = query.Get("GroupID"); ProductID = query.Get("ProductID"); Dynamicweb.eCommerce.Products.Group group = null; try { if(GroupID != "") { group = Dynamicweb.eCommerce.Products.Group.GetGroupByID(GroupID); } } catch (Exception exc) { } } <!-- Page Breadcrumb Area ============================================ --> <div class="page-breadcrumb"> <div class="container"> <div class="row"> <div class="col-xs-12"> <ul class="breadcrumbs"> <li><a href="/">@Translate("mt_breadcrumb_frontpage","Forside")</a></li> @{ try { var page = Dynamicweb.Content.Page.GetPageById(Convert.ToInt32(PageID)); @RenderParentNavigation(page) if (GroupID != "") { //Do not forget to include parent page ID!!! <text>@RenderParentEcomNav(group, page.ID.ToString())</text> } if (ProductID != "") { var product = Dynamicweb.eCommerce.Products.Product.GetProductByID(ProductID); <li>@product.Name</li> } } catch (Exception error) { <text></text> } } </ul> </div> </div> </div> </div> @helper RenderParentNavigation(Dynamicweb.Content.Page page) { bool show = Base.ChkBoolean(Dynamicweb.Frontend.Page.FindPage(page.ID).get_Value("PageShowInLegend")); var parent = page.Parent; if (page.Parent != null) { <text>@RenderParentNavigation(parent)</text> } if (page.Parent!=null && show) { string bread_pageHref = string.Format("/Default.aspx?id={0}", page.ID.ToString()); <li><a href="@bread_pageHref">@page.MenuText</a></li> } else if(show){ <li>@page.MenuText</li> } } @helper RenderParentEcomNav(Dynamicweb.eCommerce.Products.Group group, string catalogPageID) { if (group.ParentGroupsDefaultLanguage != null && group.ParentGroupsDefaultLanguage.Count > 0) { string parent_id = group.ParentGroupsDefaultLanguage[0].ID; Dynamicweb.eCommerce.Products.Group parent = Dynamicweb.eCommerce.Products.Group.GetGroupByID(parent_id); if (parent != null) { <text>@RenderParentEcomNav(parent, catalogPageID)</text> } else { <text><li>Shop-root</li></text> } } //string groupHref = string.Format("/Default.aspx?id={0}&GroupID={1}", catalogPageID, group.ID); //<li><a href="@groupHref">@group.Name</a></li> <li><span>@group.Name</span></li> } <div class="ContentPlaceholder_wrapper" style="background:#fff;"> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @{ var date = GetDate("Item.Dato"); string image = String.Format("{0}", GetString("Item.Stort_Bilde")); } <div class="blog-details-page blog-details-sidebar padding-bottom-90"> <div class="container"> <div class="row"> <!-- Blog Details --> <div class="col-md-12 col-xs-12 blog-container"> <!-- Single blog --> <div class="sin-blog fix"> <!-- Blog Image --> <div class="blog-image"> <img src="@image" alt="@GetString(" item.tittel.value")"=""> @if (date > DateTime.Now) { <!-- Blog Date --> <div class="blog-date text-center"><h4>@date.Day</h4><p>@UppercaseFirst(date.ToString("MMM"))</p></div> } </div> <!-- Blog Details --> <div class="blog-details"> <!-- Blog Meta --> <div class="blog-meta fix"> <p class="author float-left"><i class="zmdi zmdi-account"></i> By Admin</p> <p class="comment-like float-right"> <a href="#"><i class="zmdi zmdi-comment-outline"></i> (15)</a> <a href="#"><i class="zmdi zmdi-favorite-outline"></i> (225)</a> </p> </div> <!-- Blog Title --> <h2 class="blog-title">@GetString("Item.Tittel.Value")</h2> @GetString("Item.Innholdstekst.Value") </div> <div> <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox"></div> </div> </div> </div> </div> </div> </div> @functions{ static string UppercaseFirst(string s) { // Check for empty string. if (string.IsNullOrEmpty(s)) { return string.Empty; } // Return char and concat substring. return char.ToUpper(s[0]) + s.Substring(1); } } </div> <!--DwTemplateTags--> <!-- Footer Top Area ============================================ --> <div class="footer-top bg-off-white padding-bottom-90 padding-top-80"> <div class="container"> <div class="row"> <!-- Footer Address --> <div class="sin-footer footer-address col-lg-3 col-md-4 col-sm-6 col-xs-12"> <div class="footer-logo"><img src="@logo" alt="logo"></div> <p><a href="@contactLink"><span><b>@mt_master_contact</b></span></a></p> <p> <a class="facebook" target="_blank" href='@facebookLink'><i class="zmdi zmdi-facebook"></i> Facebook</a> </p> <p><div class="mtimes-partner" style="padding-top:10px;"> @{ string _dealerLink = string.Format("/Default.aspx?id={0}", pageID_SeikoDealer); if (Pageview.Area.ID == 4) { <a href="https://www.seikowatches.com/global-en/internet-purchase-warning/internetpurchasewarning" target="_blank" class="_dealerLink"><img src="/Files/Templates/Designs/MTimes/img/seikodealer.jpg" border="0" class="dealer_solid" style="display:block !important;"></a> } else { <!--<a href="https://www.seikowatches.com/global-en/internet-purchase-warning/internetpurchasewarning" target="_blank" class="_dealerLink"><img src="/Files/Templates/Designs/MTimes/img/seikodealer_transparent.png" border="0" class="dealer_transparent" /><img src="/Files/Templates/Designs/MTimes/img/seikodealer.jpg" border="0" class="dealer_solid" /></a>--> <a href="https://www.seikowatches.com/global-en/internet-purchase-warning/internetpurchasewarning" target="_blank" class="_dealerLink"><img src="/Files/Templates/Designs/MTimes/img/seikodealer.jpg" border="0" class="dealer_solid" style="display:block !important;"></a> } } @{ try { var partnerItems = Base.ChkInteger(Dynamicweb.Frontend.PageView.Current().Area.Item["Partnere"]); foreach (var item in Dynamicweb.Content.Items.ItemList.GetItemListById(partnerItems).Relations) { var i = new Dynamicweb.Content.Items.Item(item); string elementText = Base.ChkString(i["Elements"]); string img = Base.ChkString(i["Image"]); if (String.IsNullOrEmpty(elementText)) { <a href="https://www.seikowatches.com/global-en/internet-purchase-warning/internetpurchasewarning" target="_blank"><img src="@img" alt="authorization"></a> } else { @elementText } } } catch { } } </div></p> </div> @{ var footerAreaID = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["FooterArea"]); var intFooterAreaID = Regex.Match(footerAreaID, @"\d+").Value; var footer_areas = Dynamicweb.Frontend.Page.FindPage(Int32.Parse(intFooterAreaID)); } @foreach (var i in footer_areas.Children) { var href = i.Values["pagepathurl"]; var menuText = i.Values["pagemenutext"]; <div class="sin-footer footer-service footer-link col-lg-3 col-md-2 col-sm-6 col-xs-12"> <h3>@menuText</h3> <ul> @foreach (var j in i.Children) { var chref = j.Values["pagepathurl"]; var cmenuText = j.Values["pagemenutext"]; <li><a href="@chref">@cmenuText</a></li> } </ul> </div> } <div class="sin-footer footer-service footer-link col-lg-3 col-md-2 col-sm-6 col-xs-12"> @{ /* getting newsletter paragraph */ string emailSubscriptionParagraphID = ""; try{ emailSubscriptionParagraphID = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["NewsletterSubscriptionParagraph"]).Split('#')[1]; <!--@Global:Paragraph.Content(@emailSubscriptionParagraphID)--> } catch{ } } </div> </div> </div> </div> <!-- Footer Bottom Area ============================================ --> <div class="footer-bottom"> <div class="container"> <div class="row"> <!-- Copyright --> <div class="copyright col-sm-6 col-xs-12 text-left"> <p>@mt_master_copyright</p> </div> <!-- Payment Method --> <div class="payment-method col-sm-6 col-xs-12 text-right"> <div class="dibs_brand_assets" style="margin: 0px;"> @{ string dibsImage = Base.ChkString(Dynamicweb.Frontend.PageView.Current().Area.Item["BottomImage"]); } <img src="@dibsImage" alt="DIBS - Payments made easy"> </div> </div> </div> </div> </div> </div> <input type="hidden" id="pageID_Ajax_Cart" value="@pageID_Ajax_Cart"> <input type="hidden" id="PageID_Ajax_Minicart" value="@PageID_Ajax_Minicart"> <input type="hidden" id="CheckoutPageID" value="@CheckoutPageID"> @{ if (HttpContext.Current.Request.Url.AbsoluteUri.Contains("http://test.")) { if (Pageview.Area.ID == 1) { <input type="hidden" id="site_url" value="http://test.mtimes.no"> } else if (Pageview.Area.ID == 4) { <input type="hidden" id="site_url" value="http://test.mtimes.se"> } } else { if (Pageview.Area.ID == 1) { <input type="hidden" id="site_url" value="https://www.mtimes.no"> } else if (Pageview.Area.ID == 4) { <input type="hidden" id="site_url" value="https://www.mtimes.se"> } } } <!-- CSS --> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/owl.carousel.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/nivo-slider.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/jquery-ui.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/magnific-popup.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/animate.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/color/color-mtimes.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/responsive.min.css"> <link rel="stylesheet" href="/Files/Templates/Designs/MTimes/css/material-design-iconic-font.min.css"> <!-- JS --> <script src="/Files/Templates/Designs/MTimes/js/bootstrap.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.nivo.slider.pack.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.meanmenu.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/owl.carousel.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.countdown.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.scrollup.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.treeview.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery-ui.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.elevateZoom-3.0.8.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.magnific-popup.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.nicescroll.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/jquery.ajaxchimp.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/AjaxSendReqests.js?id=1"></script> <script src="/Files/Templates/Designs/MTimes/js/AjaxCart.js?id=1"></script> <script src="/Files/Templates/Designs/MTimes/js/wow.min.js"></script> <script src="/Files/Templates/Designs/MTimes/js/global.js?id=1"></script> <script> new WOW().init(); window.minicart = "@minicartPage"; updateMinicart(); window.Ajax_Cart = "@pageID_Ajax_Cart"; </script> <!-- Main JS ============================================ --> <script src="/Files/Templates/Designs/MTimes/js/main.js"></script> <script src="/Files/Templates/Designs/MTimes/js/helpers/CheckoutHelper.js"></script> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58372a637b8ceae5"></script> </div></body> </html>