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

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