This file contains 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 Umbraco.Cms.Core.Models.PublishedContent; | |
using Umbraco.Cms.Core.PropertyEditors; | |
using Umbraco.Cms.Core.Services; | |
using Umbraco.Cms.Core.Web; | |
using Umbraco.Cms.Web.Common.PublishedModels; | |
using Umbraco.Community.Contentment.DataEditors; | |
using Umbraco.Extensions; | |
namespace Themelion.Common.DataSources |
This file contains 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
{ | |
"name": "items", | |
"defaultTitleAlias": "title", | |
"defaultItemsAlias": "items", | |
"items": [ | |
{ | |
"name": "myBlockAlias", | |
"titleAlias": "myTitleAlias", | |
"thumbsAlias": "myImageAlias", |
This file contains 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.Http; | |
namespace Site.Core.ApiControllers | |
{ | |
public class TreeVariantSettingsController : Umbraco.Web.WebApi.UmbracoApiController | |
{ | |
[HttpGet] | |
public string HideUnpublishedVariantsFromTree() | |
{ |
This file contains 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 enableHideNodes = ""; | |
$.ajax({ | |
url: "/umbraco/api/TreeVariantSettings/HideUnpublishedVariantsFromTree", | |
success: function (data) { | |
enableHideNodes = data; | |
} | |
, async: false | |
}); |
This file contains 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.Linq; | |
using Umbraco.Core; | |
using Umbraco.Core.Composing; | |
using Umbraco.Web; | |
using Umbraco.Web.Trees; | |
namespace Site.Core | |
{ | |
public class SiteEvents : IUserComposer |
This file contains 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 Umbraco.Web.PublishedModels; | |
@using System.Configuration; | |
@inherits Umbraco.Web.Mvc.UmbracoViewPage | |
@{ | |
if (!(Model is IAbstractPageSections)) { return; } | |
var introBlock = (Model as IAbstractPageSections).IntroSection; | |
if (introBlock.Any(x => (x.Content as IAbstractSectionBlock).Disabled == false)) |
This file contains 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 | |
@using ClientDependency.Core.Mvc | |
@inherits Umbraco.Web.Mvc.UmbracoViewPage<Umbraco.Core.Models.Blocks.BlockListItem> | |
@{ | |
Html.RequiresCss("/Css/plugin/owl.carousel.css", CdfPriority.Medium, CdfGroup.Section); | |
Html.RequiresJs("/scripts/plugin/owl.carousel.min.js", CdfPriority.Medium, CdfGroup.Section); | |
Html.RequiresCss("/Css/plugin/colorbox.css", CdfPriority.Medium, CdfGroup.Section); | |
Html.RequiresJs("/scripts/plugin/jquery.colorbox-min.js", CdfPriority.Medium, CdfGroup.Section); |
This file contains 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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<Umbraco.Core.Models.Blocks.BlockListItem> | |
@using Site.Core; | |
@using DotSee.Common; | |
@{ | |
SectionTextBlock currSection = Model.Content as SectionTextBlock; | |
SectionTextBlockSettings settings = Model.Settings as SectionTextBlockSettings; | |
bool isPartOfMultiCol = (ViewData["isMultiCol"] ?? "0").ToString() == "1"; |
This file contains 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
@inherits UmbracoViewPage<Umbraco.Core.Models.Blocks.BlockListItem> | |
@{ | |
var isMulticol = (ViewData["isMultiCol"] ?? "0").ToString(); | |
switch (Model.Content.ContentType.Alias) | |
{ | |
default: | |
var controllerContext = Html.ViewContext.Controller.ControllerContext; |
This file contains 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 Umbraco.Web.PublishedModels; | |
@inherits Umbraco.Web.Mvc.UmbracoViewPage | |
@{ | |
if (!(Model is IAbstractPageSections)) { return; } | |
var introBlock = (Model as IAbstractPageSections).IntroSection; | |
if (introBlock.Any(x => (x.Content as IAbstractSectionBlock).Disabled == false)) |
NewerOlder