From 50f79ad0d45074f53e2b5f93f0fbb2bfbb800f39 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 26 Apr 2022 19:42:42 +0530 Subject: [PATCH] Remove blockcontactinfos --- config/xml/themes/default.xml | 1 - controllers/admin/AdminThemesController.php | 1 - install/data/xml/configuration.xml | 14 -- modules/blockcontactinfos/CHANGELOG.txt | 4 - .../blockcontactinfos/blockcontactinfos.php | 156 ------------------ .../blockcontactinfos/blockcontactinfos.tpl | 37 ----- modules/blockcontactinfos/index.php | 35 ---- modules/blockcontactinfos/logo.gif | Bin 222 -> 0 bytes modules/blockcontactinfos/logo.png | Bin 2048 -> 0 bytes .../blockcontactinfos/translations/index.php | 35 ---- .../upgrade/install-1.1.2.php | 10 -- .../blockcontactinfos/blockcontactinfos.tpl | 52 ------ .../modules/blockcontactinfos/index.php | 35 ---- 13 files changed, 380 deletions(-) delete mode 100644 modules/blockcontactinfos/CHANGELOG.txt delete mode 100644 modules/blockcontactinfos/blockcontactinfos.php delete mode 100644 modules/blockcontactinfos/blockcontactinfos.tpl delete mode 100644 modules/blockcontactinfos/index.php delete mode 100644 modules/blockcontactinfos/logo.gif delete mode 100644 modules/blockcontactinfos/logo.png delete mode 100644 modules/blockcontactinfos/translations/index.php delete mode 100644 modules/blockcontactinfos/upgrade/install-1.1.2.php delete mode 100644 themes/hotel-reservation-theme/modules/blockcontactinfos/blockcontactinfos.tpl delete mode 100644 themes/hotel-reservation-theme/modules/blockcontactinfos/index.php diff --git a/config/xml/themes/default.xml b/config/xml/themes/default.xml index de631cc6f..eeaacae61 100644 --- a/config/xml/themes/default.xml +++ b/config/xml/themes/default.xml @@ -66,7 +66,6 @@ - diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 68177458a..216ec151e 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -2091,7 +2091,6 @@ class AdminThemesControllerCore extends AdminController 'blockcategories', 'blockcms', 'blockcmsinfo', - 'blockcontactinfos', 'blockcurrencies', 'blockcustomerprivacy', 'blockfacebook', diff --git a/install/data/xml/configuration.xml b/install/data/xml/configuration.xml index 788fc618d..99e9f3284 100644 --- a/install/data/xml/configuration.xml +++ b/install/data/xml/configuration.xml @@ -659,20 +659,6 @@ http://www.twitter.com/qloapps - - Your company - - - Address line 1 -City -Country - - - 0123-456-789 - - - pub@qloapps.com - 1 diff --git a/modules/blockcontactinfos/CHANGELOG.txt b/modules/blockcontactinfos/CHANGELOG.txt deleted file mode 100644 index a5b15f478..000000000 --- a/modules/blockcontactinfos/CHANGELOG.txt +++ /dev/null @@ -1,4 +0,0 @@ -2014-04-22 18:57:06 +0200 // Changelog updated -2014-03-24 11:43:28 +0100 / MO blockcontactinfos : ps_versions_compliancy modified (1.5.6.1 => 1.6) -2014-03-24 11:01:54 +0100 // MO blockcontactinfos/ : ps_versions_compliancy added -2014-03-20 14:22:32 +0100 Initial commit diff --git a/modules/blockcontactinfos/blockcontactinfos.php b/modules/blockcontactinfos/blockcontactinfos.php deleted file mode 100644 index d0c0847f7..000000000 --- a/modules/blockcontactinfos/blockcontactinfos.php +++ /dev/null @@ -1,156 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA - -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (!defined('_CAN_LOAD_FILES_')) - exit; - -class Blockcontactinfos extends Module -{ - protected static $contact_fields = array( - 'BLOCKCONTACTINFOS_COMPANY', - 'BLOCKCONTACTINFOS_ADDRESS', - 'BLOCKCONTACTINFOS_PHONE', - 'BLOCKCONTACTINFOS_EMAIL', - ); - - public function __construct() - { - $this->name = 'blockcontactinfos'; - $this->author = 'PrestaShop'; - $this->tab = 'front_office_features'; - $this->version = '1.2.1'; - - $this->bootstrap = true; - parent::__construct(); - - $this->displayName = $this->l('Contact information block'); - $this->description = $this->l('This module will allow you to display your e-store\'s contact information in a customizable block.'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.6.99.99'); - } - - public function install() - { - Configuration::updateValue('BLOCKCONTACTINFOS_COMPANY', Configuration::get('PS_SHOP_NAME')); - Configuration::updateValue('BLOCKCONTACTINFOS_ADDRESS', trim(preg_replace('/ +/', ' ', Configuration::get('PS_SHOP_ADDR1').' '.Configuration::get('PS_SHOP_ADDR2')."\n".Configuration::get('PS_SHOP_CODE').' '.Configuration::get('PS_SHOP_CITY')."\n".Country::getNameById(Configuration::get('PS_LANG_DEFAULT'), Configuration::get('PS_SHOP_COUNTRY_ID'))))); - Configuration::updateValue('BLOCKCONTACTINFOS_PHONE', Configuration::get('PS_SHOP_PHONE')); - Configuration::updateValue('BLOCKCONTACTINFOS_EMAIL', Configuration::get('PS_SHOP_EMAIL')); - $this->_clearCache('blockcontactinfos.tpl'); - return (parent::install() && $this->registerHook('header') && $this->registerHook('footer')); - } - - public function uninstall() - { - foreach (Blockcontactinfos::$contact_fields as $field) - Configuration::deleteByName($field); - return (parent::uninstall()); - } - - public function getContent() - { - $html = ''; - if (Tools::isSubmit('submitModule')) - { - foreach (Blockcontactinfos::$contact_fields as $field) - Configuration::updateValue($field, Tools::getValue($field)); - $this->_clearCache('blockcontactinfos.tpl'); - $html = $this->displayConfirmation($this->l('Configuration updated')); - } - - return $html.$this->renderForm(); - } - - public function hookHeader() - { - $this->context->controller->addCSS(($this->_path).'blockcontactinfos.css', 'all'); - } - - public function hookFooter($params) - { - if (!$this->isCached('blockcontactinfos.tpl', $this->getCacheId())) - foreach (Blockcontactinfos::$contact_fields as $field) - $this->smarty->assign(strtolower($field), Configuration::get($field)); - return $this->display(__FILE__, 'blockcontactinfos.tpl', $this->getCacheId()); - } - - public function renderForm() - { - $fields_form = array( - 'form' => array( - 'legend' => array( - 'title' => $this->l('Settings'), - 'icon' => 'icon-cogs' - ), - 'input' => array( - array( - 'type' => 'text', - 'label' => $this->l('Company name'), - 'name' => 'BLOCKCONTACTINFOS_COMPANY', - ), - array( - 'type' => 'textarea', - 'label' => $this->l('Address'), - 'name' => 'BLOCKCONTACTINFOS_ADDRESS', - ), - array( - 'type' => 'text', - 'label' => $this->l('Phone number'), - 'name' => 'BLOCKCONTACTINFOS_PHONE', - ), - array( - 'type' => 'text', - 'label' => $this->l('Email'), - 'name' => 'BLOCKCONTACTINFOS_EMAIL', - ), - ), - 'submit' => array( - 'title' => $this->l('Save') - ) - ), - ); - - $helper = new HelperForm(); - $helper->show_toolbar = false; - $helper->table = $this->table; - $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); - $helper->default_form_language = $lang->id; - $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; - $this->fields_form = array(); - - $helper->identifier = $this->identifier; - $helper->submit_action = 'submitModule'; - $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; - $helper->token = Tools::getAdminTokenLite('AdminModules'); - $helper->tpl_vars = array( - 'fields_value' => array(), - 'languages' => $this->context->controller->getLanguages(), - 'id_language' => $this->context->language->id - ); - foreach (Blockcontactinfos::$contact_fields as $field) - $helper->tpl_vars['fields_value'][$field] = Tools::getValue($field, Configuration::get($field)); - return $helper->generateForm(array($fields_form)); - } -} diff --git a/modules/blockcontactinfos/blockcontactinfos.tpl b/modules/blockcontactinfos/blockcontactinfos.tpl deleted file mode 100644 index 6e585fba2..000000000 --- a/modules/blockcontactinfos/blockcontactinfos.tpl +++ /dev/null @@ -1,37 +0,0 @@ -{* -* 2007-2016 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-2016 PrestaShop SA - -* @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='blockcontactinfos'}

