Error executing template "Designs/smyrilline/_parsed/frontpage.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.48.173: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_13ad1c0deb67462b8d0738ade6179e44.Execute() in E:\dynamicweb.net\solutions\smyrilline2018.dw9.dynamicweb-cms.com\Files\Templates\Designs\smyrilline\_parsed\productpage.parsed.cshtml:line 1805
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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