コード例 #1
0
        public override void Execute()
        {
            WriteLiteral("\n\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 175), Tuple.Create("\"", 198)

            #line 7 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                           , Tuple.Create(Tuple.Create("", 183), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 183), false)
                           );

            WriteLiteral(">\n\n");


            #line 9 "..\..MVC\Views\Lists\List.PagesList.cshtml"


            #line default
            #line hidden

            #line 9 "..\..MVC\Views\Lists\List.PagesList.cshtml"
            foreach (var item in Model.Items)
            {
            #line default
            #line hidden
                WriteLiteral("        <h3 ");


            #line 11 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("            ");


            #line 12 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(">\n");

                WriteLiteral("            ");


            #line 13 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("\n        </h3>\n");

                WriteLiteral("        <ul>\n");


            #line 16 "..\..MVC\Views\Lists\List.PagesList.cshtml"


            #line default
            #line hidden

            #line 16 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                foreach (var listItem in ((ListViewModel)item).ListItemViewModel.Items)
                {
                    var navigateUrl = HyperLinkHelpers.GetDetailPageUrl(listItem, Guid.Empty, true, Model.UrlKeyPrefix);



            #line default
            #line hidden
                    WriteLiteral("                <li ");


            #line 20 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                    Write(Html.InlineEditingAttributes(Model.ProviderName, ((ListViewModel)item).ListItemViewModel.ContentType.FullName, (Guid)listItem.Fields.Id));


            #line default
            #line hidden
                    WriteLiteral(">\n                    <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 901), Tuple.Create("\"", 920)

            #line 21 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 908), Tuple.Create <System.Object, System.Int32>(navigateUrl

            #line default
            #line hidden
                                                                                                                    , 908), false)
                                   );

                    WriteLiteral(" ");


            #line 21 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                    Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
                    WriteLiteral(">");


            #line 21 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                    Write(listItem.Fields.Title);


            #line default
            #line hidden
                    WriteLiteral("</a>\n\t\t\t\t\t\n");

                    WriteLiteral("                    ");


            #line 23 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                    Write(Html.CommentsCount((string)navigateUrl, listItem.DataItem));


            #line default
            #line hidden
                    WriteLiteral("\n                </li>\n");


            #line 25 "..\..MVC\Views\Lists\List.PagesList.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("        </ul>\n");


            #line 27 "..\..MVC\Views\Lists\List.PagesList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n</div>\n");
        }
        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=\"", 258), Tuple.Create("\"", 281)

            #line 8 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                           , Tuple.Create(Tuple.Create("", 266), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 266), false)
                           );

            WriteLiteral(">\n    <ul");

            WriteLiteral(" class=\"list-unstyled\"");

            WriteLiteral(">\n");


            #line 10 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"


            #line default
            #line hidden

            #line 10 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.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 14 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id));


            #line default
            #line hidden
                WriteLiteral(">\n                <h3");

                WriteLiteral(" class=\"sf-event-title\"");

                WriteLiteral(">\n                    <a ");


            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(" href=\"");


            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(navigateUrl);


            #line default
            #line hidden
                WriteLiteral("\">");


            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</a>\n                </h3>\n                <span");

                WriteLiteral(" data-calendar-color=\"");


            #line 18 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(item.EventCalendarColour());


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral("></span>\n                <p");

                WriteLiteral(" class=\"text-muted\"");

                WriteLiteral(">\n                    ");

                WriteLiteral("\n                    <time>");


            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(item.EventDates());


            #line default
            #line hidden
                WriteLiteral("</time>");


            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                if (!string.IsNullOrEmpty(item.Fields.City))
                {
            #line default
            #line hidden
                    WriteLiteral("<span>, ");


            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                    Write(item.Fields.City);


            #line default
            #line hidden
                    WriteLiteral("</span>");


            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("                </p>\n                <p ");


            #line 23 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Summary", "LongText"));


            #line default
            #line hidden
                WriteLiteral(">");


            #line 23 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.HtmlSanitize((string)item.Fields.Summary));


            #line default
            #line hidden
                WriteLiteral("</p>\n                <div");

                WriteLiteral(" class=\"sf-Comment-count--block\"");

                WriteLiteral(">");


            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.CommentsCount((string)navigateUrl, item.DataItem));


            #line default
            #line hidden
                WriteLiteral("</div>\n            </li>\n");


            #line 26 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </ul>\n\n");


            #line 29 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"


            #line default
            #line hidden

            #line 29 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 31 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 36 "..\..\ResourcePackages\Bootstrap4\MVC\Views\Event\List.EventsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\n");
        }
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n    <ul");

            WriteAttribute("class", Tuple.Create(" class=\"", 300), Tuple.Create("\"", 389)

            #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                           , Tuple.Create(Tuple.Create("", 308), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 308), false)
                           , Tuple.Create(Tuple.Create(" ", 323), Tuple.Create("sf-Gallery-thumbs", 324), true)
                           , Tuple.Create(Tuple.Create(" ", 341), Tuple.Create("sf-Gallery-thumbs--video", 342), true)
                           , Tuple.Create(Tuple.Create(" ", 366), Tuple.Create("list-unstyled", 367), true)
                           , Tuple.Create(Tuple.Create(" ", 380), Tuple.Create("clearfix", 381), true)
                           );

            WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 390), Tuple.Create("\"", 433)

            #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                           , Tuple.Create(Tuple.Create("", 403), Tuple.Create <System.Object, System.Int32>(Html.Resource("VideoGallery")

            #line default
            #line hidden
                                                                                                            , 403), false)
                           );

            WriteLiteral(">\n\n");


            #line 11 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"


            #line default
            #line hidden

            #line 11 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            for (int i = 0; i < Model.Items.Count(); i++)
            {
                var item          = Model.Items.ElementAt(i);
                var itemIndex     = (Model.CurrentPage - 1) * ViewBag.ItemsPerPage + i + 1;
                var detailPageUrl = ViewBag.OpenInSamePage ? HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex) :
                                    HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);
                var videoTitleId = Html.UniqueId("VideoTitle") + "-" + i.ToString();



            #line default
            #line hidden
                WriteLiteral("            <li");

                WriteLiteral(" class=\"sf-Gallery-thumb d-inline-block\"");

                WriteLiteral(">\n                <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1093), Tuple.Create("\"", 1114)

            #line 20 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1100), Tuple.Create <System.Object, System.Int32>(detailPageUrl

            #line default
            #line hidden
                                                                                                                 , 1100), false)
                               );

                WriteAttribute("title", Tuple.Create("\n                   title=\"", 1115), Tuple.Create("\"", 1256)
                               , Tuple.Create(Tuple.Create("", 1142), Tuple.Create("Go", 1142), true)
                               , Tuple.Create(Tuple.Create(" ", 1144), Tuple.Create("to", 1145), true)
                               , Tuple.Create(Tuple.Create(" ", 1147), Tuple.Create("video", 1148), true)

            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create(" ", 1153), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(item.Fields.Description) ? item.Fields.Title : item.Fields.Description

            #line default
            #line hidden
                                                                                                                  , 1154), false)
                               , Tuple.Create(Tuple.Create(" ", 1248), Tuple.Create("details", 1249), true)
                               );

                WriteLiteral(">\n                    <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1283), Tuple.Create("\"", 1336)

            #line 22 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1289), Tuple.Create <System.Object, System.Int32>(((VideoThumbnailViewModel)item).ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1289), false)
                               );

                WriteAttribute("aria-labelledby", Tuple.Create(" aria-labelledby=\"", 1337), Tuple.Create("\"", 1368)

            #line 22 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1355), Tuple.Create <System.Object, System.Int32>(videoTitleId

            #line default
            #line hidden
                                                                                                                 , 1355), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\'", 1369), Tuple.Create("\'", 1457)

            #line 22 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1375), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(item.Fields.Title, @"[^\w\d_-]", "")

            #line default
            #line hidden
                                                                                                                 , 1375), false)
                               );

                WriteLiteral(" />\n                </a>\n                <h3");

                WriteAttribute("id", Tuple.Create(" id=\"", 1502), Tuple.Create("\"", 1520)

            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1507), Tuple.Create <System.Object, System.Int32>(videoTitleId

            #line default
            #line hidden
                                                                                                                 , 1507), false)
                               );

                WriteLiteral(">");


            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</h3>\n            </li>\n");


            #line 26 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n    </ul>\n</div>\n");


            #line 30 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 32 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 37 "..\..\ResourcePackages\Bootstrap4\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n");
        }
