mirror of
https://github.com/Piwigo/Piwigo-Social-Buttons.git
synced 2026-08-07 09:22:45 +02:00
add reddit button
git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@24758 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -37,6 +37,11 @@ function socialbutt_install()
|
||||
'layout' => 'horizontal',
|
||||
'img_size' => 'Original',
|
||||
),
|
||||
'reddit' => array(
|
||||
'enabled' => true,
|
||||
'type' => 'interactive',
|
||||
'community' => null,
|
||||
),
|
||||
);
|
||||
|
||||
if (isset($conf['TumblrShare']))
|
||||
@@ -75,6 +80,15 @@ function socialbutt_install()
|
||||
);
|
||||
}
|
||||
|
||||
if (empty($new_conf['reddit']))
|
||||
{
|
||||
$new_conf['reddit'] = array(
|
||||
'enabled' => false,
|
||||
'type' => 'interactive',
|
||||
'community' => null,
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($new_conf['on_index']))
|
||||
{
|
||||
$new_conf['on_index'] = true;
|
||||
|
||||
Reference in New Issue
Block a user