Permalink
Browse files

Upgrade to Sitefinity 10.2.6600.0

  • Loading branch information...
nader-dab committed Nov 16, 2017
1 parent d4d2f92 commit 0761a0ce4950faf1ce419da1e6169427ad9bf0aa
@@ -1,24 +1,29 @@
@model Telerik.Sitefinity.Frontend.Blogs.Mvc.Models.Blog.BlogDetailsViewModel
@model Telerik.Sitefinity.Frontend.Mvc.Models.ContentDetailsViewModel
@using Telerik.Sitefinity;
@using Telerik.Sitefinity.Frontend.Blogs.Mvc.Helpers;
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Web.DataResolving;
<div class="@Model.CssClass" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)>
<h3>
<div class="@Model.CssClass news_item" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)>
<h1>
<span @Html.InlineEditingFieldAttributes("Title", "ShortText")>@Model.Item.Fields.Title</span>
</h3>
<p class="text-muted">@string.Format(Html.Resource("PostsCount"), Model.PostsCount)</p>
@{
var lastPostDate = Model.Item.GetLastPostDate();
if (lastPostDate!=null && lastPostDate.HasValue)
{
<p class="text-muted">@Html.Resource("LastPost") : @lastPostDate.Value.ToShortDateString() </p>
}
}
</h1>
<div @Html.InlineEditingFieldAttributes("Description", "LongText")>@Html.HtmlSanitize((string)Model.Item.Fields.Description)</div>
<div class="text-muted">
@Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(@Model.Item.DataItem, "Author", null)
@Html.CommentsCount(string.Empty, @Model.Item.DataItem)
</div>
<div class="news_summary" @Html.InlineEditingFieldAttributes("Summary", "LongText")>@Html.Raw(Model.Item.Fields.Summary)</div>
<div @Html.InlineEditingFieldAttributes("Content", "LongText")>@Html.Raw(Model.Item.Fields.Content)</div>
@if (Model.EnableSocialSharing)
{
@Html.SocialShareOptions()
}
@Html.CommentsList(@Model.Item.DataItem)
</div>
@@ -12,35 +12,35 @@
@foreach (var item in Model.Items)
{
var navigateUrl = HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);
var navigateUrl = HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);
<li class="news_item" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id)>
<h3>
<a @Html.InlineEditingFieldAttributes("Title", "ShortText") href="@navigateUrl">@item.Fields.Title</a>
</h3>
<li class="news_item" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id)>
<h3>
<a @Html.InlineEditingFieldAttributes("Title", "ShortText" ) href="@navigateUrl">@item.Fields.Title</a>
</h3>
<div class="text-muted">
@item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(item.DataItem, "Author", null)
@Html.CommentsCount((string)navigateUrl, item.DataItem)
</div>
<div class="text-muted">
@item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(item.DataItem, "Author", null)
@Html.CommentsCount((string)navigateUrl, item.DataItem)
</div>
<div @Html.InlineEditingFieldAttributes("Summary", "ShortText")>@Html.Raw(item.Fields.Summary)</div>
<div @Html.InlineEditingFieldAttributes("Summary", "ShortText" )>@Html.Raw(item.Fields.Summary)</div>
<a href="@navigateUrl">@Html.Resource("FullStory")</a>
</li>
<a href="@navigateUrl">@Html.Resource("FullStory")</a>
</li>
}
</ul>
@if (Model.ShowPager)
{
@Html.Action("Index", "ContentPager", new
{
currentPage = Model.CurrentPage,
totalPagesCount = Model.TotalPagesCount.Value,
redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
})
@Html.Action("Index", "ContentPager", new
{
currentPage = Model.CurrentPage,
totalPagesCount = Model.TotalPagesCount.Value,
redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
})
}
</div>
</div>
@@ -2,33 +2,30 @@
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Services;
@using Telerik.Sitefinity.Modules.Pages;
@Html.Script(ScriptRef.JQuery, "top", false)
<div class="@Model.CssClass sf-lang-selector">
<label>
@Html.Resource("Language")
@if (SystemManager.IsDesignMode)
{
@:<select>
@:<select class="language_select">
}
else
{
@:<select onChange="openLink(value)">
@:<select class="language_select" onChange="openLink(value)">
}
@if (!Model.IncludeCurrentLanguage)
@if (!Model.IncludeCurrentLanguage)
{
<option value="" selected="selected">@Html.Resource("SelectLanguageDropDownOption")</option>
}
<option value="" selected="selected">@Html.Resource("SelectLanguageDropDownOption")</option>
}
@foreach (var language in Model.Languages)
@foreach (var language in Model.Languages)
{
<option value="@language.Culture" @(language.Culture == Model.CurrentLanguage ? "selected=selected" : "")>@language.DisplayName</option>
}
</select>
</label>
<option value="@language.Culture" @(language.Culture == Model.CurrentLanguage ? "selected=selected" : "")>@language.DisplayName</option>
}
</select>
</label>
</div>
@Html.Script(Url.WidgetContent("Mvc/Scripts/LanguageSelector/language-selector.js"), "bottom", false)
@@ -3,30 +3,35 @@
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Telerik.Sitefinity.Web.DataResolving;
<div class="@Model.CssClass" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)>
<h3>
<span @Html.InlineEditingFieldAttributes("Title", "ShortText")>@Model.Item.Fields.Title</span>
</h3>
<div class="@Model.CssClass news_item" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)>
<h1>
<span @Html.InlineEditingFieldAttributes("Title", "ShortText")>@Model.Item.Fields.Title</span>
</h1>
<div>
@Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(@Model.Item.DataItem, "Author", null)
@Html.CommentsCount(string.Empty, @Model.Item.DataItem)
<span class="text-muted">
@Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")
@Html.Resource("By")
@DataResolver.Resolve(@Model.Item.DataItem, "Author", null)
</span>
@Html.CommentsCount("", @Model.Item.DataItem)
</div>
<div @Html.InlineEditingFieldAttributes("Summary", "LongText")>@Html.HtmlSanitize((string)Model.Item.Fields.Summary)</div>
<div class="news_image">
@if (@Model.Item.Fields.Thumbnail != null)
{
<img src="@Model.Item.Fields.Thumbnail.Fields.MediaUrl" />}
</div>
<div class="news_summary" @Html.InlineEditingFieldAttributes("Summary", "LongText")>@Html.Raw(Model.Item.Fields.Summary)</div>
<div @Html.InlineEditingFieldAttributes("Content", "LongText")>@Html.Raw(Model.Item.Fields.Content)</div>
<div @Html.InlineEditingFieldAttributes("Content", "LongText")>@Html.HtmlSanitize((string)Model.Item.Fields.Content)</div>
@{
if (Model.EnableSocialSharing)
{
var item = Model.Item.DataItem as Telerik.Sitefinity.Model.IHasTitle;
@Html.SocialShareOptions(item);
}
@if (Model.EnableSocialSharing)
{
var item = Model.Item.DataItem as Telerik.Sitefinity.Model.IHasTitle;
@Html.SocialShareOptions(item)
}
@Html.CommentsList(@Model.Item.DataItem)
@@ -38,16 +38,16 @@
"insertUnorderedList", "insertOrderedList", "indent", "outdent",
{
name: "createLink",
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openLinkSelector()\"><span class=\"k-tool-icon k-createLink\"></span></a>"
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openLinkSelector()\" title=\"@(Res.Get<ClientComponentsResources>().InsertHyperlink)\"><span class=\"k-tool-icon k-icon k-i-link-horizontal\"></span></a>"
},
"unlink",
{
name: "insertImage",
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openImageSelector()\"><span class=\"k-tool-icon k-insertImage\"></span></a>"
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openImageSelector()\" title=\"@(Res.Get<ClientComponentsResources>().InsertImage)\"><span class=\"k-tool-icon k-icon k-i-image\"></span></a>"
},
{
name: "insertFile",
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openDocumentSelector()\"><span class=\"k-tool-icon k-insertFile\"></span></a>"
template: "<a href=\"\" class=\"k-tool k-group-start\" ng-click=\"openDocumentSelector()\" title=\"@(Res.Get<ClientComponentsResources>().InsertFile)\"><span class=\"k-tool-icon k-icon k-i-attachment\"></span></a>"
},
{
name: "insertVideo",
@@ -80,5 +80,4 @@
existing-scope="true"
window-class="sf-designer-dlg sf-timespan-selector-dlg sf-backend-wrp"
dialog-controller="{{sfMediaPropertiesController}}">
</div>
</div>

0 comments on commit 0761a0c

Please sign in to comment.