Files
ws_customhtml/ws_customhtml.php
T
isabelle 06e98a429b feat(main): Introduce USP block type and custom classes for HTML groups
This release adds a new "USP" (Unique Selling Proposition) block type,
allowing for flexible display of image-based selling points with optional links.

Additionally, administrators can now assign custom CSS classes to Custom HTML Groups,
enhancing layout and styling capabilities.

Includes a refinement to the FAQ accordion template to ensure questions without answers
do not display a collapse button, improving usability.

Updates module version to 1.13.0 with a database upgrade script for the new `custom_class` column.
2026-08-20 15:22:15 +02:00

44 lines
1.2 KiB
PHP

<?php
/**
* 2007-2024 De Websmid BV
*
* @author Isabelle Oving-Anno | De Websmid BV <isabelle@dewebsmid.nl>
* @copyright 2007-2024 De Websmid BV
* @license MIT
*/
use Websmid\CustomHtml\Module\Install;
use Websmid\CustomHtml\Module\AdminHooks;
use Websmid\CustomHtml\Module\DisplayHooks;
use PrestaShop\PrestaShop\Core\Module\WidgetInterface;
if (!defined('_PS_VERSION_')) {
exit;
}
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
class Ws_CustomHtml extends Module implements WidgetInterface
{
use Install;
use AdminHooks;
use DisplayHooks;
public function __construct()
{
$this->name = 'ws_customhtml';
$this->version = '1.13.0';
$this->author = 'Isabelle Oving-Anno | De Websmid BV';
$this->need_instance = 0;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->trans('Custom HTML', [], 'Modules.Wscustomhtml.Admin');
$this->description = $this->trans('Create and manage custom HTML blocks for frontend hooks.', [], 'Modules.Wscustomhtml.Admin');
$this->ps_versions_compliancy = ['min' => '1.7.0.0', 'max' => _PS_VERSION_];
}
}