From: Marcel Werk Date: Wed, 15 Jun 2016 15:03:24 +0000 (+0200) Subject: Added option for configuration of the share providers X-Git-Tag: 3.0.0_Beta_1~1430 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bdc6630a23e6d9888674bf41361532a036e746ce;p=GitHub%2FWoltLab%2FWCF.git Added option for configuration of the share providers --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 74689c3ceb..f617099304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -152,6 +152,7 @@ * Removed obsolete `$activeMenuItem` in frontend forms/pages * Obsolete interface `wcf\page\ITrackablePage` deprecated. * PIP `wcf\system\package\plugin\SitemapPackageInstallationPlugin` removed. +* Option `share_buttons_show_count` removed. #### Documentation diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 96bb765286..ac7adc4c39 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -988,11 +988,34 @@ redis:cache_source_redis_host,!cache_source_memcached_host]]> 1 - + + boolean 1 + + providers + diff --git a/com.woltlab.wcf/templates/shareButtons.tpl b/com.woltlab.wcf/templates/shareButtons.tpl index 2be87763a9..12ef165e69 100644 --- a/com.woltlab.wcf/templates/shareButtons.tpl +++ b/com.woltlab.wcf/templates/shareButtons.tpl @@ -1,54 +1,71 @@
+ {assign var='__share_buttons_providers' value="\n"|explode:SHARE_BUTTONS_PROVIDERS} + diff --git a/constants.php b/constants.php index 0969537ad2..1794b5359e 100644 --- a/constants.php +++ b/constants.php @@ -135,7 +135,7 @@ define('SHOW_SIGNATURE_DEFAULT_VALUE', 1); define('MODULE_EDIT_HISTORY', 1); define('EDIT_HISTORY_EXPIRATION', 90); define('ENABLE_SHARE_BUTTONS', 1); -define('SHARE_BUTTONS_SHOW_COUNT', 1); +define('SHARE_BUTTONS_PROVIDERS', 1); define('MODULE_IMAGE_PROXY', 0); define('IMAGE_PROXY_EXPIRATION', 14); define('ENABLE_CENSORSHIP', 0); diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 24ff34d29b..ecb42b8c2d 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -859,7 +859,6 @@ - diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index d913f3eb42..9f7dfecdb1 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -860,7 +860,6 @@ Examples for medium ID detection: -