diff --git a/modules/blockcontact/blockcontact.jpg b/modules/blockcontact/blockcontact.jpg
new file mode 100644
index 000000000..31d9db63f
Binary files /dev/null and b/modules/blockcontact/blockcontact.jpg differ
diff --git a/modules/blockcontact/blockcontact.php b/modules/blockcontact/blockcontact.php
new file mode 100644
index 000000000..97794e330
--- /dev/null
+++ b/modules/blockcontact/blockcontact.php
@@ -0,0 +1,98 @@
+
+* @copyright 2007-2010 Prestashop SA
+* @version Release: $Revision: 1.4 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+if (!defined('_CAN_LOAD_FILES_'))
+ exit;
+
+class blockcontact extends Module
+{
+ public function __construct()
+ {
+ $this->name = 'blockcontact';
+ $this->tab = 'front_office_features';
+ $this->version = '1.0';
+
+ parent::__construct();
+
+ $this->displayName = $this->l('Block contact');
+ $this->description = $this->l('Allows you to add extra information about customer service');
+ }
+
+ public function install()
+ {
+ return (parent::install() AND Configuration::updateValue('blockcontact_telnumber', '') AND Configuration::updateValue('blockcontact_email', '') AND $this->registerHook('rightColumn'));
+ }
+
+ public function uninstall()
+ {
+ //Delete configuration
+ return (Configuration::deleteByName('blockcontact_telnumber') AND Configuration::deleteByName('blockcontact_email') AND parent::uninstall());
+ }
+
+ public function getContent()
+ {
+ // If we try to update the settings
+ if (isset($_POST['submitModule']))
+ {
+ Configuration::updateValue('blockcontact_telnumber', (preg_match('/^[0-9]+/', $_POST['telnumber']) ? $_POST['telnumber']: ''));
+ Configuration::updateValue('blockcontact_email', (($_POST['email'] != '') ? $_POST['email']: ''));
+ echo '
'.$this->l('Configuration updated').'
';
+ }
+
+ return '
+
'.$this->displayName.'
+
+
+ ';
+ }
+
+ public function hookRightColumn()
+ {
+ global $smarty;
+
+ $smarty->assign(array(
+ 'telnumber' => Configuration::get('blockcontact_telnumber'),
+ 'email' => Configuration::get('blockcontact_email')
+ ));
+ return $this->display(__FILE__, 'blockcontact.tpl');
+ }
+}
+?>
\ No newline at end of file
diff --git a/modules/blockcontact/blockcontact.tpl b/modules/blockcontact/blockcontact.tpl
new file mode 100644
index 000000000..3244d02a7
--- /dev/null
+++ b/modules/blockcontact/blockcontact.tpl
@@ -0,0 +1,35 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 6594 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
{l s='Contact us' mod='blockcontact'}
+
+
{l s='Our hotline' mod='blockcontact'} {l s='is available 24/24' mod='blockcontact'}
diff --git a/modules/blockcontact/config.xml b/modules/blockcontact/config.xml
new file mode 100644
index 000000000..26a325e26
--- /dev/null
+++ b/modules/blockcontact/config.xml
@@ -0,0 +1,12 @@
+
+
+ blockcontact
+
+
+
+
+
+ 1
+ 1
+
+
\ No newline at end of file
diff --git a/modules/blockcontact/fr.php b/modules/blockcontact/fr.php
new file mode 100644
index 000000000..fac5ef6b7
--- /dev/null
+++ b/modules/blockcontact/fr.php
@@ -0,0 +1,19 @@
+blockcontact_2c4eb35e7132cbb2dce2f3a72cbb4787'] = 'Bloc contact';
+$_MODULE['<{blockcontact}prestashop>blockcontact_df000a5bfb01a3605e4d9343561a0d3d'] = 'Permet d\'ajouter des informations supplémentaires concernant le service client';
+$_MODULE['<{blockcontact}prestashop>blockcontact_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Module mis à jour';
+$_MODULE['<{blockcontact}prestashop>blockcontact_85d1aa4e14d72add27a7c236962627e9'] = 'Numéro de téléphone';
+$_MODULE['<{blockcontact}prestashop>blockcontact_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour';
+$_MODULE['<{blockcontact}prestashop>blockcontact_1b9441f293cd7307b59296f616bb858a'] = 'Ce module a été développé par PrestaShop et est uniquement vendu sur';
+$_MODULE['<{blockcontact}prestashop>blockcontact_6df4dad510fb08e2e6df44b53cb2ce29'] = 'Veuillez nous signaler tout bogue à ';
+$_MODULE['<{blockcontact}prestashop>blockcontact_d575acff7e1035a4212d2a53d5a8c115'] = 'ou en utilisant notre';
+$_MODULE['<{blockcontact}prestashop>blockcontact_23372c0d3713719764670087006fc1b6'] = 'formulaire de contact';
+$_MODULE['<{blockcontact}prestashop>blockcontact_02d4482d332e1aef3437cd61c9bcc624'] = 'Contactez-nous';
+$_MODULE['<{blockcontact}prestashop>blockcontact_6e6a51212bd633f9901a22cea27194d8'] = 'Une conseillère';
+$_MODULE['<{blockcontact}prestashop>blockcontact_689681c4a40a1e95c35a83771253e8fd'] = 'à votre disposition 24/ 24h';
+$_MODULE['<{blockcontact}prestashop>blockcontact_6e6c05a143d676b33ca265b0306813fb'] = 'Tél :';
+$_MODULE['<{blockcontact}prestashop>blockcontact_bbaff12800505b22a853e8b7f4eb6a22'] = 'Contacter';
+$_MODULE['<{blockcontact}prestashop>blockcontact_e9376117c97ae76d0eefdc3e1f4486e7'] = 'notre conseillère';
diff --git a/modules/blockcontact/logo.gif b/modules/blockcontact/logo.gif
new file mode 100644
index 000000000..de614414b
Binary files /dev/null and b/modules/blockcontact/logo.gif differ
diff --git a/modules/blockcontactinfos/blockcontactinfos.php b/modules/blockcontactinfos/blockcontactinfos.php
new file mode 100644
index 000000000..124bd8806
--- /dev/null
+++ b/modules/blockcontactinfos/blockcontactinfos.php
@@ -0,0 +1,116 @@
+
+* @copyright 2007-2010 Prestashop SA
+* @version Release: $Revision: 1.4 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+if (!defined('_CAN_LOAD_FILES_'))
+ exit;
+
+class blockcontactinfos extends Module
+{
+ public function __construct()
+ {
+ $this->name = 'blockcontactinfos';
+ if(version_compare(_PS_VERSION_, '1.4.0.0') >= 0)
+ $this->tab = 'front_office_features';
+ else
+ $this->tab = 'Blocks';
+ $this->version = '1.0';
+
+ parent::__construct();
+
+ $this->displayName = $this->l('Block contact infos');
+ $this->description = $this->l('Add a block to add some informations about contacting the shop');
+ }
+
+ public function install()
+ {
+ return (parent::install()
+ AND Configuration::updateValue('blockcontactinfos_company', Configuration::get('PS_SHOP_NAME'))
+ AND Configuration::updateValue('blockcontactinfos_address', '') AND Configuration::updateValue('blockcontactinfos_phone', '')
+ AND Configuration::updateValue('blockcontactinfos_email', Configuration::get('PS_SHOP_EMAIL')) AND $this->registerHook('footer'));
+ }
+
+ public function uninstall()
+ {
+ //Delete configuration
+ return (Configuration::deleteByName('blockcontactinfos_company')
+ AND Configuration::deleteByName('blockcontactinfos_address') AND Configuration::deleteByName('blockcontactinfos_phone')
+ AND Configuration::deleteByName('blockcontactinfos_email') AND parent::uninstall());
+ }
+
+ public function getContent()
+ {
+ // If we try to update the settings
+ if (isset($_POST['submitModule']))
+ {
+ Configuration::updateValue('blockcontactinfos_company', ((isset($_POST['company']) AND $_POST['company'] != '') ? $_POST['company'] : Configuration::get('PS_SHOP_NAME')));
+ Configuration::updateValue('blockcontactinfos_address', ((isset($_POST['address']) AND $_POST['address'] != '') ? $_POST['address'] : ''));
+ Configuration::updateValue('blockcontactinfos_phone', ((isset($_POST['phone']) AND $_POST['phone'] != '') ? $_POST['phone'] : ''));
+ Configuration::updateValue('blockcontactinfos_email', ((isset($_POST['email']) AND $_POST['email'] != '') ? $_POST['email'] : Configuration::get('PS_SHOP_EMAIL')));
+
+ echo '
'.$this->l('Configuration updated').'
';
+ }
+
+ $content = '
+
'.$this->displayName.'
+
+
+ ';
+
+ return $content;
+ }
+
+ public function hookFooter($params)
+ {
+ global $smarty;
+
+ $smarty->assign(array(
+ 'company' => Configuration::get('blockcontactinfos_company'),
+ 'address' => Configuration::get('blockcontactinfos_address'),
+ 'phone' => Configuration::get('blockcontactinfos_phone'),
+ 'email' => Configuration::get('blockcontactinfos_email')
+ ));
+ return $this->display(__FILE__, 'blockcontactinfos.tpl');
+ }
+}
+?>
\ No newline at end of file
diff --git a/modules/blockcontactinfos/blockcontactinfos.tpl b/modules/blockcontactinfos/blockcontactinfos.tpl
new file mode 100644
index 000000000..7a7b269f1
--- /dev/null
+++ b/modules/blockcontactinfos/blockcontactinfos.tpl
@@ -0,0 +1,37 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 6594 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
+ ';
+
+ return $content;
+ }
+
+ public function hookFooter($params)
+ {
+ global $smarty;
+
+ $infos = $this->getAllFromDB();
+
+ $smarty->assign(array(
+ 'nbblocks' => Configuration::get('blockreinsurance_nbblocks'),
+ 'infos' => $infos
+ ));
+ return $this->display(__FILE__, 'blockreinsurance.tpl');
+ }
+}
+?>
\ No newline at end of file
diff --git a/modules/blockreinsurance/blockreinsurance.tpl b/modules/blockreinsurance/blockreinsurance.tpl
new file mode 100644
index 000000000..663ce392a
--- /dev/null
+++ b/modules/blockreinsurance/blockreinsurance.tpl
@@ -0,0 +1,35 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 6594 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
+
+
+ {foreach from=$infos item=info}
+
{$info.text}
+ {/foreach}
+
+
+
\ No newline at end of file
diff --git a/modules/blockreinsurance/config.xml b/modules/blockreinsurance/config.xml
new file mode 100644
index 000000000..000742c52
--- /dev/null
+++ b/modules/blockreinsurance/config.xml
@@ -0,0 +1,12 @@
+
+
+ blockreinsurance
+
+
+
+
+
+ 1
+ 1
+
+
\ No newline at end of file
diff --git a/modules/blockreinsurance/fr.php b/modules/blockreinsurance/fr.php
new file mode 100644
index 000000000..b22857360
--- /dev/null
+++ b/modules/blockreinsurance/fr.php
@@ -0,0 +1,17 @@
+blockreinsurance_ac50afdeca5a62e1c47c3f216ec7638a'] = 'Bloc réassurance';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_0cdd94b6a03ddcd4014822a822b675eb'] = 'Ajoute un bloc pour afficher des informations pour rassurer vos clients';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuration mise à jour';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_31c78485b2a9d9151e0cde196934aad8'] = 'Une erreur est survenue lors de la sauvegarde';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_1216aaefbc8bc11aa42f4ec5eec702dd'] = 'bloc(s)';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_0845a5f7fbe242ef2472a78cc5ecae4d'] = 'Bloc numéro';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_0dbf96dfb0a180d634c89bff8b258fba'] = 'Image pour ce bloc';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_b7be073d3d2f885cc9ab4e5cb69a57d1'] = 'Texte alternatif pour ce bloc';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour la configuration';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_1b9441f293cd7307b59296f616bb858a'] = 'Ce module a été développé par PrestaShop et ne peut être vendu que sur';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_6df4dad510fb08e2e6df44b53cb2ce29'] = 'Pour toute demande d\'information n\'hésitez pas à nous contacter sur';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_d575acff7e1035a4212d2a53d5a8c115'] = 'ou en utilisant notre';
+$_MODULE['<{blockreinsurance}prestashop>blockreinsurance_23372c0d3713719764670087006fc1b6'] = 'formulaire de contact';
diff --git a/modules/blockreinsurance/img/reassurance1.jpg b/modules/blockreinsurance/img/reassurance1.jpg
new file mode 100644
index 000000000..bb8e0f41f
Binary files /dev/null and b/modules/blockreinsurance/img/reassurance1.jpg differ
diff --git a/modules/blockreinsurance/img/reassurance2.jpg b/modules/blockreinsurance/img/reassurance2.jpg
new file mode 100644
index 000000000..16e686f44
Binary files /dev/null and b/modules/blockreinsurance/img/reassurance2.jpg differ
diff --git a/modules/blockreinsurance/img/reassurance3.jpg b/modules/blockreinsurance/img/reassurance3.jpg
new file mode 100644
index 000000000..7cd524fe8
Binary files /dev/null and b/modules/blockreinsurance/img/reassurance3.jpg differ
diff --git a/modules/blockreinsurance/img/reassurance4.jpg b/modules/blockreinsurance/img/reassurance4.jpg
new file mode 100644
index 000000000..9aa175cb4
Binary files /dev/null and b/modules/blockreinsurance/img/reassurance4.jpg differ
diff --git a/modules/blockreinsurance/img/reassurance5.jpg b/modules/blockreinsurance/img/reassurance5.jpg
new file mode 100644
index 000000000..1f88565bf
Binary files /dev/null and b/modules/blockreinsurance/img/reassurance5.jpg differ
diff --git a/modules/blockreinsurance/logo.gif b/modules/blockreinsurance/logo.gif
new file mode 100644
index 000000000..15471afd4
Binary files /dev/null and b/modules/blockreinsurance/logo.gif differ
diff --git a/modules/blocksharefb/blocksharefb.php b/modules/blocksharefb/blocksharefb.php
new file mode 100644
index 000000000..d06e78326
--- /dev/null
+++ b/modules/blocksharefb/blocksharefb.php
@@ -0,0 +1,79 @@
+
+* @copyright 2007-2010 Prestashop SA
+* @version Release: $Revision: 1.4 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+if (!defined('_CAN_LOAD_FILES_'))
+ exit;
+
+class blocksharefb extends Module
+{
+ public function __construct()
+ {
+ $this->name = 'blocksharefb';
+ if(version_compare(_PS_VERSION_, '1.4.0.0') >= 0)
+ $this->tab = 'front_office_features';
+ else
+ $this->tab = 'Blocks';
+ $this->version = '1.0';
+
+ parent::__construct();
+
+ $this->displayName = $this->l('Block Share on Facebook');
+ $this->description = $this->l('Adds a block to display a link "Share on Facebook" on product pages.');
+ }
+
+ public function install()
+ {
+ return (parent::install() AND $this->registerHook('extraLeft'));
+ }
+
+ public function uninstall()
+ {
+ //Delete configuration
+ return (parent::uninstall() AND $this->unregisterHook(Hook::get('extraLeft')));
+ }
+
+ public function hookExtraLeft($params)
+ {
+ global $smarty, $cookie, $link;
+
+ $id_product = Tools::getValue('id_product');
+
+ if (isset($id_product) && $id_product != '')
+ {
+ $product_infos = new Product((int)$id_product, true, $cookie->id_lang);
+ $smarty->assign(array(
+ 'product_link' => urlencode($link->getProductLink($product_infos)),
+ 'product_title' => urlencode($product_infos->name),
+ ));
+
+ return $this->display(__FILE__, 'blocksharefb.tpl');
+ } else {
+ return '';
+ }
+ }
+}
+?>
\ No newline at end of file
diff --git a/modules/blocksharefb/blocksharefb.tpl b/modules/blocksharefb/blocksharefb.tpl
new file mode 100644
index 000000000..4597c9b66
--- /dev/null
+++ b/modules/blocksharefb/blocksharefb.tpl
@@ -0,0 +1,29 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 6594 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
\ No newline at end of file
diff --git a/modules/blocksharefb/config.xml b/modules/blocksharefb/config.xml
new file mode 100644
index 000000000..840baab24
--- /dev/null
+++ b/modules/blocksharefb/config.xml
@@ -0,0 +1,12 @@
+
+
+ blocksharefb
+
+
+
+
+
+ 0
+ 1
+
+
\ No newline at end of file
diff --git a/modules/blocksharefb/fr.php b/modules/blocksharefb/fr.php
new file mode 100644
index 000000000..5f9f2e769
--- /dev/null
+++ b/modules/blocksharefb/fr.php
@@ -0,0 +1,7 @@
+blocksharefb_16ccb12664ffe3713264cc592c98f710'] = 'Bloc Partager sur Facebook';
+$_MODULE['<{blocksharefb}prestashop>blocksharefb_feb5ea2f87814eb831ecb334749c9305'] = 'Ajoute un bloc permettant d\'avoir un lien \"Partager sur Facebook\" sur les pages produits.';
+$_MODULE['<{blocksharefb}prestashop>blocksharefb_3e0fa00ee2fba747e8419e80c1da2d72'] = 'Partager sur Facebook';
diff --git a/modules/blocksocial/blocksocial.jpg b/modules/blocksocial/blocksocial.jpg
new file mode 100644
index 000000000..31d9db63f
Binary files /dev/null and b/modules/blocksocial/blocksocial.jpg differ
diff --git a/modules/blocksocial/blocksocial.php b/modules/blocksocial/blocksocial.php
new file mode 100644
index 000000000..b8a1b1ae2
--- /dev/null
+++ b/modules/blocksocial/blocksocial.php
@@ -0,0 +1,103 @@
+
+* @copyright 2007-2010 Prestashop SA
+* @version Release: $Revision: 1.4 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+if (!defined('_CAN_LOAD_FILES_'))
+ exit;
+
+class blocksocial extends Module
+{
+ public function __construct()
+ {
+ $this->name = 'blocksocial';
+ $this->tab = 'front_office_features';
+ $this->version = '1.0';
+
+ parent::__construct();
+
+ $this->displayName = $this->l('Block social');
+ $this->description = $this->l('Allows you to add extra information about social networks');
+ }
+
+ public function install()
+ {
+ return (parent::install() AND Configuration::updateValue('blocksocial_facebook', '') AND Configuration::updateValue('blocksocial_twitter', '') AND Configuration::updateValue('blocksocial_rss', '') AND $this->registerHook('footer'));
+ }
+
+ public function uninstall()
+ {
+ //Delete configuration
+ return (Configuration::deleteByName('blocksocial_facebook') AND Configuration::deleteByName('blocksocial_twitter') AND Configuration::deleteByName('blocksocial_rss') AND parent::uninstall());
+ }
+
+ public function getContent()
+ {
+ // If we try to update the settings
+ if (isset($_POST['submitModule']))
+ {
+ Configuration::updateValue('blocksocial_facebook', (($_POST['facebook_url'] != '') ? $_POST['facebook_url']: ''));
+ Configuration::updateValue('blocksocial_twitter', (($_POST['twitter_url'] != '') ? $_POST['twitter_url']: ''));
+ Configuration::updateValue('blocksocial_rss', (($_POST['rss_url'] != '') ? $_POST['rss_url']: ''));
+ echo '
'.$this->l('Configuration updated').'
';
+ }
+
+ return '
+
'.$this->displayName.'
+
+
+ ';
+ }
+
+ public function hookFooter()
+ {
+ global $smarty;
+
+ $smarty->assign(array(
+ 'facebook_url' => Configuration::get('blocksocial_facebook'),
+ 'twitter_url' => Configuration::get('blocksocial_twitter'),
+ 'rss_url' => Configuration::get('blocksocial_rss')
+ ));
+ return $this->display(__FILE__, 'blocksocial.tpl');
+ }
+}
+?>
\ No newline at end of file
diff --git a/modules/blocksocial/blocksocial.tpl b/modules/blocksocial/blocksocial.tpl
new file mode 100644
index 000000000..9e6fd186f
--- /dev/null
+++ b/modules/blocksocial/blocksocial.tpl
@@ -0,0 +1,34 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 6594 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+
+
{l s='Follow us' mod='blocksocial'}
++ {if $facebook_url != ''}- {l s='Facebook' mod='blocksocial'}
{/if}
+ {if $twitter_url != ''}- {l s='Twitter' mod='blocksocial'}
{/if}
+ {if $rss_url != ''}- {l s='RSS' mod='blocksocial'}
{/if}
+
+