mirror of
https://github.com/Piwigo/Piwigo-Social-Buttons.git
synced 2026-08-07 01:12:48 +02:00
simplyfy code, add noscript fallback for twitter
git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@20406 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -13,7 +13,6 @@ function socialbutt_pinterest($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
|
||||
// config
|
||||
$tpl_vars['PINTEREST'] = $conf['SocialButtons']['pinterest'];
|
||||
$tpl_vars['PINTEREST']['copyright'] = ' (from <a href="'.$root_url.'">'.$conf['gallery_title'].'</a>)';
|
||||
$tpl_vars['PINTEREST']['title'] = $picture['current']['TITLE'];
|
||||
|
||||
if ($conf['SocialButtons']['pinterest']['img_size'] == 'Original')
|
||||
|
||||
@@ -5,22 +5,8 @@ function socialbutt_tumblr($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
{
|
||||
global $conf, $template;
|
||||
|
||||
$tumblr_css = array(
|
||||
'share_1' => 'width:81px; height:20px;',
|
||||
'share_2' => 'width:61px; height:20px;',
|
||||
'share_3' => 'width:129px; height:20px;',
|
||||
'share_4' => 'width:20px; height:20px;',
|
||||
'share_1T' => 'width:81px; height:20px;',
|
||||
'share_2T' => 'width:61px; height:20px;',
|
||||
'share_3T' => 'width:129px; height:20px;',
|
||||
'share_4T' => 'width:20px; height:20px;',
|
||||
);
|
||||
|
||||
|
||||
// config
|
||||
$tpl_vars['TUMBLR'] = $conf['SocialButtons']['tumblr'];
|
||||
$tpl_vars['TUMBLR']['css'] = $tumblr_css[ $conf['SocialButtons']['tumblr']['type'] ];
|
||||
$tpl_vars['TUMBLR']['copyright'] = ' (from <a href="'.$root_url.'">'.$conf['gallery_title'].'</a>)';
|
||||
|
||||
// button on piture page
|
||||
if ($basename == 'picture')
|
||||
|
||||
Reference in New Issue
Block a user