@using Nop.Core.Domain.Seo @using Nop.Core.Infrastructure @using Nop.Web.Models.Topics; @{ var isPopup = ViewBag.IsPopup; if (isPopup == null || isPopup == false) { Layout = "~/Views/Shared/_ColumnsOne.cshtml"; } else { /*pop-up windows*/ Layout = "~/Views/Shared/_RootPopup.cshtml"; } if (!Model.IsPasswordProtected) { Html.AddTitleParts(!String.IsNullOrEmpty(Model.MetaTitle) ? Model.MetaTitle : Model.Title); Html.AddMetaDescriptionParts(Model.MetaDescription); Html.AddMetaKeywordParts(Model.MetaKeywords); } var canonicalUrlsEnabled = EngineContext.Current.Resolve ().CanonicalUrlsEnabled; if (canonicalUrlsEnabled) { var topicUrl = Url.RouteUrl("Topic", new { SeName = Model.SeName }, this.Request.Url.Scheme); Html.AddCanonicalUrlParts(topicUrl); } } @if (Model.IsPasswordProtected) { // For popup topics, use a minimal layout that includes the Ajax and jQuery scripts if (isPopup != null && isPopup == true) { Layout = "~/Views/Shared/_RootPopup.cshtml"; }
@using (Html.BeginRouteForm("TopicAuthenticate")) { @Html.HiddenFor(model => model.Id)
@T("Topic.EnterPassword")
@Html.Password("password")
}
}
@Html.Raw(Model.Body)