[Changed] adjust to OXID7 Standard

This commit is contained in:
MaxBUhe 2024-04-11 14:45:48 +02:00
parent c70edfd3f7
commit a446bcfd24
2 changed files with 17 additions and 22 deletions

View File

@ -21,21 +21,12 @@
"GPL-3.0-or-later" "GPL-3.0-or-later"
], ],
"require": { "require": {
"oxid-esales/oxideshop-ce": "^6.2" "php": "8 - 8.1",
}, "oxid-esales/oxideshop-ce": "7 - 7.0.3"
"extra": {
"oxideshop": {
"blacklist-filter": [
"*.md",
"composer.json"
],
"source-directory": "/src",
"target-directory": "d3/removegooglefonts"
}
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"D3\\Removegooglefonts\\": "../../../source/modules/d3/removegooglefonts" "D3\\Removegooglefonts\\": ""
} }
} }
} }

View File

@ -20,9 +20,11 @@
* Metadata version * Metadata version
*/ */
$sMetadataVersion = '2.0'; use D3\Removegooglefonts\Application\Model\Constants as Constants;
$sModuleId = 'removegooglefonts'; $sMetadataVersion = '2.1';
$sModuleId = Constants::OXID_MODULE_ID;
$sLogo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ';
/** /**
* Module information * Module information
@ -30,25 +32,27 @@ $sModuleId = 'removegooglefonts';
$aModule = [ $aModule = [
'id' => $sModuleId, 'id' => $sModuleId,
'title' => '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> Google Fonts lokal einbinden', 'title' => $sLogo.' Google Fonts lokal einbinden',
'description' => [ 'description' => [
'de' => 'Bindet Google Fonts lokal ein', 'de' => 'Bindet Google Fonts lokal ein',
'en' => '', 'en' => '',
], ],
'version' => '1.0.0.0', 'version' => '2.0.0.0',
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)', 'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com', 'email' => 'support@shopmodule.com',
'url' => 'http://www.oxidmodule.com/', 'url' => 'http://www.oxidmodule.com/',
'blocks' => [ 'blocks' => [
[ [
'template' => 'layout/base.tpl', 'template' => 'layout/base.tpl',
'block' => 'base_style', 'block' => 'base_style',
'file' => '/Application/views/blocks/layout/d3_base_style.tpl' 'file' => 'views/smarty/blocks/layout/d3_base_style.tpl',
'position' => 10
], ],
[ [
'template' => 'layout/base.tpl', 'template' => 'layout/base.tpl',
'block' => 'base_fonts', 'block' => 'base_fonts',
'file' => '/Application/views/blocks/layout/d3_base_fonts.tpl' 'file' => 'views/smarty/blocks/layout/d3_base_fonts.tpl',
'position' => 10
] ]
], ],
]; ];