Changeset 8307


Ignore:
Timestamp:
Dec 26, 2010, 7:43:39 PM (13 years ago)
Author:
rub
Message:

Fix: No like button or comments on slideshow

File:
1 edited

Legend:

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

    r8295 r8307  
    3535    $tpl = 'social.plugin.facepile';
    3636  }
    37   else if ($conf['fbp']['social_plugin_like_button']['enabled'])
     37  else if (! $page['slideshow'])
    3838  {
    39     $tpl = 'social.plugin.like.button';
     39    if ($conf['fbp']['social_plugin_like_button']['enabled'])
     40    {
     41      $tpl = 'social.plugin.like.button';
     42    }
     43    else if ($conf['fbp']['social_plugin_comments']['enabled'])
     44    {
     45      $tpl = 'social.plugin.comments';
     46    }
    4047  }
    41   else if ($conf['fbp']['social_plugin_comments']['enabled'])
    42   {
    43     $tpl = 'social.plugin.comments';
    44   }
    45   else
     48
     49  if (empty($tpl))
    4650  {
    4751    // nothing to do
Note: See TracChangeset for help on using the changeset viewer.