From bcd975499bcf5033fe52316ad662178bece91807 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 26 Apr 2022 19:31:41 +0530 Subject: [PATCH] Remove blocknewproducts --- config/xml/themes/default.xml | 1 - controllers/admin/AdminThemesController.php | 1 - modules/blocknewproducts/CHANGELOG.txt | 4 - modules/blocknewproducts/blocknewproducts.php | 273 ------------------ .../blocknewproducts/css/blocknewproducts.css | 51 ---- .../blocknewproducts/img/arrow_right_1.png | Bin 93 -> 0 bytes modules/blocknewproducts/img/index.php | 35 --- modules/blocknewproducts/index.php | 35 --- modules/blocknewproducts/logo.gif | Bin 333 -> 0 bytes modules/blocknewproducts/logo.png | Bin 1446 -> 0 bytes .../blocknewproducts/translations/index.php | 35 --- .../blocknewproducts/upgrade/install-1.4.php | 9 - .../blocknewproducts/upgrade/install-1.5.php | 9 - modules/blocknewproducts/views/index.php | 35 --- .../views/templates/hook/blocknewproducts.tpl | 50 ---- .../templates/hook/blocknewproducts_home.tpl | 31 -- .../views/templates/hook/index.php | 35 --- .../views/templates/hook/tab.tpl | 25 -- .../views/templates/index.php | 35 --- .../blocknewproducts/blocknewproducts.css | 3 - .../css/modules/blocknewproducts/index.php | 35 --- .../blocknewproducts/blocknewproducts.tpl | 63 ---- .../modules/blocknewproducts/index.php | 35 --- 23 files changed, 800 deletions(-) delete mode 100644 modules/blocknewproducts/CHANGELOG.txt delete mode 100644 modules/blocknewproducts/blocknewproducts.php delete mode 100644 modules/blocknewproducts/css/blocknewproducts.css delete mode 100644 modules/blocknewproducts/img/arrow_right_1.png delete mode 100644 modules/blocknewproducts/img/index.php delete mode 100644 modules/blocknewproducts/index.php delete mode 100644 modules/blocknewproducts/logo.gif delete mode 100644 modules/blocknewproducts/logo.png delete mode 100644 modules/blocknewproducts/translations/index.php delete mode 100644 modules/blocknewproducts/upgrade/install-1.4.php delete mode 100644 modules/blocknewproducts/upgrade/install-1.5.php delete mode 100644 modules/blocknewproducts/views/index.php delete mode 100644 modules/blocknewproducts/views/templates/hook/blocknewproducts.tpl delete mode 100644 modules/blocknewproducts/views/templates/hook/blocknewproducts_home.tpl delete mode 100644 modules/blocknewproducts/views/templates/hook/index.php delete mode 100644 modules/blocknewproducts/views/templates/hook/tab.tpl delete mode 100644 modules/blocknewproducts/views/templates/index.php delete mode 100644 themes/hotel-reservation-theme/css/modules/blocknewproducts/blocknewproducts.css delete mode 100644 themes/hotel-reservation-theme/css/modules/blocknewproducts/index.php delete mode 100644 themes/hotel-reservation-theme/modules/blocknewproducts/blocknewproducts.tpl delete mode 100644 themes/hotel-reservation-theme/modules/blocknewproducts/index.php diff --git a/config/xml/themes/default.xml b/config/xml/themes/default.xml index 3c8e790d3..019056a72 100644 --- a/config/xml/themes/default.xml +++ b/config/xml/themes/default.xml @@ -76,7 +76,6 @@ - diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 13c0040f6..d3aae6264 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -2103,7 +2103,6 @@ class AdminThemesControllerCore extends AdminController 'blockmanufacturer', 'blockmyaccount', 'blockmyaccountfooter', - 'blocknewproducts', 'blocknewsletter', 'blockpaymentlogo', 'blockpermanentlinks', diff --git a/modules/blocknewproducts/CHANGELOG.txt b/modules/blocknewproducts/CHANGELOG.txt deleted file mode 100644 index 2cc93753f..000000000 --- a/modules/blocknewproducts/CHANGELOG.txt +++ /dev/null @@ -1,4 +0,0 @@ -2014-04-22 18:57:28 +0200 // Changelog updated -2014-03-24 11:43:28 +0100 / MO blocknewproducts : ps_versions_compliancy modified (1.5.6.1 => 1.6) -2014-03-24 11:03:01 +0100 // MO blocknewproducts/ : ps_versions_compliancy added -2014-03-20 14:22:59 +0100 Initial commit diff --git a/modules/blocknewproducts/blocknewproducts.php b/modules/blocknewproducts/blocknewproducts.php deleted file mode 100644 index 0cfc40f1a..000000000 --- a/modules/blocknewproducts/blocknewproducts.php +++ /dev/null @@ -1,273 +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('_PS_VERSION_')) - exit; - -class BlockNewProducts extends Module -{ - protected static $cache_new_products; - - public function __construct() - { - $this->name = 'blocknewproducts'; - $this->tab = 'front_office_features'; - $this->version = '1.10.1'; - $this->author = 'PrestaShop'; - $this->need_instance = 0; - - $this->bootstrap = true; - parent::__construct(); - - $this->displayName = $this->l('New products block'); - $this->description = $this->l('Displays a block featuring your store\'s newest products.'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.6.99.99'); - } - - public function install() - { - $success = (parent::install() - && $this->registerHook('header') - && $this->registerHook('leftColumn') - && $this->registerHook('addproduct') - && $this->registerHook('updateproduct') - && $this->registerHook('deleteproduct') - && Configuration::updateValue('NEW_PRODUCTS_NBR', 5) - && $this->registerHook('displayHomeTab') - && $this->registerHook('displayHomeTabContent') - ); - - $this->_clearCache('*'); - - return $success; - } - - public function uninstall() - { - $this->_clearCache('*'); - - return parent::uninstall(); - } - - public function getContent() - { - $output = ''; - if (Tools::isSubmit('submitBlockNewProducts')) - { - if (!($productNbr = Tools::getValue('NEW_PRODUCTS_NBR')) || empty($productNbr)) - $output .= $this->displayError($this->l('Please complete the "products to display" field.')); - elseif ((int)($productNbr) == 0) - $output .= $this->displayError($this->l('Invalid number.')); - else - { - Configuration::updateValue('PS_NB_DAYS_NEW_PRODUCT', (int)(Tools::getValue('PS_NB_DAYS_NEW_PRODUCT'))); - Configuration::updateValue('PS_BLOCK_NEWPRODUCTS_DISPLAY', (int)(Tools::getValue('PS_BLOCK_NEWPRODUCTS_DISPLAY'))); - Configuration::updateValue('NEW_PRODUCTS_NBR', (int)($productNbr)); - $this->_clearCache('*'); - $output .= $this->displayConfirmation($this->l('Settings updated')); - } - } - return $output.$this->renderForm(); - } - - protected function getNewProducts() - { - if (!Configuration::get('NEW_PRODUCTS_NBR')) - return; - $newProducts = false; - if (Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) - $newProducts = Product::getNewProducts((int) $this->context->language->id, 0, (int)Configuration::get('NEW_PRODUCTS_NBR')); - - if (!$newProducts && Configuration::get('PS_BLOCK_NEWPRODUCTS_DISPLAY')) - return; - return $newProducts; - } - - public function hookRightColumn($params) - { - if (!$this->isCached('blocknewproducts.tpl', $this->getCacheId())) - { - if (!isset(BlockNewProducts::$cache_new_products)) - BlockNewProducts::$cache_new_products = $this->getNewProducts(); - - $this->smarty->assign(array( - 'new_products' => BlockNewProducts::$cache_new_products, - 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), - 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) - )); - } - - if (BlockNewProducts::$cache_new_products === false) - return false; - - return $this->display(__FILE__, 'blocknewproducts.tpl', $this->getCacheId()); - } - - protected function getCacheId($name = null) - { - if ($name === null) - $name = 'blocknewproducts'; - return parent::getCacheId($name.'|'.date('Ymd')); - } - - public function hookLeftColumn($params) - { - return $this->hookRightColumn($params); - } - - public function hookdisplayHomeTab($params) - { - if (!$this->isCached('tab.tpl', $this->getCacheId('blocknewproducts-tab'))) - BlockNewProducts::$cache_new_products = $this->getNewProducts(); - - if (BlockNewProducts::$cache_new_products === false) - return false; - - return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('blocknewproducts-tab')); - } - - public function hookdisplayHomeTabContent($params) - { - if (!$this->isCached('blocknewproducts_home.tpl', $this->getCacheId('blocknewproducts-home'))) - { - $this->smarty->assign(array( - 'new_products' => BlockNewProducts::$cache_new_products, - 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), - 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) - )); - } - - if (BlockNewProducts::$cache_new_products === false) - return false; - - return $this->display(__FILE__, 'blocknewproducts_home.tpl', $this->getCacheId('blocknewproducts-home')); - } - - public function hookHeader($params) - { - if (isset($this->context->controller->php_self) && $this->context->controller->php_self == 'index') - $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css'); - - $this->context->controller->addCSS($this->_path.'blocknewproducts.css', 'all'); - } - - public function hookAddProduct($params) - { - $this->_clearCache('*'); - } - - public function hookUpdateProduct($params) - { - $this->_clearCache('*'); - } - - public function hookDeleteProduct($params) - { - $this->_clearCache('*'); - } - - public function _clearCache($template, $cache_id = NULL, $compile_id = NULL) - { - parent::_clearCache('blocknewproducts.tpl'); - parent::_clearCache('blocknewproducts_home.tpl', 'blocknewproducts-home'); - parent::_clearCache('tab.tpl', 'blocknewproducts-tab'); - } - - 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('Products to display'), - 'name' => 'NEW_PRODUCTS_NBR', - 'class' => 'fixed-width-xs', - 'desc' => $this->l('Define the number of products to be displayed in this block.') - ), - array( - 'type' => 'text', - 'label' => $this->l('Number of days for which the product is considered \'new\''), - 'name' => 'PS_NB_DAYS_NEW_PRODUCT', - 'class' => 'fixed-width-xs', - ), - array( - 'type' => 'switch', - 'label' => $this->l('Always display this block'), - 'name' => 'PS_BLOCK_NEWPRODUCTS_DISPLAY', - 'desc' => $this->l('Show the block even if no new products are available.'), - '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'), - ) - ), - ); - - $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; - $helper->identifier = $this->identifier; - $helper->submit_action = 'submitBlockNewProducts'; - $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_NB_DAYS_NEW_PRODUCT' => Tools::getValue('PS_NB_DAYS_NEW_PRODUCT', Configuration::get('PS_NB_DAYS_NEW_PRODUCT')), - 'PS_BLOCK_NEWPRODUCTS_DISPLAY' => Tools::getValue('PS_BLOCK_NEWPRODUCTS_DISPLAY', Configuration::get('PS_BLOCK_NEWPRODUCTS_DISPLAY')), - 'NEW_PRODUCTS_NBR' => Tools::getValue('NEW_PRODUCTS_NBR', Configuration::get('NEW_PRODUCTS_NBR')), - ); - } -} diff --git a/modules/blocknewproducts/css/blocknewproducts.css b/modules/blocknewproducts/css/blocknewproducts.css deleted file mode 100644 index e7bdc5cbc..000000000 --- a/modules/blocknewproducts/css/blocknewproducts.css +++ /dev/null @@ -1,51 +0,0 @@ -/* Block new products */ -#new-products_block_right ul {list-style-type:none;} -#new-products_block_right li { - float:left; - margin-right:20px; - padding:10px 0; -} -#new-products_block_right li.first {margin-left:30px;} - -#new-products_block_right dl { - list-style-type:none; -} -#new-products_block_right dt { - padding:10px 0 0 0; - font-weight:bold; - font-size:12px; - color:#333; -} -#new-products_block_right dd, -#new-products_block_right dd a { - color:#666; -} -#new-products_block_right dd { - padding:0 0 10px 0; - border-bottom:1px dotted #ccc; - -} -#new-products_block_right dd.last_item {border:none;} -#new-products_block_right dd a.lnk_more { - padding-right: 10px; - font-weight:bold; - color:#0088cc; - background:url(../img/arrow_right_1.png) no-repeat 100% 4px; -} - -#new-products_block_right p { - padding:0; - text-align:right; -} - -#new-products_block_right p.title_block, #new-products_block_right h4 { - padding:6px 11px; - text-align:left; -} -#new-products_block_right .button_large { - padding:0; - border:none; - background:none; - color:#333; -} -#new-products_block_right .button_large:hover {text-decoration:underline} diff --git a/modules/blocknewproducts/img/arrow_right_1.png b/modules/blocknewproducts/img/arrow_right_1.png deleted file mode 100644 index 2429b22819b6e8600bcb20f9446ef6f2b192dbe9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c8!3HGtQ{P+wQYxM q(xAg3-oUwtqruQmR3lB{HWR~5c2C|?iCsEC^$eb_elF{r5}E*kgca5R diff --git a/modules/blocknewproducts/img/index.php b/modules/blocknewproducts/img/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blocknewproducts/img/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/blocknewproducts/index.php b/modules/blocknewproducts/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blocknewproducts/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/blocknewproducts/logo.gif b/modules/blocknewproducts/logo.gif deleted file mode 100644 index f310c6b405221701e084f04c33ada05221ad46f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 333 zcmZ?wbhEHb6krfwxXQrrzmwtrh3WrSy8i$4`2T~w|L17@-;?)$qTv6x*Z<#G_5b&` z|2tCuFShu|HKj_ zPD=-qna7qiEELe1>Y!LKp}48^7>weYG2-qAB(>0 z4d}Hj6_%s-)Jn7$y@GT5=b`S4nW#t)LBsCZxRf1*-m(?wu{fbkA7jj6E^Amz4NXfl zsm&h$G=y)h(O(W_7p~_o)QYPzLU24K2$h-Bals_JDP0A-H5PwXuSH+g8vIcyROpCJ zA7jj6E^Amz4Qf%7+U&tz?n4YNPo0okl^zUp;uzUMFwP!$2_2T#fuG+7ep(Nli3d)v z0~*|@CviG=#F)z()`|wTs9B-+U@!J$Zw@e|#^{H>i#g~$pN*dLIp{u@gRbUmbe<(9 zbTkbN)>4C7)TB0huoru>HwPHb&jt1_T>aJ`SHGJi1UWh2C2s3cTY9jUeinvvfRVP; z=Yj6axc2>Iw3tHCl0EbPLA2R}z1Wkz^#R7haibBfIn&X4C<3kKxdWz6XgA9@Aa9=B z1@kp%)7NH>(0Z_!{si;^(#FBjQY}ex@f?FX+pl1png&|(F9{%rvJl@qvmWIk>dEfk{r#Vw($crolHF{sI&iiBN5;rEe3K(Z6s z^wpTAz+SunxMo33+IaT?#>4TOS#GWc=qOntEcKX9q4!t}P`VO^uOCO)jzP#Qjls!_ znXq2oqd}X#Fr$KD&nV#cqo_9oxDVh5$EAblJhlX#Czc7zJ*KC01z=f?ExR8rGr>NbEs>=(X4x8+rIm#q?B^N60Z)v%YZ zK|}r=%rxGI6BoB*o8>Vi-vSm20@}UHE;dkk=H4#3I?LG}<7$jm>opK$||sm{ZUkkI+w*+ecuS05qq-Q6CR` z-FlBf{RX-3lQ2OB*xN7>8;e{`|7|g6-|0Ziavy-dSa4x0(3sRenl{OkOU6X`nq^u? z;r*lkJpgmEY>y(`ZGaI)$^I4&VU;J*A8HK~(QFJxP>RCVGKJ)m3Y$w5-YZsEU*H;s zHhqjS=M%||*yb95Z=`30slto_Fe`AAvc4lHeOraX$NC^iC9VOI^u~-aCqZ(z&Z1 zk1^&jSFahQytI6TVHAEcOuac{v#Jl5L&lS?AvS%C>CK1fHC|ml`mXqB1B4K_gBqgy zM(a6VZ|?qa`09tt{ZNn4eZJm&?A}@T`oH79016mh4^|%D=l}o!07*qoM6N<$f=b)F Axc~qF diff --git a/modules/blocknewproducts/translations/index.php b/modules/blocknewproducts/translations/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blocknewproducts/translations/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/blocknewproducts/upgrade/install-1.4.php b/modules/blocknewproducts/upgrade/install-1.4.php deleted file mode 100644 index f20e47235..000000000 --- a/modules/blocknewproducts/upgrade/install-1.4.php +++ /dev/null @@ -1,9 +0,0 @@ -registerHook('addproduct') && $object->registerHook('updateproduct') && $object->registerHook('deleteproduct')); -} diff --git a/modules/blocknewproducts/upgrade/install-1.5.php b/modules/blocknewproducts/upgrade/install-1.5.php deleted file mode 100644 index c21256a2f..000000000 --- a/modules/blocknewproducts/upgrade/install-1.5.php +++ /dev/null @@ -1,9 +0,0 @@ -unregisterHook('rightColumn') && $object->registerHook('displayHomeTab') && $object->registerHook('displayHomeTabContent')); -} diff --git a/modules/blocknewproducts/views/index.php b/modules/blocknewproducts/views/index.php deleted file mode 100644 index 8761a003e..000000000 --- a/modules/blocknewproducts/views/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/blocknewproducts/views/templates/hook/blocknewproducts.tpl b/modules/blocknewproducts/views/templates/hook/blocknewproducts.tpl deleted file mode 100644 index 0a940e475..000000000 --- a/modules/blocknewproducts/views/templates/hook/blocknewproducts.tpl +++ /dev/null @@ -1,50 +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='New products' mod='blocknewproducts'}

