Compare commits

...

4 Commits

Author SHA1 Message Date
cc9f560294 [Fixed] src-path 2024-04-11 14:54:34 +02:00
90b9163b9a [Bump] meta-infos 2024-04-11 14:46:19 +02:00
a446bcfd24 [Changed] adjust to OXID7 Standard 2024-04-11 14:46:07 +02:00
c70edfd3f7 [Changed] structure ( paths ) 2024-04-11 14:45:30 +02:00
27 changed files with 146 additions and 115 deletions

View File

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
namespace D3\Removegooglefonts\Application\Model;
class Constants
{
public const OXID_MODULE_ID = 'removegooglefonts';
}

View File

@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased](https://git.d3data.de/D3Public/RemoveGoogleFonts/compare/1.0.0.0...rel_1.x) ## [Unreleased](https://git.d3data.de/D3Public/RemoveGoogleFonts/compare/2.0.0.0...rel_2.x)
## [2.0.0.0](https://git.d3data.de/D3Public/RemoveGoogleFonts/releases/tag/2.0.0.0) - 2024-04-11
### Added
- OXID 7 compatibility
## [1.0.0.0](https://git.d3data.de/D3Public/RemoveGoogleFonts/releases/tag/1.0.0.0) - 2022-08-31 ## [1.0.0.0](https://git.d3data.de/D3Public/RemoveGoogleFonts/releases/tag/1.0.0.0) - 2022-08-31
### Added ### Added

View File

@ -35,10 +35,20 @@ This package requires an OXID eShop installed with Composer in a version defined
Open a command line and navigate to the root directory of the shop (parent directory of source and vendor). Execute the following command. Adapt the path details to your installation environment. Open a command line and navigate to the root directory of the shop (parent directory of source and vendor). Execute the following command. Adapt the path details to your installation environment.
```bash ```bash
php composer require d3/removegooglefonts:^1.0 php composer require d3/removegooglefonts:^2.0
``` ```
Console:
// let shop read the module ( necessary! )
php vendor/bin/oe-console oe:modules:install vendor/d3/removegooglefonts
Activate the module in Shopadmin under "Extensions -> Modules". // activate the module
php vendor/bin/oe-console oe:modules:activate removegooglefonts
// deactivate the module
php vendor/bin/oe-console oe:modules:d3activate removegooglefonts
Activation && Deactivation also possible in Shop-Admin:
Activate the module under "Extensions -> Modules".
## Changelog ## Changelog

View File

@ -35,10 +35,20 @@ Dieses Paket erfordert einen mit Composer installierten OXID eShop in einer in d
Öffnen Sie eine Kommandozeile und navigieren Sie zum Stammverzeichnis des Shops (Elternverzeichnis von source und vendor). Führen Sie den folgenden Befehl aus. Passen Sie die Pfadangaben an Ihre Installationsumgebung an. Öffnen Sie eine Kommandozeile und navigieren Sie zum Stammverzeichnis des Shops (Elternverzeichnis von source und vendor). Führen Sie den folgenden Befehl aus. Passen Sie die Pfadangaben an Ihre Installationsumgebung an.
```bash ```bash
php composer require d3/removegooglefonts:^1.0 php composer require d3/removegooglefonts:^2.0
``` ```
Console:
// Einlesen ( nötig! )
php vendor/bin/oe-console oe:modules:install vendor/d3/removegooglefonts
Aktivieren Sie das Modul im Shopadmin unter "Erweiterungen -> Module". // Aktivierung
php vendor/bin/oe-console oe:modules:activate removegooglefonts
// Deaktivierung
php vendor/bin/oe-console oe:modules:d3activate removegooglefonts
Aktivierung && Deaktivierung auch im Shop-Admin möglich:
Navigieren Sie zu "Erweiterungen > Module".
## Changelog ## Changelog

View File

@ -0,0 +1,85 @@
/* raleway-200 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 200;
src: local(''),
url('raleway-v27-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-regular - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: local(''),
url('raleway-v27-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-600 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 600;
src: local(''),
url('raleway-v27-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: local(''),
url('raleway-v27-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-200italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 200;
src: local(''),
url('raleway-v27-latin-200italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-200italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 400;
src: local(''),
url('raleway-v27-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-600italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 600;
src: local(''),
url('raleway-v27-latin-600italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-600italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 700;
src: local(''),
url('raleway-v27-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('raleway-v27-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
body {
font-family:Raleway,"Helvetica Neue",Helvetica,Arial,sans-serif;
font-size:14px;
line-height:1.42857143;
}

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,12 +32,12 @@ $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/',
@ -43,12 +45,14 @@ $aModule = [
[ [
'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
] ]
], ],
]; ];

View File

@ -1,2 +0,0 @@
[{$smarty.block.parent}]
[{oxstyle include=$oViewConf->getModuleUrl('removegooglefonts', 'out/src/css/d3_fonts.css')}]

View File

@ -1,85 +0,0 @@
/* raleway-200 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 200;
src: local(''),
url('../fonts/raleway-v27-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-regular - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: local(''),
url('../fonts/raleway-v27-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-600 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 600;
src: local(''),
url('../fonts/raleway-v27-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: local(''),
url('../fonts/raleway-v27-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-200italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 200;
src: local(''),
url('../fonts/raleway-v27-latin-200italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-200italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 400;
src: local(''),
url('../fonts/raleway-v27-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-600italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 600;
src: local(''),
url('../fonts/raleway-v27-latin-600italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-600italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 700;
src: local(''),
url('../fonts/raleway-v27-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/raleway-v27-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
body {
font-family:Raleway,"Helvetica Neue",Helvetica,Arial,sans-serif;
font-size:14px;
line-height:1.42857143;
}

View File

@ -0,0 +1,3 @@
[{$smarty.block.parent}]
[{assign var="d3ViewConfObject" value=$oView->getViewConfig()}]
[{oxstyle include=$d3ViewConfObject->getModuleUrl('removegooglefonts', 'out/src/css/d3_fonts.css')}]