Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Media.cshtml

@model MediaSettingsModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.Settings.Media").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Media settings");
}

@{
    const string hideCommonBlockAttributeName = "MediaSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hideProductBlockAttributeName = "MediaSettingsPage.HideProductBlock";
    var hideProductBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductBlockAttributeName);

    const string hideOtherPagesBlockAttributeName = "MediaSettingsPage.HideOtherPagesBlock";
    var hideOtherPagesBlock = await genericAttributeService.GetAttributeAsync(customer, hideOtherPagesBlockAttributeName);
}

@T("Admin.Configuration.Settings.Media")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.MediaSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Media.Common", Model) @await Html.PartialAsync("_Media.Product", Model) @await Html.PartialAsync("_Media.OtherPages", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.MediaSettingsDetailsBlock, additionalData = Model })