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.ComponentModel.DataAnnotations; | |
using EPiServer.Core; | |
using EPiServer.DataAnnotations; | |
using Netcel.Optimizely.Domain.Groups; | |
using Netcel.Optimizely.Domain.Models.Blocks.Base; | |
using Netcel.Optimizely.Rendering.Attributes; | |
using Netcel.Optimizely.Rendering; | |
using EPiServer.Web; | |
using EPiServer.SpecializedProperties; | |
using Netcel.Optimizely.Domain.Attributes; |
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
namespace Netcel.Optimizely.Domain.Attributes; | |
[AttributeUsage(AttributeTargets.Property)] | |
public class ImageSizesAttribute : Attribute | |
{ | |
public string Sizes { get; set; } | |
} | |
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] | |
public class ImageSizeAttribute : Attribute |
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 EPiServer.Core | |
@using Netcel.Optimizely.Core.Extensions.Helpers | |
@using Netcel.Optimizely.Core.TagHelpers | |
@model PromoBlock | |
<div class="promoBlockWrap"> | |
@if (Model.PromoImage != null) | |
{ | |
<div class="image" @Html.EditAttributes(x=>x.PromoImage)> | |
<img image-for="@Model.PromoImage" css-class="promoBlockImage" fit="cover" FlexibleAttribute="Goes Here"/> |
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.Reflection; | |
using EPiServer.Core; | |
using EPiServer.Web.Routing; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Mvc.ViewFeatures; | |
using Microsoft.AspNetCore.Razor.TagHelpers; | |
using Microsoft.Extensions.Hosting; | |
using Netcel.Optimizely.Core.Interfaces; | |
using Netcel.Optimizely.Domain.Attributes; | |
using Netcel.Optimizely.Domain.Models.Interfaces; |