コード例 #5
0
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 213), Tuple.Create("\"", 236)

            #line 7 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 221), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 221), false)
                           );

            WriteLiteral(" ");


            #line 7 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id));


            #line default
            #line hidden
            WriteLiteral(">\n    <h2>\n        <span ");


            #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
            WriteLiteral(">");


            #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Model.Item.Fields.Title);


            #line default
            #line hidden
            WriteLiteral("</span>\n    </h2>\n\n    <div");

            WriteLiteral(" class=\"text-muted\"");

            WriteLiteral(">\n");

            WriteLiteral("        ");


            #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.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\VideoGallery\Detail.Default.cshtml"
            Write(Html.Resource("By"));


            #line default
            #line hidden
            WriteLiteral("\n");

            WriteLiteral("        ");


            #line 15 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null));


            #line default
            #line hidden
            WriteLiteral("\n    </div>\n\n    <div ");


            #line 18 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.InlineEditingFieldAttributes("Description", "LongText"));


            #line default
            #line hidden
            WriteLiteral(">");


            #line 18 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.HtmlSanitize((string)Model.Item.Fields.Description));


            #line default
            #line hidden
            WriteLiteral("</div>\n\n    <video");

            WriteAttribute("src", Tuple.Create(" src=\"", 828), Tuple.Create("\"", 859)

            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 834), Tuple.Create <System.Object, System.Int32>(Html.Raw(Model.MediaUrl)

            #line default
            #line hidden
                                                                                                            , 834), false)
                           );

            WriteLiteral(" controls=\"controls\"");

            WriteAttribute("width", Tuple.Create(" width=\"", 880), Tuple.Create("\"", 900)

            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 888), Tuple.Create <System.Object, System.Int32>(Model.Width

            #line default
            #line hidden
                                                                                                            , 888), false)
                           );

            WriteAttribute("height", Tuple.Create(" height=\"", 901), Tuple.Create("\"", 923)

            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 910), Tuple.Create <System.Object, System.Int32>(Model.Height

            #line default
            #line hidden
                                                                                                            , 910), false)
                           );

            WriteLiteral("></video>\n\n");


            #line 22 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 22 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            if (ViewBag.ItemIndex != null)
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"m-bottom-lg text-center clearfix\"");

                WriteLiteral(">\n");


            #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.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 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.PreviousItem != null)
                {
            #line default
            #line hidden
                    WriteLiteral("                <a");

                    WriteLiteral(" class=\"sf-Gallery-prev--simple\"");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1392), Tuple.Create("\"", 1541)

            #line 32 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1399), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.PreviousItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, previousItemIndex)

            #line default
            #line hidden
                                                                                                                     , 1399), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                    ");


            #line 33 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.Resource("PreviousVideo"));


            #line default
            #line hidden
                    WriteLiteral("\n                </a>\n");


            #line 35 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("\n");


            #line 37 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 37 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.PreviousItem != null || Model.NextItem != null)
                {
            #line default
            #line hidden

            #line 39 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.HtmlSanitize((string)string.Format(Html.Resource("IndexOfTotal"), ViewBag.ItemIndex, Model.TotalItemsCount)));


            #line default
            #line hidden

            #line 39 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                    ;
                }


            #line default
            #line hidden
                WriteLiteral("\n");


            #line 42 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 42 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.NextItem != null)
                {
            #line default
            #line hidden
                    WriteLiteral("                <a");

                    WriteLiteral(" class=\"sf-Gallery-next--simple\"");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1970), Tuple.Create("\"", 2111)

            #line 44 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1977), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.NextItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, nextItemIndex)

            #line default
            #line hidden
                                                                                                                     , 1977), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                    ");


            #line 45 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.Resource("NextVideo"));


            #line default
            #line hidden
                    WriteLiteral("\n                </a>\n");


            #line 47 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("        </div>\n");


            #line 49 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"



            #line default
            #line hidden

            #line 50 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
                Write(Html.ActionLink(Html.Resource("BackToAllVideos"), "Index"));


            #line default
            #line hidden

            #line 50 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\Detail.Default.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>");
        }
コード例 #6
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top"));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n  <div");

            WriteAttribute("class", Tuple.Create(" class=\"", 392), Tuple.Create("\"", 433)
                           , Tuple.Create(Tuple.Create("", 400), Tuple.Create("sf-Gallery-thumbs", 400), true)

            #line 12 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 417), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 418), false)
                           );

            WriteLiteral(">\n\n");


            #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"


            #line default
            #line hidden

            #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            for (int i = 0; i < Model.Items.Count(); i++)
            {
                var item = Model.Items.ElementAt(i);
                var thumbnailViewModel = (ThumbnailViewModel)item;

                var itemIndex     = (Model.CurrentPage - 1) * ViewBag.ItemsPerPage + i + 1;
                var detailPageUrl = ViewBag.OpenInSamePage ? HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex) :
                                    HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);



            #line default
            #line hidden
                WriteLiteral("      <a");

                WriteLiteral(" class=\"text-center\"");

                WriteAttribute("href", Tuple.Create("\n             href=\"", 1003), Tuple.Create("\"", 1037)

            #line 24 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1023), Tuple.Create <System.Object, System.Int32>(detailPageUrl

            #line default
            #line hidden
                                                                                                                 , 1023), false)
                               );

                WriteAttribute("title", Tuple.Create("\n       title=\"", 1038), Tuple.Create("\"", 1147)

            #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1053), Tuple.Create <System.Object, System.Int32>(string.IsNullOrEmpty(item.Fields.Description) ? item.Fields.Title : item.Fields.Description

            #line default
            #line hidden
                                                                                                                 , 1053), false)
                               );

                WriteLiteral(">\n            <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1166), Tuple.Create("\"", 1206)

            #line 26 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1172), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1172), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\'", 1207), Tuple.Create("\'", 1305)

            #line 26 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1213), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(item.Fields.AlternativeText, @"[^\w\d_-]", "")

            #line default
            #line hidden
                                                                                                                 , 1213), false)
                               );

                WriteLiteral("\n                      ");


            #line 27 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                      ");


            #line 28 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" />\n      </a>\n");


            #line 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("  </div>\n</div>\n\n");


            #line 34 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 36 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 41 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            }


            #line default
            #line hidden
        }
コード例 #7
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 8 "..\..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 "..\..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 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"


            #line default
            #line hidden

            #line 13 "..\..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 "..\..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 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(" href=\"");


            #line 19 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(navigateUrl);


            #line default
            #line hidden
                WriteLiteral("\">");


            #line 19 "..\..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 "..\..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 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(Html.Resource("By"));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                    ");


            #line 26 "..\..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 "..\..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 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Summary", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(">");


            #line 30 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(Html.Raw(item.Fields.Summary));


            #line default
            #line hidden
                WriteLiteral("</div>\n\n                <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1266), Tuple.Create("\"", 1285)

            #line 32 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                               , Tuple.Create(Tuple.Create("", 1273), Tuple.Create <System.Object, System.Int32>(navigateUrl

            #line default
            #line hidden
                                                                                                                 , 1273), false)
                               );

                WriteLiteral(">");


            #line 32 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
                Write(Html.Resource("FullStory"));


            #line default
            #line hidden
                WriteLiteral("</a>\n            </li>\n");


            #line 34 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </ul>\n\n");


            #line 37 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"


            #line default
            #line hidden

            #line 37 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 39 "..\..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 "..\..MVC\Views\BlogPost\List.BlogPostList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\n");
        }
