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_1d74fac2df71481086c9c9fc69a59d02.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\_parsed\Page.parsed.cshtml:line 415
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 118 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> 119 <!--[if lt IE 9]> 120 <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> 121 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 122 <![endif]--> 123 <script src="@requestHostHeadSection/Scripts/jquery-3.1.0.min.js"></script> 124 <script src="@requestHostHeadSection/Scripts/jquery-ui-1.12.0.min.js"></script> 125 <script src="@requestHostHeadSection/Scripts/@datePickerScript"></script> 126 <script src="@requestHostHeadSection/Scripts/bootstrap.min.js"></script> 127 <script src="@requestHostHeadSection/Scripts/jquery.alphanumeric.js"></script> 128 <script src="@requestHostHeadSection/Scripts/jquery.fancybox.pack.js?v=2.1.5"></script> 129 <script src="@requestHostHeadSection/Scripts/jquery.touchSwipe.min.js"></script> 130 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/jquery.tmpl.js"></script> 131 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/Custom.js"></script> 132 <script src="@requestHostHeadSection/Files/Templates/Designs/Kwpn/Scripts/innovadis-seo.js"></script> 133 <script src="@requestHostHeadSection/Scripts/innovadis-checkbox-list.js"></script> 134 <script src="@requestHostHeadSection/Scripts/jquery.orgchart.js"></script> 135 @{ 136 var reCaptchaSiteKey = Kwpn.Models.Constants.StringConstants.ApplicationVariables.RecaptchaSiteKey; 137 var useReCaptcha = !string.IsNullOrEmpty(reCaptchaSiteKey); 138 if (useReCaptcha) 139 { 140 //Note: the recaptcha js reference is added by the afteroutputobserver when the g-recaptcha class is in the output 141 142 var reCaptchaInvalidReason = System.Web.HttpContext.Current.Request.QueryString.Get("InvalidReason"); 143 if (!string.IsNullOrEmpty(reCaptchaInvalidReason)) 144 { 145 // returned to form from invalid recaptcha check 146 @SnippetStart("JavascriptsBottom") 147 <script> 148 149 function removeParams(sParam) { 150 var url = window.location.href.split('?')[0] + '?'; 151 var sPageURL = decodeURIComponent(window.location.search.substring(1)), 152 sURLVariables = sPageURL.split('&'), 153 sParameterName, 154 i; 155 156 for (i = 0; i < sURLVariables.length; i++) { 157 sParameterName = sURLVariables[i].split('='); 158 if (sParameterName[0] != sParam) { 159 url = url + sParameterName[0] + '=' + sParameterName[1] + '&' 160 } 161 } 162 return url.substring(0, url.length - 1); 163 } 164 165 window.addEventListener('load', function () { 166 167 // show message 168 alert('@System.Web.HttpUtility.JavaScriptStringEncode(Translate($"RecaptchaInvalidReason_{reCaptchaInvalidReason}", reCaptchaInvalidReason))'); 169 170 // remove invalid reason param from Url 171 var newUrl = removeParams("InvalidReason"); 172 document.location = newUrl; 173 174 }, false); 175 </script> 176 @SnippetEnd("JavascriptsBottom") 177 } 178 } 179 } 180 @using Kwpn.Models.Constants 181 @using Kwpn.Repository.Helpers 182 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 183 @{ 184 var googleTrackingCode = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTrackingCode); 185 if (!string.IsNullOrWhiteSpace(googleTrackingCode)) 186 { 187 <script> 188 189 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() 190 { (i[r].q=i[r].q||[]).push(arguments)} 191 ,i[r].l=1*new Date();a=s.createElement(o), 192 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 193 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); 194 195 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 196 197 ga('create', '@googleTrackingCode', 'auto'); 198 // 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. 199 </script> 200 } 201 } 202 @using Kwpn.Models.Constants 203 @using Kwpn.Repository.Helpers 204 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 205 @{ 206 var googleTagmanagerCodeHead = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTagManagerCode); 207 if (!string.IsNullOrWhiteSpace(googleTagmanagerCodeHead)) 208 { 209 <!-- Google Tag Manager --> 210 <script> 211 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 212 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 213 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 214 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 215 })(window, document, 'script', 'dataLayer', '@googleTagmanagerCodeHead'); 216 </script> 217 <!-- End Google Tag Manager --> 218 } 219 220 // Google Adsense 221 <script data-ad-client="ca-pub-3169257067253610" async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 222 } 223 @RenderSnippet("HeaderContent") 224 @GoogleAdsHelper.GetGoogleAdsHeadScript(GetString("Item.Page.HeadScript"), GetString("Item.Page.HeadScript_2")) 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 } 232 <body data-pageid='@GetValue("Global:Page.ID")' class='@bodyClass' oncut='layout.NotifyCopyrightMessage("@copyRightMessage");' oncopy='layout.NotifyCopyrightMessage("@copyRightMessage");'> 233 @if (Kwpn.Repository.Helpers.LoginHelper.MyKwpnIsOffline()) { 234 235 var currentAreaItem = Dynamicweb.Frontend.PageView.Current()?.Area.Item; 236 if (currentAreaItem != null) { 237 var message = Kwpn.Repository.Helpers.ItemHelper.GetItemValue<string>(currentAreaItem, Kwpn.Models.Constants.StringConstants.DynamicwebConstants.MyKwpnOfflineText); 238 if (!string.IsNullOrEmpty(message)) { 239 <div class="ticker-wrap"> 240 <div class="ticker"> 241 <div class="ticker__item">@Translate("Ticker_Announcement", "Announcement")</div> 242 <div class="ticker__item">@message</div> 243 </div> 244 </div> 245 } 246 } 247 } 248 @using Kwpn.Models.Constants 249 @using Kwpn.Repository.Helpers 250 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 251 @{ 252 var googleTagmanagerCodeBody = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ThirdPartyConfiguration.GoogleTagManagerCode); 253 if (!string.IsNullOrWhiteSpace(googleTagmanagerCodeBody)) 254 { 255 var googleTagmanagerIframe = string.Format("https://www.googletagmanager.com/ns.html?id={0}", googleTagmanagerCodeBody); 256 <!-- Google Tag Manager (noscript) --> 257 <noscript> 258 <iframe src="@googleTagmanagerIframe" height="0" width="0" style="display:none;visibility:hidden"></iframe> 259 </noscript> 260 <!-- End Google Tag Manager (noscript) --> 261 } 262 } 263 @using Dynamicweb.Frontend 264 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 265 @{ 266 var ridingHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "RidingHorse"); 267 var harnessHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "HarnessHorse"); 268 var geldingHorseRegions = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "Geldinghorse"); 269 var youngKwpn = Kwpn.Repository.Helpers.ContentFilterHelper.GetRegions(GetGlobalValue("Global:Area.LongLang"), "Young"); 270 var actionUrl = SearchEngineFriendlyURLs.GetFriendlyUrl(string.Format("Default.aspx?ID={0}", GetGlobalValue("Global:Page.ID"))); 271 <div class="content-filter" id="content-filter"> 272 273 <button class="fa fa-close content-filter-close"></button> 274 <form method="post" action="@actionUrl" id="content-filter-form"> 275 <input type="hidden" name="ID" value='@GetGlobalValue("Global:Page.ID")'> 276 <input type="hidden" name="ChangeContentFilter" value="true"> 277 @if (ridingHorseRegions.Any()) 278 { 279 <div class="content-filter-category ridingHorse"> 280 <h3>@Translate("RidingHorse", "Riding horse")</h3> 281 @foreach (var ridingHorseRegion in ridingHorseRegions) 282 { 283 var checked_state = "data-x"; /*DW appends ="" to output @checked_state for some mysterious reason, dummy data-x to make output valid*/ 284 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(ridingHorseRegion.Value)) 285 { 286 checked_state = "checked=\"checked\" data-x"; 287 } 288 <input type="checkbox" id='@ridingHorseRegion.Value' name="content-filter-value[]" value='@ridingHorseRegion.Value' @checked_state=""> 289 <label for='@ridingHorseRegion.Value'>@ridingHorseRegion.Label</label><br> 290 } 291 </div> 292 } 293 @if (harnessHorseRegions.Any()) 294 { 295 <div class="content-filter-category harnessHorse"> 296 <h3>@Translate("HarnessHorse", "Harness horse")</h3> 297 @foreach (var harnessHorseRegion in harnessHorseRegions) 298 { 299 var checked_state = "data-x"; 300 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(harnessHorseRegion.Value)) 301 { 302 checked_state = "checked=\"checked\" data-x"; 303 } 304 <input type="checkbox" id='@harnessHorseRegion.Value' name="content-filter-value[]" value='@harnessHorseRegion.Value' @checked_state=""> 305 <label for='@harnessHorseRegion.Value'>@harnessHorseRegion.Label</label><br> 306 } 307 </div> 308 } 309 @if (geldingHorseRegions.Any()) 310 { 311 <div class="content-filter-category geldingHorse"> 312 <h3>@Translate("Geldinghorse", "Geldinghorse")</h3> 313 @foreach (var geldingHorseRegion in geldingHorseRegions) 314 { 315 var checked_state = "data-x"; 316 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(geldingHorseRegion.Value)) 317 { 318 checked_state = "checked=\"checked\" data-x"; 319 } 320 <input type="checkbox" id='@geldingHorseRegion.Value' name="content-filter-value[]" value='@geldingHorseRegion.Value' @checked_state=""> 321 <label for='@geldingHorseRegion.Value'>@geldingHorseRegion.Label</label><br> 322 } 323 </div> 324 } 325 @if (youngKwpn.Any()) 326 { 327 <div class="content-filter-category youngKwpn"> 328 <h3>@Translate("YoungKwpn", "Young KWPN")</h3> 329 @foreach (var young in youngKwpn) 330 { 331 var checked_state = "data-x"; 332 if (Kwpn.Repository.Helpers.ContentFilterHelper.CookieContainsValue(young.Value)) 333 { 334 checked_state = "checked=\"checked\" data-x"; 335 } 336 <input type="checkbox" id='@young.Value' name="content-filter-value[]" value='@young.Value' @checked_state=""> 337 <label for='@young.Value'>@young.Label</label><br> 338 } 339 </div> 340 } 341 <br style="clear: both;"> 342 <a href="#" class="orange_arrow_link content-filter-submit" name="content-filter-apply">@Translate("Apply", "Apply")</a> 343 <i class="fa waitingSpinner fa-spinner fa-spin fa-2x fa-fw margin-bottom"></i> 344 </form> 345 </div> 346 } 347 <div id="pagewrapper"> 348 @using Kwpn.Repository.Helpers 349 @using Kwpn.Models.Constants 350 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 351 @{ 352 var requestHostSearchMobile = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 353 var searchResultsPageIdMobile = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.SearchResultsPageId); 354 } 355 <div class="header_top_mobile hidden-md hidden-lg"> 356 <div class="mobile-logo"> 357 <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> 358 </div> 359 <div class="menuMobile"> 360 <div class="hamburgerMenu"><i class="fa fa-reorder"></i></div> 361 <div class="mobile-flags"> 362 @{ 363 var mobileLanguages = GetLoop("Languages"); 364 if (mobileLanguages.Count > 1) 365 { 366 foreach (var mobileLanguage in mobileLanguages) 367 { 368 var languageFlag = ""; 369 var languageClass = ""; 370 var languageCulture = mobileLanguage.GetString("Culture"); 371 var languagePageId = mobileLanguage.GetString("PageID"); 372 var languageFirstActivePageId = mobileLanguage.GetString("FirstActivePageID"); 373 374 var mobileGotoPage = AreaHelper.ChangeLanguageUrl( 375 GetString("DwPageID"), 376 languagePageId, 377 GetString("DWExtranetAction"), 378 languageFirstActivePageId, 379 languageCulture 380 ); 381 382 if (!string.IsNullOrWhiteSpace(languageCulture)) 383 { 384 var languageCode = languageCulture.Split('-')[0]; 385 if (languageCode.Equals("en", StringComparison.InvariantCultureIgnoreCase)) 386 { 387 languageCode = "gb"; 388 } 389 languageFlag = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/Flags/{1}.svg", requestHostSearchMobile, languageCode); 390 if (languageCulture.Equals(GetGlobalValue("Global:Area.LongLang"), StringComparison.InvariantCultureIgnoreCase)) 391 { 392 languageClass = "active"; 393 } 394 <a href="@mobileGotoPage" class="@languageClass"><img src='@languageFlag' class="switch-language"></a> 395 } 396 } 397 } 398 } 399 </div> 400 401 @if (!string.IsNullOrWhiteSpace(searchResultsPageIdMobile)) 402 { 403 var searchQuery = GetString("Ecom:Search.Query"); 404 <form class="search-form" action="default.aspx" method="get" name="GlobalSearchForm" id="mobileSearch" _lpchecked="1"> 405 <input type="hidden" name="ID" value='@searchResultsPageIdMobile'> 406 <input type="text" name="q" class="form-control" required="required" autocomplete="off" maxlength="65" placeholder='@Translate("SearchPlaceholder", "Search")' value='@searchQuery' id="mobileSearchTerm"> 407 <button class="btn btn-default" id="btn-mobile-search" type="submit"><i class="fa fa-search"></i></button> 408 </form> 409 } 410 411 @NavigationHelper.GetMainNavigationMobile(StringConstants.NavigationTags.Main, GetGlobalValue("Global:Page.ID"), Dynamicweb.Frontend.PageView.Current().Area.Culture) 412 413 @{ // ORANGE BUTTON 414 var orangeButtonLink = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.LoginPageId); 415 var orangeButtonText = Translate("LogIn", "Log in"); 416 417 if (LoginHelper.CurrentUserIsLoggedIn()) 418 { 419 orangeButtonLink = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.DashboardPageId); 420 orangeButtonText = Translate("MyDashboard", "My dashboard"); 421 422 var currentPage = string.Format("/Default.aspx?{0}", System.Web.HttpContext.Current.Request.QueryString).UrlEncode(); 423 var logOffLink = string.Format("/Admin/Public/ExtranetLogoff.aspx?redirect={0}", currentPage); 424 var seoPageview = string.Format("/{0}/{1}", GetGlobalValue("Global:Area.LongLang").ToLower(), TranslationHelper.Translate("SEO_TrackPageviewPage_UserLoggedOff", GetGlobalValue("Global:Area.LongLang").ToLower())); 425 426 // ADD Logoff to navigation 427 <script> 428 $(document).ready(function () { 429 // add logoff button 430 $(".menuMobile ul").append("<li><a href='@logOffLink' onclick=\"SEO.trackPageView('@seoPageview')\"><i class='fa fa-chevron-right'></i>@Translate("LogOff", "Log off")</a></li>"); 431 }); 432 </script> 433 } 434 <a href='@orangeButtonLink' class="inloggenMobielLink"> 435 <div class="inloggenMobiel"> 436 <div style="width:200px"> 437 <i class='fa fa-chevron-right'></i>@orangeButtonText 438 </div> 439 </div> 440 </a> 441 } 442 </div> 443 </div> 444 <div class="container header_top hidden-xs hidden-sm"> 445 <div class="row no-gutter"> 446 <div class="col-xs-4 col-xs-offset-6"> 447 @using System 448 @using Kwpn.Models.Constants 449 @using Kwpn.Repository.Helpers 450 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 451 @{ 452 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.SearchResultsPageId); 453 var requestHostSearch = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 454 <div class="searchwrapper well-sm"> 455 456 <div class="row"> 457 <div class="col-xs-3 text-center"> 458 @{ 459 var websiteLanguages = GetLoop("Languages"); 460 if (websiteLanguages.Count > 1) 461 { 462 foreach (var websiteLanguage in websiteLanguages) 463 { 464 var languageFlag = ""; 465 var languageClass = ""; 466 var languageCulture = websiteLanguage.GetString("Culture"); 467 var languagePageId = websiteLanguage.GetString("PageID"); 468 var languageFirstActivePageId = websiteLanguage.GetString("FirstActivePageID"); 469 470 var gotoPage = AreaHelper.ChangeLanguageUrl( 471 GetString("DwPageID"), 472 languagePageId, 473 GetString("DWExtranetAction"), 474 languageFirstActivePageId, 475 languageCulture 476 ); 477 478 if (!string.IsNullOrWhiteSpace(languageCulture)) 479 { 480 var languageCode = languageCulture.Split('-')[0]; 481 if (languageCode.Equals("en", StringComparison.InvariantCultureIgnoreCase)) 482 { 483 languageCode = "gb"; 484 } 485 languageFlag = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/Flags/{1}.svg", requestHostSearch, languageCode); 486 if (languageCulture.Equals(GetGlobalValue("Global:Area.LongLang"), StringComparison.InvariantCultureIgnoreCase)) 487 { 488 languageClass = "active"; 489 } 490 <a href="@gotoPage" class="@languageClass"><img src='@languageFlag' class="switch-language"></a> 491 } 492 } 493 } 494 495 } 496 </div> 497 <div class="col-xs-9"> 498 @if (!string.IsNullOrWhiteSpace(searchResultsPageId)) 499 { 500 var searchQuery = GetString("Ecom:Search.Query"); 501 <form class="search-form" action="default.aspx" method="get" name="GlobalSearchForm" id="desktopSearch"> 502 <input type="hidden" name="ID" value='@searchResultsPageId'> 503 <div class="input-group"> 504 <input type="text" name="q" autocomplete="off" class="form-control" required="required" maxlength="65" placeholder='@Translate("SearchPlaceholder", "Search")' value='@searchQuery' id="desktopSearchTerm"> 505 <span class="input-group-addon" id="btn-search-visible"> 506 <i class="fa fa-search"></i> 507 </span> 508 </div> 509 </form> 510 } 511 </div> 512 </div> 513 </div> 514 } 515 </div> 516 <div class="col-xs-2"> 517 @using System 518 @using Kwpn.Repository.Helpers 519 @using Kwpn.Models.Constants 520 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 521 @if (LoginHelper.MyKwpnIsOffline()) 522 { 523 <div class="offline-wrapper"></div> 524 } 525 else if (LoginHelper.CurrentUserIsLoggedIn()) 526 { 527 var currentUser = Kwpn.Repository.Repositories.KwpnUsers.CurrentUser(); 528 <div id="myaccountMenuWrapper"> 529 <button class="btn-lg btn-primary login-button" id="myaccountButton">@Translate("MyAccount", "My account")</button> 530 <div class="myaccountMenu hidden-xs hidden-sm" id="myaccountMenu" style='display: none;'> 531 @NavigationHelper.GetAccountNavigation( 532 StringConstants.NavigationTags.Account, 533 GetGlobalValue("Global:Page.ID"), 534 Translate("GoToMyDashboard", "Go to my dashboard"), 535 Translate("LogOff", "Log off"), 536 currentUser.IsBlocked 537 ) 538 </div> 539 </div> 540 } 541 else 542 { 543 var loginParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.LoginParagraphId); 544 if (!string.IsNullOrWhiteSpace(loginParagraphId) && Convert.ToInt32(loginParagraphId) > 0) 545 { 546 var loginPopupDisplay = "none"; 547 if (!string.IsNullOrWhiteSpace(LoginHelper.GetLoginError()) && 548 !GetGlobalValue("Global:Page.ID").Equals(AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.PageIdSystemNames.LoginPageId))) 549 { 550 loginPopupDisplay = "block"; 551 } 552 553 var loginAction = System.Web.HttpContext.Current.Request.QueryString.Get("LoginAction"); 554 if (!string.IsNullOrWhiteSpace(loginAction) && loginAction.Equals("Recovery", StringComparison.InvariantCultureIgnoreCase)) 555 { 556 // on password recovery the login module won't show. Probably due to duplicate input field names. 557 // in this case link to login page in stead of showing login form in layover 558 var loginPage = AreaHelper.CreateUrlBySystemName(StringConstants.PageIdSystemNames.LoginPageId); 559 var clickText = string.Format("{0} <i class='fa fa-spinner fa-spin'></i>", Translate("LogIn", "Log in")).JsEncode(); 560 <button class="btn-lg btn-primary login-button link" onclick="$(this).html('@clickText');window.location.href='@loginPage';">@Translate("LogIn", "Log in")</button> 561 } 562 else 563 { 564 <button class="btn-lg btn-primary login-button" onclick="$('.inloggenMenu').toggle();">@Translate("LogIn", "Log in")</button> 565 } 566 567 <div class="inloggenMenu hidden-xs hidden-sm" style='display: @loginPopupDisplay;'> 568 <a href="javascript:void(0);" class="close-login" onclick="$('.inloggenMenu').toggle();"><i class="fa fa-close"></i></a> 569 @RenderParagraphContent(Convert.ToInt32(loginParagraphId)) 570 </div> 571 } 572 } 573 </div> 574 </div> 575 </div> 576 @using Kwpn.Repository.Helpers 577 @using Kwpn.Models.Constants 578 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 579 <div class="container header_content hidden-xs hidden-sm"> 580 <div class="row"> 581 <div class="col-md-3 col-lg-4"> 582 <div class="logo"> 583 <a href='@NavigationHelper.GetHomepageUrl()' title='@Translate("GoToHomepage", "Go to the homepage").JsEncode()'><img src="/Files/Templates/Designs/Kwpn/images/kwpn-logo.svg"></a> 584 </div> 585 </div> 586 <div class="col-md-9 col-lg-8"> 587 <div class="row"> 588 <div class="header col-lg-12 visible-lg visible-md visible-sm"> 589 @NavigationHelper.GetMainNavigation(StringConstants.NavigationTags.Main, GetGlobalValue("Global:Page.ID"), Dynamicweb.Frontend.PageView.Current().Area.Culture) 590 </div> 591 </div> 592 </div> 593 </div> 594 </div> 595 596 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 597 <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> 598 @{ 599 var homepageId = Kwpn.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(Kwpn.Models.Constants.StringConstants.PageIdSystemNames.HomepageId); 600 if (!GetGlobalValue("Global:Page.ID").Equals(homepageId) && !Kwpn.Repository.Helpers.LoginHelper.CurrentUserIsLoggedIn()) 601 { 602 var membershipParagraphId = Kwpn.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(Kwpn.Models.Constants.StringConstants.ParagraphSystemNames.MembershipParagraphId); 603 if (!string.IsNullOrWhiteSpace(membershipParagraphId) && Convert.ToInt32(membershipParagraphId) > 0) 604 { 605 <div id="membershipwrapper">@RenderParagraphContent(Convert.ToInt32(membershipParagraphId))</div> 606 } 607 } 608 } 609 @using Kwpn.Models.Constants 610 @using Kwpn.Repository.Helpers 611 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 612 @{ 613 var partnerLogosParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.PartnerLogoParagraphId); 614 var showPartnerLogos = !string.IsNullOrWhiteSpace(partnerLogosParagraphId) && Convert.ToInt32(partnerLogosParagraphId) > 0; 615 var sponsorLogosParagraphId = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.SponsorLogoParagraphId); 616 var showSponsorLogos = !string.IsNullOrWhiteSpace(sponsorLogosParagraphId) && Convert.ToInt32(sponsorLogosParagraphId) > 0; 617 if (showPartnerLogos || showSponsorLogos) 618 { 619 <div class="container" id="footerlogos"> 620 @if (showPartnerLogos) 621 { 622 <div class="row logolist logolist-blue" id="partner-logos"> 623 <div class="col-xs-12 text-center"> 624 @RenderParagraphContent(Convert.ToInt32(partnerLogosParagraphId)) 625 </div> 626 </div> 627 } 628 @if (showSponsorLogos) 629 { 630 <div class="row logolist" id="sponsor-logos"> 631 <div class="col-xs-12 text-center"> 632 @RenderParagraphContent(Convert.ToInt32(sponsorLogosParagraphId)) 633 </div> 634 </div> 635 } 636 </div> 637 } 638 } 639 @using Kwpn.Models.Constants 640 @using Kwpn.Repository.Helpers 641 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 642 @{ 643 var newsletterParagraphId = int.Parse(AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.ParagraphSystemNames.NewsletterParagraphId)); 644 645 var quickLinksColumn1Folder = Dynamicweb.Services.Pages.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Kwpn.Models.Constants.StringConstants.NavigationTags.InternalLinksColumn1); 646 var quickLinksColumn1 = Dynamicweb.Services.Pages.GetPagesByParentID(quickLinksColumn1Folder?.ID ?? 0); 647 648 var quickLinksColumn2Folder = Dynamicweb.Services.Pages.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Kwpn.Models.Constants.StringConstants.NavigationTags.InternalLinksColumn2); 649 var quickLinksColumn2 = Dynamicweb.Services.Pages.GetPagesByParentID(quickLinksColumn2Folder?.ID ?? 0); 650 } 651 <div class="container" id="footerlinks"> 652 <div class="row" id="goto-navigation"> 653 <div class="col-xs-12 col-sm-6 col-md-3"> 654 <h3>@Translate("NavigationHeader_QuickLinksColumn1", "Directly to")</h3> 655 <ul id="navigation_internallinks_column1"> 656 @foreach (var ql1 in quickLinksColumn1) 657 { 658 <li><a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(ql1.ID)">@ql1.MenuText</a></li> 659 } 660 </ul> 661 </div> 662 <div class="col-xs-12 col-sm-6 col-md-3"> 663 <h3>@Translate("NavigationHeader_QuickLinksColumn2", "Our products")</h3> 664 <ul id="navigation_internallinks_column2"> 665 @foreach (var ql2 in quickLinksColumn2) 666 { 667 668 // determine icon based on name ... not very pretty, but I don't have another way .... 669 var listicon = ""; 670 if (ql2.MenuText.IndexOf("database", StringComparison.OrdinalIgnoreCase) >= 0) { 671 // KWPN Database 672 listicon ="<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_Horse.svg'>"; 673 } else if (ql2.MenuText.IndexOf(".tv", StringComparison.OrdinalIgnoreCase) >= 0) 674 { 675 // KWPN.tv 676 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_TV.svg'>"; 677 } 678 else if (ql2.MenuText.IndexOf("mark", StringComparison.OrdinalIgnoreCase) >= 0 || ql2.MenuText.IndexOf("sale", StringComparison.OrdinalIgnoreCase) >= 0) 679 { 680 // KWPN Marktplaats, KWPN Market place, KWPN horses for sale 681 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_ForSale.svg'>"; 682 } 683 else if (ql2.MenuText.IndexOf("shop", StringComparison.OrdinalIgnoreCase) >= 0) 684 { 685 // KWPN Webshop 686 listicon = "<img src='/Files/Templates/Designs/Kwpn/Images/StyleElements/HomepageHeader_Webshop.svg'>"; 687 } 688 689 var listclass = string.IsNullOrWhiteSpace(listicon) ? "" : " class='icon'"; 690 var listitem = $"<li{listclass}><a href='{Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(ql2.ID)}'>{listicon}{ql2.MenuText}</a>"; 691 @listitem 692 } 693 </li{listclass}></ul> 694 </div> 695 <a name="newsletter"></a> 696 <div class="col-xs-12 col-sm-6 col-md-3"> 697 @if (newsletterParagraphId > 0) 698 { 699 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 700 @*If not logged in or logged in and not subscribed to the monthly newsletter, then show newsletter subscription*@ 701 <h3>@Translate("NewsletterSubscriptionHeader", "Stay informed")</h3> 702 <p>@Translate("NewsletterSubscriptionIntro", "Receive our monthly newsletter filled with updates, events, tips and tricks!")</p> 703 @*If logged in, then show button to profile page (with subscribe/unsubscribe checkbox)*@ 704 705 @RenderParagraphContent(newsletterParagraphId) 706 } 707 </div> 708 <div class="col-xs-12 col-sm-6 col-md-3"> 709 @using Kwpn.Models.Constants 710 @using Kwpn.Repository.Helpers 711 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 712 <h3>@Translate("NavigationHeader_SocialMedia", "Social media")</h3> 713 <ul> 714 @{ 715 var facebookUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Facebook); 716 if (!string.IsNullOrWhiteSpace(facebookUrl)) 717 { 718 <li class="facebook"><a href='@facebookUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Facebook", "Facebook")</a></li> 719 } 720 var instagramUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Instagram); 721 if (!string.IsNullOrWhiteSpace(instagramUrl)) 722 { 723 <li class="instagram"><a href='@instagramUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Instagram", "Instagram")</a></li> 724 } 725 var linkedInUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.LinkedIn); 726 if (!string.IsNullOrWhiteSpace(linkedInUrl)) 727 { 728 <li class="linkedIn"><a href='@linkedInUrl.JsEncode()' target="_blank">@Translate("SocialMedia_LinkedIn", "LinkedIn")</a></li> 729 } 730 var twitterUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Twitter); 731 if (!string.IsNullOrWhiteSpace(twitterUrl)) 732 { 733 <li class="twitter"><a href='@twitterUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Twitter", "Twitter")</a></li> 734 } 735 var youtubeUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.YouTube); 736 if (!string.IsNullOrWhiteSpace(youtubeUrl)) 737 { 738 <li class="youtube"><a href='@youtubeUrl.JsEncode()' target="_blank">@Translate("SocialMedia_YouTube", "YouTube")</a></li> 739 } 740 var vimeoUrl = AreaHelper.GetAreaItemStringValueBySystemName(StringConstants.SocialMedia.Vimeo); 741 if (!string.IsNullOrWhiteSpace(vimeoUrl)) 742 { 743 <li class="vimeo"><a href='@vimeoUrl.JsEncode()' target="_blank">@Translate("SocialMedia_Vimeo", "Vimeo")</a></li> 744 } 745 } 746 </ul> 747 </div> 748 </div> 749 </div> 750 </div> 751 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 752 @{ 753 var requestHostFooter = string.Format("{0}://{1}", GetGlobalValue("Global:Request.Scheme"), GetGlobalValue("Global:Request.Host")); 754 var footerLogo = string.Format("{0}/Files/Templates/Designs/Kwpn/Images/kwpn-footer-logo.svg", requestHostFooter); 755 <div id="footerwrapper"> 756 <div class="container"> 757 <div class="row"> 758 <div class="col-xs-12 col-sm-12 col-md-10"> 759 @GetValue("DwNavigation(navigationfooter)") 760 </div> 761 <div class="hidden-xs hidden-sm col-md-2"> 762 <img src="@footerLogo" id="footer-logo"> 763 </div> 764 </div> 765 </div> 766 </div> 767 } 768 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 769 <div id="kwpnlink"> 770 <a href="@Kwpn.Repository.Helpers.KwpnTvHelper.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> 771 </div> 772 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 773 <div class="modal fade" id="equis-offline" tabindex="-1" role="dialog" aria-labelledby="equis-offline-modal" aria-hidden="true"> 774 <div class="modal-dialog"> 775 <div class="modal-content"> 776 <div class="modal-header">@Translate("EquisOffline_Modal_HeaderText", "Back office offline")</div> 777 <div class="modal-body"></div> 778 <div class="modal-footer"> 779 <a class="orange_balloon_link modal-ok" data-dismiss="modal" href="javascript:void(0);">@Translate("EquisOffline_Modal_OkButtonText", "Ok")</a> 780 </div> 781 </div> 782 </div> 783 </div> 784 @RenderSnippet("JavascriptsBottom") 785 <div class="overlay"></div> 786 @{ 787 var loginError = LoginHelper.GetLoginError(); 788 if (!string.IsNullOrWhiteSpace(loginError)) 789 { 790 <script> 791 $(document).ready(function () { 792 $(".loginErrorMessage span").text('@Translate(loginError, "Incorrect membership number or password")'); 793 $(".loginErrorMessage span").show(); 794 }); 795 </script> 796 } 797 <script> 798 $(document).ready(function () { 799 // note: prevent copying text by using right click function on master's body tag 800 // check if page is market 801 $(".marketplace-page")[0] ? localStorage.setItem("marketPlace", true) : localStorage.removeItem("marketPlace"); 802 803 // tooltip initializer 804 $("[data-toggle='tooltip']").tooltip(); 805 806 // prevent right click on images 807 $('img').on('contextmenu', function () { 808 return false; 809 }); 810 $(".photo").on('contextmenu', function () { 811 return false; 812 }); 813 $(".fancybox-image").on('contextmenu', function () { 814 return false; 815 }); 816 817 @{ 818 // seo login, log when user logs in succesfully 819 var loginStatus = System.Web.HttpContext.Current.Session[Kwpn.Models.Constants.StringConstants.SessionVariables.LoginStatus]; 820 if (loginStatus != null && loginStatus.Equals(Kwpn.Models.Enumerations.LoginStatus.OK)) 821 { 822 System.Web.HttpContext.Current.Session[Kwpn.Models.Constants.StringConstants.SessionVariables.LoginStatus] = Kwpn.Models.Enumerations.LoginStatus.OKDone; 823 var seoPageview = string.Format("/{0}/{1}", GetGlobalValue("Global:Area.LongLang").ToLower(), Translate("SEO_TrackPageviewPage_UserLoggedIn", "logged-in")); 824 <Text> 825 SEO.trackPageView("@seoPageview"); 826 </Text> 827 } 828 } 829 830 // seo original pageview tracking 831 SEO.trackOriginalView(); 832 }); 833 </script> 834 } 835 </body> 836 </html>