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.Collections.Generic; | |
| using System.Linq; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Core.Services; | |
| namespace DemoApp | |
| { | |
| public class ProtectedContentNotifyEventHandler : 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.Linq; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Core.Services; | |
| namespace My.App.Events | |
| { | |
| public class MyContentSmellerEventHandler : ApplicationEventHandler | |
| { | |
| protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |
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 ArchetypeLabelHelper = (function () { | |
| //private helpers | |
| if (!String.prototype.format) { | |
| String.prototype.format = function () { | |
| var args = arguments; | |
| return this.replace(/{(\d+)}/g, function (match, number) { | |
| return typeof args[number] != 'undefined' | |
| ? args[number] | |
| : match | |
| ; |
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 Jumoo.uSync.BackOffice; | |
| using Jumoo.uSync.BackOffice.Handlers; | |
| using Jumoo.uSync.BackOffice.Helpers; | |
| using Jumoo.uSync.Core; | |
| using Jumoo.uSync.Core.Extensions; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Xml.Linq; |
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
| angular.module("umbraco.directives").directive('simplerichtexteditor', function (assetsService) { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| field: '=' | |
| }, | |
| controller: function ($scope, $element) { | |
| $scope.model = { | |
| alias: 'simpleRichtextEditor', | |
| view: 'rte', |
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
| angular.module("umbraco.directives") | |
| .directive('simpledatepicker', function ($parse, $filter, assetsService) { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| field: '=' | |
| }, | |
| controller: function ($scope, $element) { | |
| assetsService.loadCss('/umbraco/lib/datetimepicker/bootstrap-datetimepicker.min.css').then(function () { | |
| var filesToLoad = ["/umbraco/lib/moment/moment-with-locales.js", |
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.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Globalization; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Models; | |
| namespace My.Website.ComponentModel.TypeConverters | |
| { | |
| public abstract class MultipleIPublishedContentTypeConverterBase<T> : TypeConverter |
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.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using Our.Umbraco.Ditto; | |
| using Umbraco.Core.Models; | |
| namespace My.Website.ComponentModel | |
| { | |
| public class SinglePublishedContentUmbracoPropertyAttribute : UmbracoPropertyAttribute |
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
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RebuildMediaCacheTool.ascx.cs" Inherits="My.Website.Dashboard.RebuildMediaCacheTool" %> | |
| <div class="dashboardWrapper"> | |
| <h2>Rebuild Media Cache</h2> | |
| <img src="/umbraco_client/Dashboards/ExamineManagementIco.png" alt="" class="dashboardIcon" /> | |
| <asp:MultiView ID="MainView" runat="server"> | |
| <asp:View ID="InitialView" runat="server"> | |
| <asp:Button ID="RebuildButton" Text="Rebuild Media Cache" runat="server"/> | |
| </asp:View> | |
| <asp:View ID="CompleteView" runat="server"> | |
| <p>Rebuild complete!</p> |
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.Mvc; | |
| using Our.Umbraco.Ditto.Resolvers.Grid.Attributes; | |
| namespace My.Website.ViewModels { | |
| public class HomeViewModel { | |
| [GridResolver(framework: "fanoe")] | |
| public MvcHtmlString Content { get; set; } | |
| } | |
| } |