Error executing template "Designs/smyrilline/_parsed/productpage.parsed.cshtml"
System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at CompiledRazorTemplates.Dynamic.RazorEngine_d7a008780e5c4870a5b4bc31421a4687.Execute() in E:\dynamicweb.net\solutions\smyrilline2018.dw9.dynamicweb-cms.com\Files\Templates\Designs\smyrilline\_parsed\frontpage.parsed.cshtml:line 1799
   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="topMobileSearch"><a> 971 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 972 <span class="icon icon-search"> 973 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 974 </span> 975 } 976 </a></li><li id="mobileMenu"><a class="button button-primary"> 977 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 978 <span class="icon icon-menu"> 979 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 980 </span> 981 } 982 </a></li></ul><ul id="secondaryNavigation"> 983 984 @RenderNavigation(new { 985 template = "li.xslt", 986 expandmode = "none", 987 id = "secondaryNavigation", 988 startlevel = 1, 989 endlevel = 1, 990 parenttag = "secondarynavigation" 991 }) 992 </ul><ul id="primaryNavigation"> 993 @RenderNavigation(new { 994 template = "li.xslt", 995 expandmode = "all", 996 id = "primaryNavigation", 997 startlevel = 1, 998 endlevel = 3 999 }) 1000 <li id="topSearch"><a> 1001 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1002 <span class="icon icon-search"> 1003 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1004 </span> 1005 } 1006 </a></li><li id="mobileMenuClose"> 1007 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1008 <span class="icon icon-close"> 1009 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1010 </span> 1011 } 1012 </li></ul> 1013 @{ 1014 string formActionC = "/Default.aspx?Id=" + GetString("Item.Area.SearchPage"); 1015 string formHiddenValueC = GetString("Item.Area.SearchPage"); 1016 string searchPlaceholderC = @Translate("Translate_Search_placeholder"); 1017 } 1018 <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"> 1019 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1020 <span class="icon icon-search"> 1021 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1022 </span> 1023 } 1024 </button></div></form></nav></text> 1025 1026 break; 1027 case "excursions": 1028 <text>@{ 1029 string defaultImageE = GetString("Item.Area.DefaultImage"); 1030 } 1031 <nav id="navigation"><a href="/" id="topLogo"><img src="@defaultImageE" alt="Excursions"></a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 1032 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1033 <span class="icon icon-phone"> 1034 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1035 </span> 1036 } 1037 @GetString("Item.Area.NavigationPhoneNumber") 1038 </a></li><li id="topMobileSearch"><a> 1039 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1040 <span class="icon icon-search"> 1041 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1042 </span> 1043 } 1044 </a></li><li id="mobileLanguageSelect"><a> 1045 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1046 <span class="icon icon-flag icon-flag-@(definedLang)"> 1047 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1048 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1049 } 1050 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1051 <span class="icon icon-arrow-down"> 1052 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1053 </span> 1054 } 1055 </a><ul id="mobileOtherLanguages"><li> 1056 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1057 <span class="icon icon-flag icon-flag-fo"> 1058 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1059 </span> 1060 } 1061 <a href="http://www.ausfluge.fo">@Translate("Translate_Lang_DE")</a></li><li> 1062 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1063 <span class="icon icon-flag icon-flag-gb"> 1064 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1065 </span> 1066 } 1067 <a href="http://www.excursions.fo">@Translate("Translate_Lang_GB")</a></li><li> 1068 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1069 <span class="icon icon-flag icon-flag-dk"> 1070 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1071 </span> 1072 } 1073 <a href="http://www.udflugter.fo">@Translate("Translate_Lang_DA")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 1074 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 1075 <span class="icon icon-menu"> 1076 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 1077 </span> 1078 } 1079 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 1080 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1081 <span class="icon icon-phone"> 1082 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1083 </span> 1084 } 1085 @GetString("Item.Area.NavigationPhoneNumber") 1086 </a></li> 1087 @RenderNavigation(new { 1088 template = "li.xslt", 1089 expandmode = "none", 1090 id = "secondaryNavigation", 1091 startlevel = 1, 1092 endlevel = 1, 1093 parenttag = "secondarynavigation" 1094 }) 1095 <li id="languageSelect"><a> 1096 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1097 <span class="icon icon-flag icon-flag-@(definedLang)"> 1098 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1099 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1100 } 1101 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1102 <span class="icon icon-arrow-down"> 1103 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1104 </span> 1105 } 1106 </a><ul id="otherLanguages"><li> 1107 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1108 <span class="icon icon-flag icon-flag-fo"> 1109 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1110 </span> 1111 } 1112 <a href="http://www.ausfluge.fo">@Translate("Translate_Lang_DE")</a></li><li> 1113 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1114 <span class="icon icon-flag icon-flag-gb"> 1115 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1116 </span> 1117 } 1118 <a href="http://www.excursions.fo">@Translate("Translate_Lang_GB")</a></li><li> 1119 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1120 <span class="icon icon-flag icon-flag-dk"> 1121 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1122 </span> 1123 } 1124 <a href="http://www.udflugter.fo">@Translate("Translate_Lang_DA")</a></li></ul></li></ul><ul id="primaryNavigation"> 1125 @RenderNavigation(new { 1126 template = "li.xslt", 1127 expandmode = "all", 1128 id = "primaryNavigation", 1129 startlevel = 1, 1130 endlevel = 3 1131 }) 1132 <li id="topSearch"><a> 1133 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1134 <span class="icon icon-search"> 1135 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1136 </span> 1137 } 1138 </a></li><li id="topBook"> 1139 @{ 1140 bool blankE = false; 1141 string bookLinkE = ""; 1142 1143 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 1144 bookLinkE = GetString("Item.Page.NavigationBookLink"); 1145 } else { 1146 bookLinkE = GetString("Item.Area.NavigationBookLink"); 1147 } 1148 1149 if (bookLinkE.IndexOf("http") != -1) { 1150 blankE = true; 1151 } else { 1152 if (bookLinkE.Length > 0) { 1153 if (bookLinkE.Substring(0,1) != "/") { 1154 bookLinkE = "/" + bookLinkE; 1155 } 1156 } 1157 } 1158 1159 if (blankE) { 1160 <a href="@bookLinkE" target="_blank">@Translate("Translate_Book_Trip_Excursions")</a> 1161 } else { 1162 <a href="@bookLinkE">@Translate("Translate_Book_Trip_Excursions")</a> 1163 } 1164 } 1165 </li><li id="mobileMenuClose"> 1166 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1167 <span class="icon icon-close"> 1168 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1169 </span> 1170 } 1171 </li></ul> 1172 @{ 1173 string formActionE = "/Default.aspx?Id=" + GetString("Item.Area.SearchPage"); 1174 string formHiddenValueE = GetString("Item.Area.SearchPage"); 1175 string searchPlaceholderE = @Translate("Translate_Search_placeholder"); 1176 } 1177 <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"> 1178 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1179 <span class="icon icon-search"> 1180 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1181 </span> 1182 } 1183 </button></div></form></nav></text> 1184 1185 break; 1186 case "bistro": 1187 <text><nav id="navigation"><a href="/" id="topLogo"> 1188 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1189 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1190 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1191 } 1192 } else { 1193 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1194 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1195 } 1196 } 1197 </a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 1198 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1199 <span class="icon icon-phone"> 1200 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1201 </span> 1202 } 1203 @GetString("Item.Area.NavigationPhoneNumber") 1204 </a></li><li id="mobileLanguageSelect"><a> 1205 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1206 <span class="icon icon-flag icon-flag-@(definedLang)"> 1207 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1208 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1209 } 1210 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1211 <span class="icon icon-arrow-down"> 1212 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1213 </span> 1214 } 1215 </a><ul id="mobileOtherLanguages"><li> 1216 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1217 <span class="icon icon-flag icon-flag-fo"> 1218 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1219 </span> 1220 } 1221 <a href="http://www.bistro.fo/">@Translate("Translate_Lang_FO")</a></li><li> 1222 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1223 <span class="icon icon-flag icon-flag-gb"> 1224 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1225 </span> 1226 } 1227 <a href="http://en.bistro.fo/">@Translate("Translate_Lang_GB")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 1228 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 1229 <span class="icon icon-menu"> 1230 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 1231 </span> 1232 } 1233 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 1234 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1235 <span class="icon icon-phone"> 1236 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1237 </span> 1238 } 1239 @GetString("Item.Area.NavigationPhoneNumber") 1240 </a></li> 1241 @RenderNavigation(new { 1242 template = "li.xslt", 1243 expandmode = "none", 1244 id = "secondaryNavigation", 1245 startlevel = 1, 1246 endlevel = 1, 1247 parenttag = "secondarynavigation" 1248 }) 1249 <li id="languageSelect"><a> 1250 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1251 <span class="icon icon-flag icon-flag-@(definedLang)"> 1252 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1253 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1254 } 1255 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1256 <span class="icon icon-arrow-down"> 1257 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1258 </span> 1259 } 1260 </a><ul id="otherLanguages"><li> 1261 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1262 <span class="icon icon-flag icon-flag-fo"> 1263 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1264 </span> 1265 } 1266 <a href="http://www.bistro.fo/">@Translate("Translate_Lang_FO")</a></li><li> 1267 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1268 <span class="icon icon-flag icon-flag-gb"> 1269 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1270 </span> 1271 } 1272 <a href="http://en.bistro.fo/">@Translate("Translate_Lang_GB")</a></li></ul></li></ul><ul id="primaryNavigation"> 1273 @RenderNavigation(new { 1274 template = "li.xslt", 1275 expandmode = "all", 1276 id = "primaryNavigation", 1277 startlevel = 1, 1278 endlevel = 3 1279 }) 1280 <li id="topBook"> 1281 @{ 1282 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 1283 string navigationBookLinkHu = System.Web.HttpContext.Current.Items["_navigationBookLink"].ToString(); 1284 1285 <a href="@navigationBookLinkHu">@Translate("Translate_Book_Table")</a> 1286 } else { 1287 bool blankHu = false; 1288 string bookLinkHu = ""; 1289 1290 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 1291 bookLinkHu = GetString("Item.Page.NavigationBookLink"); 1292 } else { 1293 bookLinkHu = GetString("Item.Area.NavigationBookLink"); 1294 } 1295 1296 if (bookLinkHu.IndexOf("http") != -1) { 1297 blankHu = true; 1298 } else { 1299 if (bookLinkHu.Length > 0) { 1300 if (bookLinkHu.Substring(0,1) != "/") { 1301 bookLinkHu = "/" + bookLinkHu; 1302 } 1303 } 1304 } 1305 1306 if (blankHu) { 1307 <a href="@bookLinkHu" target="_blank">@Translate("Translate_Book_Table")</a> 1308 } else { 1309 <a href="@bookLinkHu">@Translate("Translate_Book_Table")</a> 1310 } 1311 } 1312 } 1313 </li><li id="mobileMenuClose"> 1314 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1315 <span class="icon icon-close"> 1316 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1317 </span> 1318 } 1319 </li></ul></nav></text> 1320 1321 break; 1322 } 1323 } else { 1324 <text>@{ 1325 string defaultImage = GetString("Item.Area.DefaultImage"); 1326 } 1327 <nav id="navigation"><a href="/" id="topLogo"><img src="@defaultImage" alt="Smyril Line"></a><ul id="mobileNav"><li id="topMobilePhone"><a href="@linkTel"> 1328 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1329 <span class="icon icon-phone"> 1330 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1331 </span> 1332 } 1333 @GetString("Item.Area.NavigationPhoneNumber") 1334 </a></li><li id="topMobileSearch"><a> 1335 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1336 <span class="icon icon-search"> 1337 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1338 </span> 1339 } 1340 </a></li><li id="mobileLanguageSelect"><a> 1341 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1342 <span class="icon icon-flag icon-flag-@(definedLang)"> 1343 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1344 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1345 } 1346 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1347 <span class="icon icon-arrow-down"> 1348 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1349 </span> 1350 } 1351 </a><ul id="mobileOtherLanguages"><li> 1352 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1353 <span class="icon icon-flag icon-flag-fo"> 1354 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1355 </span> 1356 } 1357 <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li><li> 1358 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1359 <span class="icon icon-flag icon-flag-gb"> 1360 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1361 </span> 1362 } 1363 <a href="https://en.smyrilline.fo">@Translate("Translate_Lang_GB")</a></li><li> 1364 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1365 <span class="icon icon-flag icon-flag-dk"> 1366 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1367 </span> 1368 } 1369 <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> 1370 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1371 <span class="icon icon-flag icon-flag-de"> 1372 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1373 </span> 1374 } 1375 <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> 1376 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { 1377 <span class="icon icon-flag icon-flag-fr"> 1378 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) 1379 </span> 1380 } 1381 <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> 1382 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { 1383 <span class="icon icon-flag icon-flag-is"> 1384 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) 1385 </span> 1386 } 1387 <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> 1388 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { 1389 <span class="icon icon-flag icon-flag-nl"> 1390 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) 1391 </span> 1392 } 1393 <a href="https://nl.smyrilline.fo/">@Translate("Translate_Lang_NL")</a></li></ul></li><li id="mobileMenu"><a class="button button-primary"> 1394 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg"))) { 1395 <span class="icon icon-menu"> 1396 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-menu.svg")) 1397 </span> 1398 } 1399 </a></li></ul><ul id="secondaryNavigation"><li id="topPhone"><a href="@linkTel"> 1400 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1401 <span class="icon icon-phone"> 1402 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1403 </span> 1404 } 1405 @GetString("Item.Area.NavigationPhoneNumber") 1406 </a></li> 1407 @RenderNavigation(new { 1408 template = "li.xslt", 1409 expandmode = "none", 1410 id = "secondaryNavigation", 1411 startlevel = 1, 1412 endlevel = 1, 1413 parenttag = "secondarynavigation" 1414 }) 1415 <li id="languageSelect"><a> 1416 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg"))) { 1417 <span class="icon icon-flag icon-flag-@(definedLang)"> 1418 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-" + definedLang + ".svg")) 1419 </span><text>@Translate("Translate_Lang_" + GetString("LongLang").Split('-')[0])</text> 1420 } 1421 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg"))) { 1422 <span class="icon icon-arrow-down"> 1423 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-arrow-down.svg")) 1424 </span> 1425 } 1426 </a><ul id="otherLanguages"><li> 1427 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg"))) { 1428 <span class="icon icon-flag icon-flag-fo"> 1429 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fo.svg")) 1430 </span> 1431 } 1432 <a href="http://www.smyrilline.fo">@Translate("Translate_Lang_FO")</a></li><li> 1433 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg"))) { 1434 <span class="icon icon-flag icon-flag-gb"> 1435 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-gb.svg")) 1436 </span> 1437 } 1438 <a href="https://en.smyrilline.fo">@Translate("Translate_Lang_GB")</a></li><li> 1439 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg"))) { 1440 <span class="icon icon-flag icon-flag-dk"> 1441 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-dk.svg")) 1442 </span> 1443 } 1444 <a href="http://www.smyrilline.dk">@Translate("Translate_Lang_DA")</a></li><li> 1445 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg"))) { 1446 <span class="icon icon-flag icon-flag-de"> 1447 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-de.svg")) 1448 </span> 1449 } 1450 <a href="http://www.smyrilline.de">@Translate("Translate_Lang_DE")</a></li><li> 1451 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg"))) { 1452 <span class="icon icon-flag icon-flag-fr"> 1453 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-fr.svg")) 1454 </span> 1455 } 1456 <a href="http://www.smyrilline.fr">@Translate("Translate_Lang_FR")</a></li><li> 1457 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg"))) { 1458 <span class="icon icon-flag icon-flag-is"> 1459 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-is.svg")) 1460 </span> 1461 } 1462 <a href="http://www.smyrilline.is">@Translate("Translate_Lang_IS")</a></li><li> 1463 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg"))) { 1464 <span class="icon icon-flag icon-flag-nl"> 1465 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-flag-nl.svg")) 1466 </span> 1467 } 1468 <a href="https://nl.smyrilline.fo/">@Translate("Translate_Lang_NL")</a></li></ul></li></ul><ul id="primaryNavigation"> 1469 @RenderNavigation(new { 1470 template = "li.xslt", 1471 expandmode = "all", 1472 id = "primaryNavigation", 1473 startlevel = 1, 1474 endlevel = 3 1475 }) 1476 <li id="topSearch"><a> 1477 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1478 <span class="icon icon-search"> 1479 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1480 </span> 1481 } 1482 </a></li><li id="topBook"> 1483 @{ 1484 if (System.Web.HttpContext.Current.Items["_navigationBookLink"] != null) { 1485 string navigationBookLink = System.Web.HttpContext.Current.Items["_navigationBookLink"].ToString(); 1486 1487 <a href="@navigationBookLink">@Translate("Translate_Book_Trip")</a> 1488 } else { 1489 bool blank = false; 1490 string bookLink = ""; 1491 1492 if (!string.IsNullOrWhiteSpace(GetString("Item.Page.NavigationBookLink"))) { 1493 bookLink = GetString("Item.Page.NavigationBookLink"); 1494 } else { 1495 bookLink = GetString("Item.Area.NavigationBookLink"); 1496 } 1497 1498 if (bookLink.IndexOf("http") != -1) { 1499 blank = true; 1500 } else { 1501 if (bookLink.Length > 0) { 1502 if (bookLink.Substring(0,1) != "/") { 1503 bookLink = "/" + bookLink; 1504 } 1505 } 1506 } 1507 1508 if (blank) { 1509 <a href="@bookLink" target="_blank">@Translate("Translate_Book_Trip")</a> 1510 } else { 1511 <a href="@bookLink">@Translate("Translate_Book_Trip")</a> 1512 } 1513 } 1514 } 1515 </li><li id="mobileMenuClose"> 1516 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg"))) { 1517 <span class="icon icon-close"> 1518 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-close.svg")) 1519 </span> 1520 } 1521 </li></ul> 1522 @{ 1523 string formAction = "/Default.aspx?Id=" + GetString("Item.Area.SearchPage"); 1524 string formHiddenValue = GetString("Item.Area.SearchPage"); 1525 string searchPlaceholder = @Translate("Translate_Search_placeholder"); 1526 } 1527 <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"> 1528 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg"))) { 1529 <span class="icon icon-search"> 1530 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-search.svg")) 1531 </span> 1532 } 1533 </button></div></form></nav></text> 1534 } 1535 @GetValue("DwContent(header)") 1536 @RenderSnippet("TabHeader") 1537 1538 1539 @GetValue("DwContent(content)") 1540 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CartParagraph"))) { 1541 <text>@RenderParagraphContent(GetInteger("Item.Area.CartParagraph"))</text> 1542 } 1543 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FooterPartial"))) { 1544 string footerPartial = GetString("Item.Area.FooterPartial"); 1545 1546 switch (footerPartial) { 1547 case "hotel": 1548 <text><footer id="footer"><div class="footer-info"><div class="footer-info-container"><div class="footer-info-item"><a href="/" id="footerLogo"> 1549 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1550 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1551 @:@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg")) 1552 } 1553 } else { 1554 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1555 @:@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo"))) 1556 } 1557 } 1558 </a></div><div class="footer-info-item"> 1559 @{ 1560 string telLinkHotel = "tel:" + GetString("Item.Area.Phone"); 1561 string mailtoLinkHotel = "mailto:" + GetString("Item.Area.Mail"); 1562 } 1563 <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> 1564 @foreach (var li in GetLoop("Item.Area.FooterLinks")) { 1565 var liLink = li.GetString("Item.Area.FooterLinks.LInk"); 1566 1567 <li><a href="@liLink">@li.GetString("Item.Area.FooterLinks.LinkText")</a></li> 1568 } 1569 </ul></div><div class="footer-info-item"> 1570 @GetString("Item.Area.Alt_Info") 1571 </div></div></div> 1572 @if (GetLoop("Item.Area.FooterLogos").Any()) { 1573 <div class="footerLogos"> 1574 @foreach (var footerLogo in GetLoop("Item.Area.FooterLogos")) { 1575 string link = footerLogo.GetString("Item.Area.FooterLogos.Link"); 1576 string logo = footerLogo.GetString("Item.Area.FooterLogos.Image"); 1577 1578 <div class="footerLogo"> 1579 @if (!string.IsNullOrWhiteSpace(link)) { 1580 <a href="@link"><img src="@logo" alt=""></a> 1581 } else { 1582 <img src="@logo" alt=""> 1583 } 1584 </div> 1585 } 1586 </div> 1587 } 1588 </footer></text> 1589 break; 1590 case "brandan": 1591 <text><footer id="footer"> 1592 <!--<div id="footer-logo"><a href="/" id="bottomLogo" class="footer-center"><img src="/Files/Templates/Designs/brandan/images/HotelBrandan_logo_neg.png"></a></div>--> 1593 <div class="footer-info"> 1594 <div class="footer-info-container"> 1595 <div class="footer-info-item"> 1596 <a href="/" id="footerLogo"> 1597 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1598 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1599 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1600 } 1601 } else { 1602 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1603 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1604 } 1605 } 1606 </a> 1607 </div> 1608 <div class="footer-info-item"> 1609 @{ 1610 string telLinkB = "tel:" + GetString("Item.Area.Phone"); 1611 string mailtoLinkB = "mailto:" + GetString("Item.Area.Mail"); 1612 } 1613 <ul> 1614 <li>@GetString("Item.Area.Name")</li> 1615 <li>@GetString("Item.Area.Address")</li> 1616 <li>@GetString("Item.Area.Zipcode"), @GetString("Item.Area.City")</li> 1617 <li>FAROE ISLANDS</li> 1618 <li><a href="@telLinkB">@GetString("Item.Area.Phone")</a></li> 1619 <li><a href="@mailtoLinkB">@GetString("Item.Area.Mail")</a></li> 1620 <li>@GetString("Item.Area.CVR")</li> 1621 </ul> 1622 </div> 1623 <div class="footer-info-item"> 1624 <ul> 1625 <li><a href="//smyrilline.fo">smyrilline.fo</a></li> 1626 <li><a href="//hafnia.fo">hafnia.fo</a></li> 1627 <li><a href="//katrina.fo">katrina.fo</a></li> 1628 <li><a href="//kaspar.fo">kaspar.fo</a></li> 1629 <!--<li><a href="#">CAR RENTAL</a></li>--> 1630 <li><a href="//excursions.fo/">Excursions.fo</a></li> 1631 </ul> 1632 </div> 1633 </div> 1634 </div> 1635 </footer></text> 1636 break; 1637 case "kc": 1638 <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"> 1639 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1640 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1641 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1642 } 1643 } else { 1644 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1645 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1646 } 1647 } 1648 </a></div><div class="footer-info-item"> 1649 @{ 1650 string telLinkKc = "tel:" + GetString("Item.Area.Phone"); 1651 string mailtoLinkKc = "mailto:" + GetString("Item.Area.Mail"); 1652 } 1653 <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> 1654 break; 1655 case "hafnia": 1656 <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"> 1657 @if(string.IsNullOrWhiteSpace(GetString("Item.Area.Logo"))) { 1658 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))) { 1659 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/brandan-logo.svg"))</text> 1660 } 1661 } else { 1662 if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))) { 1663 <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.Logo")))</text> 1664 } 1665 } 1666 </a></div><div class="footer-info-item"> 1667 @{ 1668 string telLinkH = "tel:" + GetString("Item.Area.Phone"); 1669 string mailtoLinkH = "mailto:" + GetString("Item.Area.Mail"); 1670 } 1671 <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> 1672 break; 1673 case "cargo": 1674 <text><footer id="footer"> 1675 @GetString("Item.Area.Alt_Info") 1676 </footer></text> 1677 break; 1678 case "excursions": 1679 <text><footer id="footer"> 1680 <nav id="footerNavigation"> 1681 <ul class="footer-info"> 1682 <li class="header">@GetString("Item.Area.FooterColumn_1Header")</li> 1683 @foreach (var li in GetLoop("Item.Area.FooterColumn_1Content")) { 1684 <li> 1685 @li.GetString("Item.Area.FooterColumn_1Content.Text").Replace("<p>", "").Replace("</p>", "") 1686 </li> 1687 } 1688 </ul> 1689 <ul class="footer-info arrivals-departures"> 1690 <li class="header">@GetString("Item.Area.FooterColumn_2Header")</li> 1691 <li> 1692 @GetString("Item.Area.Alt_Info") 1693 </li> 1694 </ul> 1695 <ul class="footer-info"> 1696 <li class="header">@GetString("Item.Area.FooterColumn_3Header")</li> 1697 <li> 1698 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1699 <span class="icon icon-phone"> 1700 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1701 </span> 1702 } 1703 <a href="@linkTel">@GetString("Item.Area.NavigationPhoneNumber")</a> 1704 </li> 1705 <li> 1706 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg"))) { 1707 <span class="icon icon-mail"> 1708 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg")) 1709 </span> 1710 } 1711 @{ 1712 string linkMail = "mailto:" + GetString("Item.Area.NavigationEmail").Replace(" ", ""); 1713 } 1714 <a href="@linkMail">@GetString("Item.Area.NavigationEmail")</a> 1715 </li> 1716 </ul> 1717 @if(GetString("LongLang") == "is-IS") { 1718 <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> 1719 } 1720 </nav> 1721 <address id="address"> 1722 <a href="/" id="bottomLogo"> 1723 @{ 1724 string defaultImage = GetString("Item.Area.DefaultImage"); 1725 } 1726 <img src="@defaultImage" width="85" height="85" alt="Smyril Line" loading="lazy"> 1727 </a> 1728 <span class="line"> 1729 @GetString("Item.Area.Name") 1730 </span> 1731 <span>&bull;</span> 1732 <span class="line"> 1733 @GetString("Item.Area.Address") 1734 </span> 1735 <span>&bull;</span> 1736 <span class="line"> 1737 @GetString("Item.Area.Zipcode") @GetString("Item.Area.City") 1738 </span> 1739 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { 1740 <span>&bull;</span> 1741 <span class="line"> 1742 @GetString("Item.Area.CVR") 1743 </span> 1744 } 1745 <span>&bull;</span> 1746 <span class="line"> 1747 @{ 1748 string linkTelAddress = "tel:" + GetString("Item.Area.Phone").Replace(" ", ""); 1749 } 1750 T: <a href="@linkTelAddress">@GetString("Item.Area.Phone")</a> 1751 </span> 1752 <span>&bull;</span> 1753 <span class="line"> 1754 E: <a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a> 1755 </span> 1756 </address> 1757 @if (GetLoop("Item.Area.FooterLogos").Any()) { 1758 <div class="footerLogos"> 1759 @foreach (var footerLogo in GetLoop("Item.Area.FooterLogos")) { 1760 string link = footerLogo.GetString("Item.Area.FooterLogos.Link"); 1761 string logo = footerLogo.GetString("Item.Area.FooterLogos.Image"); 1762 1763 <div class="footerLogo"> 1764 @if (!string.IsNullOrWhiteSpace(link)) { 1765 <a href="@link"><img src="@logo" alt=""></a> 1766 } else { 1767 <img src="@logo" alt=""> 1768 } 1769 </div> 1770 } 1771 </div> 1772 } 1773 </footer></text> 1774 break; 1775 } 1776 } else { 1777 <text><footer id="footer"><nav id="footerNavigation"><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_1Header")</li> 1778 @foreach (var li in GetLoop("Item.Area.FooterColumn_1Content")) { 1779 <li> 1780 @li.GetString("Item.Area.FooterColumn_1Content.Text").Replace("<p>", "").Replace("</p>", "") 1781 </li> 1782 } 1783 @if ( 1784 Pageview.Area.ID == 1 || // SML EN 1785 Pageview.Area.ID == 7 || // SML DK 1786 Pageview.Area.ID == 26 || // SML NO 1787 Pageview.Area.ID == 28 || // SML SE 1788 Pageview.Area.ID == 9 || // SML DE 1789 Pageview.Area.ID == 20 || // SML NL 1790 Pageview.Area.ID == 19 || // SML FR 1791 Pageview.Area.ID == 21 || // SML FO 1792 Pageview.Area.ID == 22 // SML IS 1793 ) { 1794 <li><a onclick="javascript:CookieConsent.renew();">@Translate("Translate_Cookie-consent")</a></li> 1795 } 1796 </ul><ul class="footer-info arrivals-departures"><li class="header">@GetString("Item.Area.FooterColumn_2Header")</li><li> 1797 @using System.Linq; 1798 @{ 1799 string reply = new System.Net.WebClient().DownloadString("http://api.smyrilline.fo/api/departure?limit=2"); 1800 Smyrilline.Web.Types.DepartureInfo[] depInfos = Newtonsoft.Json.JsonConvert.DeserializeObject<Smyrilline.Web.Types.DepartureInfo[]>(reply); 1801 if(depInfos.Length > 0) { 1802 depInfos = depInfos.OrderBy(x => x.ETD).ToArray(); 1803 } 1804 } 1805 <div id="sailing-schedule-module"> 1806 @foreach(Smyrilline.Web.Types.DepartureInfo depInfo in depInfos) { 1807 <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> 1808 } 1809 </div> 1810 1811 1812 </li></ul><ul class="footer-info"><li class="header">@GetString("Item.Area.FooterColumn_3Header")</li><li> 1813 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg"))) { 1814 <span class="icon icon-phone"> 1815 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-phone.svg")) 1816 </span> 1817 } 1818 <a href="@linkTel">@GetString("Item.Area.NavigationPhoneNumber")</a></li><li> 1819 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg"))) { 1820 <span class="icon icon-mail"> 1821 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-mail.svg")) 1822 </span> 1823 } 1824 @{ 1825 string linkMail = "mailto:" + GetString("Item.Area.NavigationEmail").Replace(" ", ""); 1826 } 1827 <a href="@linkMail">@GetString("Item.Area.NavigationEmail")</a></li><li> 1828 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg"))) { 1829 <span class="icon icon-pin"> 1830 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-pin.svg")) 1831 </span> 1832 } 1833 @{ 1834 string officesLink = GetString("Item.Area.NavigationOfficesLink"); 1835 } 1836 <a href="@officesLink">@Translate("Translate_Our_offices")</a></li><li> 1837 @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg"))) { 1838 <span class="icon icon-cargo"> 1839 @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/smyrilline/images/icon-cargo.svg")) 1840 </span> 1841 } 1842 @{ 1843 string cargoLink = GetString("Item.Area.NavigationCargoLink"); 1844 } 1845 <a href="@cargoLink">@Translate("Translate_Order_cargo")</a></li></ul> 1846 @if(GetString("LongLang") == "is-IS") { 1847 <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> 1848 } 1849 </nav> 1850 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.Alt_Info"))) { 1851 @GetString("Item.Area.Alt_Info") 1852 } else { 1853 <address id="address"><a href="/" id="bottomLogo"> 1854 @{ 1855 string defaultImage = GetString("Item.Area.DefaultImage"); 1856 } 1857 <img src="@defaultImage" width="85" height="85" alt="Smyril Line" loading="lazy"></a><span class="line"> 1858 @GetString("Item.Area.Name") 1859 </span><span>&bull;</span><span class="line"> 1860 @GetString("Item.Area.Address") 1861 </span><span>&bull;</span><span class="line"> 1862 @GetString("Item.Area.Zipcode") @GetString("Item.Area.City") 1863 </span> 1864 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { 1865 <span>&bull;</span><span class="line"> 1866 @GetString("Item.Area.CVR") 1867 </span> 1868 } 1869 <span>&bull;</span><span class="line"> 1870 @{ 1871 string linkTelAddress = "tel:" + GetString("Item.Area.Phone").Replace(" ", ""); 1872 } 1873 T: <a href="@linkTelAddress">@GetString("Item.Area.Phone")</a></span><span>&bull;</span><span class="line"> 1874 E: <a href="mailto:@GetString(" item.area.mail")"="">@GetString("Item.Area.Mail")</a></span></address> 1875 } 1876 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AgentLogin_URL"))) { 1877 string agentLogin = GetString("Item.Area.AgentLogin_URL"); 1878 1879 <div id="agentLogin"><a href="@agentLogin" target="_blank">@GetString("Item.Area.AgentLoginLinkText")</a></div> 1880 } 1881 @if (GetLoop("Item.Area.FooterLogos").Any()) { 1882 <div class="footerLogos"> 1883 @foreach (var footerLogo in GetLoop("Item.Area.FooterLogos")) { 1884 string link = footerLogo.GetString("Item.Area.FooterLogos.Link"); 1885 string logo = footerLogo.GetString("Item.Area.FooterLogos.Image"); 1886 1887 <div class="footerLogo"> 1888 @if (!string.IsNullOrWhiteSpace(link)) { 1889 <a href="@link"><img src="@logo" alt=""></a> 1890 } else { 1891 <img src="@logo" alt=""> 1892 } 1893 </div> 1894 } 1895 </div> 1896 } 1897 </footer></text> 1898 } 1899 @if ( 1900 Pageview.Area.ID != 1 && // SML EN 1901 Pageview.Area.ID != 7 && // SML DK 1902 Pageview.Area.ID != 26 && // SML NO 1903 Pageview.Area.ID != 28 && // SML SE 1904 Pageview.Area.ID != 9 && // SML DE 1905 Pageview.Area.ID != 20 && // SML NL 1906 Pageview.Area.ID != 19 && // SML FR 1907 Pageview.Area.ID != 21 && // SML FO 1908 Pageview.Area.ID != 22 // SML IS 1909 ) { 1910 string locale = GetString("Item.Area.Locale"); 1911 string timeout = GetString("Item.Area.Timeout"); 1912 string expiration = GetString("Item.Area.Expiration"); 1913 string statement = GetString("Item.Area.Statement"); 1914 string extra = GetString("Item.Area.Extra"); 1915 1916 <script> 1917 var gdprCookieNoticeLocales = {}; 1918 1919 gdprCookieNoticeLocales.translations = { 1920 description: '@Translate("Translate_Cookie_Desc")', 1921 settings: '@Translate("Translate_Cookie_Settings")', 1922 accept: '@Translate("Translate_Cookie_Accept")', 1923 statement: '@Translate("Translate_Cookie_OurCookieStatement")', 1924 save: '@Translate("Translate_Cookie_SaveSettings")', 1925 always_on: '@Translate("Translate_Cookie_AlwaysOn")', 1926 cookie_essential_title: '@Translate("Translate_Cookie_EssentialTitle")', 1927 cookie_essential_desc: '@Translate("Translate_Cookie_EssentialDesc")', 1928 cookie_extra_title: '@Translate("Translate_Cookie_AdditionalTitle")', 1929 cookie_extra_desc: '@Translate("Translate_Cookie_AdditionalDesc")' 1930 }; 1931 </script><script src="https://book.smyrilline.fo/gdpr/gdpr.js" async="" defer=""></script><script> 1932 document.addEventListener('gdprCookiesEnabled', function(e) { 1933 window.dataLayer = window.dataLayer || []; 1934 1935 if (e.detail.extra) { 1936 window.dataLayer.push({ 1937 event: 'smyrilline-cookies-accepted' 1938 }); 1939 } 1940 }); 1941 1942 function setupGdpr() { 1943 gdprCookieNotice({ 1944 locale: '@locale', //This is the default value 1945 timeout: @timeout, //Time until the cookie bar appears 1946 expiration: @expiration, //This is the default value, in days 1947 statement: '@statement', //Link to your cookie statement page 1948 extra: [@extra] 1949 }); 1950 } 1951 1952 var checkGdpr = setInterval(function() { 1953 //if (gdprCookieNotice) { 1954 if (window["gdpr-cookie-notice-templates"]) { 1955 clearInterval(checkGdpr); 1956 setupGdpr(); 1957 } 1958 }); 1959 </script> 1960 } 1961 1962 </div> 1963 @{ 1964 string scriptSrc = "/Files/Templates/Designs/smyrilline/js/smyrilline.min.js?v=" + jsEditDate; 1965 } 1966 <script src="@scriptSrc" async="" defer=""></script> 1967 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddJsFile"))) { 1968 string addJsEditDate = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(GetString("Item.Area.AddJsFile"))).ToString(); 1969 addJsEditDate = addCssEditDate.Replace(":", "").Replace(" ", "").Replace("-", "").Replace("/", ""); 1970 1971 string pathToJs = GetString("Item.Area.AddJsFile") + "?v=" + addJsEditDate; 1972 1973 <script src="@pathToJs" async="" defer=""></script> 1974 } 1975 <script> 1976 var canvasLetters = []; 1977 </script> 1978 @RenderSnippet("jsbottom") 1979 <script> 1980 WebFontConfig = { 1981 custom: { 1982 families: ['Manus'] 1983 }, 1984 fontactive: function (familyName, fvd) { 1985 if (familyName == 'Manus') { 1986 drawLetters(); 1987 } 1988 } 1989 }; 1990 1991 (function (d) { 1992 var wf = d.createElement('script'), s = d.scripts[0]; 1993 wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; 1994 wf.async = true; 1995 s.parentNode.insertBefore(wf, s); 1996 })(document); 1997 1998 function drawLetters() { 1999 for (var a = 0; a < canvasLetters.length; a++) { 2000 drawLetter(canvasLetters[a]); 2001 } 2002 } 2003 2004 function drawLetter(canvasLetter) { 2005 var canvas = document.getElementById(canvasLetter.id); 2006 2007 if (canvas != undefined) { 2008 var context = canvas.getContext('2d'); 2009 2010 context.font = '400 ' + canvasLetter.fontSize + ' Manus'; 2011 2012 if (canvasLetter.fillStyle != undefined) { 2013 context.fillStyle = canvasLetter.fillStyle; 2014 } 2015 2016 context.fillText(canvasLetter.letter, canvasLetter.position.x, canvasLetter.position.y); 2017 2018 if (canvasLetter.image != undefined) { 2019 var img = new Image(); 2020 img.src = canvasLetter.image; 2021 2022 2023 if (img.complete) { 2024 drawImage(canvas, context, img); 2025 } else { 2026 img.addEventListener('load', function () { 2027 drawImage(canvas, context, img); 2028 }); 2029 } 2030 } 2031 } 2032 } 2033 2034 function drawImage(canvas, context, image) { 2035 context.globalCompositeOperation = 'source-in'; 2036 context.drawImage(image, 0, 0, canvas.width, canvas.height); 2037 context.globalCompositeOperation = 'source-over'; 2038 } 2039 </script> 2040 @if (System.Web.HttpContext.Current.Request.Cookies["smyrilline-styles"] == null) { 2041 System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Value = "1"; 2042 System.Web.HttpContext.Current.Response.Cookies["smyrilline-styles"].Expires = DateTime.Now.AddDays(100); 2043 2044 <noscript id="deferred-styles"><link rel="stylesheet" href="/files/templates/designs/smyrilline/css/smyrilline.min.css?v=@cssEditDate" id="style3"> 2045 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.AddCssFile"))) { 2046 string addCssPath3 = @GetString("Item.Area.AddCssFile") + "?v=" + addCssEditDate; 2047 2048 <link rel="stylesheet" href="@addCssPath3" id="addStyle3"> 2049 } 2050 </noscript><script> 2051 var loadDeferredStyles = function () { 2052 var addStylesNode = document.getElementById("deferred-styles"); 2053 var replacement = document.createElement("div"); 2054 2055 replacement.innerHTML = addStylesNode.textContent; 2056 document.body.appendChild(replacement) 2057 addStylesNode.parentElement.removeChild(addStylesNode); 2058 }; 2059 2060 var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; 2061 2062 if (raf) raf(function () { window.setTimeout(loadDeferredStyles, 0); }); 2063 else window.addEventListener('load', loadDeferredStyles); 2064 </script> 2065 } 2066 2067 </body></html>