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