-
- {if $new_products !== false} -
    - {foreach from=$new_products item='product' name='newProducts'} - {if $smarty.foreach.newProducts.index < 2} - {$product.legend|escape:html:'UTF-8'} - {/if} - {/foreach} -
-
- {foreach from=$new_products item=newproduct name=myLoop} -
{$newproduct.name|strip_tags|escape:html:'UTF-8'}
- {if $newproduct.description_short}
{$newproduct.description_short|strip_tags:'UTF-8'|truncate:75:'...'}
{l s='Read more' mod='blocknewproducts'}
{/if} - {/foreach} -
-

» {l s='All new products' mod='blocknewproducts'}

- {else} -

» {l s='Do not allow new products at this time.' mod='blocknewproducts'}

- {/if} -
-
- diff --git a/modules/blocknewproducts/views/templates/hook/blocknewproducts_home.tpl b/modules/blocknewproducts/views/templates/hook/blocknewproducts_home.tpl deleted file mode 100644 index fceb75f12..000000000 --- a/modules/blocknewproducts/views/templates/hook/blocknewproducts_home.tpl +++ /dev/null @@ -1,31 +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 -*} -{if isset($new_products) && $new_products} - {include file="$tpl_dir./product-list.tpl" products=$new_products class='blocknewproducts tab-pane' id='blocknewproducts'} -{else} -
    -
  • {l s='No new products at this time.' mod='blocknewproducts'}
  • -
