Changeset 8295 for extensions/FacebookPlug/Plugin/include/picture.inc.php
- Timestamp:
- Dec 24, 2010, 6:00:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/include/picture.inc.php
r8282 r8295 34 34 { 35 35 $tpl = 'social.plugin.facepile'; 36 $type = $conf['fbp']['social_plugin_facepile']['url_type'];37 36 } 38 37 else if ($conf['fbp']['social_plugin_like_button']['enabled']) 39 38 { 40 39 $tpl = 'social.plugin.like.button'; 41 $type = $conf['fbp']['social_plugin_like_button']['url_type']; 40 } 41 else if ($conf['fbp']['social_plugin_comments']['enabled']) 42 { 43 $tpl = 'social.plugin.comments'; 42 44 } 43 45 else … … 50 52 // Always use full url for FB social plugin 51 53 set_make_full_url(); 52 if ($ type== 'image')54 if ($conf['fbp']['picture_url_type'] == 'image') 53 55 { 54 56 $fbp_url_picture = get_element_url($current_picture); … … 60 62 unset_make_full_url(); 61 63 $template->assign('fbp_url_picture', $fbp_url_picture); 64 $template->assign('fbp_urlencode_picture', urlencode($fbp_url_picture)); 62 65 63 66 // XFBML implementation … … 72 75 global $conf; 73 76 74 if ($conf['fbp']['social_plugin_like_button']['enabled'] )77 if ($conf['fbp']['social_plugin_like_button']['enabled'] or $conf['fbp']['social_plugin_comments']['enabled']) 75 78 { 76 79 if ($conf['fbp']['allow_fb_access_private_page']) … … 93 96 } 94 97 95 if ($conf['fbp']['social_plugin_like_button']['enabled'] or $conf['fbp']['social_plugin_facepile']['enabled'] )98 if ($conf['fbp']['social_plugin_like_button']['enabled'] or $conf['fbp']['social_plugin_facepile']['enabled'] or $conf['fbp']['social_plugin_comments']['enabled']) 96 99 { 97 100 //~ add_event_handler('loc_begin_picture', 'fbp_loc_begin_picture');
Note: See TracChangeset
for help on using the changeset viewer.