<options>module_wcf_ad</options>
</option>
<option name="enable_polling">
- <categoryname>general.page</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>1</defaultvalue>
- <enableoptions>enable_desktop_notifications,desktop_notification_package_id</enableoptions>
- </option>
- <option name="enable_desktop_notifications">
<categoryname>general.page</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
<option name="url_legacy_mode"/>
<option name="enable_censorship"/>
<option name="search_use_captcha" />
+ <option name="enable_desktop_notifications"/>
</delete>
</data>
\define('ARTICLE_ENABLE_VISIT_TRACKING', 1);
\define('ENABLE_AD_ROTATION', 1);
\define('ENABLE_POLLING', 1);
-\define('ENABLE_DESKTOP_NOTIFICATIONS', 1);
\define('FB_SHARE_APP_ID', '');
\define('MODULE_CONTACT_FORM', 0);
\define('SITEMAP_INDEX_TIME_FRAME', 365);
// The captcha option related to the removed SearchForm was removed in 5.5.
\define('SEARCH_USE_CAPTCHA', 0);
+
+ // The prompt for desktop notifications is no longer obtrusive since 5.5.
+ // https://github.com/WoltLab/WCF/issues/4806
+ \define('ENABLE_DESKTOP_NOTIFICATIONS', 1);
}
/**
*/
public function useDesktopNotifications()
{
- if (!ENABLE_DESKTOP_NOTIFICATIONS) {
- return false;
- } elseif (ApplicationHandler::getInstance()->isMultiDomainSetup()) {
+ if (ApplicationHandler::getInstance()->isMultiDomainSetup()) {
$application = ApplicationHandler::getInstance()->getApplicationByID(DESKTOP_NOTIFICATION_PACKAGE_ID);
// mismatch, default to Core
if ($application === null) {
<item name="wcf.acp.option.fb_share_app_id.description"><![CDATA[Die App ID kann direkt über das <a href="https://developers.facebook.com/docs/apps/register?locale=de_DE" class="externalURL">App-Dashboard angefordert werden</a>, und wird für die Open Graph-Tags zum Teilen verwendet.]]></item>
<item name="wcf.acp.option.enable_polling"><![CDATA[Hintergrund-Aktualisierung von Benachrichtigungen aktivieren]]></item>
<item name="wcf.acp.option.enable_polling.description"><![CDATA[Neue Benachrichtigungen werden in periodischen Abständen automatisch abgerufen. Das Aktualisierungs-Intervall beträgt 5 Minuten und wird bei Inaktivität schrittweise auf 15 Minuten reduziert.]]></item>
- <item name="wcf.acp.option.enable_desktop_notifications"><![CDATA[Desktop-Benachrichtigungen verwenden]]></item>
- <item name="wcf.acp.option.enable_desktop_notifications.description"><![CDATA[Neue Benachrichtigungen, die im Hintergrund abgerufen wurden, werden als kleines Benachrichtigungsfenster unmittelbar angezeigt.]]></item>
<item name="wcf.acp.option.module_contact_form"><![CDATA[Kontaktformular aktivieren]]></item>
<item name="wcf.acp.option.module_contact_form.description"><![CDATA[Aktiviert das Kontaktformular, nach Aktivierung können Sie die <a href="{link controller='ContactSettings'}{/link}">Eingabefelder und Empfänger</a> individuell konfigurieren.]]></item>
<item name="wcf.acp.option.module_trophy"><![CDATA[Trophäen]]></item>
<item name="wcf.user.panel.markAsRead" />
<item name="wcf.user.profile.user" />
<item name="wcf.user.profile.customization" />
+ <item name="wcf.acp.option.enable_desktop_notifications"/>
+ <item name="wcf.acp.option.enable_desktop_notifications.description"/>
</delete>
</language>
<item name="wcf.acp.option.fb_share_app_id.description"><![CDATA[You can obtain the app ID from your <a href="https://developers.facebook.com/docs/apps/register?locale=en_US" class="externalURL">app’s dashboard</a>, and is used with the Open Graph tags for sharing.]]></item>
<item name="wcf.acp.option.enable_polling"><![CDATA[Enable Background Notifications]]></item>
<item name="wcf.acp.option.enable_polling.description"><![CDATA[Periodically retrieves new notifications in the background, requests are dispatched every 5 minutes. Interval decreases down to 15 minutes on inactivity.]]></item>
- <item name="wcf.acp.option.enable_desktop_notifications"><![CDATA[Enable Desktop Notifications]]></item>
- <item name="wcf.acp.option.enable_desktop_notifications.description"><![CDATA[Display a small window for new notifications that have been retrieved in the background.]]></item>
<item name="wcf.acp.option.module_contact_form"><![CDATA[Enable contact form]]></item>
<item name="wcf.acp.option.module_contact_form.description"><![CDATA[Enables the contact form, once enabled you can customize the <a href="{link controller='ContactSettings'}{/link}">input fields and recipients</a> to better suit your needs.]]></item>
<item name="wcf.acp.option.module_trophy"><![CDATA[Trophies]]></item>
<item name="wcf.user.panel.markAsRead" />
<item name="wcf.user.profile.user" />
<item name="wcf.user.profile.customization" />
+ <item name="wcf.acp.option.enable_desktop_notifications"/>
+ <item name="wcf.acp.option.enable_desktop_notifications.description"/>
</delete>
</language>