-{/if} diff --git a/modules/blocknewproducts/views/templates/hook/index.php b/modules/blocknewproducts/views/templates/hook/index.php deleted file mode 100644 index 8761a003e..000000000 --- a/modules/blocknewproducts/views/templates/hook/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/blocknewproducts/views/templates/hook/tab.tpl b/modules/blocknewproducts/views/templates/hook/tab.tpl deleted file mode 100644 index 61232733c..000000000 --- a/modules/blocknewproducts/views/templates/hook/tab.tpl +++ /dev/null @@ -1,25 +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='New arrivals' mod='blocknewproducts'}
  • diff --git a/modules/blocknewproducts/views/templates/index.php b/modules/blocknewproducts/views/templates/index.php deleted file mode 100644 index 8761a003e..000000000 --- a/modules/blocknewproducts/views/templates/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/themes/hotel-reservation-theme/css/modules/blocknewproducts/blocknewproducts.css b/themes/hotel-reservation-theme/css/modules/blocknewproducts/blocknewproducts.css deleted file mode 100644 index 4ac63c6a4..000000000 --- a/themes/hotel-reservation-theme/css/modules/blocknewproducts/blocknewproducts.css +++ /dev/null @@ -1,3 +0,0 @@ - - -/*# sourceMappingURL=blocknewproducts.css.map */ diff --git a/themes/hotel-reservation-theme/css/modules/blocknewproducts/index.php b/themes/hotel-reservation-theme/css/modules/blocknewproducts/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/css/modules/blocknewproducts/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; diff --git a/themes/hotel-reservation-theme/modules/blocknewproducts/blocknewproducts.tpl b/themes/hotel-reservation-theme/modules/blocknewproducts/blocknewproducts.tpl deleted file mode 100644 index c36887d74..000000000 --- a/themes/hotel-reservation-theme/modules/blocknewproducts/blocknewproducts.tpl +++ /dev/null @@ -1,63 +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 -*} - -
    -

    - {l s='New products' mod='blocknewproducts'} -

    -
    - {if $new_products !== false} -
      - {foreach from=$new_products item=newproduct name=myLoop} -
    • - {$newproduct.name|escape:html:'UTF-8'} -
      -
      - {$newproduct.name|strip_tags|escape:html:'UTF-8'} -
      -

      {$newproduct.description_short|strip_tags:'UTF-8'|truncate:75:'...'}

      - {if (!$PS_CATALOG_MODE AND ((isset($newproduct.show_price) && $newproduct.show_price) || (isset($newproduct.available_for_order) && $newproduct.available_for_order)))} - {if isset($newproduct.show_price) && $newproduct.show_price && !isset($restricted_country_mode)} -
      - - {if !$priceDisplay}{convertPrice price=$newproduct.price}{else}{convertPrice price=$newproduct.price_tax_exc}{/if} - - {hook h="displayProductPriceBlock" product=$newproduct type="price"} -
      - {/if} - {/if} -
      -
    • - {/foreach} -
    - - {else} -

    » {l s='Do not allow new products at this time.' mod='blocknewproducts'}

    - {/if} -
    -
    - \ No newline at end of file diff --git a/themes/hotel-reservation-theme/modules/blocknewproducts/index.php b/themes/hotel-reservation-theme/modules/blocknewproducts/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/modules/blocknewproducts/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;