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.TemplateBase`1.Translate(String text, String defaultValue, String cultureName)
at CompiledRazorTemplates.Dynamic.RazorEngine_9173388b4cce41259f655cfcb0c0adea.Execute() in D:\inetpub\wwwroot\www.kwpn.nl\Files\Templates\Designs\Kwpn\_parsed\Page.parsed.cshtml:line 327
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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