Error executing template "Designs/ambu/_parsed/ambu-booth-sketch.parsed.cshtml"System.ArgumentException: Could not write parsed file: E:\dynamicweb.net\SolutionsCustom\Co3\ambu-com.espresso4.dk\files\Templates\Designs\ambu\_parsed\ambu-mastersite-espresso.parsed.cshtml System.IO.IOException: The process cannot access the file 'E:\dynamicweb.net\SolutionsCustom\Co3\ambu-com.espresso4.dk\files\Templates\Designs\ambu\_parsed\ambu-mastersite-espresso.parsed.cshtml' 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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)at Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(String value, String path, Boolean appendToFile, Encoding encoding)at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l)at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l)at Dynamicweb.Rendering.Designer.Layout.CheckParsed()at Dynamicweb.Rendering.Designer.Layout.GetLayoutByLocation(String path)at Co3.Espresso.Website.Models.FrontEnd.Elements.EspressoArea..ctor(Area area, Item item) in C:\Projects\espresso-solution\Co3.Espresso.Website\Models\FrontEnd\Elements\EspressoArea.cs:line 55at Co3.Espresso.Website.Models.FrontEnd.Pages.PageBaseModel..ctor(Page page, Item dynamicwebItem) in C:\Projects\espresso-solution\Co3.Espresso.Website\Models\FrontEnd\Pages\PageBaseModel.cs:line 119at Co3.Espresso.Website.TemplateBases.Pages.PageBase..ctor() in C:\Projects\espresso-solution\Co3.Espresso.Website\TemplateBases\Pages\PageBase.cs:line 16at CompiledRazorTemplates.Dynamic.RazorEngine_1019e6dbe27b43ac84358b68d9ece04e..ctor()at lambda_method(Closure )at RazorEngine.Templating.RazorEngineCore.CreateTemplate(ICompiledTemplate template, Object model, DynamicViewBag viewbag)at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)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 Co3.Espresso.Website.TemplateBases.Pages.PageBase 2 @using Co3.Ambu.Dw.Services; 3 @using Co3.Ambu.Dw.DAL.Models; 4 @using System.Web; 5 @using Co3.Ambu.Dw.Models.Frontend 6 @using Co3.Espresso.Base.Extensions 7 @using Dynamicweb.Frontend; 8 @using Dynamicweb.Rendering; 9 @{ 10 string globalAreaLang = GetGlobalValue( "Global:Area.Lang" ); 11 //DomainLocalization domainLocalization = LocalizationService.Instance.GetDomainLocalizationIfMatch(); 12 string siteHostUrl = HttpContext.Current.Request.Url.Host; 13 string siteHost = GetGlobalValue( "Global:Request.Scheme" ) + "://" + siteHostUrl + "/"; 14 int globalAreaID = PageView.Current().Area.ID; 15 16 bool isProductPage = string.IsNullOrEmpty( HttpContext.Current.Request["productid"] ) == false; 17 bool isProductPageSearch = string.IsNullOrEmpty( HttpContext.Current.Request["PageNum"] ) == false; 18 string productTitleSnippetHtml = RenderSnippet( "productTitle" ).ToString().Trim(); 19 string eComCanonicalSnippetTag = RenderSnippet( "eComCanonical" ).ToString().Trim(); 20 string globalValueUrl = GetGlobalValue( "Global:Pageview.Url" ); 21 string pageTitle = GetGlobalValue("Global:Page.Name"); 22 if ( GetGlobalValue( "Global:Pageview.Url" ).IndexOf( "?" ) > -1 ) 23 { 24 globalValueUrl = GetGlobalValue( "Global:Pageview.Url" ).Substring( 0, GetGlobalValue( "Global:Pageview.Url" ).IndexOf( "?" ) ); 25 } 26 string canonicalPageView = String.Format( "{0}://{1}{2}", GetGlobalValue( "Global:Request.Scheme" ), GetGlobalValue( "Global:Request.Host" ), globalValueUrl ); 27 string pageCanonical = PageView.Current().Page.MetaCanonical; 28 string OpenGraphURL = GetGlobalValue( "Global:Request.Scheme" ) + "://" + GetGlobalValue( "Global:Request.Host" ) + GetGlobalValue( "Global:Pageview.Url" ); 29 30 string scriptHead = (Espresso.Area.Item.ScriptHead != "") ? Espresso.Area.Item.ScriptHead : ""; 31 string scriptBodyTop = (Espresso.Area.Item.ScriptBodyTop != "") ? Espresso.Area.Item.ScriptBodyTop : ""; 32 string scriptBodyBottom = (Espresso.Area.Item.ScriptBodyBottom != "") ? Espresso.Area.Item.ScriptBodyBottom : ""; 33 } 34 <!DOCTYPE html> 35 <html lang="@globalAreaLang"> 36 <head> 37 <meta charset="utf-8"> 38 @if ( isProductPage == false && isProductPageSearch == false ) 39 { 40 <title>@GetValue("Title")</title> 41 @GetValue("CopyRightNotice") 42 43 @GetValue("MetaTags") 44 } 45 else if(isProductPage) 46 { 47 @productTitleSnippetHtml 48 } 49 else 50 { 51 <title>@pageTitle</title> 52 <base href="@siteHost"> 53 <meta name="generator" content="Dynamicweb 9"> 54 } 55 <meta content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui" name="viewport"> 56 <meta content="ie=edge" http-equiv="x-ua-compatible"> 57 <meta content="313B624F0C8264FB3B95057AE602F42C" name="msvalidate.01"> 58 @using Dynamicweb.Frontend 59 @using Area = Dynamicweb.Content.Area 60 61 62 <!-- Hreflang --> 63 @{ 64 @* Get areas from service *@ 65 Dynamicweb.Content.AreaService areaService = new Dynamicweb.Content.AreaService(); 66 IList<Area> areas = areaService.GetAreas(); 67 68 @* Get current page's relation-text from page-item *@ 69 string currentPageRelation = PageView.Current().Page.Item["PageRelation"] != null ? PageView.Current().Page.Item["PageRelation"].ToString() : string.Empty; 70 71 @* Frontpage must have 'frontpage' as relation-text *@ 72 string CONST_frontpageRelation = "frontpage"; 73 74 @* Iterate areas *@ 75 foreach ( Area area in areas ) 76 { 77 if ( area.Active == true ) 78 { 79 80 81 82 @* Get current area's culture *@ 83 string culture = area.Culture; 84 @* Check for IsDefault Hreflang on area *@ 85 string isDefaultHrefLang = area.Item["IsDefaultHrefLang"] != null ? area.Item["IsDefaultHrefLang"].ToString() : string.Empty; 86 @* Check for override-culture text on area *@ 87 string hreflangCultureOverride = area.Item["HreflangLanguageOverride"] != null ? area.Item["HreflangLanguageOverride"].ToString() : string.Empty; 88 89 @* Get scheme and domain *@ 90 string scheme = GetGlobalValue( "Global:Request.Scheme" ); 91 92 string domain = area.DomainLock; 93 @* If we have a primary domain call pageservice and get pages *@ 94 if ( string.IsNullOrEmpty( currentPageRelation ) == false && string.IsNullOrEmpty( domain ) == false && !domain.EndsWith( "espresso4.dk" ) ) 95 { 96 Dynamicweb.Content.PageService pageService = new Dynamicweb.Content.PageService(); 97 IEnumerable<Dynamicweb.Content.Page> pages = pageService.GetPagesByAreaID( area.ID ); 98 99 @* Iterate pages in area - check if is active + has item + has item-pagerelation + item-pagerelation equals current pagerelation *@100 foreach ( Dynamicweb.Content.Page page in pages.Where( p => p.Published && p.Item != null && p.Item["PageRelation"] != null && p.Item["PageRelation"].ToString().Equals( currentPageRelation ) ) )101 {102 string productId = HttpContext.Current.Request["productid"];103104 string url = string.Empty;105106 if ( string.IsNullOrEmpty( productId ) == false )107 {108 @* Build url to area product page *@109 string prodUrl = string.Format( "Default.aspx?ID={0}&ProductId={1}", page.ID, productId );110 url = string.Format( "{0}://{1}{2}", scheme, domain, SearchEngineFriendlyURLs.GetFriendlyUrl( prodUrl, area.EcomLanguageId ) );111 }112 else113 {114 @* Build url to area page *@115 url = string.Format( "{0}://{1}{2}", scheme, domain, SearchEngineFriendlyURLs.GetFriendlyUrl( page.GetPageHrefValue() ) );116 }117118 @* If our current page relation match frontpage - set link to domain only *@119 if ( currentPageRelation.ToLower() == CONST_frontpageRelation )120 {121 url = string.Format( "{0}://{1}/", scheme, domain );122 }123 @* If we have a value in the area-item to overrule the culture, override the value here *@124 if ( string.IsNullOrEmpty( hreflangCultureOverride ) == false )125 {126 culture = hreflangCultureOverride;127 }128 @* If our area item has checked in Default hreflang, we render x-default link *@129 if ( isDefaultHrefLang == "True" )130 {131 <link rel="alternate" hreflang="x-default" href="@url">132 }133 else134 {135 @* Render hreflang-link *@136 <link rel="alternate" hreflang="@culture.ToLower()" href="@url">137 }138139 @* Find all related cultures *@140 string relatedCulturesString = area.Item["RelatedCultures"] != null ? area.Item["RelatedCultures"].ToString() : string.Empty;141142 if (!string.IsNullOrWhiteSpace(relatedCulturesString))143 {144 @* RelatedCultures is an editable list, which comes comma separated *@145 string[] relatedCultures = relatedCulturesString.Split(',');146147 foreach (string relatedCulture in relatedCultures)148 {149 <link rel="alternate" hreflang="@relatedCulture.ToLower()" href="@url">150 }151 }152 }153 }154 }155 }156 }157 <!-- End Hreflang -->158159 @if ( globalValueUrl.EndsWith( "/product" ) || globalValueUrl.Contains( "/test-dev" ) || globalValueUrl.Contains( "/test-pages" ) )160 {161 <meta content="noindex" name="robots">162 }163164 @if ( isProductPage == false )165 {166 <link rel="canonical" href="@canonicalPageView">167 }168 else169 {170 <link rel="canonical" href="@eComCanonicalSnippetTag">171 @GetValue( "MetaTags" )172 }173174 @Espresso.CriticalCSS175176 @scriptHead177178 @if ( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" )179 {180 <!-- Google Tag Manager -->181 <script>182 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':183 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],184 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=185 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);186 })(window,document,'script','dataLayer','@Espresso.Area.GoogleTagManagerID');187 </script>188 <!-- End Google Tag Manager -->189 }190 <link href="/Files/Templates/Designs/ambu/assets/_dist/css/default.css?v=4.038" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style">191192 @Espresso.CriticalJS193194195 <link rel="shortcut icon" href="@Espresso.Area.Item.Favicon">196 @if ( Espresso.IsStagingUrl == true || siteHost.Contains( "webtester.dk" ) )197 {198 <meta content="noindex,nofollow" name="robots">199 }200201 <meta property="og:url" content="@OpenGraphURL">202 <meta property="og:title" content="@Espresso.OpenGraphTitle">203 <meta property="og:description" content="@Espresso.OpenGraphDescription">204 <meta property="og:image" content="@Espresso.OpenGraphImage">205206 @if ( string.IsNullOrEmpty( Espresso.Area.Item.GoogleSiteVerification ) == false )207 {208 <meta name="google-site-verification" content="@Espresso.Area.Item.GoogleSiteVerification">209 }210211 @{212 if ( 1 == 2 )213 {214 @GetValue( "Stylesheets" )215 }216 }217218 @*<div class="modal fade ambu-disclaimer-modal" id="ambu-disclaimer" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static">219 <div class="modal-dialog">220 <div class="modal-content col-xs-12 col-md-8 col-md-offset-2 p-t-2 p-b-2">221 <button type="button" class="close" data-dismiss="modal" aria-label="Close">222 <span aria-hidden="true">&times;</span>223 </button>224 <section class="p-t-3 p-b-3">225 <div class="container-fluid">226 <div class="row">227 <div class="col-xs-12">228 <div class="row">229 <div class="js-disclaimer-text-container col-xs-12 col-md-12 " hidden="">230 <div class="row">231 <div class="col-xs-12">232 <h2 class="m-b-0">Disclaimer <span style="font-size: 0.5em;" class="text-primary">(Important)</span></h2>233 <p class="card-header p-t-3 p-b-3 small m-t-1">234 ELECTRONIC VERSIONS OF THE MATERIALS YOU ARE SEEKING TO ACCESS ARE BEING MADE AVAILABLE ON THIS WEBPAGE BY AMBU A/S (THE <strong>“COMPANY”</strong>) IN GOOD FAITH AND FOR INFORMATION PURPOSES ONLY. THESE MATERIALS ARE NOT DIRECTED AT OR ACCESSIBLE BY PERSONS LOCATED IN THE UNITED STATES, CANADA, AUSTRALIA AND JAPAN AND ANY OTHER JURISDICTION WHERE THE EXTENSION OR AVAILABILITY OF THE PROPOSED OFFERING (AND ANY OTHER TRANSACTION CONTEMPLATED THEREBY) WOULD BREACH ANY APPLICABLE LAW OR REGULATION (THE <strong>“RESTRICTED JURISDICTIONS”</strong>).</p>235 <p class="lead">236 Please read this notice carefully — it applies to all persons who view this webpage. Please note that the disclaimer set out below may be altered or updated from time to time. You should read it in full each time you visit the site.</p>237 <h3>Basis of access </h3>238 <p>239 Access to electronic versions of these materials is being made available by the Company in good faith and for information purposes only. Any person seeking access to this webpage represents and warrants to the Company that they are doing so for information purposes only. Making press announcements and other documents available in electronic format does not constitute an offer to sell or the solicitation of an offer to buy the securities mentioned in such materials (the “Securities”). Further, it does not constitute a recommendation by the Company or any other party to sell or buy the Securities.</p>240 <h3>Foreign Persons</h3>241 <p>242 Viewing the materials on this webpage may not be lawful in certain jurisdictions. In other jurisdictions, only certain categories of person may be allowed to view such materials. Any citizens or residents or, or persons otherwise located in, any Restricted Jurisdiction, who wish to view these materials should satisfy themselves that they are not subject to any local requirements that prohibit or restrict them from doing so.</p>243 <p>244 Unless otherwise determined by the Company and permitted by applicable law and regulation, the materials do not constitute or form a part of any offer or solicitation to purchase or subscribe for the Securities by the Company made in the Restricted Jurisdictions or any other jurisdiction in which such offers or sales are unlawful prior to registration or qualification under the securities laws of any such jurisdiction.</p>245 <p>246 In particular, the Securities have not been and will not be registered under the United States Securities Act of 1933, as amended (the <strong>“Securities Act”</strong>), and may not be offered or sold in or into the United States except pursuant to an exemption from, or in a transaction not subject to, the registration requirements of the Securities Act. The Securities will not be registered under or offered in compliance with applicable securities laws of any state, province, territory, county or jurisdiction of the United States or the other Restricted Jurisdictions. Accordingly, unless an exemption under the relevant securities law is applicable, the Securities may not be offered, sold, taken up, exercised, renounced, resold, delivered or distributed, directly or indirectly, in or into the United States or the other Restricted Jurisdictions or any other jurisdiction if to do so would constitute a violation of the relevant laws of, or require registration of the Securities in, such jurisdiction. There will be no public offering of the Securities in the United States.</p>247 <p>248 If you are not permitted to view materials on this webpage or are in any doubt as to whether you are permitted to view these materials, please exit this webpage.</p>249 <h3>Confirmation of understanding and acceptance of disclaimer</h3>250 <p>251 Electronic versions of these materials are not directed at or accessible by, nor should they be made available to, persons located in the Restricted Jurisdictions or in any other restricted jurisdiction.</p>252 <p>253 By clicking on the “Agree” button, I certify that I am not located in any of the Restricted Jurisdictions or in any other restricted jurisdiction.254 </p>255 <p>256 I have read and understood the disclaimer set out above. I understand that it may affect my rights. I agree to be bound by its terms. By clicking on the “Agree” button, I confirm that I am permitted to proceed to electronic versions of these materials.</p>257 </div>258 </div>259 <div class="row">260261 <div class="m-t-1 col-xs-12 col-md-6">262 <button class="btn btn-primary btn-sm btn-block js-disclaimer-modal-confirm-again-btn" type="button">Agree</button>263 </div>264 <div class="m-t-1 col-xs-12 col-md-6">265 <button class="btn btn-secondary btn-sm btn-block" type="button" data-dismiss="modal">Disagree</button>266 </div>267 </div>268 </div>269 <div class="js-disclaimer-select-country-container col-xs-12 col-md-8 col-md-offset-2">270 <h2 class="text-xs-center">Please confirm your location here</h2>271 <form class="form-inline"></form>272 <div class="form-group">273 <div class="row">274 <div class="m-t-1 col-xs-12 col-md-8">275 <select style="height: 100%; padding: 0.1em 0;" class="form-control form-control-lg js-disclaimer-modal-confirm-value">276 <option selected="" disabled="">Select country</option>277 <option value="AL">Albania</option>278 <option value="AR">Argentina</option>279 <option value="AU">Australia</option>280 <option value="AT">Austria</option>281 <option value="BH">Bahrain</option>282 <option value="BD">Bangladesh</option>283 <option value="BE">Belgium</option>284 <option value="BO">Bolivia</option>285 <option value="BR">Brazil</option>286 <option value="BG">Bulgaria</option>287 <option value="CA">Canada</option>288 <option value="CL">Chile</option>289 <option value="CN">China</option>290 <option value="CO">Colombia</option>291 <option value="CR">Costa Rica</option>292 <option value="HR">Croatia</option>293 <option value="CZ">Czech Republic</option>294 <option value="DK">Denmark</option>295 <option value="EC">Ecuador</option>296 <option value="EG">Egypt</option>297 <option value="SV">El Salvador</option>298 <option value="EE">Estonia</option>299 <option value="FI">Finland</option>300 <option value="FR">France</option>301 <option value="DE">Germany</option>302 <option value="GR">Greece</option>303 <option value="GT">Guatamala</option>304 <option value="HK">Hong Kong</option>305 <option value="HU">Hungary</option>306 <option value="IS">Iceland</option>307 <option value="IN">India</option>308 <option value="ID">Indonesia</option>309 <option value="IR">Iran</option>310 <option value="IQ">Iraq</option>311 <option value="IE">Ireland</option>312 <option value="IL">Israel</option>313 <option value="IT">Italy</option>314 <option value="JP">Japan</option>315 <option value="JO">Jordan</option>316 <option value="KE">Kenya</option>317 <option value="KW">Kuwait</option>318 <option value="LV">Latvia</option>319 <option value="LB">Lebanon</option>320 <option value="LY">Libya</option>321 <option value="LT">Lithuania</option>322 <option value="LU">Luxembourg</option>323 <option value="MY">Malaysia</option>324 <option value="MT">Malta</option>325 <option value="MK">Marcedonia</option>326 <option value="MX">Mexico</option>327 <option value="MA">Morocco</option>328 <option value="MM">Myanmar</option>329 <option value="NP">Nepal</option>330 <option value="NL">Netherlands</option>331 <option value="NZ">New Zealand</option>332 <option value="NI">Nicaragua</option>333 <option value="NO">Norway</option>334 <option value="OM">Oman</option>335 <option value="PK">Pakistan</option>336 <option value="PA">Panana</option>337 <option value="PY">Paraguay</option>338 <option value="PE">Peru</option>339 <option value="PH">Philippines</option>340 <option value="PL">Poland</option>341 <option value="PT">Portugal</option>342 <option value="PR">Puerto Rico</option>343 <option value="QA">Qatar</option>344 <option value="DO">República Dominicana</option>345 <option value="RO">Romania</option>346 <option value="RU">Russia</option>347 <option value="SA">Saudi Arabia</option>348 <option value="RS">Serbia</option>349 <option value="SG">Singapore</option>350 <option value="SK">Slovak Republic</option>351 <option value="SI">Slovenia</option>352 <option value="ZA">South Africa</option>353 <option value="KR">South Korea</option>354 <option value="ES">Spain</option>355 <option value="LK">Sri Lanka</option>356 <option value="SE">Sweden</option>357 <option value="CH">Switzerland</option>358 <option value="SY">Syria</option>359 <option value="TW">Taiwan</option>360 <option value="TH">Thailand</option>361 <option value="TT">Trinidad &amp; Tobago</option>362 <option value="TN">Tunisia</option>363 <option value="TR">Turkey</option>364 <option value="AE">UAE</option>365 <option value="GB">United Kingdom</option>366 <option value="US">United States</option>367 <option value="UY">Uruguay</option>368 <option value="VN">Vietnam</option>369 </select>370 </div>371 <div class="m-t-1 col-xs-12 col-md-4">372 <button class="btn btn-primary btn-sm btn-block js-disclaimer-modal-confirm-btn" type="button">Go</button>373 </div>374 </div>375 </div>376 </div>377 <form></form>378 </div>379 </div>380 </div>381 </div>382 </section>383 </div>384 </div>385 </div>*@386387 @GetValue("Stylesheets")388 @GetValue("Javascripts")389 </head>390391 <body class="@Espresso.Item.CustomClasses">392393 @scriptBodyTop394395 @if ( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" )396 {397 <!-- Google Tag Manager (noscript) -->398 <noscript>399 <iframe src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" height="0" width="0" style="display:none;visibility:hidden"></iframe>400 </noscript>401 <!-- End Google Tag Manager (noscript) -->402 }403404 @using Co3.Ambu.Dw.Services405 @{406 if( Espresso.Canvas.ClassList.ToString().Contains("e-page-is-loading") == true ){407 Espresso.Canvas.ClassList.RemoveClasses("e-page-is-loading");408 Espresso.Canvas.ClassList.AddClasses("is-loading");409 }410 }411412 @if( Espresso.Area.Item.OptimizedLoading == "True" ){413 <div id="js-e-page-loading-overlay" class="e-page-loading-overlay e-loading-overlay is-loading"><div class="e-loading-spinner"></div></div>414 }415416 <div class="@Espresso.Canvas.ClassList p-t-0" id="js-e-canvas">417 <main class="e-content">418 <article id="dwcontentmain" class="e-content-main @Espresso.ContentArea.ClassList">419 <section class="e-section">420 <div class="container-fluid">421 <div class="row">422 <div class="@Espresso.ContentSection.ClassList">423 <div class="row">424 @GetValue("DwContent(dwcontentmain)")425 </div>426 </div>427 </div>428 </div>429 </section>430 </article>431 </main>432 </div>433434 <script async="" src="/Files/Templates/Designs/ambu/assets/_dist/js/default.js?v=4.008"></script>435436 @{437 SidebarPopup sidebarPopupModel = new SidebarPopup()438 {439 SidebarPopupContent = Pageview.Area.Item.GetValue<string>( "SidebarPopupContent" ),440 SidebarPopupButtonIcon = Pageview.Area.Item.GetValue<string>( "SidebarPopupButtonIcon" ),441 SidebarPopupLandingPage = Pageview.Area.Item.GetValue<string>( "SidebarPopupLandingPage" )442 };443 }444445 @RenderingService.Instance.PartialView( "../_partials/ambu-sidebar-popup.cshtml", sidebarPopupModel )446447 <div aria-hidden="true" class="ambu-languages fade modal" data-backdrop="true" id="ambu-languages" role="dialog" tabindex="-1">448 <button aria-label="Close" class="close" data-dismiss="modal" type="button">449 <span aria-hidden="true">&times;</span>450 </button>451 <div class="modal-dialog">452 <div class="modal-content">453 <section class="p-b-3 p-t-3">454 <div class="container-fluid">455 <div class="row">456 <div class="col-xs-12">457 <div class="row">458 <div class="col-xs-12 m-b-2 text-xs-center">459 <img class="col-xs-4 m-b-1" src="/Files/Images/worldmap.svg">460 </div>461 <div class="col-md-10 col-md-offset-1 col-xs-12">462 <p class="h2 text-xs-center">@Translate( "Choose your country", "Find your local Ambu website" )</p>463 <ul class="nav small">464 @GetValue("DwNavigation(dwnavambulanguages)")465 </ul>466 <p class="modal-text text-xs-center">@Translate( "Choose your country additional text", "Looking for a local Ambu representative in your country?<br><a href='/Default.aspx?Id=12845'>Go to our local distributors page</a>" )</p>467 </div>468 </div>469 </div>470 </div>471 </div>472 </section>473 </div>474 </div>475 </div>476477 <script type="text/javascript">478 window.dataLayer = window.dataLayer || [];479 var regexname = /^185\.233\.221\.218$|^202\.68\.175\.150$|^80\.14\.131\.94$|^93\.51\.217\.48$|^208\.204\.9\.50$|^50\.203\.113\.7$|^59\.60\.7\.50$|^113\.210\.190\.34$|^23\.97\.167\.114$|^52\.166\.13\.102$|^195\.77\.35\.162$|^46\.17\.165\.212$|^210\.187\.178\.33$|^62\.245\.231\.242$|^201\.174\.154\.58$|^77\.243\.43\.130$|^87\.62\.83\.1$/;480 var visitorIp = "@HttpContext.Current.Request.UserHostAddress";481 if (visitorIp.match(regexname)) {482 window.dataLayer.push({483 'Ambu_Internal': 'true'484 });485 } else {486 window.dataLayer.push({487 'Ambu_Internal': 'false'488 });489 }490 </script>491492 @scriptBodyBottom493494 </body>495 @GetValue( "CopyRightNotice" )496 </html>497