Webiant Logo Webiant Logo
  1. No results found.

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

AppSettings.cshtml

@model AppSettingsModel

@{
    ViewBag.PageTitle = T("Admin.Configuration.AppSettings").Text;
    NopHtml.SetActiveMenuItemSystemName("App settings");

    const string hideCacheBlockAttributeName = "AppSettingsPage.HideCacheBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCacheBlock = await genericAttributeService.GetAttributeAsync(customer, hideCacheBlockAttributeName);
    const string hideHostingBlockAttributeName = "AppSettingsPage.HideHostingBlock";
    var hideHostingBlock = await genericAttributeService.GetAttributeAsync(customer, hideHostingBlockAttributeName);
    const string hideDistributedCacheBlockAttributeName = "AppSettingsPage.HideDistributedCacheBlock";
    var hideDistributedCacheBlock = await genericAttributeService.GetAttributeAsync(customer, hideDistributedCacheBlockAttributeName);
    const string hideAzureBlobBlockAttributeName = "AppSettingsPage.HideAzureBlobBlock";
    var hideAzureBlobBlock = await genericAttributeService.GetAttributeAsync(customer, hideAzureBlobBlockAttributeName);
    const string hideInstallationBlockAttributeName = "AppSettingsPage.HideInstallationBlock";
    var hideInstallationBlock = await genericAttributeService.GetAttributeAsync(customer, hideInstallationBlockAttributeName);
    const string hidePluginBlockAttributeName = "AppSettingsPage.HidePluginBlock";
    var hidePluginBlock = await genericAttributeService.GetAttributeAsync(customer, hidePluginBlockAttributeName);
    const string hideCommonBlockAttributeName = "AppSettingsPage.HideCommonBlock";
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);
    const string hideDataBlockAttributeName = "AppSettingsPage.HideDataBlock";
    var hideDataBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideDataBlockAttributeName);

    const string hideWebOptimizerBlockAttributeName = "AppSettingsPage.HideWebOptimizerBlock";
    var hideWebOptimizerBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideWebOptimizerBlockAttributeName);

}

@T("Admin.Configuration.AppSettings")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AppSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(SettingModeViewComponent))

@T("Admin.Configuration.AppSettings.Description", Docs.AppSettings)

@await Html.PartialAsync("_AppSettings.Data", Model) @await Html.PartialAsync("_AppSettings.Cache", Model) @await Html.PartialAsync("_AppSettings.DistributedCache", Model) @await Html.PartialAsync("_AppSettings.Hosting", Model) @await Html.PartialAsync("_AppSettings.AzureBlob", Model) @await Html.PartialAsync("_AppSettings.Installation", Model) @await Html.PartialAsync("_AppSettings.Plugin", Model) @await Html.PartialAsync("_AppSettings.Common", Model) @await Html.PartialAsync("_AppSettings.WebOptimizer", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.AppSettingsBlock, additionalData = Model })