Error executing template "Designs/Mobler/_parsed/Clean_NoBreadcrumb.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at Mobler.Website.CustomCode.Frontend.V2.Helpers.Website.createCanonical() in D:\a\1\s\Mobler.Website\CustomCode\Frontend\V2\Helpers\WebsiteHelper.cs:line 98
at CompiledRazorTemplates.Dynamic.RazorEngine_6c540a0a43bb48ec840ac1c4dd5952ed.Execute() in D:\dynamicweb.net\Solutions\mobler.LIVE\Files\Templates\Designs\Mobler\_parsed\Clean_NoBreadcrumb.parsed.cshtml:line 86
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 @using System.Web;
2 @using System.Text.RegularExpressions
3 @using Dynamicweb.Core.Helpers
4 @using Dynamicweb.Frontend.Navigation
5 @using Dynamicweb.Rendering.Translation
6 @using Newtonsoft.Json
7 @using NuGet
8 @using Mobler.Website.CustomCode.Models
9 @using Vite.Dw.Extensions
10 @using HttpUtility = System.Web.HttpUtility
11 @using Mobler.Website.CustomCode.Frontend.V2.Helpers
12
13 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
14
15 @{
16 string CurrentEcomShopId = Dynamicweb.Frontend.PageView.Current().Area.EcomShopId;
17 string CurrentEcomLanguageId = Dynamicweb.Ecommerce.Common.Context.LanguageID;
18 string MainShopLink = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("MainShopLink");
19 string shopname = Website.GetShopName();
20 string shopnameEncoded = HttpUtility.UrlEncode(shopname);
21 var shopInfo = Website.ShopInfo();
22 string globalAreaName = GetGlobalValue("Global:Area.Name");
23
24 string culture = Dynamicweb.Frontend.PageView.Current().Area.Culture;
25 string designFolder = Dynamicweb.Frontend.PageView.Current().Area.Layout.Design.Name;
26
27 string logoSrc = "";
28 string logoSrcMobile = "";
29
30 if (shopname.ToLower() != "møblér" && shopname.ToLower() != "mobler" && shopname.ToLower() != "m%c3%b8bl%c3%a9r" && !string.IsNullOrEmpty(shopname))
31 {
32 logoSrc = "/Files/Templates/Designs/Mobler/dist/logos/mobler-" + shopname.Replace(" ", "").ToLower() + ".svg";
33 logoSrcMobile = "/Files/Templates/Designs/Mobler/dist/logos/mobler-" + shopname.Replace(" ", "").ToLower() + "-mobile.svg";
34 } else {
35 logoSrc = "/Files/Templates/Designs/Mobler/dist/logos/mobler.svg";
36 logoSrcMobile = "/Files/Templates/Designs/Mobler/dist/logos/mobler.svg";
37 }
38
39 //this defines a shoppage
40 if (GetString("Item.SystemName") == "TextPage")
41 {
42 shopname = GetString("DwPageName_2");
43 }
44
45 string imageName = shopname.Replace(" ", string.Empty) + "-owner.png";
46 string localShopPage = Website.localshopPage();
47 string FindDealerPage = GetString("Item.Area.FindDealerPage");
48 string CartPage = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("CartPage");
49
50 string SearchNoResults = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("NoResults");
51 string SearchPagePageSize = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("SearchPagePageSize") != "0" ? Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("SearchPagePageSize") : "20";
52 string InstantSearchSize = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("InstantsearchPageSize") != "0" ? Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("InstantsearchPageSize") : "10";
53
54 string SearchResultPageId = "";
55 if (Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("SearchResultPage").Split('=').Length > 1)
56 {
57 SearchResultPageId = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("SearchResultPage").Split('=')[1];
58 }
59 string FooterLinkDestination = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("Link");
60 int ShopPageId = GetInteger("Item.Area.ShopPageId");
61 string SearchBarPlaceholder = Translate("SearchbarPlaceholderText", "Søg..");
62 int GlobalNewsletterParagraphId = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetInt("GlobalNewsletterParagraphId");
63 int CartCount = GetLoop("OrderLines").Count;
64 bool FirstShopWithSameName = true;
65 string SelectPlaceholder = Translate("ShopSelectPlaceholder", "Indtast by, postnummer eller adresse");
66 string SelectNoResult = Translate("ShopSelectNoResult", "No such shop found");
67 int ProductPage = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetInt("PrimaryProductPage");
68
69 DateTime today = DateTime.Today;
70 string currentYear = today.ToString("yyyy");
71
72 string BannerBackgroundColor = GetString("Item.Area.BannerBackgroundColor");
73 string BannerTextColor = GetString("Item.Area.BannerTextColor");
74 var TopBarNav = GetLoop("Item.Area.TopBarNavigation");
75 var TopbarHeaderContent = GetLoop("Item.Area.TopbarHeaderContent");
76 string TilbudBgColor = !String.IsNullOrEmpty(GetString("Item.Area.TilbudBackgroundColor.Value")) ? GetString("Item.Area.TilbudBackgroundColor.Value") : "#00AB5D";
77 string TilbudTextColor = !String.IsNullOrEmpty(GetString("Item.Area.TilbudTextColor.Value")) ? GetString("Item.Area.TilbudTextColor.Value") : "#FFFFFF";
78 string StrongPriceBgColor = !String.IsNullOrEmpty(GetString("Item.Area.St_rkPrisBackgroundColor.Value")) ? GetString("Item.Area.St_rkPrisBackgroundColor.Value") : "#9d4778";
79 string StrongPriceTextColor = !String.IsNullOrEmpty(GetString("Item.Area.St_rkPrisTextColor.Value")) ? GetString("Item.Area.St_rkPrisTextColor.Value") : "#FFFFFF";
80 var uniqueSellingPoints = GetLoop("Item.Area.UniqueSellingPoints");
81 string CookieText = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("CookieText");
82 string CookieReadMore = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("CookieReadMoreText");
83 var TopLevelGroups = Dynamicweb.Ecommerce.Services.ProductGroups.GetToplevelGroups().Where(g => g.ShopId == CurrentEcomShopId && g.LanguageId == CurrentEcomLanguageId && g.NavigationShowInMenu).ToList();
84 string CurrentUri = HttpContext.Current.Request.Url.PathAndQuery.ToString().Replace("/Default.aspx", "Default.aspx");
85 string convertedUri = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(CurrentUri);
86 string CanonicalUri = Website.createCanonical();
87 string CanonicalDomain = "mobler.dk";
88 if (Website.IsLocalWebshop())
89 {
90 CanonicalDomain = System.Web.HttpContext.Current.Request.Url.Host;
91 }
92 string CanonicalURL = "https://" + CanonicalDomain + CanonicalUri;
93 string AvisLink = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("Avis");
94 string FindShopSearchPlaceholder = Translate("HeaderNav.FindShopPlaceholder", "Indtast postnr., by eller adresse");
95 string SetBannerEndpoint = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetString("GetCartJson");
96 bool ShowTopBanner = Mobler.Website.CustomCode.Frontend.V2.Helpers.MessageBanner.ShowMessageBanner();
97 bool EnableTopBarHeader = GetBoolean("Item.Area.EnableTopBarHeader.Value");
98 bool EnableTopBarNavigation = GetBoolean("Item.Area.EnableTopBarBanner.Value") && ShowTopBanner;
99
100 bool EnableGoogleShoppingScript = GetBoolean("Item.Area.EnableGoogleShoppingScript.Value");
101 string GoogleShoppingContentKey = GetString("Item.Area.GoogleShoppingContentKey.Value");
102
103 bool EnableFacebookScript = GetBoolean("Item.Area.EnableFacebookScript.Value");
104 string FacebookScriptContentKey = GetString("Item.Area.FacebookScriptContentKey.Value");
105 string PinterestDomainVerifyContentKey = GetString("Item.Area.PinterestDomainVerifyContentKey.Value");
106
107 bool IsCheckoutStep = false || HttpContext.Current.Request.RawUrl.Contains("checkout");
108 bool isCheckoutFirstStep = false || HttpContext.Current.Request.RawUrl.Contains("indkoebskurv");
109 }
110
111 <!doctype html>
112 <html lang="da" class="box-border w-screen">
113
114 <head>
115 <script src="https://catalog-deploy.shopvertize.io/mobler/publication-c4737f54-8932-482b-b53f-6c2c4fb7deb0.js"></script>
116 <script>
117 // Temporary workaround for hiding the Cookiebot banner from Web Vitals scans
118 // https://support.cookiebot.com/hc/en-us/articles/360020501579-Google-Core-Web-Vitals-and-Cookiebot-CMP#h_01H05PZGDJ2TGTZBP5R1FC8EMH
119 window.addEventListener("CookiebotOnDialogInit", function() {
120 if (Cookiebot.getDomainUrlParam("CookiebotScan") === "true")
121 Cookiebot.setOutOfRegion();
122 });
123 </script>
124 <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="ec05aeab-ec7b-4d91-81fc-a8ebbcce1f2f" data-blockingmode="auto" type="text/javascript"></script>
125 <script data-cookieconsent="ignore">
126 window.domGaTrackingEvents = [];
127 window.domFbqTrackingEvents = [];
128
129 window.dataLayer = window.dataLayer || [];
130 function gtag() {
131 dataLayer.push(arguments);
132 }
133 gtag("consent", "default", {
134 ad_storage: "denied",
135 analytics_storage: "denied",
136 functionality_storage: "denied",
137 personalization_storage: "denied",
138 security_storage: "granted",
139 wait_for_update: 500,
140 });
141 gtag("set", "ads_data_redaction", true);
142 gtag("set", "url_passthrough", true);
143 </script>
144 @*GTM*@
145 <script>
146 var ecomm_pagetype = "other";
147 var ecomm_totalvalue = 0;
148 var ecomm_prodid = "";
149 </script>
150 @RenderSnippet("DataLayerOverwrites")
151
152 @RenderSnippet("DataLayerOverwriteReceipt")
153
154 <!-- Google Tag Manager -->
155 <script data-cookieconsent="ignore">!function () { "use strict"; function e(e) { return function (e) { for (var t = 0, r = document.cookie.split(";"); t < r.length; t++) { var n = r[t].split("="); if (n[0].trim() === e) return n[1] } }(e) } function t(e) { return localStorage.getItem(e) } function r(e) { return window[e] } function n(e, t) { var r = document.querySelector(e); return t ? null == r ? void 0 : r.getAttribute(t) : null == r ? void 0 : r.textContent } !function (o, i, a, c, u, l, s, v, d, f, g) { var E, I, m, T; try { I = d && (m = navigator.userAgent, (T = new RegExp("Version/([0-9._]+)(.*Mobile)?.*Safari.*").exec(m)) && parseFloat(T[1]) >= 16.4) ? function (o, i, a) { void 0 === i && (i = ""); var c = { cookie: e, localStorage: t, jsVariable: r, cssSelector: n }, u = Array.isArray(i) ? i : [i]; if (o && c[o]) for (var l = c[o], s = 0, v = u; s < v.length; s++) { var d = v[s], f = a ? l(d, a) : l(d); if (f) return f } else console.warn("invalid uid source", o) }(d, "user_id", "") : void 0 } catch (e) { console.error(e) } var _ = o; _[c] = _[c] || [], _[c].push({ "gtm.start": (new Date).getTime(), event: "gtm.js" }); var p = i.getElementsByTagName(a)[0], A = I ? "&bi=" + encodeURIComponent(I) : "", N = i.createElement(a), D = I ? "kp" + v : v, R = !I && s ? s : "https://gtm.mobler.dk"; N.async = !0, N.src = R + "/" + D + ".js?id=GTM-PN9ZSS" + A, null === (E = p.parentNode) || void 0 === E || E.insertBefore(N, p) }(window, document, "script", "dataLayer", 0, 0, "", "rcuxkqbl", "cookie") }();</script>
156 <!-- End Google Tag Manager -->
157 <!-- Required meta tags -->
158 <meta charset="utf-8">
159 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
160
161 @if (string.IsNullOrEmpty(Dynamicweb.Context.Current.Request["productid"]))
162 {
163
164
165 <title>@GetValue("Title")</title>
166 @GetValue("MetaTags")
167 @GetValue("CopyRightNotice")
168
169 }
170 else
171 {
172 @RenderSnippet("ProductDetailsMeta")
173 }
174
175 @if ((Mobler.Website.CustomCode.Frontend.Helper.IsLocalWebshop() && !System.Web.HttpContext.Current.Request.RawUrl.ToLower().EndsWith("/om-os")) || (System.Web.HttpContext.Current.Request.Url.Host.ToLower().Contains("1stweb") && !System.Web.HttpContext.Current.Request.Url.PathAndQuery.ToLower().Contains("debug")) || System.Web.HttpContext.Current.Request.Url.AbsoluteUri.ToLower().Contains("groupid=pim-"))
176 {
177 <meta name="robots" content="noindex">
178 }
179
180 @if (!Mobler.Website.CustomCode.Frontend.Helper.IsLocalWebshop())
181 {
182 <link rel="canonical" href="@CanonicalURL">
183 }
184 <meta property="og:url" content="@CanonicalURL">
185 <meta property="og:title" content="@GetValue(" title")"="">
186
187 <link rel="shortcut icon" type="image/ico" href="/Files/Templates/Designs/Mobler/public/icons/favicon.ico">
188
189 @if (GetString("Item.SystemName") == "BlogPost")
190 {
191 string imageMasterPage = GetString("Item.Billede.Value");
192 string TeaserText = Regex.Replace(GetString("Item.TeaserTekst"), "<.*?>", String.Empty);
193 <meta property="og:type" content="article">
194 <meta property="og:description" content="@TeaserText">
195 <meta property="og:image" content="@imageMasterPage">
196 }
197 else if (GetString("Item.SystemName") == "Brand")
198 {
199 string imageMasterPage = GetString("Item.Logo.Value");
200 string TeaserText = GetString("Item.Navn");
201 <meta property="og:type" content="article">
202 <meta property="og:description" content="@TeaserText">
203 <meta property="og:image" content="@imageMasterPage">
204 }
205 else if (System.Web.HttpContext.Current.Items["OverrideOgTags"] != null)
206 {
207 @RenderSnippet("OgTags")
208 }
209 else
210 {
211 <meta property="og:type" content="business.business">
212 <meta property="og:description" content="@GetString(" meta.description")"="">
213 <meta property="og:image" content="https://mobler.dk/Files/Templates/Designs/Mobler2018/dist/logos/mobler.svg">
214 }
215
216
217 @if (EnableGoogleShoppingScript && !string.IsNullOrEmpty(GoogleShoppingContentKey))
218 {
219 <meta name="google-site-verification" content="@GoogleShoppingContentKey">
220 }
221
222 @if (EnableFacebookScript && !string.IsNullOrEmpty(FacebookScriptContentKey))
223 {
224 <meta name="facebook-domain-verification" content="@FacebookScriptContentKey">
225 }
226
227 @if (EnableFacebookScript && !string.IsNullOrEmpty(PinterestDomainVerifyContentKey))
228 {
229 <meta name="p:domain_verify" content="@PinterestDomainVerifyContentKey">
230 }
231
232 @Pageview.AddViteStyles()
233
234 <link rel="preconnect" href="https://content.cylindo.com" crossorigin="">
235
236
237 @GetValue("Stylesheets")
238 @GetValue("Javascripts")
239 </head>
240 @{
241 bool isBlackFriday = Firstweb.Custom.CustomCode.Frontend.Helpers.AreaItems.GetBoolean("BlackFridayTheme");
242 string blackFridayThemeClass = isBlackFriday ? "theme--black-friday" : "";
243 }
244 <body class="@blackFridayThemeClass overflow-x-hidden" data-bind="viewModel: 'MasterViewModel', Cookies" data-currentshopislocalwebshop="@Mobler.Website.CustomCode.Frontend.Helper.IsLocalWebshop()" data-mainshoplink="@MainShopLink" data-culture="@culture" data-design="@designFolder">
245
246 <!-- Google Tag Manager (noscript) -->
247 <noscript><iframe src="https://gtm.mobler.dk/ns.html?id=GTM-PN9ZSS" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
248 <!-- End Google Tag Manager (noscript) -->
249
250 <siteheader></siteheader>
251
252 <div>
253 <header class="js-header">
254
255 <!-- TODO: Add logic to SiteHeader -->
256 @if (EnableTopBarNavigation && !IsCheckoutStep && TopBarNav != null)
257 {
258 dynamic NotificationData = new
259 {
260 bannerStyle = new
261 {
262 backgroundColor = BannerBackgroundColor,
263 textColor = BannerTextColor
264 },
265 bannerContent = TopBarNav.Select(item => new
266 {
267 link = item.GetString("Item.Area.TopBarNavigation.NavItemLink"),
268 text = item.GetString("Item.Area.TopBarNavigation.NavItemText")
269 }).ToList()
270 };
271 object NotificationDataJson = HttpUtility.HtmlAttributeEncode(Newtonsoft.Json.JsonConvert.SerializeObject(NotificationData));
272 <script>//console.log("%cNotificationDataJson", "color:white;background:rebeccapurple;padding:5px;", @Newtonsoft.Json.JsonConvert.SerializeObject(NotificationData, new Newtonsoft.Json.JsonSerializerSettings {ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore, PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.Objects}));</script>
273
274 <notificationelement data-theme="info" data-content="@NotificationDataJson"></notificationelement>
275 @*<div class="container-fluid js-top-banner topbar-nav">
276
277 <div class="text-center" style="background-color:@BannerBackgroundColor;">
278 <div class="flex justify-center items- py-1">
279 <ul class="list-none">
280 @foreach (var navItem in TopBarNav)
281 {
282 string ItemLink = navItem.GetString("Item.Area.TopBarNavigation.NavItemLink");
283 string ItemText = navItem.GetString("Item.Area.TopBarNavigation.NavItemText");
284 <li>
285 <a class="nav-link p-1 rte-content" href='@ItemLink' style="color:@BannerTextColor;">
286 @ItemText
287 </a>
288 </li>
289 }
290 </ul>
291 <div class="ml-2">
292 <a href="#" data-bind="topBanner: { target: '.js-top-banner', endpoint: '@SetBannerEndpoint' }">
293 <i class="fa-solid fa-xmark" style="color:@BannerTextColor;"></i>
294 </a>
295 </div>
296 </div>
297 </div>
298 </div>*@
299 }
300 </header>
301 </div>
302
303 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
304
305
306 <div id="content1">@GetValue("DwContent(content1)")</div>
307
308
309 @if (!IsCheckoutStep)
310 {
311 if (!isCheckoutFirstStep)
312 {
313 var brandsLoop = @GetLoop("Item.Page.Brand_Icon.Value");
314 <!-- TODO: (Out of scope) Clean this up so we don't repeat -->
315 <section class="container py-8">
316 <div class="grid grid-cols-3 md:grid-cols-6 gap-4">
317 @if (brandsLoop.Count <= 0)
318 {
319 foreach (var item in GetLoop("Item.Area.Featured_Brands"))
320 {
321 string Link = item.GetString("Item.Area.Featured_Brands.Brand.Value");
322 var Brand = Firstweb.Custom.CustomCode.Frontend.Helpers.Brands.GetBrand(Link);
323
324 if (!String.IsNullOrEmpty(Brand.Name))
325 {
326 <a href="@Brand.Link">
327 <img width="900" height="400" class="img-fit-contain-x" src="/Admin/Public/GetImage.ashx?Image=@Brand.Logo&Format=webP&Quality=90&Height=400" alt="@Brand.Name" loading="lazy">
328 </a>
329 }
330 }
331 }
332 else
333 {
334 foreach (var item in brandsLoop)
335 {
336 string image = item.GetString("Item.Page.Brand_Icon.Value.Image.Value");
337 string link = item.GetString("Item.Page.Brand_Icon.Value.LinkDestination.Value");
338
339 if (!String.IsNullOrEmpty(image))
340 {
341 <a href="@link">
342 <img width="900" height="400" class="img-fluid" src="/Admin/Public/GetImage.ashx?Image=@image&Format=webP&Quality=90&Height=400" alt="" loading="lazy">
343 </a>
344 }
345 }
346 }
347 </div>
348 </section>
349 }
350
351 <section class="bg-beige pt-14 lg:pt-28">
352 <div class="container flex flex-wrap">
353 <div class="w-full md:w-3/4 lg:w-1/2 flex flex-col md:items-start gap-y-4">
354 <a href="/" class="flex flex-col md:items-center">
355 <img width="400" height="46" class="max-h-[46px] hidden md:inline-block" src="@logoSrc" alt='@Translate("LogoAltText", "Møblér: Alt indenfor møbler og boligindretning")' loading="lazy">
356 <img width="400" height="46" class="max-h-[46px] w-full object-contain object-left inline md:hidden" src="@logoSrcMobile" alt='@Translate("LogoAltText", "Møblér: Alt indenfor møbler og boligindretning")' loading="lazy">
357 @if (shopname.ToLower() != "møblér")
358 {
359 <small class="text-xs text-grey-dark text-center hidden md:block">@Translate("LogoServiceText", "Ordren serviceres af Møbler.dk")</small>
360 }
361 </a>
362
363 <!-- TODO: This has not been tested and styled -->
364 @if (shopnameEncoded == "M%c3%b8bl%c3%a9r")
365 {
366 <div>
367 <p class="mb-0 font-bold">@GetString("Item.Area.Header")</p>
368 <p>
369 @GetString("Item.Area.About")
370 </p>
371 <a href="@FooterLinkDestination"><u>@Translate("FooterAboutReadMore", "Læs mere om Møblér kæden her")</u></a>
372 </div>
373 }
374 else
375 {
376 if (GetString("Item.SystemName") == "TextPage")
377 {
378 string CurrentAboutUsShopName = GetString("DwPageName_2");
379 shopInfo = Website.ShopInfo(CurrentAboutUsShopName);
380 shopname = CurrentAboutUsShopName;
381 }
382
383 <div class="flex flex-wrap gap-y-4 w-full">
384 <div class="w-full md:w-1/2">
385 <ul class="list-none">
386 <li class="mb-2"><strong>@shopInfo.ShopName</strong></li>
387 <li>@shopInfo.Address</li>
388 <li>@shopInfo.PostalAndCity</li>
389 <li>
390 <a href="@localShopPage" class="underline text-black">@Translate("ShowOnMap", "Vis på kort")</a>
391 </li>
392
393 @if (!String.IsNullOrEmpty(shopInfo.Address1))
394 {
395 <li>@shopInfo.Address1, @shopInfo.PostalAndCity1</li>
396 }
397 @if (!String.IsNullOrEmpty(shopInfo.Address2))
398 {
399 <li>@shopInfo.Address2, @shopInfo.PostalAndCity2</li>
400 }
401 <li class="mt-4">@shopInfo.Phone</li>
402 <li>
403 <a href="mailto:@shopInfo.Email" class="underline text-black">@shopInfo.Email</a>
404 </li>
405 </ul>
406 </div>
407
408 <div class="w-full md:w-1/2">
409 @if (shopInfo.ShopInformationList.Count > 0 || shopInfo.OpeningHours != null)
410 {
411 <p class="mb-2"><strong>@Translate("openinghours", "Åbningstider")</strong></p>
412 }
413 @if (shopInfo.ShopInformationList.Count > 0)
414 {
415 foreach (var row in shopInfo.ShopInformationList)
416 {
417 var rowClass = !string.IsNullOrEmpty(row.columnTwo) ? "basis-1/2" : "";
418 <div class="flex gap-x-2">
419 <div class="@rowClass">
420 @row.columnOne
421 </div>
422 @if (!string.IsNullOrEmpty(row.columnTwo))
423 {
424 <div>@row.columnTwo</div>
425 }
426 </div>
427 }
428 }
429 else if (shopInfo.OpeningHours != null)
430 {
431 <div class="flex flex-col justify-content items-center gap-2 md:items-start">@shopInfo.OpeningHours</div>
432 }
433 </div>
434
435 </div>
436 }
437 <ul class="list-none flex gap-2 mb-8">
438 @foreach (var Some in GetLoop("Item.Area.SocialMediaIcons"))
439 {
440 string Link = Some.GetString("Item.Area.SocialMediaIcons.Link");
441 string Icon = Some.GetString("Item.Area.SocialMediaIcons.Icon.Value");
442 <li>
443 <a href="@Link" target="_blank" class="text-black text-2xl hover:text-grey-dark">
444 <img width="37" height="37" src="/Admin/Public/GetImage.ashx?Image=@Icon&Format=webP&Quality=90&Height=40" alt="social icon" loading="lazy">
445 </a>
446 </li>
447 }
448
449 @foreach (var Some in GetLoop("Item.Area.SocialMediaFontawesomeIcons"))
450 {
451 string Link = Some.GetString("Item.Area.SocialMediaFontawesomeIcons.Link");
452 string Icon = Some.GetString("Item.Area.SocialMediaFontawesomeIcons.FontawesomeClass");
453 <li>
454 <a href="@Link" target="_blank" class="text-black text-3xl hover:text-grey-dark">
455 <i class="@Icon"></i>
456 </a>
457 </li>
458 }
459 </ul>
460 </div>
461 <div class="hidden lg:flex justify-center items-end w-full lg:w-2/4">
462 @{
463 string footerStaffImagePath = String.Format("/Files/Images/Owners/Large/{0}.png", shopname);
464 string footerStaffGetImage = "";
465 if (!String.IsNullOrEmpty(footerStaffImagePath))
466 {
467 footerStaffGetImage = "/Admin/Public/GetImage.ashx?Image=" + footerStaffImagePath + "&Format=webP&Quality=90&width=640&height=300";
468 }
469 }
470 <img width="640" height="300" class="img-fit-contain-x" src="@footerStaffGetImage" alt="@shopname" loading="lazy">
471 </div>
472 </div>
473 </section>
474
475 <section class="bg-beige-dark py-10">
476 <div class="container">
477 <div class="flex flex-wrap xl:flex-nowrap xl:flex-row gap-4 ">
478 <div class="w-full grid md:grid-cols-3 xl:grid-cols-6 gap-y-4 *:list-none *:text-center *:md:text-left *:text-sm *:leading-8">
479 <ul class="list-none col-span-3 md:col-span-1">
480 <strong>@GetString("Item.Area.Footer_Column_1_Header")</strong>
481 @foreach (var Link in GetLoop("Item.Area.Footer_Column_1_Links"))
482 {
483 string LinkText = Link.GetString("Item.Area.Footer_Column_1_Links.LinkText");
484 string LinkDestination = "/Default.aspx?id=" + Link.GetString("Item.Area.Footer_Column_1_Links.Link");
485 <li>
486 <a href="@LinkDestination" class="text-black hover:underline hover:text-black">@LinkText</a>
487 </li>
488 }
489 </ul>
490 <ul class="list-none col-span-3 md:col-span-1">
491 <strong>@GetString("Item.Area.Footer_Column_2_Header")</strong>
492 @foreach (var Link in GetLoop("Item.Area.Footer_Column_2_Links"))
493 {
494 string LinkText = Link.GetString("Item.Area.Footer_Column_2_Links.LinkText");
495 string LinkDestination = "/Default.aspx?id=" + Link.GetString("Item.Area.Footer_Column_2_Links.Link");
496 <li>
497 <a href="@LinkDestination" class="text-sm text-black">@LinkText</a>
498 </li>
499 }
500 </ul>
501 <ul class="list-none col-span-3 md:col-span-1">
502 <strong>@GetString("Item.Area.Footer_Column_3_Header")</strong>
503 @foreach (var Link in GetLoop("Item.Area.Footer_Column_3_Links"))
504 {
505 string LinkText = Link.GetString("Item.Area.Footer_Column_3_Links.LinkText");
506 string LinkDestination = "/Default.aspx?id=" + Link.GetString("Item.Area.Footer_Column_3_Links.Link");
507 <li>
508 <a href="@LinkDestination" class="text-sm text-black">@LinkText</a>
509 </li>
510 }
511 </ul>
512
513 <div class="col-span-3">
514 <strong>@Translate("Co3.Newsletter.Headline.Text", "Møblérs nyhedsbrev")</strong>
515 <newsletter></newsletter>
516 </div>
517 </div>
518 </div>
519 </div>
520 </section>
521
522 <div class="py-4 bg-white">
523 <div class="container flex flex-col md:flex-row gap-y-4">
524 <div class="w-full xl:w-1/2 flex justify-center items-center md:justify-start text-xs">
525 © @currentYear @Translate("Copyright", "Møblér. All Rights Reserved.")
526 </div>
527 <div class="w-full xl:w-1/2 flex items-center md:justify-end">
528 <a href='@Translate("PersondataLink", "link")' class="text-xs underline text-black mr-2">@Translate("PersondataText", "Persondatapolitik")</a>
529 <paymentmethodlogos data-all-payments="true"></paymentmethodlogos>
530 </div>
531
532 </div>
533 </div>
534 }
535
536 <script type="module" src="https://viewer-cdn.cylindo.com/v1/index.mjs" defer=""></script>
537
538 @Pageview.AddViteScript()
539 </body>
540 </html>
541