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