Webiant Logo Webiant Logo
  1. No results found.

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

GeneralCommon.cshtml

@model GeneralCommonSettingsModel

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

@{
    var showTour = ViewBag.ShowTour ?? false;

    const string hideCommonBlockAttributeName = "GeneralCommonSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hideFaviconBlockAttributeName = "GeneralCommonSettingsPage.HideFaviconBlock";
    var hideFaviconBlock = await genericAttributeService.GetAttributeAsync(customer, hideFaviconBlockAttributeName);

    const string hideTopMenuItemsBlockAttributeName = "GeneralCommonSettingsPage.HideTopMenuItemsBlock";
    var hideTopMenuItemsBlock = await genericAttributeService.GetAttributeAsync(customer, hideTopMenuItemsBlockAttributeName);

    const string hideFooterItemsBlockAttributeName = "GeneralCommonSettingsPage.HideFooterItemsBlock";
    var hideFooterItemsBlock = await genericAttributeService.GetAttributeAsync(customer, hideFooterItemsBlockAttributeName);

    const string hideSocialMediaBlockAttributeName = "GeneralCommonSettingsPage.HideSocialMediaBlock";
    var hideSocialMediaBlock = await genericAttributeService.GetAttributeAsync(customer, hideSocialMediaBlockAttributeName);

    const string hideSitemapBlockAttributeName = "GeneralCommonSettingsPage.HideSitemapBlock";
    var hideSitemapBlock = await genericAttributeService.GetAttributeAsync(customer, hideSitemapBlockAttributeName);

    const string hideSEOBlockAttributeName = "GeneralCommonSettingsPage.HideSEOBlock";
    var hideSEOBlock = await genericAttributeService.GetAttributeAsync(customer, hideSEOBlockAttributeName);

    const string hideMinificationBlockAttributeName = "GeneralCommonSettingsPage.HideMinificationBlock";
    var hideMinificationBlock = await genericAttributeService.GetAttributeAsync(customer, hideMinificationBlockAttributeName);

    const string hideSecurityBlockAttributeName = "GeneralCommonSettingsPage.HideSecurityBlock";
    var hideSecurityBlock = await genericAttributeService.GetAttributeAsync(customer, hideSecurityBlockAttributeName);

    const string hideRobotsTxtBlockAttributeName = "GeneralCommonSettingsPage.HideRobotsTxtBlock";
    var hideRobotsTxtBlock = await genericAttributeService.GetAttributeAsync(customer, hideRobotsTxtBlockAttributeName);

    const string hideCaptchaBlockAttributeName = "GeneralCommonSettingsPage.HideCaptchaBlock";
    var hideCaptchaBlock = await genericAttributeService.GetAttributeAsync(customer, hideCaptchaBlockAttributeName);

    const string hidePDFBlockAttributeName = "GeneralCommonSettingsPage.HidePDFBlock";
    var hidePDFBlock = await genericAttributeService.GetAttributeAsync(customer, hidePDFBlockAttributeName);

    const string hideLocalizationBlockAttributeName = "GeneralCommonSettingsPage.HideLocalizationBlock";
    var hideLocalizationBlock = await genericAttributeService.GetAttributeAsync(customer, hideLocalizationBlockAttributeName);
    
    const string hideCustomHtmlBlockAttributeName = "GeneralCommonSettingsPage.HideCustomHtmlBlock";
    var hideCustomHtmlBlock = await genericAttributeService.GetAttributeAsync(customer, hideCustomHtmlBlockAttributeName);

    const string hideAdminAreaBlockAttributeName = "GeneralCommonSettingsPage.HideAdminAreaBlock";
    var hideAdminAreaBlock = await genericAttributeService.GetAttributeAsync(customer, hideAdminAreaBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.GeneralCommonSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_GeneralCommon.Common", Model) @await Html.PartialAsync("_GeneralCommon.TopMenuItems", Model) @await Html.PartialAsync("_GeneralCommon.FooterItems", Model) @await Html.PartialAsync("_GeneralCommon.SocialMedia", Model) @await Html.PartialAsync("_GeneralCommon.Favicon", Model) @await Html.PartialAsync("_GeneralCommon.Sitemap", Model) @await Html.PartialAsync("_GeneralCommon.Seo", Model) @await Html.PartialAsync("_GeneralCommon.Minification", Model) @await Html.PartialAsync("_GeneralCommon.Security", Model) @await Html.PartialAsync("_GeneralCommon.RobotsTxt", Model) @await Html.PartialAsync("_GeneralCommon.Captcha", Model) @await Html.PartialAsync("_GeneralCommon.Pdf", Model) @await Html.PartialAsync("_GeneralCommon.Localization", Model) @await Html.PartialAsync("_GeneralCommon.CustomHtml", Model) @await Html.PartialAsync("_GeneralCommon.AdminArea", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.GeneralCommonDetailsBlock, additionalData = Model })
@*upload favicon and app icons form*@