initial commit
Dieser Commit ist enthalten in:
Commit
89799cb83a
8
README.md
Normale Datei
8
README.md
Normale Datei
@ -0,0 +1,8 @@
|
||||
HTML minify
|
||||
=============================
|
||||
Enables Smarty 'trimwhitespace' Outputfilter to minify HTML Code
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
1. Activate module in the OXID backend
|
28
metadata.php
Normale Datei
28
metadata.php
Normale Datei
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Version: 1.0
|
||||
* Author: Alfred Bez <alfred.bez@gmail.com>
|
||||
* Author URI: http://www.alfredbez.de
|
||||
*/
|
||||
|
||||
/**
|
||||
* Metadata version
|
||||
*/
|
||||
$sMetadataVersion = '1.1';
|
||||
|
||||
/**
|
||||
* Module information
|
||||
*/
|
||||
$aModule = array(
|
||||
'id' => 'ab_htmlmin',
|
||||
'title' => 'Alfred Bez :: HTML minify',
|
||||
'description' => 'entfernt unnötige Whitespaces aus dem HTML-Code',
|
||||
'version' => '1.0',
|
||||
'author' => 'Alfred Bez',
|
||||
'url' => 'http://www.alfredbez.de',
|
||||
'email' => 'alfred.bez@gmail.com',
|
||||
'extend' => array(
|
||||
'oxutilsview' => 'ab_htmlmin/models/ab_htmlmin'
|
||||
)
|
||||
);
|
22
models/ab_htmlmin.php
Normale Datei
22
models/ab_htmlmin.php
Normale Datei
@ -0,0 +1,22 @@
|
||||
<?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/>
|
||||
*/
|
||||
class ab_htmlmin extends ab_htmlmin_parent {
|
||||
|
||||
protected function _fillCommonSmartyProperties( $oSmarty )
|
||||
{
|
||||
parent::_fillCommonSmartyProperties($oSmarty);
|
||||
include_once dirname(__FILE__).'/smarty/plugins/outputfilter.trimwhitespace.php';
|
||||
$oSmarty->load_filter ('output' , 'trimwhitespace');
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren