- Created new index.php files for various directories to establish structure. - Added form.tpl and index.php for form helpers to enhance form handling. - Introduced suggestions.tpl and top.tpl for improved admin interface. - Implemented ajax-products.tpl and banners.tpl for front-end product display. - Developed content.tpl and widget-blocks.tpl for dynamic content rendering. - Enhanced widget-tabs.tpl and widget-wrapper.tpl for better tabbed navigation. - Included necessary licensing information in all new files.
32 lines
805 B
PHP
32 lines
805 B
PHP
<?php
|
|
/**
|
|
* 2023 Anvanto
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
*
|
|
* @author Anvanto <anvantoco@gmail.com>
|
|
* @copyright 2023 Anvanto
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
*/
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
function upgrade_module_1_0_18($object)
|
|
{
|
|
|
|
$object->filesManager->createFolders();
|
|
|
|
if (Tools::copy(_PS_MODULE_DIR_ . 'an_homeproducts/blocks.json', $object->filesManager->fileJsonblocks)){
|
|
@unlink(_PS_MODULE_DIR_ . 'an_homeproducts/blocks.json');
|
|
}
|
|
|
|
if (Tools::copy(_PS_MODULE_DIR_ . 'an_homeproducts/banners.json', $object->filesManager->fileJsonBanners)){
|
|
@unlink(_PS_MODULE_DIR_ . 'an_homeproducts/banners.json');
|
|
}
|
|
|
|
return true;
|
|
}
|