Changeset 8386


Ignore:
Timestamp:
Dec 29, 2010, 11:45:21 PM (13 years ago)
Author:
rub
Message:

Add social plugin activity feed
Add convert function on admin page config
Add missing options on social plugins
Add activity tab sheet on admin config page

Location:
extensions/FacebookPlug/Plugin
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/admin.config.php

    r8375 r8386  
    5454               l10n('Advanced'),
    5555               add_url_params($base_url, array('tab' => 'advanced')));
     56$tabsheet->add('activity',
     57               l10n('Activity'),
     58               add_url_params($base_url, array('tab' => 'activity')));
    5659$tabsheet->select($page['tab']);
    5760$tabsheet->assign();
     61
     62function fbp_intval($n)
     63{
     64  return (is_numeric($n) ? $n : null);
     65}
     66
     67function fbp_checked($b)
     68{
     69  return ($b ? 'checked="checked"' : '');
     70}
    5871
    5972// Update
     
    6780    {
    6881      // Like button
    69       $conf['fbp']['social_plugin_like_button']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']) ? false : true;
     82      $conf['fbp']['social_plugin_like_button']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']);
    7083      $conf['fbp']['social_plugin_like_button']['layout'] = $layout[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT']];
    71       $conf['fbp']['social_plugin_like_button']['show_faces'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']) ? false : true;
     84      $conf['fbp']['social_plugin_like_button']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']);
    7285      $conf['fbp']['social_plugin_like_button']['action'] = $action[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION']];
    7386      $conf['fbp']['social_plugin_like_button']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME']];
    7487      // Facepile
    75       $conf['fbp']['social_plugin_facepile']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']) ? false : true;
     88      $conf['fbp']['social_plugin_facepile']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']);
    7689      $conf['fbp']['social_plugin_facepile']['max_rows'] = intval($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS']);
    7790      // Comments
    78       $conf['fbp']['social_plugin_comments']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']) ? false : true;
    79       $conf['fbp']['social_plugin_comments']['numposts'] = intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']);
     91      $conf['fbp']['social_plugin_comments']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']);
     92      $conf['fbp']['social_plugin_comments']['numposts'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']);
    8093      $conf['fbp']['social_plugin_comments']['title'] = $_POST['FBP_SOCIAL_PLUGIN_COMMENTS_TITLE'];
    81       $conf['fbp']['social_plugin_comments']['simple'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']) ? false : true;
    82       $conf['fbp']['social_plugin_comments']['reverse'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']) ? false : true;
    83       $conf['fbp']['social_plugin_comments']['publish_feed'] = empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']) ? false : true;
     94      $conf['fbp']['social_plugin_comments']['simple'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']);
     95      $conf['fbp']['social_plugin_comments']['reverse'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']);
     96      $conf['fbp']['social_plugin_comments']['publish_feed'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']);
     97      // Actvity feed
     98      $conf['fbp']['social_plugin_activity_feed']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED']);
     99      $conf['fbp']['social_plugin_activity_feed']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME']];
     100      $conf['fbp']['social_plugin_activity_feed']['recommendations'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS']);
     101      $conf['fbp']['social_plugin_activity_feed']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER']);
     102      $conf['fbp']['social_plugin_activity_feed']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT']);
    84103      // Like box
    85       $conf['fbp']['social_plugin_like_box']['enabled'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']) ? false : true;
     104      $conf['fbp']['social_plugin_like_box']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']);
    86105      $conf['fbp']['social_plugin_like_box']['url'] = $_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_URL'];
    87106      $conf['fbp']['social_plugin_like_box']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME']];
    88       $conf['fbp']['social_plugin_like_box']['show_faces'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']) ? false : true;
    89       $conf['fbp']['social_plugin_like_box']['stream'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']) ? false : true;
    90       $conf['fbp']['social_plugin_like_box']['header'] = empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']) ? false : true;
    91      
     107      $conf['fbp']['social_plugin_like_box']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']);
     108      $conf['fbp']['social_plugin_like_box']['stream'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']);
     109      $conf['fbp']['social_plugin_like_box']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']);
     110      $conf['fbp']['social_plugin_like_box']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT']);
     111
    92112      // Check
    93113      if ($conf['fbp']['social_plugin_like_button']['enabled'] and $conf['fbp']['social_plugin_comments']['enabled'])
     
    103123    {
    104124      $conf['fbp']['facebook_app_id'] = $_POST['FBP_FACEBOOK_APP_ID'];
    105       $conf['fbp']['async_script'] = empty($_POST['FBP_ASYNC_SCRIPT']) ? false : true;
    106       $conf['fbp']['force_facebook_init'] = empty($_POST['FBP_FORCE_FACEBOOK_INIT']) ? false : true;
     125      $conf['fbp']['async_script'] = ! empty($_POST['FBP_ASYNC_SCRIPT']);
     126      $conf['fbp']['force_facebook_init'] = ! empty($_POST['FBP_FORCE_FACEBOOK_INIT']);
    107127      $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']];
    108       $conf['fbp']['allow_fb_access_private_page'] = empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']) ? false : true;
    109       $conf['fbp']['add_about_informations'] = empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']) ? false : true;
    110       $conf['fbp']['add_group_footer'] = empty($_POST['FBP_ADD_GROUP_FOOTER']) ? false : true;
    111       $conf['fbp']['add_application_footer'] = empty($_POST['FBP_ADD_APPLICATION_FOOTER']) ? false : true;
     128      $conf['fbp']['allow_fb_access_private_page'] = ! empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']);
     129      $conf['fbp']['add_about_informations'] = ! empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']);
     130      $conf['fbp']['add_group_footer'] = ! empty($_POST['FBP_ADD_GROUP_FOOTER']);
     131      $conf['fbp']['add_application_footer'] = ! empty($_POST['FBP_ADD_APPLICATION_FOOTER']);
    112132      break;
    113133    }
     
    145165          (
    146166            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like/',
    147             'ENABLED' => ($conf['fbp']['social_plugin_like_button']['enabled'] ? 'checked="checked"' : ''),
     167            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_button']['enabled']),
    148168            'LAYOUT_OPTIONS' => $layout_l10n,
    149169            'LAYOUT_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['layout'], $layout),
    150             'SHOW_FACES' => ($conf['fbp']['social_plugin_like_button']['show_faces'] ? 'checked="checked"' : ''),
     170            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_button']['show_faces']),
    151171            'ACTION_OPTIONS' => $action_l10n,
    152172            'ACTION_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['action'], $action),
     
    157177          (
    158178            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/facepile/',
    159             'ENABLED' => ($conf['fbp']['social_plugin_facepile']['enabled'] ? 'checked="checked"' : ''),
     179            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_facepile']['enabled']),
    160180            'MAX_ROWS' => $conf['fbp']['social_plugin_facepile']['max_rows'],
    161181          ),
     
    163183          (
    164184            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/comments/',
    165             'ENABLED' => ($conf['fbp']['social_plugin_comments']['enabled'] ? 'checked="checked"' : ''),
     185            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_comments']['enabled']),
    166186            'NUMPOSTS' => $conf['fbp']['social_plugin_comments']['numposts'],
    167187            'TITLE' => $conf['fbp']['social_plugin_comments']['title'],
    168             'SIMPLE' => ($conf['fbp']['social_plugin_comments']['simple'] ? 'checked="checked"' : ''),
    169             'REVERSE' => ($conf['fbp']['social_plugin_comments']['reverse'] ? 'checked="checked"' : ''),
    170             'PUBLISH_FEED' => ($conf['fbp']['social_plugin_comments']['publish_feed'] ? 'checked="checked"' : ''),
     188            'SIMPLE' => fbp_checked($conf['fbp']['social_plugin_comments']['simple']),
     189            'REVERSE' => fbp_checked($conf['fbp']['social_plugin_comments']['reverse']),
     190            'PUBLISH_FEED' => fbp_checked($conf['fbp']['social_plugin_comments']['publish_feed']),
     191          ),
     192       'activity_feed' => array
     193          (
     194            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/activity/',
     195            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['enabled']),
     196            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
     197            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_activity_feed']['colorscheme'], $colorscheme),
     198            'RECOMMENDATIONS' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['recommendations']),
     199            'HEADER' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['header']),
     200            'HEIGHT' => $conf['fbp']['social_plugin_activity_feed']['height'],
    171201          ),
    172202       'like_box' => array
    173203          (
    174204            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like-box/',
    175             'ENABLED' => ($conf['fbp']['social_plugin_like_box']['enabled'] ? 'checked="checked"' : ''),
     205            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_box']['enabled']),
    176206            'URL' => $conf['fbp']['social_plugin_like_box']['url'],
    177207            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
    178208            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_box']['colorscheme'], $colorscheme),
    179             'SHOW_FACES' => ($conf['fbp']['social_plugin_like_box']['show_faces'] ? 'checked="checked"' : ''),
    180             'STREAM' => ($conf['fbp']['social_plugin_like_box']['stream'] ? 'checked="checked"' : ''),
    181             'HEADER' => ($conf['fbp']['social_plugin_like_box']['header'] ? 'checked="checked"' : ''),
     209            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_box']['show_faces']),
     210            'STREAM' => fbp_checked($conf['fbp']['social_plugin_like_box']['stream']),
     211            'HEADER' => fbp_checked($conf['fbp']['social_plugin_like_box']['header']),
     212            'HEIGHT' => $conf['fbp']['social_plugin_like_box']['height'],
    182213          ),
    183214        ));
     
    190221      array(
    191222        'FBP_FACEBOOK_APP_ID' => $conf['fbp']['facebook_app_id'],
    192         'FBP_ASYNC_SCRIPT' => ($conf['fbp']['async_script'] ? 'checked="checked"' : ''),
    193         'FBP_FORCE_FACEBOOK_INIT' => ($conf['fbp']['force_facebook_init'] ? 'checked="checked"' : ''),
     223        'FBP_ASYNC_SCRIPT' => fbp_checked($conf['fbp']['async_script']),
     224        'FBP_FORCE_FACEBOOK_INIT' => fbp_checked($conf['fbp']['force_facebook_init']),
    194225        'FBP_PICTURE_URL_TYPE_OPTIONS' => $picture_url_type_l10n,
    195226        'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type),
    196         'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> ($conf['fbp']['allow_fb_access_private_page'] ? 'checked="checked"' : ''),
    197         'FBP_ADD_ABOUT_INFORMATIONS' => ($conf['fbp']['add_about_informations'] ? 'checked="checked"' : ''),
    198         'FBP_ADD_GROUP_FOOTER' => ($conf['fbp']['add_group_footer'] ? 'checked="checked"' : ''),
    199         'FBP_ADD_APPLICATION_FOOTER' => ($conf['fbp']['add_application_footer'] ? 'checked="checked"' : ''),
     227        'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> fbp_checked($conf['fbp']['allow_fb_access_private_page']),
     228        'FBP_ADD_ABOUT_INFORMATIONS' => fbp_checked($conf['fbp']['add_about_informations']),
     229        'FBP_ADD_GROUP_FOOTER' => fbp_checked($conf['fbp']['add_group_footer']),
     230        'FBP_ADD_APPLICATION_FOOTER' => fbp_checked($conf['fbp']['add_application_footer']),
     231        ));
     232    break;
     233  }
     234  case 'activity' :
     235  {
     236    $template->assign(
     237      $page['tab'],
     238      array(
    200239        ));
    201240    break;
     
    216255$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    217256
    218 
    219257?>
  • extensions/FacebookPlug/Plugin/css/fbp.css

    r8275 r8386  
    1 #fb-xfbml-like-box {
     1#fb-xfbml-activity-feed, #fb-xfbml-like-box {
    22    margin-bottom: 0px;
    33    margin-left: 10px;
  • extensions/FacebookPlug/Plugin/include/conf.inc.php

    r8375 r8386  
    4242    'social_plugin_comments' => array(),
    4343    'social_plugin_like_box' => array(),
     44    'social_plugin_activity_feed' => array(),
    4445  ),
    4546  unserialize($conf['fbp']));
     
    5556    'colorscheme' => 'dark',
    5657    'width' => null,
     58    'font' => null,
     59    'ref' => null,
    5760  ),
    5861  $conf['fbp']['social_plugin_like_button']);
     
    8386  $conf['fbp']['social_plugin_comments']);
    8487
     88$conf['fbp']['social_plugin_activity_feed'] = array_merge(
     89  // default values
     90  array
     91  (
     92    'enabled' => true,
     93    'site' => null,
     94    'colorscheme' => 'dark',
     95    'recommendations' => false,
     96    'header' => true,
     97    'width' => 210,
     98    'height' => null,
     99    'border_color' => null,
     100    'filter' => null,
     101    'ref' => null,
     102  ),
     103  $conf['fbp']['social_plugin_activity_feed']);
     104
    85105$conf['fbp']['social_plugin_like_box'] = array_merge(
    86106  // default values
     
    94114    'header' => true,
    95115    'width' => 210,
     116    'height' => null,
    96117  ),
    97118  $conf['fbp']['social_plugin_like_box']);
  • extensions/FacebookPlug/Plugin/include/header.inc.php

    r8375 r8386  
    6161      (script_basename() == 'index')
    6262      and
    63       ($conf['fbp']['social_plugin_like_box']['enabled'])
     63      ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled'])
    6464      )
    6565  {
     
    7272  global $conf;
    7373
    74   //~ return $do_it or (script_basename() == 'about');
    7574  return
    7675    $do_it
     
    8685        (script_basename() == 'index')
    8786        and
    88         ($conf['fbp']['social_plugin_like_box']['enabled'] /*or $conf['fbp']['']['enabled'] or $conf['fbp']['']['enabled']*/)
     87        ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled'])
     88      )
     89      or
     90      (
     91        (script_basename() == 'admin')
     92        and
     93        ($_GET['page'] == 'plugin')
     94        and
     95        (strtok($_GET['section'], '/') == 'FacebookPlug')
     96        //~ ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled'])
    8997      )
    9098    )
  • extensions/FacebookPlug/Plugin/include/index.inc.php

    r8375 r8386  
    2424}
    2525
    26 /*function fbp_loc_begin_index()
    27 {
    28   global $template;
    29 
    30   $template->set_filename('social.plugin.like.box', FBP_DIR.'/tpl/social.plugin.like.box.tpl');
    31  
    32   //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_BEFORE', 'social.plugin.like.box');
    33   //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_BEGIN', 'social.plugin.like.box');
    34   $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_END', 'social.plugin.like.box');
    35   //~ $template->assign_var_from_handle('PLUGIN_INDEX_CONTENT_AFTER', 'social.plugin.like.box');
    36 
    37   //~ $template->set_filename('social.plugin.like.box', FBP_DIR.'/tpl/social.plugin.like.box.tpl');
    38     //~ $content .= $template->parse('social.plugin.like.box', true);
    39 }*/
    40 
    4126function fbp_blockmanager_register_blocks( $menu_ref_arr )
    4227{
     28  global $conf;
     29 
    4330  $menu = & $menu_ref_arr[0];
    4431  if ($menu->get_id() != 'menubar')
    4532    return;
    46   $menu->register_block(new RegisteredBlock( 'mbFBP', 'social.plugin.like.box', 'FacebookPlug'));
     33
     34  if ($conf['fbp']['social_plugin_activity_feed']['enabled'])
     35  {
     36    $menu->register_block(new RegisteredBlock('mbFBP_activity_feed', 'social.plugin.activity.feed', 'FacebookPlug'));
     37  }
     38  if ($conf['fbp']['social_plugin_like_box']['enabled'])
     39  {
     40    $menu->register_block(new RegisteredBlock('mbFBP_like_box', 'social.plugin.like.box', 'FacebookPlug'));
     41  }
    4742}
    4843
     
    5247
    5348  $menu = & $menu_ref_arr[0];
    54    
    55   if ($block = $menu->get_block('mbFBP'))
     49
     50  foreach (array('mbFBP_activity_feed', 'mbFBP_like_box') as $mbFBPId)
    5651  {
    57     $template->set_template_dir(FBP_DIR.'/tpl/');
    58     $block->template = 'social.plugin.like.box.tpl';
     52    if ($block = $menu->get_block($mbFBPId))
     53    {
     54      $template->set_template_dir(FBP_DIR.'/tpl/');
     55      $block->template = $block->get_block()->get_name().'.tpl';
     56    }
    5957  }
    6058}
    6159
    6260
    63 if ($conf['fbp']['social_plugin_like_box']['enabled'])
     61if ($conf['fbp']['social_plugin_activity_feed']['enabled'] or $conf['fbp']['social_plugin_like_box']['enabled'])
    6462{
    65   //~ add_event_handler('loc_begin_index', 'fbp_loc_begin_index');
    6663  add_event_handler('blockmanager_register_blocks', 'fbp_blockmanager_register_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL);
    6764  add_event_handler('blockmanager_apply', 'fpt_blockmanager_apply');
  • extensions/FacebookPlug/Plugin/language/en_UK/admin.config.lang.php

    r8375 r8386  
    8181$lang['Add Facebook Piwigo application on footer'] = 'Add Facebook Piwigo application on footer';
    8282$lang['Develop by'] = 'Develop by';
     83$lang['Activity feed'] = 'Activity feed';
     84$lang['Show recommendations'] = 'Show recommendations';
     85$lang['Height'] = 'Height';
     86$lang['Other options are available by programming'] = 'Other options are available by programming';
     87$lang['Activity'] = 'Activity';
     88//~ $lang[''] = '';
     89//~ $lang[''] = '';
     90//~ $lang[''] = '';
     91//~ $lang[''] = '';
     92//~ $lang[''] = '';
     93//~ $lang[''] = '';
     94//~ $lang[''] = '';
     95//~ $lang[''] = '';
     96//~ $lang[''] = '';
     97//~ $lang[''] = '';
    8398//~ $lang[''] = '';
    8499//~ $lang[''] = '';
  • extensions/FacebookPlug/Plugin/language/fr_FR/admin.config.lang.php

    r8375 r8386  
    8181$lang['Add Facebook Piwigo application on footer'] = 'Ajout de l\'application Piwigo de Facebook en bas de page';
    8282$lang['Develop by'] = 'Développer par';
     83$lang['Activity feed'] = 'Flux d\'activité';
     84$lang['Show recommendations'] = 'Voir les recommandations';
     85$lang['Height'] = 'Hauteur';
     86$lang['Other options are available by programming'] = 'D\'autres options sont disponibles par programmation';
     87$lang['Activity'] = 'Activité';
    8388
    8489
  • extensions/FacebookPlug/Plugin/tpl/admin.config.tpl

    r8375 r8386  
    129129<h3>{'On menu of main pages'|@translate}</h3>
    130130<fieldset>
     131  <legend><a href="{$social_plugin.activity_feed.FB_PAGE}" onclick="window.open(this.href); return false;">{'Activity feed'|@translate}</a></legend>
     132  <ul>
     133    <li>
     134      <label>
     135        <span class="property">{'Enabled'|@translate}</span>
     136        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED" {$social_plugin.activity_feed.ENABLED} />
     137      </label>
     138    </li>
     139
     140    <div id='activity_feed'>
     141      <li>
     142        <label>
     143          <span class="property">{'Color scheme'|@translate}</span>
     144          <select name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME" size="1">
     145            {html_options options=$social_plugin.activity_feed.COLORSCHEME_OPTIONS selected=$social_plugin.activity_feed.COLORSCHEME_OPTIONS_SELECTED}
     146          </select>
     147        </label>
     148      </li>
     149      <li>
     150        <label>
     151          <span class="property">{'Show header'|@translate}</span>
     152          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER" {$social_plugin.activity_feed.HEADER} />
     153        </label>
     154      </li>
     155      <li>
     156        <label>
     157          <span class="property">{'Show recommendations'|@translate}</span>
     158          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS" {$social_plugin.activity_feed.RECOMMENDATIONS} />
     159        </label>
     160      </li>
     161      <li>
     162        <label>
     163          <span class="property">{'Height'|@translate}</span>
     164          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT" value="{$social_plugin.activity_feed.HEIGHT}" />
     165        </label>
     166      </li>
     167    </div>
     168  </ul>
     169</fieldset>
     170
     171<fieldset>
    131172  <legend><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></legend>
    132173  <ul>
     
    171212        </label>
    172213      </li>
     214      <li>
     215        <label>
     216          <span class="property">{'Height'|@translate}</span>
     217          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT" value="{$social_plugin.like_box.HEIGHT}" />
     218        </label>
     219      </li>
    173220    </div>
    174221  </ul>
    175222</fieldset>
     223<p><i>{'Other options are available by programming'|@translate}</i></p>
    176224{/if}{* isset $social_plugin*}
    177225
     
    251299{/if}{* isset $advanced*}
    252300
    253 
     301{if isset($activity)}
     302<center>
     303  <div>
     304  <fb:activity
     305    width="550"
     306    height="950"
     307    recommendations="true"
     308    header="true"
     309  ></fb:activity>
     310</center>
     311{/if}{* isset $activity*}
     312
     313{if ! isset($activity)}
    254314  <p>
    255315    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
    256316    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
    257317  </p>
     318{/if}{* isset $activity*}
    258319
    259320  <p>
     
    326387      init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile");
    327388      init_checkbox("FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED", "comments");
     389      init_checkbox("FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED", "activity_feed");
    328390      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
    329391      // Init message box
  • extensions/FacebookPlug/Plugin/tpl/social.plugin.facepile.tpl

    r8282 r8386  
    11<div id="fb-xfbml-facepile">
    2 <fb:facepile href="{$fbp_url_picture}" width="{$fbp.social_plugin_facepile.width}" max_rows="{$fbp.social_plugin_facepile.max_rows}"></fb:facepile>
     2<fb:facepile
     3  href="{$fbp_url_picture}"
     4  width="{$fbp.social_plugin_facepile.width}"
     5  max_rows="{$fbp.social_plugin_facepile.max_rows}"
     6></fb:facepile>
    37</div>
  • extensions/FacebookPlug/Plugin/tpl/social.plugin.like.box.tpl

    r8275 r8386  
    22  <ul>
    33    <div id="fb-xfbml-like-box">
    4     <fb:like-box href="{$fbp.social_plugin_like_box.url}" width="{$fbp.social_plugin_like_box.width}" show_faces="{$fbp.social_plugin_like_box.show_faces|@boolean_to_string}" stream="{$fbp.social_plugin_like_box.stream|@boolean_to_string}" header="{$fbp.social_plugin_like_box.header|@boolean_to_string}" colorscheme="{$fbp.social_plugin_like_box.colorscheme}"></fb:like-box>
     4    <fb:like-box
     5      href="{$fbp.social_plugin_like_box.url}"
     6      width="{$fbp.social_plugin_like_box.width}"
     7      height="{$fbp.social_plugin_like_box.height}"
     8      show_faces="{$fbp.social_plugin_like_box.show_faces|@boolean_to_string}"
     9      stream="{$fbp.social_plugin_like_box.stream|@boolean_to_string}"
     10      header="{$fbp.social_plugin_like_box.header|@boolean_to_string}"
     11      colorscheme="{$fbp.social_plugin_like_box.colorscheme}"
     12    ></fb:like-box>
    513    </div>
    614  </ul>
  • extensions/FacebookPlug/Plugin/tpl/social.plugin.like.button.tpl

    r8282 r8386  
    11<div id="fb-xfbml-like-button">
    2 <fb:like href="{$fbp_url_picture}" width="{$fbp.social_plugin_like_button.width}" layout="{$fbp.social_plugin_like_button.layout}" show_faces="{$fbp.social_plugin_like_button.show_faces|@boolean_to_string}" action="{$fbp.social_plugin_like_button.action}" colorscheme="{$fbp.social_plugin_like_button.colorscheme}"></fb:like>
     2<fb:like
     3  href="{$fbp_url_picture}"
     4  width="{$fbp.social_plugin_like_button.width}"
     5  layout="{$fbp.social_plugin_like_button.layout}"
     6  show_faces="{$fbp.social_plugin_like_button.show_faces|@boolean_to_string}"
     7  action="{$fbp.social_plugin_like_button.action}"
     8  colorscheme="{$fbp.social_plugin_like_button.colorscheme}"
     9  font="{$fbp.social_plugin_like_button.font}"
     10  ref="{$fbp.social_plugin_like_button.ref}"
     11></fb:like>
    312</div>
Note: See TracChangeset for help on using the changeset viewer.