From 9197498c3c360fccab91b01a70cb404ff919dbbe Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 18 Nov 2013 17:45:53 +0100 Subject: [PATCH] // delete useless module --- modules/blockquickview/blockquickview.php | 133 ------------------ modules/blockquickview/config.xml | 12 -- modules/blockquickview/index.php | 35 ----- modules/blockquickview/logo.gif | Bin 1279 -> 0 bytes modules/blockquickview/logo.png | Bin 1228 -> 0 bytes modules/blockquickview/translations/index.php | 35 ----- 6 files changed, 215 deletions(-) delete mode 100644 modules/blockquickview/blockquickview.php delete mode 100644 modules/blockquickview/config.xml delete mode 100644 modules/blockquickview/index.php delete mode 100644 modules/blockquickview/logo.gif delete mode 100644 modules/blockquickview/logo.png delete mode 100644 modules/blockquickview/translations/index.php diff --git a/modules/blockquickview/blockquickview.php b/modules/blockquickview/blockquickview.php deleted file mode 100644 index 5e0119588..000000000 --- a/modules/blockquickview/blockquickview.php +++ /dev/null @@ -1,133 +0,0 @@ - -* @copyright 2007-2013 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('_PS_VERSION_')) - exit; - -class Blockquickview extends Module -{ - public function __construct() - { - $this->name = 'blockquickview'; - $this->tab = 'front_office_features'; - $this->version = '1.0'; - parent::__construct(); - $this->displayName = $this->l('Quick view'); - $this->description = $this->l('Add Quick information about product.'); - } - - public function install() - { - Configuration::updateValue('PS_QUICK_VIEW',1); - if (!parent::install()) - return false; - return true; - } - - public function uninstall() - { - if (!parent::uninstall() OR - !Configuration::deleteByName('PS_QUICK_VIEW')) - return false; - else return true; - } - - - public function getContent() - { - $html = ''; - // If we try to update the settings - if (Tools::isSubmit('submitModule')) - { - Configuration::updateValue('PS_QUICK_VIEW', Tools::getValue('PS_QUICK_VIEW')); - $html .= $this->displayConfirmation($this->l('Configuration updated')); - } - $html .= $this->renderForm(); - return $html; - } - - public function renderForm() - { - $fields_form = array( - 'form' => array( - 'legend' => array( - 'title' => $this->l('Settings'), - 'icon' => 'icon-cogs' - ), - 'input' => array( - array( - 'type' => 'switch', - 'label' => $this->l('Display Quick view'), - 'name' => 'PS_QUICK_VIEW', - 'values' => array( - array( - 'id' => 'active_on', - 'value' => 1, - 'label' => $this->l('Enabled') - ), - array( - 'id' => 'active_off', - 'value' => 0, - 'label' => $this->l('Disabled') - ) - ), - ), - ), - 'submit' => array( - 'title' => $this->l('Save'), - 'class' => 'btn btn-primary') - ), - ); - - $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' => $this->getConfigFieldsValues(), - 'languages' => $this->context->controller->getLanguages(), - 'id_language' => $this->context->language->id - ); - - return $helper->generateForm(array($fields_form)); - } - - public function getConfigFieldsValues() - { - return array( - 'PS_QUICK_VIEW' => Tools::getValue('PS_QUICK_VIEW', Configuration::get('PS_QUICK_VIEW')), - ); - - } -} \ No newline at end of file diff --git a/modules/blockquickview/config.xml b/modules/blockquickview/config.xml deleted file mode 100644 index 5d75d80b9..000000000 --- a/modules/blockquickview/config.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - blockquickview - - - - - - 1 - 1 - - \ No newline at end of file diff --git a/modules/blockquickview/index.php b/modules/blockquickview/index.php deleted file mode 100644 index 07830d90c..000000000 --- a/modules/blockquickview/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2013 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/blockquickview/logo.gif b/modules/blockquickview/logo.gif deleted file mode 100644 index bc0ae8b2cb0a89b1f4c6a399fe725f6e9fa35901..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1279 zcmZ?wbhEHbRA5kG*v!u$x6v-9O7C~?S5nAK zu~iB;^)>J6!V;*iRMRQ;gT;{4L0 zJ^^2{qP zNz6-5^>ndS0_xYx%uKOzGBr1GHgz&Jc5`txG;}p~a&vKZbh0#ca&<82=9Z zF3nBND}m`vLFhHZsTY(GatnYqyQCInmZhe+73JqDfIV!LiQ6s4IL(9VO~LIJ6P$YW zfsWA!MJrM?!-Rlo2gHOYS|A6W>{IiAX}t)Ts2TtN`}^njub)4@fBX97^QVs=-oJbM z=Jl(WFP=Yp`sDGWhY#-GyL;#Mt(!NlU%Ptc@}-Lx&YwGb=JctPCypOGdgSn-g9rBS z+q-A?uAMu!Z`-%OrteG>WPn$Yr@}!9q z`ulo&y1P0%+S^)NnwuIM>g#H2s;eq1%F9Yiii-*h^7C?Yva>QX($i8?l9Lh>;^Sgt zqN5@s!oxyCf`bAB{QZ1=yuCa<+}&JVoShsU?CorAtgS39%*{+qjE#U9N>5iuTT4?z zT}@R*SxHerUQSjB7J=>BC9S)q5>opWXdGL8C7vb6!T5rq2VTQ^f{|D2zX>f&T(PTC}Lr4P7x@7A;-p=CmX|& z7vP-8#1X2%%*vX@#KOpu$3CH6fr*okbt?N5Uk6n#ZZ(+1BxM}m2t(t-i F)&Oq!%Dn&p diff --git a/modules/blockquickview/logo.png b/modules/blockquickview/logo.png deleted file mode 100644 index 3702fd527f5026c902025f2685cbf98045230827..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1228 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%nF$y5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|8sq zIZnO$K*#8Vq7^BcVM4&P17gAxEsz6G_NjTmv|a>E)TLj{WEmJ3ojhF}Ln>~)nRYR^ z*+8IeVHTT*`vko+RB7o0l5jV|}tkciE;L`<9&Ll?#+u zm%sfXYs$Pr@$-!3C)$+G-L$tkenxvk@?W0(&nFB{9k26ZciXsV#<#Yh{2g^{F>Irf%Q~loCIFUEuXz9f diff --git a/modules/blockquickview/translations/index.php b/modules/blockquickview/translations/index.php deleted file mode 100644 index 3f6561f72..000000000 --- a/modules/blockquickview/translations/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2013 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