@using Dynamicweb.Frontend @using System.Reflection @using Dynamicweb.Content.Items @using System.Web.UI.HtmlControls @using Dynamicweb.Rapido.Blocks.Components @using Dynamicweb.Rapido.Blocks @* Components for the articles - Remeber to make a NZ copy of this template - and change line NZheader.cshtml to @Include("NZHeader.cshtml") *@ @Include("Articles/Banner.cshtml") @Include("Articles/NZHeader.cshtml") @Include("Articles/BodyRow.cshtml") @Include("Articles/Image.cshtml") @Include("Articles/SubHeader.cshtml") @Include("Articles/Text.cshtml") @Include("Articles/NZQuote.cshtml") @Include("Articles/InfoTable.cshtml") @Include("Articles/GalleryModal.cshtml") @Include("Articles/NZRelated.cshtml") @Include("Articles/Menu.cshtml") @Include("Articles/List.cshtml") @Include("Articles/Summary.cshtml") @Include("Articles/ListCategoryFilter.cshtml") @Include("Articles/ListFilter.cshtml") @Include("Articles/ListSearch.cshtml") @Include("Articles/ListNoResultsInfo.cshtml") @Include("Articles/ListItem.cshtml") @Include("Articles/AuthorAndDate.cshtml") @Include("Articles/Link.cshtml") @Include("Articles/Carousel.cshtml") @Include("Articles/Video.cshtml") @if (PageView.Current().Page.ID != 10) { @Include("Articles/NZArticleSchemaMarkup.cshtml") } @* Simple helpers *@@*Requires the Gallery ItemType that comes with Rapido*@ @helper RenderArticleItemGallery(IList gallery) { if (gallery != null && gallery.Count > 0) { int count = 1; foreach (var item in gallery) { if (item.GetFile("ImagePath") != null) { string image = item.GetFile("ImagePath").PathUrlEncoded; string imagePrefix = "/Admin/Public/GetImage.ashx?width=1200&height=820&crop=5&Compression=75&DoNotUpscale=1&image="; int imagesCount = gallery.Count; if (count == 1) { } else { } count++; } } } } @helper RenderArticleItemGalleryModal() { } @helper RenderMobileFilters(List subBlocks) { if (subBlocks.Count > 0) {
@RenderBlockList(subBlocks)
} }