コード例 #8
0
        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    <h2>\n        <span ");


            #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("</span>\n    </h2>\n\n    <span");

            WriteLiteral(" class=\"text-muted\"");

            WriteLiteral(">\n");

            WriteLiteral("        ");


            #line 14 "..\..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 15 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
            Write(Html.Resource("By"));


            #line default
            #line hidden
            WriteLiteral("\n");

            WriteLiteral("        ");


            #line 16 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
            Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null));


            #line default
            #line hidden
            WriteLiteral("\n    </span>\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    <div ");


            #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.Raw(Model.Item.Fields.Description));


            #line default
            #line hidden
            WriteLiteral("</div>\n\n    <img");

            WriteAttribute("src", Tuple.Create(" src=\"", 924), Tuple.Create("\"", 955)

            #line 22 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                           , Tuple.Create(Tuple.Create("", 930), Tuple.Create <System.Object, System.Int32>(Html.Raw(Model.MediaUrl)

            #line default
            #line hidden
                                                                                                            , 930), false)
                           );

            WriteAttribute("alt", Tuple.Create(" alt=\'", 956), Tuple.Create("\'", 1060)

            #line 22 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                           , Tuple.Create(Tuple.Create("", 962), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(Model.Item.Fields.AlternativeText, @"[^\w\d_-]", "")

            #line default
            #line hidden
                                                                                                            , 962), false)
                           );

            WriteLiteral("\n                 ");


            #line 23 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
            Write(Html.GetWidthAttributeIfExists(Model.Width));


            #line default
            #line hidden
            WriteLiteral("\n");

            WriteLiteral("                 ");


            #line 24 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
            Write(Html.GetHeightAttributeIfExists(Model.Height));


            #line default
            #line hidden
            WriteLiteral(" />\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("        <div");

                WriteLiteral(" class=\"m-bottom-lg text-center\"");

                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=\"pull-left\"");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1626), Tuple.Create("\"", 1775)

            #line 36 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1633), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.PreviousItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, previousItemIndex)

            #line default
            #line hidden
                                                                                                                     , 1633), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                    ");


            #line 37 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                    Write(Html.Resource("PreviousImage"));


            #line default
            #line hidden
                    WriteLiteral("\n                </a>\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=\"pull-right\"");

                    WriteAttribute("href", Tuple.Create(" href=\"", 2167), Tuple.Create("\"", 2308)

            #line 48 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2174), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.NextItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, nextItemIndex)

            #line default
            #line hidden
                                                                                                                     , 2174), 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("        </div>\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");


            #line 57 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"


            #line default
            #line hidden

            #line 57 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"

            if (Model.EnableSocialSharing)
            {
                var item = Model.Item.DataItem as Telerik.Sitefinity.Model.IHasTitle;


            #line default
            #line hidden

            #line 61 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                Write(Html.SocialShareOptions(item));


            #line default
            #line hidden

            #line 61 "..\..MVC\Views\ImageGallery\Detail.DetailPage.cshtml"
                ;
            }


            #line default
            #line hidden
            WriteLiteral("\n\n");

            WriteLiteral("    ");


            #line 65 "..\..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");


            #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top", true));


            #line default
            #line hidden
            WriteLiteral("\n\n");


            #line 11 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.StyleSheet(Url.WidgetContent("assets/magnific/magnific-popup.css"), "head", true));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 12 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("assets/magnific/jquery.magnific-popup.min.js"), "bottom", true));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 13 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("Mvc/Scripts/ImageGallery/overlay-gallery.js"), "bottom", true));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n  <ul");

            WriteAttribute("class", Tuple.Create(" class=\"", 677), Tuple.Create("\"", 732)
                           , Tuple.Create(Tuple.Create("", 685), Tuple.Create("sf-Gallery-thumbs", 685), true)
                           , Tuple.Create(Tuple.Create(" ", 702), Tuple.Create("list-unstyled", 703), true)

            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 716), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 717), false)
                           );

            WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 733), Tuple.Create("\"", 776)

            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                           , Tuple.Create(Tuple.Create("", 746), Tuple.Create <System.Object, System.Int32>(Html.Resource("ImageGallery")

            #line default
            #line hidden
                                                                                                            , 746), false)
                           );

            WriteLiteral(">\n");


            #line 17 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"


            #line default
            #line hidden

            #line 17 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            int itemIndex = 0;

            #line default
            #line hidden
            WriteLiteral("\n");


            #line 18 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"


            #line default
            #line hidden

            #line 18 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            foreach (var item in Model.Items)
            {
                var thumbnailViewModel = (ThumbnailViewModel)item;


            #line default
            #line hidden
                WriteLiteral("        <li");

                WriteLiteral(" class=\"d-inline-block\"");

                WriteLiteral(">\n            <a");

                WriteLiteral(" class=\"text-center image-link\"");

                WriteAttribute("href", Tuple.Create("\n               href=\"", 990), Tuple.Create("\"", 1042)

            #line 23 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1012), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.MediaUrl

            #line default
            #line hidden
                                                                                                                 , 1012), false)
                               );

                WriteAttribute("title", Tuple.Create("\n               title=\"", 1043), Tuple.Create("\"", 1084)

            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1066), Tuple.Create <System.Object, System.Int32>(item.Fields.Title

            #line default
            #line hidden
                                                                                                                 , 1066), false)
                               );

                WriteAttribute("aria-label", Tuple.Create("\n               aria-label=\"", 1085), Tuple.Create("\"", 1182)

            #line 25 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1113), Tuple.Create <System.Object, System.Int32>(string.Format(Html.Resource("OpenInModalDialog"), item.Fields.Title)

            #line default
            #line hidden
                                                                                                                 , 1113), false)
                               );

                WriteLiteral(">\n                <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1205), Tuple.Create("\"", 1245)

            #line 26 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1211), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1211), false)
                               );

                WriteLiteral("\n                     data-detail-url=\"");


            #line 27 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteAttribute("alt", Tuple.Create("\n                     alt=\"", 1404), Tuple.Create("\"", 1459)

            #line 28 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1431), Tuple.Create <System.Object, System.Int32>(item.Fields.AlternativeText

            #line default
            #line hidden
                                                                                                                 , 1431), false)
                               );

                WriteLiteral("\n                     ");


            #line 29 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                     ");


            #line 30 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" ");


            #line 30 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetDetailsImageWidthAttributeIfExists(thumbnailViewModel.DetailsImageWidth));


            #line default
            #line hidden
                WriteLiteral(" />\n            </a>\n        </li>\n");


            #line 33 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                itemIndex++;
            }


            #line default
            #line hidden
            WriteLiteral("  </ul>\n</div>\n\n");


            #line 38 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 40 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 45 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            }


            #line default
            #line hidden
        }
        public override void Execute()
        {
            WriteLiteral("\n");

            WriteLiteral("\n");


            #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top", true));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            Write(Html.Script(Url.WidgetContent("Mvc/Scripts/ImageGallery/thumbnail-strip.js"), "bottom", true));


            #line default
            #line hidden
            WriteLiteral("\n\n");


            #line 16 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"

            bool    hasItems            = Model.Items.Count() > 0;
            bool    isBackendDesignMode = SystemManager.IsDesignMode && !SystemManager.IsPreviewMode;
            dynamic firstItem           = null;

            if (hasItems && isBackendDesignMode)
            {
                firstItem = Model.Items.FirstOrDefault();
            }

            ThumbnailViewModel thumbnailViewModel = (ThumbnailViewModel)firstItem;


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery sf-Gallery--strip\"");

            WriteLiteral(">\n\n");


            #line 31 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            if (hasItems)
            {
                if (isBackendDesignMode)
                {
            #line default
            #line hidden
                    WriteLiteral("\t<h2");

                    WriteLiteral(" class=\"js-Gallery-title\"");

                    WriteLiteral(">");


            #line 35 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(firstItem.DataItem.Title);


            #line default
            #line hidden
                    WriteLiteral("</h2>\n");


            #line 36 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"js-Gallery-description\"");

                    WriteLiteral(">");


            #line 37 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(firstItem.DataItem.Description);


            #line default
            #line hidden
                    WriteLiteral("</p>\n");


            #line 38 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<div><span");

                    WriteLiteral(" class=\"js-Gallery-index\"");

                    WriteLiteral(">1</span> of ");


            #line 39 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Model.Items.Count());


            #line default
            #line hidden
                    WriteLiteral("</div>\n");


            #line 40 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"sf-Gallery-image js-Gallery-image\"");

                    WriteLiteral(">\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-prev sf-Gallery-prev\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"glyphicon glyphicon-chevron-left\"");

                    WriteLiteral("></span></a>\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-next sf-Gallery-next\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"glyphicon glyphicon-chevron-right\"");

                    WriteLiteral("></span></a>\n        <img");

                    WriteAttribute("src", Tuple.Create(" src=\"", 1516), Tuple.Create("\"", 1552)

            #line 44 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1522), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.MediaUrl

            #line default
            #line hidden
                                                                                                                     , 1522), false)
                                   );

                    WriteAttribute("title", Tuple.Create(" title=\"", 1553), Tuple.Create("\"", 1586)

            #line 44 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1561), Tuple.Create <System.Object, System.Int32>(firstItem.DataItem.Title

            #line default
            #line hidden
                                                                                                                     , 1561), false)
                                   );

                    WriteAttribute("alt", Tuple.Create(" alt=\"", 1587), Tuple.Create("\"", 1628)

            #line 44 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1593), Tuple.Create <System.Object, System.Int32>(firstItem.DataItem.AlternativeText

            #line default
            #line hidden
                                                                                                                     , 1593), false)
                                   );

                    WriteLiteral(" \n                  ");


            #line 45 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                    WriteLiteral("\n");

                    WriteLiteral("                  ");


            #line 46 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                    WriteLiteral(" />\n\n\t</p>\n");


            #line 49 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                }
                else
                {
            #line default
            #line hidden
                    WriteLiteral("\t<h2");

                    WriteLiteral(" class=\"js-Gallery-title\"");

                    WriteLiteral("></h2>\n");


            #line 53 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"js-Gallery-description\"");

                    WriteLiteral("></p>\n");


            #line 55 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<div><span");

                    WriteLiteral(" class=\"js-Gallery-index\"");

                    WriteLiteral("></span> of ");


            #line 56 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Model.Items.Count());


            #line default
            #line hidden
                    WriteLiteral("</div>\n");


            #line 57 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"sf-Gallery-image js-Gallery-image\"");

                    WriteLiteral(">\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-prev sf-Gallery-prev\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"glyphicon glyphicon-chevron-left\"");

                    WriteLiteral("></span></a>\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-next sf-Gallery-next\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"glyphicon glyphicon-chevron-right\"");

                    WriteLiteral("></span></a>\n\t\t<img />\n\t</p>\n");


            #line 63 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                }
            }


            #line default
            #line hidden
            WriteLiteral("\n\n\n\t<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n\t\t<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs js-Gallery-thumbs\"");

            WriteLiteral(">\n");


            #line 70 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"


            #line default
            #line hidden

            #line 70 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            int itemIndex = 0;

            #line default
            #line hidden
            WriteLiteral("\n");


            #line 71 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"


            #line default
            #line hidden

            #line 71 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            foreach (var item in Model.Items)
            {
                var itemViewModel = (ThumbnailViewModel)item;



            #line default
            #line hidden
                WriteLiteral("\t\t\t<a");

                WriteLiteral(" class=\"text-center\"");

                WriteAttribute("title", Tuple.Create(" title=\"", 2483), Tuple.Create("\"", 2509)

            #line 75 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 2491), Tuple.Create <System.Object, System.Int32>(item.Fields.Title

            #line default
            #line hidden
                                                                                                                 , 2491), false)
                               );

                WriteLiteral(" data-item=\"");


            #line 75 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetSerializedImage(item));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(" data-detail-url=\"");


            #line 75 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">\n        <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 2704), Tuple.Create("\"", 2739)

            #line 76 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 2710), Tuple.Create <System.Object, System.Int32>(itemViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 2710), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\"", 2740), Tuple.Create("\"", 2774)

            #line 76 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 2746), Tuple.Create <System.Object, System.Int32>(item.Fields.AlternativeText

            #line default
            #line hidden
                                                                                                                 , 2746), false)
                               );

                WriteLiteral(" \n                      ");


            #line 77 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetWidthAttributeIfExists(itemViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                      ");


            #line 78 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetHeightAttributeIfExists(itemViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" />\n\t\t\t</a>\n");


            #line 80 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                itemIndex++;
            }


            #line default
            #line hidden
            WriteLiteral("\t\t</div>\n\t</div>\n</div>\n");


            #line 85 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 87 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 92 "..\..\ResourcePackages\Bootstrap\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            }


            #line default
            #line hidden
        }
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n  <ul");

            WriteAttribute("class", Tuple.Create(" class=\"", 352), Tuple.Create("\"", 407)
                           , Tuple.Create(Tuple.Create("", 360), Tuple.Create("sf-Gallery-thumbs", 360), true)
                           , Tuple.Create(Tuple.Create(" ", 377), Tuple.Create("list-unstyled", 378), true)

            #line 10 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 391), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 392), false)
                           );

            WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 408), Tuple.Create("\"", 451)

            #line 10 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                           , Tuple.Create(Tuple.Create("", 421), Tuple.Create <System.Object, System.Int32>(Html.Resource("ImageGallery")

            #line default
            #line hidden
                                                                                                            , 421), false)
                           );

            WriteLiteral(">\n\n");


            #line 12 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"


            #line default
            #line hidden

            #line 12 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            for (int i = 0; i < Model.Items.Count(); i++)
            {
                var item = Model.Items.ElementAt(i);
                var thumbnailViewModel = (ThumbnailViewModel)item;

                var itemIndex     = (Model.CurrentPage - 1) * ViewBag.ItemsPerPage + i + 1;
                var detailPageUrl = ViewBag.OpenInSamePage ? HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex) :
                                    HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);


            #line default
            #line hidden
                WriteLiteral("        <li");

                WriteLiteral(" class=\"d-inline-block\"");

                WriteLiteral(">\n            <a");

                WriteLiteral(" class=\"text-center\"");

                WriteAttribute("href", Tuple.Create("\n               href=\"", 1060), Tuple.Create("\"", 1096)

            #line 22 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1082), Tuple.Create <System.Object, System.Int32>(detailPageUrl

            #line default
            #line hidden
                                                                                                                 , 1082), false)
                               );

                WriteAttribute("title", Tuple.Create("\n               title=\"", 1097), Tuple.Create("\"", 1158)
                               , Tuple.Create(Tuple.Create("", 1120), Tuple.Create("Go", 1120), true)
                               , Tuple.Create(Tuple.Create(" ", 1122), Tuple.Create("to", 1123), true)
                               , Tuple.Create(Tuple.Create(" ", 1125), Tuple.Create("image", 1126), true)

            #line 23 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create(" ", 1131), Tuple.Create <System.Object, System.Int32>(item.Fields.Title

            #line default
            #line hidden
                                                                                                                  , 1132), false)
                               , Tuple.Create(Tuple.Create(" ", 1150), Tuple.Create("details", 1151), true)
                               );

                WriteLiteral(">\n                <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1181), Tuple.Create("\"", 1221)

            #line 24 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1187), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1187), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\'", 1222), Tuple.Create("\'", 1320)

            #line 24 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1228), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(item.Fields.AlternativeText, @"[^\w\d_-]", "")

            #line default
            #line hidden
                                                                                                                 , 1228), false)
                               );

                WriteLiteral("\n                     ");


            #line 25 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                     ");


            #line 26 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" />\n            </a>\n        </li>\n");


            #line 29 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("  </ul>\n</div>\n\n");


            #line 33 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 35 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 40 "..\..MVC\Views\ImageGallery\List.ImageGallery.cshtml"
            }


            #line default
            #line hidden
        }
