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
| 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
| 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
| 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
| 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 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
| 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; | |
| using Umbraco.Core.Logging; | |
| using Umbraco.Core.Persistence; | |
| using Umbraco.Core.Persistence.Migrations; | |
| using Umbraco.Core.Persistence.SqlSyntax; | |
| namespace MyApp.Migrations | |
| { | |
| [Migration("1.1.0", 1, MyCustomSectionMigrationConstants.ProductName)] | |
| public class AddCustomPropertyToBeAddedLaterToMyPocoTable : MigrationBase |
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.Globalization; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Services; | |
| using Umbraco.Web; | |
| using Umbraco.Web.Editors; | |
| using Umbraco.Web.Models.ContentEditing; | |
| namespace MyWebsite | |
| { |
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.WebApi; | |
| namespace My.Website.Controllers.Api | |
| { | |
| public class FormHtmlApiController : UmbracoApiController | |
| { | |
| public IHtmlString Get(string id) | |
| { | |
| return Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = id }); |