Error executing template "Designs/randers-tegl/_parsed/standard.merged.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_cbd8b97d2e3349af99ef8372b4a3df61.Execute() in D:\dynamicweb.net\Solutions\Gotcha\randerstegl.cloud.dynamicweb-cms.com\files\Templates\Designs\randers-tegl\_parsed\standard.merged.parsed.cshtml:line 369
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @{ 2 string pageTemplateName = "page-template-" + GetGlobalValue("Global:Pageview.LayoutTemplate").Replace(".cshtml", "").Replace(".html", "").Replace(".", ""); 3 } 4 5 <!DOCTYPE html> 6 <html class="no-js" lang='@GetString("LongLang")'> 7 <head> 8 <meta charset='@GetString("CharSet")'> 9 <meta http-equiv="content-type" content='text/html; charset=@GetString("CharSet")'> 10 <title>@GetValue("Title")</title> 11 @GetValue("MetaTags") 12 @GetValue("CopyRightNotice") 13 14 @{ 15 string areaName = Pageview.Area.Name.ToLower(); 16 } 17 <meta name="verify-v1" content="iJX84KcJ0JdutGwTcHfhJKiyIUG375o6x2YWY5aJeW4="> 18 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 19 <!--[if IE]> 20 <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> 21 <![endif]--> 22 @if (System.Web.HttpContext.Current.Request.Url.Host.Contains(".by.gotcha.dk")) { 23 string canonicalHREF = "https://www.randerstegl"; 24 25 foreach (var language in GetLoop("WebsiteLanguages")) { 26 if (language.GetBoolean("IsCurrent")) { 27 if (language.GetInteger("ID") == 1) { 28 canonicalHREF += ".dk"; 29 } else if (language.GetInteger("ID") == 7) { 30 canonicalHREF += ".no"; 31 } else if (language.GetInteger("ID") == 8) { 32 canonicalHREF += ".se"; 33 } else if (language.GetInteger("ID") == 9) { 34 canonicalHREF += ".de"; 35 } else if (language.GetInteger("ID") == 10) { 36 canonicalHREF += ".com"; 37 } 38 } 39 } 40 41 if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request.QueryString["ProductId"])) { 42 canonicalHREF += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + GetInteger("DwPageID") + "&ProductId=" + System.Web.HttpContext.Current.Request.QueryString["ProductId"]); 43 } else if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request.QueryString["product"])) { 44 canonicalHREF += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + GetInteger("DwPageID") + "&product=" + System.Web.HttpContext.Current.Request.QueryString["product"]); 45 } else { 46 canonicalHREF += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + GetInteger("DwPageID")); 47 } 48 49 <meta name="robots" content="noindex,nofollow"> 50 <link rel="canonical" href='@canonicalHREF'> 51 } 52 <link rel="stylesheet" id="google-font-css" href="//fonts.googleapis.com/css?family=Roboto+Condensed:300,400,400italic,700" media="screen,speech"> 53 <link rel="stylesheet" href="/Files/Templates/Designs/randers-tegl/css/randers-teglprint.min.css" media="print"> 54 <link rel="stylesheet" id="randers-tegl-css" href="/Files/Templates/Designs/randers-tegl/css/randers-tegl.min.css" media="screen,speech"> 55 56 @if (System.Web.HttpContext.Current.Request.QueryString["modal"] == "lookbook") { 57 <link href="https://rt.test.detnyesort.dk/assets/css/app.css" rel="stylesheet"> 58 } 59 60 @RenderSnippet("StylesheetTop") 61 62 <!--[if lt IE 9]> 63 <script type="text/javascript"> 64 !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document); 65 </script> 66 <![endif]--> 67 @RenderSnippet("JavascriptTop") 68 69 <link href="/Files/Templates/Designs/randers-tegl/images/favicon.ico" rel="shortcut icon" type="image/x-icon"> 70 <link href="/Files/Templates/Designs/randers-tegl/images/favicon.ico" rel="icon" type="image/x-icon"> 71 72 <link rel="apple-touch-icon-precomposed" href="/Files/Templates/Designs/randers-tegl/images/apple-touch-icon-60x60-precomposed.png"> 73 <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/Files/Templates/Designs/randers-tegl/images/apple-touch-icon-76x76-precomposed.png"> 74 <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/Files/Templates/Designs/randers-tegl/images/apple-touch-icon-120x120-precomposed.png"> 75 <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/Files/Templates/Designs/randers-tegl/images/apple-touch-icon-152x152-precomposed.png"> 76 77 @foreach (var language in GetLoop("Languages")) { 78 string link = System.Web.HttpContext.Current.Request.Url.Scheme + "://" + language.GetString("PrimaryDomain"); 79 80 if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request.QueryString["ProductId"])) { 81 link += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + language.GetInteger("PageID") + "&ProductId=" + System.Web.HttpContext.Current.Request.QueryString["ProductId"]); 82 } else if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request.QueryString["product"])) { 83 link += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + language.GetInteger("PageID") + "&product=" + System.Web.HttpContext.Current.Request.QueryString["product"]); 84 } else if (language.GetInteger("PageID") != language.GetInteger("FirstActivePageID")) { 85 link += Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + language.GetInteger("PageID")); 86 } 87 88 <link rel="alternate" href='@link' hreflang='@language.GetString("Culture")'> 89 } 90 91 @if (Pageview.Area.ID != 8) { 92 <script> 93 var _gaq = _gaq || []; 94 _gaq.push(['_setAccount', 'UA-3058939-1']); 95 96 @if (GetInteger("DwAreaID") == 1) { 97 <text>_gaq.push(['_setDomainName', 'randerstegl.dk']);</text> 98 } 99 @if (GetInteger("DwAreaID") == 7) { 100 <text>_gaq.push(['_setDomainName', 'randerstegl.no']);</text> 101 } 102 @if (GetInteger("DwAreaID") == 8) { 103 <text>_gaq.push(['_setDomainName', 'randerstegl.se']);</text> 104 } 105 @if (GetInteger("DwAreaID") == 9) { 106 <text>_gaq.push(['_setDomainName', 'randerstegl.de']);</text> 107 } 108 @if (GetInteger("DwAreaID") == 10) { 109 <text>_gaq.push(['_setDomainName', 'randerstegl.com']);</text> 110 } 111 112 _gaq.push(['_setAllowLinker', true]); 113 _gaq.push(['_trackPageview']); 114 </script> 115 } 116 117 @if (!string.IsNullOrEmpty(GetString("Item.Area.GoogleTagManagerContainerID"))) 118 { 119 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 120 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 121 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 122 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 123 })(window,document,'script','dataLayer','@GetString("Item.Area.GoogleTagManagerContainerID")');</script> 124 } 125 126 <meta property="og:title" content='@GetString("Title")'> 127 <meta property="og:url" content='@System.Web.HttpContext.Current.Request.Url.Scheme@("://")@System.Web.HttpContext.Current.Request.Url.Host@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetInteger("DwPageID"))'> 128 <meta property="og:description" content='@GetString("Item.Page.OpenGraphDescription")'> 129 @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.OpenGraphImage"))) { 130 <meta property="og:image" content='@System.Web.HttpContext.Current.Request.Url.Scheme@("://")@System.Web.HttpContext.Current.Request.Url.Host@GetString("Item.Page.OpenGraphImage")'> 131 } 132 133 @if (GetInteger("DwAreaID") == 1) { 134 <meta name="facebook-domain-verification" content="oirra1nw1cvqxzu82p8ekm59a210yw"> 135 } 136 @if (GetInteger("DwAreaID") == 7) { 137 <meta name="facebook-domain-verification" content="n279cb6iyoiby0tq4z514zan3wco6i"> 138 } 139 @if (GetInteger("DwAreaID") == 8) { 140 <meta name="facebook-domain-verification" content="tyt3u9cduz8cauwbh7dobh438s67xf"> 141 } 142 @if (GetInteger("DwAreaID") == 9) { 143 <meta name="facebook-domain-verification" content="1zm398d7li8ljfbn886tv6lui09sp4"> 144 } 145 @if (GetInteger("DwAreaID") == 10) { 146 <meta name="facebook-domain-verification" content="gdd9st81pr6dabsyj4m3g97tgpxd1g"> 147 } 148 @GetValue("Stylesheets") 149 @GetValue("Javascripts") 150 </head> 151 152 @{ 153 string istouch = "False"; 154 155 if (GetGlobalValue("Global:Device.IsTablet").ToString() == "True" || @GetGlobalValue("Global:Device.IsMobile").ToString() == "True") { 156 istouch = "True"; 157 } 158 } 159 <body data-is-touch="@istouch" data-is-mobile='@GetGlobalValue("Global:Device.IsMobile")' data-is-tablet='@GetGlobalValue("Global:Device.IsTablet")' data-is-desktop='@GetGlobalValue("Global:Device.IsDesktop")' class='page-template-@GetGlobalValue("Global:Pageview.LayoutTemplate").Replace(".cshtml", "").Replace(".html", "").Replace(".", "") @(System.Web.HttpContext.Current.Request.QueryString["modal"] == "lookbook" ? "js-no-scroll" : null )'> 160 @if (!string.IsNullOrEmpty(GetString("Item.Area.GoogleTagManagerContainerID"))) 161 { 162 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GoogleTagManagerContainerID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 163 } 164 <img src="/Files/Templates/Designs/randers-tegl/images/randers-tegl-logo.svg" alt="" id="print-logo"> 165 166 <div class="page-wrap"> 167 <div class="navigation__burger-wrap-outer"> 168 <span class="navigation__burger__square"></span> 169 <div class="navigation__burger-wrap-inner"> 170 @GetValue("DwNavigation(burgerNav)") 171 <div class="navigation__burger__background-image"></div> 172 <span class="navigation__burger__close-button"> 173 Close 174 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close-v2.svg"))) { 175 <span class="icon icon-close"> 176 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-close-v2.svg")) 177 </span> 178 } 179 </span> 180 </div> 181 </div> 182 <nav class="navigation"> 183 <a href="/" class="navigation__logo"> 184 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/logo.svg"))) { 185 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/logo.svg"))</text> 186 } 187 </a> 188 @GetValue("DwNavigation(primaryNav)") 189 <ul class="navigation__list navigation__list-secondary"> 190 <li class="navigation__item navigation__item--language-select"> 191 <span class="navigation__item--language-select__current"></span> 192 @{ 193 if (areaName == "en") { 194 if (GetInteger("DwPageID") == 6228) { 195 // Finnish 196 <text>FI</text> 197 } else if (GetInteger("DwPageID") == 6224) { 198 // French 199 <text>FR</text> 200 } else if (GetInteger("DwPageID") == 6225) { 201 // Spanish 202 <text>ES</text> 203 } else if (GetInteger("DwPageID") == 6227) { 204 // Polish 205 <text>PL</text> 206 } else if (GetInteger("DwPageID") == 6226) { 207 // Russian 208 <text>RU</text> 209 } else { 210 <text>@areaName</text> 211 } 212 } else { 213 <text>@areaName</text> 214 } 215 } 216 217 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-down_2.svg"))) { 218 <span class="icon icon-arrow-down"> 219 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-arrow-down_2.svg")) 220 </span> 221 } 222 <ul class="navigation__list-secondary__languages"> 223 @foreach (var websitelanguage in GetLoop("WebsiteLanguages")) { 224 string cssclass = "navigation__list-secondary__languages__item"; 225 226 if (websitelanguage.GetString("IsCurrent").ToLower() != "true") { 227 <li class="@cssclass"> 228 <a class="navigation__list-secondary__languages__link" href='http://@websitelanguage.GetString("PrimaryDomain")' hreflang='@websitelanguage.GetString("Culture")'>@websitelanguage.GetString("Name")</a> 229 </li> 230 } 231 } 232 @if ( 233 areaName == "en" && 234 ( 235 GetInteger("DwPageID") == 6228 || 236 GetInteger("DwPageID") == 6224 || 237 GetInteger("DwPageID") == 6225 || 238 GetInteger("DwPageID") == 6227 || 239 GetInteger("DwPageID") == 6226 240 ) 241 ) { 242 <li class="navigation__list-secondary__languages__item"><a class="navigation__list-secondary__languages__link" href="https://www.randerstegl.com" hreflang="fi">EN</a></li> 243 } 244 @{ 245 if (GetInteger("DwPageID") != 6228) { 246 <li class="navigation__list-secondary__languages__item"><a class="navigation__list-secondary__languages__link" href="https://www.randerstegl.com/fi" hreflang="fi">FI</a></li> 247 } 248 if (GetInteger("DwPageID") != 6224) { 249 <li class="navigation__list-secondary__languages__item"><a class="navigation__list-secondary__languages__link" href="https://www.randerstegl.com/fr" hreflang="fr">FR</a></li> 250 } 251 if (GetInteger("DwPageID") != 6225) { 252 <li class="navigation__list-secondary__languages__item"><a class="navigation__list-secondary__languages__link" href="https://www.randerstegl.com/es" hreflang="es">ES</a></li> 253 } 254 if (GetInteger("DwPageID") != 6227) { 255 <li class="navigation__list-secondary__languages__item"><a class="navigation__list-secondary__languages__link" href="https://www.randerstegl.com/pl" hreflang="pl">PL</a></li> 256 } 257 } 258 </ul> 259 </li> 260 <li class="navigation__item" data-action="search-toggle"> 261 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-search.svg"))) { 262 <span class="icon icon-search"> 263 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-search.svg")) 264 </span> 265 } 266 </li> 267 </ul> 268 269 <div class="navigation__search"> 270 @RenderParagraphContent(GetInteger("Item.Area.Soegeformular")) 271 </div> 272 273 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-burger.svg"))) { 274 <span class="navigation__burger-icon"> 275 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/icon-burger.svg")) 276 </span> 277 } 278 279 <div class="navigation__background" data-active-item="1"> 280 @RenderSnippet("NavigationBackground") 281 </div> 282 </nav> 283 </div> 284 285 <div class="outer-wrap"> 286 <div class="inner-wrap"> 287 <nav class="mobile-tablet"> 288 <ul> 289 @GetValue("DwNavigation(mobiletabletmenu)") 290 @GetValue("DwNavigation(mobiletabletmenusecondary)") 291 </ul> 292 </nav> 293 294 @RenderSnippet("MobileTabletRightColumn") 295 296 <!--[if lt IE 8]> 297 <p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p> 298 <![endif]--> 299 300 301 302 303 304 <div id="carousel-standard" class="carousel-container">@GetValue("DwContent(carouselstandard)")</div> 305 306 <section> 307 <div class="container"> 308 <div class="row"> 309 @if (GetGlobalValue("Global:Device.IsDesktop") == "True" || GetGlobalValue("Global:Device.IsTablet") == "True") { 310 <div class="col-md-3"> 311 <nav class="submenu submenu-v2" role="navigation"> 312 @{ 313 int startLevel = 2; 314 int endLevel = 3; 315 316 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Startlevel"))) { 317 startLevel = Convert.ToInt32(GetString("Item.Page.Startlevel")); 318 } 319 320 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Endlevel"))) { 321 endLevel = Convert.ToInt32(GetString("Item.Page.Endlevel")); 322 } 323 324 @RenderNavigation(new { 325 template = "standard.merged.xslt", 326 expandmode = "all", 327 id = "leftnavigation", 328 startlevel = @startLevel, 329 endlevel = @endLevel 330 }) 331 } 332 </nav> 333 <div id="content-left">@GetValue("DwContent(contentleft)")</div> 334 </div> 335 } else { 336 <div class="col-xs-12"> 337 @GetValue("DwContent(contentleft)") 338 </div> 339 } 340 @RenderSnippet("LoginTemplate") 341 <div id="content-top" class="col-md-9 standard-text-page">@GetValue("DwContent(contenttop)")</div> 342 </div> 343 </div> 344 </section> 345 346 @if (!string.IsNullOrWhiteSpace(GetString("DwContent(contentblue)"))) { 347 <section class="blue image-background"> 348 <div class="container"> 349 <div id="content-blue" class="row">@GetValue("DwContent(contentblue)")</div> 350 </div> 351 </section> 352 } 353 354 <section> 355 <div class="container"> 356 <div id="content-bottom" class="row">@GetValue("DwContent(contentbottom)")</div> 357 </div> 358 </section> 359 @if (Pageview.Area.ID == 9) { 360 <div id="product-options" class="hidden"> 361 <option>Produkt wählen</option> 362 @RenderSnippet("ProductOptions") 363 </div> 364 } 365 <!-- Facebook pixel --> 366 <!-- if parent page id is 43, this is other types of products on bricks --> 367 <!-- if parent page id is 45, this is an article under bricks --> 368 @if (Pageview.Area.ID == 1) { 369 if (Pageview.Page.Parent.ID == 43) { 370 <text> 371 @SnippetStart("JavascriptBottom") 372 <script> 373 fbq('trackCustom', 'Se indhold', { 374 custom_type: 'Andet produkt', 375 custom_ids: ['@Pageview.Page.ID'], 376 custom_name: '@GetGlobalValue("Global:Page.Name").ToString()', 377 custom_category: 'Mursten' 378 }); 379 </script> 380 @SnippetEnd("JavascriptBottom") 381 </text> 382 } else if (Pageview.Page.Parent.ID == 45) { 383 <text> 384 @SnippetStart("JavascriptBottom") 385 <script> 386 fbq('trackCustom', 'Se indhold', { 387 custom_type: 'Artikel', 388 custom_ids: ['@Pageview.Page.ID'], 389 custom_name: '@GetGlobalValue("Global:Page.Name").ToString()', 390 custom_category: 'Mursten' 391 }); 392 </script> 393 @SnippetEnd("JavascriptBottom") 394 </text> 395 } 396 } 397 398 399 @if (pageTemplateName != "page-template-rt-20landingpageultima" && pageTemplateName != "page-template-rt-20productpageultima") { 400 <footer class="footer"> 401 <ul class="footer__row"> 402 <li class="footer__column"> 403 <ul class="footer__social-icons"> 404 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Instagram"))) { 405 <li class="footer__social-icon"> 406 <a href='@GetString("Item.Area.Instagram")' target="_blank" class="footer__social-link"> 407 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-instagram.svg"))) { 408 <span class="icon icon-instagram">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-instagram.svg"))</span> 409 } 410 </a> 411 </li> 412 } 413 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Facebook"))) { 414 <li class="footer__social-icon"> 415 <a href='@GetString("Item.Area.Facebook")' target="_blank" class="footer__social-link"> 416 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-facebook.svg"))) { 417 <span class="icon icon-facebook">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-facebook.svg"))</span> 418 } 419 </a> 420 </li> 421 } 422 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.YouTube"))) { 423 <li class="footer__social-icon"> 424 <a href='@GetString("Item.Area.YouTube")' target="_blank" class="footer__social-link"> 425 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-youtube.svg"))) { 426 <span class="icon icon-youtube">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-youtube.svg"))</span> 427 } 428 </a> 429 </li> 430 } 431 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LinkedIn"))) { 432 <li class="footer__social-icon"> 433 <a href='@GetString("Item.Area.LinkedIn")' target="_blank" class="footer__social-link"> 434 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-linkedin.svg"))) { 435 <span class="icon icon-linkedin">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-linkedin.svg"))</span> 436 } 437 </a> 438 </li> 439 } 440 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Vimeo"))) { 441 <li class="footer__social-icon"> 442 <a href='@GetString("Item.Area.Vimeo")' target="_blank" class="footer__social-link"> 443 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-vimeo.svg"))) { 444 <span class="icon icon-vimeo">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-vimeo.svg"))</span> 445 } 446 </a> 447 </li> 448 } 449 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Pinterest"))) { 450 <li class="footer__social-icon"> 451 <a href='@GetString("Item.Area.Pinterest")' target="_blank" class="footer__social-link"> 452 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-pinterest.svg"))) { 453 <span class="icon icon-pinterest">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/Files/Templates/Designs/randers-tegl/images-rt-2.0/ultima/icon-pinterest.svg"))</span> 454 } 455 </a> 456 </li> 457 } 458 </ul> 459 </li> 460 <li class="footer__column"> 461 <span class="footer__headline">Build for generations</span> 462 </li> 463 </ul> 464 <ul class="footer__row"> 465 <li class="footer__column"> 466 @RenderParagraphContent(GetInteger("Item.Area.AddresseAfsnit")) 467 </li> 468 <li class="footer__column footer__column--terms-and-conditions"> 469 @RenderParagraphContent(GetInteger("Item.Area.SalgsOgLeveringsbetingelserLink")) 470 </li> 471 </ul> 472 </footer> 473 } 474 475 <div class="content-overlay"></div> 476 </div> 477 </div> 478 479 @if (!string.IsNullOrEmpty(GetString("Item.Area.BreakingParagraph"))) { 480 @RenderParagraphContent(GetInteger("Item.Area.BreakingParagraph")) 481 } 482 483 @if (System.Web.HttpContext.Current.Request.QueryString["modal"] == "lookbook") { 484 <div id="lookbook" class='product-modal modal-light @(System.Web.HttpContext.Current.Request.QueryString["modal"] == "lookbook" ? "js-active" : null )'> 485 <div id="ark-catalogue"></div> 486 487 <span class="icon-close" data-action="overlay-close" data-target="lookbook"> 488 <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 15.996 15.996"> 489 <path d="M0 1.415L1.414 0l14.578 14.577-1.415 1.414z"></path> 490 <path d="M1.418 15.996L.004 14.582 14.58.004l1.414 1.414z"></path> 491 </svg> 492 </span> 493 </div> 494 } 495 496 @RenderSnippet("Modals") 497 @if (System.Web.HttpContext.Current.Request.QueryString.Get("modal") == "produkt-bestilling") { 498 <div class="modal fade" id="produkt-bestilling" tabindex="-1" role="dialog" aria-labelledby="order-samples" aria-hidden="true"> 499 <div class="modal-dialog"> 500 <div class="modal-content"> 501 <div class="modal-header"> 502 <h3>Tak for din bestilling</h3> 503 <p>Din bestilling vil blive sendt af sted hurtigst muligt.</p> 504 <p><img src="/files/templates/designs/randers-tegl/images/checkmark.png" width="164" height="132" alt=""></p> 505 </div> 506 <div class="modal-footer"> 507 @if (Pageview.Area.ID == 9) { 508 <button type="button" class="close big" data-dismiss="modal">Luk</button> 509 } else { 510 <button type="button" class="close" data-dismiss="modal">Luk</button> 511 } 512 </div> 513 </div> 514 </div> 515 </div> 516 } 517 @if (System.Web.HttpContext.Current.Request.QueryString.Get("modal") == "bestiltagguide") { 518 <div class="modal fade" id="bestiltagguide" tabindex="-1" role="dialog" aria-labelledby="FormSave11" aria-hidden="true"> 519 <div class="modal-dialog"> 520 <div class="modal-content"> 521 <div class="modal-header"> 522 <h3>Tak for din bestilling</h3> 523 <p>Du vil modtage en mail med link til den store tagguide</p> 524 <p><img src="/files/templates/designs/randers-tegl/images/checkmark.png" width="164" height="132" alt=""></p> 525 </div> 526 <div class="modal-footer"> 527 @if (Pageview.Area.ID == 9) { 528 <button type="button" class="close big" data-dismiss="modal">Luk</button> 529 } else { 530 <button type="button" class="close" data-dismiss="modal">Luk</button> 531 } 532 </div> 533 </div> 534 </div> 535 </div> 536 } 537 538 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 539 <script>window.jQuery || document.write('<script src="/Files/Templates/Designs/randers-tegl/js/jquery-1.10.2.min.js"><\/script>')</script> 540 <script type="text/javascript" src="/Files/Templates/Designs/randers-tegl/js/randers-tegl.min.js"></script> 541 @RenderSnippet("Modals2") 542 @RenderSnippet("JavascriptBottom") 543 @RenderSnippet("VideoPopup") 544 545 @if (System.Web.HttpContext.Current.Request.QueryString["modal"] == "lookbook") { 546 <script src="https://rt.test.detnyesort.dk/assets/js/chunk-vendors.js" async=""></script> 547 <script src="https://rt.test.detnyesort.dk/assets/js/app.js" async=""></script> 548 } 549 @GetString("Item.Page.Scripts") 550 </body> 551 </html> 552