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
public static IDependencyResolver CreateResolver() | |
{ | |
var config = new Glass.Mapper.Sc.Config(); | |
var dependencyResolver = new DependencyResolver(config); | |
dependencyResolver.DataMapperFactory.Insert(0, () => new LivePhotoDataMapper()); | |
return dependencyResolver; | |
} |
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; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.IO; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Web; | |
using System.Web.UI; | |
using Glass.Mapper; |
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; | |
using System.IO; | |
namespace Paragon.Foundation.LivePhoto.HtmlHelpers | |
{ | |
public class RenderElement : IDisposable | |
{ | |
private readonly TextWriter _writer; | |
private readonly string _firstPart; | |
private readonly string _lastPart; |
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; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Text; | |
using Glass.Mapper; | |
using Sitecore.Collections; | |
using Sitecore.Diagnostics; |
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; | |
using Glass.Mapper; | |
using Glass.Mapper.Sc; | |
using Glass.Mapper.Sc.Configuration; | |
using Glass.Mapper.Sc.DataMappers; | |
using Paragon.Foundation.LivePhoto.Data.Fields; | |
using Paragon.Foundation.LivePhoto.Extensions; | |
using Paragon.Foundation.LivePhoto.GlassFieldObjects; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; |
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; | |
using Sitecore.Globalization; | |
namespace Paragon.Foundation.LivePhoto.GlassFieldObjects | |
{ | |
/// <summary> | |
/// Based on Glass.Mapper.Sc.Fields.Image | |
/// </summary> | |
[Serializable] | |
public class LivePhotoGlassObject : ILivePhotoGlassObject |
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; | |
using System.Web.UI.WebControls; | |
using Paragon.Foundation.LivePhoto.Extensions; | |
using Sitecore; | |
using Sitecore.Configuration; | |
using Sitecore.Controls; | |
using Sitecore.Data; | |
using Sitecore.Mvc.Extensions; | |
using Sitecore.Resources.Media; | |
using Sitecore.Shell.Applications.ContentEditor; |
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 Sitecore; | |
using Sitecore.Data.Items; | |
using Sitecore.Exceptions; | |
using Sitecore.Globalization; | |
using Sitecore.IO; | |
using Sitecore.Resources.Media; | |
using Sitecore.Shell; | |
using Sitecore.Shell.Applications.Dialogs.MediaBrowser; | |
using Sitecore.Shell.Framework; | |
using Sitecore.Shell.Framework.Commands; |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<xamlControls | |
xmlns:x="http://www.sitecore.net/xaml" | |
xmlns:ajax="http://www.sitecore.net/ajax" | |
xmlns:rest="http://www.sitecore.net/rest" | |
xmlns:javascript="http://www.sitecore.net/javascript" | |
xmlns:r="http://www.sitecore.net/renderings" | |
xmlns:xmlcontrol="http://www.sitecore.net/xmlcontrols" | |
xmlns:p="http://schemas.sitecore.net/Visual-Studio-Intellisense" | |
xmlns:asp="http://www.sitecore.net/microsoft/webcontrols" |
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
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<controlSources> | |
<source mode="on" namespace="Paragon.Foundation.LivePhoto.ContentEditor.Fields" assembly="Paragon.Foundation.LivePhoto" prefix="paragon" /> | |
</controlSources> | |
<pipelines> | |
<renderField> | |
<processor type="Paragon.Foundation.LivePhoto.Pipelines.RenderField.GetLivePhotoValue,Paragon.Foundation.LivePhoto" | |
patch:after="processor[@type='Sitecore.Pipelines.RenderField.GetImageFieldValue, Sitecore.Kernel']" /> |