Example #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            List <ProductPage> products = Context.Items["products"] as List <ProductPage>;

#line default
#line hidden
            BeginContext(94, 144, true);
            WriteLiteral("<div class=\"sort-panel\"><span>Сортировать цены: <b class=\"sort-menu\"></b></span></div>\n<div class=\"content-block\">\n<div class=\"navigation-menu\">");
            EndContext();
            BeginContext(240, 72, false);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.BreadcrumbsHtml) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(313, 3, true);
            WriteLiteral(" → ");
            EndContext();
            BeginContext(318, 65, false);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.PageName) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(384, 7, true);
            WriteLiteral("</div>\n");
            EndContext();
            BeginContext(393, 64, false);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.Content) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(458, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            if (products != null)
            {
                foreach (var p in products)
                {
                    try {
#line default
#line hidden
                        BeginContext(523, 62, false);
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                        Write(await Html.PartialAsync(@"~/Settings/product_block.cshtml", p));

#line default
#line hidden
                        EndContext();
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                        ;
                    } catch { }
                }
            }

#line default
#line hidden
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            if (products != null)
            {
#line default
#line hidden
                BeginContext(631, 1, true);
                WriteLiteral(" ");
                EndContext();
                BeginContext(632, 220, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-buttons", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "017a73f441f106aa3dfd355b6da4db3c594325c16635", async() => {
                }
                                                                            );
                __Treynessen_TagHelpers_PageButtonsTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.PageButtonsTagHelper>();
                __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_PageButtonsTagHelper);
                BeginWriteTagHelperAttribute();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                WriteLiteral(Context.Items["PaginationStyleName"]);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_PageButtonsTagHelper.Class = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("class", __Treynessen_TagHelpers_PageButtonsTagHelper.Class, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                BeginWriteTagHelperAttribute();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                WriteLiteral(Context.Request.Path);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPath = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("current-path", __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPath, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPage = (Context.Items["CurrentPage"] as int?);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("current-page", __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPage, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
                __Treynessen_TagHelpers_PageButtonsTagHelper.PagesCount = (Context.Items["PagesCount"] as int?);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("pages-count", __Treynessen_TagHelpers_PageButtonsTagHelper.PagesCount, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(852, 1, true);
                WriteLiteral(" ");
                EndContext();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\category_page_content.cshtml"
            }

#line default
#line hidden
            BeginContext(857, 7, true);
            WriteLiteral("</div>\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
            List <ProductPage> products = Context.Items["products"] as List <ProductPage>;

#line default
#line hidden
            BeginContext(94, 113, true);
            WriteLiteral("<div class=\"content-block\">\n<div class=\"navigation-menu\"><a href=\"/\">Главная страница</a> → Поиск по сайту</div>\n");
            EndContext();
            BeginContext(209, 64, false);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.Content) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(274, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
            if (products != null)
            {
                foreach (var p in products)
                {
                    try {
#line default
#line hidden
                        BeginContext(339, 62, false);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                        Write(await Html.PartialAsync(@"~/Settings/product_block.cshtml", p));

#line default
#line hidden
                        EndContext();
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                        ;
                    } catch { }
                }
            }

#line default
#line hidden
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
            if (products != null)
            {
#line default
#line hidden
                BeginContext(447, 1, true);
                WriteLiteral(" ");
                EndContext();
                BeginContext(448, 220, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("page-buttons", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9709bbed5d9a076a522697a1657b13549294cb425678", async() => {
                }
                                                                            );
                __Treynessen_TagHelpers_PageButtonsTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.PageButtonsTagHelper>();
                __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_PageButtonsTagHelper);
                BeginWriteTagHelperAttribute();
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                WriteLiteral(Context.Items["PaginationStyleName"]);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_PageButtonsTagHelper.Class = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("class", __Treynessen_TagHelpers_PageButtonsTagHelper.Class, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                BeginWriteTagHelperAttribute();
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                WriteLiteral(Context.Request.Path);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPath = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("current-path", __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPath, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPage = (Context.Items["CurrentPage"] as int?);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("current-page", __Treynessen_TagHelpers_PageButtonsTagHelper.CurrentPage, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
                __Treynessen_TagHelpers_PageButtonsTagHelper.PagesCount = (Context.Items["PagesCount"] as int?);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("pages-count", __Treynessen_TagHelpers_PageButtonsTagHelper.PagesCount, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(668, 1, true);
                WriteLiteral(" ");
                EndContext();
#line 7 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\search_page_content.cshtml"
            }

#line default
#line hidden
            BeginContext(673, 65, true);
            WriteLiteral("</div>\n<script src=\"/scripts/search_query_response.js\"></script>\n");
            EndContext();
        }