@model FooterModel @using Nop.Core @using Nop.Core.Domain.Tax @using Nop.Core.Domain.Topics @using Nop.Services.Configuration; @using Nop.Services.Localization @using Nop.Services.Media; @inject IWorkContext workContext @inject ILocalizationService localizationService @inject IPictureService pictureService @inject IStoreContext storeContext @inject ISettingService settingService @inject IThemeContext themeContext @{ var themeName = await themeContext.GetWorkingThemeNameAsync(); var language = await workContext.GetWorkingLanguageAsync(); var store = await storeContext.GetCurrentStoreAsync(); var storeName = await localizationService.GetLocalizedAsync(store, s => s.Name); var columns = 1; var hideDesignedByNopStation = await settingService.GetSettingByKeyAsync( "CarHavenSettings.HideDesignedByNopStationAtFooter", storeId: store.Id,loadSharedValueIfNotFound: true); var showSupportedCards = await settingService.GetSettingByKeyAsync( "CarHavenSettings.ShowSupportedCardsAtFooter", storeId: store.Id, loadSharedValueIfNotFound: true); var supportedCardsImageUrl = ""; var pictureId = 0; if (hideDesignedByNopStation) { columns++; } if (showSupportedCards) { columns++; pictureId = await settingService.GetSettingByKeyAsync("CarHavenSettings.FooterSupportedCardsPictureId", storeId: store.Id, loadSharedValueIfNotFound: true ); supportedCardsImageUrl = await pictureService.GetPictureUrlAsync(pictureId); } if (!Model.HidePoweredByNopCommerce) columns++; }