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