commit 9f31acbc335fc51d59dcf5af36a3e710ccb4bc0e Author: Daniel Stein Date: Mon Jul 18 15:12:52 2022 +0200 init diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..353ce4d --- /dev/null +++ b/composer.json @@ -0,0 +1,39 @@ +{ + "name": "d3/removegooglefonts", + "description": "Google Fonts local einbinden", + "type": "oxideshop-module", + "version": "1.0.0.0", + "keywords": [ + "oxid", + "modules", + "eShop", + "d3" + ], + "authors": [ + { + "name": "D3 Data Development (Inh. Thomas Dartsch)", + "email": "info@shopmodule.com", + "homepage": "http://www.d3data.de", + "role": "Owner" + } + ], + "homepage": "https://www.oxidmodule.com/", + "license": [ + "proprietary" + ], + "extra": { + "oxideshop": { + "blacklist-filter": [ + "*.md", + "composer.json" + ], + "source-directory": "/src", + "target-directory": "d3/removegooglefonts" + } + }, + "autoload": { + "psr-4": { + "D3\\Removegooglefonts\\": "../../../source/modules/d3/removegooglefonts" + } + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..fd21304 --- /dev/null +++ b/readme.md @@ -0,0 +1,2 @@ +### Beschreibung +Bindet Googlefonts im Flow-Theme local ein. \ No newline at end of file diff --git a/src/Application/views/blocks/layout/d3_base_fonts.tpl b/src/Application/views/blocks/layout/d3_base_fonts.tpl new file mode 100644 index 0000000..008310b --- /dev/null +++ b/src/Application/views/blocks/layout/d3_base_fonts.tpl @@ -0,0 +1 @@ +[{*clear google font*}] \ No newline at end of file diff --git a/src/Application/views/blocks/layout/d3_base_style.tpl b/src/Application/views/blocks/layout/d3_base_style.tpl new file mode 100644 index 0000000..acdc037 --- /dev/null +++ b/src/Application/views/blocks/layout/d3_base_style.tpl @@ -0,0 +1,2 @@ +[{$smarty.block.parent}] +[{oxstyle include=$oViewConf->getModuleUrl('removegooglefonts', 'out/src/css/d3_fonts.css')}] \ No newline at end of file diff --git a/src/metadata.php b/src/metadata.php new file mode 100644 index 0000000..0c0350e --- /dev/null +++ b/src/metadata.php @@ -0,0 +1,54 @@ + + * @link https://www.oxidmodule.com + */ + + +/** + * Metadata version + */ + +$sMetadataVersion = '2.0'; + +$sModuleId = 'removegooglefonts'; + +/** + * Module information + */ + +$aModule = [ + 'id' => $sModuleId, + 'title' => '(D3) Anpassung: Google Fonts local einbinden', + 'description' => [ + 'de' => 'Bindet Google Fonts local ein', + 'en' => '', + ], + 'version' => '1.0.0', + 'author' => 'D³ Data Development (Inh.: Thomas Dartsch)', + 'email' => 'support@shopmodule.com', + 'url' => 'http://www.oxidmodule.com/', + 'blocks' => [ + [ + 'template' => 'layout/base.tpl', + 'block' => 'base_style', + 'file' => '/Application/views/blocks/layout/d3_base_style.tpl' + ], + [ + 'template' => 'layout/base.tpl', + 'block' => 'base_fonts', + 'file' => '/Application/views/blocks/layout/d3_base_fonts.tpl' + ] + ], +]; \ No newline at end of file diff --git a/src/out/src/css/d3_fonts.css b/src/out/src/css/d3_fonts.css new file mode 100644 index 0000000..494aa28 --- /dev/null +++ b/src/out/src/css/d3_fonts.css @@ -0,0 +1,85 @@ +/* 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; +} \ No newline at end of file diff --git a/src/out/src/fonts/raleway-v27-latin-200.woff b/src/out/src/fonts/raleway-v27-latin-200.woff new file mode 100644 index 0000000..81d355f Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-200.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-200.woff2 b/src/out/src/fonts/raleway-v27-latin-200.woff2 new file mode 100644 index 0000000..b40d2e4 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-200.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-200italic.woff b/src/out/src/fonts/raleway-v27-latin-200italic.woff new file mode 100644 index 0000000..5db1ec8 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-200italic.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-200italic.woff2 b/src/out/src/fonts/raleway-v27-latin-200italic.woff2 new file mode 100644 index 0000000..223d8bf Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-200italic.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-600.woff b/src/out/src/fonts/raleway-v27-latin-600.woff new file mode 100644 index 0000000..30138b4 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-600.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-600.woff2 b/src/out/src/fonts/raleway-v27-latin-600.woff2 new file mode 100644 index 0000000..a96cca4 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-600.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-600italic.woff b/src/out/src/fonts/raleway-v27-latin-600italic.woff new file mode 100644 index 0000000..70e8db7 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-600italic.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-600italic.woff2 b/src/out/src/fonts/raleway-v27-latin-600italic.woff2 new file mode 100644 index 0000000..344e72b Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-600italic.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-700.woff b/src/out/src/fonts/raleway-v27-latin-700.woff new file mode 100644 index 0000000..3301d03 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-700.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-700.woff2 b/src/out/src/fonts/raleway-v27-latin-700.woff2 new file mode 100644 index 0000000..efb900d Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-700.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-700italic.woff b/src/out/src/fonts/raleway-v27-latin-700italic.woff new file mode 100644 index 0000000..6a5d988 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-700italic.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-700italic.woff2 b/src/out/src/fonts/raleway-v27-latin-700italic.woff2 new file mode 100644 index 0000000..4159c33 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-700italic.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-italic.woff b/src/out/src/fonts/raleway-v27-latin-italic.woff new file mode 100644 index 0000000..f56508d Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-italic.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-italic.woff2 b/src/out/src/fonts/raleway-v27-latin-italic.woff2 new file mode 100644 index 0000000..75879a9 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-italic.woff2 differ diff --git a/src/out/src/fonts/raleway-v27-latin-regular.woff b/src/out/src/fonts/raleway-v27-latin-regular.woff new file mode 100644 index 0000000..04bd7dc Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-regular.woff differ diff --git a/src/out/src/fonts/raleway-v27-latin-regular.woff2 b/src/out/src/fonts/raleway-v27-latin-regular.woff2 new file mode 100644 index 0000000..d517604 Binary files /dev/null and b/src/out/src/fonts/raleway-v27-latin-regular.woff2 differ