Comparer les révisions

...

4 Révisions

Auteur 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 fichiers modifiés avec 43 ajouts et 37 suppressions

Voir le fichier

@ -1,24 +1,24 @@
<?php
/**
* ab HTML minify
* Copyright (C) 2014 Alfred Bez
*
* 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;
* 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;
* 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/>
*/
namespace AlfredBez\HtmlMin\Core;
class UtilsView extends UtilsView_parent {
protected function _fillCommonSmartyProperties($oSmarty)
{
parent::_fillCommonSmartyProperties($oSmarty);
$oSmarty->load_filter('output' , 'trimwhitespace');
}
}
<?php
/**
* ab HTML minify
* Copyright (C) 2014 Alfred Bez
*
* 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;
* 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;
* 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/>
*/
namespace AlfredBez\HtmlMin\Modules\Core;
class UtilsView extends UtilsView_parent {
protected function _fillCommonSmartyProperties($oSmarty)
{
parent::_fillCommonSmartyProperties($oSmarty);
$oSmarty->load_filter('output' , 'trimwhitespace');
}
}

Voir le fichier

@ -2,25 +2,35 @@ HTML minify
=============================
Enables Smarty 'trimwhitespace' Outputfilter to minify HTML Code
Versions
------------
| OXID eShop Version | Module Version |
|------|------|
| v5.x | v0.x |
| v6.x | v1.x |
Download
------------
first you need [composer](https://getcomposer.org/download/)
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
* manually
```
{
"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**
----
----

Voir le fichier

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

Voir le fichier

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