Ignore:
Timestamp:
Dec 24, 2010, 6:00:49 PM (13 years ago)
Author:
rub
Message:

Add comments social plugin.
Fix FB connexion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/include/picture.inc.php

    r8282 r8295  
    3434  {
    3535    $tpl = 'social.plugin.facepile';
    36     $type = $conf['fbp']['social_plugin_facepile']['url_type'];
    3736  }
    3837  else if ($conf['fbp']['social_plugin_like_button']['enabled'])
    3938  {
    4039    $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';
    4244  }
    4345  else
     
    5052  // Always use full url for FB social plugin
    5153  set_make_full_url();
    52   if ($type == 'image')
     54  if ($conf['fbp']['picture_url_type'] == 'image')
    5355  {
    5456    $fbp_url_picture = get_element_url($current_picture);
     
    6062  unset_make_full_url();
    6163  $template->assign('fbp_url_picture', $fbp_url_picture);
     64  $template->assign('fbp_urlencode_picture', urlencode($fbp_url_picture));
    6265
    6366  // XFBML implementation
     
    7275  global $conf;
    7376
    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'])
    7578  {
    7679    if ($conf['fbp']['allow_fb_access_private_page'])
     
    9396}
    9497
    95 if ($conf['fbp']['social_plugin_like_button']['enabled'] or $conf['fbp']['social_plugin_facepile']['enabled'])
     98if ($conf['fbp']['social_plugin_like_button']['enabled'] or $conf['fbp']['social_plugin_facepile']['enabled'] or $conf['fbp']['social_plugin_comments']['enabled'])
    9699{
    97100  //~ add_event_handler('loc_begin_picture', 'fbp_loc_begin_picture');
Note: See TracChangeset for help on using the changeset viewer.