Exemplo n.º 1
0
 public ThemeContext(ICurrentActivity currentActivity, IGenericAttributeService genericAttributeService,
     WebInformationSettings webInformationSettings, IThemeProvider themeProvider)
 {
     this._currentActivity = currentActivity;
     this._genericAttributeService = genericAttributeService;
     this._webInformationSettings = webInformationSettings;
     this._themeProvider = themeProvider;
 }
 public EmailAccountController(IEmailAccountService emailAccountService,
     ILocalizationService localizationService, ISettingService settingService,
     IEmailSender emailSender,
     EmailAccountSettings emailAccountSettings, WebInformationSettings webSettings,
     IPermissionService permissionService)
 {
     this._emailAccountService = emailAccountService;
     this._localizationService = localizationService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailSender = emailSender;
     this._settingService = settingService;
     this._webSettings = webSettings;
     this._permissionService = permissionService;
 }
Exemplo n.º 3
0
 public SettingsController(ISettingService settingService,
     IPermissionService permissionService,
     IThemeProvider themeProvider,
     CatalogSettings catalogSettings,
     WebInformationSettings webInformationSettings,
     SeoSettings seoSettings,
     AnalysisNSocialNetworkSettings analysisNSocialNetworkSettings)
 {
     _permissionService = permissionService;
     _settingService = settingService;
     _themeProvider = themeProvider;
     _catalogSettings = catalogSettings;
     _webInformationSettings = webInformationSettings;
     _analysisNSocialNetworkSettings = analysisNSocialNetworkSettings;
     _seoSettings = seoSettings;
 }
Exemplo n.º 4
0
        public MessageTokenProvider(ILanguageService languageService,
            ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IEmailAccountService emailAccountService,
            IWebHelper webHelper,
            ICurrentActivity currentActivity,
            MessageTemplatesSettings templatesSettings,
            EmailAccountSettings emailAccountSettings,
            WebInformationSettings webSettings)
        {
            this._languageService = languageService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._emailAccountService = emailAccountService;
            this._webHelper = webHelper;
            this._currentActivity = currentActivity;

            this._webSettings = webSettings;
            this._templatesSettings = templatesSettings;
            this._emailAccountSettings = emailAccountSettings;
        }
Exemplo n.º 5
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="webInformationSettings">Store information settings</param>
 /// <param name="currentActivity">Work context</param>
 public MobileDeviceHelper(WebInformationSettings webInformationSettings,
     ICurrentActivity currentActivity)
 {
     this._webInformationSettings = webInformationSettings;
     this._currentActivity = currentActivity;
 }
Exemplo n.º 6
0
 public KeepAliveTask(WebInformationSettings webInformationSettings)
 {
     this._webInformationSettings = webInformationSettings;
 }
Exemplo n.º 7
0
        public ActionResult Common(WebInformationSettingsModel model)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
                return AccessDeniedView();

            var entity = new WebInformationSettings
            {
                WebName = model.WebName,
                WebUrl = model.WebUrl,
                WebClosed = model.WebClosed,
                WebClosedAllowForAdmins = model.WebClosedAllowForAdmins,
                DefaultWebThemeForDesktops = model.DefaultWebThemeForDesktops,
                AllowAccountToSelectTheme = model.AllowAccountToSelectTheme,
            };

            if (string.IsNullOrEmpty(entity.WebUrl))
                entity.WebUrl = "http://www.cdnvn.com";

            if (!entity.WebUrl.EndsWith("/"))
                entity.WebUrl += "/";

            _settingService.SaveSetting(entity);

            //model.WebUrl = entity.WebUrl;
            //model.AvailableWebThemeForDesktops = _themeProvider
            //    .GetThemeConfigurations()
            //    .Where(x => !x.MobileTheme)
            //    .Select(x =>
            //    {
            //        return new SelectListItem
            //        {
            //            Text = x.ThemeTitle,
            //            Value = x.ThemeName,
            //            Selected = x.ThemeName.Equals(_webInformationSettings.DefaultWebThemeForDesktops, StringComparison.InvariantCultureIgnoreCase)
            //        };
            //    }).ToList();

            return RedirectToAction("Common");
        }