コード例 #12
0
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 225), Tuple.Create("\"", 248)

            #line 7 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                           , Tuple.Create(Tuple.Create("", 233), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 233), false)
                           );

            WriteLiteral(">\n\n");


            #line 9 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"


            #line default
            #line hidden

            #line 9 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            foreach (var item in Model.Items)
            {
            #line default
            #line hidden
                WriteLiteral("\t\t\t<div");

                WriteLiteral(" class=\"media\"");

                WriteLiteral(">\n\t\t\t\t<div");

                WriteLiteral(" class=\"media-left\"");

                WriteLiteral(">\n\t\t\t\t\t<i");

                WriteLiteral(" class=\"icon-file icon-txt icon-md\"");

                WriteLiteral(">\n\t\t\t\t\t\t<span");

                WriteAttribute("class", Tuple.Create(" class=\"", 400), Tuple.Create("\"", 459)
                               , Tuple.Create(Tuple.Create("", 408), Tuple.Create("icon-txt-", 408), true)

            #line 14 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 417), Tuple.Create <System.Object, System.Int32>(((DocumentItemViewModel)item).Extension

            #line default
            #line hidden
                                                                                                                , 417), false)
                               );

                WriteLiteral(">");


            #line 14 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral("</span>\n\t\t\t\t\t</i>\n\t\t\t\t</div>\n\t\t\t\t<div");

                WriteLiteral(" class=\"media-body\"");

                WriteLiteral(">\n\t\t\t\t\t<a");

                WriteAttribute("href", Tuple.Create(" href=\"", 568), Tuple.Create("\"", 682)

            #line 18 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 575), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix)

            #line default
            #line hidden
                                                                                                                , 575), false)
                               );

                WriteLiteral(">\n\t\t\t\t\t\t\t<strong>");


            #line 19 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</strong>\n\t\t\t\t\t</a>\n\t\t\t\t\t<span");

                WriteLiteral(" class=\"text-muted\"");

                WriteLiteral(">(");


            #line 21 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral(")</span>\n\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a");

                WriteAttribute("href", Tuple.Create(" href=\"", 840), Tuple.Create("\"", 868)

            #line 24 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 847), Tuple.Create <System.Object, System.Int32>(item.Fields.MediaUrl

            #line default
            #line hidden
                                                                                                                , 847), false)
                               );

                WriteLiteral(" target=\"_blank\"");

                WriteLiteral(">Download</a>\n\t\t\t\t\t\t<span");

                WriteLiteral(" class=\"text-muted\"");

                WriteLiteral(">(");


            #line 25 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(Math.Ceiling((double)item.Fields.TotalSize / 1024) + " KB");


            #line default
            #line hidden
                WriteLiteral(")</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n");


            #line 29 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n</div>\n\n");


            #line 33 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 35 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 40 "..\..MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n\n");
        }
コード例 #13
0
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 207), Tuple.Create("\"", 230)

            #line 7 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                           , Tuple.Create(Tuple.Create("", 215), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 215), false)
                           );

            WriteLiteral(">\n    <ul");

            WriteLiteral(" class=\"list-unstyled\"");

            WriteLiteral(">\n");


            #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"


            #line default
            #line hidden

            #line 9 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.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 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)item.Fields.Id));


            #line default
            #line hidden
                WriteLiteral(">\n\t\t\t\t<h3>\n\t\t\t\t\t<a ");


            #line 15 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(" href=\"");


            #line 15 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(navigateUrl);


            #line default
            #line hidden
                WriteLiteral("\">");


            #line 15 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</a>\n\t\t\t\t</h3>\n                \n                <div>\n\t\t\t\t    <span");

                WriteLiteral(" class=\"text-muted\"");

                WriteLiteral(">\n");

                WriteLiteral("\t\t\t\t\t    ");


            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt"));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("\t\t\t\t\t    ");


            #line 21 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.Resource("By"));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("\t\t\t\t\t    ");


            #line 22 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(DataResolver.Resolve(item.DataItem, "Author", null));


            #line default
            #line hidden
                WriteLiteral("\n\t\t\t\t    </span>\n");

                WriteLiteral("                    ");


            #line 24 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.CommentsCount((string)navigateUrl, item.DataItem));


            #line default
            #line hidden
                WriteLiteral("\n                </div>\n\n\t\t\t\t<div ");


            #line 27 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.InlineEditingFieldAttributes("Summary", "ShortText"));


            #line default
            #line hidden
                WriteLiteral(">");


            #line 27 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.HtmlSanitize((string)item.Fields.Summary));


            #line default
            #line hidden
                WriteLiteral("</div>\n\n\t\t\t\t<a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1193), Tuple.Create("\"", 1212)

            #line 29 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 1200), Tuple.Create <System.Object, System.Int32>(navigateUrl

            #line default
            #line hidden
                                                                                                                 , 1200), false)
                               );

                WriteLiteral(">");


            #line 29 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.Resource("FullStory"));


            #line default
            #line hidden
                WriteLiteral("</a>\n\t\t\t</li>\n");


            #line 31 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </ul>\n\n");


            #line 34 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"


            #line default
            #line hidden

            #line 34 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 36 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
                Write(Html.Action("Index", "ContentPager", new { currentPage         = Model.CurrentPage,
                                                                 totalPagesCount     = Model.TotalPagesCount.Value,
                                                                 redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate }));


            #line default
            #line hidden

            #line 38 "..\..\ResourcePackages\Bootstrap\MVC\Views\News\List.NewsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n</div>\n");
        }
