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 System; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using Moq; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Core.Models.PublishedContent; | |
| using Umbraco.Web; | |
| using Umbraco.ModelsBuilder; |
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
| { | |
| //array of files we want to inject into the application on app_start | |
| javascript: [ | |
| "~/App_Plugins/HideProperties/arrive.js", | |
| "~/App_Plugins/HideProperties/HidePropertiesJsOutput.ashx" | |
| ] | |
| } |
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 System.Configuration; | |
| using System.Web; | |
| namespace MyNamespace | |
| { | |
| public class HidePropertiesJsOutput : IHttpHandler | |
| { | |
| public void ProcessRequest(HttpContext context) | |
| { | |
| context.Response.ContentType = "text/javascript"; |
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 System.Collections.Generic; | |
| using System.Text; | |
| using System.Web; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| namespace DotSee.Common | |
| { | |
| public class ImageData | |
| { |
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 DotSee.Common | |
| @inherits Umbraco.Web.Mvc.UmbracoViewPage<SomeStronglyTypedModel> | |
| @{ | |
| ImageData imageData = Model.Image.GetImageData(); | |
| } | |
| @Html.Raw(imageData.GetBreakPointsCss(breakPoints: "320:480,480:768,768:960,960:1280,1280:1366,1366:1600,1600:1920", viewWidth:100)) |
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 System; | |
| using System.Web; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| using Umbraco.Web.Models; | |
| namespace DotSee.Common | |
| { | |
| public static class ImageExtensions | |
| { |
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
| DECLARE @DynamicColumns NVARCHAR(MAX); | |
| DECLARE @DynamicSQL NVARCHAR(MAX); | |
| SELECT @DynamicColumns = COALESCE(@DynamicColumns+', ', '')+QUOTENAME(languageISOCode) | |
| FROM | |
| ( | |
| SELECT DISTINCT | |
| languageISOCode | |
| FROM umbracolanguage | |
| ) AS FieldList; |
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 System.Linq; | |
| using System.Text; | |
| using System.Web; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| namespace DotSee.Common | |
| { | |
| public static class ImageExtensions | |
| { |
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 System.Linq; | |
| using System.Reflection; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Logging; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| namespace DotSee.Common | |
| { | |
| public class FixNodesWithoutTemplates : ApplicationEventHandler |
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 System.Web; | |
| using Umbraco.Web; | |
| namespace DotSee.UmbracoExtensions | |
| { | |
| /// <summary> | |
| /// Helps with Umbraco content. | |
| /// </summary> | |
| public static class ContentHelper | |
| { |