Error executing template "Designs/Kwpn/_parsed/Page.parsed.cshtml"
System.IO.IOException: The process cannot access the file 'D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\Translations.xml' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Dynamicweb.Rendering.Translation.Source.WriteDocument(XmlDocument document)
at Dynamicweb.Rendering.Translation.Source.Save()
at Dynamicweb.Rendering.Translation.Source.UpdateTranslationSource(Source source, IEnumerable`1 newKeys, String designName, IEnumerable`1 cultures)
at Dynamicweb.Rendering.Template.TranslateText(String text, String defaultValue, String cultureName)
at Dynamicweb.Rendering.TemplateBase`1.Translate(String text, String defaultValue)
at CompiledRazorTemplates.Dynamic.RazorEngine_662fb7124f124f9bbce23ed811463bbb.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\_parsed\Page.parsed.cshtml:line 664
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 Kwpn.Repository.Helpers 3 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 4 <!DOCTYPE html> 5 <html lang='@GetString("Lang")'> 6 <head prefix="og: http://ogp.me/ns#"> 7 <meta charset="UTF-8"> 8 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 9 <meta name="apple-mobile-web-app-capable" content="yes"> 10 <title>@GetValue("Title")</title> 11 @GetValue("MetaTags") 12 @GetValue("CopyRightNotice") 13 14 @using System 15 @using Kwpn.Models.Constants 16 @using Kwpn.Repository.Helpers 17 @using System.Globalization 18 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 19 @{ 20 var urlSchemeHeadSection = HttpContext.Current.Request.Url.Scheme; 21 var urlHostHeadSection = HttpContext.Current.Request.Url.Host; 22 var requestHostHeadSection = $"{urlSchemeHeadSection}://{urlHostHeadSection}"; 23 var iconsFolderHeadSection = $"{requestHostHeadSection}/Files/Templates/Designs/Kwpn/Images/SystemIcons"; 24 var cultureHeadSection = GetGlobalValue("Global:Area.LongLang"); 25 var pageIdHeadSection = Dynamicweb.Frontend.PageView.Current().Page.ID; 26 var newsPageIdHeadSection = AreaHelper.GetNewsPageId(cultureHeadSection); 27 var marketplacePageIdHeadSection = AreaHelper.GetMarketplacePageId(cultureHeadSection); 28 var customOgTagsHeadSection = (pageIdHeadSection == newsPageIdHeadSection || pageIdHeadSection == marketplacePageIdHeadSection); 29 var searchFriendlyUrlHeadSection = Dynamicweb.Frontend.PageView.Current().SearchFriendlyUrl; 30 var ogUrlHeadSection = requestHostHeadSection; 31 if (searchFriendlyUrlHeadSection != $"/{cultureHeadSection.ToLower()}/homepage") 32 { 33 ogUrlHeadSection = $"{urlSchemeHeadSection}://{urlHostHeadSection}/{cultureHeadSection}{searchFriendlyUrlHeadSection}"; 34 } 35 var ogTitleHeadSection = GetString("Title"); 36 var ogDescriptionHeadSection = GetString("Meta.Description"); 37 var ogDefaultImageHeadSection = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.OpenGraphImage); 38 var ogImageHeadSection = $"{urlSchemeHeadSection}://{urlHostHeadSection}/{ogDefaultImageHeadSection}"; 39 var ogLocaleHeadSection = "nl_NL"; 40 var lastCssWriteTime = System.IO.File.GetLastWriteTime(HttpContext.Current.Server.MapPath("~/Files/Templates/Designs/Kwpn/Css/Custom.css")).Ticks; 41 var lastJsWriteTime = System.IO.File.GetLastWriteTime(HttpContext.Current.Server.MapPath("~/Files/Templates/Designs/Kwpn/Scripts/Custom.js")).Ticks; 42 var datePickerScript = $"datepicker-{GetGlobalValue("Global:Area.Lang")}.js"; 43 } 44 45 <meta http-equiv="content-language" content="@GetString(" lang")"=""> 46 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 47 <meta http-equiv="imagetoolbar" content="no"> 48 <meta http-equiv="x-dns-prefetch-control" content="on"> 49 <meta http-equiv="x-ua-compatible" content="ie=edge"> 50 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 51 <meta name="application-name" content="kwpn.nl"> 52 <meta name="author" content="Innovadis BV, Enschede"> 53 <meta name="copyright" content="Innovadis BV, Enschede, @DateTime.Now.Year"> 54 <meta name="web_author" content="Innovadis BV, Enschede"> 55 <meta name="msapplication-TileImage" content="@iconsFolderHeadSection/win8-tile-144x144.png"> 56 <meta name="msapplication-TileColor" content="#ffffff"> 57 <meta name="msapplication-navbutton-color" content="#ffffff"> 58 <meta name="msapplication-square70x70logo" content="@iconsFolderHeadSection/win8-tile-70x70.png"> 59 <meta name="msapplication-square144x144logo" content="@iconsFolderHeadSection/win8-tile-144x144.png"> 60 <meta name="msapplication-square150x150logo" content="@iconsFolderHeadSection/win8-tile-150x150.png"> 61 <meta name="msapplication-wide310x150logo" content="@iconsFolderHeadSection/win8-tile-310x150.png"> 62 <meta name="msapplication-square310x310logo" content="@iconsFolderHeadSection/win8-tile-310x310.png"> 63 64 @if (!customOgTagsHeadSection) 65 { 66 <meta property="og:url" content="@ogUrlHeadSection"> 67 <meta property="og:title" content="@ogTitleHeadSection"> 68 <meta property="og:description" content="@ogDescriptionHeadSection"> 69 <meta property="og:image" content="@ogImageHeadSection"> 70 <meta property="og:locale" content="@ogLocaleHeadSection"> 71 <meta property="og:type" content="website"> 72 <meta property="fb:app_id" content="234190117053664"> 73 } 74 75 <link rel="dns-prefetch" href="@requestHostHeadSection"> 76 <link rel="icon" href="/favicon.ico" type="image/x-icon"> 77 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> 78 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-57x57.png" sizes="57x57"> 79 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-60x60.png" sizes="60x60"> 80 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-72x72.png" sizes="72x72"> 81 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-76x76.png" sizes="76x76"> 82 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-114x114.png" sizes="114x114"> 83 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-120x120.png" sizes="120x120"> 84 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-128x128.png" sizes="128x128"> 85 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-144x144.png" sizes="144x144"> 86 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-152x152.png" sizes="152x152"> 87 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-180x180.png" sizes="180x180"> 88 <link rel="apple-touch-icon" href="@iconsFolderHeadSection/apple-touch-icon-precomposed.png"> 89 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-16x16.png" sizes="16x16"> 90 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-32x32.png" sizes="32x32"> 91 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-96x96.png" sizes="96x96"> 92 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-160x160.png" sizes="160x160"> 93 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-192x192.png" sizes="192x192"> 94 <link rel="icon" type="image/png" href="@iconsFolderHeadSection/favicon-196x196.png" sizes="196x196"> 95 96 <link href="@requestHostHeadSection/Content/bootstrap.min.css" rel="stylesheet"> 97 <link href="@requestHostHeadSection/Content/themes/base/jquery-ui.min.css" rel="stylesheet"> 98 <link href="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Css/Custom.css?@lastCssWriteTime" rel="stylesheet"> 99 <link href="@requestHostHeadSection/Content/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet"> 100 <link href="@requestHostHeadSection/Content/jquery.fancybox.css" type="text/css" rel="stylesheet" media="screen"> 101 102 103 @* 104 COMMENTED OUT DUE TO KWPN-1742 105 106 <!-- Start cookieyes banner --> 107 @if (string.Equals(urlHostHeadSection, "kwpn.nl", StringComparison.OrdinalIgnoreCase)) 108 { 109 <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/d8bbdb71d673be6b76d639e6/script.js"></script> 110 } 111 else { 112 <!-- cookieyes script not loaded by the template because the domain is invalid --> 113 } 114 <!-- End cookieyes banner --> 115 *@ 116 117 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> 118 <!--[if lt IE 9]> 119 <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> 120 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 121 <![endif]--> 122 <script src="@requestHostHeadSection/Scripts/jquery-3.1.0.min.js"></script> 123 <script src="@requestHostHeadSection/Scripts/jquery-ui-1.12.0.min.js"></script> 124 <script src="@requestHostHeadSection/Scripts/@datePickerScript"></script> 125 <script src="@requestHostHeadSection/Scripts/bootstrap.min.js"></script> 126 <script src="@requestHostHeadSection/Scripts/jquery.alphanumeric.js"></script> 127 <script src="@requestHostHeadSection/Scripts/jquery.fancybox.pack.js?v=2.1.5"></script> 128 <script src="@requestHostHeadSection/Scripts/jquery.touchSwipe.min.js"></script> 129 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/jquery.tmpl.js"></script> 130 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/Custom.js"></script> 131 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/innovadis-seo.js"></script> 132 <script src="@requestHostHeadSection/Scripts/innovadis-checkbox-list.js"></script> 133 <script src="@requestHostHeadSection/Scripts/jquery.orgchart.js"></script> 134 @{ 135 var reCaptchaSiteKey = Kwpn.Models.Constants.StringConstants.ApplicationVariables.RecaptchaSiteKey; 136 var useReCaptcha = !string.IsNullOrEmpty(reCaptchaSiteKey); 137 if (useReCaptcha) 138 { 139 //Note: the recaptcha js reference is added by the afteroutputobserver when the g-recaptcha class is in the output 140 141 var reCaptchaInvalidReason = System.Web.HttpContext.Current.Request.QueryString.Get("InvalidReason"); 142 if (!string.IsNullOrEmpty(reCaptchaInvalidReason)) 143 { 144 // returned to form from invalid recaptcha check 145 @SnippetStart("JavascriptsBottom") 146 <script> 147 148 function removeParams(sParam) { 149 var url = window.location.href.split('?')[0] + '?'; 150 var sPageURL = decodeURIComponent(window.location.search.substring(1)), 151 sURLVariables = sPageURL.split('&'), 152 sParameterName, 153 i; 154 155 for (i = 0; i < sURLVariables.length; i++) { 156 sParameterName = sURLVariables[i].split('='); 157 if (sParameterName[0] != sParam) { 158 url = url + sParameterName[0] + '=' + sParameterName[1] + '&' 159 } 160 } 161 return url.substring(0, url.length - 1); 162 } 163 164 window.addEventListener('load', function () { 165 166 // show message 167 alert('@System.Web.HttpUtility.JavaScriptStringEncode(Translate($"RecaptchaInvalidReason_{reCaptchaInvalidReason}", reCaptchaInvalidReason))'); 168 169 // remove invalid reason param from Url 170 var newUrl = removeParams("InvalidReason"); 171 document.location = newUrl; 172 173 }, false); 174 </script> 175 @SnippetEnd("JavascriptsBottom") 176 } 177 } 178 } 179 @using Kwpn.Models.Constants 180 @using Kwpn.Repository.Helpers 181 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 182 @{ 183 var googleTrackingCode = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTrackingCode); 184 if (!string.IsNullOrWhiteSpace(googleTrackingCode)) 185 { 186 <script> 187 188 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() 189 { (i[r].q=i[r].q||[]).push(arguments)} 190 ,i[r].l=1*new Date();a=s.createElement(o), 191 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 192 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); 193 194 var virtualPageviewHasBeenSent = false; // this variable will be set to true in innovadis-seo.js when a virtual pageview has been fired and used to prevent double analytics tracking 195 196 ga('create', '@googleTrackingCode', 'auto'); 197 // NOTE: the analytics tracking event 'send' code, ga('send', 'pageview'), which is located here in the Google code samples is moved to innovadis-seo.js and called at the bottom of the master to be able to prevent double analytics tracking when a virtual pageview has already been fired. 198 </script> 199 } 200 } 201 @using Kwpn.Models.Constants 202 @using Kwpn.Repository.Helpers 203 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 204 @{ 205 var googleTagmanagerCodeHead = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTagManagerCode); 206 if (!string.IsNullOrWhiteSpace(googleTagmanagerCodeHead)) 207 { 208 <!-- Google Tag Manager --> 209 <script> 210 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 211 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 212 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 213 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 214 })(window, document, 'script', 'dataLayer', '@googleTagmanagerCodeHead'); 215 </script> 216 <!-- End Google Tag Manager --> 217 } 218 219 // Google Adsense 220 <script data-ad-client="ca-pub-3169257067253610" async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 221 } 222 @RenderSnippet("HeaderContent") 223 @GoogleAdsHelper.GetGoogleAdsHeadScript(GetString("Item.Page.HeadScript"), GetString("Item.Page.HeadScript_2")) 224 <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> 225 @GetValue("Stylesheets") 226 @GetValue("Javascripts") 227 </head> 228 @{ 229 var bodyClass = (NavigationHelper.CurrentPageIsHomepage()) ? "homepage" : ""; 230 var copyRightMessage = Translate("CopyrightNotifyText", "© KWPN ALL RIGHTS RESERVED").JsEncode(); 231 var copyRightMessageTitle = Translate("CopyrightNotifyTitle", "Let op").JsEncode(); 232 } 233 <body data-pageid='@GetValue("Global:Page.ID")' class='@bodyClass' oncut='Swal.fire({ title: "@copyRightMessageTitle" ,text: "@copyRightMessage", customClass: layout.notifyCopyrightMessageClass });' oncopy='Swal.fire({ title: "@copyRightMessageTitle" ,text: "@copyRightMessage", customClass: layout.notifyCopyrightMessageClass });'> 234 @if (Kwpn.Repository.Helpers.LoginHelper.MyKwpnIsOffline()) { 235 236 var currentAreaItem = Dynamicweb.Frontend.PageView.Current()?.Area.Item; 237 if (currentAreaItem != null) { 238 var message = Kwpn.Repository.Helpers.ItemHelper.GetItemValue<string>(currentAreaItem, Kwpn.Models.Constants.StringConstants.DynamicwebConstants.MyKwpnOfflineText); 239 if (!string.IsNullOrEmpty(message)) { 240 <div class="ticker-wrap"> 241 <div class="ticker"> 242 <div class="ticker__item">@Translate("Ticker_Announcement", "Announcement")</div> 243 <div class="ticker__item">@message</div> 244 </div> 245 </div> 246 } 247 } 248 } 249 @using Kwpn.Models.Constants 250 @using Kwpn.Repository.Helpers 251 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 252 @{ 253 var googleTagmanagerCodeBody = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTagManagerCode); 254 if (!string.IsNullOrWhiteSpace(googleTagmanagerCodeBody)) 255 { 256 var googleTagmanagerIframe = string.Format("https://www.googletagmanager.com/ns.html?id={0}", googleTagmanagerCodeBody); 257 <!-- Google Tag Manager (noscript) --> 258 <noscript> 259 <iframe src="@googleTagmanagerIframe" height="0" width="0" style="display:none;visibility:hidden"></iframe> 260 </noscript> 261 <!-- End Google Tag Manager (noscript) --> 262 } 263 } 264 @using Dynamicweb.Frontend 265 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 266 @{ 267 var ridingHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "RidingHorse"); 268 var harnessHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "HarnessHorse"); 269 var geldingHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "Geldinghorse"); 270 var youngKwpn = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "Young"); 271 var actionUrl = SearchEngineFriendlyURLs.GetFriendlyUrl(string.Format("Default.aspx?ID={0}", GetGlobalValue("Global:Page.ID"))); 272 <div class="content-filter" id="content-filter"> 273 274 <button class="fa fa-close content-filter-close"></button> 275 <form method="post" action="@actionUrl" id="content-filter-form"> 276 <input type="hidden" name="ID" value='@GetGlobalValue("Global:Page.ID")'> 277 <input type="hidden" name="ChangeContentFilter" value="true"> 278 @if (ridingHorseRegions.Any()) 279 { 280 <div class="content-filter-category ridingHorse"> 281 <h3>@Translate("RidingHorse", "Riding horse")</h3> 282 @foreach (var ridingHorseRegion in ridingHorseRegions) 283 { 284 var checked_state = "data-x"; /*DW appends ="" to output @checked_state for some mysterious reason, dummy data-x to make output valid*/ 285 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(ridingHorseRegion.Value)) 286 { 287 checked_state = "checked=\"checked\" data-x"; 288 } 289 <input type="checkbox" id='@ridingHorseRegion.Value' name="content-filter-value[]" value='@ridingHorseRegion.Value' @checked_state=""> 290 <label for='@ridingHorseRegion.Value'>@ridingHorseRegion.Label</label><br> 291 } 292 </div> 293 } 294 @if (harnessHorseRegions.Any()) 295 { 296 <div class="content-filter-category harnessHorse"> 297 <h3>@Translate("HarnessHorse", "Harness horse")</h3> 298 @foreach (var harnessHorseRegion in harnessHorseRegions) 299 { 300 var checked_state = "data-x"; 301 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(harnessHorseRegion.Value)) 302 { 303 checked_state = "checked=\"checked\" data-x"; 304 } 305 <input type="checkbox" id='@harnessHorseRegion.Value' name="content-filter-value[]" value='@harnessHorseRegion.Value' @checked_state=""> 306 <label for='@harnessHorseRegion.Value'>@harnessHorseRegion.Label</label><br> 307 } 308 </div> 309 } 310 @if (geldingHorseRegions.Any()) 311 { 312 <div class="content-filter-category geldingHorse"> 313 <h3>@Translate("Geldinghorse", "Geldinghorse")</h3> 314 @foreach (var geldingHorseRegion in geldingHorseRegions) 315 { 316 var checked_state = "data-x"; 317 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(geldingHorseRegion.Value)) 318 { 319 checked_state = "checked=\"checked\" data-x"; 320 } 321 <input type="checkbox" id='@geldingHorseRegion.Value' name="content-filter-value[]" value='@geldingHorseRegion.Value' @checked_state=""> 322 <label for='@geldingHorseRegion.Value'>@geldingHorseRegion.Label</label><br> 323 } 324 </div> 325 } 326 @if (youngKwpn.Any()) 327 { 328 <div class="content-filter-category youngKwpn"> 329 <h3>@Translate("YoungKwpn", "Young KWPN")</h3> 330 @foreach (var young in youngKwpn) 331 { 332 var checked_state = "data-x"; 333 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(young.Value)) 334 { 335 checked_state = "checked=\"checked\" data-x"; 336 } 337 <input type="checkbox" id='@young.Value' name="content-filter-value[]" value='@young.Value' @checked_state=""> 338 <label for='@young.Value'>@young.Label</label><br> 339 } 340 </div> 341 } 342 <br style="clear: both;"> 343 <a href="#" class="orange_arrow_link content-filter-submit" name="content-filter-apply">@Translate("Apply", "Apply")</a> 344 <i class="fa waitingSpinner fa-spinner fa-spin fa-2x fa-fw margin-bottom"></i> 345 </form> 346 </div> 347 } 348 <div id="pagewrapper"> 349 @using Kwpn.Repository.Helpers 350 @using Kwpn.Models.Constants 351 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 352 @{ 353 var requestHostSearchMobile = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 354 var searchResultsPageIdMobile = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.SearchResultsPageId); 355 } 356 <div class="header_top_mobile hidden-md hidden-lg"> 357 <div class="mobile-logo"> 358 <a href='@NavigationHelper.GetHomepageUrl()' title='@Translate("GoToHomepage", "Go to the homepage").JsEncode()'><img class="logo" src="/Files/Templates/Designs/Kwpn/images/kwpn-logo.svg"></a> 359 </div> 360 <div class="menuMobile"> 361 <div class="hamburgerMenu"><i class="fa fa-reorder"></i></div> 362 <div class="mobile-flags"> 363 @{ 364 var mobileLanguages = GetLoop("Languages"); 365 if (mobileLanguages.Count > 1) 366 { 367 foreach (var mobileLanguage in mobileLanguages) 368 { 369 var languageFlag = ""; 370 var languageClass = ""; 371 var languageCulture = mobileLanguage.GetString("Culture"); 372 var languagePageId = mobileLanguage.GetString("PageID"); 373 var languageFirstActivePageId = mobileLanguage.GetString("FirstActivePageID"); 374 375 var mobileGotoPage = AreaHelper.ChangeLanguageUrl( 376 GetString("DwPageID"), 377 languagePageId, 378 GetString("DWExtranetAction"), 379 languageFirstActivePageId, 380 languageCulture 381 ); 382 383 if (!string.IsNullOrWhiteSpace(languageCulture)) 384 { 385 var languageCode = languageCulture.Split('-')[0]; 386 if (languageCode.Equals("en", StringComparison.InvariantCultureIgnoreCase)) 387 { 388 languageCode = "gb"; 389 } 390 languageFlag = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/Flags/{1}.svg", requestHostSearchMobile, languageCode); 391 if (languageCulture.Equals(GetGlobalValue("Global:Area.LongLang"), StringComparison.InvariantCultureIgnoreCase)) 392 { 393 languageClass = "active"; 394 } 395 <a href="@mobileGotoPage" class="@languageClass"><img src='@languageFlag' class="switch-language"></a> 396 } 397 } 398 } 399 } 400 </div> 401 402 @if (!string.IsNullOrWhiteSpace(searchResultsPageIdMobile)) 403 { 404 var searchQuery = GetString("Ecom:Search.Query"); 405 <form class="search-form" action="default.aspx" method="get" name="GlobalSearchForm" id="mobileSearch" _lpchecked="1"> 406 <input type="hidden" name="ID" value='@searchResultsPageIdMobile'> 407 <input type="text" name="q" class="form-control" required="required" autocomplete="off" maxlength="65" placeholder='@Translate("SearchPlaceholder", "Search")' value='@searchQuery' id="mobileSearchTerm"> 408 <button class="btn btn-default" id="btn-mobile-search" type="submit"><i class="fa fa-search"></i></button> 409 </form> 410 } 411 412 @NavigationHelper.GetMainNavigationMobile(StringConstants.NavigationTags.Main, GetGlobalValue("Global:Page.ID"), Dynamicweb.Frontend.PageView.Current().Area.Culture) 413 414 @{ // ORANGE BUTTON 415 var orangeButtonLink = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.LoginPageId); 416 var orangeButtonText = Translate("LogIn", "Log in"); 417 418 if (LoginHelper.CurrentUserIsLoggedIn()) 419 { 420 orangeButtonLink = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.DashboardPageId); 421 orangeButtonText = Translate("MyDashboard", "My dashboard"); 422 423 var currentPage = string.Format("/Default.aspx?{0}", System.Web.HttpContext.Current.Request.QueryString).UrlEncode(); 424 var logOffLink = string.Format("/Admin/Public/ExtranetLogoff.aspx?redirect={0}", currentPage); 425 var seoPageview = string.Format("/{0}/{1}", GetGlobalValue("Global:Area.LongLang").ToLower(), TranslationHelper.Translate("SEO_TrackPageviewPage_UserLoggedOff", GetGlobalValue("Global:Area.LongLang").ToLower())); 426 427 // ADD Logoff to navigation 428 <script> 429 $(document).ready(function () { 430 // add logoff button 431 $(".menuMobile ul").append("<li><a href='@logOffLink' onclick=\"SEO.trackPageView('@seoPageview')\"><i class='fa fa-chevron-right'></i>@Translate("LogOff", "Log off")</a></li>"); 432 }); 433 </script> 434 } 435 <a href='@orangeButtonLink' class="inloggenMobielLink"> 436 <div class="inloggenMobiel"> 437 <div style="width:200px"> 438 <i class='fa fa-chevron-right'></i>@orangeButtonText 439 </div> 440 </div> 441 </a> 442 } 443 </div> 444 </div> 445 <div class="container header_top hidden-xs hidden-sm"> 446 <div class="row no-gutter"> 447 <div class="col-xs-4 col-xs-offset-6"> 448 @using System 449 @using Kwpn.Models.Constants 450 @using Kwpn.Repository.Helpers 451 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 452 @{ 453 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.SearchResultsPageId); 454 var requestHostSearch = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 455 <div class="searchwrapper well-sm"> 456 457 <div class="row"> 458 <div class="col-xs-3 text-center"> 459 @{ 460 var websiteLanguages = GetLoop("Languages"); 461 if (websiteLanguages.Count > 1) 462 { 463 foreach (var websiteLanguage in websiteLanguages) 464 { 465 var languageFlag = ""; 466 var languageClass = ""; 467 var languageCulture = websiteLanguage.GetString("Culture"); 468 var languagePageId = websiteLanguage.GetString("PageID"); 469 var languageFirstActivePageId = websiteLanguage.GetString("FirstActivePageID"); 470 471 var gotoPage = AreaHelper.ChangeLanguageUrl( 472 GetString("DwPageID"), 473 languagePageId, 474 GetString("DWExtranetAction"), 475 languageFirstActivePageId, 476 languageCulture 477 ); 478 479 if (!string.IsNullOrWhiteSpace(languageCulture)) 480 { 481 var languageCode = languageCulture.Split('-')[0]; 482 if (languageCode.Equals("en", StringComparison.InvariantCultureIgnoreCase)) 483 { 484 languageCode = "gb"; 485 } 486 languageFlag = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/Flags/{1}.svg", requestHostSearch, languageCode); 487 if (languageCulture.Equals(GetGlobalValue("Global:Area.LongLang"), StringComparison.InvariantCultureIgnoreCase)) 488 { 489 languageClass = "active"; 490 } 491 <a href="@gotoPage" class="@languageClass"><img src='@languageFlag' class="switch-language"></a> 492 } 493 } 494 } 495 496 } 497 </div> 498 <div class="col-xs-9"> 499 @if (!string.IsNullOrWhiteSpace(searchResultsPageId)) 500 { 501 var searchQuery = GetString("Ecom:Search.Query"); 502 <form class="search-form" action="default.aspx" method="get" name="GlobalSearchForm" id="desktopSearch"> 503 <input type="hidden" name="ID" value='@searchResultsPageId'> 504 <div class="input-group"> 505 <input type="text" name="q" autocomplete="off" class="form-control" required="required" maxlength="65" placeholder='@Translate("SearchPlaceholder", "Search")' value='@searchQuery' id="desktopSearchTerm"> 506 <span class="input-group-addon" id="btn-search-visible"> 507 <i class="fa fa-search"></i> 508 </span> 509 </div> 510 </form> 511 } 512 </div> 513 </div> 514 </div> 515 } 516 </div> 517 <div class="col-xs-2"> 518 @using System 519 @using Kwpn.Repository.Helpers 520 @using Kwpn.Models.Constants 521 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 522 @if (LoginHelper.MyKwpnIsOffline()) 523 { 524 <div class="offline-wrapper"></div> 525 } 526 else if (LoginHelper.CurrentUserIsLoggedIn()) 527 { 528 var currentUser = Kwpn.Repository.Repositories.KwpnUsers.CurrentUser(); 529 <div id="myaccountMenuWrapper"> 530 <button class="btn-lg btn-primary login-button" id="myaccountButton">@Translate("MyAccount", "My account")</button> 531 <div class="myaccountMenu hidden-xs hidden-sm" id="myaccountMenu" style='display: none;'> 532 @NavigationHelper.GetAccountNavigation( 533 StringConstants.NavigationTags.Account, 534 GetGlobalValue("Global:Page.ID"), 535 Translate("GoToMyDashboard", "Go to my dashboard"), 536 Translate("LogOff", "Log off"), 537 currentUser.IsBlocked 538 ) 539 </div> 540 </div> 541 } 542 else 543 { 544 var loginParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.LoginParagraphId); 545 if (!string.IsNullOrWhiteSpace(loginParagraphId) && Convert.ToInt32(loginParagraphId) > 0) 546 { 547 var loginPopupDisplay = "none"; 548 if (!string.IsNullOrWhiteSpace(LoginHelper.GetLoginError()) && 549 !GetGlobalValue("Global:Page.ID").Equals(AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.LoginPageId))) 550 { 551 loginPopupDisplay = "block"; 552 } 553 554 var loginAction = System.Web.HttpContext.Current.Request.QueryString.Get("LoginAction"); 555 if (!string.IsNullOrWhiteSpace(loginAction) && loginAction.Equals("Recovery", StringComparison.InvariantCultureIgnoreCase)) 556 { 557 // on password recovery the login module won't show. Probably due to duplicate input field names. 558 // in this case link to login page in stead of showing login form in layover 559 var loginPage = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.LoginPageId); 560 var clickText = string.Format("{0} <i class='fa fa-spinner fa-spin'></i>", Translate("LogIn", "Log in")).JsEncode(); 561 <button class="btn-lg btn-primary login-button link" onclick="$(this).html('@clickText');window.location.href='@loginPage';">@Translate("LogIn", "Log in")</button> 562 } 563 else 564 { 565 <button class="btn-lg btn-primary login-button" onclick="$('.inloggenMenu').toggle();">@Translate("LogIn", "Log in")</button> 566 } 567 568 <div class="inloggenMenu hidden-xs hidden-sm" style='display: @loginPopupDisplay;'> 569 <a href="javascript:void(0);" class="close-login" onclick="$('.inloggenMenu').toggle();"><i class="fa fa-close"></i></a> 570 @RenderParagraphContent(Convert.ToInt32(loginParagraphId)) 571 </div> 572 } 573 } 574 </div> 575 </div> 576 </div> 577 @using Kwpn.Repository.Helpers 578 @using Kwpn.Models.Constants 579 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 580 <div class="container header_content hidden-xs hidden-sm"> 581 <div class="row"> 582 <div class="col-md-3 col-lg-4"> 583 <div class="logo"> 584 <a href='@NavigationHelper.GetHomepageUrl()' title='@Translate("GoToHomepage", "Go to the homepage").JsEncode()'><img src="/Files/Templates/Designs/Kwpn/images/kwpn-logo.svg"></a> 585 </div> 586 </div> 587 <div class="col-md-9 col-lg-8"> 588 <div class="row"> 589 <div class="header col-lg-12 visible-lg visible-md visible-sm"> 590 @NavigationHelper.GetMainNavigation(StringConstants.NavigationTags.Main, GetGlobalValue("Global:Page.ID"), Dynamicweb.Frontend.PageView.Current().Area.Culture) 591 </div> 592 </div> 593 </div> 594 </div> 595 </div> 596 597 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 598 <div id="pagecontent" class="container" data-showmembership='@GetBoolean("Item.Page.ShowMembership")' data-showgotonavigation='@GetBoolean("Item.Page.ShowGotoNavigation")' data-showpartnerlogos='@GetBoolean("Item.Page.ShowCustomerLogos")'>@GetValue("DwContent(pagecontent)")</div> 599 @{ 600 var homepageId = Kwpn.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(Kwpn.Models.Constants.StringConstants.PageIdSystemNames.HomepageId); 601 if (!GetGlobalValue("Global:Page.ID").Equals(homepageId) && !Kwpn.Repository.Helpers.LoginHelper.CurrentUserIsLoggedIn()) 602 { 603 var membershipParagraphId = Kwpn.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(Kwpn.Models.Constants.StringConstants.ParagraphSystemNames.MembershipParagraphId); 604 if (!string.IsNullOrWhiteSpace(membershipParagraphId) && Convert.ToInt32(membershipParagraphId) > 0) 605 { 606 <div id="membershipwrapper">@RenderParagraphContent(Convert.ToInt32(membershipParagraphId))</div> 607 } 608 } 609 } 610 @using Kwpn.Models.Constants 611 @using Kwpn.Repository.Helpers 612 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 613 @{ 614 var partnerLogosParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.PartnerLogoParagraphId); 615 var showPartnerLogos = !string.IsNullOrWhiteSpace(partnerLogosParagraphId) && Convert.ToInt32(partnerLogosParagraphId) > 0; 616 var sponsorLogosParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.SponsorLogoParagraphId); 617 var showSponsorLogos = !string.IsNullOrWhiteSpace(sponsorLogosParagraphId) && Convert.ToInt32(sponsorLogosParagraphId) > 0; 618 if (showPartnerLogos || showSponsorLogos) 619 { 620 <div class="container" id="footerlogos"> 621 @if (showPartnerLogos) 622 { 623 <div class="row logolist logolist-blue" id="partner-logos"> 624 <div class="col-xs-12 text-center"> 625 @RenderParagraphContent(Convert.ToInt32(partnerLogosParagraphId)) 626 </div> 627 </div> 628 } 629 @if (showSponsorLogos) 630 { 631 <div class="row logolist" id="sponsor-logos"> 632 <div class="col-xs-12 text-center"> 633 @RenderParagraphContent(Convert.ToInt32(sponsorLogosParagraphId)) 634 </div> 635 </div> 636 } 637 </div> 638 } 639 } 640 @using Kwpn.Models.Constants 641 @using Kwpn.Repository.Helpers 642 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 643 @{ 644 var newsletterParagraphId = int.Parse(AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.NewsletterParagraphId)); 645 646 var quickLinksColumn1Folder = Dynamicweb.Services.Pages.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Kwpn.Models.Constants.StringConstants.NavigationTags.InternalLinksColumn1); 647 var quickLinksColumn1 = Dynamicweb.Services.Pages.GetPagesByParentID(quickLinksColumn1Folder?.ID ?? 0); 648 649 var quickLinksColumn2Folder = Dynamicweb.Services.Pages.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Kwpn.Models.Constants.StringConstants.NavigationTags.InternalLinksColumn2); 650 var quickLinksColumn2 = Dynamicweb.Services.Pages.GetPagesByParentID(quickLinksColumn2Folder?.ID ?? 0); 651 } 652 <div class="container" id="footerlinks"> 653 <div class="row" id="goto-navigation"> 654 <div class="col-xs-12 col-sm-6 col-md-3"> 655 <h3>@Translate("NavigationHeader_QuickLinksColumn1", "Directly to")</h3> 656 <ul id="navigation_internallinks_column1"> 657 @foreach (var ql1 in quickLinksColumn1) 658 { 659 <li><a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(ql1.ID)">@ql1.MenuText</a></li> 660 } 661 </ul> 662 </div> 663 <div class="col-xs-12 col-sm-6 col-md-3"> 664 <h3>@Translate("NavigationHeader_QuickLinksColumn2", "Our products")</h3> 665 <ul id="navigation_internallinks_column2"> 666 @foreach (var ql2 in quickLinksColumn2) 667 { 668 669 // determine icon based on name ... not very pretty, but I don't have another way .... 670 var listicon = ""; 671 if (ql2.MenuText.IndexOf("database", StringComparison.OrdinalIgnoreCase) >= 0) { 672 // KWPN Database 673 listicon ="<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_Horse.svg'>"; 674 } else if (ql2.MenuText.IndexOf(".tv", StringComparison.OrdinalIgnoreCase) >= 0) 675 { 676 // KWPN.tv 677 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_TV.svg'>"; 678 } 679 else if (ql2.MenuText.IndexOf("mark", StringComparison.OrdinalIgnoreCase) >= 0 || ql2.MenuText.IndexOf("sale", StringComparison.OrdinalIgnoreCase) >= 0) 680 { 681 // KWPN Marktplaats, KWPN Market place, KWPN horses for sale 682 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_ForSale.svg'>"; 683 } 684 else if (ql2.MenuText.IndexOf("shop", StringComparison.OrdinalIgnoreCase) >= 0) 685 { 686 // KWPN Webshop 687 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_Webshop.svg'>"; 688 } 689 690 var listclass = string.IsNullOrWhiteSpace(listicon) ? "" : " class='icon'"; 691 var listitem = $"<li{listclass}><a href='{Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(ql2.ID)}'>{listicon}{ql2.MenuText}</a>"; 692 @listitem 693 } 694 </li{listclass}></ul> 695 </div> 696 <a name="newsletter"></a> 697 <div class="col-xs-12 col-sm-6 col-md-3"> 698 @if (newsletterParagraphId > 0) 699 { 700 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 701 @*If not logged in or logged in and not subscribed to the monthly newsletter, then show newsletter subscription*@ 702 <h3>@Translate("NewsletterSubscriptionHeader", "Stay informed")</h3> 703 <p>@Translate("NewsletterSubscriptionIntro", "Receive our monthly newsletter filled with updates, events, tips and tricks!")</p> 704 @*If logged in, then show button to profile page (with subscribe/unsubscribe checkbox)*@ 705 706 @RenderParagraphContent(newsletterParagraphId) 707 } 708 </div> 709 <div class="col-xs-12 col-sm-6 col-md-3"> 710 @using Kwpn.Models.Constants 711 @using Kwpn.Repository.Helpers 712 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 713 <h3>@Translate("NavigationHeader_SocialMedia", "Social media")</h3> 714 <ul> 715 @{ 716 var facebookUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Facebook); 717 if (!string.IsNullOrWhiteSpace(facebookUrl)) 718 { 719 <li class="facebook"><a href='@facebookUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Facebook", "Facebook")</a></li> 720 } 721 var instagramUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Instagram); 722 if (!string.IsNullOrWhiteSpace(instagramUrl)) 723 { 724 <li class="instagram"><a href='@instagramUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Instagram", "Instagram")</a></li> 725 } 726 var linkedInUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.LinkedIn); 727 if (!string.IsNullOrWhiteSpace(linkedInUrl)) 728 { 729 <li class="linkedIn"><a href='@linkedInUrl.JsEncode()' target="_blank">@Translate("SocialMedia_LinkedIn", "LinkedIn")</a></li> 730 } 731 var twitterUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Twitter); 732 if (!string.IsNullOrWhiteSpace(twitterUrl)) 733 { 734 <li class="twitter"><a href='@twitterUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Twitter", "Twitter")</a></li> 735 } 736 var youtubeUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.YouTube); 737 if (!string.IsNullOrWhiteSpace(youtubeUrl)) 738 { 739 <li class="youtube"><a href='@youtubeUrl.JsEncode()' target="_blank">@Translate("SocialMedia_YouTube", "YouTube")</a></li> 740 } 741 var vimeoUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Vimeo); 742 if (!string.IsNullOrWhiteSpace(vimeoUrl)) 743 { 744 <li class="vimeo"><a href='@vimeoUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Vimeo", "Vimeo")</a></li> 745 } 746 } 747 </ul> 748 </div> 749 </div> 750 </div> 751 </div> 752 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 753 @{ 754 var requestHostFooter = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 755 var footerLogo = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/kwpn-footer-logo.svg", requestHostFooter); 756 <div id="footerwrapper"> 757 <div class="container"> 758 <div class="row"> 759 <div class="col-xs-12 col-sm-12 col-md-10"> 760 @GetValue("DwNavigation(navigationfooter)") 761 </div> 762 <div class="hidden-xs hidden-sm col-md-2"> 763 <img src="@footerLogo" id="footer-logo"> 764 </div> 765 </div> 766 </div> 767 </div> 768 } 769 @using System.Web.Mvc; 770 @using Kwpn.Core.Services.Abstract; 771 772 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 773 774 @{ 775 IKwpnTvService tvService = DependencyResolver.Current.GetService<IKwpnTvService>(); 776 } 777 778 <div id="kwpnlink"> 779 <a href="@tvService.GetKwpnTvLink()" target="_blank"><i class="fa fa-television" aria-hidden="true"></i><span>@Translate("KwnpTvLinkText", "Go to: KWPN TV")</span> <i class="fa fa-chevron-right"></i></a> 780 </div> 781 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 782 <div class="modal fade" id="equis-offline" tabindex="-1" role="dialog" aria-labelledby="equis-offline-modal" aria-hidden="true"> 783 <div class="modal-dialog"> 784 <div class="modal-content"> 785 <div class="modal-header">@Translate("EquisOffline_Modal_HeaderText", "Back office offline")</div> 786 <div class="modal-body"></div> 787 <div class="modal-footer"> 788 <a class="orange_balloon_link modal-ok" data-dismiss="modal" href="javascript:void(0);">@Translate("EquisOffline_Modal_OkButtonText", "Ok")</a> 789 </div> 790 </div> 791 </div> 792 </div> 793 @RenderSnippet("JavascriptsBottom") 794 <div class="overlay"></div> 795 @{ 796 var loginError = LoginHelper.GetLoginError(); 797 if (!string.IsNullOrWhiteSpace(loginError)) 798 { 799 <script> 800 $(document).ready(function () { 801 $(".loginErrorMessage span").text('@Translate(loginError, "Incorrect membership number or password")'); 802 $(".loginErrorMessage span").show(); 803 }); 804 </script> 805 } 806 <script> 807 $(document).ready(function () { 808 // note: prevent copying text by using right click function on master's body tag 809 // check if page is market 810 $(".marketplace-page")[0] ? localStorage.setItem("marketPlace", true) : localStorage.removeItem("marketPlace"); 811 812 // tooltip initializer 813 $("[data-toggle='tooltip']").tooltip(); 814 815 // prevent right click on images 816 $('img').on('contextmenu', function () { 817 return false; 818 }); 819 $(".photo").on('contextmenu', function () { 820 return false; 821 }); 822 $(".fancybox-image").on('contextmenu', function () { 823 return false; 824 }); 825 826 @{ 827 // seo login, log when user logs in succesfully 828 var loginStatus = System.Web.HttpContext.Current.Session[Kwpn.Models.Constants.StringConstants.SessionVariables.LoginStatus]; 829 if (loginStatus != null && loginStatus.Equals(Kwpn.Models.Enumerations.LoginStatus.OK)) 830 { 831 System.Web.HttpContext.Current.Session[Kwpn.Models.Constants.StringConstants.SessionVariables.LoginStatus] = Kwpn.Models.Enumerations.LoginStatus.OKDone; 832 var seoPageview = string.Format("/{0}/{1}", GetGlobalValue("Global:Area.LongLang").ToLower(), Translate("SEO_TrackPageviewPage_UserLoggedIn", "logged-in")); 833 <Text> 834 SEO.trackPageView("@seoPageview"); 835 </Text> 836 } 837 } 838 839 // seo original pageview tracking 840 SEO.trackOriginalView(); 841 }); 842 </script> 843 } 844 </body> 845 </html>