Error executing template "Designs/smyrilline/_parsed/textpage.parsed.cshtml"
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 212.55.50.21:80
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at CompiledRazorTemplates.Dynamic.RazorEngine_b72f543324f44f2b84ba5373bd078576.Execute() in E:\dynamicweb.net\solutions\smyrilline2018.dw9.dynamicweb-cms.com\Files\Templates\Designs\smyrilline\_parsed\textpage.parsed.cshtml:line 1498
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 <!DOCTYPE html><html lang='@GetString("LongLang")'> 2 @{ 3 string templateName = GetGlobalValue("Global:Pageview.LayoutTemplate").Replace(".cshtml", "").Replace(".html", "").Replace(".", "").ToLower(); 4 string sfu = Pageview.SearchFriendlyUrl; 5 string definedLang = GetString("LongLang").Split('-')[1].ToLower(); 6 7 if (sfu.IndexOf("?") != -1) { 8 sfu = sfu.Substring(0, sfu.IndexOf("?")); 9 } 10 11 System.Web.HttpContext.Current.Items["_pageNavigationBookLink"] = GetString("Item.Page.NavigationBookLink"); 12 } 13 <head><meta charset='@GetString("CharSet")'><title>@GetValue("Title")</title><script> 14 dataLayer = [{ 15 'ipaddress': '@System.Web.HttpContext.Current.Request.UserHostAddress', 16 'source': 'website' 17 }]; 18 </script> 19 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Favicon"))) { 20 string shortcutIcon = GetString("Item.Area.Favicon"); 21 <link rel="shortcut icon" href="@shortcutIcon"> 22 } 23 @if (System.Web.HttpContext.Current.Request.Url.Host.Contains(".by.gotcha.dk")) { 24 <meta name="robots" content="noindex,nofollow"> 25 } 26 <link rel="canonical" href="@sfu"><meta name="viewport" content="width=device-width, initial-scale=1.0"> 27 @GetString("MetaTags") 28 @RenderSnippet("HeadTags") 29 @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Title"))) { 30 <meta property="og:title" content='@GetString("Item.Page.Title")'> 31 } else if (!string.IsNullOrWhiteSpace(GetString("Title"))) { 32 <meta property="og:title" content='@GetString("Title")'> 33 } 34 <meta property="og:type" content="website"> 35 @{ 36 string primarydomain = GetGlobalValue("Global:Request.Scheme") + "://" + GetGlobalValue("Global:Area.Primarydomain"); 37 } 38 @if (GetInteger("DwAreaFirstActivePageID") == @Pageview.Page.ID) { 39 <meta property="og:url" content='@primarydomain@("/")'> 40 } else { 41 <meta property="og:url" content='@Pageview.SearchFriendlyUrl'> 42 } 43 @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Image"))) { 44 <meta property="og:image" content='@primarydomain@GetString("Item.Page.Image")'> 45 } else if (!string.IsNullOrWhiteSpace(GetString("Item.Area.DefaultImage"))) { 46 <meta property="og:image" content='@primarydomain@GetString("Item.Area.DefaultImage")'> 47 } 48 @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.Description"))) { 49 <meta property="og:description" content='@GetString("Item.Page.Description")'> 50 } else if (!string.IsNullOrWhiteSpace(GetString("Meta.Description"))) { 51 <meta property="og:description" content='@GetString("Meta.Description")'> 52 } 53 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.SiteName"))) { 54 <meta property="og:site_name" content='@GetString("Item.Area.SiteName")'> 55 } 56 @foreach (var tag in GetLoop("Item.Area.MiscTags")) { 57 @tag.GetString("Item.Area.MiscTags.Tag") 58 } 59 @foreach (var preloadFile in GetLoop("Item.Area.Preload")) { 60 if (preloadFile.GetBoolean("Item.Area.Preload.Crossorigin")) { 61 if (!string.IsNullOrWhiteSpace(preloadFile.GetString("Item.Area.Preload.Type"))) { 62 <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")'> 63 } else { 64 <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")' crossorigin=""> 65 } 66 } else { 67 if (!string.IsNullOrWhiteSpace(preloadFile.GetString("Item.Area.Preload.Type"))) { 68 <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")' type='@preloadFile.GetString("Item.Area.Preload.Type")'> 69 } else { 70 <link rel="preload" href='@preloadFile.GetString("Item.Area.Preload.File")' as='@preloadFile.GetString("Item.Area.Preload.As")'> 71 } 72 } 73 } 74 @foreach (var prefetchUrl in GetLoop("Item.Area.Prefetch")) { 75 <link rel="dns-prefetch" href="@prefetchUrl.GetString(" item.area.prefetch.loadurl")"=""> 76 } 77 @foreach (var preconnectUrl in GetLoop("Item.Area.Preconnect")) { 78 <link rel="preconnect" href="@preconnectUrl.GetString(" item.area.preconnect.loadurl")"="" crossorigin=""> 79 } 80 @{ 81 string cssEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/smyrilline.min.css")).ToString(); 82 string jsEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/js/smyrilline.min.js")).ToString(); 83 string addCssEditDate = ""; 84 85 cssEditDate = cssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", "").Replace(".",""); 86 jsEditDate = jsEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", "").Replace(".",""); 87 88 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { 89 addCssEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.AddCssFile"))).ToString(); 90 addCssEditDate = addCssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", "").Replace(".",""); 91 } 92 } 93 <script src="http://openexchangerates.github.io/money.js/money.min.js"></script><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"> 94 @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-styles"] != null || System.Web.HttpContext.Current.Request.QueryString["oldschoolcss"] != null) { 95 <link rel="stylesheet" href="/Files/Templates/Designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style1"> 96 97 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { 98 string addCssPath = @GetString("Item.Area.AddCssFile") + "?v=" + addCssEditDate; 99 100 <link rel="stylesheet" href="@addCssPath" id="addStyle1"> 101 } 102 } 103 else { 104 if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/" + templateName + ".critical.css"))) { 105 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/css/" + templateName + ".critical.css"))</text> 106 } else { 107 <link rel="stylesheet" href="/Files/Templates/Designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style2"> 108 } 109 110 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { 111 string addCssPath2 = @GetString("Item.Area.AddCssFile") + "?v=" + addCssEditDate; 112 113 <link rel="stylesheet" href="@addCssPath2" id="addStyle2"> 114 } 115 } 116 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { 117 <script> 118 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 119 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 120 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 121 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 122 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.Google_Tag_Manager_ID")'); 123 </script> 124 } 125 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID_2"))) { 126 <script> 127 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 128 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 129 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 130 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 131 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.Google_Tag_Manager_ID_2")'); 132 </script> 133 } 134 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID_3"))) { 135 <script> 136 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 137 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 138 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 139 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 140 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.Google_Tag_Manager_ID_3")'); 141 </script> 142 } 143 @{ 144 string linkTel = "tel:" + GetString("Item.Area.NavigationPhoneNumber").Replace(" ", ""); 145 } 146 @{ 147 string bodyClass = "preload page-template-" + templateName; 148 149 if (!string.IsNullOrWhiteSpace("Item.Area.BodyClass")) { 150 bodyClass += " " + GetString("Item.Area.BodyClass"); 151 } 152 } 153 </head><body class="@bodyClass" 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"> 154 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { 155 <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> 156 } 157 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID_2"))) { 158 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.Google_Tag_Manager_ID_2")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 159 } 160 @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID_3"))) { 161 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.Google_Tag_Manager_ID_3")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 162 } 163 <div id="pageWrap"> 164 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.NavigationPartial"))) { 165 string navigationPartial = GetString("Item.Area.NavigationPartial"); 166 167 switch (navigationPartial) { 168 169 case "husagardur": 170 <text><nav id="navigation"><a href="/" id="topLogo"> 171 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 172 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 173 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 174 } 175 } else { 176 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 177 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 178 } 179 } 180 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 181 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 182 <span class="icon icon-phone"> 183 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 184 </span> 185 } 186 @GetString("Item.Area.NavigationPhoneNumber") 187 </a></li><li id="mobileLanguageSelect"><a> 188 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 189 <span class="icon icon-flag icon-flag-@(definedLang)"> 190 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 191 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 192 } 193 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 194 <span class="icon icon-arrow-down"> 195 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 196 </span> 197 } 198 </a><ul id="mobileOtherLanguages"><li> 199 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 200 <span class="icon icon-flag icon-flag-fo"> 201 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 202 </span> 203 } 204 <a href="http://www.husagardur.fo/">@Translate("Translate_Lang_FO")</a></li><li> 205 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 206 <span class="icon icon-flag icon-flag-gb"> 207 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 208 </span> 209 } 210 <a href="http://en.husagardur.fo/">@Translate("Translate_Lang_GB")</a></li><li> 211 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 212 <span class="icon icon-flag icon-flag-de"> 213 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 214 </span> 215 } 216 <a href="http://de.husagardur.fo/">@Translate("Translate_Lang_DE")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 217 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 218 <span class="icon icon-menu"> 219 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 220 </span> 221 } 222 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 223 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 224 <span class="icon icon-phone"> 225 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 226 </span> 227 } 228 @GetString("Item.Area.NavigationPhoneNumber") 229 </a></li> 230 @RenderNavigation(new { 231 template = "li.xslt", 232 expandmode = "none", 233 id = "secondaryNavigation", 234 startlevel = 1, 235 endlevel = 1, 236 parenttag = "secondarynavigation" 237 }) 238 <li id="languageSelect"><a> 239 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 240 <span class="icon icon-flag icon-flag-@(definedLang)"> 241 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 242 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 243 } 244 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 245 <span class="icon icon-arrow-down"> 246 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 247 </span> 248 } 249 </a><ul id="otherLanguages"><li> 250 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 251 <span class="icon icon-flag icon-flag-fo"> 252 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 253 </span> 254 } 255 <a href="http://www.husagardur.fo/">@Translate("Translate_Lang_FO")</a></li><li> 256 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 257 <span class="icon icon-flag icon-flag-gb"> 258 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 259 </span> 260 } 261 <a href="http://en.husagardur.fo/">@Translate("Translate_Lang_GB")</a></li><li> 262 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 263 <span class="icon icon-flag icon-flag-de"> 264 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 265 </span> 266 } 267 <a href="http://de.husagardur.fo/">@Translate("Translate_Lang_DE")</a></li></ul></li></ul><ul id="primaryNavigation"> 268 @RenderNavigation(new { 269 template = "li.xslt", 270 expandmode = "all", 271 id = "primaryNavigation", 272 startlevel = 1, 273 endlevel = 3 274 }) 275 <li id="topBook"> 276 @{ 277 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 278 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Table")</a> 279 } else { 280 bool blankHu = false; 281 string bookLinkHu = ""; 282 283 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 284 bookLinkHu = GetString("Item.Page.NavigationBookLink"); 285 } else { 286 bookLinkHu = GetString("Item.Area.NavigationBookLink"); 287 } 288 289 if (bookLinkHu.IndexOf("http") != -1) { 290 blankHu = true; 291 } else { 292 if (bookLinkHu.Length > 0) { 293 if (bookLinkHu.Substring(0,1) != "/") { 294 bookLinkHu = "/" + bookLinkHu; 295 } 296 } 297 } 298 299 if (blankHu) { 300 <a href='@bookLinkHu' target="_blank">@Translate("Translate_Book_Table")</a> 301 } else { 302 <a href='@bookLinkHu'>@Translate("Translate_Book_Table")</a> 303 } 304 } 305 } 306 </li><li id="mobileMenuClose"> 307 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 308 <span class="icon icon-close"> 309 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 310 </span> 311 } 312 </li></ul></nav></text> 313 314 break; 315 316 case "kaspar": 317 <text><nav id="navigation"><a href="/" id="topLogo"> 318 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 319 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 320 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 321 } 322 } else { 323 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 324 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 325 } 326 } 327 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 328 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 329 <span class="icon icon-phone"> 330 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 331 </span> 332 } 333 @GetString("Item.Area.NavigationPhoneNumber") 334 </a></li><li id="mobileLanguageSelect"><a> 335 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 336 <span class="icon icon-flag icon-flag-@(definedLang)"> 337 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 338 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 339 } 340 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 341 <span class="icon icon-arrow-down"> 342 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 343 </span> 344 } 345 </a><ul id="mobileOtherLanguages"><li> 346 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 347 <span class="icon icon-flag icon-flag-fo"> 348 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 349 </span> 350 } 351 <a href="https://www.kaspar.fo/">@Translate("Translate_Lang_FO")</a></li><li> 352 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 353 <span class="icon icon-flag icon-flag-gb"> 354 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 355 </span> 356 } 357 <a href="https://en.kaspar.fo/">@Translate("Translate_Lang_GB")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 358 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 359 <span class="icon icon-menu"> 360 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 361 </span> 362 } 363 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 364 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 365 <span class="icon icon-phone"> 366 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 367 </span> 368 } 369 @GetString("Item.Area.NavigationPhoneNumber") 370 </a></li> 371 @RenderNavigation(new { 372 template = "li.xslt", 373 expandmode = "none", 374 id = "secondaryNavigation", 375 startlevel = 1, 376 endlevel = 1, 377 parenttag = "secondarynavigation" 378 }) 379 <li id="languageSelect"><a> 380 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 381 <span class="icon icon-flag icon-flag-@(definedLang)"> 382 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 383 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 384 } 385 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 386 <span class="icon icon-arrow-down"> 387 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 388 </span> 389 } 390 </a><ul id="otherLanguages"><li> 391 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 392 <span class="icon icon-flag icon-flag-fo"> 393 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 394 </span> 395 } 396 <a href="https://www.kaspar.fo/">@Translate("Translate_Lang_FO")</a></li><li> 397 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 398 <span class="icon icon-flag icon-flag-gb"> 399 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 400 </span> 401 } 402 <a href="https://en.kaspar.fo/">@Translate("Translate_Lang_GB")</a></li></ul></li></ul><ul id="primaryNavigation"> 403 @RenderNavigation(new { 404 template = "li.xslt", 405 expandmode = "all", 406 id = "primaryNavigation", 407 startlevel = 1, 408 endlevel = 3 409 }) 410 <li id="topBook"> 411 @{ 412 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 413 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Kaspar")</a> 414 } else { 415 bool blankHu = false; 416 string bookLinkHu = ""; 417 418 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 419 bookLinkHu = GetString("Item.Page.NavigationBookLink"); 420 } else { 421 bookLinkHu = GetString("Item.Area.NavigationBookLink"); 422 } 423 424 if (bookLinkHu.IndexOf("http") != -1) { 425 blankHu = true; 426 } else { 427 if (bookLinkHu.Length > 0) { 428 if (bookLinkHu.Substring(0,1) != "/") { 429 bookLinkHu = "/" + bookLinkHu; 430 } 431 } 432 } 433 434 if (blankHu) { 435 <a href='@bookLinkHu' target="_blank">@Translate("Translate_Book_Kaspar")</a> 436 } else { 437 <a href='@bookLinkHu'>@Translate("Translate_Book_Kaspar")</a> 438 } 439 } 440 } 441 </li><li id="mobileMenuClose"> 442 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 443 <span class="icon icon-close"> 444 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 445 </span> 446 } 447 </li></ul></nav></text> 448 449 break; 450 451 case "brandan": 452 <text><nav id="navigation"><a href="/" id="topLogo"> 453 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 454 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 455 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 456 } 457 } else { 458 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 459 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 460 } 461 } 462 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 463 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 464 <span class="icon icon-phone"> 465 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 466 </span> 467 } 468 @GetString("Item.Area.NavigationPhoneNumber") 469 </a></li><li id="topMobileSearch"><a> 470 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 471 <span class="icon icon-search"> 472 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 473 </span> 474 } 475 </a></li><li id="mobileLanguageSelect"><a> 476 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 477 <span class="icon icon-flag icon-flag-@(definedLang)"> 478 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 479 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 480 } 481 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 482 <span class="icon icon-arrow-down"> 483 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 484 </span> 485 } 486 </a><ul id="mobileOtherLanguages"><li> 487 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 488 <span class="icon icon-flag icon-flag-fo"> 489 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 490 </span> 491 } 492 <a href="http://www.brandan.fo">@Translate("Translate_Lang_FO")</a></li><li> 493 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 494 <span class="icon icon-flag icon-flag-gb"> 495 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 496 </span> 497 } 498 <a href="http://www.hotelbrendan.com">@Translate("Translate_Lang_GB")</a></li><li> 499 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 500 <span class="icon icon-flag icon-flag-de"> 501 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 502 </span> 503 } 504 <a href="http://www.hotelbrendan.de">@Translate("Translate_Lang_DE")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 505 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 506 <span class="icon icon-menu"> 507 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 508 </span> 509 } 510 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 511 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 512 <span class="icon icon-phone"> 513 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 514 </span> 515 } 516 @GetString("Item.Area.NavigationPhoneNumber") 517 </a></li> 518 @RenderNavigation(new { 519 template = "li.xslt", 520 expandmode = "none", 521 id = "secondaryNavigation", 522 startlevel = 1, 523 endlevel = 1, 524 parenttag = "secondarynavigation" 525 }) 526 <li id="languageSelect"><a> 527 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 528 <span class="icon icon-flag icon-flag-@(definedLang)"> 529 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 530 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 531 } 532 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 533 <span class="icon icon-arrow-down"> 534 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 535 </span> 536 } 537 </a><ul id="otherLanguages"><li> 538 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 539 <span class="icon icon-flag icon-flag-fo"> 540 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 541 </span> 542 } 543 <a href="http://www.brandan.fo">@Translate("Translate_Lang_FO")</a></li><li> 544 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 545 <span class="icon icon-flag icon-flag-gb"> 546 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 547 </span> 548 } 549 <a href="http://www.hotelbrendan.com">@Translate("Translate_Lang_GB")</a></li><li> 550 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 551 <span class="icon icon-flag icon-flag-de"> 552 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 553 </span> 554 } 555 <a href="http://www.hotelbrendan.de">@Translate("Translate_Lang_DE")</a></li></ul></li></ul><ul id="primaryNavigation"> 556 @RenderNavigation(new { 557 template = "li.xslt", 558 expandmode = "all", 559 id = "primaryNavigation", 560 startlevel = 1, 561 endlevel = 3 562 }) 563 <li id="topSearch"><a> 564 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 565 <span class="icon icon-search"> 566 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 567 </span> 568 } 569 </a></li><li id="topBook"> 570 @{ 571 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 572 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Room")</a> 573 } else { 574 bool blankB = false; 575 string bookLinkB = ""; 576 577 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 578 bookLinkB = GetString("Item.Page.NavigationBookLink"); 579 } else { 580 bookLinkB = GetString("Item.Area.NavigationBookLink"); 581 } 582 583 if (bookLinkB.IndexOf("http") != -1) { 584 blankB = true; 585 } else { 586 if (bookLinkB.Length > 0) { 587 if (bookLinkB.Substring(0,1) != "/") { 588 bookLinkB = "/" + bookLinkB; 589 } 590 } 591 } 592 593 if (blankB) { 594 <a href='@bookLinkB' target="_blank">@Translate("Translate_Book_Room")</a> 595 } else { 596 <a href='@bookLinkB'>@Translate("Translate_Book_Room")</a> 597 } 598 } 599 } 600 </li><li id="mobileMenuClose"> 601 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 602 <span class="icon icon-close"> 603 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 604 </span> 605 } 606 </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"> 607 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 608 <span class="icon icon-search"> 609 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 610 </span> 611 } 612 </button></div></form></nav></text> 613 614 break; 615 616 case "hafnia": 617 <text><nav id="navigation"><a href="/" id="topLogo"> 618 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 619 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 620 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 621 } 622 } else { 623 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 624 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 625 } 626 } 627 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 628 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 629 <span class="icon icon-phone"> 630 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 631 </span> 632 } 633 @GetString("Item.Area.NavigationPhoneNumber") 634 </a></li><li id="topMobileSearch"><a> 635 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 636 <span class="icon icon-search"> 637 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 638 </span> 639 } 640 </a></li><li id="mobileLanguageSelect"><a> 641 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 642 <span class="icon icon-flag icon-flag-@(definedLang)"> 643 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 644 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 645 } 646 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 647 <span class="icon icon-arrow-down"> 648 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 649 </span> 650 } 651 </a><ul id="mobileOtherLanguages"><li> 652 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 653 <span class="icon icon-flag icon-flag-fo"> 654 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 655 </span> 656 } 657 <a href="http://www.hafnia.fo">@Translate("Translate_Lang_FO")</a></li><li> 658 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 659 <span class="icon icon-flag icon-flag-gb"> 660 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 661 </span> 662 } 663 <a href="http://www.hafnia.fo/en">@Translate("Translate_Lang_GB")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 664 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 665 <span class="icon icon-menu"> 666 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 667 </span> 668 } 669 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 670 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 671 <span class="icon icon-phone"> 672 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 673 </span> 674 } 675 @GetString("Item.Area.NavigationPhoneNumber") 676 </a></li> 677 @RenderNavigation(new { 678 template = "li.xslt", 679 expandmode = "none", 680 id = "secondaryNavigation", 681 startlevel = 1, 682 endlevel = 1, 683 parenttag = "secondarynavigation" 684 }) 685 <li id="languageSelect"><a> 686 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 687 <span class="icon icon-flag icon-flag-@(definedLang)"> 688 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 689 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 690 } 691 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 692 <span class="icon icon-arrow-down"> 693 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 694 </span> 695 } 696 </a><ul id="otherLanguages"><li> 697 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 698 <span class="icon icon-flag icon-flag-fo"> 699 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 700 </span> 701 } 702 <a href="http://www.hafnia.fo">@Translate("Translate_Lang_FO")</a></li><li> 703 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 704 <span class="icon icon-flag icon-flag-gb"> 705 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 706 </span> 707 } 708 <a href="http://www.hafnia.fo/en">@Translate("Translate_Lang_GB")</a></li></ul></li></ul><ul id="primaryNavigation"> 709 @RenderNavigation(new { 710 template = "li.xslt", 711 expandmode = "all", 712 id = "primaryNavigation", 713 startlevel = 1, 714 endlevel = 3 715 }) 716 <li id="topSearch"><a> 717 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 718 <span class="icon icon-search"> 719 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 720 </span> 721 } 722 </a></li><li id="topBook"> 723 @{ 724 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 725 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Room")</a> 726 } else { 727 bool blankH = false; 728 string bookLinkH = ""; 729 730 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 731 bookLinkH = GetString("Item.Page.NavigationBookLink"); 732 } else { 733 bookLinkH = GetString("Item.Area.NavigationBookLink"); 734 } 735 736 if (bookLinkH.IndexOf("http") != -1) { 737 blankH = true; 738 } else { 739 if (bookLinkH.Length > 0) { 740 if (bookLinkH.Substring(0,1) != "/") { 741 bookLinkH = "/" + bookLinkH; 742 } 743 } 744 } 745 746 if (blankH) { 747 <a href='@bookLinkH' target="_blank">@Translate("Translate_Book_Room")</a> 748 } else { 749 <a href='@bookLinkH'>@Translate("Translate_Book_Room")</a> 750 } 751 } 752 } 753 </li><li id="mobileMenuClose"> 754 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 755 <span class="icon icon-close"> 756 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 757 </span> 758 } 759 </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"> 760 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 761 <span class="icon icon-search"> 762 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 763 </span> 764 } 765 </button></div></form></nav></text> 766 767 break; 768 769 case "kc": 770 <text><nav id="navigation"><a href="/" id="topLogo"> 771 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 772 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 773 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 774 } 775 } else { 776 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 777 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 778 } 779 } 780 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 781 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 782 <span class="icon icon-phone"> 783 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 784 </span> 785 } 786 @GetString("Item.Area.NavigationPhoneNumber") 787 </a></li><li id="mobileLanguageSelect"><a> 788 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 789 <span class="icon icon-flag icon-flag-@(definedLang)"> 790 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 791 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 792 } 793 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 794 <span class="icon icon-arrow-down"> 795 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 796 </span> 797 } 798 </a><ul id="mobileOtherLanguages"><li> 799 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 800 <span class="icon icon-flag icon-flag-fo"> 801 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 802 </span> 803 } 804 <a href="http://kc.fo">@Translate("Translate_Lang_FO")</a></li><li> 805 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 806 <span class="icon icon-flag icon-flag-gb"> 807 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 808 </span> 809 } 810 <a href="http://en.kc.fo">@Translate("Translate_Lang_GB")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 811 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 812 <span class="icon icon-menu"> 813 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 814 </span> 815 } 816 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 817 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 818 <span class="icon icon-phone"> 819 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 820 </span> 821 } 822 @GetString("Item.Area.NavigationPhoneNumber") 823 </a></li> 824 @RenderNavigation(new { 825 template = "li.xslt", 826 expandmode = "none", 827 id = "secondaryNavigation", 828 startlevel = 1, 829 endlevel = 1, 830 parenttag = "secondarynavigation" 831 }) 832 <li id="languageSelect"><a> 833 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 834 <span class="icon icon-flag icon-flag-@(definedLang)"> 835 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 836 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 837 } 838 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 839 <span class="icon icon-arrow-down"> 840 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 841 </span> 842 } 843 </a><ul id="otherLanguages"><li> 844 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 845 <span class="icon icon-flag icon-flag-fo"> 846 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 847 </span> 848 } 849 <a href="http://kc.fo">@Translate("Translate_Lang_FO")</a></li><li> 850 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 851 <span class="icon icon-flag icon-flag-gb"> 852 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 853 </span> 854 } 855 <a href="http://en.kc.fo">@Translate("Translate_Lang_GB")</a></li></ul></li></ul><ul id="primaryNavigation"> 856 @RenderNavigation(new { 857 template = "li.xslt", 858 expandmode = "all", 859 id = "primaryNavigation", 860 startlevel = 1, 861 endlevel = 3 862 }) 863 <li id="topBook"> 864 @{ 865 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 866 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Table")</a> 867 } else { 868 bool blankK = false; 869 string bookLinkK = ""; 870 871 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 872 bookLinkK = GetString("Item.Page.NavigationBookLink"); 873 } else { 874 bookLinkK = GetString("Item.Area.NavigationBookLink"); 875 } 876 877 if (bookLinkK.IndexOf("http") != -1) { 878 blankK = true; 879 } else { 880 if (bookLinkK.Length > 0) { 881 if (bookLinkK.Substring(0,1) != "/") { 882 bookLinkK = "/" + bookLinkK; 883 } 884 } 885 } 886 887 if (blankK) { 888 <a href='@bookLinkK' target="_blank">@Translate("Translate_Book_Table")</a> 889 } else { 890 <a href='@bookLinkK'>@Translate("Translate_Book_Table")</a> 891 } 892 } 893 } 894 </li><li id="mobileMenuClose"> 895 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 896 <span class="icon icon-close"> 897 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 898 </span> 899 } 900 </li></ul></nav></text> 901 902 break; 903 case "cargo": 904 <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"> 905 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 906 <span class="icon icon-phone"> 907 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 908 </span> 909 } 910 @GetString("Item.Area.NavigationPhoneNumber") 911 </a></li><li id="topMobileSearch"><a> 912 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 913 <span class="icon icon-search"> 914 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 915 </span> 916 } 917 </a></li><li id="mobileMenu"><a class="button button-primary"> 918 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 919 <span class="icon icon-menu"> 920 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 921 </span> 922 } 923 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 924 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 925 <span class="icon icon-phone"> 926 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 927 </span> 928 } 929 @GetString("Item.Area.NavigationPhoneNumber") 930 </a></li> 931 @RenderNavigation(new { 932 template = "li.xslt", 933 expandmode = "none", 934 id = "secondaryNavigation", 935 startlevel = 1, 936 endlevel = 1, 937 parenttag = "secondarynavigation" 938 }) 939 </ul><ul id="primaryNavigation"> 940 @RenderNavigation(new { 941 template = "li.xslt", 942 expandmode = "all", 943 id = "primaryNavigation", 944 startlevel = 1, 945 endlevel = 3 946 }) 947 <li id="topSearch"><a> 948 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 949 <span class="icon icon-search"> 950 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 951 </span> 952 } 953 </a></li><li id="mobileMenuClose"> 954 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 955 <span class="icon icon-close"> 956 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 957 </span> 958 } 959 </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"> 960 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 961 <span class="icon icon-search"> 962 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 963 </span> 964 } 965 </button></div></form></nav></text> 966 967 break; 968 case "excursions": 969 <text><nav id="navigation"><a href="/" id="topLogo"><img src='@GetString("Item.Area.DefaultImage")' alt="Excursions"></a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 970 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 971 <span class="icon icon-phone"> 972 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 973 </span> 974 } 975 @GetString("Item.Area.NavigationPhoneNumber") 976 </a></li><li id="topMobileSearch"><a> 977 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 978 <span class="icon icon-search"> 979 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 980 </span> 981 } 982 </a></li><li id="mobileLanguageSelect"><a> 983 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 984 <span class="icon icon-flag icon-flag-@(definedLang)"> 985 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 986 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 987 } 988 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 989 <span class="icon icon-arrow-down"> 990 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 991 </span> 992 } 993 </a><ul id="mobileOtherLanguages"><li> 994 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 995 <span class="icon icon-flag icon-flag-fo"> 996 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 997 </span> 998 } 999 <a href="http://www.ausfluge.fo">@Translate("Translate_Lang_DE")</a></li><li> 1000 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1001 <span class="icon icon-flag icon-flag-gb"> 1002 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1003 </span> 1004 } 1005 <a href="http://www.excursions.fo">@Translate("Translate_Lang_GB")</a></li><li> 1006 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1007 <span class="icon icon-flag icon-flag-dk"> 1008 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1009 </span> 1010 } 1011 <a href="http://www.udflugter.fo">@Translate("Translate_Lang_DA")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 1012 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 1013 <span class="icon icon-menu"> 1014 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 1015 </span> 1016 } 1017 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 1018 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1019 <span class="icon icon-phone"> 1020 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1021 </span> 1022 } 1023 @GetString("Item.Area.NavigationPhoneNumber") 1024 </a></li> 1025 @RenderNavigation(new { 1026 template = "li.xslt", 1027 expandmode = "none", 1028 id = "secondaryNavigation", 1029 startlevel = 1, 1030 endlevel = 1, 1031 parenttag = "secondarynavigation" 1032 }) 1033 <li id="languageSelect"><a> 1034 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1035 <span class="icon icon-flag icon-flag-@(definedLang)"> 1036 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1037 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1038 } 1039 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1040 <span class="icon icon-arrow-down"> 1041 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1042 </span> 1043 } 1044 </a><ul id="otherLanguages"><li> 1045 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1046 <span class="icon icon-flag icon-flag-fo"> 1047 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1048 </span> 1049 } 1050 <a href="http://www.ausfluge.fo">@Translate("Translate_Lang_DE")</a></li><li> 1051 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1052 <span class="icon icon-flag icon-flag-gb"> 1053 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1054 </span> 1055 } 1056 <a href="http://www.excursions.fo">@Translate("Translate_Lang_GB")</a></li><li> 1057 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1058 <span class="icon icon-flag icon-flag-dk"> 1059 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1060 </span> 1061 } 1062 <a href="http://www.udflugter.fo">@Translate("Translate_Lang_DA")</a></li></ul></li></ul><ul id="primaryNavigation"> 1063 @RenderNavigation(new { 1064 template = "li.xslt", 1065 expandmode = "all", 1066 id = "primaryNavigation", 1067 startlevel = 1, 1068 endlevel = 3 1069 }) 1070 <li id="topSearch"><a> 1071 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1072 <span class="icon icon-search"> 1073 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1074 </span> 1075 } 1076 </a></li><li id="topBook"> 1077 @{ 1078 bool blankE = false; 1079 string bookLinkE = ""; 1080 1081 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 1082 bookLinkE = GetString("Item.Page.NavigationBookLink"); 1083 } else { 1084 bookLinkE = GetString("Item.Area.NavigationBookLink"); 1085 } 1086 1087 if (bookLinkE.IndexOf("http") != -1) { 1088 blankE = true; 1089 } else { 1090 if (bookLinkE.Length > 0) { 1091 if (bookLinkE.Substring(0,1) != "/") { 1092 bookLinkE = "/" + bookLinkE; 1093 } 1094 } 1095 } 1096 1097 if (blankE) { 1098 <a href='@bookLinkE' target="_blank">@Translate("Translate_Book_Trip_Excursions")</a> 1099 } else { 1100 <a href='@bookLinkE'>@Translate("Translate_Book_Trip_Excursions")</a> 1101 } 1102 } 1103 </li><li id="mobileMenuClose"> 1104 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1105 <span class="icon icon-close"> 1106 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1107 </span> 1108 } 1109 </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"> 1110 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1111 <span class="icon icon-search"> 1112 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1113 </span> 1114 } 1115 </button></div></form></nav></text> 1116 1117 break; 1118 } 1119 } else { 1120 <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"> 1121 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1122 <span class="icon icon-phone"> 1123 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1124 </span> 1125 } 1126 @GetString("Item.Area.NavigationPhoneNumber") 1127 </a></li><li id="topMobileSearch"><a> 1128 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1129 <span class="icon icon-search"> 1130 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1131 </span> 1132 } 1133 </a></li><li id="mobileLanguageSelect"><a> 1134 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1135 <span class="icon icon-flag icon-flag-@(definedLang)"> 1136 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1137 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1138 } 1139 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1140 <span class="icon icon-arrow-down"> 1141 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1142 </span> 1143 } 1144 </a><ul id="mobileOtherLanguages"><li> 1145 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1146 <span class="icon icon-flag icon-flag-fo"> 1147 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1148 </span> 1149 } 1150 <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li><li> 1151 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1152 <span class="icon icon-flag icon-flag-gb"> 1153 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1154 </span> 1155 } 1156 <a href="http://www.smyrilline.com">@Translate("Translate_Lang_GB")</a></li><li> 1157 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1158 <span class="icon icon-flag icon-flag-dk"> 1159 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1160 </span> 1161 } 1162 <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> 1163 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1164 <span class="icon icon-flag icon-flag-de"> 1165 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1166 </span> 1167 } 1168 <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> 1169 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { 1170 <span class="icon icon-flag icon-flag-fr"> 1171 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) 1172 </span> 1173 } 1174 <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> 1175 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { 1176 <span class="icon icon-flag icon-flag-is"> 1177 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) 1178 </span> 1179 } 1180 <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> 1181 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg"))) { 1182 <span class="icon icon-flag icon-flag-no"> 1183 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg")) 1184 </span> 1185 } 1186 <a href="http://www.smyrilline.no">@Translate("Translate_Lang_NO")</a></li><li> 1187 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg"))) { 1188 <span class="icon icon-flag icon-flag-se"> 1189 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg")) 1190 </span> 1191 } 1192 <a href="http://www.smyrilline.se">@Translate("Translate_Lang_SE")</a></li><li> 1193 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { 1194 <span class="icon icon-flag icon-flag-nl"> 1195 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) 1196 </span> 1197 } 1198 <a href="http://www.smyrilline.nl">@Translate("Translate_Lang_NL")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 1199 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 1200 <span class="icon icon-menu"> 1201 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 1202 </span> 1203 } 1204 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 1205 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1206 <span class="icon icon-phone"> 1207 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1208 </span> 1209 } 1210 @GetString("Item.Area.NavigationPhoneNumber") 1211 </a></li> 1212 @RenderNavigation(new { 1213 template = "li.xslt", 1214 expandmode = "none", 1215 id = "secondaryNavigation", 1216 startlevel = 1, 1217 endlevel = 1, 1218 parenttag = "secondarynavigation" 1219 }) 1220 <li id="languageSelect"><a> 1221 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1222 <span class="icon icon-flag icon-flag-@(definedLang)"> 1223 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1224 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1225 } 1226 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1227 <span class="icon icon-arrow-down"> 1228 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1229 </span> 1230 } 1231 </a><ul id="otherLanguages"><li> 1232 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1233 <span class="icon icon-flag icon-flag-fo"> 1234 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1235 </span> 1236 } 1237 <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li><li> 1238 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1239 <span class="icon icon-flag icon-flag-gb"> 1240 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1241 </span> 1242 } 1243 <a href="http://www.smyrilline.com">@Translate("Translate_Lang_GB")</a></li><li> 1244 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1245 <span class="icon icon-flag icon-flag-dk"> 1246 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1247 </span> 1248 } 1249 <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> 1250 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1251 <span class="icon icon-flag icon-flag-de"> 1252 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1253 </span> 1254 } 1255 <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> 1256 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { 1257 <span class="icon icon-flag icon-flag-fr"> 1258 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) 1259 </span> 1260 } 1261 <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> 1262 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { 1263 <span class="icon icon-flag icon-flag-is"> 1264 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) 1265 </span> 1266 } 1267 <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> 1268 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg"))) { 1269 <span class="icon icon-flag icon-flag-no"> 1270 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-no.svg")) 1271 </span> 1272 } 1273 <a href="http://www.smyrilline.no">@Translate("Translate_Lang_NO")</a></li><li> 1274 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg"))) { 1275 <span class="icon icon-flag icon-flag-se"> 1276 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-se.svg")) 1277 </span> 1278 } 1279 <a href="http://www.smyrilline.se">@Translate("Translate_Lang_SE")</a></li><li> 1280 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { 1281 <span class="icon icon-flag icon-flag-nl"> 1282 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) 1283 </span> 1284 } 1285 <a href="http://www.smyrilline.nl">@Translate("Translate_Lang_NL")</a></li></ul></li></ul><ul id="primaryNavigation"> 1286 @RenderNavigation(new { 1287 template = "li.xslt", 1288 expandmode = "all", 1289 id = "primaryNavigation", 1290 startlevel = 1, 1291 endlevel = 3 1292 }) 1293 <li id="topSearch"><a> 1294 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1295 <span class="icon icon-search"> 1296 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1297 </span> 1298 } 1299 </a></li><li id="topBook"> 1300 @{ 1301 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 1302 <a href='@System.Web.HttpContext.Current.Items["_navigationBookLink"]'>@Translate("Translate_Book_Trip")</a> 1303 } else { 1304 bool blank = false; 1305 string bookLink = ""; 1306 1307 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 1308 bookLink = GetString("Item.Page.NavigationBookLink"); 1309 } else { 1310 bookLink = GetString("Item.Area.NavigationBookLink"); 1311 } 1312 1313 if (bookLink.IndexOf("http") != -1) { 1314 blank = true; 1315 } else { 1316 if (bookLink.Length > 0) { 1317 if (bookLink.Substring(0,1) != "/") { 1318 bookLink = "/" + bookLink; 1319 } 1320 } 1321 } 1322 1323 if (blank) { 1324 <a href='@bookLink' target="_blank">@Translate("Translate_Book_Trip")</a> 1325 } else { 1326 <a href='@bookLink'>@Translate("Translate_Book_Trip")</a> 1327 } 1328 } 1329 } 1330 </li><li id="mobileMenuClose"> 1331 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1332 <span class="icon icon-close"> 1333 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1334 </span> 1335 } 1336 </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"> 1337 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1338 <span class="icon icon-search"> 1339 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1340 </span> 1341 } 1342 </button></div></form></nav></text> 1343 } 1344 @GetValue("DwContent(header)") 1345 @RenderSnippet("TabHeader") 1346 1347 1348 1349 1350 @if (!GetBoolean("Item.Page.HideSubnavigation")) { 1351 int currentLevel = Pageview.Page.Level; 1352 int pageID = Pageview.Page.ID; 1353 bool hasParentTextPage = false; 1354 1355 if (Pageview.Page.Parent != null) { 1356 string parentTemplateName = Pageview.Page.Parent.LayoutTemplate.Replace(".cshtml","").ToLower(); 1357 1358 if (parentTemplateName == "textpage") { 1359 pageID = Pageview.Page.ParentPageId; 1360 } 1361 } 1362 1363 <text> 1364 @RenderNavigation(new { 1365 template = "nav.xslt", 1366 expandmode = "all", 1367 id = "subnavigation", 1368 startlevel = 1, 1369 endlevel = 1, 1370 parentid = pageID 1371 }) 1372 </text> 1373 } 1374 @GetValue("DwContent(content)") 1375 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CartParagraph"))) { 1376 <text>@RenderParagraphContent(GetInteger("Item.Area.CartParagraph"))</text> 1377 } 1378 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FooterPartial"))) { 1379 string footerPartial = GetString("Item.Area.FooterPartial"); 1380 1381 switch (footerPartial) { 1382 case "hotel": 1383 <text><footer id="footer"><div class="footer-info"><div class="footer-info-container"><div class="footer-info-item"><a href="/" id="footerLogo"> 1384 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1385 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1386 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1387 } 1388 } else { 1389 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1390 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1391 } 1392 } 1393 </a></div><div class="footer-info-item"><ul><li>@GetString("Item.Area.Name")</li><li>@GetString("Item.Area.Address")</li><li>@GetString("Item.Area.Zipcode"), @GetString("Item.Area.City")</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 class="footer-info-item"><ul> 1394 @foreach (var li in GetLoop("Item.Area.FooterLinks")) { 1395 var liLink = li.GetString("Item.Area.FooterLinks.LInk"); 1396 1397 <li><a href='@liLink'>@li.GetString("Item.Area.FooterLinks.LinkText")</a></li> 1398 } 1399 </ul></div><div class="footer-info-item"> 1400 @GetString("Item.Area.Alt_Info") 1401 </div></div></div></footer></text> 1402 break; 1403 case "brandan": 1404 <text><footer id="footer"><div class="footer-info"><div class="footer-info-container"><div class="footer-info-item"><a href="/" id="footerLogo"> 1405 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1406 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1407 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1408 } 1409 } else { 1410 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1411 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1412 } 1413 } 1414 </a></div><div class="footer-info-item"><ul><li>@GetString("Item.Area.Name")</li><li>@GetString("Item.Area.Address")</li><li>@GetString("Item.Area.Zipcode"), @GetString("Item.Area.City")</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 class="footer-info-item"><ul><li><a href="//smyrilline.fo">smyrilline.fo</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="//excursions.fo/">Excursions.fo</a></li></ul></div></div></div></footer></text> 1415 break; 1416 case "hafnia": 1417 <text><footer id="footer"><div class="footer-info"><div class="footer-info-container"><div class="footer-info-item"><a href="/" id="footerLogo"> 1418 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1419 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1420 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1421 } 1422 } else { 1423 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1424 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1425 } 1426 } 1427 </a></div><div class="footer-info-item"><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 class="footer-info-item"><ul><li><a href="//smyrilline.fo">smyrilline.fo</a></li><li><a href="//brandan.fo">brandan.fo</a></li><li><a href="//katrina.fo">katrina.fo</a></li><li><a href="//en.kaspar.fo">kaspar.fo</a></li><li><a href="//excursions.fo/">Excursions.fo</a></li></ul></div></div></div></footer></text> 1428 break; 1429 case "cargo": 1430 <text><footer id="footer"> 1431 @GetString("Item.Area.Alt_Info") 1432 </footer></text> 1433 break; 1434 case "excursions": 1435 <text><footer id="footer"><nav id="footerNavigation"><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_1Header")</li> 1436 @foreach (var li in GetLoop("Item.Area.FooterColumn_1Content")) { 1437 <li> 1438 @li.GetString("Item.Area.FooterColumn_1Content.Text").Replace("<p>", "").Replace("</p>", "") 1439 </li> 1440 } 1441 </ul><ul class="footer-info arrivals-departures"><li class="header">@GetString("Item.Area.FooterColumn_2Header")</li><li> 1442 @GetString("Item.Area.Alt_Info") 1443 </li></ul><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_3Header")</li><li> 1444 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1445 <span class="icon icon-phone"> 1446 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1447 </span> 1448 } 1449 <a href="@linkTel">@GetString("Item.Area.NavigationPhoneNumber")</a></li><li> 1450 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg"))) { 1451 <span class="icon icon-mail"> 1452 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg")) 1453 </span> 1454 } 1455 @{ 1456 string linkMail = "mailto:" + GetString("Item.Area.NavigationEmail").Replace(" ", ""); 1457 } 1458 <a href="@linkMail">@GetString("Item.Area.NavigationEmail")</a></li></ul> 1459 @if(GetString("LongLang") == "is-IS") { 1460 <div class="footer-info"><img src="/Files/Templates/Designs/smyrilline/images/Feraskrifstofu-logo.png"></div> 1461 } 1462 </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"> 1463 @GetString("Item.Area.Name") 1464 </span><span>&bull;</span><span class="line"> 1465 @GetString("Item.Area.Address") 1466 </span><span>&bull;</span><span class="line"> 1467 @GetString("Item.Area.Zipcode") @GetString("Item.Area.City") 1468 </span> 1469 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { 1470 <span>&bull;</span><span class="line"> 1471 @GetString("Item.Area.CVR") 1472 </span> 1473 } 1474 <span>&bull;</span><span class="line"> 1475 @{ 1476 string linkTelAddress = "tel:" + GetString("Item.Area.Phone").Replace(" ", ""); 1477 } 1478 T: <a href="@linkTelAddress">@GetString("Item.Area.Phone")</a></span><span>&bull;</span><span class="line"> 1479 E: <a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a></span></address></footer></text> 1480 break; 1481 } 1482 } else { 1483 <text><footer id="footer"> 1484 <nav id="footerNavigation"> 1485 <ul class="footer-info"> 1486 <li class="header">@GetString("Item.Area.FooterColumn_1Header")</li> 1487 @foreach (var li in GetLoop("Item.Area.FooterColumn_1Content")) { 1488 <li> 1489 @li.GetString("Item.Area.FooterColumn_1Content.Text").Replace("<p>", "").Replace("</p>", "") 1490 </li> 1491 } 1492 </ul> 1493 <ul class="footer-info arrivals-departures"> 1494 <li class="header">@GetString("Item.Area.FooterColumn_2Header")</li> 1495 <li> 1496 @using System.Linq; 1497 @{ 1498 string reply = new System.Net.WebClient().DownloadString("http://api.smyrilline.com/api/departure?limit=2"); 1499 Smyrilline.Web.Types.DepartureInfo[] depInfos = Newtonsoft.Json.JsonConvert.DeserializeObject<Smyrilline.Web.Types.DepartureInfo[]>(reply); 1500 if(depInfos.Length > 0) { 1501 depInfos = depInfos.OrderBy(x => x.ETD).ToArray(); 1502 } 1503 } 1504 <div id="sailing-schedule-module"> 1505 @foreach(Smyrilline.Web.Types.DepartureInfo depInfo in depInfos) { 1506 <div class="departure previous-leg"> 1507 <dl> 1508 <dt class="text" data-title="Title">@Translate("Translate_DepartureTime")</dt> 1509 <dd> 1510 <span data-title="Port">@Translate("Translate_harbor_"+depInfo.Departing.ToString("g"))</span> 1511 <span data-title="Date">@depInfo.ETD.ToString("dd"). @Translate("Translate_Month_"+ depInfo.ETD.ToString("MM"))</span> 1512 <span data-title="Time">@depInfo.ETD.ToString("HH:mm")</span> 1513 </dd> 1514 </dl> 1515 </div> 1516 <div class="arrival previous-leg"> 1517 <dl> 1518 <dt class="text" data-title="Title">@Translate("Translate_ArrivalTime")</dt> 1519 <dd> 1520 <span data-title="Port">@Translate("Translate_harbor_"+depInfo.Arriving.ToString("g"))</span> 1521 <span data-title="Date">@depInfo.ETA.ToString("dd"). @Translate("Translate_Month_"+ depInfo.ETA.ToString("MM"))</span> 1522 <span data-title="Time">@depInfo.ETA.ToString("HH:mm")</span> 1523 </dd> 1524 </dl> 1525 </div> 1526 } 1527 </div> 1528 1529 1530 </li> 1531 </ul> 1532 <ul class="footer-info"> 1533 <li class="header">@GetString("Item.Area.FooterColumn_3Header")</li> 1534 <li> 1535 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1536 <span class="icon icon-phone"> 1537 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1538 </span> 1539 } 1540 <a href="@linkTel">@GetString("Item.Area.NavigationPhoneNumber")</a> 1541 </li> 1542 <li> 1543 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg"))) { 1544 <span class="icon icon-mail"> 1545 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg")) 1546 </span> 1547 } 1548 @{ 1549 string linkMail = "mailto:" + GetString("Item.Area.NavigationEmail").Replace(" ", ""); 1550 } 1551 <a href="@linkMail">@GetString("Item.Area.NavigationEmail")</a> 1552 </li> 1553 <li> 1554 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg"))) { 1555 <span class="icon icon-pin"> 1556 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg")) 1557 </span> 1558 } 1559 <a href='/@GetString("Item.Area.NavigationOfficesLink")'>@Translate("Translate_Our_offices")</a> 1560 </li> 1561 <li> 1562 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg"))) { 1563 <span class="icon icon-cargo"> 1564 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg")) 1565 </span> 1566 } 1567 <a href='/@GetString("Item.Area.NavigationCargoLink")'>@Translate("Translate_Order_cargo")</a> 1568 </li> 1569 </ul> 1570 @if(GetString("LongLang") == "is-IS") { 1571 <div class="footer-info"><img src="/Files/Templates/Designs/smyrilline/images/Feraskrifstofu-logo.png"></div> 1572 } 1573 </nav> 1574 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Alt_Info"))) { 1575 @GetString("Item.Area.Alt_Info") 1576 } else { 1577 <address id="address"> 1578 <a href="/" id="bottomLogo"> 1579 <img src="/Files/Templates/Designs/smyrilline/./images/smyril_line-logo.png" alt="Smyril Line"> 1580 </a> 1581 <span class="line"> 1582 @GetString("Item.Area.Name") 1583 </span> 1584 <span>&bull;</span> 1585 <span class="line"> 1586 @GetString("Item.Area.Address") 1587 </span> 1588 <span>&bull;</span> 1589 <span class="line"> 1590 @GetString("Item.Area.Zipcode") @GetString("Item.Area.City") 1591 </span> 1592 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { 1593 <span>&bull;</span> 1594 <span class="line"> 1595 @GetString("Item.Area.CVR") 1596 </span> 1597 } 1598 <span>&bull;</span> 1599 <span class="line"> 1600 @{ 1601 string linkTelAddress = "tel:" + GetString("Item.Area.Phone").Replace(" ", ""); 1602 } 1603 T: <a href="@linkTelAddress">@GetString("Item.Area.Phone")</a> 1604 </span> 1605 <span>&bull;</span> 1606 <span class="line"> 1607 E: <a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a> 1608 </span> 1609 <a href="https://www.smyrilline.com/Files/Images/Brandan/PDF/VFI-Safe-to-Visit-Skjal-endaligt.pdf?_ga=2.264966855.9575248.1607423855-472851082.1602529031" target="_blank" style="display: inline-block;position: absolute;height: 100px;width: 90px;margin: -15px 0px 0px 90px;background-size: cover;background-image: url('/Files/Images/Brandan/Logo/Safe-to-visit-logo.jpg');"></a> 1610 </address> 1611 } 1612 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AgentLogin_URL"))) { 1613 <div id="agentLogin"> 1614 <a href='@GetString("Item.Area.AgentLogin_URL")' target="_blank">@GetString("Item.Area.AgentLoginLinkText")</a> 1615 </div> 1616 } 1617 </footer></text> 1618 } 1619 <script> 1620 var gdprCookieNoticeLocales = {}; 1621 1622 gdprCookieNoticeLocales.translations = { 1623 description: '@Translate("Translate_Cookie_Desc")', 1624 settings: '@Translate("Translate_Cookie_Settings")', 1625 accept: '@Translate("Translate_Cookie_Accept")', 1626 statement: '@Translate("Translate_Cookie_OurCookieStatement")', 1627 save: '@Translate("Translate_Cookie_SaveSettings")', 1628 always_on: '@Translate("Translate_Cookie_AlwaysOn")', 1629 cookie_essential_title: '@Translate("Translate_Cookie_EssentialTitle")', 1630 cookie_essential_desc: '@Translate("Translate_Cookie_EssentialDesc")', 1631 cookie_extra_title: '@Translate("Translate_Cookie_AdditionalTitle")', 1632 cookie_extra_desc: '@Translate("Translate_Cookie_AdditionalDesc")' 1633 }; 1634 </script><script src="https://book.smyrilline.com/app/external/gdpr/gdpr.js"></script> 1635 @{ 1636 string locale = GetString("Item.Area.Locale"); 1637 string timeout = GetString("Item.Area.Timeout"); 1638 string expiration = GetString("Item.Area.Expiration"); 1639 string statement = GetString("Item.Area.Statement"); 1640 string extra = GetString("Item.Area.Extra"); 1641 } 1642 <script> 1643 document.addEventListener('gdprCookiesEnabled', function(e) { 1644 window.dataLayer = window.dataLayer || []; 1645 1646 if (e.detail.extra) { 1647 window.dataLayer.push({ 1648 event: 'smyrilline-cookies-accepted' 1649 }); 1650 } 1651 }); 1652 1653 gdprCookieNotice({ 1654 locale: '@locale', //This is the default value 1655 timeout: @timeout, //Time until the cookie bar appears 1656 expiration: @expiration, //This is the default value, in days 1657 statement: '@statement', //Link to your cookie statement page 1658 extra: [@extra] 1659 }); 1660 </script></div><script src='/Files/Templates/Designs/smyrilline/js/smyrilline.min.js?v=@jsEditDate' async="" defer=""></script> 1661 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddJsFile"))) { 1662 string addJsEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.AddJsFile"))).ToString(); 1663 addJsEditDate = addCssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", ""); 1664 1665 string pathToJs = GetString("Item.Area.AddJsFile") + "?v=" + addJsEditDate; 1666 1667 <script src='@pathToJs' async="" defer=""></script> 1668 } 1669 <script> 1670 var canvasLetters = []; 1671 </script> 1672 @RenderSnippet("jsbottom") 1673 <script> 1674 WebFontConfig = { 1675 custom: { 1676 families: ['Manus'] 1677 }, 1678 fontactive: function (familyName, fvd) { 1679 if (familyName == 'Manus') { 1680 drawLetters(); 1681 } 1682 } 1683 }; 1684 1685 (function (d) { 1686 var wf = d.createElement('script'), s = d.scripts[0]; 1687 wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; 1688 wf.async = true; 1689 s.parentNode.insertBefore(wf, s); 1690 })(document); 1691 1692 function drawLetters() { 1693 for (var a = 0; a < canvasLetters.length; a++) { 1694 drawLetter(canvasLetters[a]); 1695 } 1696 } 1697 1698 function drawLetter(canvasLetter) { 1699 var canvas = document.getElementById(canvasLetter.id); 1700 1701 if (canvas != undefined) { 1702 var context = canvas.getContext('2d'); 1703 1704 context.font = '400 ' + canvasLetter.fontSize + ' Manus'; 1705 1706 if (canvasLetter.fillStyle != undefined) { 1707 context.fillStyle = canvasLetter.fillStyle; 1708 } 1709 1710 /*context.textBaseline = 'top';*/ 1711 context.fillText(canvasLetter.letter, canvasLetter.position.x, canvasLetter.position.y); 1712 1713 if (canvasLetter.image != undefined) { 1714 var img = new Image(); 1715 img.src = canvasLetter.image; 1716 1717 1718 if (img.complete) { 1719 drawImage(canvas, context, img); 1720 } else { 1721 img.addEventListener('load', function () { 1722 drawImage(canvas, context, img); 1723 }); 1724 } 1725 } 1726 } 1727 } 1728 1729 function drawImage(canvas, context, image) { 1730 context.globalCompositeOperation = 'source-in'; 1731 context.drawImage(image, 0, 0, canvas.width, canvas.height); 1732 context.globalCompositeOperation = 'source-over'; 1733 } 1734 </script> 1735 @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-styles"] == null) { 1736 System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Value = "1"; 1737 System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Expires = DateTime.Now.AddDays(100); 1738 1739 <noscript id="deferred-styles"><link rel="stylesheet" href="/files/templates/designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style3"> 1740 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { 1741 string addCssPath3 = @GetString("Item.Area.AddCssFile") + "?v=" + addCssEditDate; 1742 1743 <link rel="stylesheet" href="@addCssPath3" id="addStyle3"> 1744 } 1745 </noscript><script> 1746 var loadDeferredStyles = function () { 1747 var addStylesNode = document.getElementById("deferred-styles"); 1748 var replacement = document.createElement("div"); 1749 1750 replacement.innerHTML = addStylesNode.textContent; 1751 document.body.appendChild(replacement) 1752 addStylesNode.parentElement.removeChild(addStylesNode); 1753 }; 1754 1755 var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; 1756 1757 if (raf) raf(function () { window.setTimeout(loadDeferredStyles, 0); }); 1758 else window.addEventListener('load', loadDeferredStyles); 1759 </script> 1760 } 1761 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LiveHelpScript"))) { 1762 <script type="text/javascript"> 1763 window.lhnJsSdkInit = function () { 1764 lhnJsSdk.setup = { 1765 application_id: "c89fabc8-6d29-4a54-b09c-6660fb734cfa", 1766 application_secret: "67d786d94ba24787bad6a1a86a1f3a0909f64abb3cec476c9e" 1767 }; 1768 lhnJsSdk.controls = [{ 1769 type: "hoc", 1770 id: "@GetString("Item.Area.LiveHelpScript")" 1771 }]; 1772 lhnJsSdk.dictionary = { 1773 agentConnecting: '@Translate("Translate_help_agentConnecting")', 1774 callbackMenu: '@Translate("Translate_help_callbackMenu")', 1775 callbackTitle: '@Translate("Translate_help_callbackTitle")', 1776 cancel: '@Translate("Translate_help_cancel")', 1777 chatMenu: '@Translate("Translate_help_chatMenu")', 1778 chatTitle: '@Translate("Translate_help_chatTitle")', 1779 email: '@Translate("Translate_help_email")', 1780 endChat: '@Translate("Translate_help_endChat")', 1781 endChatConfirm: '@Translate("Translate_help_endChatConfirm")', 1782 inviteCancel: '@Translate("Translate_help_inviteCancel")', 1783 inviteStart: '@Translate("Translate_help_inviteStart")', 1784 knowledgeMenu: '@Translate("Translate_help_knowledgeMenu")', 1785 knowledgeTitle: '@Translate("Translate_help_knowledgeTitle")', 1786 livechat: '@Translate("Translate_help_livechat")', 1787 livechat_offline: '@Translate("Translate_help_livechat_offline")', 1788 newChatTitle: '@Translate("Translate_help_newChatTitle")', 1789 offlineTitle: '@Translate("Translate_help_offlineTitle")', 1790 send: '@Translate("Translate_help_send")', 1791 startChat: '@Translate("Translate_help_startChat")', 1792 submit: '@Translate("Translate_help_submit")', 1793 surveyTitle: '@Translate("Translate_help_surveyTitle")', 1794 ticketMenu: '@Translate("Translate_help_ticketMenu")', 1795 ticketTitle: '@Translate("Translate_help_ticketTitle")', 1796 }; 1797 }; 1798 1799 (function (d, s) { 1800 var newjs, lhnjs = d.getElementsByTagName(s)[0]; 1801 newjs = d.createElement(s); 1802 newjs.src = "https://developer.livehelpnow.net/js/sdk/lhn-jssdk-current.min.js"; 1803 lhnjs.parentNode.insertBefore(newjs, lhnjs); 1804 }(document, "script")); 1805 </script> 1806 } 1807 <!--script> 1808 window.dataLayer = window.dataLayer || []; 1809 1810 window.dataLayer.push({ 1811 'event': 'ipCheckReady', 1812 'ipaddress': '@System.Web.HttpContext.Current.Request.UserHostAddress' 1813 }); 1814 </script--></body></html>