private static string ConstructSamePageUrl(ItemViewModel item) { var appRelativeUrl = DataResolver.Resolve(item.DataItem, "URL"); var url = UrlPath.ResolveUrl(appRelativeUrl, true); return(url); }
public static string GetDetailPageUrl(ItemViewModel item, Guid detailsPageId, bool openInSamePage) { string url; if (openInSamePage) { var appRelativeUrl = DataResolver.Resolve(item.DataItem, "URL"); url = UrlPath.ResolveUrl(appRelativeUrl, true); } else { url = HyperLinkHelpers.GetDetailPageUrl(item.DataItem, detailsPageId); } return(url); }
public static string GetDetailPageUrl(ItemViewModel item, Guid detailsPageId, bool openInSamePage, string urlKeyPrefix) { string url; if (openInSamePage) { url = DataResolver.Resolve(item.DataItem, "URL", urlKeyPrefix); } else { url = DataResolver.Resolve(item.DataItem, "URL", null, detailsPageId.ToString()); } url = url.Replace("//", "/"); return(UrlPath.ResolveUrl(url, true)); }
/// <summary> /// Handles the ItemDataBound event of the RadRotator1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Telerik.Web.UI.RadRotatorEventArgs"/> instance containing the event data.</param> protected void RadRotator1_ItemDataBound(object sender, RadRotatorEventArgs e) { var link = e.Item.FindControl("newsLink") as HyperLink; var image = e.Item.FindControl("newsImage") as Image; var imageBackgroundPanel = e.Item.FindControl("ImageBackgroundPanel") as Panel; var title = e.Item.FindControl("newsTitle") as Label; var text = e.Item.FindControl("newsText") as Label; NewsItem newsItem = (NewsItem)TypeDescriptor.GetProperties(e.Item.DataItem)["NewsItem"].GetValue(e.Item.DataItem); Telerik.Sitefinity.Libraries.Model.Image newsImage = (Telerik.Sitefinity.Libraries.Model.Image)TypeDescriptor.GetProperties(e.Item.DataItem)["NewsImage"].GetValue(e.Item.DataItem); if (image != null) { image.ImageUrl = newsImage.MediaUrl; } if (imageBackgroundPanel != null) { imageBackgroundPanel.BackImageUrl = newsImage.MediaUrl; } if (title != null) { title.Text = newsItem.Title; } if (text != null) { text.Text = newsItem.Summary; } if (link != null && this.TargetNewsPage != null) { link.NavigateUrl = DataResolver.Resolve(newsItem, "URL", null, this.TargetNewsPage.Id.ToString()); } var wrapperDiv = e.Item.FindControl("wrapperDiv") as Panel; if (wrapperDiv != null) { wrapperDiv.Width = this.Width; wrapperDiv.Height = this.Height; } }
public static string GetDetailPageUrl(ItemViewModel item, Guid detailsPageId, bool openInSamePage, string urlKeyPrefix, int itemIndex) { string url; if (openInSamePage) { url = DataResolver.Resolve(item.DataItem, "URL", urlKeyPrefix); } else { url = DataResolver.Resolve(item.DataItem, "URL", null, detailsPageId.ToString()); } url = url + "?itemIndex=" + itemIndex; url = RemoveDoubleSlash(url); return(UrlPath.ResolveUrl(url, true)); }
private static void getRowData(SqlDataReader dataReader, REF.Metadata metadata, ICollection <Row> Rows) { var row = new Row(); foreach (var column in metadata.Columns) { if (dataReader.IsDBNull(column.ColumnIndex)) { row.Add(column.ColumnName, null); } else { DataResolver.Resolve(column.ColumnDataType, dataReader, row, column.ColumnName, column.ColumnIndex); } } Rows.Add(row); }
public override void Execute() { WriteLiteral("\n<div"); WriteAttribute("class", Tuple.Create(" class=\"", 169), Tuple.Create("\"", 192) #line 6 "..\..MVC\Views\News\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 177), Tuple.Create <System.Object, System.Int32>(Model.CssClass #line default #line hidden , 177), false) ); WriteLiteral(" "); #line 6 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)); #line default #line hidden WriteLiteral(">\n <h3>\n <span "); #line 8 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Title", "ShortText")); #line default #line hidden WriteLiteral(">"); #line 8 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Model.Item.Fields.Title); #line default #line hidden WriteLiteral("</span>\n\n </h3>\n\n <div>\n"); WriteLiteral(" "); #line 13 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 14 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.Resource("By")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 15 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null)); #line default #line hidden WriteLiteral("\n\n"); WriteLiteral(" "); #line 17 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.CommentsCount(string.Empty, @Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n </div>\n\n <div "); #line 20 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Summary", "LongText")); #line default #line hidden WriteLiteral(">"); #line 20 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.Raw(Model.Item.Fields.Summary)); #line default #line hidden WriteLiteral("</div>\n\n <div "); #line 22 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Content", "LongText")); #line default #line hidden WriteLiteral(">"); #line 22 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.Raw(Model.Item.Fields.Content)); #line default #line hidden WriteLiteral("</div>\n\n"); #line 24 "..\..MVC\Views\News\Detail.DetailPage.cshtml" #line default #line hidden #line 24 "..\..MVC\Views\News\Detail.DetailPage.cshtml" if (Model.EnableSocialSharing) { var item = Model.Item.DataItem as Telerik.Sitefinity.Model.IHasTitle; #line default #line hidden #line 28 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.SocialShareOptions(item)); #line default #line hidden #line 28 "..\..MVC\Views\News\Detail.DetailPage.cshtml" ; } #line default #line hidden WriteLiteral("\n\n"); WriteLiteral(" "); #line 32 "..\..MVC\Views\News\Detail.DetailPage.cshtml" Write(Html.CommentsList(@Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n</div>"); }
public static string GetDetailPageUrl(IDataItem item, Guid detailsPageId) { string url = DataResolver.Resolve(item, "URL", null, detailsPageId.ToString()); return(UrlPath.ResolveUrl(url, true)); }
public override void Execute() { WriteLiteral("\n<div"); WriteAttribute("class", Tuple.Create(" class=\"", 266), Tuple.Create("\"", 289) #line 8 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 274), Tuple.Create <System.Object, System.Int32>(Model.CssClass #line default #line hidden , 274), false) ); WriteLiteral(" "); #line 8 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)); #line default #line hidden WriteLiteral(">\n <figure"); WriteAttribute("aria-labelledby", Tuple.Create(" aria-labelledby=\"", 409), Tuple.Create("\"", 457) #line 9 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 427), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("ImageCaption") #line default #line hidden , 427), false) ); WriteLiteral("> \n <figcaption"); WriteLiteral(" class=\"h2\""); WriteAttribute("id", Tuple.Create(" id=\"", 494), Tuple.Create("\"", 529) #line 10 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 499), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("ImageCaption") #line default #line hidden , 499), false) ); WriteLiteral(" "); #line 10 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Title", "ShortText")); #line default #line hidden WriteLiteral(">"); #line 10 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Model.Item.Fields.Title); #line default #line hidden WriteLiteral("</figcaption> \n <div"); WriteLiteral(" class=\"text-muted\""); WriteLiteral(">\n <span"); WriteLiteral(" class=\"sr-only\""); WriteLiteral(">"); #line 12 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.Resource("ImageTakenOn")); #line default #line hidden WriteLiteral(" </span>\n"); WriteLiteral(" "); #line 13 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 14 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.Resource("By")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 15 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null)); #line default #line hidden WriteLiteral("\n </div>\n\n"); WriteLiteral(" "); #line 18 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.CommentsCount(string.Empty, @Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n \n <p"); WriteAttribute("id", Tuple.Create(" id=\"", 1024), Tuple.Create("\"", 1063) #line 20 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 1029), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("ImageDescription") #line default #line hidden , 1029), false) ); WriteLiteral(" "); #line 20 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Description", "LongText")); #line default #line hidden WriteLiteral(">"); #line 20 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.HtmlSanitize((string)Model.Item.Fields.Description)); #line default #line hidden WriteLiteral("</p>\n <img"); WriteAttribute("aria-describedby", Tuple.Create(" aria-describedby=\"", 1201), Tuple.Create("\"", 1254) #line 21 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 1220), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("ImageDescription") #line default #line hidden , 1220), false) ); WriteAttribute("src", Tuple.Create(" src=\"", 1255), Tuple.Create("\"", 1286) #line 21 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 1261), Tuple.Create <System.Object, System.Int32>(Html.Raw(Model.MediaUrl) #line default #line hidden , 1261), false) ); WriteAttribute("alt", Tuple.Create(" alt=\'", 1287), Tuple.Create("\'", 1391) #line 21 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 1293), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(Model.Item.Fields.AlternativeText, @"[^\w\d_-]", "") #line default #line hidden , 1293), false) ); WriteLiteral("\n "); #line 22 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.GetWidthAttributeIfExists(Model.Width)); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 23 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.GetHeightAttributeIfExists(Model.Height)); #line default #line hidden WriteLiteral(" />\n </figure>\n\n"); #line 26 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 26 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" if (ViewBag.ItemIndex != null) { #line default #line hidden WriteLiteral(" <nav"); WriteLiteral(" role=\"navigation\""); WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 1601), Tuple.Create("\"", 1649) #line 28 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 1614), Tuple.Create <System.Object, System.Int32>(Html.Resource("PreviousNextImage") #line default #line hidden , 1614), false) ); WriteLiteral(" class=\"text-center clearfix\""); WriteLiteral(">\n"); #line 29 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 29 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" var previousItemIndex = ViewBag.ItemIndex == 1 ? Model.TotalItemsCount : ViewBag.ItemIndex - 1; var nextItemIndex = ViewBag.ItemIndex == Model.TotalItemsCount ? 1 : ViewBag.ItemIndex + 1; #line default #line hidden WriteLiteral("\n\n"); #line 34 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 34 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" if (Model.PreviousItem != null) { #line default #line hidden WriteLiteral(" <a"); WriteLiteral(" class=\"sf-Gallery-prev--simple\""); WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 2042), Tuple.Create("\"", 2090) #line 36 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 2055), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToPreviousImage") #line default #line hidden , 2055), false) ); WriteAttribute("href", Tuple.Create(" href=\"", 2091), Tuple.Create("\"", 2240) #line 36 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 2098), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.PreviousItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, previousItemIndex) #line default #line hidden , 2098), false) ); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 37 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.Resource("PreviousImage")); #line default #line hidden WriteLiteral("\r\n </a>\r\n"); #line 39 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" } #line default #line hidden WriteLiteral("\n"); #line 41 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 41 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" if (Model.PreviousItem != null || @Model.NextItem != null) { string.Format(@Html.Resource("IndexOfTotal"), @ViewBag.ItemIndex, @Model.TotalItemsCount); } #line default #line hidden WriteLiteral("\n"); #line 46 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 46 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" if (Model.NextItem != null) { #line default #line hidden WriteLiteral(" <a"); WriteLiteral(" class=\"sf-Gallery-next--simple\""); WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 2648), Tuple.Create("\"", 2692) #line 48 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 2661), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToNextImage") #line default #line hidden , 2661), false) ); WriteAttribute("href", Tuple.Create(" href=\"", 2693), Tuple.Create("\"", 2834) #line 48 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 2700), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.NextItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, nextItemIndex) #line default #line hidden , 2700), false) ); WriteLiteral(">\n"); WriteLiteral(" "); #line 49 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.Resource("NextImage")); #line default #line hidden WriteLiteral("\n </a>\n"); #line 51 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" } #line default #line hidden WriteLiteral(" </nav>\n"); #line 53 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" #line default #line hidden #line 54 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.ActionLink(Html.Resource("BackToAllImages"), "Index")); #line default #line hidden #line 54 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" } #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 57 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml" Write(Html.CommentsList(@Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n\n</div>"); }
public override void Execute() { WriteLiteral("\n<div"); WriteAttribute("class", Tuple.Create(" class=\"", 196), Tuple.Create("\"", 219) #line 7 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" , Tuple.Create(Tuple.Create("", 204), Tuple.Create <System.Object, System.Int32>(Model.CssClass #line default #line hidden , 204), false) ); WriteLiteral(" "); #line 7 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)); #line default #line hidden WriteLiteral(">\n <h3>\n <span "); #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Title", "ShortText")); #line default #line hidden WriteLiteral(">"); #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Model.Item.Fields.Title); #line default #line hidden WriteLiteral("</span>\n </h3>\n\n <div>\n"); WriteLiteral(" "); #line 13 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 14 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.Resource("By")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 15 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null)); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.CommentsCount(string.Empty, @Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n </div>\n \n <div "); #line 19 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Summary", "LongText")); #line default #line hidden WriteLiteral(">"); #line 19 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.HtmlSanitize((string)Model.Item.Fields.Summary)); #line default #line hidden WriteLiteral("</div>\n\n <div "); #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.InlineEditingFieldAttributes("Content", "LongText")); #line default #line hidden WriteLiteral(">"); #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.HtmlSanitize((string)Model.Item.Fields.Content)); #line default #line hidden WriteLiteral("</div>\n\n"); WriteLiteral(" "); #line 23 "..\..\ResourcePackages\Bootstrap4\MVC\Views\BlogPost\Detail.DetailPage.cshtml" Write(Html.CommentsList(@Model.Item.DataItem)); #line default #line hidden WriteLiteral("\n</div>"); }
public override void Execute() { WriteLiteral("\n<div"); WriteAttribute("class", Tuple.Create(" class=\"", 190), Tuple.Create("\"", 213) #line 6 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" , Tuple.Create(Tuple.Create("", 198), Tuple.Create <System.Object, System.Int32>(Model.CssClass #line default #line hidden , 198), false) ); WriteLiteral(">\n\n <h1>\n"); WriteLiteral(" "); #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Model.Item.Fields.Title); #line default #line hidden WriteLiteral("\n </h1>\n\n <div"); WriteLiteral(" class=\"text-muted\""); WriteLiteral(">\n"); WriteLiteral(" "); #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Html.Resource("By")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 15 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null)); #line default #line hidden WriteLiteral("\n </div>\n\n <div>\n"); WriteLiteral(" "); #line 19 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Model.Item.Fields.Description); #line default #line hidden WriteLiteral("\n </div>\n\n <div>\n <a"); WriteAttribute("href", Tuple.Create(" href=\"", 565), Tuple.Create("\"", 599) #line 23 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" , Tuple.Create(Tuple.Create("", 572), Tuple.Create <System.Object, System.Int32>(Model.Item.Fields.MediaUrl #line default #line hidden , 572), false) ); WriteLiteral(" target=\"_blank\""); WriteLiteral(">Download</a>\n ("); #line 24 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Model.Extension); #line default #line hidden WriteLiteral(")\n <span>"); #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Math.Ceiling((double)Model.Item.Fields.TotalSize / 1024) + " KB"); #line default #line hidden WriteLiteral("</span>\n </div> \n \n"); #line 28 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" #line default #line hidden #line 28 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" if (Model.EnableSocialSharing) { var item = Model.Item.DataItem as Telerik.Sitefinity.Model.IHasTitle; #line default #line hidden #line 32 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" Write(Html.SocialShareOptions(item)); #line default #line hidden #line 32 "..\..\ResourcePackages\Bootstrap\MVC\Views\DocumentsList\Detail.DocumentDetails.cshtml" ; } #line default #line hidden WriteLiteral("\n</div>"); }
public override void Execute() { WriteLiteral("\n"); #line 8 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.Script(ScriptRef.JQuery, "top", false)); #line default #line hidden WriteLiteral("\n\n<div"); WriteAttribute("class", Tuple.Create(" class=\"", 280), Tuple.Create("\"", 303) #line 10 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" , Tuple.Create(Tuple.Create("", 288), Tuple.Create <System.Object, System.Int32>(Model.CssClass #line default #line hidden , 288), false) ); WriteLiteral(">\n <ul"); WriteLiteral(" class=\"list-unstyled\""); WriteLiteral(">\n\n"); #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" #line default #line hidden #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" foreach (var item in Model.Items) { var navigateUrl = HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix); #line default #line hidden WriteLiteral(" <li "); #line 17 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id)); #line default #line hidden WriteLiteral(">\n <h3>\n <a "); #line 19 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.InlineEditingFieldAttributes("Title", "ShortText")); #line default #line hidden WriteLiteral(" href=\""); #line 19 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(navigateUrl); #line default #line hidden WriteLiteral("\">"); #line 19 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(item.Fields.Title); #line default #line hidden WriteLiteral("</a>\n </h3>\n\n\n <div"); WriteLiteral(" class=\"text-muted\""); WriteLiteral(">\n"); WriteLiteral(" "); #line 24 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.Resource("By")); #line default #line hidden WriteLiteral("\n"); WriteLiteral(" "); #line 26 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(DataResolver.Resolve(item.DataItem, "Author", null)); #line default #line hidden WriteLiteral("\n"); WriteLiteral("\t\t\t\t\t"); #line 27 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.CommentsCount((string)navigateUrl, item.DataItem)); #line default #line hidden WriteLiteral("\n </div>\n\n <div "); #line 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.InlineEditingFieldAttributes("Summary", "ShortText")); #line default #line hidden WriteLiteral(">"); #line 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.HtmlSanitize((string)item.Fields.Summary)); #line default #line hidden WriteLiteral("</div>\n\n <a"); WriteAttribute("href", Tuple.Create(" href=\"", 1283), Tuple.Create("\"", 1302) #line 32 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" , Tuple.Create(Tuple.Create("", 1290), Tuple.Create <System.Object, System.Int32>(navigateUrl #line default #line hidden , 1290), false) ); WriteLiteral(">"); #line 32 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.Resource("FullStory")); #line default #line hidden WriteLiteral("</a>\n </li>\n"); #line 34 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" } #line default #line hidden WriteLiteral(" </ul>\n\n"); #line 37 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" #line default #line hidden #line 37 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" if (Model.ShowPager) { #line default #line hidden #line 39 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" Write(Html.Action("Index", "ContentPager", new { currentPage = Model.CurrentPage, totalPagesCount = Model.TotalPagesCount.Value, redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate })); #line default #line hidden #line 44 "..\..\ResourcePackages\Bootstrap\MVC\Views\BlogPost\List.BlogPostList.cshtml" } #line default #line hidden WriteLiteral("</div>\n"); }