コード例 #14
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 8 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            Write(Html.StyleSheet(Url.WidgetContent("assets/magnific/magnific-popup.css"), "head", false));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 9 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top", false));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 10 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("assets/magnific/jquery.magnific-popup.min.js"), "bottom", false));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 11 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("Mvc/Scripts/VideoGallery/overlay-gallery.js"), "bottom", false));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n    <div");

            WriteAttribute("class", Tuple.Create(" class=\"", 629), Tuple.Create("\"", 704)
                           , Tuple.Create(Tuple.Create("", 637), Tuple.Create("sf-Gallery-thumbs", 637), true)
                           , Tuple.Create(Tuple.Create(" ", 654), Tuple.Create("sf-Gallery-thumbs--video", 655), true)
                           , Tuple.Create(Tuple.Create(" ", 679), Tuple.Create("clearfix", 680), true)

            #line 14 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 688), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 689), false)
                           );

            WriteLiteral(">\n    \n");


            #line 16 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"


            #line default
            #line hidden

            #line 16 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            foreach (var item in Model.Items)
            {
                var title           = item.Fields.Title;
                var alternativeText = System.Text.RegularExpressions.Regex.Replace(title, @"[^\w\d_-]", "");


            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"pull-left\"");

                WriteLiteral(">\n            <a");

                WriteLiteral(" class=\"video-link\"");

                WriteAttribute("href", Tuple.Create("\n                href=\"", 978), Tuple.Create("\"", 1022)

            #line 22 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1001), Tuple.Create <System.Object, System.Int32>(item.Fields.MediaUrl

            #line default
            #line hidden
                                                                                                                 , 1001), false)
                               );

                WriteAttribute("title", Tuple.Create("\n                title=\"", 1023), Tuple.Create("\"", 1063)

            #line 23 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1047), Tuple.Create <System.Object, System.Int32>(alternativeText

            #line default
            #line hidden
                                                                                                                 , 1047), false)
                               );

                WriteLiteral(">\n\n                <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1087), Tuple.Create("\"", 1140)

            #line 25 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1093), Tuple.Create <System.Object, System.Int32>(((VideoThumbnailViewModel)item).ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1093), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\"", 1141), Tuple.Create("\"", 1163)

            #line 25 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1147), Tuple.Create <System.Object, System.Int32>(alternativeText

            #line default
            #line hidden
                                                                                                                 , 1147), false)
                               );

                WriteLiteral(" \n                    data-detail-url=\"");


            #line 26 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                Write(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(" />\n            </a>\n            <h3>");


            #line 28 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                Write(title);


            #line default
            #line hidden
                WriteLiteral("</h3>\n        </div>\n");


            #line 30 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\n</div>\n\n");


            #line 35 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 37 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 42 "..\..MVC\Views\VideoGallery\List.OverlayGallery.cshtml"
            }

            #line default
            #line hidden
        }
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 500), Tuple.Create("\"", 534)

            #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                           , Tuple.Create(Tuple.Create("", 508), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 508), false)
                           , Tuple.Create(Tuple.Create(" ", 523), Tuple.Create("media-list", 524), true)
                           );

            WriteLiteral(">\n");


            #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"


            #line default
            #line hidden

            #line 14 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
            if (Model.ContentType == typeof(SitefinityProfile))
            {
                foreach (var item in Model.Items)
                {
            #line default
            #line hidden
                    WriteLiteral("            <div");

                    WriteLiteral(" class=\"media sf-media\"");

                    WriteLiteral(">\n                <div");

                    WriteLiteral(" class=\"media-left sf-img-thmb\"");

                    WriteLiteral(">\n                    <img");

                    WriteLiteral(" class=\"media-object\"");

                    WriteAttribute("src", Tuple.Create(" src=\"", 791), Tuple.Create("\"", 855)

            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 797), Tuple.Create <System.Object, System.Int32>((item as SitefinityProfileItemViewModel).AvatarImageUrl

            #line default
            #line hidden
                                                                                                                    , 797), false)
                                   );

                    WriteAttribute("alt", Tuple.Create(" alt=\"", 856), Tuple.Create("\"", 884)

            #line 20 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 862), Tuple.Create <System.Object, System.Int32>(item.Fields.FirstName

            #line default
            #line hidden
                                                                                                                    , 862), false)
                                   );

                    WriteLiteral(" width=\"100\"");

                    WriteLiteral(" height=\"100\"");

                    WriteLiteral(" />\n                </div>\n\n                <div");

                    WriteLiteral(" class=\"media-body sf-media-body\"");

                    WriteLiteral(">\n                    <h3>\n                        <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1044), Tuple.Create("\"", 1209)

            #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1051), Tuple.Create <System.Object, System.Int32>(UsersHelper.EncodeUrlUsername(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage), item as SitefinityProfileItemViewModel)

            #line default
            #line hidden
                                                                                                                     , 1051), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                            ");


            #line 26 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(((SitefinityProfile)item.DataItem).GetUserDisplayName());


            #line default
            #line hidden
                    WriteLiteral("\n                        </a>\n                    </h3>\n                    <p>\n");

                    WriteLiteral("                        ");


            #line 30 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(Html.HtmlSanitize((((SitefinityProfileItemViewModel)item).About)));


            #line default
            #line hidden
                    WriteLiteral("\n                    </p>\n                </div>\n\n            </div>\n");


            #line 35 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                }
            }
            else
            {
                if (SystemManager.IsDesignMode)
                {
            #line default
            #line hidden

            #line 41 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(Html.Resource("TheSelectedTemplateCannotBeUsed"));


            #line default
            #line hidden

            #line 41 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                }
                else
                {
                    foreach (var item in Model.Items)
                    {
            #line default
            #line hidden
                        WriteLiteral("                <h3>\n                    <a");

                        WriteAttribute("href", Tuple.Create(" href=\"", 1816), Tuple.Create("\"", 1910)

            #line 48 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                                       , Tuple.Create(Tuple.Create("", 1823), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage)

            #line default
            #line hidden
                                                                                                                         , 1823), false)
                                       );

                        WriteLiteral(">\n");

                        WriteLiteral("                        ");


            #line 49 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                        Write(UserProfilesHelper.GetUserDisplayName(item.Fields.Owner));


            #line default
            #line hidden
                        WriteLiteral("\n                    </a>\n                </h3>\n");


            #line 52 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                    }
                }
            }


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 56 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"


            #line default
            #line hidden

            #line 56 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 58 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 63 "..\..\ResourcePackages\Bootstrap\MVC\Views\UsersList\List.UsersList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\n");
        }
コード例 #16
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 13 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top", false));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 546), Tuple.Create("\"", 580)

            #line 15 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                           , Tuple.Create(Tuple.Create("", 554), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 554), false)
                           , Tuple.Create(Tuple.Create(" ", 569), Tuple.Create("media-list", 570), true)
                           );

            WriteLiteral(">\n");


            #line 16 "..\..MVC\Views\UsersList\List.UsersList.cshtml"


            #line default
            #line hidden

            #line 16 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
            if (Model.ContentType == typeof(SitefinityProfile))
            {
                foreach (var item in Model.Items)
                {
            #line default
            #line hidden
                    WriteLiteral("            <div");

                    WriteLiteral(" class=\"media sf-media\"");

                    WriteLiteral(">\n                <div");

                    WriteLiteral(" class=\"media-left sf-img-thmb\"");

                    WriteLiteral(">\n                    <img");

                    WriteLiteral(" class=\"media-object\"");

                    WriteAttribute("src", Tuple.Create(" src=\"", 837), Tuple.Create("\"", 901)

            #line 22 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 843), Tuple.Create <System.Object, System.Int32>((item as SitefinityProfileItemViewModel).AvatarImageUrl

            #line default
            #line hidden
                                                                                                                    , 843), false)
                                   );

                    WriteAttribute("alt", Tuple.Create(" alt=\"", 902), Tuple.Create("\"", 930)

            #line 22 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 908), Tuple.Create <System.Object, System.Int32>(item.Fields.FirstName

            #line default
            #line hidden
                                                                                                                    , 908), false)
                                   );

                    WriteLiteral(" width=\"100\"");

                    WriteLiteral(" height=\"100\"");

                    WriteLiteral(" />\n                </div>\n\n                <div");

                    WriteLiteral(" class=\"media-body sf-media-body\"");

                    WriteLiteral(">\n                    <h3>\n                        <a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 1090), Tuple.Create("\"", 1255)

            #line 27 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1097), Tuple.Create <System.Object, System.Int32>(UsersHelper.EncodeUrlUsername(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage), item as SitefinityProfileItemViewModel)

            #line default
            #line hidden
                                                                                                                     , 1097), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                            ");


            #line 28 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(((SitefinityProfile)item.DataItem).GetUserDisplayName());


            #line default
            #line hidden
                    WriteLiteral("\n                        </a>\n                    </h3>\n                    <p>\n");

                    WriteLiteral("                        ");


            #line 32 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(Html.Raw((((SitefinityProfileItemViewModel)item).About)));


            #line default
            #line hidden
                    WriteLiteral("\n                    </p>\n                </div>\n\n            </div>\n");


            #line 37 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                }
            }
            else
            {
                if (SystemManager.IsDesignMode)
                {
            #line default
            #line hidden

            #line 43 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                    Write(Html.Resource("TheSelectedTemplateCannotBeUsed"));


            #line default
            #line hidden

            #line 43 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                }
                else
                {
                    foreach (var item in Model.Items)
                    {
            #line default
            #line hidden
                        WriteLiteral("                <h3>\n                    <a");

                        WriteAttribute("href", Tuple.Create(" href=\"", 1853), Tuple.Create("\"", 1947)

            #line 50 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                                       , Tuple.Create(Tuple.Create("", 1860), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage)

            #line default
            #line hidden
                                                                                                                         , 1860), false)
                                       );

                        WriteLiteral(">\n");

                        WriteLiteral("                        ");


            #line 51 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                        Write(UserProfilesHelper.GetUserDisplayName(item.Fields.Owner));


            #line default
            #line hidden
                        WriteLiteral("\n                    </a>\n                </h3>\n");


            #line 54 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                    }
                }
            }


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 58 "..\..MVC\Views\UsersList\List.UsersList.cshtml"


            #line default
            #line hidden

            #line 58 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 60 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 65 "..\..MVC\Views\UsersList\List.UsersList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\n");
        }
コード例 #17
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 9 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top"));


            #line default
            #line hidden
            WriteLiteral("\n\n");


            #line 11 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.StyleSheet(Url.WidgetContent("assets/magnific/magnific-popup.css"), "head"));


            #line default
            #line hidden
            WriteLiteral("\n\n");


            #line 13 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("assets/magnific/jquery.magnific-popup.min.js"), "bottom"));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 14 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            Write(Html.Script(Url.WidgetContent("Mvc/Scripts/ImageGallery/overlay-gallery.js"), "bottom"));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n  <div");

            WriteAttribute("class", Tuple.Create(" class=\"", 655), Tuple.Create("\"", 696)
                           , Tuple.Create(Tuple.Create("", 663), Tuple.Create("sf-Gallery-thumbs", 663), true)

            #line 17 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 680), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 681), false)
                           );

            WriteLiteral(">\n");


            #line 18 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"


            #line default
            #line hidden

            #line 18 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            int itemIndex = 0;

            #line default
            #line hidden
            WriteLiteral("\n");


            #line 19 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"


            #line default
            #line hidden

            #line 19 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            foreach (var item in Model.Items)
            {
                var thumbnailViewModel = (ThumbnailViewModel)item;



            #line default
            #line hidden
                WriteLiteral("        <a");

                WriteLiteral(" class=\"text-center image-link\"");

                WriteAttribute("href", Tuple.Create("\n            href=\"", 871), Tuple.Create("\"", 920)

            #line 24 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 890), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.MediaUrl

            #line default
            #line hidden
                                                                                                                , 890), false)
                               );

                WriteAttribute("title", Tuple.Create("\n            title=\"", 921), Tuple.Create("\"", 969)

            #line 25 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 941), Tuple.Create <System.Object, System.Int32>(item.Fields.AlternativeText

            #line default
            #line hidden
                                                                                                                , 941), false)
                               );

                WriteLiteral(">\n            <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 988), Tuple.Create("\"", 1028)

            #line 26 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 994), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                , 994), false)
                               );

                WriteLiteral(" \n                 data-detail-url=\"");


            #line 27 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteAttribute("alt", Tuple.Create(" \n                 alt=\"", 1184), Tuple.Create("\"", 1236)

            #line 28 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1208), Tuple.Create <System.Object, System.Int32>(item.Fields.AlternativeText

            #line default
            #line hidden
                                                                                                                 , 1208), false)
                               );

                WriteLiteral("\n                      ");


            #line 29 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                      ");


            #line 30 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" ");


            #line 30 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.GetDetailsImageWidthAttributeIfExists(thumbnailViewModel.DetailsImageWidth));


            #line default
            #line hidden
                WriteLiteral(" />\n        </a>\n");


            #line 32 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                itemIndex++;
            }


            #line default
            #line hidden
            WriteLiteral("  </div>\n</div>\n\n");


            #line 37 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 39 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 44 "..\..MVC\Views\ImageGallery\List.OverlayGallery.cshtml"
            }


            #line default
            #line hidden
        }
