58 lines
3.2 KiB
Plaintext
58 lines
3.2 KiB
Plaintext
@{
|
|
Layout = "_Root";
|
|
}
|
|
@{
|
|
//current category ID
|
|
var currentCategoryId = 0;
|
|
if (Url.ActionContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
|
|
Url.ActionContext.RouteData.Values["action"].ToString().Equals("category", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
currentCategoryId = Convert.ToInt32(Url.ActionContext.RouteData.Values["categoryId"].ToString());
|
|
}
|
|
|
|
//current manufacturer ID
|
|
var currentManufacturerId = 0;
|
|
if (Url.ActionContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
|
|
Url.ActionContext.RouteData.Values["action"].ToString().Equals("manufacturer", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
currentManufacturerId = Convert.ToInt32(Url.ActionContext.RouteData.Values["manufacturerId"].ToString());
|
|
}
|
|
|
|
//current product ID
|
|
var currentProductId = 0;
|
|
if (Url.ActionContext.RouteData.Values["controller"].ToString().Equals("product", StringComparison.InvariantCultureIgnoreCase) &&
|
|
Url.ActionContext.RouteData.Values["action"].ToString().Equals("productdetails", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
currentProductId = Convert.ToInt32(Url.ActionContext.RouteData.Values["productId"].ToString());
|
|
}
|
|
}
|
|
|
|
@await RenderSectionAsync("Breadcrumb", false)
|
|
|
|
<div class="side-2">
|
|
@if (IsSectionDefined("left"))
|
|
{
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LeftSideColumnBefore })
|
|
@await RenderSectionAsync("left")
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LeftSideColumnAfter })
|
|
}
|
|
else
|
|
{
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LeftSideColumnBefore })
|
|
@await RenderSectionAsync("CatalogFilters", false);
|
|
@await Component.InvokeAsync(typeof(CategoryNavigationViewComponent), new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LeftSideColumnAfterCategoryNavigation })
|
|
@await Component.InvokeAsync(typeof(ManufacturerNavigationViewComponent), new { currentManufacturerId = currentManufacturerId })
|
|
@await Component.InvokeAsync(typeof(VendorNavigationViewComponent))
|
|
@await Component.InvokeAsync(typeof(RecentlyViewedProductsBlockViewComponent), new { productThumbPictureSize = 64 })
|
|
@await Component.InvokeAsync(typeof(PopularProductTagsViewComponent))
|
|
@await Component.InvokeAsync(typeof(PollBlockViewComponent), new { systemKeyword = "LeftColumnPoll" })
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.LeftSideColumnAfter })
|
|
}
|
|
</div>
|
|
<div class="center-2">
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.MainColumnBefore })
|
|
@RenderBody()
|
|
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.MainColumnAfter })
|
|
</div>
|