Exception in template (Designs/smyrilline/_parsed/Tab.parsed.cshtml): System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Convert.ToInt32(String value)
   at CompiledRazorTemplates.Dynamic.fafebceac.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, DynamicViewBag viewBag, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
<!DOCTYPE html><html lang='@GetString("LongLang")'> @{ string templateName = GetGlobalValue("Global:Pageview.LayoutTemplate").Replace(".cshtml", "").Replace(".html", "").Replace(".", "").ToLower(); string sfu = Pageview.SearchFriendlyUrl; string definedLang = GetString("LongLang").Split('-')[1].ToLower(); if (sfu.IndexOf("?") != -1) { sfu = sfu.Substring(0, sfu.IndexOf("?")); } } <head><meta charset='@GetString("CharSet")'><title>@GetValue("Title")</title> @if (System.Web.HttpContext.Current.Request.Url.Host.Contains(".by.gotcha.dk")) { <meta name="robots" content="noindex,nofollow"> } <link rel="canonical" href="@sfu"><meta name="viewport" content="width=device-width, initial-scale=1.0"> @GetString("MetaTags") @RenderSnippet("HeadTags") @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Title"))) { <meta property="og:title" content='@GetString("Item.Page.Title")'> } else if (!string.IsNullOrWhiteSpace(GetString("Title"))) { <meta property="og:title" content='@GetString("Title")'> } <meta property="og:type" content="website"> @{ string primarydomain = GetGlobalValue("Global:Request.Scheme") + "://" + GetGlobalValue("Global:Area.Primarydomain"); } @if (GetInteger("DwAreaFirstActivePageID") == @Pageview.Page.ID) { <meta property="og:url" content='@primarydomain@("/")'> } else { <meta property="og:url" content='@Pageview.SearchFriendlyUrl'> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Image"))) { <meta property="og:image" content='@primarydomain@GetString("Item.Page.Image")'> } else if (!string.IsNullOrWhiteSpace(GetString("Item.Area.DefaultImage"))) { <meta property="og:image" content='@primarydomain@GetString("Item.Area.DefaultImage")'> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Description"))) { <meta property="og:description" content='@GetString("Item.Page.Description")'> } else if (!string.IsNullOrWhiteSpace(GetString("Meta.Description"))) { <meta property="og:description" content='@GetString("Meta.Description")'> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.SiteName"))) { <meta property="og:site_name" content='@GetString("Item.Area.SiteName")'> } @foreach (var tag in GetLoop("Item.Area.MiscTags")) { @tag.GetString("Item.Area.MiscTags.Tag") } @foreach (var preloadFile in GetLoop("Item.Area.Preload")) { if (preloadFile.GetBoolean("Item.Area.Preload.Crossorigin")) { if (!string.IsNullOrWhiteSpace(preloadFile.GetString("Item.Area.Preload.Type"))) { <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")' crossorigin="" type='@preloadFile.GetString("Item.Area.Preload.Type")'> } else { <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")' crossorigin=""> } } else { if (!string.IsNullOrWhiteSpace(preloadFile.GetString("Item.Area.Preload.Type"))) { <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")' type='@preloadFile.GetString("Item.Area.Preload.Type")'> } else { <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")'> } } } @foreach (var prefetchUrl in GetLoop("Item.Area.Prefetch")) { <link rel="dns-prefetch" href="@prefetchUrl.GetString(" item.area.prefetch.loadurl")"=""> } @foreach (var preconnectUrl in GetLoop("Item.Area.Preconnect")) { <link rel="preconnect" href="@preconnectUrl.GetString(" item.area.preconnect.loadurl")"="" crossorigin=""> } @{ string cssEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/smyrilline.min.css")).ToString(); string jsEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/js/smyrilline.min.js")).ToString(); string addCssEditDate = ""; cssEditDate = cssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", ""); jsEditDate = jsEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", ""); if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { addCssEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.AddCssFile"))).ToString(); addCssEditDate = addCssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", ""); } } <link rel="preload" href="/Files/Templates/Designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" as="style"><link rel="preload" href="/Files/Templates/Designs/smyrilline/js/smyrilline.min.js?v=@jsEditDate" as="script"> @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-styles"] != null || System.Web.HttpContext.Current.Request.QueryString["oldschoolcss"] != null) { <link rel="stylesheet" href="/Files/Templates/Designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style1"> if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { string addCssPath = @GetString("Item.Area.AddCssFile") + "?v=" + addCssEditDate; <link rel="stylesheet" href="@addCssPath" id="addStyle1"> } } else { if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/" + templateName + ".critical.css"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/" + templateName + ".critical.css"))</text> } else { <link rel="stylesheet" href="/Files/Templates/Designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style2"> } if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { <link rel="stylesheet" href="@GetString(" item.area.addcssfile")?v="@addCssEditDate" "="" id="addStyle2"> } } @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { <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', '@GetString("Item.Area.Google_Tag_Manager_ID")'); </script> } @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID_2"))) { <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', '@GetString("Item.Area.Google_Tag_Manager_ID_2")'); </script> } @{ string linkTel = "tel:" + GetString("Item.Area.NavigationPhoneNumber").Replace(" ", ""); } </head><body class='preload page-template-@templateName' data-primary-domain='@primarydomain' data-is-ios='@GetGlobalValue("Global:Device.IsIOS")' data-is-android='@GetGlobalValue("Global:Device.IsAndroid")' data-is-tablet='@GetGlobalValue("Global:Device.IsTablet")' data-is-phone='@GetGlobalValue("Global:Device.IsMobile")' x-ms-format-detection="none"> @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.Google_Tag_Manager_ID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> } <div id="pageWrap"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.NavigationPartial"))) { string navigationPartial = GetString("Item.Area.NavigationPartial"); switch (navigationPartial) { case "brandan": <text><!-- 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', '445817092745235'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=445817092745235&ev=PageView&noscript=1"></noscript> <!-- End Facebook Pixel Code --> <nav id="navigation"><a href="/" id="topLogo"><img src='@GetString("Item.Area.DefaultImage")' alt="Smyril Line"></a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { <span class="icon icon-phone"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) </span> } @GetString("Item.Area.NavigationPhoneNumber") </a></li><li id="topMobileSearch"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </a></li><li id="mobileLanguageSelect"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { <span class="icon icon-flag icon-flag-@(definedLang)"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { <span class="icon icon-arrow-down"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) </span> } </a><ul id="mobileOtherLanguages"><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { <span class="icon icon-flag icon-flag-fo"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) </span> } <a href="http://www.brandan.fo">@Translate("Translate_Lang_FO")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { <span class="icon icon-flag icon-flag-gb"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) </span> } <a href="http://www.hotelbrendan.com">@Translate("Translate_Lang_GB")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { <span class="icon icon-flag icon-flag-de"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) </span> } <a href="http://www.hotelbrendan.de">@Translate("Translate_Lang_DE")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { <span class="icon icon-menu"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) </span> } </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { <span class="icon icon-phone"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) </span> } @GetString("Item.Area.NavigationPhoneNumber") </a></li> @RenderNavigation(new { template = "li.xslt", expandmode = "none", id = "secondaryNavigation", startlevel = 1, endlevel = 1, parenttag = "secondarynavigation" }) <li id="languageSelect"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { <span class="icon icon-flag icon-flag-@(definedLang)"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { <span class="icon icon-arrow-down"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) </span> } </a><ul id="otherLanguages"><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { <span class="icon icon-flag icon-flag-fo"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) </span> } <a href="http://www.brandan.fo">@Translate("Translate_Lang_FO")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { <span class="icon icon-flag icon-flag-gb"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) </span> } <a href="http://www.hotelbrendan.com">@Translate("Translate_Lang_GB")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { <span class="icon icon-flag icon-flag-de"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) </span> } <a href="http://www.hotelbrendan.de">@Translate("Translate_Lang_DE")</a></li></ul></li></ul><ul id="primaryNavigation"> @RenderNavigation(new { template = "li.xslt", expandmode = "all", id = "primaryNavigation", startlevel = 1, endlevel = 3 }) <li id="topSearch"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </a></li><li id="topBook"> @if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Trip")</a> } else { <a href='@GetString("Item.Area.NavigationBookLink")'>@Translate("Translate_Book_Trip")</a> } </li><li id="mobileMenuClose"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { <span class="icon icon-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) </span> } </li></ul><form id="searchForm" method="get" action='/Default.aspx?Id=@GetString("Item.Area.SearchPage")'><input type="hidden" name="id" value='@GetString("Item.Area.SearchPage")'><div class="input-wrap"><label for="q">@Translate("Translate_Search_label")</label><input type="text" id="q" name="q" placeholder='@Translate("Translate_Search_placeholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><button type="submit" aria-label="Search"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </button></div></form></nav></text> break; } } else { <text><nav id="navigation"><a href="/" id="topLogo"><img src='@GetString("Item.Area.DefaultImage")' alt="Smyril Line"></a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { <span class="icon icon-phone"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) </span> } @GetString("Item.Area.NavigationPhoneNumber") </a></li><li id="topMobileSearch"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </a></li><li id="mobileLanguageSelect"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { <span class="icon icon-flag icon-flag-@(definedLang)"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { <span class="icon icon-arrow-down"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) </span> } </a><ul id="mobileOtherLanguages"><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { <span class="icon icon-flag icon-flag-fo"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) </span> } <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li> <li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { <span class="icon icon-flag icon-flag-gb"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) </span> } <a href="http://www.smyrilline.com">@Translate("Translate_Lang_GB")</a> </li> <li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { <span class="icon icon-flag icon-flag-dk"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) </span> } <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { <span class="icon icon-flag icon-flag-de"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) </span> } <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { <span class="icon icon-flag icon-flag-fr"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) </span> } <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { <span class="icon icon-flag icon-flag-is"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) </span> } <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg"))) { <span class="icon icon-flag icon-flag-no"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg")) </span> } <a href="http://www.smyrilline.no">@Translate("Translate_Lang_NO")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg"))) { <span class="icon icon-flag icon-flag-se"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg")) </span> } <a href="http://www.smyrilline.se">@Translate("Translate_Lang_SE")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { <span class="icon icon-flag icon-flag-nl"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) </span> } <a href="http://www.smyrilline.nl">@Translate("Translate_Lang_NL")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { <span class="icon icon-menu"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) </span> } </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { <span class="icon icon-phone"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) </span> } @GetString("Item.Area.NavigationPhoneNumber") </a></li> @RenderNavigation(new { template = "li.xslt", expandmode = "none", id = "secondaryNavigation", startlevel = 1, endlevel = 1, parenttag = "secondarynavigation" }) <li id="languageSelect"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { <span class="icon icon-flag icon-flag-@(definedLang)"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { <span class="icon icon-arrow-down"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) </span> } </a><ul id="otherLanguages"><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { <span class="icon icon-flag icon-flag-fo"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) </span> } <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li> <li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { <span class="icon icon-flag icon-flag-gb"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) </span> } <a href="http://www.smyrilline.com">@Translate("Translate_Lang_GB")</a> </li> <li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { <span class="icon icon-flag icon-flag-dk"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) </span> } <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { <span class="icon icon-flag icon-flag-de"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) </span> } <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { <span class="icon icon-flag icon-flag-fr"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) </span> } <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { <span class="icon icon-flag icon-flag-is"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) </span> } <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg"))) { <span class="icon icon-flag icon-flag-no"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg")) </span> } <a href="http://www.smyrilline.no">@Translate("Translate_Lang_NO")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg"))) { <span class="icon icon-flag icon-flag-se"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg")) </span> } <a href="http://www.smyrilline.se">@Translate("Translate_Lang_SE")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { <span class="icon icon-flag icon-flag-nl"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) </span> } <a href="http://www.smyrilline.nl">@Translate("Translate_Lang_NL")</a></li></ul></li></ul><ul id="primaryNavigation"> @RenderNavigation(new { template = "li.xslt", expandmode = "all", id = "primaryNavigation", startlevel = 1, endlevel = 3 }) <li id="topSearch"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </a></li><li id="topBook"> @if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Trip")</a> } else { <a href='@GetString("Item.Area.NavigationBookLink")'>@Translate("Translate_Book_Trip")</a> } </li><li id="mobileMenuClose"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { <span class="icon icon-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) </span> } </li></ul><form id="searchForm" method="get" action='/Default.aspx?Id=@GetString("Item.Area.SearchPage")'><input type="hidden" name="id" value='@GetString("Item.Area.SearchPage")'><div class="input-wrap"><label for="q">@Translate("Translate_Search_label")</label><input type="text" id="q" name="q" placeholder='@Translate("Translate_Search_placeholder")' autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><button type="submit" aria-label="Search"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) </span> } </button></div></form></nav></text> } @GetValue("DwContent(header)") @RenderSnippet("TabHeader") @using System.Collections.Generic; @{ Dynamicweb.Content.PageService pageService = new Dynamicweb.Content.PageService(); Dynamicweb.Content.Page page = pageService.GetPage(Pageview.Page.ID); Dynamicweb.Content.Page tabParentPage = page.Parent.Parent; Dynamicweb.Content.Page tabParentParentPage = tabParentPage.Parent; Dynamicweb.Content.ParagraphService paragraphService = new Dynamicweb.Content.ParagraphService(); List<Dynamicweb.Content.Paragraph> parentPageParagraphs = (List<Dynamicweb.Content.Paragraph>)paragraphService.GetParagraphsByPageId(tabParentPage.ID); Dynamicweb.Content.Paragraph headerParagraph = parentPageParagraphs[0]; string pageProductID = System.Web.HttpContext.Current.Request.QueryString["ProductID"]; string pageType = System.Web.HttpContext.Current.Request.QueryString["type"]; if (pageProductID == null && pageType == null) { <text> @SnippetStart("HeadTags") <meta name="robots" content="noindex,nofollow"> @SnippetEnd("HeadTags") </text> } } @SnippetStart("TabHeader") <text> @RenderParagraphContent(headerParagraph.ID) </text> @SnippetEnd("TabHeader") @SnippetStart("TabName") @GetString("Item.Header") @SnippetEnd("TabName") @if (pageProductID != null && pageType != null) { <section class="section section-tabs section-dark"><div class="content"><h2>@tabParentPage.MenuText</h2><div class="tab-contents"><div class="content js-active"><ul> @foreach (var productOrGroup in GetLoop("Item.ProductsOrGroups")) { if (pageType == "route") { if (productOrGroup.GetString("Ecom:Product.ID") == pageProductID && productOrGroup.GetBoolean("Ecom:Product.IsActive")) { <li><h3>@productOrGroup.GetString("Ecom:Product.Name")</h3> @productOrGroup.GetString("Ecom:Product.ShortDescription") </li> @SnippetStart("TabReadMoreContent") <div class="readmore-content js-active" data-readmore-content='readmore-@productOrGroup.GetString("Ecom:Product.Name").ToLower().Replace(" ","-")'><span class="header">@tabParentParentPage.MenuText, @productOrGroup.GetString("Ecom:Product.Name")</span><ul class="info"> @if (!string.IsNullOrWhiteSpace(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Duration_days.Value"))) { <li><span class="header">@Translate("Translate_Duration_days")</span><span class="value">@productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Duration_days.Value")</span></li> } @if (!string.IsNullOrWhiteSpace(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Accommodation_types.Value"))) { <li><span class="header">@Translate("Translate_Accommodation_type")</span><span class="value">@productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Accommodation_types.OptionLabel")</span></li> } @if (!string.IsNullOrWhiteSpace(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Period1_start.Value"))) { <li><span class="header">@Translate("Translate_Available_in_season_label") @productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Available_in_season.OptionLabel")</span><span class="value"> @productOrGroup.GetDate("Ecom:Product.CategoryField.explorerroutes.Period1_start.Value").ToString("dd.MM.yy") - @productOrGroup.GetDate("Ecom:Product.CategoryField.explorerroutes.Period1_end.Value").ToString("dd.MM.yy") @if (productOrGroup.GetDate("Ecom:Product.CategoryField.explorerroutes.Period2_start.Value").ToString("yyyy") != "2999") {<text>/ @productOrGroup.GetDate("Ecom:Product.CategoryField.explorerroutes.Period2_start.Value").ToString("dd.MM.yy") - @productOrGroup.GetDate("Ecom:Product.CategoryField.explorerroutes.Period_2_end.Value").ToString("dd.MM.yy")</text>} </span></li> } </ul> @if (!string.IsNullOrWhiteSpace(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Map.Value"))) { if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Map.Value")))) { <div class="map"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Map.Value"))) </div> } } @{ string[] paragraphIDs = @productOrGroup.GetString("Ecom:Product.CategoryField.explorerroutes.Route_day_descriptions.Value").Split(",".ToCharArray()); } <ul class="descriptions"> @foreach (string paragraphID in paragraphIDs) { int pid = Convert.ToInt32(paragraphID); <li data-pid='@pid'>@RenderParagraphContent(pid)</li> } </ul> @productOrGroup.GetString("Ecom:Product.LongDescription") <a href="/@Pageview.Area.Item[" navigationbooklink"]"="" class="button button-primary"><span class="text">Book Explorer Plus Pakken</span></a></div> @SnippetEnd("TabReadMoreContent") } } else { foreach (var product in productOrGroup.GetLoop("Products")) { if (product.GetString("Ecom:Product.ID") == pageProductID && product.GetBoolean("Ecom:Product.IsActive")) { if (pageType == "hotel") { <li class="hotel"><h3>@product.GetString("Ecom:Product.Name")</h3><div class="image-wrap"><img src='@product.GetString("Ecom:Product.ImageSmall.Clean")' alt='@product.GetString("Ecom:Product.Name")'></div><div class="content-wrap"> @product.GetString("Ecom:Product.ShortDescription") <p><span class="header">@Translate("Translate_Hotel_contact")</span><br> @product.GetString("Ecom:Product.CategoryField.Accommodation.Address.Value.Clean") <br><a href="tel:@product.GetString(" ecom:product.categoryfield.accommodation.phone_no.value.clean")"=""> @product.GetString("Ecom:Product.CategoryField.Accommodation.Phone_no.Value.Clean") </a><br><a href="http://@product.GetString(" ecom:product.categoryfield.accommodation.website_address.value.clean")"="" target="_blank"> @product.GetString("Ecom:Product.CategoryField.Accommodation.Website_address.Value.Clean") </a></p></div></li> @SnippetStart("TabReadMoreContent") <div class="readmore-content js-active" data-readmore-content='readmore-@product.GetString("Ecom:Product.Name").ToLower().Replace(" ","-")'><span class="header">@product.GetString("Ecom:Product.Name")</span> @product.GetString("Ecom:Product.LongDescription") <a href="" class="button button-primary" style="border: 3px solid red;"><span class="text">Book Explorer Plus Pakken</span></a></div> @SnippetEnd("TabReadMoreContent") } else if (pageType == "excursion") { <li class="excursion"><h3>@product.GetString("Ecom:Product.Name") (@product.GetString("Ecom:Product.CategoryField.excursions.Day_of_week.OptionLabel"))</h3><div class="image-wrap"><img src='@product.GetString("Ecom:Product.ImageSmall.Clean")' alt='@product.GetString("Ecom:Product.Name")'></div><div class="content-wrap"><p><span class="header">@Translate("Translate_Duration")</span><br> @product.GetString("Ecom:Product.CategoryField.excursions.Duration.Value") </p><p><span class="header">@Translate("Translate_Included")</span><br> @product.GetString("Ecom:Product.CategoryField.excursions.Included.Value") </p><p><span class="header">@Translate("Translate_Available_in_season_label")</span><br> @product.GetString("Ecom:Product.CategoryField.excursions.Available_in_season.OptionLabel") </p></div></li> @SnippetStart("TabReadMoreContent") <div class="readmore-content js-active" data-readmore-content='readmore-@product.GetString("Ecom:Product.Name").ToLower().Replace(" ","-")'><span class="header">@product.GetString("Ecom:Product.Name")</span> @product.GetString("Ecom:Product.LongDescription") </div> @SnippetEnd("TabReadMoreContent") } } } } } </ul></div></div><div class="tab-contents-readmore-content"> @RenderSnippet("TabReadMoreContent") </div></div></section> } else { // If we do not have the right parameters - it's just the search acccessing the page - and then we want to redirect string redirectPath = "/Default.aspx?Id=" + tabParentPage.ID + "&tab=" + page.MenuText.ToLower().Replace(" ",""); System.Web.HttpContext.Current.Response.Redirect(redirectPath); } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CartParagraph"))) { <text>@RenderParagraphContent(GetInteger("Item.Area.CartParagraph"))</text> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FooterPartial"))) { string footerPartial = GetString("Item.Area.FooterPartial"); switch (footerPartial) { case "brandan": <text><footer id="footer"> <!--<div id="footer-logo"><a href="/" id="bottomLogo" class="footer-center"><img src="/Files/Templates/Designs/brandan/images/HotelBrandan_logo_neg.png"></a></div>--> <div id="footer-info"> <div id="footer-info-container"> <div id="footer-info-item"> <label>@Translate("Translate_Address")</label> <ul> <li>@GetString("Item.Area.Name")</li> <li>@GetString("Item.Area.Address")</li> <li>@GetString("Item.Area.Zipcode")</li> <li>FAROE ISLANDS</li> <li><a href="tel:@GetString(" item.area.phone")"="">@GetString("Item.Area.Phone")</a></li> <li><a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a></li> <li>@GetString("Item.Area.CVR")</li> </ul> </div> <div id="footer-info-item"> <label>@Translate("Translate_Partners")</label> <ul> <li><a href="//SMYRILLINE.COM">SMYRILLINE.COM</a></li> <li><a href="//HAFNIA.FO">HAFNIA.FO</a></li> <li><a href="//KATRINA.FO">KATRINA.FO</a></li> <li><a href="//KASPAR.FO">KASPAR.FO</a></li> <!--<li><a href="#">CAR RENTAL</a></li>--> <li><a href="//excursions.fo/">EXCURSIONS</a></li> </ul> </div> </div> </div> <div id="footer-location"> <div class="footer-center"> <div> <label>@Translate("Translate_WeAreHere")</label> <a href="https://goo.gl/maps/cx2uekfPgXA2" target="_blank"><img src="/Files/Templates/Designs/brandan/images/Kort_2.png"></a> </div> </div> </div> </footer></text> break; } } else { <text><footer id="footer"><nav id="footerNavigation"><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_1Header")</li> @foreach (var li in GetLoop("Item.Area.FooterColumn_1Content")) { <li> @li.GetString("Item.Area.FooterColumn_1Content.Text").Replace("<p>", "").Replace("</p>", "") </li> } </ul><ul class="footer-info arrivals-departures"><li class="header">@GetString("Item.Area.FooterColumn_2Header")</li><li> @RemoteDomReader.RemoteDom.Read("http://smyriltest.com/", "#sailing-schedule-module") </li></ul><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_3Header")</li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { <span class="icon icon-phone"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) </span> } <a href="@linkTel">@GetString("Item.Area.NavigationPhoneNumber")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg"))) { <span class="icon icon-mail"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg")) </span> } @{ string linkMail = "mailto:" + GetString("Item.Area.NavigationEmail").Replace(" ", ""); } <a href="@linkMail">@GetString("Item.Area.NavigationEmail")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg"))) { <span class="icon icon-pin"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg")) </span> } <a href='/@GetString("Item.Area.NavigationOfficesLink")'>@Translate("Translate_Our_offices")</a></li><li> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg"))) { <span class="icon icon-cargo"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg")) </span> } <a href='/@GetString("Item.Area.NavigationCargoLink")'>@Translate("Translate_Order_cargo")</a></li></ul></nav><address id="address"><a href="/" id="bottomLogo"><img src="/Files/Templates/Designs/smyrilline/./images/smyril_line-logo.png" alt="Smyril Line"></a><span class="line"> @GetString("Item.Area.Name") </span><span>&bull;</span><span class="line"> @GetString("Item.Area.Address") </span><span>&bull;</span><span class="line"> @GetString("Item.Area.Zipcode") @GetString("Item.Area.City") </span> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { <span>&bull;</span><span class="line"> @GetString("Item.Area.CVR") </span> } <span>&bull;</span><span class="line"> @{ string linkTelAddress = "tel:" + GetString("Item.Area.Phone").Replace(" ", ""); } T: <a href="@linkTelAddress">@GetString("Item.Area.Phone")</a></span><span>&bull;</span><span class="line"> E: <a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a></span></address> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AgentLogin_URL"))) { <div id="agentLogin"><a href='@GetString("Item.Area.AgentLogin_URL")' target="_blank">@GetString("Item.Area.AgentLoginLinkText")</a></div> } </footer></text> } @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-cookies-accepted"] == null) { <div id="cookieBar"><div id="cookieBarInner"><p>@GetString("Item.Area.CookieBarText")</p><a class="button button-secondary">@GetString("Item.Area.CookieBarButtonText")</a></div></div> } else { <script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'smyrilline-cookies-accepted' }); </script> } </div><script src='/Files/Templates/Designs/smyrilline/js/smyrilline.min.js?v=@jsEditDate' async="" defer=""></script><script> var canvasLetters = []; </script> @RenderSnippet("jsbottom") <script> WebFontConfig = { custom: { families: ['Manus'] }, fontactive: function (familyName, fvd) { if (familyName == 'Manus') { drawLetters(); } } }; (function (d) { var wf = d.createElement('script'), s = d.scripts[0]; wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; wf.async = true; s.parentNode.insertBefore(wf, s); })(document); function drawLetters() { for (var a = 0; a < canvasLetters.length; a++) { drawLetter(canvasLetters[a]); } } function drawLetter(canvasLetter) { var canvas = document.getElementById(canvasLetter.id); if (canvas != undefined) { var context = canvas.getContext('2d'); context.font = '400 ' + canvasLetter.fontSize + ' Manus'; if (canvasLetter.fillStyle != undefined) { context.fillStyle = canvasLetter.fillStyle; } /*context.textBaseline = 'top';*/ context.fillText(canvasLetter.letter, canvasLetter.position.x, canvasLetter.position.y); if (canvasLetter.image != undefined) { var img = new Image(); img.src = canvasLetter.image; if (img.complete) { drawImage(canvas, context, img); } else { img.addEventListener('load', function () { drawImage(canvas, context, img); }); } } } } function drawImage(canvas, context, image) { context.globalCompositeOperation = 'source-in'; context.drawImage(image, 0, 0, canvas.width, canvas.height); context.globalCompositeOperation = 'source-over'; } </script> @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-styles"] == null) { System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Value = "1"; System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Expires = DateTime.Now.AddDays(100); <noscript id="deferred-styles"><link rel="stylesheet" href="/files/templates/designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style3"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { <link rel="stylesheet" href="@GetString(" item.area.addcssfile")?v="@addCssEditDate" "="" id="addStyle3"> } </noscript><script> var loadDeferredStyles = function () { var addStylesNode = document.getElementById("deferred-styles"); var replacement = document.createElement("div"); replacement.innerHTML = addStylesNode.textContent; document.body.appendChild(replacement) addStylesNode.parentElement.removeChild(addStylesNode); }; var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; if (raf) raf(function () { window.setTimeout(loadDeferredStyles, 0); }); else window.addEventListener('load', loadDeferredStyles); </script> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LiveHelpScript"))) { <script type="text/javascript"> window.lhnJsSdkInit = function () { lhnJsSdk.setup = { application_id: "c89fabc8-6d29-4a54-b09c-6660fb734cfa", application_secret: "67d786d94ba24787bad6a1a86a1f3a0909f64abb3cec476c9e" }; lhnJsSdk.controls = [{ type: "hoc", id: "@GetString("Item.Area.LiveHelpScript")" }]; lhnJsSdk.dictionary = { agentConnecting: '@Translate("Translate_help_agentConnecting")', callbackMenu: '@Translate("Translate_help_callbackMenu")', callbackTitle: '@Translate("Translate_help_callbackTitle")', cancel: '@Translate("Translate_help_cancel")', chatMenu: '@Translate("Translate_help_chatMenu")', chatTitle: '@Translate("Translate_help_chatTitle")', email: '@Translate("Translate_help_email")', endChat: '@Translate("Translate_help_endChat")', endChatConfirm: '@Translate("Translate_help_endChatConfirm")', inviteCancel: '@Translate("Translate_help_inviteCancel")', inviteStart: '@Translate("Translate_help_inviteStart")', knowledgeMenu: '@Translate("Translate_help_knowledgeMenu")', knowledgeTitle: '@Translate("Translate_help_knowledgeTitle")', livechat: '@Translate("Translate_help_livechat")', livechat_offline: '@Translate("Translate_help_livechat_offline")', newChatTitle: '@Translate("Translate_help_newChatTitle")', offlineTitle: '@Translate("Translate_help_offlineTitle")', send: '@Translate("Translate_help_send")', startChat: '@Translate("Translate_help_startChat")', submit: '@Translate("Translate_help_submit")', surveyTitle: '@Translate("Translate_help_surveyTitle")', ticketMenu: '@Translate("Translate_help_ticketMenu")', ticketTitle: '@Translate("Translate_help_ticketTitle")', }; }; (function (d, s) { var newjs, lhnjs = d.getElementsByTagName(s)[0]; newjs = d.createElement(s); newjs.src = "https://developer.livehelpnow.net/js/sdk/lhn-jssdk-current.min.js"; lhnjs.parentNode.insertBefore(newjs, lhnjs); }(document, "script")); </script> } </body></html>