コード例 #18
0
        public override void Execute()
        {
            WriteLiteral("\n");

            WriteLiteral("\n");


            #line 13 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top", true));


            #line default
            #line hidden
            WriteLiteral("\n");


            #line 14 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            Write(Html.Script(Url.WidgetContent("Mvc/Scripts/ImageGallery/thumbnail-strip.js"), "bottom", true));


            #line default
            #line hidden
            WriteLiteral("\n\n");


            #line 16 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"

            bool    hasItems            = Model.Items.Count() > 0;
            bool    isBackendDesignMode = SystemManager.IsDesignMode && !SystemManager.IsPreviewMode;
            dynamic firstItem           = null;

            if (hasItems && isBackendDesignMode)
            {
                firstItem = Model.Items.FirstOrDefault();
            }

            ThumbnailViewModel thumbnailViewModel = (ThumbnailViewModel)firstItem;


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery sf-Gallery--strip\"");

            WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 986), Tuple.Create("\"", 1029)

            #line 29 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                           , Tuple.Create(Tuple.Create("", 999), Tuple.Create <System.Object, System.Int32>(Html.Resource("ImageGallery")

            #line default
            #line hidden
                                                                                                            , 999), false)
                           );

            WriteLiteral(">\n\n");


            #line 31 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            if (hasItems)
            {
                if (isBackendDesignMode)
                {
            #line default
            #line hidden
                    WriteLiteral("\t<h2");

                    WriteLiteral(" class=\"js-Gallery-title\"");

                    WriteLiteral(">");


            #line 35 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(firstItem.DataItem.Title);


            #line default
            #line hidden
                    WriteLiteral("</h2>\n");


            #line 36 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"js-Gallery-description\"");

                    WriteLiteral(">");


            #line 37 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(firstItem.DataItem.Description);


            #line default
            #line hidden
                    WriteLiteral("</p>\n");


            #line 38 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<div><span");

                    WriteLiteral(" class=\"js-Gallery-index\"");

                    WriteLiteral(">1</span> of ");


            #line 39 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Model.Items.Count());


            #line default
            #line hidden
                    WriteLiteral("</div>\n");


            #line 40 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"sf-Gallery-image js-Gallery-image\"");

                    WriteLiteral(">\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-prev sf-Gallery-prev\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"carousel-control-prev-icon\"");

                    WriteLiteral(" aria-hidden=\"true\"");

                    WriteLiteral("></span></a>\n\t\t<a");

                    WriteLiteral(" class=\'js-Gallery-next sf-Gallery-next\'");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"carousel-control-next-icon\"");

                    WriteLiteral(" aria-hidden=\"true\"");

                    WriteLiteral("></span></a>\n        <img");

                    WriteAttribute("src", Tuple.Create(" src=\"", 1585), Tuple.Create("\"", 1621)

            #line 44 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1591), Tuple.Create <System.Object, System.Int32>(thumbnailViewModel.MediaUrl

            #line default
            #line hidden
                                                                                                                     , 1591), false)
                                   );

                    WriteAttribute("title", Tuple.Create(" title=\"", 1622), Tuple.Create("\"", 1655)

            #line 44 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1630), Tuple.Create <System.Object, System.Int32>(firstItem.DataItem.Title

            #line default
            #line hidden
                                                                                                                     , 1630), false)
                                   );

                    WriteAttribute("alt", Tuple.Create(" alt=\"", 1656), Tuple.Create("\"", 1697)

            #line 44 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1662), Tuple.Create <System.Object, System.Int32>(firstItem.DataItem.AlternativeText

            #line default
            #line hidden
                                                                                                                     , 1662), false)
                                   );

                    WriteLiteral(" \n                  ");


            #line 45 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Html.GetWidthAttributeIfExists(thumbnailViewModel.Width));


            #line default
            #line hidden
                    WriteLiteral("\n");

                    WriteLiteral("                  ");


            #line 46 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Html.GetHeightAttributeIfExists(thumbnailViewModel.Height));


            #line default
            #line hidden
                    WriteLiteral(" />\n\n\t</p>\n");


            #line 49 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                }
                else
                {
            #line default
            #line hidden
                    WriteLiteral("\t<h2");

                    WriteLiteral(" class=\"js-Gallery-title\"");

                    WriteLiteral(" aria-live=\"polite\"");

                    WriteLiteral(" aria-atomic=\"true\"");

                    WriteLiteral("></h2>\n");


            #line 53 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<p");

                    WriteLiteral(" class=\"js-Gallery-description\"");

                    WriteLiteral(" aria-live=\"polite\"");

                    WriteLiteral(" aria-atomic=\"true\"");

                    WriteLiteral("></p>\n");


            #line 55 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<div");

                    WriteLiteral(" aria-live=\"polite\"");

                    WriteLiteral(" aria-atomic=\"true\"");

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"js-Gallery-index\"");

                    WriteLiteral("></span> of ");


            #line 56 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                    Write(Model.Items.Count());


            #line default
            #line hidden
                    WriteLiteral("</div>\n");


            #line 57 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"



            #line default
            #line hidden
                    WriteLiteral("\t<div");

                    WriteLiteral(" class=\"sf-Gallery-image js-Gallery-image\"");

                    WriteLiteral(">\n        <nav");

                    WriteLiteral(" role=\"navigation\"");

                    WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 2226), Tuple.Create("\"", 2274)

            #line 59 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2239), Tuple.Create <System.Object, System.Int32>(Html.Resource("PreviousNextImage")

            #line default
            #line hidden
                                                                                                                     , 2239), false)
                                   );

                    WriteLiteral(">\n            <a");

                    WriteLiteral(" class=\"js-Gallery-prev sf-Gallery-prev\"");

                    WriteAttribute("title", Tuple.Create(" title=\"", 2331), Tuple.Create("\"", 2374)

            #line 60 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2339), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToPreviousImage")

            #line default
            #line hidden
                                                                                                                     , 2339), false)
                                   );

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"carousel-control-prev-icon\"");

                    WriteLiteral(" aria-hidden=\"true\"");

                    WriteLiteral("></span></a>\n            <a");

                    WriteLiteral(" class=\"js-Gallery-next sf-Gallery-next\"");

                    WriteAttribute("title", Tuple.Create(" title=\"", 2502), Tuple.Create("\"", 2541)

            #line 61 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2510), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToNextImage")

            #line default
            #line hidden
                                                                                                                     , 2510), false)
                                   );

                    WriteLiteral("><span");

                    WriteLiteral(" class=\"carousel-control-next-icon\"");

                    WriteLiteral(" aria-hidden=\"true\"");

                    WriteLiteral("></span></a>\n        </nav>\n\t\t<img />\n\t</div>\n");


            #line 65 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                }
            }


            #line default
            #line hidden
            WriteLiteral("\n\n\n\t<ul");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container list-unstyled\"");

            WriteLiteral(">\n\t\t<li");

            WriteLiteral(" class=\"sf-Gallery-thumbs js-Gallery-thumbs d-inline-block\"");

            WriteLiteral(">\n");


            #line 72 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"


            #line default
            #line hidden

            #line 72 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            int itemIndex = 0;

            #line default
            #line hidden
            WriteLiteral("\n");


            #line 73 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"


            #line default
            #line hidden

            #line 73 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            foreach (var item in Model.Items)
            {
                var itemViewModel = (ThumbnailViewModel)item;



            #line default
            #line hidden
                WriteLiteral("\t\t\t<a");

                WriteLiteral(" class=\"text-center\"");

                WriteAttribute("title", Tuple.Create(" title=\"", 2922), Tuple.Create("\"", 2948)

            #line 77 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 2930), Tuple.Create <System.Object, System.Int32>(item.Fields.Title

            #line default
            #line hidden
                                                                                                                 , 2930), false)
                               );

                WriteLiteral(" data-item=\"");


            #line 77 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetSerializedImage(item));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(" data-detail-url=\"");


            #line 77 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex));


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">\n                <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 3151), Tuple.Create("\"", 3186)

            #line 78 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 3157), Tuple.Create <System.Object, System.Int32>(itemViewModel.ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 3157), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\"", 3187), Tuple.Create("\"", 3221)

            #line 78 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                               , Tuple.Create(Tuple.Create("", 3193), Tuple.Create <System.Object, System.Int32>(item.Fields.AlternativeText

            #line default
            #line hidden
                                                                                                                 , 3193), false)
                               );

                WriteLiteral(" \n                              ");


            #line 79 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetWidthAttributeIfExists(itemViewModel.Width));


            #line default
            #line hidden
                WriteLiteral("\n");

                WriteLiteral("                              ");


            #line 80 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.GetHeightAttributeIfExists(itemViewModel.Height));


            #line default
            #line hidden
                WriteLiteral(" />\n\t\t\t</a>\n");


            #line 82 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                itemIndex++;
            }


            #line default
            #line hidden
            WriteLiteral("\t\t</li>\n\t</ul>\n</div>\n");


            #line 87 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 89 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 94 "..\..\ResourcePackages\Bootstrap4\MVC\Views\ImageGallery\List.ThumbnailStrip.cshtml"
            }


            #line default
            #line hidden
        }
