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