Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
@ -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\Modules\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\Core;
|
||||
|
||||
class UtilsView extends UtilsView_parent {
|
||||
|
||||
protected function _fillCommonSmartyProperties($oSmarty)
|
||||
{
|
||||
parent::_fillCommonSmartyProperties($oSmarty);
|
||||
$oSmarty->load_filter('output' , 'trimwhitespace');
|
||||
}
|
||||
}
|
16
README.md
16
README.md
@ -2,35 +2,25 @@ 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 require alfredbez/ab_htmlmin:"^1.0"```
|
||||
* via command line ```composer.phar require alfredbez/ab_htmlmin dev-master```
|
||||
* OR
|
||||
* manually
|
||||
```
|
||||
{
|
||||
"require": {
|
||||
"alfredbez/ab_htmlmin": "^1.0""
|
||||
"alfredbez/ab_htmlmin": "dev-master"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
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**
|
||||
|
||||
----
|
||||
----
|
@ -4,7 +4,7 @@
|
||||
"keywords": ["oxid", "modules", "eShop"],
|
||||
"description": "entfernt unnötige Whitespaces aus dem HTML-Code",
|
||||
"require": {
|
||||
"oxid-esales/oxideshop-ce": "7.0 - 7.0"
|
||||
"oxid-esales/oxideshop-ce": "^v6.0"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
@ -12,10 +12,14 @@
|
||||
"email": "alfred.bez@gmail.com"
|
||||
}
|
||||
],
|
||||
"extra": {},
|
||||
"extra": {
|
||||
"oxideshop": {
|
||||
"target-directory": "ab/htmlmin"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlfredBez\\HtmlMin\\": ""
|
||||
"AlfredBez\\HtmlMin\\": "../../../source/modules/ab/htmlmin"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev"
|
||||
|
@ -9,7 +9,7 @@
|
||||
/**
|
||||
* Metadata version
|
||||
*/
|
||||
$sMetadataVersion = '2.1';
|
||||
$sMetadataVersion = '2';
|
||||
|
||||
/**
|
||||
* Module information
|
||||
@ -20,9 +20,9 @@ $aModule = [
|
||||
'description' => 'entfernt unnötige Whitespaces aus dem HTML-Code',
|
||||
'version' => '2.0',
|
||||
'author' => 'Alfred Bez',
|
||||
'url' => 'https://www.alfredbez.de',
|
||||
'url' => 'http://www.alfredbez.de',
|
||||
'email' => 'alfred.bez@gmail.com',
|
||||
'extend' => [
|
||||
\OxidEsales\Eshop\Core\UtilsView::class => \AlfredBez\HtmlMin\Modules\Core\UtilsView::class,
|
||||
\OxidEsales\Eshop\Core\UtilsView::class => \AlfredBez\HtmlMin\Core\UtilsView::class,
|
||||
],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user