コード例 #19
0
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 225), Tuple.Create("\"", 248)

            #line 7 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                           , Tuple.Create(Tuple.Create("", 233), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 233), false)
                           );

            WriteLiteral(">\n\n    <div");

            WriteLiteral(" class=\"sf-document-list sf-document-list--table\"");

            WriteLiteral(">\n\n        <table");

            WriteLiteral(" class=\"table\"");

            WriteLiteral(">\n            <thead>\n                <tr>\n                    <td><strong>");


            #line 14 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            Write(Html.Resource("Title"));


            #line default
            #line hidden
            WriteLiteral("</strong></td>\n                    <td><strong>");


            #line 15 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            Write(Html.Resource("Type"));


            #line default
            #line hidden
            WriteLiteral("</strong></td>\n                    <td><strong>");


            #line 16 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            Write(Html.Resource("Size"));


            #line default
            #line hidden
            WriteLiteral("</strong></td>\n                    <td></td>\n                </tr>\n            </" +
                         "thead>\n");


            #line 20 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"


            #line default
            #line hidden

            #line 20 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            foreach (var item in Model.Items)
            {
            #line default
            #line hidden
                WriteLiteral("                <tr>\n                    <td>\n                        <i");

                WriteLiteral(" class=\"icon-file icon-txt icon-sm\"");

                WriteLiteral(">\n                            <span");

                WriteAttribute("class", Tuple.Create(" class=\"", 867), Tuple.Create("\"", 926)
                               , Tuple.Create(Tuple.Create("", 875), Tuple.Create("icon-txt-", 875), true)

            #line 25 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                               , Tuple.Create(Tuple.Create("", 884), Tuple.Create <System.Object, System.Int32>(((DocumentItemViewModel)item).Extension

            #line default
            #line hidden
                                                                                                                , 884), false)
                               );

                WriteLiteral(">");


            #line 25 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral("</span>\n                        </i> \n                        <a");

                WriteLiteral(" class=\"sf-title\"");

                WriteAttribute("href", Tuple.Create(" href=\"", 1051), Tuple.Create("\"", 1165)

            #line 27 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                               , Tuple.Create(Tuple.Create("", 1058), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix)

            #line default
            #line hidden
                                                                                                                 , 1058), false)
                               );

                WriteLiteral(">\n");

                WriteLiteral("                            ");


            #line 28 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("\n                        </a>\n                    </td>\n                    <td>\n" +
                             "");

                WriteLiteral("                        ");


            #line 32 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral("\n                    </td>\n                    <td>\n");

                WriteLiteral("                        ");


            #line 35 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                Write(Math.Ceiling((double)item.Fields.TotalSize / 1024) + " KB");


            #line default
            #line hidden
                WriteLiteral("\n                    </td>\n                    <td>\n                        <a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1576), Tuple.Create("\"", 1604)

            #line 38 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                               , Tuple.Create(Tuple.Create("", 1583), Tuple.Create <System.Object, System.Int32>(item.Fields.MediaUrl

            #line default
            #line hidden
                                                                                                                 , 1583), false)
                               );

                WriteLiteral(" target=\"_blank\"");

                WriteLiteral(">Download</a>\n                    </td>\n                </tr>\n");


            #line 41 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("        </table>\n\n    </div>\n\n</div>\n\n");


            #line 48 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 50 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 55 "..\..MVC\Views\DocumentsList\List.DocumentsTable.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n\n");
        }
コード例 #20
0
        public override void Execute()
        {
            WriteLiteral("\n");


            #line 8 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            Write(Html.Script(ScriptRef.JQuery, "top"));


            #line default
            #line hidden
            WriteLiteral("\n\n<div");

            WriteLiteral(" class=\"sf-Gallery-thumbs-container\"");

            WriteLiteral(">\n    <div");

            WriteAttribute("class", Tuple.Create(" class=\"", 340), Tuple.Create("\"", 415)

            #line 11 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                           , Tuple.Create(Tuple.Create("", 348), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 348), false)
                           , Tuple.Create(Tuple.Create(" ", 363), Tuple.Create("sf-Gallery-thumbs", 364), true)
                           , Tuple.Create(Tuple.Create(" ", 381), Tuple.Create("sf-Gallery-thumbs--video", 382), true)
                           , Tuple.Create(Tuple.Create(" ", 406), Tuple.Create("clearfix", 407), true)
                           );

            WriteLiteral(">\n\n");


            #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"


            #line default
            #line hidden

            #line 13 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            for (int i = 0; i < Model.Items.Count(); i++)
            {
                var item          = Model.Items.ElementAt(i);
                var itemIndex     = (Model.CurrentPage - 1) * ViewBag.ItemsPerPage + i + 1;
                var detailPageUrl = ViewBag.OpenInSamePage ? HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix, itemIndex) :
                                    HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix);


            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"pull-left\"");

                WriteLiteral(">\n\t\t        <a\n               href=\"");


            #line 21 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(detailPageUrl);


            #line default
            #line hidden
                WriteLiteral("\"\n               title=\"");


            #line 22 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(string.IsNullOrEmpty(item.Fields.Description) ? item.Fields.Title : item.Fields.Description);


            #line default
            #line hidden
                WriteLiteral("\">\n\t\t\t        <img");

                WriteAttribute("src", Tuple.Create(" src=\"", 1138), Tuple.Create("\"", 1191)

            #line 23 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1144), Tuple.Create <System.Object, System.Int32>(((VideoThumbnailViewModel)item).ThumbnailUrl

            #line default
            #line hidden
                                                                                                                 , 1144), false)
                               );

                WriteAttribute("alt", Tuple.Create(" alt=\'", 1192), Tuple.Create("\'", 1280)

            #line 23 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                               , Tuple.Create(Tuple.Create("", 1198), Tuple.Create <System.Object, System.Int32>(System.Text.RegularExpressions.Regex.Replace(item.Fields.Title, @"[^\w\d_-]", "")

            #line default
            #line hidden
                                                                                                                 , 1198), false)
                               );

                WriteLiteral(" />\n                </a>\n                <h3>");


            #line 25 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</h3>\n            </div>\n");


            #line 27 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n    </div>\n</div>\n");


            #line 31 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"


            #line default
            #line hidden

            #line 31 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 33 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 38 "..\..\ResourcePackages\Bootstrap\MVC\Views\VideoGallery\List.VideoGallery.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n");
        }
        public override void Execute()
        {
            WriteLiteral("\n<ul");

            WriteAttribute("class", Tuple.Create(" class=\"", 224), Tuple.Create("\"", 261)
                           , Tuple.Create(Tuple.Create("", 232), Tuple.Create("list-unstyled", 232), true)

            #line 7 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                           , Tuple.Create(Tuple.Create(" ", 245), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                             , 246), false)
                           );

            WriteLiteral(">\n\n");


            #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"


            #line default
            #line hidden

            #line 9 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            foreach (var item in Model.Items)
            {
            #line default
            #line hidden
                WriteLiteral("\t\t\t<li");

                WriteLiteral(" class=\"media\"");

                WriteLiteral(">\n\t\t\t\t<div");

                WriteLiteral(" class=\"media-left pr-2 pt-1\"");

                WriteLiteral(" aria-hidden=\"true\"");

                WriteLiteral(">\n\t\t\t\t\t<span");

                WriteLiteral(" class=\"sf-icon-txt\"");

                WriteLiteral(">\n\t\t\t\t\t\t<svg");

                WriteLiteral(" class=\"sf-icon-file sf-icon-lg\"");

                WriteLiteral(">\n\t\t\t\t\t\t\t<use");

                WriteAttribute("xlink:href", Tuple.Create(" xlink:href=\"", 473), Tuple.Create("\"", 550)
                               , Tuple.Create(Tuple.Create("", 486), Tuple.Create <System.Object, System.Int32>(Href("~/ResourcePackages/Bootstrap4/assets/dist/sprites/solid.svg#file")
                                                                                                                , 486), false)
                               );

                WriteLiteral("></use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<span");

                WriteAttribute("class", Tuple.Create(" class=\"", 583), Tuple.Create("\"", 660)
                               , Tuple.Create(Tuple.Create("", 591), Tuple.Create("sf-icon-txt-md", 591), true)
                               , Tuple.Create(Tuple.Create(" ", 605), Tuple.Create("sf-icon-txt-", 606), true)

            #line 17 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 618), Tuple.Create <System.Object, System.Int32>(((DocumentItemViewModel)item).Extension

            #line default
            #line hidden
                                                                                                                , 618), false)
                               );

                WriteLiteral(">");


            #line 17 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral("</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div");

                WriteLiteral(" class=\"media-body\"");

                WriteLiteral(" role=\"group\"");

                WriteLiteral(">\n\t\t\t\t\t<a");

                WriteAttribute("href", Tuple.Create(" href=\"", 785), Tuple.Create("\"", 899)

            #line 21 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 792), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(item, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, Model.UrlKeyPrefix)

            #line default
            #line hidden
                                                                                                                , 792), false)
                               );

                WriteLiteral(">\n\t\t\t\t\t\t\t<strong>");


            #line 22 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</strong>\n\t\t\t\t\t</a>\n\t\t\t\t\t<span");

                WriteLiteral(" class=\"text-muted\"");

                WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 984), Tuple.Create("\"", 1028)

            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 997), Tuple.Create <System.Object, System.Int32>(Html.Resource("FileExtension")

            #line default
            #line hidden
                                                                                                                , 997), false)
                               );

                WriteLiteral(">(");


            #line 24 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(((DocumentItemViewModel)item).Extension);


            #line default
            #line hidden
                WriteLiteral(")</span>\n\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a");

                WriteAttribute("href", Tuple.Create(" href=\"", 1102), Tuple.Create("\"", 1130)

            #line 27 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 1109), Tuple.Create <System.Object, System.Int32>(item.Fields.MediaUrl

            #line default
            #line hidden
                                                                                                                 , 1109), false)
                               );

                WriteLiteral(" target=\"_blank\"");

                WriteLiteral(">");


            #line 27 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(Html.Resource("Download"));


            #line default
            #line hidden
                WriteLiteral(" <span");

                WriteLiteral(" class=\"sr-only\"");

                WriteLiteral(">");


            #line 27 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(item.Fields.Title);


            #line default
            #line hidden
                WriteLiteral("</span></a>\n\t\t\t\t\t\t<span");

                WriteLiteral(" class=\"text-muted\"");

                WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 1257), Tuple.Create("\"", 1296)

            #line 28 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                               , Tuple.Create(Tuple.Create("", 1270), Tuple.Create <System.Object, System.Int32>(Html.Resource("FileSize")

            #line default
            #line hidden
                                                                                                                 , 1270), false)
                               );

                WriteLiteral(">(");


            #line 28 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(Math.Ceiling((double)item.Fields.TotalSize / 1024) + " KB");


            #line default
            #line hidden
                WriteLiteral(")</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</li>\n");


            #line 32 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n</ul>\n\n");


            #line 36 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            if (Model.ShowPager)
            {
            #line default
            #line hidden

            #line 38 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
                Write(Html.Action("Index", "ContentPager", new
                {
                    currentPage         = Model.CurrentPage,
                    totalPagesCount     = Model.TotalPagesCount.Value,
                    redirectUrlTemplate = ViewBag.RedirectPageUrlTemplate
                }));


            #line default
            #line hidden

            #line 43 "..\..\ResourcePackages\Bootstrap4\MVC\Views\DocumentsList\List.DocumentsList.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\n\n");
        }
