Initial commit: is_themecore out of the box v4.1.3

This commit is contained in:
Isabelle Anno
2025-11-19 13:17:30 +01:00
committed by Isabelle
commit 5d80babd5a
333 changed files with 33026 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_2_0($module)
{
return $module->registerHook('actionDispatcherBefore');
return $module->registerHook('actionOutputHTMLBefore');
}

View File

@ -0,0 +1,10 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_2_1($module)
{
return $module->registerHook('actionDispatcherBefore');
}

View File

@ -0,0 +1,15 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_3_0($module)
{
$res = $module->registerHook('actionHtaccessCreate');
$res &= $module->registerHook('objectShopUrlAddAfter');
$res &= $module->registerHook('objectShopUrlUpdateAfter');
$res &= $module->registerHook('objectShopUrlDeleteAfter');
return $res;
}

View File

@ -0,0 +1,20 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
require_once dirname(__FILE__) . '../vendor/autoload.php';
}
use Oksydan\Module\IsThemeCore\Form\Settings\WebpConfiguration;
function upgrade_module_2_4_0($module)
{
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_ENABLED, false);
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_QUALITY, 90);
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_SHARPYUV, true);
return true;
}

View File

@ -0,0 +1,20 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
require_once dirname(__FILE__) . '../vendor/autoload.php';
}
use Oksydan\Module\IsThemeCore\Form\Settings\GeneralConfiguration;
function upgrade_module_4_1_0($module)
{
$success = $module->installPartytown();
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);
return $success;
}

View File

@ -0,0 +1,14 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
require_once dirname(__FILE__) . '../vendor/autoload.php';
}
function upgrade_module_4_1_2($module)
{
return $module->registerHook('actionFrontControllerInitBefore');
}

View File

@ -0,0 +1,20 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
require_once dirname(__FILE__) . '../vendor/autoload.php';
}
use Oksydan\Module\IsThemeCore\Form\Settings\GeneralConfiguration;
function upgrade_module_4_1_3($module)
{
$success = $module->registerHook('actionFrontControllerInitBefore');
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);
return $success;
}