-
    - {if $blockcontactinfos_company != ''}
  • {$blockcontactinfos_company|escape:'html':'UTF-8'}
  • {/if} - {if $blockcontactinfos_address != ''}
  • {$blockcontactinfos_address|escape:'html':'UTF-8'|nl2br}
  • {/if} - {if $blockcontactinfos_phone != ''}
  • {l s='Tel' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'html':'UTF-8'}
  • {/if} - {if $blockcontactinfos_email != ''}
  • {l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}
  • {/if} -
-
- diff --git a/modules/blockcontactinfos/index.php b/modules/blockcontactinfos/index.php deleted file mode 100644 index da793c6b5..000000000 --- a/modules/blockcontactinfos/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../../'); -exit; \ No newline at end of file diff --git a/modules/blockcontactinfos/logo.gif b/modules/blockcontactinfos/logo.gif deleted file mode 100644 index 15471afd46e0bfcc72e179680a0408679e0039a4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 222 zcmV<403rWJNk%w1VGsZi0E8U?$xndFRfNo3iO^<{&}WgGIkC|NsC0|NsC0A^s6Va%Ew3Wn>_CX>@2HM@dak03rDV0SW*g04x9i000mG5C8xL zM&KuoWNDu0sI2SBzO4zv^32w@g4=i&F|XdiLX44En}cLR+2~3u&SpUn3=$d_$It+H Y3n|gS3qXWFmw?xC{!|_i3@HQvJE{M2c>n+a diff --git a/modules/blockcontactinfos/logo.png b/modules/blockcontactinfos/logo.png deleted file mode 100644 index 5c773abd1272c43f954b99e113c38631c16cf01b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmV+b2>g$wA@p3h9eNWo|7Bh&zALGx8`F9GIkXre}rI8O->A4@9cf{*=L{g_v-b6O)|r) zpT1+%YCV~v=ncns^mB;o0DtSs;vtbMiVS4YtMzGYufM4EHkfnxEs0D~Z0K?lAMG!M zN5U-x6!i;_RYIWxGH8Y2B@Z!bYX*jVbqOYGQee7174L3HgP92K z4=0()+7!G+21jklgkMf85~`kJ^O@V2?v)39d0hRAI6*5{G^&mBs+Yx8V<=7fE*Ti< znGSPWJ!9mibd2z92lqSV^vzBUTXPu;BP(&L?l){qYQ*Gku0rY*-}pQy`sh1E1Xkz^VB~rd5?fEx?x&-##4)DS?RX86ZU7ObkA%>U-F^j@ zyRy50CpO)Xj_!?RtkX8$f)dm>vjw}7n_#^on@>h5+w8FZ>N_(BNS&1kD}IJ-I$k#3 zx%kh{Y>cOUo6rqbyRYKCO_>@Fu#9yRv~buFn|*nRDSJXusGuk)@fz9e*n7#GBc67Y zsd1`jI8tzrR-T24M6~wG)xgBPxfnyMh|Fr}FwT9Ju}(Xu-HAPyny~uBj~MCkKS)15 z>Z#5J9X*Gr(&f>$I7{2QBEAk2_T<3UI}elgX@cdvsxcHH^Q~C|#_r4!jN9(h&S88= zPVlMlPHllD9aE`1hPOe79nj-C?v>gqoO%0$g+$25)cpk-m_o22o#mcfj3%R_wzp#( zh2ENsOwqzoW0Frk><$*uHn(9CMcdH%B-l1PAmz(sf5y+CJQ2b*jR-ToE7ZU=-$Gb> z=R;ew+M7qbLajVCmm?H;{RwPothC($DLY`u4(z>rPpIj(KDn4lQLy(b(tsUdif;i% z@4Bktzz4JiGY)9y30zwJRNs6=l>CB;#1|uAC^(=?4(v{DLE2pi;hJ^m8b0zb)(Shn zYq0XtjKX+|jJ;payxE6}1qZ{6e}N?>Y*z;;2ew^kMoJSflfw01B7721q7`#UXX8_# z;Q-6#Jcsx3;S$WINQ7N$!`Q8vT^*3f6R_@7BQDZa>wK&Xp9Ge`@#uA}VBKWe&+d(7 z&*Oc1qy)|(<@A2|85UHc`KnesAeA^osAK`9h$(-94X1Cx;mCD31(#`s z8SMN^G#p?V>$Gv41zst>xzr4Yfa@5%^eptJ@AXk1L!DQoCZo7KdMF!k`X;b2s!||+ z9$ujVmd^^%bbw_&aa_a7v51P$q3j1R=kU)}qA%H07a}f)|1fZfte!zd#y6uCp~a8j z8d`yQ$5nJCS9V}N!6mE$_VnE9-dM)E`JKiKoa2?47p}s-v=+<@RpDRD&cj$9Rn0a# zU(32WLv8JhT$K2n9wSj@ZFFwt2&`vokCti_4yXLK}w!V;R`itpe1Ku?5w!U zHbh$*&-Fgyxg2NU7~M3E9wbgd?D&m2O2s?)Nmc|3}ZUJ94RAN zL=BJOvCI*3ubn1zhh+#KK eMV-#etoV1I{}#%(x>%3^0000 -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockcontactinfos/upgrade/install-1.1.2.php b/modules/blockcontactinfos/upgrade/install-1.1.2.php deleted file mode 100644 index e130723ff..000000000 --- a/modules/blockcontactinfos/upgrade/install-1.1.2.php +++ /dev/null @@ -1,10 +0,0 @@ -execute('UPDATE '._DB_PREFIX_.'configuration SET `name` = UPPER(`name`) WHERE `name` LIKE "BLOCKCONTACTINFOS\_%"'); - return true; -} diff --git a/themes/hotel-reservation-theme/modules/blockcontactinfos/blockcontactinfos.tpl b/themes/hotel-reservation-theme/modules/blockcontactinfos/blockcontactinfos.tpl deleted file mode 100644 index 28796f5ac..000000000 --- a/themes/hotel-reservation-theme/modules/blockcontactinfos/blockcontactinfos.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{* -* 2007-2017 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-2017 PrestaShop SA - -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - - - diff --git a/themes/hotel-reservation-theme/modules/blockcontactinfos/index.php b/themes/hotel-reservation-theme/modules/blockcontactinfos/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/modules/blockcontactinfos/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit;