public async Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; string areaName = AreaRegistration.CurrentPackage.AreaName; ControlPanelConfigData config = await ControlPanelConfigDataProvider.GetConfigAsync(); scripts.AddConfigOption(areaName, "PageControlMod", PageControlMod); scripts.AddConfigOption(areaName, "W3CUrl", config.W3CUrl); }
public async Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; string area = AreaRegistration.CurrentPackage.AreaName; ConfigData config = await ConfigDataProvider.GetConfigAsync(); scripts.AddConfigOption(area, "ExcludedPagesCss", config.ExcludedPagesCss); scripts.AddConfigOption(area, "IncludedPagesCss", config.IncludedPagesCss); }
public async Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; Package package = AreaRegistration.CurrentPackage; string area = package.AreaName; SkinImages skinImages = new SkinImages(); scripts.AddLocalization(area, "msgOnlineTT", this.__ResStr("online", "User is online and can receive messages")); scripts.AddLocalization(area, "msgOfflineTT", this.__ResStr("offline", "User is offline and can't receive messages - If you send a message it will be stored and shown to the user at a later time")); scripts.AddLocalization(area, "msgNotSeenTT", this.__ResStr("notSeen", "This message has not been seen")); scripts.AddConfigOption(area, "msgOnlineIcon", await skinImages.FindIcon_PackageAsync("Online.png", package)); scripts.AddConfigOption(area, "msgOfflineIcon", await skinImages.FindIcon_PackageAsync("Offline.png", package)); scripts.AddConfigOption(area, "msgNotSeenIcon", await skinImages.FindIcon_PackageAsync("NotSeen.png", package)); }
/// <summary> /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page. /// </summary> /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param> public async Task AddSupportAsync(YetaWFManager manager) { RecaptchaV2Config config = await RecaptchaV2Config.LoadRecaptchaV2ConfigAsync(); if (string.IsNullOrWhiteSpace(config.PublicKey)) { throw new InternalError("The Recaptcha configuration settings are missing - no public key found"); } ScriptManager scripts = manager.ScriptManager; string area = AreaRegistration.CurrentPackage.AreaName; scripts.AddConfigOption(area, "SiteKey", config.PublicKey); scripts.AddConfigOption(area, "Theme", config.GetTheme()); scripts.AddConfigOption(area, "Size", config.GetSize()); }
public Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; string areaName = AreaRegistration.CurrentPackage.AreaName; scripts.AddConfigOption(areaName, "UrlArg", UrlArg); return(Task.CompletedTask); }
/// <summary> /// Called by the framework so the package can add package specific client-side configuration options and localizations to the page. /// </summary> /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param> public Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; Package package = AreaRegistration.CurrentPackage; string areaName = AreaRegistration.CurrentPackage.AreaName; scripts.AddConfigOption(areaName, "LoaderGif", manager.GetCDNUrl(manager.AddOnManager.GetAddOnNamedUrl(package.AreaName, "no-margin-for-errors.com.prettyLoader") + "images/prettyLoader/ajax-loader.gif")); return(Task.CompletedTask); }
/// <summary> /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page. /// </summary> /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param> public Task AddSupportAsync(YetaWFManager manager) { ScriptManager scripts = manager.ScriptManager; string area = AreaRegistration.CurrentPackage.AreaName; scripts.AddConfigOption(area, "Localization", manager.CurrentSite.Localization); scripts.AddLocalization(area, "Languages", YetaWF.Core.Models.MultiString.LanguageIdList); return(Task.CompletedTask); }