Error executing template "Designs/HagsCore/_parsed/Dw_Frontpage.parsed.cshtml"
System.IO.IOException: The process cannot access the file 'B:\Hags_Live_A\Files\Templates\Designs\HagsCore\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_9239dcb3d2b449e5ac8b09f7fe00dd6d.Execute()
   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 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System 3 @using System.Linq 4 @using System.Web.Optimization 5 @using HagsWeb.Library.Methods.Page 6 @using HagsWeb.Library.State 7 @{ 8 bool GoogleTag = false; 9 GoogleTag = GetGlobalValue("Global:Request.Url").Contains("http://hagsdw9solution.com") || GetGlobalValue("Global:Request.Url").Contains("http://hagsdev.hags."); 10 11 string themeTag = HagsPages.GetThemeByNavigationTag(GetGlobalValue("Global:Page.Top.ID")); // gets the page ID at the top of the tree this page sits on. 12 } 13 14 <!DOCTYPE html> 15 16 <html class="nojs" lang='@GetGlobalValue("Global:Area.LongLang")'> 17 18 <head> 19 <meta charset="utf-8"> 20 <title>@GetValue("Title")</title> 21 @GetValue("MetaTags") 22 @GetValue("CopyRightNotice") 23 24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 25 <meta http-equiv="content-language" content='@GetGlobalValue("Global:Area.LongLang")'> 26 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> 27 <meta name="robots" content="index, follow"> 28 <meta name="author" content='@GetString("DwAreaName")'> 29 <link rel="shortcut icon" href=''> 30 @foreach (var language in GetLoop("Languages")) { 31 string pageid = language.GetString("PageID"); 32 string url = string.Empty; 33 string productId = System.Web.HttpContext.Current.Request.QueryString.Get("productid"); 34 if (string.IsNullOrEmpty(productId)) 35 { 36 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain") + Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + pageid); 37 } 38 else 39 { 40 string LangID = Dynamicweb.Services.Areas.GetArea(language.GetInteger("ID")).EcomLanguageId; 41 string productUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + pageid + "&ProductID=" + productId); 42 if(!string.IsNullOrEmpty(productUrl)) 43 { 44 url = @GetGlobalValue("Global:Request.Scheme") + "://" + language.GetString("PrimaryDomain") + productUrl; 45 } 46 } 47 if(!string.IsNullOrEmpty(url)) 48 { 49 <link rel="alternate" href='@url' hreflang='@language.GetString("Culture")'> 50 } 51 } 52 53 @Styles.Render("~/bundle/site") 54 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/HagsCore/style/css/print.min.css" media="print"> 55 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/HagsCore/style/css/style-im-temp.css" media="screen"> 56 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&subset=latin,latin-ext"> 57 @Scripts.Render("~/bundle/jquery") 58 @Scripts.Render("~/bundle/Validation") 59 60 @if (!GoogleTag) 61 { 62 <!-- Google Tag Manager --> 63 <script type="text/javascript"> 64 (function (w, d, s, l, i) { 65 w[l] = w[l] || []; 66 w[l].push({ 67 'gtm.start': 68 new Date().getTime(), 69 event: 'gtm.js' 70 }); 71 var f = d.getElementsByTagName(s)[0], 72 j = d.createElement(s), 73 dl = l != 'dataLayer' ? '&l=' + l : ''; 74 j.async = true; 75 j.src = 76 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 77 f.parentNode.insertBefore(j, f); 78 })(window, document, 'script', 'dataLayer', 'GTM-MCRWZS'); 79 </script> 80 <!-- End Google Tag Manager --> 81 <!-- Facebook Pixel Code --> 82 <script type="text/javascript"> 83 !function (f, b, e, v, n, t, s) { 84 if (f.fbq) return; 85 n = f.fbq = function () { 86 n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) 87 }; 88 if (!f._fbq) f._fbq = n; 89 n.push = n; 90 n.loaded = !0; 91 n.version = '2.0'; 92 n.queue = []; 93 t = b.createElement(e); 94 t.async = !0; 95 t.src = v; 96 s = b.getElementsByTagName(e)[0]; 97 s.parentNode.insertBefore(t, s) 98 }(window, 99 document, 100 'script', 101 'https://connect.facebook.net/en_US/fbevents.js'); 102 fbq('init', '271101660030700'); 103 fbq('track', 'PageView'); 104 </script> 105 <!-- End Facebook Pixel Code --> 106 } 107 108 @if (GetGlobalValue("Global:Request.Url").Contains("http://hagsdev.hags.")) 109 { 110 <!-- Only on Staging --> 111 <script type="text/javascript" src="https://www.bugherd.com/sidebarv2.js?apikey=jkh6z6dn1mgbxvjaqolwca" async="true"></script> 112 } 113 @GetValue("Stylesheets") 114 @GetValue("Javascripts") 115 </head> 116 <body> 117 118 @if (!GoogleTag) 119 { 120 <noscript> 121 <!-- Google Tag Manager (noscript) --> 122 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MCRWZS" height="0" width="0" style="display:none;visibility:hidden"></iframe> 123 <!-- End Google Tag Manager (noscript) --> 124 <!-- Facebook Pixel Code --> 125 <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=271101660030700&ev=PageView&noscript=1"> 126 </noscript> 127 } 128 129 <header> 130 <div class="m-header-options-primary m-theme-background-lightgrey"> 131 <div class="l-page"> 132 <div class="container-fluid"> 133 <div class="row"> 134 <div class="col-sm-6 country"> 135 <form class="form-inline"> 136 137 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.Name"))) 138 { 139 string currentMyHagsPage = System.Web.HttpContext.Current.Session["currentMyHagsPage"].ToString(); // set in ExtranetLogin.cs 140 if (currentMyHagsPage != null || !String.IsNullOrEmpty(currentMyHagsPage)) 141 { 142 System.Web.HttpContext.Current.Session["currentMyHagsPage"] = currentMyHagsPage; 143 <span><a href="@currentMyHagsPage" id="myHagsLink" title='@Translate("MyHAGS", "My HAGS")'>@Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.Name")</a> <a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login" style="margin-right: 40px;">@Translate("SignOut", "Sign Out")</a></span> 144 } 145 else 146 { 147 // if session fails or is garbaged 148 <span>@Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.Name") <a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login hide" style="margin-right: 40px;">@Translate("SignOut", "Sign Out")</a></span> 149 } 150 151 } 152 else 153 { 154 <a href="#" onclick="return false;" data-toggle="modal" data-target="#login" class="dw-login hide" style="margin-right: 40px;">@Translate("MyHAGSlogin", "My HAGS login")</a> 155 156 } 157 158 <div class="form-group website-select"> 159 @{ 160 var siteFirstPageId = GetValue("DwAreaFirstPageID").ToString(); // for the Hags Logo url. Go to the WEBSITE home page 161 var thisSiteName = HagsWeb.Library.Methods.Page.HagsPages.GetSiteCountryName(@GetGlobalValue("Global:Area.LongLang")); 162 var websites = GetLoop("WebsiteLanguages"); 163 if (websites.Count > 1) 164 { 165 <div class="btn-group"> 166 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 167 @Translate("SelectYourWebsite", "Select your Website") <span class="caret"></span> 168 </button> 169 <ul class="dropdown-menu" role="menu" style="width: 180px;"> 170 @foreach (LoopItem website in websites) 171 { 172 string s = HagsWeb.Library.Methods.Page.HagsPages.GetSiteCountryName(website.GetValue("Culture").ToString()); 173 string siteName = !String.IsNullOrEmpty(s) ? s : website.GetString("Name"); 174 175 if (website.GetInteger("ID") != 13) //"Italy") 176 { 177 <li> 178 <a href='Default.aspx?ID=@website.GetValue("FirstActivePageID")'>@siteName</a> 179 </li> 180 } 181 } 182 183 @*For Distributors 184 <li class="divider"> 185 </li> 186 <li> 187 <a href='Default.aspx?ID=3101'>World Contacts</a> 188 </li>*@ 189 </ul> 190 </div> 191 } 192 } 193 </div> 194 <div class="text-left country-indicator"> 195 <p>@Translate("CurrentCountry", "Current Country"): <strong>@thisSiteName</strong></p> 196 </div> 197 198 </form> 199 </div> 200 201 <div class="col-sm-6 text-right search"> 202 203 <form class="form-inline" name="searchBox" action="Default.aspx" method="get"> 204 205 <div class="form-group"> 206 <input type="hidden" name="ID" value='@GetString("DwAreaSearchPageID")'> 207 <input type="hidden" id="search-advanced-culture" value='@GetGlobalValue("Global:Area.LongLang")'> 208 209 @{ 210 int i = int.TryParse(GetGlobalValue("Global:Area.ID"), out i) ? i : 0; 211 var area = new Dynamicweb.Content.AreaService().GetArea(i); 212 } 213 214 <input type="hidden" id="search-advanced-resultsurl" value='@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetInteger("DwAreaSearchPageID"))'> 215 <input type="hidden" id="Searchtype" value=""> 216 <label for="InputSearch">@Translate("Search", "Search")</label> 217 <input type="search" name="q" class="form-control" id="InputSearch" placeholder='@Translate("Search", "Search") HAGS' onkeyup="return forceLower(this);" autocomplete="off"> 218 <input type="hidden" id="search-advanced-pageAreaId" value='@GetGlobalValue("Global:Area.ID")'> 219 <input type="hidden" id="search-advanced-pagelanguage" value='@area.EcomLanguageId'> 220 <div> 221 222 <ul class="dropdown-menu search hide" style="left:47%; min-width:196px" role="menu"></ul> 223 224 </div> 225 226 </div> 227 228 </form> 229 230 <div class="text-left product-collection-header"> 231 @{ 232 int collectionCount = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection.Count : 0; 233 string collnCount = string.Empty; 234 if (collectionCount > 0) 235 { 236 collnCount = collectionCount > 0 ? string.Format(@"<span class='collection-number'>{0}</span>", collectionCount) : string.Empty; 237 } 238 } 239 <p> 240 <a role="button" href="#productcollection" data-toggle="tab">@Translate("MyProductCollection", "My Product Collection") 241 <img src="/Files/Templates/Designs/HagsCore/res/img/icons/basket.png" alt="basket" itemprop="basket"></a>@collnCount 242 </p> 243 </div> 244 245 </div> 246 </div> <!-- row --> 247 248 </div> <!-- container-fluid --> 249 250 </div> <!-- l-page --> 251 252 </div> <!-- header-options-primary --> 253 254 <div class="m-header-options-mobile"> 255 <div class="l-page"> 256 <div class="container-fluid"> 257 <div class="row"> 258 259 <div class="m-header-options-mobile-col hide"> 260 261 @if (!String.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.Name"))) 262 { 263 <span>@Translate("Welcome", "Welcome") @GetGlobalValue("Global:Extranet.Name") <a href='/admin/Public/ExtranetLogOff.aspx?ID=@GetGlobalValue("Global:Page.ID")' class="dw-login" style="margin-right:40px;">@Translate("SignOut", "Sign Out")</a></span> 264 } 265 else 266 { 267 <a href="" data-toggle="modal" data-target="#login" class="dw-login" style="margin-right:40px;">@Translate("MyHAGSlogin", "My HAGS login")</a> 268 } 269 270 </div> 271 272 <div class="m-header-options-mobile-col"> 273 <form> 274 <input type="text" class="form-control" id="mobileInputSearch" placeholder='@Translate("Search", "Search") HAGS'> 275 </form> 276 </div> 277 </div> <!-- row --> 278 </div> <!-- container-fluid --> 279 </div> <!-- l-page --> 280 </div> <!-- header-options-mobile --> 281 282 <div class="l-page"> 283 <div class="container-fluid"> 284 <div class="m-header-logo" itemscope="" itemtype="http://schema.org/Organization"> 285 <a href="Default.aspx?ID=@siteFirstPageId" itemprop="url"><img src="/Files/Templates/Designs/HagsCore/res/img/logos/hags.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/logos/hags.png" alt="Hags" itemprop="logo"></a> 286 </div> <!-- logo --> 287 <div class="m-menu-primary print-hide"> 288 <nav class="text-left text-uppercase"> 289 @GetValue("DwNavigation(navbar)") 290 </nav> <!-- text-center --> 291 </div> <!-- m-menu-primary --> 292 293 <div class="m-menu-mobile print-hide"> 294 <nav class="text-center text-uppercase"> 295 @GetValue("DwNavigation(mobileNavbar)") 296 </nav> <!-- text-center --> 297 </div> <!-- m-menu-primary --> 298 299 </div> <!-- container-fluid --> 300 </div> <!-- l-page --> 301 </header> 302 303 <main id="@themeTag"> 304 305 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 306 307 308 309 <div id="content">@GetValue("DwContent(content)")</div> 310 311 <div class="container"> 312 <div id="sidebar">@GetValue("DwContent(sidebar)")</div> 313 </div> 314 315 316 317 318 @if (GetLoop("Item.Area.Accreditation_Images").Count() > 0) 319 { 320 <div class="m-accreditations print-hide" id="Accreditations Carousel"> 321 322 <div class="l-page"> 323 324 <div class="container-fluid text-center"> 325 326 <ul> 327 328 <!-- Accreditation Carousel items --> 329 @foreach (var item in @GetLoop("Item.Area.Accreditation_Images")) 330 { 331 var imageUrl = item.GetString("Item.Area.Accreditation_Images.Image"); 332 var imageAlt = item.GetString("Item.Area.Accreditation_Images.Alternative_Text"); 333 string imageLink = item.GetString("Item.Area.Accreditation_Images.Link"); 334 var imageTitle = item.GetString("Item.Area.Accreditation_Images.Title"); 335 336 if (!string.IsNullOrWhiteSpace(imageLink)) 337 { 338 <li><a href="@imageLink"><img src="@imageUrl" alt="@imageAlt" class="img-responsive"></a></li> 339 } 340 else 341 { 342 <li><img src="@imageUrl" alt="@imageAlt" class="img-responsive"></li> 343 } 344 345 } 346 347 </ul> 348 349 </div> <!-- container-fluid --> 350 351 </div> <!-- l-page --> 352 353 </div> <!-- m-accreditations --> 354 355 } <!--End If any Accreditation Images--> 356 357 </main> 358 359 <footer> 360 <div class="m-theme-background-lightgrey"> 361 <div class="l-page"> 362 <div class="container-fluid"> 363 <div class="m-footer-updates"> 364 <div class="row"> 365 <div class="m-footer-col print-hide"> 366 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Name.Value"))) 367 { 368 <div class="m-footer-address" itemscope="" itemtype="http://schema.org/PostalAddress"> 369 <h3 class="text-uppercase">@Translate("ContactUs", "Contact Us")</h3> 370 <p class="m-footer-address"> 371 <span class="h-adr adr"> 372 <span class="fn p-org org">@GetString("Item.Area.Company_Name.Value")</span><br> 373 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address"))) 374 { 375 <span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address.Value")</span> 376 } 377 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Company_Address_2.Value"))) 378 { 379 <br><span class="p-street-address street-address" itemprop="streetAddress">@GetString("Item.Area.Company_Address_2.Value")</span> 380 } 381 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Town_City.Value"))) 382 { 383 <br> <span class="p-street-address street-address" itemprop="addressLocality">@GetString("Item.Area.Town_City.Value")</span> 384 } 385 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.County.Value"))) 386 { 387 <br><span class="p-street-address street-address" itemprop="addressRegion">@GetString("Item.Area.County.Value")</span> 388 } 389 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Postcode.Value"))) 390 { 391 <br><span class="p-street-address street-address" itemprop="postalCode">@GetString("Item.Area.Postcode.Value")</span> 392 } 393 </span> 394 </p> 395 <ul class="m-icon-links list-unstyled"> 396 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Contact_Email_Link"))) 397 { 398 string mailTo = "mailto:" + GetString("Item.Area.Contact_Email_Link"); 399 <li><a href="@mailTo" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/contact/email.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/contact/email.png" class="m-icon pull-left"><span itemprop="email">@GetString("Item.Area.Contact_Email")</span></a></li> 400 } 401 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telephone"))) 402 { 403 string telTo = "tel:" + GetString("Item.Area.Telephone"); 404 <li><a href="@telTo" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/contact/telephone.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/contact/telephone.png" class="m-icon pull-left"><span itemprop="telephone">@GetString("Item.Area.Telephone")</span></a></li> 405 } 406 </ul> 407 </div> <!-- m-footer-address --> 408 409 } 410 411 </div> 412 <div class="m-footer-col print-hide"> 413 414 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 415 @using Dynamicweb.Content.Items; 416 417 @{ 418 int newsAreaId = HagsWeb.Library.Utilities.WebUtilities.CheckInteger(GetString("DwAreaID")); 419 List<Tuple<string, string, int>> newsItems = HagsWeb.Library.Methods.Items.ItemTypeMethods.GetFeaturedNewsItems(newsAreaId); 420 421 int newsPageId = newsItems.Select(n => n.Item3).FirstOrDefault(); 422 string newsPageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(newsPageId); 423 } 424 425 @if (newsItems.Any()) 426 { 427 <div class="m-footer-news m-theme-border-grey"> 428 <h3 class="text-uppercase"><a href="@newsPageUrl">@Translate("HAGSNews", "HAGS News")</a></h3> 429 <ul class="m-icon-links list-unstyled"> 430 431 @foreach (var item in newsItems) 432 { 433 <li><a href="@item.Item2" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/news.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/news.png" class="m-icon pull-left"><span>@item.Item1</span></a></li> 434 } 435 436 </ul> 437 </div> 438 } 439 440 441 </div> 442 <div class="m-footer-col print-hide"> 443 444 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 445 @{ 446 Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 447 int areaId = thisPage.AreaID; 448 449 // Get the current area's Paragraphs and find the CaseStudies Module, returning a link and its paragraph content 450 var tuple = HagsWeb.Library.Methods.Items.ItemTypeMethods.GetDefaultCaseStudies(areaId, 1); 451 452 string Case_Study_SelectionValue = (GetString("Item.Area.Case_Study_Selection.Value") == null) ? String.Empty : GetString("Item.Area.Case_Study_Selection.Value"); 453 454 if (!string.IsNullOrWhiteSpace(Case_Study_SelectionValue)) 455 { 456 Dynamicweb.Content.Items.Item CaseStudyItem = Dynamicweb.Content.Items.Item.GetItemById("Case_Study", Case_Study_SelectionValue); 457 458 if (CaseStudyItem != null) 459 { 460 461 string studyId = CaseStudyItem["Id"].ToString(); 462 string studyHeading = CaseStudyItem["Study_Heading"].ToString(); 463 string studyParagraph = CaseStudyItem["Study_Content"].ToString(); 464 int pageId = tuple.Item2; // The Target Case Study Page listing Case study Item Types 465 string hyperlinkId = CaseStudyItem["Read_More_Button"] == null ? String.Empty : CaseStudyItem["Read_More_Button"].ToString(); 466 string hyperlinkText = string.Empty; 467 string hyperLink = string.Empty; 468 469 if (!string.IsNullOrWhiteSpace(hyperlinkId)) 470 { 471 // string hyperlinkId = CaseStudyItem["Read_More_Button"].ToString(); 472 Dynamicweb.Content.Items.Item CaseStudyLink = Dynamicweb.Content.Items.Item.GetItemById("Hyperlink_Button", hyperlinkId); 473 474 if (CaseStudyLink != null) 475 { 476 hyperlinkText = CaseStudyLink["Button_Text"].ToString(); 477 hyperLink = CaseStudyLink["Button_Link"].ToString(); 478 479 string[] pid = hyperLink.Split('#').ToArray(); 480 481 //hyperLink = pid[0] + "&itemId=Case_Study:" + studyId; 482 hyperLink = "Default.aspx?ID="+ pageId + "&itemId=Case_Study:" + studyId; 483 } 484 } 485 486 487 <h3 class="text-uppercase">@Translate("CaseStudy", "Case Study")</h3> 488 489 <p> 490 <strong> 491 @if (!string.IsNullOrWhiteSpace(hyperLink)) 492 { 493 <a href="@hyperLink">@studyHeading</a> 494 } 495 else 496 { 497 @studyHeading; 498 } 499 500 </strong> 501 </p> 502 503 <p>@studyParagraph</p> 504 505 if (!string.IsNullOrWhiteSpace(hyperLink)) 506 { 507 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@hyperLink" role="button">@hyperlinkText</a> 508 } 509 510 } 511 512 } 513 else 514 { 515 516 string paraContent = tuple.Item1; 517 string hyperLink = tuple.Item3; 518 // Content from the Paragraph body... 519 if (!string.IsNullOrWhiteSpace(paraContent)) 520 { 521 @paraContent 522 } 523 524 if (!string.IsNullOrWhiteSpace(hyperLink)) 525 { 526 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@hyperLink" role="button">@Translate("ViewMore", "View More")</a> 527 } 528 } 529 530 } 531 532 </div> 533 </div> <!-- row --> 534 </div> <!-- m-footer-updates --> 535 <div class="m-footer-links m-theme-border-grey"> 536 <div class="row"> 537 <div class="col-sm-8"> 538 <div class="m-footer-legals"> 539 540 @{ 541 int legalsLink = 0; 542 var legalsPage = HagsWeb.Library.Methods.Page.HagsPages.GetPageByNavigationTag("Legals", Convert.ToInt32(GetGlobalValue("Global:Area.ID"))); 543 if (legalsPage != null) 544 { 545 legalsLink = legalsPage.ID; 546 } 547 548 if (legalsLink > 0) 549 { 550 <ul class="list-inline"> 551 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("PrivacyPolicy", "Privacy Policy")</a></li> 552 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("CookieNotice", "Cookie Notice")</a></li> 553 <li><a href="/Default.aspx?ID=@legalsLink">@Translate("TermsConditions", "Terms & Conditions")</a></li> 554 </ul> 555 } 556 } 557 558 559 560 </div> <!-- m-footer-legals --> 561 </div> 562 <div class="col-sm-4 text-right"> 563 <div class="m-social m-social-large"> 564 <ul class="list-inline"> 565 <!-- Social Media items --> 566 @foreach (var item in @GetLoop("Item.Area.Social_Media")) 567 { 568 var linkUrl = item.GetValue("Item.Area.Social_Media.Social_Link"); 569 string linkIcon = "/Files/Templates/Designs/HagsCore/res/img/icons/social/" + item.GetString("Item.Area.Social_Media.Social_Icon") + ".png"; 570 <li><a href="@linkUrl" target="_blank"><img src="@linkIcon" class="m-icon m-theme-background-grey"></a></li> 571 } 572 </ul> 573 </div> <!-- m-social --> 574 </div> 575 </div> <!-- row --> 576 </div> <!-- m-footer-links --> 577 </div> <!-- container-fluid --> 578 </div> <!-- l-page --> 579 </div> 580 <div class="m-footer-country m-theme-background-grey"> 581 <div class="l-page"> 582 <div class="container-fluid"> 583 <div class="m-footer-country-form clearfix"> 584 585 586 @{ 587 var footerLanguages = GetLoop("WebsiteLanguages"); 588 if (footerLanguages.Count > 1) 589 { 590 <div class="btn-group dropup"> 591 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 592 @Translate("SelectYourWebsite", "Select your Website") <span class="caret"></span> 593 </button> 594 <ul class="dropdown-menu" role="menu"> 595 @foreach (var language in GetLoop("WebsiteLanguages")) 596 { 597 string s = HagsWeb.Library.Methods.Page.HagsPages.GetSiteCountryName(language.GetValue("Culture").ToString()); 598 string siteName = !String.IsNullOrEmpty(s) ? s : language.GetString("Name"); 599 if (language.GetInteger("ID") != 13) //"Italy") 600 { 601 <li> 602 <a href='Default.aspx?ID=@language.GetValue("FirstActivePageID")'>@siteName</a> 603 </li> 604 } 605 } 606 </ul> 607 </div> 608 } 609 } 610 611 612 </div> <!-- m-footer-country-form --> 613 </div> <!-- container-fluid --> 614 </div> <!-- l-page --> 615 </div> <!-- m-footer-country --> 616 617 </footer> 618 619 @Scripts.Render("~/bundle/scriptLibraries") 620 @Scripts.Render("~/bundle/scriptFunctions") 621 622 @*<script id="GoogleMapsScript" src="http://maps.google.com/maps/api/js?key=AIzaSyAaJWgQPVPvHs7PimeWS98O2QxURRsGAHk&callback=initMap"></script>*@ 623 624 @*add modals here, login, basket*@ 625 626 @if (!GoogleTag) 627 { 628 <!-- Global site tag (gtag.js) - Google Analytics --> 629 <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-22990197-56"></script> 630 <script> 631 window.dataLayer = window.dataLayer || []; 632 633 function gtag() { dataLayer.push(arguments); } 634 635 gtag('js', new Date()); 636 637 gtag('config', 'UA-22990197-56'); 638 </script> 639 } 640 </body> 641 642 </html> 643