Changeset 24788 for extensions/SocialButtons/main.inc.php
- Timestamp:
- Oct 6, 2013, 9:05:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/main.inc.php
r24758 r24788 94 94 function socialbutt_add_button() 95 95 { 96 global $conf, $template ;96 global $conf, $template, $picture; 97 97 98 98 $basename = script_basename(); … … 121 121 $tpl_vars = array( 122 122 'share_url' => $share_url, 123 'basename' => $basename, 123 124 'position' => $conf['SocialButtons']['position'], 124 125 'light' => $conf['SocialButtons']['light'], 125 126 'copyright' => '(from <a href="'.$share_url.'">'.$conf['gallery_title'].'</a>)', 126 127 ); 128 129 if ($basename == 'picture') 130 { 131 if ($conf['SocialButtons']['img_size'] == 'Original') 132 { 133 $tpl_vars['source'] = $picture['current']['src_image']->get_url(); 134 } 135 else 136 { 137 $tpl_vars['source'] = DerivativeImage::url($conf['SocialButtons']['img_size'], $picture['current']['src_image']); 138 } 139 } 140 141 127 142 $buttons = array(); 128 129 143 130 144 if ($conf['SocialButtons']['google']['enabled'])
Note: See TracChangeset
for help on using the changeset viewer.