Changeset 20374 for extensions/SocialButtons/include
- Timestamp:
- Jan 25, 2013, 4:51:02 PM (11 years ago)
- Location:
- extensions/SocialButtons/include
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/include/facebook.inc.php
r20358 r20374 2 2 defined('SOCIALBUTT_PATH') or die('Hacking attempt!'); 3 3 4 function socialbutt_facebook($basename, $root_url, &$tpl_vars )4 function socialbutt_facebook($basename, $root_url, &$tpl_vars, &$buttons) 5 5 { 6 6 global $conf, $template, $user; … … 42 42 43 43 $template->set_filename('facebook_button', realpath(SOCIALBUTT_PATH .'template/facebook.tpl')); 44 return'facebook_button';44 $buttons[] = 'facebook_button'; 45 45 } 46 46 -
extensions/SocialButtons/include/google.inc.php
r20358 r20374 2 2 defined('SOCIALBUTT_PATH') or die('Hacking attempt!'); 3 3 4 function socialbutt_google($basename, $root_url, &$tpl_vars )4 function socialbutt_google($basename, $root_url, &$tpl_vars, &$buttons) 5 5 { 6 6 global $conf, $template, $user; … … 43 43 44 44 $template->set_filename('google_button', realpath(SOCIALBUTT_PATH .'template/google.tpl')); 45 return'google_button';45 $buttons[] = 'google_button'; 46 46 } 47 47 -
extensions/SocialButtons/include/install.inc.php
r20358 r20374 31 31 'layout' => 'button_count', 32 32 ), 33 'pinterest' => array( 34 'enabled' => true, 35 'layout' => 'horizontal', 36 'img_size' => 'Original', 37 ), 33 38 ); 34 39 … … 53 58 } 54 59 55 56 60 $conf['SocialButtons'] = serialize($default_config); 57 61 conf_update_param('SocialButtons', $conf['SocialButtons']); 62 } 63 else 64 { 65 $new_conf = unserialize($conf['SocialButtons']); 66 if (empty($new_conf['pinterest'])) 67 { 68 $new_conf['pinterest'] = array( 69 'enabled' => true, 70 'layout' => 'horizontal', 71 'img_size' => 'Original', 72 ); 73 $conf['SocialButtons'] = serialize($new_conf); 74 conf_update_param('SocialButtons', $conf['SocialButtons']); 75 } 58 76 } 59 77 } -
extensions/SocialButtons/include/tumblr.inc.php
r20358 r20374 2 2 defined('SOCIALBUTT_PATH') or die('Hacking attempt!'); 3 3 4 function socialbutt_tumblr($basename, $root_url, &$tpl_vars )4 function socialbutt_tumblr($basename, $root_url, &$tpl_vars, &$buttons) 5 5 { 6 global $conf, $template , $user;6 global $conf, $template; 7 7 8 8 $tumblr_css = array( … … 51 51 52 52 $template->set_filename('tumblr_button', realpath(SOCIALBUTT_PATH .'template/tumblr.tpl')); 53 return'tumblr_button';53 $buttons[] = 'tumblr_button'; 54 54 } 55 55 -
extensions/SocialButtons/include/twitter.inc.php
r20358 r20374 2 2 defined('SOCIALBUTT_PATH') or die('Hacking attempt!'); 3 3 4 function socialbutt_twitter($basename, $root_url, &$tpl_vars )4 function socialbutt_twitter($basename, $root_url, &$tpl_vars, &$buttons) 5 5 { 6 6 global $conf, $template, $user; … … 31 31 32 32 $template->set_filename('twitter_button', realpath(SOCIALBUTT_PATH .'template/twitter.tpl')); 33 return'twitter_button';33 $buttons[] = 'twitter_button'; 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.