Index: extensions/FacebookPlug/Plugin/admin.config.php
===================================================================
--- extensions/FacebookPlug/Plugin/admin.config.php	(revision 9457)
+++ 	(revision )
@@ -1,277 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-// include
-include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
-
-// Lingua
-load_language('admin.config.lang', FBP_DIR.'/');
-
-// Arguments
-$page['tab'] = (isset($_GET['tab']) ? $_GET['tab'] : 'social_plugin');
-
-// Data
-$base_url = get_admin_plugin_menu_link(__FILE__);
-$picture_url_type = array('page', 'image');
-$picture_url_type_l10n = array_map('l10n', $picture_url_type);
-$layout = array('standard', 'button_count', 'box_count');
-$layout_l10n = array_map('l10n', $layout);
-$action = array('like', 'recommend');
-$action_l10n = array_map('l10n', $action);
-$colorscheme = array('light', 'dark');
-$colorscheme_l10n = array_map('l10n', $colorscheme);
-
-
-// Tabsheet
-$tabsheet = new tabsheet();
-$tabsheet->add('social_plugin',
-               l10n('Social plugins'),
-               add_url_params($base_url, array('tab' => 'social_plugin')));
-$tabsheet->add('button',
-               l10n('Buttons'),
-               add_url_params($base_url, array('tab' => 'button')));
-$tabsheet->add('advanced',
-               l10n('Advanced'),
-               add_url_params($base_url, array('tab' => 'advanced')));
-$tabsheet->add('activity',
-               l10n('Activity'),
-               add_url_params($base_url, array('tab' => 'activity')));
-$tabsheet->select($page['tab']);
-$tabsheet->assign();
-
-function fbp_intval($n)
-{
-  return (is_numeric($n) ? $n : null);
-}
-
-function fbp_checked($b)
-{
-  return ($b ? 'checked="checked"' : '');
-}
-
-// Update
-if (isset($_POST['submit']))
-{
-  $save_conf['fbp'] = $conf['fbp'];
-
-  switch ($page['tab'])
-  {
-    case 'social_plugin' :
-    {
-      // Like button
-      $conf['fbp']['social_plugin_like_button']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']);
-      $conf['fbp']['social_plugin_like_button']['layout'] = $layout[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT']];
-      $conf['fbp']['social_plugin_like_button']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']);
-      $conf['fbp']['social_plugin_like_button']['action'] = $action[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION']];
-      $conf['fbp']['social_plugin_like_button']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME']];
-      // Facepile
-      $conf['fbp']['social_plugin_facepile']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']);
-      $conf['fbp']['social_plugin_facepile']['max_rows'] = intval($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS']);
-      // Comments
-      $conf['fbp']['social_plugin_comments']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']);
-      $conf['fbp']['social_plugin_comments']['numposts'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']);
-      $conf['fbp']['social_plugin_comments']['title'] = $_POST['FBP_SOCIAL_PLUGIN_COMMENTS_TITLE'];
-      $conf['fbp']['social_plugin_comments']['simple'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']);
-      $conf['fbp']['social_plugin_comments']['reverse'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']);
-      $conf['fbp']['social_plugin_comments']['publish_feed'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']);
-      // Actvity feed
-      $conf['fbp']['social_plugin_activity_feed']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED']);
-      $conf['fbp']['social_plugin_activity_feed']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME']];
-      $conf['fbp']['social_plugin_activity_feed']['recommendations'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS']);
-      $conf['fbp']['social_plugin_activity_feed']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER']);
-      $conf['fbp']['social_plugin_activity_feed']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT']);
-      // Like box
-      $conf['fbp']['social_plugin_like_box']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']);
-      $conf['fbp']['social_plugin_like_box']['url'] = $_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_URL'];
-      $conf['fbp']['social_plugin_like_box']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME']];
-      $conf['fbp']['social_plugin_like_box']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']);
-      $conf['fbp']['social_plugin_like_box']['stream'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']);
-      $conf['fbp']['social_plugin_like_box']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']);
-      $conf['fbp']['social_plugin_like_box']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT']);
-
-      // Check
-      if ($conf['fbp']['social_plugin_like_button']['enabled'] and $conf['fbp']['social_plugin_comments']['enabled'])
-      {
-        $conf['fbp']['social_plugin_like_button']['enabled'] = $save_conf['fbp']['social_plugin_like_button']['enabled'];
-        $conf['fbp']['social_plugin_comments']['enabled'] = $save_conf['fbp']['social_plugin_comments']['enabled'];
-        array_push($page['infos'], l10n('Like button and comments cannot be enabled together').', '.l10n('enabled values are restored'));
-      }
-      break;
-    }
-
-    case 'button' :
-    {
-      $conf['fbp']['share_picture'] = ! empty($_POST['FBP_SHARE_PICTURE']);
-      $conf['fbp']['share_album'] = ! empty($_POST['FBP_SHARE_ALBUM']);
-      $conf['fbp']['upload_picture'] = ! empty($_POST['FBP_UPLOAD_PICTURE']);
-      break;
-    }
-
-    case 'advanced' :
-    {
-      $conf['fbp']['facebook_app_id'] = $_POST['FBP_FACEBOOK_APP_ID'];
-      $conf['fbp']['async_script'] = ! empty($_POST['FBP_ASYNC_SCRIPT']);
-      $conf['fbp']['force_facebook_init'] = ! empty($_POST['FBP_FORCE_FACEBOOK_INIT']);
-      $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']];
-      $conf['fbp']['allow_fb_access_private_page'] = ! empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']);
-      $conf['fbp']['add_about_informations'] = ! empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']);
-      $conf['fbp']['add_group_footer'] = ! empty($_POST['FBP_ADD_GROUP_FOOTER']);
-      $conf['fbp']['add_application_footer'] = ! empty($_POST['FBP_ADD_APPLICATION_FOOTER']);
-      break;
-    }
-  }
-
-  $query = '
-update '.CONFIG_TABLE.'
-set
-  value = \''.serialize($conf['fbp']).'\'
-where 
-  param = \'fbp\'
-;';
-  if (pwg_query($query))
-  {
-    array_push($page['infos'], l10n('Data updated with success'));
-  }
-  else
-  {
-    array_push($page['errors'], l10n('Data updated with error'));
-  }
-
-  // Delete compiled templates
-  $template->delete_compiled_templates();
-}
-
-// Display
-switch ($page['tab'])
-{
-  case 'social_plugin' :
-  {
-    $template->assign(
-      $page['tab'],
-      array(
-        'like_button' => array
-          (
-            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like/',
-            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_button']['enabled']),
-            'LAYOUT_OPTIONS' => $layout_l10n,
-            'LAYOUT_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['layout'], $layout),
-            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_button']['show_faces']),
-            'ACTION_OPTIONS' => $action_l10n,
-            'ACTION_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['action'], $action),
-            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
-            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['colorscheme'], $colorscheme),
-          ),
-       'facepile' => array
-          (
-            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/facepile/',
-            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_facepile']['enabled']),
-            'MAX_ROWS' => $conf['fbp']['social_plugin_facepile']['max_rows'],
-          ),
-       'comments' => array
-          (
-            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/comments/',
-            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_comments']['enabled']),
-            'NUMPOSTS' => $conf['fbp']['social_plugin_comments']['numposts'],
-            'TITLE' => $conf['fbp']['social_plugin_comments']['title'],
-            'SIMPLE' => fbp_checked($conf['fbp']['social_plugin_comments']['simple']),
-            'REVERSE' => fbp_checked($conf['fbp']['social_plugin_comments']['reverse']),
-            'PUBLISH_FEED' => fbp_checked($conf['fbp']['social_plugin_comments']['publish_feed']),
-          ),
-       'activity_feed' => array
-          (
-            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/activity/',
-            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['enabled']),
-            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
-            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_activity_feed']['colorscheme'], $colorscheme),
-            'RECOMMENDATIONS' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['recommendations']),
-            'HEADER' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['header']),
-            'HEIGHT' => $conf['fbp']['social_plugin_activity_feed']['height'],
-          ),
-       'like_box' => array
-          (
-            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like-box/',
-            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_box']['enabled']),
-            'URL' => $conf['fbp']['social_plugin_like_box']['url'],
-            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
-            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_box']['colorscheme'], $colorscheme),
-            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_box']['show_faces']),
-            'STREAM' => fbp_checked($conf['fbp']['social_plugin_like_box']['stream']),
-            'HEADER' => fbp_checked($conf['fbp']['social_plugin_like_box']['header']),
-            'HEIGHT' => $conf['fbp']['social_plugin_like_box']['height'],
-          ),
-        ));
-    break;
-  }
-  case 'button' :
-  {
-    $template->assign(
-      $page['tab'],
-      array(
-        'FBP_SHARE_PICTURE' => fbp_checked($conf['fbp']['share_picture']),
-        'FBP_SHARE_ALBUM' => fbp_checked($conf['fbp']['share_album']),
-        'FBP_UPLOAD_PICTURE' => fbp_checked($conf['fbp']['upload_picture']),
-        ));
-    break;
-  }
-  case 'advanced' :
-  {
-    $template->assign(
-      $page['tab'],
-      array(
-        'FBP_FACEBOOK_APP_ID' => $conf['fbp']['facebook_app_id'],
-        'FBP_ASYNC_SCRIPT' => fbp_checked($conf['fbp']['async_script']),
-        'FBP_FORCE_FACEBOOK_INIT' => fbp_checked($conf['fbp']['force_facebook_init']),
-        'FBP_PICTURE_URL_TYPE_OPTIONS' => $picture_url_type_l10n,
-        'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type),
-        'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> fbp_checked($conf['fbp']['allow_fb_access_private_page']),
-        'FBP_ADD_ABOUT_INFORMATIONS' => fbp_checked($conf['fbp']['add_about_informations']),
-        'FBP_ADD_GROUP_FOOTER' => fbp_checked($conf['fbp']['add_group_footer']),
-        'FBP_ADD_APPLICATION_FOOTER' => fbp_checked($conf['fbp']['add_application_footer']),
-        ));
-    break;
-  }
-  case 'activity' :
-  {
-    $template->assign(
-      $page['tab'],
-      array(
-        ));
-    break;
-  }
-}
-
-// Global value
-$template->assign('FBP_ACTION', add_url_params($base_url, array('tab' => $page['tab'])));
-//~ $template->block_html_head('', '<link rel="stylesheet" type="text/css" href="'.FBP_PATH.'/css/admin.config.css">', $smarty, $repeat);
-$template->assign('FACEBOOK_PIWIGO_RUB_URL', FACEBOOK_PIWIGO_RUB_URL);
-$template->assign('FACEBOOK_PIWIGO_GROUP_URL', FACEBOOK_PIWIGO_GROUP_URL);
-$template->assign('FACEBOOK_PIWIGO_APPLICATION_URL', FACEBOOK_PIWIGO_APPLICATION_URL);
-$template->assign('FBP_OLD_VERSION', version_compare(PHPWG_VERSION, '2.2', '<'));
-
-//Apply tpl
-$template->set_filename('fbp_plugin_admin_content', FBP_DIR.'/tpl/admin.config.tpl');
-$template->assign_var_from_handle('ADMIN_CONTENT', 'fbp_plugin_admin_content');
-
-?>
Index: extensions/FacebookPlug/Plugin/admin.php
===================================================================
--- extensions/FacebookPlug/Plugin/admin.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/admin.php	(revision 9795)
@@ -0,0 +1,282 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+// include
+include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+// Lingua
+load_language('admin.lang', FBP_DIR.'/');
+
+// Arguments
+$page['tab'] = (isset($_GET['tab']) ? $_GET['tab'] : 'social_plugin');
+
+// Data
+//~ $base_url = get_admin_plugin_menu_link(__FILE__);
+$base_url = get_root_url().'admin.php?page=plugin-'.FBP_PLUGIN_NAME.'-';
+$picture_url_type = array('page', 'image');
+$picture_url_type_l10n = array_map('l10n', $picture_url_type);
+$layout = array('standard', 'button_count', 'box_count');
+$layout_l10n = array_map('l10n', $layout);
+$action = array('like', 'recommend');
+$action_l10n = array_map('l10n', $action);
+$colorscheme = array('light', 'dark');
+$colorscheme_l10n = array_map('l10n', $colorscheme);
+
+
+// Tabsheet
+$tabsheet = new tabsheet();
+$tabsheet->add('social_plugin',
+               l10n('Social plugins'),
+               //add_url_params($base_url, array('tab' => 'social_plugin')));
+               $base_url.'social_plugin');
+$tabsheet->add('button',
+               l10n('Buttons'),
+               //add_url_params($base_url, array('tab' => 'button')));
+               $base_url.'button');
+$tabsheet->add('advanced',
+               l10n('Advanced'),
+               //add_url_params($base_url, array('tab' => 'advanced')));
+               $base_url.'advanced');
+$tabsheet->add('activity',
+               l10n('Activity'),
+               //add_url_params($base_url, array('tab' => 'activity')));
+               $base_url.'activity');
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+
+function fbp_intval($n)
+{
+  return (is_numeric($n) ? $n : null);
+}
+
+function fbp_checked($b)
+{
+  return ($b ? 'checked="checked"' : '');
+}
+
+// Update
+if (isset($_POST['submit']))
+{
+  $save_conf['fbp'] = $conf['fbp'];
+
+  switch ($page['tab'])
+  {
+    case 'social_plugin' :
+    {
+      // Like button
+      $conf['fbp']['social_plugin_like_button']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED']);
+      $conf['fbp']['social_plugin_like_button']['layout'] = $layout[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT']];
+      $conf['fbp']['social_plugin_like_button']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES']);
+      $conf['fbp']['social_plugin_like_button']['action'] = $action[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION']];
+      $conf['fbp']['social_plugin_like_button']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME']];
+      // Facepile
+      $conf['fbp']['social_plugin_facepile']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED']);
+      $conf['fbp']['social_plugin_facepile']['max_rows'] = intval($_POST['FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS']);
+      // Comments
+      $conf['fbp']['social_plugin_comments']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED']);
+      $conf['fbp']['social_plugin_comments']['numposts'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS']);
+      $conf['fbp']['social_plugin_comments']['title'] = $_POST['FBP_SOCIAL_PLUGIN_COMMENTS_TITLE'];
+      $conf['fbp']['social_plugin_comments']['simple'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE']);
+      $conf['fbp']['social_plugin_comments']['reverse'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE']);
+      $conf['fbp']['social_plugin_comments']['publish_feed'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED']);
+      // Actvity feed
+      $conf['fbp']['social_plugin_activity_feed']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED']);
+      $conf['fbp']['social_plugin_activity_feed']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME']];
+      $conf['fbp']['social_plugin_activity_feed']['recommendations'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS']);
+      $conf['fbp']['social_plugin_activity_feed']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER']);
+      $conf['fbp']['social_plugin_activity_feed']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT']);
+      // Like box
+      $conf['fbp']['social_plugin_like_box']['enabled'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED']);
+      $conf['fbp']['social_plugin_like_box']['url'] = $_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_URL'];
+      $conf['fbp']['social_plugin_like_box']['colorscheme'] = $colorscheme[$_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME']];
+      $conf['fbp']['social_plugin_like_box']['show_faces'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES']);
+      $conf['fbp']['social_plugin_like_box']['stream'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM']);
+      $conf['fbp']['social_plugin_like_box']['header'] = ! empty($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER']);
+      $conf['fbp']['social_plugin_like_box']['height'] = fbp_intval($_POST['FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT']);
+
+      // Check
+      if ($conf['fbp']['social_plugin_like_button']['enabled'] and $conf['fbp']['social_plugin_comments']['enabled'])
+      {
+        $conf['fbp']['social_plugin_like_button']['enabled'] = $save_conf['fbp']['social_plugin_like_button']['enabled'];
+        $conf['fbp']['social_plugin_comments']['enabled'] = $save_conf['fbp']['social_plugin_comments']['enabled'];
+        array_push($page['infos'], l10n('Like button and comments cannot be enabled together').', '.l10n('enabled values are restored'));
+      }
+      break;
+    }
+
+    case 'button' :
+    {
+      $conf['fbp']['share_picture'] = ! empty($_POST['FBP_SHARE_PICTURE']);
+      $conf['fbp']['share_album'] = ! empty($_POST['FBP_SHARE_ALBUM']);
+      $conf['fbp']['upload_picture'] = ! empty($_POST['FBP_UPLOAD_PICTURE']);
+      break;
+    }
+
+    case 'advanced' :
+    {
+      $conf['fbp']['facebook_app_id'] = $_POST['FBP_FACEBOOK_APP_ID'];
+      $conf['fbp']['async_script'] = ! empty($_POST['FBP_ASYNC_SCRIPT']);
+      $conf['fbp']['force_facebook_init'] = ! empty($_POST['FBP_FORCE_FACEBOOK_INIT']);
+      $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']];
+      $conf['fbp']['allow_fb_access_private_page'] = ! empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']);
+      $conf['fbp']['add_about_informations'] = ! empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']);
+      $conf['fbp']['add_group_footer'] = ! empty($_POST['FBP_ADD_GROUP_FOOTER']);
+      $conf['fbp']['add_application_footer'] = ! empty($_POST['FBP_ADD_APPLICATION_FOOTER']);
+      break;
+    }
+  }
+
+  $query = '
+update '.CONFIG_TABLE.'
+set
+  value = \''.serialize($conf['fbp']).'\'
+where 
+  param = \'fbp\'
+;';
+  if (pwg_query($query))
+  {
+    array_push($page['infos'], l10n('Data updated with success'));
+  }
+  else
+  {
+    array_push($page['errors'], l10n('Data updated with error'));
+  }
+
+  // Delete compiled templates
+  $template->delete_compiled_templates();
+}
+
+// Display
+switch ($page['tab'])
+{
+  case 'social_plugin' :
+  {
+    $template->assign(
+      $page['tab'],
+      array(
+        'like_button' => array
+          (
+            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like/',
+            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_button']['enabled']),
+            'LAYOUT_OPTIONS' => $layout_l10n,
+            'LAYOUT_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['layout'], $layout),
+            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_button']['show_faces']),
+            'ACTION_OPTIONS' => $action_l10n,
+            'ACTION_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['action'], $action),
+            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
+            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_button']['colorscheme'], $colorscheme),
+          ),
+       'facepile' => array
+          (
+            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/facepile/',
+            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_facepile']['enabled']),
+            'MAX_ROWS' => $conf['fbp']['social_plugin_facepile']['max_rows'],
+          ),
+       'comments' => array
+          (
+            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/comments/',
+            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_comments']['enabled']),
+            'NUMPOSTS' => $conf['fbp']['social_plugin_comments']['numposts'],
+            'TITLE' => $conf['fbp']['social_plugin_comments']['title'],
+            'SIMPLE' => fbp_checked($conf['fbp']['social_plugin_comments']['simple']),
+            'REVERSE' => fbp_checked($conf['fbp']['social_plugin_comments']['reverse']),
+            'PUBLISH_FEED' => fbp_checked($conf['fbp']['social_plugin_comments']['publish_feed']),
+          ),
+       'activity_feed' => array
+          (
+            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/activity/',
+            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['enabled']),
+            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
+            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_activity_feed']['colorscheme'], $colorscheme),
+            'RECOMMENDATIONS' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['recommendations']),
+            'HEADER' => fbp_checked($conf['fbp']['social_plugin_activity_feed']['header']),
+            'HEIGHT' => $conf['fbp']['social_plugin_activity_feed']['height'],
+          ),
+       'like_box' => array
+          (
+            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like-box/',
+            'ENABLED' => fbp_checked($conf['fbp']['social_plugin_like_box']['enabled']),
+            'URL' => $conf['fbp']['social_plugin_like_box']['url'],
+            'COLORSCHEME_OPTIONS' => $colorscheme_l10n,
+            'COLORSCHEME_OPTIONS_SELECTED' => array_search($conf['fbp']['social_plugin_like_box']['colorscheme'], $colorscheme),
+            'SHOW_FACES' => fbp_checked($conf['fbp']['social_plugin_like_box']['show_faces']),
+            'STREAM' => fbp_checked($conf['fbp']['social_plugin_like_box']['stream']),
+            'HEADER' => fbp_checked($conf['fbp']['social_plugin_like_box']['header']),
+            'HEIGHT' => $conf['fbp']['social_plugin_like_box']['height'],
+          ),
+        ));
+    break;
+  }
+  case 'button' :
+  {
+    $template->assign(
+      $page['tab'],
+      array(
+        'FBP_SHARE_PICTURE' => fbp_checked($conf['fbp']['share_picture']),
+        'FBP_SHARE_ALBUM' => fbp_checked($conf['fbp']['share_album']),
+        'FBP_UPLOAD_PICTURE' => fbp_checked($conf['fbp']['upload_picture']),
+        ));
+    break;
+  }
+  case 'advanced' :
+  {
+    $template->assign(
+      $page['tab'],
+      array(
+        'FBP_FACEBOOK_APP_ID' => $conf['fbp']['facebook_app_id'],
+        'FBP_ASYNC_SCRIPT' => fbp_checked($conf['fbp']['async_script']),
+        'FBP_FORCE_FACEBOOK_INIT' => fbp_checked($conf['fbp']['force_facebook_init']),
+        'FBP_PICTURE_URL_TYPE_OPTIONS' => $picture_url_type_l10n,
+        'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type),
+        'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> fbp_checked($conf['fbp']['allow_fb_access_private_page']),
+        'FBP_ADD_ABOUT_INFORMATIONS' => fbp_checked($conf['fbp']['add_about_informations']),
+        'FBP_ADD_GROUP_FOOTER' => fbp_checked($conf['fbp']['add_group_footer']),
+        'FBP_ADD_APPLICATION_FOOTER' => fbp_checked($conf['fbp']['add_application_footer']),
+        ));
+    break;
+  }
+  case 'activity' :
+  {
+    $template->assign(
+      $page['tab'],
+      array(
+        ));
+    break;
+  }
+}
+
+// Global value
+//~ $template->assign('FBP_ACTION', add_url_params($base_url, array('tab' => $page['tab'])));
+$template->assign('FBP_ACTION', $base_url.$page['tab']);
+$template->assign('FACEBOOK_PIWIGO_RUB_URL', FACEBOOK_PIWIGO_RUB_URL);
+$template->assign('FACEBOOK_PIWIGO_GROUP_URL', FACEBOOK_PIWIGO_GROUP_URL);
+$template->assign('FACEBOOK_PIWIGO_APPLICATION_URL', FACEBOOK_PIWIGO_APPLICATION_URL);
+$template->assign('FBP_OLD_VERSION', version_compare(PHPWG_VERSION, '2.2', '<'));
+
+//Apply tpl
+$template->set_filename('fbp_plugin_admin_content', FBP_DIR.'/tpl/admin.tpl');
+$template->assign_var_from_handle('ADMIN_CONTENT', 'fbp_plugin_admin_content');
+
+?>
Index: extensions/FacebookPlug/Plugin/css/admin.config.css
===================================================================
--- extensions/FacebookPlug/Plugin/css/admin.config.css	(revision 9457)
+++ 	(revision )
@@ -1,69 +1,0 @@
-/*----------------------------------
-  Adaptation of jquery-ui-1.7.3.custom.css generated by jQuery UI CSS Framework
-----------------------------------*/
-
-/* Layout helpers
-----------------------------------*/
-.admin_config .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
-.admin_config .ui-helper-clearfix { display: inline-block; }
-* html .admin_config .ui-helper-clearfix { height:1%; }
-.admin_config .ui-helper-clearfix { display:block; }
-
-/* Icons
-----------------------------------*/
-/* states and images */
-.admin_config .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
-
-/* Overlays */
-.admin_config .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
-
-/* Component containers
-----------------------------------*/
-.admin_config /*.ui-widget*/ { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
-.admin_config /*.ui-widget*/ input, .admin_config /*.ui-widget*/ select, .admin_config /*.ui-widget*/ textarea, .admin_config /*.ui-widget*/ button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
-.admin_config /*.ui-widget-content*/ { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
-.admin_config /*.ui-widget-content*/ a { color: #222222; }
-.admin_config .ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
-.admin_config .ui-widget-header a { color: #222222; }
-
-
-/* Icons
-----------------------------------*/
-/* states and images */
-.admin_config .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
-.admin_config .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.admin_config .ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-
-/* positioning */
-.admin_config .ui-icon-closethick { background-position: -96px -128px; }
-
-/* Misc visuals
-----------------------------------*/
-/* Corner radius */
-.admin_config .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; }
-.admin_config .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
-.admin_config .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
-.admin_config .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.admin_config .ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
-.admin_config .ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.admin_config .ui-corner-right {  -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.admin_config .ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
-.admin_config, .admin_config .ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; }
-
-/* Overlays */
-.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_diagonals-medium_0_aaaaaa_40x40.png) 50% 50% repeat; opacity: .30;filter:Alpha(Opacity=30); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Resizable
-
-/* dialog
-----------------------------------*/
-.admin_config /*.ui-dialog*/ { position: relative; padding: .2em; width: 300px; }
-.admin_config /*.ui-dialog*/ .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative;  }
-.admin_config /*.ui-dialog*/ .ui-dialog-title { float: left; margin: .1em 0 .2em; } 
-.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
-.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close span { display: block; margin: 1px; }
-.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
-.admin_config /*.ui-dialog*/ .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
-.admin_config /*.ui-dialog*/ .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
-.admin_config /*.ui-dialog*/ .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; }
-.admin_config /*.ui-dialog*/ .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
-.admin_config /*.ui-draggable*/ .ui-dialog-titlebar { cursor: move; }
Index: extensions/FacebookPlug/Plugin/css/admin.css
===================================================================
--- extensions/FacebookPlug/Plugin/css/admin.css	(revision 9795)
+++ extensions/FacebookPlug/Plugin/css/admin.css	(revision 9795)
@@ -0,0 +1,69 @@
+/*----------------------------------
+  Adaptation of jquery-ui-1.7.3.custom.css generated by jQuery UI CSS Framework
+----------------------------------*/
+
+/* Layout helpers
+----------------------------------*/
+.admin_config .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.admin_config .ui-helper-clearfix { display: inline-block; }
+* html .admin_config .ui-helper-clearfix { height:1%; }
+.admin_config .ui-helper-clearfix { display:block; }
+
+/* Icons
+----------------------------------*/
+/* states and images */
+.admin_config .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+/* Overlays */
+.admin_config .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+/* Component containers
+----------------------------------*/
+.admin_config /*.ui-widget*/ { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
+.admin_config /*.ui-widget*/ input, .admin_config /*.ui-widget*/ select, .admin_config /*.ui-widget*/ textarea, .admin_config /*.ui-widget*/ button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
+.admin_config /*.ui-widget-content*/ { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
+.admin_config /*.ui-widget-content*/ a { color: #222222; }
+.admin_config .ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
+.admin_config .ui-widget-header a { color: #222222; }
+
+
+/* Icons
+----------------------------------*/
+/* states and images */
+.admin_config .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
+.admin_config .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+.admin_config .ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+
+/* positioning */
+.admin_config .ui-icon-closethick { background-position: -96px -128px; }
+
+/* Misc visuals
+----------------------------------*/
+/* Corner radius */
+.admin_config .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; }
+.admin_config .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
+.admin_config .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
+.admin_config .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
+.admin_config .ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
+.admin_config .ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
+.admin_config .ui-corner-right {  -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
+.admin_config .ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
+.admin_config, .admin_config .ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_diagonals-medium_0_aaaaaa_40x40.png) 50% 50% repeat; opacity: .30;filter:Alpha(Opacity=30); }
+.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Resizable
+
+/* dialog
+----------------------------------*/
+.admin_config /*.ui-dialog*/ { position: relative; padding: .2em; width: 300px; }
+.admin_config /*.ui-dialog*/ .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative;  }
+.admin_config /*.ui-dialog*/ .ui-dialog-title { float: left; margin: .1em 0 .2em; } 
+.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.admin_config /*.ui-dialog*/ .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.admin_config /*.ui-dialog*/ .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.admin_config /*.ui-dialog*/ .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.admin_config /*.ui-dialog*/ .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; }
+.admin_config /*.ui-dialog*/ .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.admin_config /*.ui-draggable*/ .ui-dialog-titlebar { cursor: move; }
Index: extensions/FacebookPlug/Plugin/include/admin.inc.php
===================================================================
--- extensions/FacebookPlug/Plugin/include/admin.inc.php	(revision 9457)
+++ extensions/FacebookPlug/Plugin/include/admin.inc.php	(revision 9795)
@@ -30,6 +30,7 @@
     array(
       'NAME' => 'FacebookPlug',
-      'URL' => get_admin_plugin_menu_link(
-        FBP_DIR.'/admin.config.php')
+      'URL' => get_root_url().'admin.php?page=plugin-'.FBP_PLUGIN_NAME
+      /*'URL' => get_admin_plugin_menu_link(
+        FBP_DIR.'/admin.config.php')*/
         )
       );
Index: extensions/FacebookPlug/Plugin/include/constants.inc.php
===================================================================
--- extensions/FacebookPlug/Plugin/include/constants.inc.php	(revision 9457)
+++ extensions/FacebookPlug/Plugin/include/constants.inc.php	(revision 9795)
@@ -38,4 +38,5 @@
 define('FBP_DIR', dirname(dirname(__FILE__)));
 define('FBP_PATH' , PHPWG_PLUGINS_PATH.basename(FBP_DIR));
+define('FBP_PLUGIN_NAME', basename(dirname(dirname(__FILE__))));
 define('FBP_IP_FB', '66.220.');
 
Index: extensions/FacebookPlug/Plugin/include/header.inc.php
===================================================================
--- extensions/FacebookPlug/Plugin/include/header.inc.php	(revision 9457)
+++ extensions/FacebookPlug/Plugin/include/header.inc.php	(revision 9795)
@@ -121,5 +121,5 @@
         )
     {
-      $template->block_html_head('', '<link rel="stylesheet" type="text/css" href="'.FBP_PATH.'/css/fbp.css">', $smarty, $repeat);
+      $template->func_combine_css(array('path' => FBP_PATH.'/css/fbp.css'), $smarty);
     }
   }
@@ -149,7 +149,13 @@
         (script_basename() == 'admin')
         and
-        (isset($_GET['page']) and $_GET['page'] == 'plugin')
-        and
-        (isset($_GET['section']) and strtok($_GET['section'], '/') == 'FacebookPlug')
+        (
+          (isset($_GET['page']) and preg_match('/^plugin-FacebookPlug(?:-(.*))?$/', $_GET['page']))
+          or
+          (
+            (isset($_GET['page']) and $_GET['page'] == 'plugin')
+            and
+            (isset($_GET['section']) and strtok($_GET['section'], '/') == 'FacebookPlug')
+          )
+        )
       )
     )
Index: extensions/FacebookPlug/Plugin/language/de_DE/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/de_DE/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,97 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-$lang['page'] = 'Seite';
-$lang['image'] = 'Bild';
-$lang['standard'] = 'Standard';
-$lang['button_count'] = 'button_count';
-$lang['box_count'] = 'box_count';
-$lang['like'] = 'Gefällt mir';
-$lang['recommend'] = 'empfehlen';
-$lang['light'] = 'hell';
-$lang['dark'] = 'dunkel';
-$lang['Social plugins'] = 'Soziale Plug-Ins';
-$lang['Advanced'] = 'Erweitert';
-$lang['Asynchronous Facebook access'] = 'Asynchroner Facebook Zugriff';
-$lang['Like button'] = 'Gefällt mir Taste';
-$lang['Enabled'] = 'Aktiviert';
-$lang['Picture URL type'] = 'Bild-URL-Typ';
-$lang['Layout style'] = 'Layout style';
-$lang['Show faces'] = 'Gesichter anzeigen';
-$lang['Verb to display'] = 'Anzuzeigender Verb';
-$lang['Color scheme'] = 'Farbenschema';
-$lang['Like box'] = 'Gefällt mir box';
-$lang['Show stream'] = 'Stream anzeigen';
-$lang['Show header'] = 'Header anzeigen';
-$lang['Facebook Page URL'] = 'Facebook Seite URL';
-$lang['Data updated with success'] = 'Daten erfolgreich aktualisiert';
-$lang['Data updated with error'] = 'Daten mit Fehlern aktualisiert';
-$lang['Facepile'] = 'Facepile';
-$lang['on slideshow pages'] = 'auf der Diashow Seite';
-$lang['Num rows'] = 'Anzahl Reihen';
-$lang['Comments'] = 'Kommentare';
-$lang['Num posts'] = 'Anzahl Posts';
-$lang['Title'] = 'Titel';
-$lang['Simple'] = 'Einfach';
-$lang['Reverse'] = 'Reverse';
-$lang['Publish feed'] = 'Feed veröffentlichen';
-$lang['Facebook application identifient'] = 'Facebook Applikation Identifier';
-$lang['On picture pages'] = 'Auf der Bilderseite';
-$lang['On menu of main pages'] = 'Auf dem Menu der Hauptseite';
-$lang['Options'] = 'Optionen';
-$lang['Like button and comments cannot be enabled together'] = 'Gefällt mir Button und Kommentare können nicht zusammen aktiviert werden';
-$lang['enabled values are restored'] = 'aktivierte Werte werden wiederhergestellt';
-$lang['Informations'] = 'Informationen';
-$lang['Continue'] = 'Fortfahren';
-$lang['Always initialize Facebook'] = 'Immer Facebook initialisieren';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Nützlich für persönliche Vorlagen, Plug-Ins. Ein Event, wenn auch für Plugins definiert.';
-$lang['Allow Facebook to see private page'] = 'Facebook erlauben die privaten Seiten zu sehen';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'empfohlen, damit Facebook die Titel,... Ihrer Seite erhält';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Muss ausgefüllt werden nur, wenn man eine bestimmte Facebook-Anwendung benutzen möchte. Es ist empfohlen dies leer zu lassen.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Page Type ermöglicht den Verweis auf die Seite sowie Facebook kann Informationen (Titel, ...)erhalten. Picture Type erlaubt den Verweis auf die Bilder-URL und Facebook kann keine Informationen erhalten, sondern arbeitet immer mit privaten Alben.';
-$lang['Promote'] = 'Förderung';
-$lang['Add informations on about page'] = 'Informationen auf der „Über uns“ Seite hinzufügen';
-$lang['Add a paragraph with Facebook link on about page'] = 'Einen Paragraph mit dem Facebook Link auf der Seite Über uns hinzufügen';
-$lang['Add Facebook Piwigo group on footer'] = 'Facebook Piwigo Gruppe in der Fußzeile hinzufügen';
-$lang['Add a link on each page footer'] = 'Einen Link auf der Fußzeile jeder Seite hinzufügen';
-$lang['Add Facebook Piwigo application on footer'] = 'Facebook Piwigo Anwendung in der Fußzeile hinzufügen';
-$lang['Develop by'] = 'Entwickelt von';
-$lang['Activity feed'] = 'Aktivitäten-Feed';
-$lang['Show recommendations'] = 'Empfehlungen anzeigen';
-$lang['Height'] = 'Höhe';
-$lang['Other options are available by programming'] = 'Weitere Optionen sind verfügbar durch eine Programmierung';
-$lang['Activity'] = 'Aktivität';
-$lang['Share'] = 'Teilen';
-$lang['Share picture page'] = 'Bilderseite teilen';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Fügen Sie einen Icon Link auf jeder Bilderseite um diese auf Facebook zu teilen';
-$lang['Share album page'] = 'Albumseite teilen';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Fügen Sie ein Icon Link auf jeder Seite, um das Album auf Facebook zu teilen';
-$lang['Buttons'] = 'Tasten';
-$lang['Upload'] = 'Upload';
-$lang['Upload picture'] = 'Bild hochladen';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Fügen Sie einen Icon Link auf jeder Bilderseite, um diese auf Facebook hochzuladen';
-
-?>
Index: extensions/FacebookPlug/Plugin/language/de_DE/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/de_DE/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/de_DE/admin.lang.php	(revision 9795)
@@ -0,0 +1,97 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+$lang['page'] = 'Seite';
+$lang['image'] = 'Bild';
+$lang['standard'] = 'Standard';
+$lang['button_count'] = 'button_count';
+$lang['box_count'] = 'box_count';
+$lang['like'] = 'Gefällt mir';
+$lang['recommend'] = 'empfehlen';
+$lang['light'] = 'hell';
+$lang['dark'] = 'dunkel';
+$lang['Social plugins'] = 'Soziale Plug-Ins';
+$lang['Advanced'] = 'Erweitert';
+$lang['Asynchronous Facebook access'] = 'Asynchroner Facebook Zugriff';
+$lang['Like button'] = 'Gefällt mir Taste';
+$lang['Enabled'] = 'Aktiviert';
+$lang['Picture URL type'] = 'Bild-URL-Typ';
+$lang['Layout style'] = 'Layout style';
+$lang['Show faces'] = 'Gesichter anzeigen';
+$lang['Verb to display'] = 'Anzuzeigender Verb';
+$lang['Color scheme'] = 'Farbenschema';
+$lang['Like box'] = 'Gefällt mir box';
+$lang['Show stream'] = 'Stream anzeigen';
+$lang['Show header'] = 'Header anzeigen';
+$lang['Facebook Page URL'] = 'Facebook Seite URL';
+$lang['Data updated with success'] = 'Daten erfolgreich aktualisiert';
+$lang['Data updated with error'] = 'Daten mit Fehlern aktualisiert';
+$lang['Facepile'] = 'Facepile';
+$lang['on slideshow pages'] = 'auf der Diashow Seite';
+$lang['Num rows'] = 'Anzahl Reihen';
+$lang['Comments'] = 'Kommentare';
+$lang['Num posts'] = 'Anzahl Posts';
+$lang['Title'] = 'Titel';
+$lang['Simple'] = 'Einfach';
+$lang['Reverse'] = 'Reverse';
+$lang['Publish feed'] = 'Feed veröffentlichen';
+$lang['Facebook application identifient'] = 'Facebook Applikation Identifier';
+$lang['On picture pages'] = 'Auf der Bilderseite';
+$lang['On menu of main pages'] = 'Auf dem Menu der Hauptseite';
+$lang['Options'] = 'Optionen';
+$lang['Like button and comments cannot be enabled together'] = 'Gefällt mir Button und Kommentare können nicht zusammen aktiviert werden';
+$lang['enabled values are restored'] = 'aktivierte Werte werden wiederhergestellt';
+$lang['Informations'] = 'Informationen';
+$lang['Continue'] = 'Fortfahren';
+$lang['Always initialize Facebook'] = 'Immer Facebook initialisieren';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Nützlich für persönliche Vorlagen, Plug-Ins. Ein Event, wenn auch für Plugins definiert.';
+$lang['Allow Facebook to see private page'] = 'Facebook erlauben die privaten Seiten zu sehen';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'empfohlen, damit Facebook die Titel,... Ihrer Seite erhält';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Muss ausgefüllt werden nur, wenn man eine bestimmte Facebook-Anwendung benutzen möchte. Es ist empfohlen dies leer zu lassen.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Page Type ermöglicht den Verweis auf die Seite sowie Facebook kann Informationen (Titel, ...)erhalten. Picture Type erlaubt den Verweis auf die Bilder-URL und Facebook kann keine Informationen erhalten, sondern arbeitet immer mit privaten Alben.';
+$lang['Promote'] = 'Förderung';
+$lang['Add informations on about page'] = 'Informationen auf der „Über uns“ Seite hinzufügen';
+$lang['Add a paragraph with Facebook link on about page'] = 'Einen Paragraph mit dem Facebook Link auf der Seite Über uns hinzufügen';
+$lang['Add Facebook Piwigo group on footer'] = 'Facebook Piwigo Gruppe in der Fußzeile hinzufügen';
+$lang['Add a link on each page footer'] = 'Einen Link auf der Fußzeile jeder Seite hinzufügen';
+$lang['Add Facebook Piwigo application on footer'] = 'Facebook Piwigo Anwendung in der Fußzeile hinzufügen';
+$lang['Develop by'] = 'Entwickelt von';
+$lang['Activity feed'] = 'Aktivitäten-Feed';
+$lang['Show recommendations'] = 'Empfehlungen anzeigen';
+$lang['Height'] = 'Höhe';
+$lang['Other options are available by programming'] = 'Weitere Optionen sind verfügbar durch eine Programmierung';
+$lang['Activity'] = 'Aktivität';
+$lang['Share'] = 'Teilen';
+$lang['Share picture page'] = 'Bilderseite teilen';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Fügen Sie einen Icon Link auf jeder Bilderseite um diese auf Facebook zu teilen';
+$lang['Share album page'] = 'Albumseite teilen';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Fügen Sie ein Icon Link auf jeder Seite, um das Album auf Facebook zu teilen';
+$lang['Buttons'] = 'Tasten';
+$lang['Upload'] = 'Upload';
+$lang['Upload picture'] = 'Bild hochladen';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Fügen Sie einen Icon Link auf jeder Bilderseite, um diese auf Facebook hochzuladen';
+
+?>
Index: extensions/FacebookPlug/Plugin/language/en_UK/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/en_UK/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,101 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-// English
-$lang['page'] = 'page';
-$lang['image'] = 'image';
-$lang['standard'] = 'standard';
-$lang['button_count'] = 'button_count';
-$lang['box_count'] = 'box_count';
-$lang['like'] = 'like';
-$lang['recommend'] = 'recommend';
-$lang['light'] = 'light';
-$lang['dark'] = 'dark';
-$lang['Social plugins'] = 'Social plugins';
-$lang['Advanced'] = 'Advanced';
-$lang['Asynchronous Facebook access'] = 'Asynchronous Facebook access';
-$lang['Like button'] = 'Like button';
-$lang['Enabled'] = 'Enabled';
-$lang['Picture URL type'] = 'Picture URL type';
-$lang['Layout style'] = 'Layout style';
-$lang['Show faces'] = 'Show faces';
-$lang['Verb to display'] = 'Verb to display';
-$lang['Color scheme'] = 'Color scheme';
-$lang['Like box'] = 'Like box';
-$lang['Show stream'] = 'Show stream';
-$lang['Show header'] = 'Show header';
-$lang['Facebook Page URL'] = 'Facebook Page URL';
-$lang['Data updated with success'] = 'Data updated with success';
-$lang['Data updated with error'] = 'Data updated with error';
-$lang['Facepile'] = 'Facepile';
-$lang['on slideshow pages'] = 'on slideshow pages';
-$lang['Num rows'] = 'Num rows';
-$lang['Comments'] = 'Comments';
-$lang['Num posts'] = 'Num posts';
-$lang['Title'] = 'Title';
-$lang['Simple'] = 'Simple';
-$lang['Reverse'] = 'Reverse';
-$lang['Publish feed'] = 'Publish feed';
-$lang['Facebook application identifient'] = 'Facebook application identifient';
-$lang['On picture pages'] = 'On picture pages';
-$lang['On menu of main pages'] = 'On menu of main pages';
-$lang['Options'] = 'Options';
-$lang['Like button and comments cannot be enabled together'] = 'Like button and comments cannot be enabled together';
-$lang['enabled values are restored'] = 'enabled values are restored';
-$lang['Informations'] = 'Informations';
-$lang['Continue'] = 'Continue';
-$lang['Always initialize Facebook'] = 'Always initialize Facebook';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Useful for personal templates, plugins. A event if also defined for plugins.';
-$lang['Allow Facebook to see private page'] = 'Allow Facebook to see private page';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Recommended in order to Facebook get title, ... of your pages';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.';
-$lang['Promote'] = 'Promote';
-$lang['Add informations on about page'] = 'Add informations on about page';
-$lang['Add a paragraph with Facebook link on about page'] = 'Add a paragraph with Facebook link on about page';
-$lang['Add Facebook Piwigo group on footer'] = 'Add Facebook Piwigo group on footer';
-$lang['Add a link on each page footer'] = 'Add a link on each page footer';
-$lang['Add Facebook Piwigo application on footer'] = 'Add Facebook Piwigo application on footer';
-$lang['Develop by'] = 'Develop by';
-$lang['Activity feed'] = 'Activity feed';
-$lang['Show recommendations'] = 'Show recommendations';
-$lang['Height'] = 'Height';
-$lang['Other options are available by programming'] = 'Other options are available by programming';
-$lang['Activity'] = 'Activity';
-$lang['Share'] = 'Share';
-$lang['Share picture page'] = 'Share picture page';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Add a icon link on each picture page to share on Facebook';
-$lang['Share album page'] = 'Share album page';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Add a icon link on each album page to share on Facebook';
-$lang['Buttons'] = 'Buttons';
-$lang['Upload'] = 'Upload';
-$lang['Upload picture'] = 'Upload picture';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Add a icon link on each picture page to upload image on Facebook';
-//~ $lang[''] = '';
-//~ $lang[''] = '';
-//~ $lang[''] = '';
-
-?>
Index: extensions/FacebookPlug/Plugin/language/en_UK/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/en_UK/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/en_UK/admin.lang.php	(revision 9795)
@@ -0,0 +1,101 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+// English
+$lang['page'] = 'page';
+$lang['image'] = 'image';
+$lang['standard'] = 'standard';
+$lang['button_count'] = 'button_count';
+$lang['box_count'] = 'box_count';
+$lang['like'] = 'like';
+$lang['recommend'] = 'recommend';
+$lang['light'] = 'light';
+$lang['dark'] = 'dark';
+$lang['Social plugins'] = 'Social plugins';
+$lang['Advanced'] = 'Advanced';
+$lang['Asynchronous Facebook access'] = 'Asynchronous Facebook access';
+$lang['Like button'] = 'Like button';
+$lang['Enabled'] = 'Enabled';
+$lang['Picture URL type'] = 'Picture URL type';
+$lang['Layout style'] = 'Layout style';
+$lang['Show faces'] = 'Show faces';
+$lang['Verb to display'] = 'Verb to display';
+$lang['Color scheme'] = 'Color scheme';
+$lang['Like box'] = 'Like box';
+$lang['Show stream'] = 'Show stream';
+$lang['Show header'] = 'Show header';
+$lang['Facebook Page URL'] = 'Facebook Page URL';
+$lang['Data updated with success'] = 'Data updated with success';
+$lang['Data updated with error'] = 'Data updated with error';
+$lang['Facepile'] = 'Facepile';
+$lang['on slideshow pages'] = 'on slideshow pages';
+$lang['Num rows'] = 'Num rows';
+$lang['Comments'] = 'Comments';
+$lang['Num posts'] = 'Num posts';
+$lang['Title'] = 'Title';
+$lang['Simple'] = 'Simple';
+$lang['Reverse'] = 'Reverse';
+$lang['Publish feed'] = 'Publish feed';
+$lang['Facebook application identifient'] = 'Facebook application identifient';
+$lang['On picture pages'] = 'On picture pages';
+$lang['On menu of main pages'] = 'On menu of main pages';
+$lang['Options'] = 'Options';
+$lang['Like button and comments cannot be enabled together'] = 'Like button and comments cannot be enabled together';
+$lang['enabled values are restored'] = 'enabled values are restored';
+$lang['Informations'] = 'Informations';
+$lang['Continue'] = 'Continue';
+$lang['Always initialize Facebook'] = 'Always initialize Facebook';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Useful for personal templates, plugins. A event if also defined for plugins.';
+$lang['Allow Facebook to see private page'] = 'Allow Facebook to see private page';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Recommended in order to Facebook get title, ... of your pages';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.';
+$lang['Promote'] = 'Promote';
+$lang['Add informations on about page'] = 'Add informations on about page';
+$lang['Add a paragraph with Facebook link on about page'] = 'Add a paragraph with Facebook link on about page';
+$lang['Add Facebook Piwigo group on footer'] = 'Add Facebook Piwigo group on footer';
+$lang['Add a link on each page footer'] = 'Add a link on each page footer';
+$lang['Add Facebook Piwigo application on footer'] = 'Add Facebook Piwigo application on footer';
+$lang['Develop by'] = 'Develop by';
+$lang['Activity feed'] = 'Activity feed';
+$lang['Show recommendations'] = 'Show recommendations';
+$lang['Height'] = 'Height';
+$lang['Other options are available by programming'] = 'Other options are available by programming';
+$lang['Activity'] = 'Activity';
+$lang['Share'] = 'Share';
+$lang['Share picture page'] = 'Share picture page';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Add a icon link on each picture page to share on Facebook';
+$lang['Share album page'] = 'Share album page';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Add a icon link on each album page to share on Facebook';
+$lang['Buttons'] = 'Buttons';
+$lang['Upload'] = 'Upload';
+$lang['Upload picture'] = 'Upload picture';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Add a icon link on each picture page to upload image on Facebook';
+//~ $lang[''] = '';
+//~ $lang[''] = '';
+//~ $lang[''] = '';
+
+?>
Index: extensions/FacebookPlug/Plugin/language/fr_FR/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/fr_FR/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,98 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-// Français
-$lang['page'] = 'page';
-$lang['image'] = 'image';
-$lang['standard'] = 'standard';
-$lang['button_count'] = 'bouton avec compteur';
-$lang['box_count'] = 'boite avec compteur';
-$lang['like'] = 'j\'aime';
-$lang['recommend'] = 'recommande';
-$lang['light'] = 'clair';
-$lang['dark'] = 'foncé';
-$lang['Social plugins'] = 'Modules sociaux';
-$lang['Advanced'] = 'Avancé';
-$lang['Asynchronous Facebook access'] = 'Accès asynchrone à Facebook';
-$lang['Like button'] = 'Bouton "J\'aime"';
-$lang['Enabled'] = 'Activé';
-$lang['Picture URL type'] = 'Type d\'URL pour les images';
-$lang['Layout style'] = 'Style d\'affichage';
-$lang['Show faces'] = 'Voir les faces';
-$lang['Verb to display'] = 'Texte à afficher';
-$lang['Color scheme'] = 'Jeu de couleurs';
-$lang['Like box'] = 'Boite "J\'aime"';
-$lang['Show stream'] = 'Voir le flux';
-$lang['Show header'] = 'Voir l\'entête';
-$lang['Facebook Page URL'] = 'URL de la page Facebook';
-$lang['Data updated with success'] = 'Données mises à jour avec succès';
-$lang['Data updated with error'] = 'Données mises à jour avec erreur';
-$lang['Facepile'] = 'Facepile';
-$lang['on slideshow pages'] = 'sur les diaporamas';
-$lang['Num rows'] = 'Nombre de lignes';
-$lang['Comments'] = 'Commentaires';
-$lang['Num posts'] = 'Nombre de commentaires affichés';
-$lang['Title'] = 'Titre';
-$lang['Simple'] = 'Simple';
-$lang['Reverse'] = 'Ordre inversé';
-$lang['Publish feed'] = 'Publier les commentaires';
-$lang['Facebook application identifient'] = 'Identifiant de l\'application Facebook';
-$lang['On picture pages'] = 'Sur les pages d\'images';
-$lang['On menu of main pages'] = 'Dans les menus des pages principales';
-$lang['Options'] = 'Options';
-$lang['Like button and comments cannot be enabled together'] = 'Le bouton "J\'aime" et les commentaires ne peuvent être activés en même temps';
-$lang['enabled values are restored'] = 'les valeurs d\'activation ont été restaurées';
-$lang['Informations'] = 'Informations';
-$lang['Continue'] = 'Continuer';
-$lang['Always initialize Facebook'] = 'Toujours initialiser Facebook';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Utile pour les templates (modéles) personnels, plugin. Un événement a été aussi défini pour les plugins.';
-$lang['Allow Facebook to see private page'] = 'Permettre à Facebook de voir les pages privées';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Recommandé afin que Facebook puisse obtenir le titre, ... de vos pages pour les affichages sur les murs.';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'A remplir uniquement si vous voulez utiliser une application Facebook spécifique. Il est recommandé de laisser la valeur à blanc.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Le type page permet de reférencer la page et Facebook peut récupérer les informations (titre, ...). Le type image permet de référencer l\'url de l\'image et Facebook ne peut plus obtenir les informations mais fonctionne toujours avec les albums privés.';
-$lang['Promote'] = 'Promouvoir';
-$lang['Add informations on about page'] = 'Ajout d\'informations sur la page "À propos"';
-$lang['Add a paragraph with Facebook link on about page'] = 'Ajout d\'un paragraphe avec les liens Facebook sur la page "À propos"';
-$lang['Add Facebook Piwigo group on footer'] = 'Ajout du groupe Piwigo de Facebook en bas de page';
-$lang['Add a link on each page footer'] = 'Ajout d\'un lien sur chaque bas de page';
-$lang['Add Facebook Piwigo application on footer'] = 'Ajout de l\'application Piwigo de Facebook en bas de page';
-$lang['Develop by'] = 'Développé par';
-$lang['Activity feed'] = 'Flux d\'activité';
-$lang['Show recommendations'] = 'Voir les recommandations';
-$lang['Height'] = 'Hauteur';
-$lang['Other options are available by programming'] = 'D\'autres options sont disponibles par programmation';
-$lang['Activity'] = 'Activité';
-$lang['Share'] = 'Partager';
-$lang['Share picture page'] = 'Partager la page "image"';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Ajout d\'une icone contenant un lien afin de partager sur Facebook chaque page \'image\'';
-$lang['Share album page'] = 'Partager la page "album"';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Ajout d\'une icone contenant un lien afin de partager sur Facebook chaque page \'album\'';
-$lang['Buttons'] = 'Boutons';
-$lang['Upload'] = 'Téléchargement';
-$lang['Upload picture'] = 'Télécharger une image';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Ajout d\'une icone contenant un lien afin de télécharger sur Facebook chaque image';
-
-?>
Index: extensions/FacebookPlug/Plugin/language/fr_FR/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/fr_FR/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/fr_FR/admin.lang.php	(revision 9795)
@@ -0,0 +1,98 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+// Français
+$lang['page'] = 'page';
+$lang['image'] = 'image';
+$lang['standard'] = 'standard';
+$lang['button_count'] = 'bouton avec compteur';
+$lang['box_count'] = 'boite avec compteur';
+$lang['like'] = 'j\'aime';
+$lang['recommend'] = 'recommande';
+$lang['light'] = 'clair';
+$lang['dark'] = 'foncé';
+$lang['Social plugins'] = 'Modules sociaux';
+$lang['Advanced'] = 'Avancé';
+$lang['Asynchronous Facebook access'] = 'Accès asynchrone à Facebook';
+$lang['Like button'] = 'Bouton "J\'aime"';
+$lang['Enabled'] = 'Activé';
+$lang['Picture URL type'] = 'Type d\'URL pour les images';
+$lang['Layout style'] = 'Style d\'affichage';
+$lang['Show faces'] = 'Voir les faces';
+$lang['Verb to display'] = 'Texte à afficher';
+$lang['Color scheme'] = 'Jeu de couleurs';
+$lang['Like box'] = 'Boite "J\'aime"';
+$lang['Show stream'] = 'Voir le flux';
+$lang['Show header'] = 'Voir l\'entête';
+$lang['Facebook Page URL'] = 'URL de la page Facebook';
+$lang['Data updated with success'] = 'Données mises à jour avec succès';
+$lang['Data updated with error'] = 'Données mises à jour avec erreur';
+$lang['Facepile'] = 'Facepile';
+$lang['on slideshow pages'] = 'sur les diaporamas';
+$lang['Num rows'] = 'Nombre de lignes';
+$lang['Comments'] = 'Commentaires';
+$lang['Num posts'] = 'Nombre de commentaires affichés';
+$lang['Title'] = 'Titre';
+$lang['Simple'] = 'Simple';
+$lang['Reverse'] = 'Ordre inversé';
+$lang['Publish feed'] = 'Publier les commentaires';
+$lang['Facebook application identifient'] = 'Identifiant de l\'application Facebook';
+$lang['On picture pages'] = 'Sur les pages d\'images';
+$lang['On menu of main pages'] = 'Dans les menus des pages principales';
+$lang['Options'] = 'Options';
+$lang['Like button and comments cannot be enabled together'] = 'Le bouton "J\'aime" et les commentaires ne peuvent être activés en même temps';
+$lang['enabled values are restored'] = 'les valeurs d\'activation ont été restaurées';
+$lang['Informations'] = 'Informations';
+$lang['Continue'] = 'Continuer';
+$lang['Always initialize Facebook'] = 'Toujours initialiser Facebook';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Utile pour les templates (modéles) personnels, plugin. Un événement a été aussi défini pour les plugins.';
+$lang['Allow Facebook to see private page'] = 'Permettre à Facebook de voir les pages privées';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Recommandé afin que Facebook puisse obtenir le titre, ... de vos pages pour les affichages sur les murs.';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'A remplir uniquement si vous voulez utiliser une application Facebook spécifique. Il est recommandé de laisser la valeur à blanc.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Le type page permet de reférencer la page et Facebook peut récupérer les informations (titre, ...). Le type image permet de référencer l\'url de l\'image et Facebook ne peut plus obtenir les informations mais fonctionne toujours avec les albums privés.';
+$lang['Promote'] = 'Promouvoir';
+$lang['Add informations on about page'] = 'Ajout d\'informations sur la page "À propos"';
+$lang['Add a paragraph with Facebook link on about page'] = 'Ajout d\'un paragraphe avec les liens Facebook sur la page "À propos"';
+$lang['Add Facebook Piwigo group on footer'] = 'Ajout du groupe Piwigo de Facebook en bas de page';
+$lang['Add a link on each page footer'] = 'Ajout d\'un lien sur chaque bas de page';
+$lang['Add Facebook Piwigo application on footer'] = 'Ajout de l\'application Piwigo de Facebook en bas de page';
+$lang['Develop by'] = 'Développé par';
+$lang['Activity feed'] = 'Flux d\'activité';
+$lang['Show recommendations'] = 'Voir les recommandations';
+$lang['Height'] = 'Hauteur';
+$lang['Other options are available by programming'] = 'D\'autres options sont disponibles par programmation';
+$lang['Activity'] = 'Activité';
+$lang['Share'] = 'Partager';
+$lang['Share picture page'] = 'Partager la page "image"';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Ajout d\'une icone contenant un lien afin de partager sur Facebook chaque page \'image\'';
+$lang['Share album page'] = 'Partager la page "album"';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Ajout d\'une icone contenant un lien afin de partager sur Facebook chaque page \'album\'';
+$lang['Buttons'] = 'Boutons';
+$lang['Upload'] = 'Téléchargement';
+$lang['Upload picture'] = 'Télécharger une image';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Ajout d\'une icone contenant un lien afin de télécharger sur Facebook chaque image';
+
+?>
Index: extensions/FacebookPlug/Plugin/language/it_IT/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/it_IT/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,98 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-// Italien
-$lang['page'] = 'pagina';
-$lang['image'] = 'immagine';
-$lang['standard'] = 'standard';
-$lang['button_count'] = 'tasto con contatore';
-$lang['box_count'] = 'box con contatore';
-$lang['like'] = 'mi piace';
-$lang['recommend'] = 'raccomanda';
-$lang['light'] = 'chiaro';
-$lang['dark'] = 'scuro';
-$lang['Social plugins'] = 'Moduli sociali';
-$lang['Advanced'] = 'Avanzato';
-$lang['Asynchronous Facebook access'] = 'Accesso asincrono a Facebook';
-$lang['Like button'] = 'tasto "mi piace"';
-$lang['Enabled'] = 'Attivato';
-$lang['Picture URL type'] = 'Tipo di URL per le immagini';
-$lang['Layout style'] = 'Stile di visualizzazione';
-$lang['Show faces'] = 'Vedere le facce';
-$lang['Verb to display'] = 'Testo da visualizzare';
-$lang['Color scheme'] = 'Combinazione di colori';
-$lang['Like box'] = 'Box "mi piace"';
-$lang['Show stream'] = 'Visualizza RSS';
-$lang['Show header'] = 'Vedere l\'intestazione';
-$lang['Facebook Page URL'] = 'URL della pagina di Facebook';
-$lang['Data updated with success'] = 'Dati aggiornati con successo';
-$lang['Data updated with error'] = 'Dati aggiornati con errori';
-$lang['Facepile'] = 'Facepile';
-$lang['on slideshow pages'] = 'sul diaporama';
-$lang['Num rows'] = 'Numero di linee';
-$lang['Comments'] = 'Commenti';
-$lang['Num posts'] = 'Numero di commenti visualizzati';
-$lang['Title'] = 'Titolo';
-$lang['Simple'] = 'Semplice';
-$lang['Reverse'] = 'Ordine inverso';
-$lang['Publish feed'] = 'Pubblicare i commenti';
-$lang['Facebook application identifient'] = 'ID dell\'applicazione Facebook';
-$lang['On picture pages'] = 'Nelle pagine d\'immagini';
-$lang['On menu of main pages'] = 'Nei menu delle pagini principali';
-$lang['Options'] = 'Opzioni';
-$lang['Like button and comments cannot be enabled together'] = 'Il tasto "Mi piace", ei commenti possono essere attivati contemporaneamente';
-$lang['enabled values are restored'] = 'i valori d\'attivazione sono stati restaurati';
-$lang['Informations'] = 'Informazioni';
-$lang['Continue'] = 'Continuare';
-$lang['Always initialize Facebook'] = 'Sempre inizializzare Facebook';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Utile per i template (modelli) personali, plugin. Un evento è stato inoltre definito per i plugin.';
-$lang['Allow Facebook to see private page'] = 'Permettere Facebook di vedere le pagine private (consigliato)';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Consigliato per permettere a Facebook di ottenere il titolo, ..., delle vostre pagine per visualizzarle sulla bacheca.';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Da compilare solo se si desidera utilizzare un\'applicazione specifica Facebook. Si raccomanda di lasciare il campo vuoto.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Il tipo "pagina" permette di fare riferimento alla pagina e Facebook può recuperare le informazioni (titolo, ...). Il tipo "immagine" permette di fare riferimento all\'url dell\immagine e Facebook non può più ottenere ulteriori informazioni, ma funziona sempre con gli album privati.';
-$lang['Promote'] = 'Promuovere';
-$lang['Add informations on about page'] = 'Aggiunta d\'informazioni sulla pagina "About"';
-$lang['Add a paragraph with Facebook link on about page'] = 'Aggiunta di un paragrafo con i link Facebook alla pagina "About"';
-$lang['Add Facebook Piwigo group on footer'] = 'Aggiunta del gruppo Piwigo di Facebook nel piè di pagina';
-$lang['Add a link on each page footer'] = 'Ajout d\'un lien sur chaque bas de page';
-$lang['Add Facebook Piwigo application on footer'] = 'Aggiunta dell\'applicazione Piwigo di Facebook nel piè di pagina';
-$lang['Develop by'] = 'Sviluppato da';
-$lang['Activity feed'] = 'Flusso d\'attività';
-$lang['Show recommendations'] = 'Vedere le raccomandazioni';
-$lang['Height'] = 'Altezza';
-$lang['Other options are available by programming'] = 'Altre opzioni sono disponibili programmandole';
-$lang['Activity'] = 'Attività';
-$lang['Share'] = 'Condividere';
-$lang['Share picture page'] = 'Condividere la pagina "immagine"';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Aggiunge un\'icona con un link al fine di condividere ogni pagina "immagine" su Facebook';
-$lang['Share album page'] = 'Partager la page "album"';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Aggiunge un\'icona con un link al fine di condividere ogni pagina "album" su Facebook';
-$lang['Buttons'] = 'Pulzante';
-$lang['Upload'] = 'Scaricare';
-$lang['Upload picture'] = 'Scaricare un\'immagine';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Aggiunge un\'icona con un link al fine di scaricare ogni immagine sur Facebook';
-
-?>
Index: extensions/FacebookPlug/Plugin/language/it_IT/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/it_IT/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/it_IT/admin.lang.php	(revision 9795)
@@ -0,0 +1,98 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+// Italien
+$lang['page'] = 'pagina';
+$lang['image'] = 'immagine';
+$lang['standard'] = 'standard';
+$lang['button_count'] = 'tasto con contatore';
+$lang['box_count'] = 'box con contatore';
+$lang['like'] = 'mi piace';
+$lang['recommend'] = 'raccomanda';
+$lang['light'] = 'chiaro';
+$lang['dark'] = 'scuro';
+$lang['Social plugins'] = 'Moduli sociali';
+$lang['Advanced'] = 'Avanzato';
+$lang['Asynchronous Facebook access'] = 'Accesso asincrono a Facebook';
+$lang['Like button'] = 'tasto "mi piace"';
+$lang['Enabled'] = 'Attivato';
+$lang['Picture URL type'] = 'Tipo di URL per le immagini';
+$lang['Layout style'] = 'Stile di visualizzazione';
+$lang['Show faces'] = 'Vedere le facce';
+$lang['Verb to display'] = 'Testo da visualizzare';
+$lang['Color scheme'] = 'Combinazione di colori';
+$lang['Like box'] = 'Box "mi piace"';
+$lang['Show stream'] = 'Visualizza RSS';
+$lang['Show header'] = 'Vedere l\'intestazione';
+$lang['Facebook Page URL'] = 'URL della pagina di Facebook';
+$lang['Data updated with success'] = 'Dati aggiornati con successo';
+$lang['Data updated with error'] = 'Dati aggiornati con errori';
+$lang['Facepile'] = 'Facepile';
+$lang['on slideshow pages'] = 'sul diaporama';
+$lang['Num rows'] = 'Numero di linee';
+$lang['Comments'] = 'Commenti';
+$lang['Num posts'] = 'Numero di commenti visualizzati';
+$lang['Title'] = 'Titolo';
+$lang['Simple'] = 'Semplice';
+$lang['Reverse'] = 'Ordine inverso';
+$lang['Publish feed'] = 'Pubblicare i commenti';
+$lang['Facebook application identifient'] = 'ID dell\'applicazione Facebook';
+$lang['On picture pages'] = 'Nelle pagine d\'immagini';
+$lang['On menu of main pages'] = 'Nei menu delle pagini principali';
+$lang['Options'] = 'Opzioni';
+$lang['Like button and comments cannot be enabled together'] = 'Il tasto "Mi piace", ei commenti possono essere attivati contemporaneamente';
+$lang['enabled values are restored'] = 'i valori d\'attivazione sono stati restaurati';
+$lang['Informations'] = 'Informazioni';
+$lang['Continue'] = 'Continuare';
+$lang['Always initialize Facebook'] = 'Sempre inizializzare Facebook';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Utile per i template (modelli) personali, plugin. Un evento è stato inoltre definito per i plugin.';
+$lang['Allow Facebook to see private page'] = 'Permettere Facebook di vedere le pagine private (consigliato)';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Consigliato per permettere a Facebook di ottenere il titolo, ..., delle vostre pagine per visualizzarle sulla bacheca.';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Da compilare solo se si desidera utilizzare un\'applicazione specifica Facebook. Si raccomanda di lasciare il campo vuoto.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Il tipo "pagina" permette di fare riferimento alla pagina e Facebook può recuperare le informazioni (titolo, ...). Il tipo "immagine" permette di fare riferimento all\'url dell\immagine e Facebook non può più ottenere ulteriori informazioni, ma funziona sempre con gli album privati.';
+$lang['Promote'] = 'Promuovere';
+$lang['Add informations on about page'] = 'Aggiunta d\'informazioni sulla pagina "About"';
+$lang['Add a paragraph with Facebook link on about page'] = 'Aggiunta di un paragrafo con i link Facebook alla pagina "About"';
+$lang['Add Facebook Piwigo group on footer'] = 'Aggiunta del gruppo Piwigo di Facebook nel piè di pagina';
+$lang['Add a link on each page footer'] = 'Ajout d\'un lien sur chaque bas de page';
+$lang['Add Facebook Piwigo application on footer'] = 'Aggiunta dell\'applicazione Piwigo di Facebook nel piè di pagina';
+$lang['Develop by'] = 'Sviluppato da';
+$lang['Activity feed'] = 'Flusso d\'attività';
+$lang['Show recommendations'] = 'Vedere le raccomandazioni';
+$lang['Height'] = 'Altezza';
+$lang['Other options are available by programming'] = 'Altre opzioni sono disponibili programmandole';
+$lang['Activity'] = 'Attività';
+$lang['Share'] = 'Condividere';
+$lang['Share picture page'] = 'Condividere la pagina "immagine"';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Aggiunge un\'icona con un link al fine di condividere ogni pagina "immagine" su Facebook';
+$lang['Share album page'] = 'Partager la page "album"';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Aggiunge un\'icona con un link al fine di condividere ogni pagina "album" su Facebook';
+$lang['Buttons'] = 'Pulzante';
+$lang['Upload'] = 'Scaricare';
+$lang['Upload picture'] = 'Scaricare un\'immagine';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Aggiunge un\'icona con un link al fine di scaricare ogni immagine sur Facebook';
+
+?>
Index: extensions/FacebookPlug/Plugin/language/lv_LV/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/lv_LV/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,97 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-
-$lang['page'] = 'lapa';
-$lang['image'] = 'attēls';
-$lang['standard'] = 'standarta';
-$lang['button_count'] = 'poga_skaits';
-$lang['box_count'] = 'kaste_skaits';
-$lang['like'] = 'līdzīgs';
-$lang['recommend'] = 'rekomendēt';
-$lang['light'] = 'gaišs';
-$lang['dark'] = 'tumšs';
-$lang['Social plugins'] = 'Sociālie spraudņi';
-$lang['Advanced'] = 'Izvērstais';
-$lang['Asynchronous Facebook access'] = 'Asinhronā piekļuve Facebook';
-$lang['Like button'] = 'Poga patīk';
-$lang['Enabled'] = 'Iespējots';
-$lang['Picture URL type'] = 'Attēla URL tips';
-$lang['Layout style'] = 'Izkārtojuma stils';
-$lang['Show faces'] = 'Rādīt sejas';
-$lang['Verb to display'] = 'Vārds, ko rādīt';
-$lang['Color scheme'] = 'Krāsu shēma';
-$lang['Like box'] = 'Kaste patīk';
-$lang['Show stream'] = 'Rādīt plūsmu';
-$lang['Show header'] = 'Rādīt galveni';
-$lang['Facebook Page URL'] = 'Facebook Lapas URL';
-$lang['Data updated with success'] = 'Dati atjaunināti sekmīgi';
-$lang['Data updated with error'] = 'Dati atjaunināti, bet ar kļūdu';
-$lang['Facepile'] = 'Daudz Seju';
-$lang['on slideshow pages'] = 'slaidrādes lapās';
-$lang['Num rows'] = 'Num rindas';
-$lang['Comments'] = 'Komentāri';
-$lang['Num posts'] = 'Num ziņas';
-$lang['Title'] = 'Virsraksts';
-$lang['Simple'] = 'Vienkāršs';
-$lang['Reverse'] = 'Reverss';
-$lang['Publish feed'] = 'Publicēt piegādāto';
-$lang['Facebook application identifient'] = 'Facebook aplikācijas identifikātors';
-$lang['On picture pages'] = 'Attēla lapās';
-$lang['On menu of main pages'] = 'Galveno lapu izvēlnēs';
-$lang['Options'] = 'Opcijas';
-$lang['Like button and comments cannot be enabled together'] = 'Pogu patīk un komentārus nevar iespējot abus kopā';
-$lang['enabled values are restored'] = 'iespējotās vērtības ir atgrieztas sākotnējā stāvoklī';
-$lang['Informations'] = 'Informācija';
-$lang['Continue'] = 'Turpināt';
-$lang['Always initialize Facebook'] = 'Vienmēr inicializēt Facebook';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Noderīgs personīgajiem paraugiem, spraudņiem. Gadījumā, ja definēts arī priekš spraudņiem.';
-$lang['Allow Facebook to see private page'] = 'Atļaut Facebook skatīt privāto lapu';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Ieteicams, lai Facebook saņemtu nosaukumu, ... no jūsu lapām';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Aizpildiet tikai tad, ja vēlaties izmantot kādu konkrētu Facebook aplikāciju. Ieteicams atstāt tukšu.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Lapas tips dod iespēju izveidot lapas atsauci un Facebook var gūt infotmāciju (nosaukumu, ...). Attēla tips dod iespēju izveidot attēla url atsauci un Facebook nevar iegūt informāciju, bet vienmēr var strādāt ar privātajiem albūmiem.';
-$lang['Promote'] = 'Veicināt';
-$lang['Add informations on about page'] = 'Pievienot informāciju pie par lapu';
-$lang['Add a paragraph with Facebook link on about page'] = 'Pievienot paragrāfu ar linku uz Facebook pie par lapu';
-$lang['Add Facebook Piwigo group on footer'] = 'Pievienot Facebook Piwigo grupu kājenei';
-$lang['Add a link on each page footer'] = 'Pievienot saiti katras lapas kājenei';
-$lang['Add Facebook Piwigo application on footer'] = 'Pievienot Facebook Piwigo aplikāciju kājenei';
-$lang['Develop by'] = 'Izveidojis';
-$lang['Activity feed'] = 'Darbības nodrošināšana';
-$lang['Show recommendations'] = 'Rādīt ieteikumus';
-$lang['Height'] = 'Augstums';
-$lang['Other options are available by programming'] = 'Citas iespējas pieejams pārprogrammējot';
-$lang['Activity'] = 'Aktivitāte';
-$lang['Share'] = 'Daļa (Share)';
-$lang['Share picture page'] = 'Dalīties ar attēla lapu';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Pievienot katrai attēla lapai ikonu ar saiti, lai varētu dalīties Facebook(ā)';
-$lang['Share album page'] = 'Dalīties ar albūma lapu';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Pievienot katrai albūma lapai ikonu ar saiti, lai varētu dalīties Facebook(ā)';
-$lang['Buttons'] = 'Pogas';
-$lang['Upload'] = 'Augšupielādēt';
-$lang['Upload picture'] = 'Augšupielādēt attēlu';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Pievienot katrai attēla lapai ikonu ar saiti, lai varētu augšupielādēt attēlu Facebook(ā)';
-?>
Index: extensions/FacebookPlug/Plugin/language/lv_LV/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/lv_LV/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/lv_LV/admin.lang.php	(revision 9795)
@@ -0,0 +1,97 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+
+$lang['page'] = 'lapa';
+$lang['image'] = 'attēls';
+$lang['standard'] = 'standarta';
+$lang['button_count'] = 'poga_skaits';
+$lang['box_count'] = 'kaste_skaits';
+$lang['like'] = 'līdzīgs';
+$lang['recommend'] = 'rekomendēt';
+$lang['light'] = 'gaišs';
+$lang['dark'] = 'tumšs';
+$lang['Social plugins'] = 'Sociālie spraudņi';
+$lang['Advanced'] = 'Izvērstais';
+$lang['Asynchronous Facebook access'] = 'Asinhronā piekļuve Facebook';
+$lang['Like button'] = 'Poga patīk';
+$lang['Enabled'] = 'Iespējots';
+$lang['Picture URL type'] = 'Attēla URL tips';
+$lang['Layout style'] = 'Izkārtojuma stils';
+$lang['Show faces'] = 'Rādīt sejas';
+$lang['Verb to display'] = 'Vārds, ko rādīt';
+$lang['Color scheme'] = 'Krāsu shēma';
+$lang['Like box'] = 'Kaste patīk';
+$lang['Show stream'] = 'Rādīt plūsmu';
+$lang['Show header'] = 'Rādīt galveni';
+$lang['Facebook Page URL'] = 'Facebook Lapas URL';
+$lang['Data updated with success'] = 'Dati atjaunināti sekmīgi';
+$lang['Data updated with error'] = 'Dati atjaunināti, bet ar kļūdu';
+$lang['Facepile'] = 'Daudz Seju';
+$lang['on slideshow pages'] = 'slaidrādes lapās';
+$lang['Num rows'] = 'Num rindas';
+$lang['Comments'] = 'Komentāri';
+$lang['Num posts'] = 'Num ziņas';
+$lang['Title'] = 'Virsraksts';
+$lang['Simple'] = 'Vienkāršs';
+$lang['Reverse'] = 'Reverss';
+$lang['Publish feed'] = 'Publicēt piegādāto';
+$lang['Facebook application identifient'] = 'Facebook aplikācijas identifikātors';
+$lang['On picture pages'] = 'Attēla lapās';
+$lang['On menu of main pages'] = 'Galveno lapu izvēlnēs';
+$lang['Options'] = 'Opcijas';
+$lang['Like button and comments cannot be enabled together'] = 'Pogu patīk un komentārus nevar iespējot abus kopā';
+$lang['enabled values are restored'] = 'iespējotās vērtības ir atgrieztas sākotnējā stāvoklī';
+$lang['Informations'] = 'Informācija';
+$lang['Continue'] = 'Turpināt';
+$lang['Always initialize Facebook'] = 'Vienmēr inicializēt Facebook';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Noderīgs personīgajiem paraugiem, spraudņiem. Gadījumā, ja definēts arī priekš spraudņiem.';
+$lang['Allow Facebook to see private page'] = 'Atļaut Facebook skatīt privāto lapu';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Ieteicams, lai Facebook saņemtu nosaukumu, ... no jūsu lapām';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Aizpildiet tikai tad, ja vēlaties izmantot kādu konkrētu Facebook aplikāciju. Ieteicams atstāt tukšu.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Lapas tips dod iespēju izveidot lapas atsauci un Facebook var gūt infotmāciju (nosaukumu, ...). Attēla tips dod iespēju izveidot attēla url atsauci un Facebook nevar iegūt informāciju, bet vienmēr var strādāt ar privātajiem albūmiem.';
+$lang['Promote'] = 'Veicināt';
+$lang['Add informations on about page'] = 'Pievienot informāciju pie par lapu';
+$lang['Add a paragraph with Facebook link on about page'] = 'Pievienot paragrāfu ar linku uz Facebook pie par lapu';
+$lang['Add Facebook Piwigo group on footer'] = 'Pievienot Facebook Piwigo grupu kājenei';
+$lang['Add a link on each page footer'] = 'Pievienot saiti katras lapas kājenei';
+$lang['Add Facebook Piwigo application on footer'] = 'Pievienot Facebook Piwigo aplikāciju kājenei';
+$lang['Develop by'] = 'Izveidojis';
+$lang['Activity feed'] = 'Darbības nodrošināšana';
+$lang['Show recommendations'] = 'Rādīt ieteikumus';
+$lang['Height'] = 'Augstums';
+$lang['Other options are available by programming'] = 'Citas iespējas pieejams pārprogrammējot';
+$lang['Activity'] = 'Aktivitāte';
+$lang['Share'] = 'Daļa (Share)';
+$lang['Share picture page'] = 'Dalīties ar attēla lapu';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Pievienot katrai attēla lapai ikonu ar saiti, lai varētu dalīties Facebook(ā)';
+$lang['Share album page'] = 'Dalīties ar albūma lapu';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Pievienot katrai albūma lapai ikonu ar saiti, lai varētu dalīties Facebook(ā)';
+$lang['Buttons'] = 'Pogas';
+$lang['Upload'] = 'Augšupielādēt';
+$lang['Upload picture'] = 'Augšupielādēt attēlu';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Pievienot katrai attēla lapai ikonu ar saiti, lai varētu augšupielādēt attēlu Facebook(ā)';
+?>
Index: extensions/FacebookPlug/Plugin/language/sk_SK/admin.config.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/sk_SK/admin.config.lang.php	(revision 9457)
+++ 	(revision )
@@ -1,101 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | FacebookPlug - a Piwigo Plugin                                        |
-// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
-  die('Hacking attempt!');
-}
-
-// English
-$lang['page'] = 'strana';
-$lang['image'] = 'fotografia';
-$lang['standard'] = 'štandard';
-$lang['button_count'] = 'tlačidlo_počítadla';
-$lang['box_count'] = 'box_počítadla';
-$lang['like'] = 'páči sa mi';
-$lang['recommend'] = 'potrebné';
-$lang['light'] = 'svetlé';
-$lang['dark'] = 'tmavé';
-$lang['Social plugins'] = 'Sociálne doplnky';
-$lang['Advanced'] = 'Pokročilé';
-$lang['Asynchronous Facebook access'] = 'Asynchronovaný Facebook prístup';
-$lang['Like button'] = 'Tlačidlo Páči sa mi';
-$lang['Enabled'] = 'Povolené';
-$lang['Picture URL type'] = 'URL typ fotografie';
-$lang['Layout style'] = 'Schéma štýlu';
-$lang['Show faces'] = 'Zobraz tváre';
-$lang['Verb to display'] = 'Zobraziť slovo';
-$lang['Color scheme'] = 'Farebná schéma';
-$lang['Like box'] = 'Box páči sa mi';
-$lang['Show stream'] = 'Ukázať chod';
-$lang['Show header'] = 'Ukázať hlavičku';
-$lang['Facebook Page URL'] = 'URL stránka Facebooku';
-$lang['Data updated with success'] = 'Dáta úspešne aktualizované';
-$lang['Data updated with error'] = 'Dáta aktualizované s chybou';
-$lang['Facepile'] = 'Facepile';
-$lang['on slideshow pages'] = 'on slideshow pages';
-$lang['Num rows'] = 'Počet stĺpcov';
-$lang['Comments'] = 'Komentáre';
-$lang['Num posts'] = 'Počet poslaných';
-$lang['Title'] = 'Názov';
-$lang['Simple'] = 'Jednoduché';
-$lang['Reverse'] = 'Opačné';
-$lang['Publish feed'] = 'Publikovať feed';
-$lang['Facebook application identifient'] = 'Facebook aplikácia identifikovaná';
-$lang['On picture pages'] = 'Na stránkach fotografií';
-$lang['On menu of main pages'] = 'V menu mojich stránkach';
-$lang['Options'] = 'Voľby';
-$lang['Like button and comments cannot be enabled together'] = 'Tlačidlo páči sa mi a komentáre nemôžu byť povolené súčasne';
-$lang['enabled values are restored'] = 'povolené hodnoty sú obnovené';
-$lang['Informations'] = 'Informácie';
-$lang['Continue'] = 'Pokračovať';
-$lang['Always initialize Facebook'] = 'Stále inicializovaný Facebook';
-$lang[' (?)'] = ' (?)';
-$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Užitočné pre oosobné šablóny, doplnky. Udalosť, ak bola definovaná pre doplnky.';
-$lang['Allow Facebook to see private page'] = 'Povoliť vidieť Facebook na súkromných stránkach';
-$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Odporúčané zoradiť na Facebooku podľa názvu, ... na Vašich stránkach';
-$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Vyplniť, len ak chcete použiť špeciálnu Facebook aplikáciu. Odporáčame nechať prázdne.';
-$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Povoliť stránke referovať stránke a Facebooku posielať informácie (názov, ...). Povoliť fotografii referovať url fotografie a Facebooku nedovoliť posielať informácie ale pracovať vždy so súkromnými albumami.';
-$lang['Promote'] = 'Propagovať';
-$lang['Add informations on about page'] = 'Pridať informácie na stránku o mne';
-$lang['Add a paragraph with Facebook link on about page'] = 'Pridať článok s Facebook linkom na stránku o mne';
-$lang['Add Facebook Piwigo group on footer'] = 'Pridať Facebook Piwigo skupinu na spodok stránky';
-$lang['Add a link on each page footer'] = 'Pridať link na spodok každej stránky';
-$lang['Add Facebook Piwigo application on footer'] = 'Pridať Facebook Piwigo aplikáciu na spodok stránky';
-$lang['Develop by'] = 'Vytvorené';
-$lang['Activity feed'] = 'Činnosť feed';
-$lang['Show recommendations'] = 'Zobraziť odporúčania';
-$lang['Height'] = 'Výška';
-$lang['Other options are available by programming'] = 'Ďalšie voľby sú dostupné pri programovaní';
-$lang['Activity'] = 'Aktivity';
-$lang['Share'] = 'Zdieľať';
-$lang['Share picture page'] = 'Zdieľať stránku fotografií';
-$lang['Add a icon link on each picture page to share on Facebook'] = 'Pridať ikonu zdieľania na Facebook na každú stránku fotografií';
-$lang['Share album page'] = 'Zdieľať stránku albumu';
-$lang['Add a icon link on each album page to share on Facebook'] = 'Pridať ikonu zdieľania na Facebook na každú stránku albumu';
-$lang['Buttons'] = 'Tlačidlá';
-$lang['Upload'] = 'Nahrať';
-$lang['Upload picture'] = 'Nahrať fotografiu';
-$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Pridať ikonu nahrávania fotografie na Facebook na každú stránku fotografií';
-//~ $lang[''] = '';
-//~ $lang[''] = '';
-//~ $lang[''] = '';
-
-?>
Index: extensions/FacebookPlug/Plugin/language/sk_SK/admin.lang.php
===================================================================
--- extensions/FacebookPlug/Plugin/language/sk_SK/admin.lang.php	(revision 9795)
+++ extensions/FacebookPlug/Plugin/language/sk_SK/admin.lang.php	(revision 9795)
@@ -0,0 +1,101 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | FacebookPlug - a Piwigo Plugin                                        |
+// | Copyright (C) 2010-2011 Ruben ARNAUD - rub@piwigo.org                 |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH'))
+{
+  die('Hacking attempt!');
+}
+
+// English
+$lang['page'] = 'strana';
+$lang['image'] = 'fotografia';
+$lang['standard'] = 'štandard';
+$lang['button_count'] = 'tlačidlo_počítadla';
+$lang['box_count'] = 'box_počítadla';
+$lang['like'] = 'páči sa mi';
+$lang['recommend'] = 'potrebné';
+$lang['light'] = 'svetlé';
+$lang['dark'] = 'tmavé';
+$lang['Social plugins'] = 'Sociálne doplnky';
+$lang['Advanced'] = 'Pokročilé';
+$lang['Asynchronous Facebook access'] = 'Asynchronovaný Facebook prístup';
+$lang['Like button'] = 'Tlačidlo Páči sa mi';
+$lang['Enabled'] = 'Povolené';
+$lang['Picture URL type'] = 'URL typ fotografie';
+$lang['Layout style'] = 'Schéma štýlu';
+$lang['Show faces'] = 'Zobraz tváre';
+$lang['Verb to display'] = 'Zobraziť slovo';
+$lang['Color scheme'] = 'Farebná schéma';
+$lang['Like box'] = 'Box páči sa mi';
+$lang['Show stream'] = 'Ukázať chod';
+$lang['Show header'] = 'Ukázať hlavičku';
+$lang['Facebook Page URL'] = 'URL stránka Facebooku';
+$lang['Data updated with success'] = 'Dáta úspešne aktualizované';
+$lang['Data updated with error'] = 'Dáta aktualizované s chybou';
+$lang['Facepile'] = 'Facepile';
+$lang['on slideshow pages'] = 'on slideshow pages';
+$lang['Num rows'] = 'Počet stĺpcov';
+$lang['Comments'] = 'Komentáre';
+$lang['Num posts'] = 'Počet poslaných';
+$lang['Title'] = 'Názov';
+$lang['Simple'] = 'Jednoduché';
+$lang['Reverse'] = 'Opačné';
+$lang['Publish feed'] = 'Publikovať feed';
+$lang['Facebook application identifient'] = 'Facebook aplikácia identifikovaná';
+$lang['On picture pages'] = 'Na stránkach fotografií';
+$lang['On menu of main pages'] = 'V menu mojich stránkach';
+$lang['Options'] = 'Voľby';
+$lang['Like button and comments cannot be enabled together'] = 'Tlačidlo páči sa mi a komentáre nemôžu byť povolené súčasne';
+$lang['enabled values are restored'] = 'povolené hodnoty sú obnovené';
+$lang['Informations'] = 'Informácie';
+$lang['Continue'] = 'Pokračovať';
+$lang['Always initialize Facebook'] = 'Stále inicializovaný Facebook';
+$lang[' (?)'] = ' (?)';
+$lang['Useful for personal templates, plugins. A event if also defined for plugins.'] = 'Užitočné pre oosobné šablóny, doplnky. Udalosť, ak bola definovaná pre doplnky.';
+$lang['Allow Facebook to see private page'] = 'Povoliť vidieť Facebook na súkromných stránkach';
+$lang['Recommended in order to Facebook get title, ... of your pages for wall display'] = 'Odporúčané zoradiť na Facebooku podľa názvu, ... na Vašich stránkach';
+$lang['To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'] = 'Vyplniť, len ak chcete použiť špeciálnu Facebook aplikáciu. Odporáčame nechať prázdne.';
+$lang['Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'] = 'Povoliť stránke referovať stránke a Facebooku posielať informácie (názov, ...). Povoliť fotografii referovať url fotografie a Facebooku nedovoliť posielať informácie ale pracovať vždy so súkromnými albumami.';
+$lang['Promote'] = 'Propagovať';
+$lang['Add informations on about page'] = 'Pridať informácie na stránku o mne';
+$lang['Add a paragraph with Facebook link on about page'] = 'Pridať článok s Facebook linkom na stránku o mne';
+$lang['Add Facebook Piwigo group on footer'] = 'Pridať Facebook Piwigo skupinu na spodok stránky';
+$lang['Add a link on each page footer'] = 'Pridať link na spodok každej stránky';
+$lang['Add Facebook Piwigo application on footer'] = 'Pridať Facebook Piwigo aplikáciu na spodok stránky';
+$lang['Develop by'] = 'Vytvorené';
+$lang['Activity feed'] = 'Činnosť feed';
+$lang['Show recommendations'] = 'Zobraziť odporúčania';
+$lang['Height'] = 'Výška';
+$lang['Other options are available by programming'] = 'Ďalšie voľby sú dostupné pri programovaní';
+$lang['Activity'] = 'Aktivity';
+$lang['Share'] = 'Zdieľať';
+$lang['Share picture page'] = 'Zdieľať stránku fotografií';
+$lang['Add a icon link on each picture page to share on Facebook'] = 'Pridať ikonu zdieľania na Facebook na každú stránku fotografií';
+$lang['Share album page'] = 'Zdieľať stránku albumu';
+$lang['Add a icon link on each album page to share on Facebook'] = 'Pridať ikonu zdieľania na Facebook na každú stránku albumu';
+$lang['Buttons'] = 'Tlačidlá';
+$lang['Upload'] = 'Nahrať';
+$lang['Upload picture'] = 'Nahrať fotografiu';
+$lang['Add a icon link on each picture page to upload image on Facebook'] = 'Pridať ikonu nahrávania fotografie na Facebook na každú stránku fotografií';
+//~ $lang[''] = '';
+//~ $lang[''] = '';
+//~ $lang[''] = '';
+
+?>
Index: extensions/FacebookPlug/Plugin/tpl/admin.config.tpl
===================================================================
--- extensions/FacebookPlug/Plugin/tpl/admin.config.tpl	(revision 9457)
+++ 	(revision )
@@ -1,470 +1,0 @@
-{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
-{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
-{known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.dialog.packed.js"}
-{known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" }
-
-{html_head}
-<link rel="stylesheet" type="text/css" href="{$FBP_PATH|@cat:'/css/admin.config.css'}">
-{/html_head}
-
-<div class="titrePage">
-  <h2>FacebookPlug</h2>
-</div>
-<br>
-
-<form method="post" class="properties" action="{$FBP_ACTION}">
-{if isset($social_plugin)}
-<h3>{'On picture pages'|@translate}</h3>
-<fieldset>
-  <legend><a href="{$social_plugin.like_button.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like button'|@translate}</a></legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Enabled'|@translate}</span>
-        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED" {$social_plugin.like_button.ENABLED} />
-      </label>
-    </li>
-
-    <div id='like_button'>
-      <li>
-        <label>
-          <span class="property">{'Layout style'|@translate}</span>
-          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT" size="1">
-            {html_options options=$social_plugin.like_button.LAYOUT_OPTIONS selected=$social_plugin.like_button.LAYOUT_OPTIONS_SELECTED}
-          </select>
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show faces'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES" {$social_plugin.like_button.SHOW_FACES} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Verb to display'|@translate}</span>
-          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION" size="1">
-            {html_options options=$social_plugin.like_button.ACTION_OPTIONS selected=$social_plugin.like_button.ACTION_OPTIONS_SELECTED}
-          </select>
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Color scheme'|@translate}</span>
-          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME" size="1">
-            {html_options options=$social_plugin.like_button.COLORSCHEME_OPTIONS selected=$social_plugin.like_button.COLORSCHEME_OPTIONS_SELECTED}
-          </select>
-        </label>
-      </li>
-    </div>
-  </ul>
-</fieldset>
-
-<fieldset>
-  <legend><a href="{$social_plugin.facepile.FB_PAGE}" onclick="window.open(this.href); return false;">{'Facepile'|@translate}</a> {'on slideshow pages'|@translate}</legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Enabled'|@translate}</span>
-        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED" {$social_plugin.facepile.ENABLED} />
-      </label>
-    </li>
-
-    <div id='facepile'>
-      <li>
-        <label>
-          <span class="property">{'Num rows'|@translate}</span>
-          <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS" value="{$social_plugin.facepile.MAX_ROWS}" />
-        </label>
-      </li>
-    </div>
-  </ul>
-</fieldset>
-
-<fieldset>
-  <legend><a href="{$social_plugin.comments.FB_PAGE}" onclick="window.open(this.href); return false;">{'Comments'|@translate}</a></legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Enabled'|@translate}</span>
-        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED" {$social_plugin.comments.ENABLED} />
-      </label>
-    </li>
-
-    <div id='comments'>
-      <li>
-        <label>
-          <span class="property">{'Num posts'|@translate}</span>
-          <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS" value="{$social_plugin.comments.NUMPOSTS}" />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Title'|@translate}</span>
-          <input type="text" size="39" name="FBP_SOCIAL_PLUGIN_COMMENTS_TITLE" value="{$social_plugin.comments.TITLE}" />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Simple'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE" {$social_plugin.comments.SIMPLE} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Reverse'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE" {$social_plugin.comments.REVERSE} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Publish feed'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED" {$social_plugin.comments.PUBLISH_FEED} />
-        </label>
-      </li>
-    </div>
-  </ul>
-</fieldset>
-
-<h3>{'On menu of main pages'|@translate}</h3>
-<fieldset>
-  <legend><a href="{$social_plugin.activity_feed.FB_PAGE}" onclick="window.open(this.href); return false;">{'Activity feed'|@translate}</a></legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Enabled'|@translate}</span>
-        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED" {$social_plugin.activity_feed.ENABLED} />
-      </label>
-    </li>
-
-    <div id='activity_feed'>
-      <li>
-        <label>
-          <span class="property">{'Color scheme'|@translate}</span>
-          <select name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME" size="1">
-            {html_options options=$social_plugin.activity_feed.COLORSCHEME_OPTIONS selected=$social_plugin.activity_feed.COLORSCHEME_OPTIONS_SELECTED}
-          </select>
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show header'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER" {$social_plugin.activity_feed.HEADER} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show recommendations'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS" {$social_plugin.activity_feed.RECOMMENDATIONS} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Height'|@translate}</span>
-          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT" value="{$social_plugin.activity_feed.HEIGHT}" />
-        </label>
-      </li>
-    </div>
-  </ul>
-</fieldset>
-
-<fieldset>
-  <legend><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Enabled'|@translate}</span>
-        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED" {$social_plugin.like_box.ENABLED} />
-      </label>
-    </li>
-
-    <div id='like_box'>
-      <li>
-        <label>
-          <span class="property">{'Facebook Page URL'|@translate}</span>
-          <input type="text" size="39" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_URL" value="{$social_plugin.like_box.URL}" />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Color scheme'|@translate}</span>
-          <select name="FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME" size="1">
-            {html_options options=$social_plugin.like_box.COLORSCHEME_OPTIONS selected=$social_plugin.like_box.COLORSCHEME_OPTIONS_SELECTED}
-          </select>
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show faces'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES" {$social_plugin.like_box.SHOW_FACES} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show stream'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM" {$social_plugin.like_box.STREAM} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Show header'|@translate}</span>
-          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER" {$social_plugin.like_box.HEADER} />
-        </label>
-      </li>
-      <li>
-        <label>
-          <span class="property">{'Height'|@translate}</span>
-          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT" value="{$social_plugin.like_box.HEIGHT}" />
-        </label>
-      </li>
-    </div>
-  </ul>
-</fieldset>
-<p><i>{'Other options are available by programming'|@translate}</i></p>
-{/if}{* isset $social_plugin*}
-
-{if isset($button)}
-<fieldset>
-  <legend>{'Share'|@translate}</legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Share picture page'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a icon link on each picture page to share on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_SHARE_PICTURE" {$button.FBP_SHARE_PICTURE} />
-      </label>
-    </li>
-    <li>
-      <label>
-        <span class="property">{'Share album page'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a icon link on each album page to share on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_SHARE_ALBUM" {$button.FBP_SHARE_ALBUM} />
-      </label>
-    </li>
-  </ul>
-</fieldset>
-<fieldset>
-  <legend>{'Upload'|@translate}</legend>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Upload picture'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a icon link on each picture page to upload image on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_UPLOAD_PICTURE" {$button.FBP_UPLOAD_PICTURE} />
-      </label>
-    </li>
-</fieldset>
-{/if}{* isset $button*}
-
-{if isset($advanced)}
-<fieldset>
-  <legend>{'Options'|@translate}</legend>
-  <ul>
-      <li>
-      <label>
-        <span class="property">{'Facebook application identifient'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="text" size="15" name="FBP_FACEBOOK_APP_ID" value="{$advanced.FBP_FACEBOOK_APP_ID}" />
-      </label>
-    </li>
-{*    <li>
-      <label>
-        <span class="property">{'Asynchronous Facebook access'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Todo'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} />
-      </label>
-    </li>*}
-    <li>
-      <label>
-        <span class="property">{'Always initialize Facebook'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Useful for personal templates, plugins. A event if also defined for plugins.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_FORCE_FACEBOOK_INIT" {$advanced.FBP_FORCE_FACEBOOK_INIT} />
-      </label>
-    </li>
-    <li>
-      <label>
-        <span class="property">{'Picture URL type'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <select name="FBP_PICTURE_URL_TYPE" size="1">
-          {html_options options=$advanced.FBP_PICTURE_URL_TYPE_OPTIONS selected=$advanced.FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED}
-        </select>
-      </label>
-    </li>
-    <li>
-      <label>
-        <span class="property">{'Allow Facebook to see private page'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Recommended in order to Facebook get title, ... of your pages for wall display'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE" {$advanced.FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE} />
-      </label>
-    </li>
-  </ul>
-</fieldset>
-<fieldset>
-  <legend>{'Promote'|@translate}</legend>
-  <ul class="OldVersion">
-    <li>
-      <label>
-        <span class="property">{'Add informations on about page'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a paragraph with Facebook link on about page'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_ADD_ABOUT_INFORMATIONS" {$advanced.FBP_ADD_ABOUT_INFORMATIONS} />
-      </label>
-    </li>
-  </ul>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Add Facebook Piwigo group on footer'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a link on each page footer'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_ADD_GROUP_FOOTER" {$advanced.FBP_ADD_GROUP_FOOTER} />
-      </label>
-    </li>
-  </ul>
-  <ul>
-    <li>
-      <label>
-        <span class="property">{'Add Facebook Piwigo application on footer'|@translate}</span>
-        <a class="HelptipTip" href="#" title="{'Add a link on each page footer'|@translate}"><sup>{' (?)'|@translate}</sup></a>
-        <input type="checkbox" name="FBP_ADD_APPLICATION_FOOTER" {$advanced.FBP_ADD_APPLICATION_FOOTER} />
-      </label>
-    </li>
-  </ul>
-</fieldset>
-{/if}{* isset $advanced*}
-
-{if isset($activity)}
-<center>
-  <div>
-  <fb:activity
-    width="550"
-    height="950"
-    recommendations="true"
-    header="true"
-  ></fb:activity>
-</center>
-{/if}{* isset $activity*}
-
-{if ! isset($activity)}
-  <p>
-    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
-    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
-  </p>
-{/if}{* isset $activity*}
-
-  <p>
-{'Develop by'|@translate} <a href="{$FACEBOOK_PIWIGO_RUB_URL}" target="_bank">Ruben ARNAUD</a>
- - <a href="{$FACEBOOK_PIWIGO_GROUP_URL}" target="_bank">{'Join Facebook Piwigo group'|@translate}</a>
- - <a href="{$FACEBOOK_PIWIGO_APPLICATION_URL}" target="_bank">{'Via Facebook Piwigo application'|@translate}</a>
-  <p>
-
-</form>
-
-<div id="dialog_modal_like_button_comments" title="{'Informations'|@translate}">{'Like button and comments cannot be enabled together'|@translate}</div>
-{*<div id="dialog_modal_can_close" title="{'Informations'|@translate}">{'Data are modified but not saved! Are you sure to quit this tabsheet?'|@translate}</div>*}
-
-{literal}
-<script type="text/javascript">
-  function show_hide(checkbox_name, div_name)
-  {
-    if ($("input[name="+checkbox_name+"]").attr('checked'))
-    {
-      $("#"+div_name).show();
-    }
-    else
-    {
-      $("#"+div_name).hide();
-    }
-  }
-
-  function inverse_check_value(checkbox_name_1, checkbox_name_2)
-  {
-    if ($("input[name="+checkbox_name_1+"]").attr('checked') && $("input[name="+checkbox_name_2+"]").attr('checked'))
-    {
-      $("input[name="+checkbox_name_1+"]").attr('checked', false);
-      $("#dialog_modal_like_button_comments").dialog('open');
-    }
-  }
-
-  function init_checkbox(checkbox_name, div_name)
-  {
-    $("input[name="+checkbox_name+"]").click(
-      function()
-      {
-        show_hide(checkbox_name, div_name);
-      }
-    );
-    show_hide(checkbox_name, div_name);
-  }
-
-  function init_checkbox_with_inverse_value(checkbox_name_1, checkbox_name_2)
-  {
-    $("input[name="+checkbox_name_1+"]").click(
-      function()
-      {
-        inverse_check_value(checkbox_name_1, checkbox_name_2);
-      }
-    );
-    $("input[name="+checkbox_name_2+"]").click(
-      function()
-      {
-        inverse_check_value(checkbox_name_2, checkbox_name_1);
-      }
-    );
-  }
-
-  $(document).ready(
-    function()
-    {
-      //Init all main checkbox
-      init_checkbox_with_inverse_value("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED");
-      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button");
-      init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile");
-      init_checkbox("FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED", "comments");
-      init_checkbox("FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED", "activity_feed");
-      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
-      // Init message box
-      $("#dialog_modal_like_button_comments").dialog({
-        autoOpen: false, modal: true, dialogClass: 'admin_config', // necessary to have a specific class because there are conflic with main menu accordeon
-        buttons: { "{/literal}{'Continue'|@translate}{literal}": function() { $(this).dialog("close"); } },
-      });
-      $("#dialog_modal_can_close").dialog({
-        autoOpen: false, modal: true, dialogClass: 'admin_config', // necessary to have a specific class because there are conflic with main menu accordeon
-        buttons: { "Cancel": function() { $(this).dialog("close"); }, "{/literal}{'Submit'|@translate}{literal}": function() { IsDataChanged = false; $(this).dialog("close"); } },
-      });
-      // Init help tips
-      $('.HelptipTip').tipTip({
-        'delay' : 0,
-        'fadeIn' : 200,
-        'fadeOut' : 200,
-      });
-{/literal}
-{if $FBP_OLD_VERSION}
-      // Hide non compatible option
-      $('.OldVersion').hide();
-{/if}
-{*      // Detect data change
-      IsDataChanged = false;
-      $("input, select").change(function() { IsDataChanged = true; });
-      //~ $(".tabsheet").click(function()
-      $(window).unload(function()
-        {
-          if (IsDataChanged)
-          {
-            //~ alert($(this).attr("name"));
-           //~ $("#dialog_modal_can_close").dialog( "option", "buttons", { "{/literal}{'Submit'|@translate}{literal}": function() { $(this).dialog("close"); } } );
-            $("#dialog_modal_can_close").dialog('open');
-            
-            //~ return true;
-            return false
-          }
-          else
-          {
-            return true;
-          }
-          //return ! IsDataChanged;
-        });
-*}
-{literal}
-    });
-</script>
-{/literal}
-
Index: extensions/FacebookPlug/Plugin/tpl/admin.tpl
===================================================================
--- extensions/FacebookPlug/Plugin/tpl/admin.tpl	(revision 9795)
+++ extensions/FacebookPlug/Plugin/tpl/admin.tpl	(revision 9795)
@@ -0,0 +1,465 @@
+{combine_script id="jquery.tipTip" path='themes/default/js/plugins/jquery.tipTip.minified.js' load='async'}
+
+{combine_css path=$FBP_PATH|@cat:"/css/admin.css"}
+{combine_css path="plugins/FacebookPlug/css/admin.css"}
+
+<div class="titrePage">
+  <h2>FacebookPlug</h2>
+</div>
+<br>
+
+<form method="post" class="properties" action="{$FBP_ACTION}">
+{if isset($social_plugin)}
+<h3>{'On picture pages'|@translate}</h3>
+<fieldset>
+  <legend><a href="{$social_plugin.like_button.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like button'|@translate}</a></legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Enabled'|@translate}</span>
+        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED" {$social_plugin.like_button.ENABLED} />
+      </label>
+    </li>
+
+    <div id='like_button'>
+      <li>
+        <label>
+          <span class="property">{'Layout style'|@translate}</span>
+          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_LAYOUT" size="1">
+            {html_options options=$social_plugin.like_button.LAYOUT_OPTIONS selected=$social_plugin.like_button.LAYOUT_OPTIONS_SELECTED}
+          </select>
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show faces'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_SHOW_FACES" {$social_plugin.like_button.SHOW_FACES} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Verb to display'|@translate}</span>
+          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ACTION" size="1">
+            {html_options options=$social_plugin.like_button.ACTION_OPTIONS selected=$social_plugin.like_button.ACTION_OPTIONS_SELECTED}
+          </select>
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Color scheme'|@translate}</span>
+          <select name="FBP_SOCIAL_PLUGIN_LIKE_BUTTON_COLORSCHEME" size="1">
+            {html_options options=$social_plugin.like_button.COLORSCHEME_OPTIONS selected=$social_plugin.like_button.COLORSCHEME_OPTIONS_SELECTED}
+          </select>
+        </label>
+      </li>
+    </div>
+  </ul>
+</fieldset>
+
+<fieldset>
+  <legend><a href="{$social_plugin.facepile.FB_PAGE}" onclick="window.open(this.href); return false;">{'Facepile'|@translate}</a> {'on slideshow pages'|@translate}</legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Enabled'|@translate}</span>
+        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED" {$social_plugin.facepile.ENABLED} />
+      </label>
+    </li>
+
+    <div id='facepile'>
+      <li>
+        <label>
+          <span class="property">{'Num rows'|@translate}</span>
+          <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_FACEPILE_MAX_ROWS" value="{$social_plugin.facepile.MAX_ROWS}" />
+        </label>
+      </li>
+    </div>
+  </ul>
+</fieldset>
+
+<fieldset>
+  <legend><a href="{$social_plugin.comments.FB_PAGE}" onclick="window.open(this.href); return false;">{'Comments'|@translate}</a></legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Enabled'|@translate}</span>
+        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED" {$social_plugin.comments.ENABLED} />
+      </label>
+    </li>
+
+    <div id='comments'>
+      <li>
+        <label>
+          <span class="property">{'Num posts'|@translate}</span>
+          <input type="text" size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_COMMENTS_NUMPOSTS" value="{$social_plugin.comments.NUMPOSTS}" />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Title'|@translate}</span>
+          <input type="text" size="39" name="FBP_SOCIAL_PLUGIN_COMMENTS_TITLE" value="{$social_plugin.comments.TITLE}" />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Simple'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_SIMPLE" {$social_plugin.comments.SIMPLE} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Reverse'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_REVERSE" {$social_plugin.comments.REVERSE} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Publish feed'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_COMMENTS_PUBLISH_FEED" {$social_plugin.comments.PUBLISH_FEED} />
+        </label>
+      </li>
+    </div>
+  </ul>
+</fieldset>
+
+<h3>{'On menu of main pages'|@translate}</h3>
+<fieldset>
+  <legend><a href="{$social_plugin.activity_feed.FB_PAGE}" onclick="window.open(this.href); return false;">{'Activity feed'|@translate}</a></legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Enabled'|@translate}</span>
+        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED" {$social_plugin.activity_feed.ENABLED} />
+      </label>
+    </li>
+
+    <div id='activity_feed'>
+      <li>
+        <label>
+          <span class="property">{'Color scheme'|@translate}</span>
+          <select name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_COLORSCHEME" size="1">
+            {html_options options=$social_plugin.activity_feed.COLORSCHEME_OPTIONS selected=$social_plugin.activity_feed.COLORSCHEME_OPTIONS_SELECTED}
+          </select>
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show header'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEADER" {$social_plugin.activity_feed.HEADER} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show recommendations'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_RECOMMENDATIONS" {$social_plugin.activity_feed.RECOMMENDATIONS} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Height'|@translate}</span>
+          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_HEIGHT" value="{$social_plugin.activity_feed.HEIGHT}" />
+        </label>
+      </li>
+    </div>
+  </ul>
+</fieldset>
+
+<fieldset>
+  <legend><a href="{$social_plugin.like_box.FB_PAGE}" onclick="window.open(this.href); return false;">{'Like box'|@translate}</a></legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Enabled'|@translate}</span>
+        <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED" {$social_plugin.like_box.ENABLED} />
+      </label>
+    </li>
+
+    <div id='like_box'>
+      <li>
+        <label>
+          <span class="property">{'Facebook Page URL'|@translate}</span>
+          <input type="text" size="39" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_URL" value="{$social_plugin.like_box.URL}" />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Color scheme'|@translate}</span>
+          <select name="FBP_SOCIAL_PLUGIN_LIKE_BOX_COLORSCHEME" size="1">
+            {html_options options=$social_plugin.like_box.COLORSCHEME_OPTIONS selected=$social_plugin.like_box.COLORSCHEME_OPTIONS_SELECTED}
+          </select>
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show faces'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_SHOW_FACES" {$social_plugin.like_box.SHOW_FACES} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show stream'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_STREAM" {$social_plugin.like_box.STREAM} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Show header'|@translate}</span>
+          <input type="checkbox" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEADER" {$social_plugin.like_box.HEADER} />
+        </label>
+      </li>
+      <li>
+        <label>
+          <span class="property">{'Height'|@translate}</span>
+          <input type="text"  size="3" maxlength="4" name="FBP_SOCIAL_PLUGIN_LIKE_BOX_HEIGHT" value="{$social_plugin.like_box.HEIGHT}" />
+        </label>
+      </li>
+    </div>
+  </ul>
+</fieldset>
+<p><i>{'Other options are available by programming'|@translate}</i></p>
+{/if}{* isset $social_plugin*}
+
+{if isset($button)}
+<fieldset>
+  <legend>{'Share'|@translate}</legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Share picture page'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a icon link on each picture page to share on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_SHARE_PICTURE" {$button.FBP_SHARE_PICTURE} />
+      </label>
+    </li>
+    <li>
+      <label>
+        <span class="property">{'Share album page'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a icon link on each album page to share on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_SHARE_ALBUM" {$button.FBP_SHARE_ALBUM} />
+      </label>
+    </li>
+  </ul>
+</fieldset>
+<fieldset>
+  <legend>{'Upload'|@translate}</legend>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Upload picture'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a icon link on each picture page to upload image on Facebook'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_UPLOAD_PICTURE" {$button.FBP_UPLOAD_PICTURE} />
+      </label>
+    </li>
+</fieldset>
+{/if}{* isset $button*}
+
+{if isset($advanced)}
+<fieldset>
+  <legend>{'Options'|@translate}</legend>
+  <ul>
+      <li>
+      <label>
+        <span class="property">{'Facebook application identifient'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'To fill only if you want to use a specific Facebook application. It\'s recommended to leave blank.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="text" size="15" name="FBP_FACEBOOK_APP_ID" value="{$advanced.FBP_FACEBOOK_APP_ID}" />
+      </label>
+    </li>
+{*    <li>
+      <label>
+        <span class="property">{'Asynchronous Facebook access'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Todo'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_ASYNC_SCRIPT" {$advanced.FBP_ASYNC_SCRIPT} />
+      </label>
+    </li>*}
+    <li>
+      <label>
+        <span class="property">{'Always initialize Facebook'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Useful for personal templates, plugins. A event if also defined for plugins.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_FORCE_FACEBOOK_INIT" {$advanced.FBP_FORCE_FACEBOOK_INIT} />
+      </label>
+    </li>
+    <li>
+      <label>
+        <span class="property">{'Picture URL type'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Page type allows to reference the page and Facebook can get informations (title, ...). Image type allows to reference image url and Facebook cannot get informations but works always with private albums.'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <select name="FBP_PICTURE_URL_TYPE" size="1">
+          {html_options options=$advanced.FBP_PICTURE_URL_TYPE_OPTIONS selected=$advanced.FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED}
+        </select>
+      </label>
+    </li>
+    <li>
+      <label>
+        <span class="property">{'Allow Facebook to see private page'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Recommended in order to Facebook get title, ... of your pages for wall display'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE" {$advanced.FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE} />
+      </label>
+    </li>
+  </ul>
+</fieldset>
+<fieldset>
+  <legend>{'Promote'|@translate}</legend>
+  <ul class="OldVersion">
+    <li>
+      <label>
+        <span class="property">{'Add informations on about page'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a paragraph with Facebook link on about page'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_ADD_ABOUT_INFORMATIONS" {$advanced.FBP_ADD_ABOUT_INFORMATIONS} />
+      </label>
+    </li>
+  </ul>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Add Facebook Piwigo group on footer'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a link on each page footer'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_ADD_GROUP_FOOTER" {$advanced.FBP_ADD_GROUP_FOOTER} />
+      </label>
+    </li>
+  </ul>
+  <ul>
+    <li>
+      <label>
+        <span class="property">{'Add Facebook Piwigo application on footer'|@translate}</span>
+        <a class="HelptipTip" href="#" title="{'Add a link on each page footer'|@translate}"><sup>{' (?)'|@translate}</sup></a>
+        <input type="checkbox" name="FBP_ADD_APPLICATION_FOOTER" {$advanced.FBP_ADD_APPLICATION_FOOTER} />
+      </label>
+    </li>
+  </ul>
+</fieldset>
+{/if}{* isset $advanced*}
+
+{if isset($activity)}
+<center>
+  <div>
+  <fb:activity
+    width="550"
+    height="950"
+    recommendations="true"
+    header="true"
+  ></fb:activity>
+</center>
+{/if}{* isset $activity*}
+
+{if ! isset($activity)}
+  <p>
+    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
+    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
+  </p>
+{/if}{* isset $activity*}
+
+  <p>
+{'Develop by'|@translate} <a href="{$FACEBOOK_PIWIGO_RUB_URL}" target="_bank">Ruben ARNAUD</a>
+ - <a href="{$FACEBOOK_PIWIGO_GROUP_URL}" target="_bank">{'Join Facebook Piwigo group'|@translate}</a>
+ - <a href="{$FACEBOOK_PIWIGO_APPLICATION_URL}" target="_bank">{'Via Facebook Piwigo application'|@translate}</a>
+  <p>
+
+</form>
+
+<div id="dialog_modal_like_button_comments" title="{'Informations'|@translate}">{'Like button and comments cannot be enabled together'|@translate}</div>
+{*<div id="dialog_modal_can_close" title="{'Informations'|@translate}">{'Data are modified but not saved! Are you sure to quit this tabsheet?'|@translate}</div>*}
+
+{footer_script require='jquery.ui.dialog,jquery.tipTip'}
+{literal}
+  function show_hide(checkbox_name, div_name)
+  {
+    if ($("input[name="+checkbox_name+"]").attr('checked'))
+    {
+      $("#"+div_name).show();
+    }
+    else
+    {
+      $("#"+div_name).hide();
+    }
+  }
+
+  function inverse_check_value(checkbox_name_1, checkbox_name_2)
+  {
+    if ($("input[name="+checkbox_name_1+"]").attr('checked') && $("input[name="+checkbox_name_2+"]").attr('checked'))
+    {
+      $("input[name="+checkbox_name_1+"]").attr('checked', false);
+      $("#dialog_modal_like_button_comments").dialog('open');
+    }
+  }
+
+  function init_checkbox(checkbox_name, div_name)
+  {
+    $("input[name="+checkbox_name+"]").click(
+      function()
+      {
+        show_hide(checkbox_name, div_name);
+      }
+    );
+    show_hide(checkbox_name, div_name);
+  }
+
+  function init_checkbox_with_inverse_value(checkbox_name_1, checkbox_name_2)
+  {
+    $("input[name="+checkbox_name_1+"]").click(
+      function()
+      {
+        inverse_check_value(checkbox_name_1, checkbox_name_2);
+      }
+    );
+    $("input[name="+checkbox_name_2+"]").click(
+      function()
+      {
+        inverse_check_value(checkbox_name_2, checkbox_name_1);
+      }
+    );
+  }
+
+  $(document).ready(
+    function()
+    {
+      //Init all main checkbox
+      init_checkbox_with_inverse_value("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED");
+      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BUTTON_ENABLED", "like_button");
+      init_checkbox("FBP_SOCIAL_PLUGIN_FACEPILE_ENABLED", "facepile");
+      init_checkbox("FBP_SOCIAL_PLUGIN_COMMENTS_ENABLED", "comments");
+      init_checkbox("FBP_SOCIAL_PLUGIN_ACTIVITY_FEED_ENABLED", "activity_feed");
+      init_checkbox("FBP_SOCIAL_PLUGIN_LIKE_BOX_ENABLED", "like_box");
+      // Init message box
+      $("#dialog_modal_like_button_comments").dialog({
+        autoOpen: false, modal: true, dialogClass: 'admin_config', // necessary to have a specific class because there are conflic with main menu accordeon
+        buttons: { "{/literal}{'Continue'|@translate}{literal}": function() { $(this).dialog("close"); } },
+      });
+      $("#dialog_modal_can_close").dialog({
+        autoOpen: false, modal: true, dialogClass: 'admin_config', // necessary to have a specific class because there are conflic with main menu accordeon
+        buttons: { "Cancel": function() { $(this).dialog("close"); }, "{/literal}{'Submit'|@translate}{literal}": function() { IsDataChanged = false; $(this).dialog("close"); } },
+      });
+      // Init help tips
+      $('.HelptipTip').tipTip({
+        'delay' : 0,
+        'fadeIn' : 200,
+        'fadeOut' : 200,
+      });
+{/literal}
+{if $FBP_OLD_VERSION}
+      // Hide non compatible option
+      $('.OldVersion').hide();
+{/if}
+{*      // Detect data change
+      IsDataChanged = false;
+      $("input, select").change(function() { IsDataChanged = true; });
+      //~ $(".tabsheet").click(function()
+      $(window).unload(function()
+        {
+          if (IsDataChanged)
+          {
+            //~ alert($(this).attr("name"));
+           //~ $("#dialog_modal_can_close").dialog( "option", "buttons", { "{/literal}{'Submit'|@translate}{literal}": function() { $(this).dialog("close"); } } );
+            $("#dialog_modal_can_close").dialog('open');
+            
+            //~ return true;
+            return false
+          }
+          else
+          {
+            return true;
+          }
+          //return ! IsDataChanged;
+        });
+*}
+{literal}
+    });
+{/literal}
+{/footer_script}
