Error compiling template "Designs/RizzoDesignFolder/_parsed/Index.parsed.cshtml"
Line 529: A local variable named 'siteLanguage' cannot be declared in this scope because it would give a different meaning to 'siteLanguage', which is already used in a 'parent or current' scope to denote something else

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System.Text.RegularExpressions; 3 @using System.Web.UI.HtmlControls; 4 @using System.Globalization; 5 @using Dynamicweb.Content; 6 @using System.Web; 7 8 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); }@functions{ 9 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "RizzoDesignFolder") 10 { 11 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 12 string currDevice = currentPageview.Device.ToString(), 13 alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", 14 widthString = "", 15 heightString = "", 16 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 17 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 18 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 19 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 20 getImageHeight = imageHeight != 0 ? imageHeight : 0; 21 22 if (currDevice == Dynamicweb.Frontend.PageView.DeviceType.Tablet.ToString()) 23 { 24 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 25 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 26 } 27 else if (currDevice == Dynamicweb.Frontend.PageView.DeviceType.Mobile.ToString()) 28 { 29 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 30 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 31 } 32 33 if (getImageWidth != 0) 34 { 35 widthString = "&amp;Width=" + getImageWidth; 36 } 37 if (getImageHeight != 0) 38 { 39 heightString = "&amp;Height=" + getImageHeight; 40 } 41 42 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 43 return output; 44 } 45 } 46 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 47 @using Dynamicweb.Rendering; 48 @helper OgMeta(string designName) 49 { 50 if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["ProductID"])) 51 { 52 @SnippetStart("OGMeta") 53 54 if(@GetBoolean("Item.Page.ActivateOpenGraph.Value")==true && !String.IsNullOrEmpty(@GetString("Item.Page.OpenGraphTitle.Value"))){ 55 <meta property="og:title" content='@GetString("Item.Page.OpenGraphTitle.Value")'> 56 }else{ 57 <meta property="og:title" content='@GetString("Title")'> 58 } 59 60 if(@GetBoolean("Item.Page.ActivateOpenGraph.Value")==true && !String.IsNullOrEmpty(@GetString("Item.Page.OpenGraphDescription.Value"))){ 61 <meta property="og:description" content='@GetString("Item.Page.OpenGraphDescription.Value")'> 62 }else{ 63 <meta property="og:description" content='@StripHtml(GetString("Meta.Description"))'> 64 } 65 66 if(@GetBoolean("Item.Page.ActivateOpenGraph.Value")==true && !String.IsNullOrEmpty(@GetString("Item.Page.OpenGraphImage.Value"))){ 67 <meta property="og:image" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()@GetString("Item.Page.OpenGraphImage.Value")'> 68 }else{ 69 <meta property="og:image" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()/Files/Templates/Designs/@designName/images/JUC_OG_logo.png'> 70 } 71 72 <meta property="og:site_name" content='@GetString("Item.Area.CompanyName")'> 73 <meta property="og:url" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()@Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString()'> 74 <meta property="og:type" content="article"> 75 <meta property="og:locale" content='@Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString().Replace("-", "_")'> 76 <meta name="google-site-verification" content="wCMY-FKzsBa5i6uCzW1C8pgsVEFSs3TPEW4Snwny7E8"> 77 78 79 @SnippetEnd("OGMeta") 80 } 81 } 82 @helper HtmlHead(string designName) 83 { 84 string designFolder = GetString("Template:DesignBaseUrl"), 85 robots = "", 86 countryCodeModule = !string.IsNullOrEmpty(Pageview.GlobalTags.GetTagByName("DynamicwebNA:CountryCode").Value.ToString()) ? Pageview.GlobalTags.GetTagByName("DynamicwebNA:CountryCode").Value.ToString() : "US", 87 userCountryCode = !string.IsNullOrEmpty(Pageview.User.Country) ? Pageview.User.Country.ToString() : Pageview.GlobalTags.GetTagByName("DynamicwebNA:CountryCode").Value.ToString(); 88 robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; 89 robots += (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, ", nofollow") : ""; 90 91 <head> 92 93 @if(Dynamicweb.Frontend.PageView.Current().Area.ID==1){ 94 <script type="application/ld+json"> 95 { 96 "@("@")context": "http://schema.org", 97 "@("@")type": "Organization", 98 "name": "JUC", 99 "address": { 100 "@("@")type": "PostalAddress", 101 "addressLocality": "København V, Denmark", 102 "postalCode": "1620", 103 "streetAddress": "Vesterbrogade 4a" 104 }, 105 "telephone": "70208260", 106 "url": "https://juc.dk/", 107 "logo": "https://juc.dk/Files/Templates/Designs/RizzoDesignFolder/images/JUC_OG_logo.png", 108 "sameAs": [ 109 "https://www.facebook.com/jucdk/", 110 "https://www.linkedin.com/company/juc/" 111 ] 112 } 113 </script> 114 } 115 @if(Dynamicweb.Frontend.PageView.Current().Area.ID==8){ 116 <script type="application/ld+json"> 117 { 118 "@("@")context": "http://schema.org", 119 "@("@")type": "Organization", 120 "name": "JUC", 121 "address": { 122 "@("@")type": "PostalAddress", 123 "addressLocality": "Oslo", 124 "postalCode": "0257", 125 "streetAddress": "BYGDØY ALLÉ 2" 126 }, 127 "telephone": "+47 993 11 208", 128 "url": "https://juc.no/", 129 "logo": "https://juc.no/Files/Templates/Designs/RizzoDesignFolder/images/JUC_OG_logo.png", 130 "sameAs": [ 131 "https://www.linkedin.com/company/juc-norge/" 132 ] 133 } 134 </script> 135 } 136 @if(Dynamicweb.Frontend.PageView.Current().Area.ID==9){ 137 <script type="application/ld+json"> 138 { 139 "@("@")context": "http://schema.org", 140 "@("@")type": "Organization", 141 "name": "JUC", 142 "address": { 143 "@("@")type": "PostalAddress", 144 "addressLocality": "Berlin, Tyskland", 145 "postalCode": "12435", 146 "streetAddress": "AM TREPTOWER PARK 75" 147 }, 148 "telephone": "+49 30 23390679", 149 "url": "https://juc.de/", 150 "logo": "https://juc.de/Files/Templates/Designs/RizzoDesignFolder/images/JUC_OG_logo.png", 151 "sameAs": [ 152 "https://www.linkedin.com/company/juc-deutschland-gmbh/", 153 "https://www.xing.com/companies/jucdeutschlandgmbh" 154 ] 155 } 156 </script> 157 } 158 @if(Dynamicweb.Frontend.PageView.Current().Area.ID==5){ 159 <script type="application/ld+json"> 160 { 161 "@("@")context": "http://schema.org", 162 "@("@")type": "Organization", 163 "name": "JUC", 164 "address": { 165 "@("@")type": "PostalAddress", 166 "addressLocality": "Stockholm", 167 "postalCode": "114 56", 168 "streetAddress": "Strandvägen 7A" 169 }, 170 "telephone": "+46 70 733 15 78", 171 "url": "https://juc.se/", 172 "logo": "https://juc.se/Files/Templates/Designs/RizzoDesignFolder/images/JUC_OG_logo.png", 173 "sameAs": [ 174 "https://www.linkedin.com/company/juc-sverige/" 175 ] 176 } 177 </script> 178 } 179 180 <title>@GetValue("Title")</title> 181 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 182 <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no"> 183 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 184 <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"> 185 <meta property="fb:app_id" content="966242223397117"> 186 @if (!string.IsNullOrEmpty(robots)) 187 { 188 <meta name="robots" content="@robots"> 189 } 190 @OgMeta(designName) 191 @RenderSnippet("OGMeta") 192 @GetString("MetaTags") 193 @GetString("CopyRightNotice") 194 @GetString("Stylesheets") 195 @RenderSnippet("outScripts") 196 @GetString("Javascripts") 197 198 <link rel="shortcut icon" href="@(designFolder)images/favicon.ico" type="image/x-icon"> 199 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/RizzoDesignFolder/css/co3.css?v1.322"> 200 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/RizzoDesignFolder/css/co3_custom.css?v1.32"> 201 <script src="/Files/Templates/Designs/RizzoDesignFolder/js/co3-min.js?v1.32"></script> 202 <script src="/Files/Templates/Designs/RizzoDesignFolder/js/co3.js?v1.32"></script> 203 @SnippetStart("outScripts") @SnippetEnd("outScripts") 204 <!--[if lte IE 9]> 205 <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> 206 <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> 207 <script src="@(designFolder)js/libraries/exceptions/01_ie.js"></script> 208 <link href="@(designFolder)less/ie.css" rel="stylesheet" type="text/css" media="screen" /> 209 <![endif]--> 210 211 212 @{ 213 String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery; 214 if(strPathAndQuery == "/default.aspx"){ 215 <link rel="alternate" href="https://juc.de" hreflang="de"> 216 <link rel="alternate" href="https://juc.no" hreflang="no"> 217 <link rel="alternate" href="https://juc.se" hreflang="se"> 218 <link rel="alternate" href="https://juc.dk" hreflang="dk"> 219 <link rel="alternate" href="https://juc.dk" hreflang="x-default"> 220 } 221 } 222 223 <script> 224 @RenderSnippet("jsVariables") 225 @SnippetStart("jsVariables") @SnippetEnd("jsVariables") 226 227 obj_user = { 228 str_country : '@userCountryCode', 229 str_state: '@Pageview.User.State' 230 }; 231 $(function () { 232 @UserDoesNotExist() 233 @RenderSnippet("jsOnLoadVariables") 234 @SnippetStart("jsOnLoadVariables") @SnippetEnd("jsOnLoadVariables") 235 @RenderSnippet("jsOnLoad") 236 @SnippetStart("jsOnLoad") @SnippetEnd("jsOnLoad") 237 }); 238 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) 239 { 240 <text> 241 (function (i, s, o, g, r, a, m) { 242 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 243 (i[r].q = i[r].q || []).push(arguments) 244 }, i[r].l = 1 * new Date(); a = s.createElement(o), 245 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 246 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 247 ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); 248 ga('send', 'pageview'); 249 </text> 250 } 251 </script> 252 253 254 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.LinkedinDataPartner_ID"))) 255 { 256 <!--LinkedIn Data Partner - start --> 257 <script type="text/javascript"> 258 _linkedin_data_partner_id = '@GetString("Item.Area.LinkedinDataPartner_ID")'; 259 </script> 260 <script type="text/javascript"> 261 (function(){var s = document.getElementsByTagName("script")[0]; 262 var b = document.createElement("script"); 263 b.type = "text/javascript";b.async = true; 264 b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; 265 s.parentNode.insertBefore(b, s);})(); 266 </script> 267 <noscript> 268 <img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=79795&fmt=gif"> 269 </noscript> 270 <!--LinkedIn Data Partner - end --> 271 } 272 273 274 275 276 @*snippet from product.cshtml*@ 277 @RenderSnippet("productTracking") 278 279 @RenderSnippet("dataLayer") 280 281 </head> 282 } 283 @helper UserDoesNotExist() 284 { 285 if (Dynamicweb.ExecutingContext.IsFrontEnd() && !Pageview.User.LoggedIn) 286 { 287 if(ExistCookie("JUCfirstLogin")){ 288 RemoveCookie("JUCfirstLogin"); 289 } 290 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) 291 { 292 @SnippetStart("jsOnLoad") 293 @:var showLogin = true; 294 @:alert('@Translate("userNotFoundInTheDatabase", "Brugeren findes ikke i databasen")'); 295 @SnippetEnd("jsOnLoad") 296 } 297 } 298 else if (Dynamicweb.ExecutingContext.IsFrontEnd() && Pageview.User.LoggedIn) 299 { 300 bool firstLogin = true; 301 302 if(ExistCookie("JUCfirstLogin")){ 303 firstLogin = Convert.ToBoolean(GetCookie("JUCfirstLogin")); 304 } 305 else 306 { 307 AddCookie("JUCfirstLogin","false"); 308 } 309 310 if (firstLogin) 311 { 312 @:ProjectApplication.Extranet().login().welcome({message:'@Translate("loginMessage", "du er logget ind")'}); 313 } 314 } 315 } 316 317 318 @helper Logo(string cssclass, string companyName) 319 { 320 <figure class="@cssclass"> 321 <a href='/Default.aspx?ID=@(GetString("DwAreaFirstPageID"))'> 322 <img class="img-responsive" src="/Files/Templates/Designs/RizzoDesignFolder/images/logo.svg" alt="@companyName" title="@companyName"> 323 </a> 324 </figure> 325 } 326 @helper DemoBanner() 327 { 328 if (GetBoolean("Item.Area.DemoBanner")) 329 { 330 <div class="demoMode">Demo</div> 331 } 332 } 333 @helper Copyright() 334 { 335 <div class="col-xs-12 text-center copyright">@GetString("Item.Area.CompanyName") - @GetString("Item.Area.Copyright")</div> 336 } 337 @functions { 338 private string CommaSplittedString(string CommaSplittedString, string NewString) 339 { 340 341 if (!string.IsNullOrEmpty(CommaSplittedString)) 342 { 343 CommaSplittedString += ", "; 344 } 345 CommaSplittedString = NewString; 346 347 return CommaSplittedString; 348 } 349 public static string StripHtml(string source) 350 { 351 return Regex.Replace(source, "<.*?>", string.Empty); 352 } 353 public static void AddCookie(string str_name = "", string str_value = "") 354 { 355 var obj_cookie = new System.Web.HttpCookie(str_name); 356 obj_cookie.Value = str_value; 357 System.Web.HttpContext.Current.Response.Cookies.Remove(str_name); 358 System.Web.HttpContext.Current.Response.Cookies.Add(obj_cookie); 359 } 360 361 public static void RemoveCookie(string str_name = "") 362 { 363 var obj_cookie = new System.Web.HttpCookie(str_name); 364 obj_cookie.Expires = DateTime.Now.AddDays(-1d); 365 System.Web.HttpContext.Current.Response.Cookies.Add(obj_cookie); 366 } 367 368 public static string GetCookie(string str_name = "") 369 { 370 string str_output = ""; 371 if (System.Web.HttpContext.Current.Request.Cookies[str_name] != null) 372 { 373 str_output = System.Web.HttpContext.Current.Request.Cookies[str_name].Value; 374 } 375 return str_output; 376 } 377 378 public static bool ExistCookie(string str_name = "") 379 { 380 bool bol_output = false; 381 if (System.Web.HttpContext.Current.Request.Cookies[str_name] != null) 382 { 383 bol_output = true; 384 } 385 return bol_output; 386 } 387 } 388 389 @{ 390 string device = Pageview.Device.ToString(), 391 homeOrSubpage = GetString("DwAreaFirstPageID") == GetString("Global:Page.ID") ? "home" : "subpage", 392 print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : "", 393 resultsPage = GetString("Item.Area.GeneralSearchArchive"), 394 countryCode = Pageview.GlobalTags.GetTagByName("DynamicwebNA:CountryCode").Value.ToString(), 395 longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(), 396 siteLanguage = GetString( "Global:Area.Lang" ), 397 email = GetString("Item.Area.Email"), 398 phone = GetString("Item.Area.Phone"), 399 cvrnumber = GetString("Item.Area.CVRnumber"), 400 companyLinkUrl = GetString("Item.Area.CompanyLinkUrl"), 401 companyLinkText = GetString("Item.Area.CompanyLinkText"), 402 companyLinkUrl2 = GetString("Item.Area.ExtraLinkUrl2"), 403 companyLinkText2 = GetString("Item.Area.ExtraLinkText2"), 404 newsletterTitle = GetString("Item.Area.Title.Value"), 405 newsletterDescription = GetString("Item.Area.Description.Value"), 406 newsletterButton = GetString("Item.Area.Link.Value"), 407 newsletterButtonText = GetString("Item.Area.ButtonText.Value"), 408 searchClass = (!String.IsNullOrEmpty(GetRequest("q"))) ? "searchForm open" : "searchForm", 409 formWelcomeMessage = GetString("Item.Area.WelcomingMessage.Value"), 410 SitemapLinkUrl = GetString("Item.Area.SitemapLinkUrl.Value"), 411 activeLang = ""; 412 413 bool userIsLoggedIn = Pageview.User.LoggedIn; 414 bool isOnNoMailcart = false; 415 bool isOnMailcart = false; 416 var cartNoMail = "/kurv-uden-mail.aspx"; 417 switch (GetString("DwAreaID")) 418 { 419 case "5": 420 cartNoMail = "/kurv-uden-mail-3.aspx"; 421 break; 422 case "8": 423 cartNoMail = "/kurv-uden-mail-2.aspx"; 424 break; 425 case "9": 426 cartNoMail = "/kurv-uden-mail-1.aspx"; 427 break; 428 } 429 var thePageName = GetString("DwPageName"); 430 bool isservicelogin = false; 431 if (HttpContext.Current.Session["serviceUserLogin"] != null) 432 { 433 isservicelogin = true; 434 435 if (thePageName.ToLower().Contains("kurv")) 436 { 437 isOnMailcart = true; 438 if (thePageName.ToLower().Contains("kurv uden mail")) 439 { 440 isOnMailcart = false; 441 isOnNoMailcart = true; 442 443 } 444 } 445 446 447 } 448 449 List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"), 450 websiteLanguages = GetLoop("WebsiteLanguages"), 451 slideshow = GetLoop("Item.Page.Slideshow"); 452 } 453 454 @SnippetStart("bodyClass") @SnippetEnd("bodyClass") 455 456 <!DOCTYPE HTML> 457 <!--[if lt IE 8 ]><html class="ie7" lang="@(longLang)"><![endif]--><!--[if IE 8 ]><html class="ie8" lang="@(longLang)"><![endif]--><!--[if IE 9 ]><html class="ie9" lang="@(longLang)"><![endif]--><!--[if (gt IE 9)|!(IE)]><!--> 458 <html lang="@(longLang)"><!--<![endif]--> 459 @HtmlHead(designName) 460 <body class='@device logged_@userIsLoggedIn.ToString() @homeOrSubpage @print @RenderSnippet("bodyClass")' data-countrycode="@countryCode"> 461 462 463 @if (!string.IsNullOrEmpty(GetString("Item.Area.GTMID"))) 464 { 465 <!-- Google Tag Manager (noscript) --> 466 <noscript><iframe src='//www.googletagmanager.com/ns.html?id=GTM-@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 467 <!-- End Google Tag Manager (noscript) --> 468 } 469 470 471 <div class="wrap"> 472 <header id="headerContainer" class="f-nav" data-cartproducts='@(GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"))'> 473 @if(!GetBoolean("Item.Page.EcommercePage.Value")) 474 { 475 <h1 class="hidden">@GetString("Title")</h1> 476 } 477 else 478 { 479 <h1 class="hidden">@GetString("DwPageName")</h1> 480 } 481 482 <div id="topHeaderContainer" class="container"> 483 484 485 486 @Logo("col-sm-2 col-xs-2 noPadding", GetString("Item.Area.CompanyName")) 487 488 <div class="pull-right"> 489 @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMain)"))) 490 { 491 <nav> 492 @GetValue("DwNavigation(menuMain)") 493 </nav> 494 } 495 496 <form action="/Default.aspx" id="searchForm" class="@searchClass" data-error1='@Translate("emptySearch","Tøm felter")'> 497 <input type="hidden" name="ID" value="@resultsPage"> 498 <fieldset class="TextInput mandatory"> 499 <label for="searchSubmit" class="hide">@Translate("search", "Søg")</label> 500 <input placeholder='@Translate("search", "Søg")' id="searchSubmit" data-error='@Translate("searchText", "Søg")' type="text" name="q" value='@GetRequest("q")'> 501 </fieldset> 502 <button type="submit"> 503 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewbox="0 0 17.49 17.49"> 504 <path fill="white" d="M12.5,11H11.71l-0.28-.27a6.51,6.51,0,1,0-.7.7L11,11.71V12.5l5,5L17.49,16Zm-6,0A4.5,4.5,0,1,1,11,6.5,4.49,4.49,0,0,1,6.5,11Z"></path> 505 </svg> 506 </button> 507 <i> 508 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewbox="0 0 17.49 17.49"> 509 <path fill="white" d="M12.5,11H11.71l-0.28-.27a6.51,6.51,0,1,0-.7.7L11,11.71V12.5l5,5L17.49,16Zm-6,0A4.5,4.5,0,1,1,11,6.5,4.49,4.49,0,0,1,6.5,11Z"></path> 510 </svg> 511 </i> 512 </form> 513 514 515 516 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenuCart)"))) 517 { 518 <nav id="topMenuContainer" data-href="/Default.aspx?Id=@Pageview.Page.ID" data-pageid="@Pageview.Page.ID"> 519 @GetValue("DwNavigation(topMenu)") 520 521 @if (websiteLanguages.Count > 1) 522 { 523 <ul id="languages"> 524 525 <li class="hasChildren"> 526 <a>-</a> 527 528 <ul class="dropdown-menu"> 529 @foreach (LoopItem siteLanguage in websiteLanguages) 530 { 531 string pageID = siteLanguage.GetString("ID"); 532 string[] cultureInfo = siteLanguage.GetString("Culture").Split('-'); 533 534 Area langArea = Area.GetAreaById(siteLanguage.GetInteger("ID")); 535 536 Dynamicweb.Content.Items.Item areaItemLang = Dynamicweb.Content.Items.Item.GetItemById(langArea.ItemType.ToString(),langArea.ItemId.ToString()); 537 538 activeLang = (siteLanguage.GetInteger("ID") == Pageview.Area.ID) ? "lang-item activeItem" : "lang-item"; 539 540 <li class="@activeLang"> 541 <a href="/Default.aspx?AreaId=@pageID"> 542 <span> 543 @*(siteLanguage.GetString("Culture"))*@ 544 @areaItemLang["LanguageName"] 545 </span> 546 </a> 547 </li> 548 } 549 </ul> 550 </li> 551 </ul> 552 } 553 554 @GetValue("DwNavigation(topMenuCart)") 555 </nav> 556 } 557 558 <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="84425f5f-8a05-4c4b-8b0d-19d219a2153b" data-blockingmode="auto" type="text/javascript"></script> 559 560 @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMainMob)"))) 561 { 562 <figure id="menuMobile" class="hidden-lg hidden-md hidden-sm"> 563 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"> 564 <defs> 565 <style>.cls-square{fill:none;}.cls-2{fill:#fff;}</style> 566 </defs> 567 <title>nav</title> 568 <path class="cls-square" d="M0,0H24V24H0V0Z"></path> 569 <path class="cls-2" d="M3,18H21V16H3v2Zm0-5H21V11H3v2ZM3,6V8H21V6H3Z"></path> 570 </svg> 571 </figure> 572 } 573 </div> 574 </div> 575 </header> 576 577 @if(isservicelogin){ 578 579 <div style="text-align:center;padding:20px;background-color:yellow;padding-top:80px">You are logged in through the service user login. The orderflow that does not send mails to customers is here: 580 <br> 581 582 <a href="@cartNoMail" style="text-decoration:underline">Cart with no customer mail</a> 583 584 @if(isOnMailcart){ 585 <br><br> 586 <div>WARNING: This page will send mail to customer!</div> 587 } 588 589 @if(isOnNoMailcart){ 590 <br><br> 591 <div>INFO: No mail will be sent to customer</div> 592 } 593 594 </div> 595 } 596 597 598 599 600 @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMainMob)"))) 601 { 602 <section id="menuMainMobContainer" class="hidden-lg hidden-md hidden-sm"> 603 @GetValue("DwNavigation(menuMainMob)") 604 </section> 605 } 606 607 <section id="contentWrapper" role="main"> 608 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 609 @using Dynamicweb.Rendering; 610 611 612 613 614 <meta name="google-site-verification" content="wCMY-FKzsBa5i6uCzW1C8pgsVEFSs3TPEW4Snwny7E8"> 615 616 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 617 @using Dynamicweb.Rendering; 618 619 @helper Breadcrumb() { 620 @SnippetStart("breadCrumb") @SnippetEnd("breadCrumb") 621 if (!string.IsNullOrEmpty(GetString("DwNavigation(breadCrumbsMenu2)"))) 622 { 623 <div class="col-xs-12 noPadding"> 624 <nav id="breadMenuContainer" class="col-xs-12 noPadding"> 625 <ul id="breadCrumbsMenu"> 626 <li><a href="/">@Translate("home", "Forside")</a></li> 627 @GetValue("DwNavigation(breadCrumbsMenu2)") 628 @if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 629 { 630 @RenderSnippet("breadCrumb") 631 <li> 632 &nbsp;|&nbsp;@Dynamicweb.Base.TeaserString(GetString("Title"), 19, "...") 633 </li> 634 } 635 else 636 { 637 @RenderSnippet("breadCrumb") 638 } 639 640 </ul> 641 </nav> 642 </div> 643 } 644 } 645 646 @helper PageTitle() { 647 <div class="h1">@GetString("Title")</div> 648 } 649 650 @helper CentralContent(string rightClass = "col-xs-12 noPadding") { 651 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent)"))) 652 { 653 <section id="centralContainer" class="@rightClass"> 654 <div id="centralContent" class="row">@GetValue("DwContent(centralContent)")</div> 655 </section> 656 } 657 } 658 659 @{ 660 string pageTitle = "", 661 banner = (!String.IsNullOrEmpty(GetString("Item.Page.Banner.Value"))) ? GetString("Item.Page.Banner.Value") : "/Files/Templates/Designs/RizzoDesignFolder/images/alternativeIntro.jpg", 662 intro = "", 663 mainContentClass = "", 664 hideRightSide = GetBoolean("Item.Page.HideRightSideBackground.Value") ? "hideBackground" : ""; 665 666 bool home = GetString("DwAreaFirstPageID") == GetString("DwPageID"), 667 ecommerce = GetBoolean("Item.Page.EcommercePage.Value"), 668 widePage = GetBoolean("Item.Page.WidePage.Value"); 669 670 mainContentClass = !home && !String.IsNullOrEmpty(banner) ? "noIntro" : ""; 671 } 672 673 @{ 674 dynamic organization = new System.Dynamic.ExpandoObject(); 675 676 var currentHost = HttpContext.Current.Request.Url.Host; 677 678 if (currentHost.EndsWith("de")) 679 { 680 organization.Name = "JUC – Spezialisierter Anbieter für juristische Fortbildungsveranstaltungen"; 681 organization.Url = "https://juc.de/"; 682 organization.Email = "msc@juc.de"; 683 organization.Locality = "Berlin, Deutschland"; 684 organization.ZipCode = "10115"; 685 organization.StreetAddress = "Ackerstrasse 3"; 686 organization.Phone = "+49-1575 8269421"; 687 organization.OpeningHours = "Mo-Fr 08:00-17:00"; 688 organization.PriceRange = "500 - 3000 EUR"; 689 } 690 else if (currentHost.EndsWith("no")) 691 { 692 organization.Name = "JUC – Juridiske nettverk"; 693 organization.Url = "https://juc.no/"; 694 organization.Email = "ko@juc.no"; 695 organization.Locality = "Oslo, Norge"; 696 organization.ZipCode = "0257"; 697 organization.StreetAddress = "Bygdøy allé 2"; 698 organization.Phone = "+47 957 31974"; 699 organization.OpeningHours = "Mo-Fr 08:30-16:30"; 700 organization.PriceRange = "5000 - 30000 NOK"; 701 } 702 else if (currentHost.EndsWith("se")) 703 { 704 organization.Name = "JUC – Juridisk fortbildning"; 705 organization.Url = "https://juc.se/"; 706 organization.Email = "jr@juc.se"; 707 organization.Locality = "Stockholm, Sverige"; 708 organization.ZipCode = "111 21"; 709 organization.StreetAddress = "Mäster samuelsgatan 60 (8th floor)"; 710 organization.Phone = "+46 8 50 51 67 26"; 711 organization.OpeningHours = "Mo-Fr 08:30-16:30"; 712 organization.PriceRange = "5000 - 30000 SEK"; 713 } 714 else 715 { 716 organization.Name = @GetString("Title"); 717 organization.Url = "<!--@Global:Request.Url-->"; 718 organization.Email = "juc@juc.dk"; 719 organization.Locality = "København V, Danmark"; 720 organization.ZipCode = "1620"; 721 organization.StreetAddress = "Vesterbrogade 4A"; 722 organization.Phone = "+45 70208260"; 723 organization.OpeningHours = "Mo-Fr 08:30-16:30"; 724 organization.PriceRange = "2500 - 30000 DKK"; 725 } 726 727 var organizationSEO = new HtmlString(string.Format(@" 728 {{ 729 ""@context"" : ""http://schema.org"", 730 ""@type"" : ""LocalBusiness"", 731 ""name"": ""{0}"", 732 ""image"": ""{1}"", 733 ""url"" : ""{2}"", 734 ""email"": ""{3}"", 735 ""address"": {{ 736 ""@type"": ""PostalAddress"", 737 ""addressLocality"": ""{4}"", 738 ""postalCode"": ""{5}"", 739 ""streetAddress"": ""{6}"" 740 }}, 741 ""telephone"" : ""{7}"", 742 ""openingHours"": [ 743 ""{8}"" 744 ], 745 ""priceRange"": ""{9}"" 746 }} 747 ", 748 organization.Name, organization.Url + "Files/Templates/Designs/RizzoDesignFolder/images/JUC_OG_logo.png", 749 organization.Url, organization.Email, 750 organization.Locality, organization.ZipCode, organization.StreetAddress, 751 organization.Phone, organization.OpeningHours, 752 organization.PriceRange 753 )); 754 } 755 756 757 @if(!String.IsNullOrEmpty(banner)){ 758 <div id="intro" style='background-image: url("@banner")'> 759 @if(home){ 760 <div class="container"> 761 @{ 762 intro = GetString("Item.Area.CompanyIntro.Value"); 763 764 if(!String.IsNullOrEmpty(intro)){ 765 @intro 766 } 767 } 768 </div> 769 } 770 else 771 { 772 @:&nbsp; 773 } 774 </div> 775 } 776 <div id="mainContent" class="@mainContentClass container"> 777 @if(!home) 778 { 779 @Breadcrumb() 780 } 781 782 @if(!string.IsNullOrEmpty(GetString("DwNavigation(leftMenuIndex)")) && !ecommerce && !widePage){ 783 <div class="col-xs-4 noPaddingLeft hidden-xs"> 784 @GetValue("DwNavigation(leftMenuIndex)") 785 </div> 786 787 @SnippetStart("jsOnLoad") 788 @:onLoadSideMenu() 789 @SnippetEnd("jsOnLoad") 790 791 <div id="rightContent" class="col-xs-12 col-sm-8 @hideRightSide"> 792 @if (GetString("Item.Page.HidePrintPage.Value") != "True") 793 { 794 <div class="smartbuttons"> 795 <a href="javascript:window.print();" id="smart_print"></a> 796 </div> 797 } 798 @CentralContent() 799 800 </div> 801 } 802 else if(widePage) 803 { 804 <div id="wideContent" class="col-xs-12"> 805 @CentralContent() 806 </div> 807 } 808 else 809 { 810 @CentralContent() 811 } 812 </div> 813 </section> 814 815 <footer class="container-fluid noPadding" id="footer"> 816 817 <div class="container noPadding"> 818 819 <div class="col-md-9 col-xs-12 uppercase"> 820 <div class="row"> 821 <div class="col-sm-4"> 822 @if ( countryCode.Contains( "DK" ) == true ) 823 { 824 <!--@Global:Page.Content(6359)--> 825 } 826 @if ( countryCode.Contains( "SE" ) ) 827 { 828 <!--@Global:Page.Content(6360)--> 829 } 830 @if ( countryCode.Contains( "DE" ) ) 831 { 832 <!--@Global:Page.Content(6361)--> 833 } 834 @if ( countryCode.Contains( "NO" ) ) 835 { 836 <!--@Global:Page.Content(6362)--> 837 } 838 @siteLanguage 839 </div> 840 841 <div class="col-sm-4"> 842 @if ( countryCode.Contains( "DK" ) == true ) 843 { 844 <!--@Global:Page.Content(6363)--> 845 } 846 @if ( countryCode.Contains( "SE" ) ) 847 { 848 <!--@Global:Page.Content(6364)--> 849 } 850 @if ( countryCode.Contains( "DE" ) ) 851 { 852 <!--@Global:Page.Content(6365)--> 853 } 854 @if ( countryCode.Contains( "NO" ) ) 855 { 856 <!--@Global:Page.Content(6366)--> 857 } 858 </div> 859 860 <div class="col-sm-4"> 861 @if ( countryCode.Contains( "DK" ) == true ) 862 { 863 <!--@Global:Page.Content(6367)--> 864 } 865 @if ( countryCode.Contains( "SE" ) ) 866 { 867 <!--@Global:Page.Content(6368)--> 868 } 869 @if ( countryCode.Contains( "DE" ) ) 870 { 871 <!--@Global:Page.Content(6369)--> 872 } 873 @if ( countryCode.Contains( "NO" ) ) 874 { 875 <!--@Global:Page.Content(6370)--> 876 } 877 </div> 878 </div> 879 <div class="row"> 880 <div class="col-sm-4"> 881 @if ( countryCode.Contains( "DK" ) == true ) 882 { 883 <!--@Global:Page.Content(6371)--> 884 } 885 @if ( countryCode.Contains( "SE" ) ) 886 { 887 <!--@Global:Page.Content(6372)--> 888 } 889 @if ( countryCode.Contains( "DE" ) ) 890 { 891 <!--@Global:Page.Content(6373)--> 892 } 893 @if ( countryCode.Contains( "NO" ) ) 894 { 895 <!--@Global:Page.Content(6374)--> 896 } 897 </div> 898 899 <div class="col-sm-4"> 900 @if ( countryCode.Contains( "DK" ) == true ) 901 { 902 <!--@Global:Page.Content(6375)--> 903 } 904 @if ( countryCode.Contains( "SE" ) ) 905 { 906 <!--@Global:Page.Content(6376)--> 907 } 908 @if ( countryCode.Contains( "DE" ) ) 909 { 910 <!--@Global:Page.Content(6377)--> 911 } 912 @if ( countryCode.Contains( "NO" ) ) 913 { 914 <!--@Global:Page.Content(6378)--> 915 } 916 </div> 917 918 <div class="col-sm-4"> 919 @if ( countryCode.Contains( "DK" ) == true ) 920 { 921 <!--@Global:Page.Content(6379)--> 922 } 923 @if ( countryCode.Contains( "SE" ) ) 924 { 925 <!--@Global:Page.Content(6380)--> 926 } 927 @if ( countryCode.Contains( "DE" ) ) 928 { 929 <!--@Global:Page.Content(6381)--> 930 } 931 @if ( countryCode.Contains( "NO" ) ) 932 { 933 <!--@Global:Page.Content(6382)--> 934 } 935 </div> 936 </div> 937 938 </div> 939 940 <div class="col-sm-6 col-md-3 newsletter"> 941 @if ( countryCode.Contains( "DK" ) == true ) 942 { 943 <!--@Global:Page.Content(6383)--> 944 } 945 @if ( countryCode.Contains( "SE" ) ) 946 { 947 <!--@Global:Page.Content(6384)--> 948 } 949 @if ( countryCode.Contains( "DE" ) ) 950 { 951 <!--@Global:Page.Content(6385)--> 952 } 953 @if ( countryCode.Contains( "NO" ) ) 954 { 955 <!--@Global:Page.Content(6386)--> 956 } 957 </div> 958 959 </div> 960 @DemoBanner() 961 </footer> 962 </div> 963 <script src="//rum-static.pingdom.net/pa-5ae85841a42dbb0007000060.js" async=""></script> 964 <script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js" async="" defer=""></script> 965 966 <script> 967 var obj_pages = { 968 str_miniCart: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.MiniCart"))', 969 str_login: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Login"))', 970 str_globalTranslates: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.GlobalTranslates"))' 971 }; 972 </script> 973 974 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_RemarketingConversion_ID"))){ 975 <!-- Google Code for Remarketing Tag --> 976 <script type="text/javascript"> 977 /* <![CDATA[ */ 978 var google_conversion_id = @GetString("Item.Area.Google_RemarketingConversion_ID"); 979 var google_custom_params = window.google_tag_params; 980 var google_remarketing_only = true; 981 /* ]]> */ 982 </script> 983 <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script> 984 <noscript> 985 <div style="display:inline;"> 986 <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/946075909/?guid=ON&amp;script=0"> 987 </div> 988 </noscript> 989 <!-- Google Code for Remarketing Tag END--> 990 } 991 992 @if (!string.IsNullOrEmpty(GetString("Item.Area.GTMID"))) 993 { 994 <!-- Google Tag Manager --> 995 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 996 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 997 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 998 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 999 })(window,document,'script','dataLayer','GTM-@GetString("Item.Area.GTMID")');</script> 1000 <!-- End Google Tag Manager --> 1001 } 1002 1003 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Facebook_Pixel_ID"))) 1004 { 1005 <!-- Facebook Pixel Code --> 1006 <script> 1007 !function (f, b, e, v, n, t, s) { 1008 if (f.fbq) return; n = f.fbq = function () { 1009 n.callMethod ? 1010 n.callMethod.apply(n, arguments) : n.queue.push(arguments) 1011 }; if (!f._fbq) f._fbq = n; 1012 n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0; 1013 t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s) 1014 }(window, 1015 document, 'script', 'https://connect.facebook.net/en_US/fbevents.js'); 1016 fbq('init', '@GetString("Item.Area.Facebook_Pixel_ID")'); // Insert your pixel ID here. 1017 fbq('track', 'PageView'); 1018 </script> 1019 <noscript><img height="1" width="1" style="display:none" src='https://www.facebook.com/tr?id=@GetString("Item.Area.Facebook_Pixel_ID")&ev=PageView&noscript=1'></noscript> 1020 <!-- DO NOT MODIFY --> 1021 <!-- End Facebook Pixel Code --> 1022 } 1023 <!-- Start of Sleeknote signup and lead generation tool - www.sleeknote.com --> 1024 1025 <script id="sleeknoteScript" type="text/javascript"> 1026 (function (){ 1027 var sleeknoteScriptTag=document.createElement("script"); 1028 sleeknoteScriptTag.type="text/javascript"; 1029 sleeknoteScriptTag.charset="utf-8"; 1030 sleeknoteScriptTag.src=("//sleeknotecustomerscripts.sleeknote.com/16619.js"); 1031 var s=document.getElementById("sleeknoteScript"); 1032 s.parentNode.insertBefore(sleeknoteScriptTag, s); 1033 })(); 1034 </script> 1035 1036 <!-- End of Sleeknote signup and lead generation tool - www.sleeknote.com --> 1037 </body> 1038 </html> 1039 1040 @SnippetStart("jsOnLoad") 1041 @if(GetBoolean("Item.Area.ActiveCookies")) 1042 { 1043 <text> 1044 onLoadCheckCookies({ 1045 str_cookieName:"@GetString("Item.Area.CookieName")", 1046 str_text:"@GetString("Item.Area.CookiesText")", 1047 str_linkUrl:"@GetString("Item.Area.CookieUrl")", 1048 str_linkLabel:"@GetString("Item.Area.CookieLinkLabel")", 1049 str_acceptLabel:"@GetString("Item.Area.CookieAccept")", 1050 num_expireDays: @GetInteger("Item.Area.CookieExpireDays") 1051 }); 1052 </text> 1053 } 1054 @SnippetEnd("jsOnLoad") 1055 1056 @functions { 1057 public static string GetRequest(string str_param = "") 1058 { 1059 var str_output = System.Web.HttpContext.Current.Request.QueryString[str_param]; 1060 return str_output; 1061 } 1062 }