コード例 #22
0
        public override void Execute()
        {
            WriteLiteral("\n<div");

            WriteAttribute("class", Tuple.Create(" class=\"", 213), Tuple.Create("\"", 236)

            #line 7 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 221), Tuple.Create <System.Object, System.Int32>(Model.CssClass

            #line default
            #line hidden
                                                                                                            , 221), false)
                           );

            WriteLiteral(" ");


            #line 7 "..\..MVC\Views\VideoGallery\Detail.Default.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=\"", 356), Tuple.Create("\"", 402)

            #line 8 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 374), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("VideoTitle")

            #line default
            #line hidden
                                                                                                            , 374), false)
                           );

            WriteLiteral(">\n        <figcaption");

            WriteLiteral(" class=\"h2\"");

            WriteAttribute("id", Tuple.Create("  id=\"", 435), Tuple.Create("\"", 469)

            #line 9 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 441), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("VideoTitle")

            #line default
            #line hidden
                                                                                                            , 441), false)
                           );

            WriteLiteral(" ");


            #line 9 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.InlineEditingFieldAttributes("Title", "ShortText"));


            #line default
            #line hidden
            WriteLiteral(">");


            #line 9 "..\..MVC\Views\VideoGallery\Detail.Default.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 11 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.Resource("VideoTakenOn"));


            #line default
            #line hidden
            WriteLiteral(" </span>\n");

            WriteLiteral("            ");


            #line 12 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Model.Item.GetDateTime("PublicationDate", "MMM d, yyyy, HH:mm tt"));


            #line default
            #line hidden
            WriteLiteral("\n");

            WriteLiteral("            ");


            #line 13 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.Resource("By"));


            #line default
            #line hidden
            WriteLiteral("\n");

            WriteLiteral("            ");


            #line 14 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(DataResolver.Resolve(@Model.Item.DataItem, "Author", null));


            #line default
            #line hidden
            WriteLiteral("\n        </div>\n        <p ");


            #line 16 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.InlineEditingFieldAttributes("Description", "LongText"));


            #line default
            #line hidden
            WriteLiteral(" id=\'");


            #line 16 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.UniqueId("VideoInfo"));


            #line default
            #line hidden
            WriteLiteral("\'>");


            #line 16 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            Write(Html.HtmlSanitize((string)Model.Item.Fields.Description));


            #line default
            #line hidden
            WriteLiteral("</p>        \n        <video");

            WriteAttribute("src", Tuple.Create(" src=\"", 1062), Tuple.Create("\"", 1093)

            #line 17 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 1068), Tuple.Create <System.Object, System.Int32>(Html.Raw(Model.MediaUrl)

            #line default
            #line hidden
                                                                                                             , 1068), false)
                           );

            WriteLiteral(" controls=\"controls\"");

            WriteAttribute("width", Tuple.Create(" width=\"", 1114), Tuple.Create("\"", 1134)

            #line 17 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 1122), Tuple.Create <System.Object, System.Int32>(Model.Width

            #line default
            #line hidden
                                                                                                             , 1122), false)
                           );

            WriteAttribute("height", Tuple.Create(" height=\"", 1135), Tuple.Create("\"", 1157)

            #line 17 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 1144), Tuple.Create <System.Object, System.Int32>(Model.Height

            #line default
            #line hidden
                                                                                                             , 1144), false)
                           );

            WriteAttribute("aria-labelledby", Tuple.Create(" aria-labelledby=\'", 1158), Tuple.Create("\'", 1204)

            #line 17 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 1176), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("VideoTitle")

            #line default
            #line hidden
                                                                                                             , 1176), false)
                           );

            WriteAttribute("aria-describedby", Tuple.Create(" aria-describedby=\'", 1205), Tuple.Create("\'", 1251)

            #line 17 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                           , Tuple.Create(Tuple.Create("", 1224), Tuple.Create <System.Object, System.Int32>(Html.UniqueId("VideoInfo")

            #line default
            #line hidden
                                                                                                             , 1224), false)
                           );

            WriteLiteral("></video>\n    </figure>\n");


            #line 19 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 19 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            if (ViewBag.ItemIndex != null)
            {
            #line default
            #line hidden
                WriteLiteral("        <nav");

                WriteLiteral(" role=\"navigation\"");

                WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 1348), Tuple.Create("\"", 1396)

            #line 21 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                               , Tuple.Create(Tuple.Create("", 1361), Tuple.Create <System.Object, System.Int32>(Html.Resource("PreviousNextVideo")

            #line default
            #line hidden
                                                                                                                 , 1361), false)
                               );

                WriteLiteral(" class=\"text-center clearfix\"");

                WriteLiteral(">\n");


            #line 22 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 22 "..\..MVC\Views\VideoGallery\Detail.Default.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 27 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 27 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.PreviousItem != null)
                {
            #line default
            #line hidden
                    WriteLiteral("                <a");

                    WriteLiteral(" class=\"sf-Gallery-prev--simple\"");

                    WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 1788), Tuple.Create("\"", 1836)

            #line 29 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1801), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToPreviousVideo")

            #line default
            #line hidden
                                                                                                                     , 1801), false)
                                   );

                    WriteAttribute("href", Tuple.Create(" href=\"", 1837), Tuple.Create("\"", 1986)

            #line 29 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 1844), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.PreviousItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, previousItemIndex)

            #line default
            #line hidden
                                                                                                                     , 1844), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                    ");


            #line 30 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.Resource("PreviousVideo"));


            #line default
            #line hidden
                    WriteLiteral("\n                </a>\n");


            #line 32 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("\n");


            #line 34 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 34 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.PreviousItem != null || Model.NextItem != null)
                {
            #line default
            #line hidden

            #line 36 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.HtmlSanitize((string)string.Format(Html.Resource("IndexOfTotal"), ViewBag.ItemIndex, Model.TotalItemsCount)));


            #line default
            #line hidden

            #line 36 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                    ;
                }


            #line default
            #line hidden
                WriteLiteral("\n");


            #line 39 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"


            #line default
            #line hidden

            #line 39 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                if (Model.NextItem != null)
                {
            #line default
            #line hidden
                    WriteLiteral("                <a");

                    WriteLiteral(" class=\"sf-Gallery-next--simple\"");

                    WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 2415), Tuple.Create("\"", 2459)

            #line 41 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2428), Tuple.Create <System.Object, System.Int32>(Html.Resource("GoToNextVideo")

            #line default
            #line hidden
                                                                                                                     , 2428), false)
                                   );

                    WriteAttribute("href", Tuple.Create(" href=\"", 2460), Tuple.Create("\"", 2601)

            #line 41 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                                   , Tuple.Create(Tuple.Create("", 2467), Tuple.Create <System.Object, System.Int32>(HyperLinkHelpers.GetDetailPageUrl(Model.NextItem, ViewBag.DetailsPageId, ViewBag.OpenInSamePage, ViewBag.UrlKeyPrefix, nextItemIndex)

            #line default
            #line hidden
                                                                                                                     , 2467), false)
                                   );

                    WriteLiteral(">\n");

                    WriteLiteral("                    ");


            #line 42 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                    Write(Html.Resource("NextVideo"));


            #line default
            #line hidden
                    WriteLiteral("\n                </a>\n");


            #line 44 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("        </nav>\n");


            #line 46 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"



            #line default
            #line hidden

            #line 47 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
                Write(Html.ActionLink(Html.Resource("BackToAllVideos"), "Index"));


            #line default
            #line hidden

            #line 47 "..\..MVC\Views\VideoGallery\Detail.Default.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>");
        }