Skip to content

Instantly share code, notes, and snippets.

@sitefinitysteve
Last active January 18, 2018 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitefinitysteve/ce91b9ead133be0bddc55d27fa96b30f to your computer and use it in GitHub Desktop.
Save sitefinitysteve/ce91b9ead133be0bddc55d27fa96b30f to your computer and use it in GitHub Desktop.
@model Telerik.Sitefinity.Frontend.ContentBlock.Mvc.Models.IContentBlockModel
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@if(Model.Content.Contains("something to check")){
@Html.Script(Url.WidgetContent("~/myfolder/myscript.min.js"), "bottom")
}
<div class="@Model.WrapperCssClass" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType, Model.SharedContentID)>
<div @Html.InlineEditingFieldAttributes("Content", "LongText")>
@Html.HtmlSanitize(Model.Content)
</div>
@{
if (Model.EnableSocialSharing)
{
@Html.SocialShareOptions(null);
}
}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment