This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | pagespeed EnableFilters responsive_images; | |
| pagespeed EnableFilters outline_css; | |
| pagespeed EnableFilters outline_javascript; | |
| pagespeed EnableFilters move_css_above_scripts; | |
| pagespeed EnableFilters move_css_to_head; | |
| pagespeed EnableFilters rewrite_style_attributes; | |
| pagespeed EnableFilters prioritize_critical_css; | |
| pagespeed EnableFilters make_google_analytics_async; | |
| pagespeed EnableFilters canonicalize_javascript_libraries; | |
| pagespeed EnableFilters inline_google_font_css; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var userTicket = new System.Web.HttpContextWrapper(System.Web.HttpContext.Current).GetUmbracoAuthTicket(); | |
| if (!Request.Url.Host.Equals("localhost", StringComparison.OrdinalIgnoreCase)) | |
| { | |
| var user = userTicket?.Name | |
| .IfNotNullThen(()=>ApplicationContext?.Services?.UserService?.GetByUsername(userTicket.Name)); | |
| if (user == null) | |
| { | |
| Response.Redirect("/umbraco", true); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class CachedGetController : ControllerBase | |
| { | |
| [HttpGet] | |
| [OutputCache(Duration = 600)] | |
| public override ActionResult Index(RenderModel model) | |
| { | |
| return base.Index(model); | |
| } | |
| [HttpPost] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class ErrorPageGeneratorEventHandlers : ApplicationEventHandler | |
| { | |
| private static readonly object Lock = new object(); | |
| protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, | |
| ApplicationContext applicationContext) | |
| { | |
| GenerateStaticErrorPage(); | |
| ContentService.Published += (sender, args) => GenerateStaticErrorPage(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @using Page = Website.Core.Models.UmbracoPage | |
| @inherits UmbracoTemplatePage | |
| @{ | |
| Layout = null; | |
| // Forces the doc type declaration on the first line. | |
| Response.Write(@"<?xml version=""1.0"" encoding=""UTF-8"" ?>"); | |
| Response.ContentType = "text/xml"; | |
| var root = Model.Content.Ancestor<Page>(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private static string GetSingleNode(string modelTypeAlias) | |
| { | |
| var node = UmbracoContext.Current.ContentCache | |
| .GetSingleByXPath($"//{modelTypeAlias}[@isDoc]"); | |
| var url = node | |
| ?.Url; | |
| return url; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var transitionSeconds = 5; | |
| $('<style>').html('* { transition: all ' + transitionSeconds + 's; }').appendTo(document.body) | |
| $(document.body).find('*').each((index, element) => { | |
| $(element).data('id', $(element).attr('id')); | |
| $(element).data('class', $(element).attr('class')); | |
| $(element).removeAttr('class id'); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var allNodes = UmbracoContext.ContentCache | |
| .GetByXPath("//*[@isDoc]"); | |
| var nodesVortoValuePairs = allNodes | |
| .SelectMany(n => n.Properties | |
| .Where(p => p.Value is Our.Umbraco.Vorto.Models.VortoValue) | |
| .Select(p => new { Node = n, Property = p })); | |
| var vortoValuesExport = nodesVortoValuePairs | |
| .Select(a => | |
| { | |
| var vortoValue = | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $(".icon-wrong") | |
| .each(function(index, element){ | |
| setTimeout(function(){ | |
| $(element).trigger('contextmenu'); | |
| setTimeout(function(){ | |
| $(".icon-axis-rotation-2:eq(0)").click(); | |
| setTimeout(function(){ | |
| $('iframe.auto-expand').contents().find("#body_PropertyMappingRepeater_DestinationProperty_12:eq(0) option:eq(0)").prop('selected', true); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private UmbracoContext GetUmbracoContext() | |
| { | |
| var httpContextbaseMock = new Mock<HttpContextBase>(); | |
| var applicationContext = GetAppicationContext(); | |
| var webSecurity = new WebSecurity(httpContextbaseMock.Object, applicationContext); | |
| var umbracoSettingsSectionMock = new Mock<IUmbracoSettingsSection>(); | |
| var umbracoContext = UmbracoContext.EnsureContext(httpContextbaseMock.Object, | |
| applicationContext, webSecurity, umbracoSettingsSectionMock.Object, | 
OlderNewer