Files
Nikolai Fesenko 8d227c9191 First upload
2025-02-02 13:37:56 +01:00

142 lines
5.6 KiB
PHP

<?php
/**
* This file is part of O3-Shop GDPR opt-in module.
*
* O3-Shop is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* O3-Shop is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with O3-Shop. If not, see <http://www.gnu.org/licenses/>
*
* @copyright Copyright (c) 2022 OXID eSales AG (https://www.oxid-esales.com)
* @copyright Copyright (c) 2022 O3-Shop (https://www.o3-shop.com)
* @license https://www.gnu.org/licenses/gpl-3.0 GNU General Public License 3 (GPLv3)
*/
/**
* Metadata version
*/
$sMetadataVersion = '2.0';
/**
* Module information
*/
$aModule = [
'id' => 'oegdproptin',
'title' => [
'de' => 'GDPR Opt-in',
'en' => 'GDPR Opt-in',
],
'description' => [
'de' => 'Das Modul stellt Opt-in-Funktionalit&auml;t f&uuml;r die Datenschutz-Grundverordnung (DSGVO) bereit',
'en' => 'This module provides the opt-in functionality for the European General Data Protection Regulation (GDPR)',
],
'thumbnail' => 'logo.png',
'version' => '1.0.1',
'author' => 'O3-Shop',
'url' => 'https://www.o3-shop.com/',
'email' => '',
'extend' => [
\OxidEsales\Eshop\Application\Component\Widget\ArticleDetails::class => \OxidEsales\GdprOptinModule\Component\Widget\ArticleDetails::class,
\OxidEsales\Eshop\Application\Component\Widget\Review::class => \OxidEsales\GdprOptinModule\Component\Widget\Review::class,
\OxidEsales\Eshop\Application\Component\UserComponent::class => \OxidEsales\GdprOptinModule\Component\UserComponent::class,
\OxidEsales\Eshop\Application\Controller\ReviewController::class => \OxidEsales\GdprOptinModule\Controller\ReviewController::class,
\OxidEsales\Eshop\Application\Controller\ArticleDetailsController::class => \OxidEsales\GdprOptinModule\Controller\ArticleDetailsController::class,
\OxidEsales\Eshop\Application\Controller\ContactController::class => \OxidEsales\GdprOptinModule\Controller\ContactController::class
],
'blocks' => [
[
'template' => 'form/user.tpl',
'block' => 'user_billing_address_form',
'file' => 'Application/views/blocks/user_invoice_address_form.tpl',
],
[
'template' => 'form/user.tpl',
'block' => 'user_shipping_address_form',
'file' => 'Application/views/blocks/user_shipping_address_form.tpl',
],
[
'template' => 'form/user.tpl',
'block' => 'user_form',
'file' => 'Application/views/blocks/user_address.tpl',
],
[
'template' => 'form/user.tpl',
'block' => 'user',
'file' => 'Application/views/blocks/user.tpl',
],
[
'template' => 'form/user_checkout_change.tpl',
'block' => 'user_checkout_change',
'file' => 'Application/views/blocks/user_checkout_change.tpl',
],
[
'template' => 'form/user_checkout_change.tpl',
'block' => 'user_checkout_shipping_feedback',
'file' => 'Application/views/blocks/user_checkout_shipping_feedback.tpl',
],
[
'template' => 'form/user_checkout_change.tpl',
'block' => 'user_checkout_billing_feedback',
'file' => 'Application/views/blocks/user_checkout_billing_feedback.tpl',
],
[
'template' => 'form/fieldset/user_account.tpl',
'block' => 'user_account_newsletter',
'file' => 'Application/views/blocks/user_account_newsletter.tpl',
],
[
'template' => 'form/contact.tpl',
'block' => 'contact_form_fields',
'file' => 'Application/views/blocks/contact_form_fields.tpl',
],
[
'template' => 'widget/reviews/reviews.tpl',
'block' => 'widget_reviews_form_fields',
'file' => 'Application/views/blocks/widget_reviews_form_fields.tpl',
]
],
'settings' => [
[
'group' => 'oegdproptin_settings',
'name' => 'blOeGdprOptinInvoiceAddress',
'type' => 'bool',
'value' => 'false'
],
[
'group' => 'oegdproptin_settings',
'name' => 'blOeGdprOptinDeliveryAddress',
'type' => 'bool',
'value' => 'false'
],
[
'group' => 'oegdproptin_settings',
'name' => 'blOeGdprOptinUserRegistration',
'type' => 'bool',
'value' => 'false'
],
[
'group' => 'oegdproptin_settings',
'name' => 'blOeGdprOptinProductReviews',
'type' => 'bool',
'value' => 'false'
],
[
'group' => 'oegdproptin_contact_form',
'name' => 'OeGdprOptinContactFormMethod',
'type' => 'select',
'value' => 'deletion',
'constraints' => 'deletion|statistical',
],
],
'events' => [
'onActivate' => '\OxidEsales\GdprOptinModule\Core\GdprOptinModule::onActivate',
'onDeactivate' => '\OxidEsales\GdprOptinModule\Core\GdprOptinModule::onDeactivate',
],
];