Line 1: #pragma checksum "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8EFAF168D668759848D46D4EC13D77EE04C5294518731C0C3194705FDF774833"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using WagamiDream.EF;
Line 24:
Line 25: #line 2 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 26: using WagamiDream.EF.Data;
Line 27:
Line 28: #line default
Line 29: #line hidden
Line 30: using WagamiDream.EF.Web;
Line 31:
Line 32: #line 3 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 33: using WagamiDream.EF.WebPages;
Line 34:
Line 35: #line default
Line 36: #line hidden
Line 37: using System.Web.Mvc;
Line 38: using System.Web.Mvc.Ajax;
Line 39: using System.Web.Mvc.Html;
Line 40: using System.Web.Optimization;
Line 41: using System.Web.Routing;
Line 42:
Line 43: #line 4 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 44: using WagamiDream.EF.Plugins;
Line 45:
Line 46: #line default
Line 47: #line hidden
Line 48:
Line 49:
Line 50: public class _Page_Themes_Default_Views_Catalog_Category_cshtml : WagamiDream.EF.Mvc.WdWebViewPage<WdWeb.Models.CategoryViewModel> {
Line 51:
Line 52: #line hidden
Line 53:
Line 54: public _Page_Themes_Default_Views_Catalog_Category_cshtml() {
Line 55: }
Line 56:
Line 57: protected System.Web.HttpApplication ApplicationInstance {
Line 58: get {
Line 59: return ((System.Web.HttpApplication)(Context.ApplicationInstance));
Line 60: }
Line 61: }
Line 62:
Line 63: public override void Execute() {
Line 64:
Line 65: #line 5 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 66:
Line 67: var shop = Model.Shop;
Line 68:
Line 69: Category Category = Model.Category;
Line 70: IQueryable<Product> ProductList = Model.ProductList;
Line 71: CategoryPage.CategoryMultiFilter CategoryMultiFilter = Model.CategoryMultiFilter;
Line 72:
Line 73: Page.Category = Category;
Line 74: Page.ProductList = ProductList;
Line 75: Page.CategoryMultiFilter = CategoryMultiFilter;
Line 76:
Line 77: var x = Category.XmlAs<CategoryXml>();
Line 78: if (x != null && x.Page != null)
Line 79: {
Line 80: Page.Title = x.Page.Title;
Line 81: Page.Description = x.Page.Description;
Line 82: Page.Keywords = x.Page.Keywords;
Line 83: }
Line 84: if( Page.Description == null && !string.IsNullOrEmpty(Category.Description) && (Category.DescriptionType ?? "text/plain") == "text/plain")
Line 85: {
Line 86: Page.Description = Category.Description;
Line 87: }
Line 88: Page.Title = Page.Title ?? String.Format(T("CategoryTitleFormat"), Category.Name ?? T("TopPage"), Shop.DisplayName) ?? T("Category");
Line 89:
Line 90: if (Request.IsSpf())
Line 91: {
Line 92: Layout = null;
Line 93: var res = Context.GetSpfResponse(true);
Line 94: res.title = Page.Title;
Line 95: res.body["ProductList000"] = RenderPage("~/Parts/_ProductList.cshtml", new
Line 96: {
Line 97: CssClass = "wd-search",
Line 98: ProductList = Model.ProductList,
Line 99: TotalCount = Model.TotalCount,
Line 100: Header = true,
Line 101: Class = shop.Configuration.Catalog.Category.DefaultClass,
Line 102: ListStyle = Model.ListStyle ?? shop.Configuration.Catalog.Product.Display["ListStyle"] ?? "User",
Line 103: ShowSearchBox = false,
Line 104: ShowEmptyMessage = true,
Line 105: });
Line 106: res.body["breadcrumb-page-title"] = Page.Title;
Line 107: res.Write(Response);
Line 108: return;
Line 109: }
Line 110:
Line 111: Layout = "~/_SiteLayout.cshtml";
Line 112:
Line 113:
Line 114:
Line 115: #line default
Line 116: #line hidden
Line 117: WriteLiteral(" <div");
Line 118:
Line 119: WriteLiteral(" class=\"wd-page wd-page-category\"");
Line 120:
Line 121: WriteLiteral(">\r\n");
Line 122:
Line 123: WriteLiteral(" ");
Line 124:
Line 125:
Line 126: #line 53 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 127: Write(RenderPlugin("header"));
Line 128:
Line 129:
Line 130: #line default
Line 131: #line hidden
Line 132: WriteLiteral("\r\n");
Line 133:
Line 134: WriteLiteral(" ");
Line 135:
Line 136:
Line 137: #line 54 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 138: Write(RenderPlugin("breadcrumb").OrPage("~/Parts/_Breadcrumb.cshtml", new { Category = Category, EnableDropDown = true, CssClass="wd-page-extent" }));
Line 139:
Line 140:
Line 141: #line default
Line 142: #line hidden
Line 143: WriteLiteral("\r\n <div");
Line 144:
Line 145: WriteLiteral(" class=\"wd-page-body\"");
Line 146:
Line 147: WriteLiteral(">\r\n");
Line 148:
Line 149: WriteLiteral(" ");
Line 150:
Line 151:
Line 152: #line 56 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 153: Write(RenderPage("~/Parts/_Category.cshtml", new
Line 154: {
Line 155: Category = Category,
Line 156: ProductList = ProductList,
Line 157: ProductListId = "ProductList000",
Line 158: Header = Shop.Configuration.Catalog.Category.Display.Has("Header") ? (bool?)true : null
Line 159: }));
Line 160:
Line 161:
Line 162: #line default
Line 163: #line hidden
Line 164: WriteLiteral("\r\n");
Line 165:
Line 166: WriteLiteral(" ");
Line 167:
Line 168:
Line 169: #line 63 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 170: Write(RenderPlugin("sidebar", new { Category = Category }));
Line 171:
Line 172:
Line 173: #line default
Line 174: #line hidden
Line 175: WriteLiteral("\r\n </div>\r\n");
Line 176:
Line 177: WriteLiteral(" ");
Line 178:
Line 179:
Line 180: #line 65 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 181: Write(RenderPlugin("footer"));
Line 182:
Line 183:
Line 184: #line default
Line 185: #line hidden
Line 186: WriteLiteral("\r\n </div>\r\n");
Line 187:
Line 188:
Line 189: #line 67 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 190:
Line 191:
Line 192: #line default
Line 193: #line hidden
Line 194: WriteLiteral("\r\n");
Line 195:
Line 196: DefineSection("head", () => {
Line 197:
Line 198: WriteLiteral("\r\n <link");
Line 199:
Line 200: WriteLiteral(" rel=\"canonical\"");
Line 201:
Line 202: WriteAttribute("href", Tuple.Create(" href=\"", 2622), Tuple.Create("\"", 2688)
Line 203:
Line 204: #line 69 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 205: , Tuple.Create(Tuple.Create("", 2629), Tuple.Create<System.Object, System.Int32>(new Uri( Request.Url, Href( Shop.CategoryUrl(Category)))
Line 206:
Line 207: #line default
Line 208: #line hidden
Line 209: , 2629), false)
Line 210: );
Line 211:
Line 212: WriteLiteral(" />\r\n");
Line 213:
Line 214: WriteLiteral(" ");
Line 215:
Line 216:
Line 217: #line 70 "C:\home\site\Themes\Default\Views\Catalog\Category.cshtml"
Line 218: Write(RenderPlugin("head"));
Line 219:
Line 220:
Line 221: #line default
Line 222: #line hidden
Line 223: WriteLiteral("\r\n");
Line 224:
Line 225: });
Line 226:
Line 227: }
Line 228: }
Line 229: }
Line 230:
|