Compare commits

..

4 Commits

Author SHA1 Message Date
c54a5d253d Verzeichnisse verschoben 2024-08-28 11:19:32 +02:00
b1a8800288 require auf 7.0-7.1 gesetzt 2024-08-28 11:17:44 +02:00
Ivo Bathke
d87119c53f
fixed sMetadataVersion (#6) 2020-04-02 14:01:16 +02:00
Alfred Bez
8bd8329e43
update instructions to install in oxid v5 & v6 2019-04-18 12:16:18 +02:00
4 changed files with 43 additions and 37 deletions

View File

@ -1,24 +1,24 @@
<?php <?php
/** /**
* ab HTML minify * ab HTML minify
* Copyright (C) 2014 Alfred Bez * Copyright (C) 2014 Alfred Bez
* *
* This program is free software; * This program 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; * you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version. * either version 3 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * This program 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. * 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 this program; if not, see <http://www.gnu.org/licenses/> * You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/ */
namespace AlfredBez\HtmlMin\Core; namespace AlfredBez\HtmlMin\Modules\Core;
class UtilsView extends UtilsView_parent { class UtilsView extends UtilsView_parent {
protected function _fillCommonSmartyProperties($oSmarty) protected function _fillCommonSmartyProperties($oSmarty)
{ {
parent::_fillCommonSmartyProperties($oSmarty); parent::_fillCommonSmartyProperties($oSmarty);
$oSmarty->load_filter('output' , 'trimwhitespace'); $oSmarty->load_filter('output' , 'trimwhitespace');
} }
} }

View File

@ -2,25 +2,35 @@ HTML minify
============================= =============================
Enables Smarty 'trimwhitespace' Outputfilter to minify HTML Code Enables Smarty 'trimwhitespace' Outputfilter to minify HTML Code
Versions
------------
| OXID eShop Version | Module Version |
|------|------|
| v5.x | v0.x |
| v6.x | v1.x |
Download Download
------------ ------------
first you need [composer](https://getcomposer.org/download/) first you need [composer](https://getcomposer.org/download/)
add the module to your composer.json add the module to your composer.json
* via command line ```composer.phar require alfredbez/ab_htmlmin dev-master``` * via command line ```composer require alfredbez/ab_htmlmin:"^1.0"```
* OR * OR
* manually * manually
``` ```
{ {
"require": { "require": {
"alfredbez/ab_htmlmin": "dev-master" "alfredbez/ab_htmlmin": "^1.0""
} }
} }
``` ```
This will install the OXID-v6 module. If you need the module for an older shop just use `v0.1` instead of `v1.0`.
---- ----
**Don't forget to activate module in the OXID backend** **Don't forget to activate module in the OXID backend**
---- ----

View File

@ -4,7 +4,7 @@
"keywords": ["oxid", "modules", "eShop"], "keywords": ["oxid", "modules", "eShop"],
"description": "entfernt unnötige Whitespaces aus dem HTML-Code", "description": "entfernt unnötige Whitespaces aus dem HTML-Code",
"require": { "require": {
"oxid-esales/oxideshop-ce": "^v6.0" "oxid-esales/oxideshop-ce": "7.0 - 7.0"
}, },
"authors": [ "authors": [
{ {
@ -12,14 +12,10 @@
"email": "alfred.bez@gmail.com" "email": "alfred.bez@gmail.com"
} }
], ],
"extra": { "extra": {},
"oxideshop": {
"target-directory": "ab/htmlmin"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"AlfredBez\\HtmlMin\\": "../../../source/modules/ab/htmlmin" "AlfredBez\\HtmlMin\\": ""
} }
}, },
"minimum-stability": "dev" "minimum-stability": "dev"

View File

@ -9,7 +9,7 @@
/** /**
* Metadata version * Metadata version
*/ */
$sMetadataVersion = '2'; $sMetadataVersion = '2.1';
/** /**
* Module information * Module information
@ -20,9 +20,9 @@ $aModule = [
'description' => 'entfernt unnötige Whitespaces aus dem HTML-Code', 'description' => 'entfernt unnötige Whitespaces aus dem HTML-Code',
'version' => '2.0', 'version' => '2.0',
'author' => 'Alfred Bez', 'author' => 'Alfred Bez',
'url' => 'http://www.alfredbez.de', 'url' => 'https://www.alfredbez.de',
'email' => 'alfred.bez@gmail.com', 'email' => 'alfred.bez@gmail.com',
'extend' => [ 'extend' => [
\OxidEsales\Eshop\Core\UtilsView::class => \AlfredBez\HtmlMin\Core\UtilsView::class, \OxidEsales\Eshop\Core\UtilsView::class => \AlfredBez\HtmlMin\Modules\Core\UtilsView::class,
], ],
]; ];