Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Plugin Theme.Modern - use async method (RenderSectionAsync)

support82d67ac1fca2
diff --git a/src/Plugins/Theme.Modern/Views/Modern/Shared/_Layout.cshtml b/src/Plugins/Theme.Modern/Views/Modern/Shared/_Layout.cshtml
index 99ef3b170..0316326f2 100644
--- a/src/Plugins/Theme.Modern/Views/Modern/Shared/_Layout.cshtml
+++ b/src/Plugins/Theme.Modern/Views/Modern/Shared/_Layout.cshtml
@@ -7,7 +7,7 @@
<meta-keywords>
<meta name="generator" content="grandnode">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
- @RenderSection("meta", required: false)
+ @await RenderSectionAsync("meta", required: false)
<head-custom>
<partial name="Head" />
<vc:widget widget-zone="head_html_tag" additional-data="null"></vc:widget>
@@ -16,7 +16,7 @@
<partial name="Partials/Favicons" />
<resources asp-type="HeadLink" />
<resources asp-type="HeadScript" />
- @RenderSection("head", required: false)
+ @await RenderSectionAsync("head", required: false)
</head>
<body>
<resources asp-type="ScriptHeader" />
@@ -77,7 +77,7 @@
<div class="container right-container">
@if (IsSectionDefined("Breadcrumb"))
{
- @RenderSection("Breadcrumb")
+ @await RenderSectionAsync("Breadcrumb")
}
@RenderBody()
</div>
diff --git a/src/Plugins/Theme.Modern/Views/Modern/Shared/_TwoColumns.cshtml b/src/Plugins/Theme.Modern/Views/Modern/Shared/_TwoColumns.cshtml
index 079bb44a9..1483e7a72 100644
--- a/src/Plugins/Theme.Modern/Views/Modern/Shared/_TwoColumns.cshtml
+++ b/src/Plugins/Theme.Modern/Views/Modern/Shared/_TwoColumns.cshtml
@@ -31,14 +31,14 @@
@if (IsSectionDefined("Breadcrumb"))
{
@section Breadcrumb {
- @RenderSection("Breadcrumb")
+ @await RenderSectionAsync("Breadcrumb")
}
}
@section meta {
- @RenderSection("meta", required: false)
+ @await RenderSectionAsync("meta", required: false)
}
@section head {
- @RenderSection("head", required: false)
+ @await RenderSectionAsync("head", required: false)
<script asp-location="Footer" asp-order="301" src="/Plugins/Theme.Modern/Content/script/catalog.js"></script>
}
@if (!string.IsNullOrEmpty(currentCategoryId))
@@ -54,13 +54,13 @@
<div class="modal-close" onclick="closeLeftSide()"><b-icon icon="x"></b-icon></div>
@if (IsSectionDefined("left"))
{
- @RenderSection("left")
+ @await RenderSectionAsync("left")
}
else
{
if (IsSectionDefined("filters"))
{
- @RenderSection("filters")
+ @await RenderSectionAsync("filters")
}
@await Component.InvokeAsync("Widget", new { widgetZone = "left_side_column_before" })