forked from debagel/min42
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
6,579 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/data/settings.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
min42 - Changelog | ||
================= | ||
|
||
### Version 1.0 - 04. November 2014 | ||
|
||
* Name geändert: der Schlüssel und Ordner heisst neu min42 statt minifier (Neuinstallation erforderlich) | ||
* Neuer CSS Minifier: Neu wird der CSS Minifier "CssMin" von "Joe Scylla" verwendet | ||
* HTML Minifier hinzugefügt: Damit kann über den Outputfilter der gesammte HTML-Quelltext minifiziert werden | ||
* Optionen hinzugefügt: Im Backend kann nun eine INI-Datei bearbeitet werden um Einstellungen zu verändern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SEO42 - MIT Lizenz | ||
================== | ||
|
||
Copyright (c) 2014 webghost | ||
|
||
Hiermit wird unentgeltlich, jeder Person, die eine Kopie der Software und der zugehörigen Dokumentationen (die "Software") erhält, die Erlaubnis erteilt, sie uneingeschränkt zu benutzen, inklusive und ohne Ausnahme, dem Recht, sie zu verwenden, kopieren, ändern, fusionieren, verlegen, verbreiten, unterlizenzieren und/oder zu verkaufen, und Personen, die diese Software erhalten, diese Rechte zu geben, unter den folgenden Bedingungen: | ||
|
||
Der obige Urheberrechtsvermerk und dieser Erlaubnisvermerk sind in allen Kopien oder Teilkopien der Software beizulegen. | ||
|
||
DIE SOFTWARE WIRD OHNE JEDE AUSDRÜCKLICHE ODER IMPLIZIERTE GARANTIE BEREITGESTELLT, EINSCHLIESSLICH DER GARANTIE ZUR BENUTZUNG FÜR DEN VORGESEHENEN ODER EINEM BESTIMMTEN ZWECK SOWIE JEGLICHER RECHTSVERLETZUNG, JEDOCH NICHT DARAUF BESCHRÄNKT. IN KEINEM FALL SIND DIE AUTOREN ODER COPYRIGHTINHABER FÜR JEGLICHEN SCHADEN ODER SONSTIGE ANSPRÜCHE HAFTBAR ZU MACHEN, OB INFOLGE DER ERFÜLLUNG EINES VERTRAGES, EINES DELIKTES ODER ANDERS IM ZUSAMMENHANG MIT DER SOFTWARE ODER SONSTIGER VERWENDUNG DER SOFTWARE ENTSTANDEN. | ||
|
||
|
||
Drittanbieter-Software | ||
====================== | ||
|
||
Einige Scripte in dieser Software stammen aus anderen OpenSource-Projekten und unterstehen den jeweiligen Lizenzen und sind Eigentum der benannten Autoren! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,64 @@ | ||
<?php | ||
|
||
/** | ||
* seo42 Minifier | ||
* min42 | ||
* | ||
* @version 0.1 | ||
* @version 1.0 | ||
* @package REDAXO seo42 3.4.0 + | ||
* @author webghost | ||
* @license Copyright (c) 2014 webghost (MIT License) | ||
*/ | ||
$page = 'minifier'; | ||
|
||
// Config | ||
$REX['ADDON']['rxid'][$page] = '1204'; | ||
$REX['ADDON']['page'][$page] = $page; | ||
#$REX['ADDON']['name'][$page] = ''; | ||
$REX['ADDON']['version'][$page] = '0.1'; | ||
$REX['ADDON']['author'][$page] = 'webghost'; | ||
$REX['ADDON']['supportpage'][$page] = 'https://github.com/webghostx/minifier/issues'; | ||
$addonKey = 'min42'; | ||
define("MIN42_PATH", $REX['INCLUDE_PATH'] . '/addons/seo42/plugins/' . $addonKey); | ||
define("MIN42_DATA_PATH", MIN42_PATH . '/data'); | ||
|
||
if (!$REX['SETUP']) { | ||
/* | ||
* Plugin initialisieren | ||
*/ | ||
$REX['ADDON']['rxid'][$addonKey] = '1204'; | ||
$REX['ADDON']['page'][$addonKey] = $addonKey; | ||
$REX['ADDON']['name'][$addonKey] = 'Minifier'; | ||
$REX['ADDON']['version'][$addonKey] = '0.1'; | ||
$REX['ADDON']['author'][$addonKey] = 'webghost'; | ||
$REX['ADDON']['supportpage'][$addonKey] = 'https://github.com/webghostx/minifier/issues'; | ||
$REX['PERM'][] = 'min42[]'; | ||
|
||
// | ||
if ($REX['SETUP']) | ||
goto end; | ||
|
||
/* | ||
* autoloader | ||
*/ | ||
spl_autoload_register(function ($className) { | ||
|
||
$folder = MIN42_PATH . '/lib/'; | ||
$subFolder = MIN42_PATH . '/lib/vendor/'; | ||
$file = $className . '.php'; | ||
|
||
if (is_readable($folder . $file)) { | ||
require_once $folder . $file; | ||
} elseif (is_readable($subFolder . $file)) { | ||
require_once $subFolder . $file; | ||
} | ||
}); | ||
|
||
|
||
/* | ||
* Einstellungen laden | ||
*/ | ||
$REX['ADDON'][$addonKey]['conf'] = min42::loadSettings(); | ||
|
||
/* | ||
* HTML minify | ||
*/ | ||
if (!$REX['REDAXO']) | ||
min42::minifyHTML(); | ||
|
||
|
||
if ($REX['REDAXO']) | ||
$I18N->appendFile(MIN42_PATH . '/lang/'); | ||
|
||
require_once (__DIR__ . '/lib/res42ext.php'); | ||
require_once (__DIR__ . '/lib/seo42ext.php'); | ||
} | ||
// | ||
end: |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
; Konfiguration | ||
;--------------- | ||
|
||
; Javascript Dateien minifizieren | ||
minifyJS = 1 | ||
|
||
; CSS Dateien minifizieren | ||
minifyCSS = 1 | ||
|
||
; HTML über den Output-Filter minifizieren | ||
minifyHTML = 1 | ||
|
||
; HTML noch mehr minifizieren (könnte Probleme mit alten Browser geben!) | ||
minifyPlusHTML = 0 | ||
|
||
; In HTML eingebettetes CSS minifizieren | ||
minifyEmbedCSS = 1 | ||
|
||
; in HTML eingebettetes Javascript minifizieren | ||
minifyEmbedJS = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* seo42 Minifier | ||
* min42 | ||
* | ||
* @version 0.1 | ||
* @version 1.0 | ||
* @package REDAXO seo42 3.4.0 + | ||
* @author webghost | ||
* @license Copyright (c) 2014 webghost (MIT License) | ||
*/ | ||
|
||
|
||
?> | ||
<h3>Hilfe</h3> | ||
<h3>Information</h3> | ||
|
||
<ul style="margin-left: 1.2em;"> | ||
<li><a href="http://forum.redaxo.de">READAXO Forum</a></li> | ||
<li><a href="https://github.com/webghostx/minifier">GitHub</a></li> | ||
<li><a href="https://github.com/webghostx/min42">GitHub</a> (Für Informationen)</li> | ||
<li><a href="https://github.com/webghostx/min42/issues">GitHub issues</a> (Für Probleme, Fehlermeldungen, Anregungen)</li> | ||
<li><a href="http://forum.redaxo.de">READAXO Forum</a> (Für Allgemeine Anliegen)</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
<?php | ||
$REX['ADDON']['install']['minifier'] = TRUE; | ||
|
||
/** | ||
* min42 | ||
* | ||
* @version 1.0 | ||
* @package REDAXO seo42 3.4.0 + | ||
* @author webghost | ||
* @license Copyright (c) 2014 webghost (MIT License) | ||
*/ | ||
|
||
$msg = ''; | ||
$minPhpVersion = '5.3.3'; | ||
$minSeo42Version = '3.4.0'; | ||
|
||
if (version_compare(PHP_VERSION, $minPhpVersion) < 0) { | ||
$msg = "PHP Version $minPhpVersion or later required"; | ||
} elseif (version_compare($REX['ADDON']['version']['seo42'], $minSeo42Version) < 0) { | ||
$msg = "SEO42 Version $minSeo42Version or later required"; | ||
} else { | ||
require_once $dir . '/lib/manager.php'; | ||
$msg = rex_developer_manager::checkDir('data/addons/developer'); | ||
} | ||
|
||
if ($msg != '') { | ||
$REX['ADDON']['installmsg']['min42'] = $msg; | ||
$REX['ADDON']['install']['min42'] = FALSE; | ||
} else { | ||
$REX['ADDON']['install']['min42'] = TRUE; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
min42_save_ok = Erfolgreich gespeichert | ||
min42_save_fail = Speichern fehlgeschlagen! | ||
min42_reset_ok = Erfolgreich zurückgesetzt! | ||
min42_reset_fail = Zurücksetzen fehlgeschlagen! | ||
min42_confirm_reset = Achtung - die aktuellen Einstellungen gehen verloren, es werden die Standard-Einstellungen geladen! | ||
min42_settings_text = Hier können die Einstellungen verändert werden. | ||
min42_do_settings_save = Einstellungen speichern | ||
min42_do_settings_reset = Einstellungen auf Standard zurücksetzen |
Oops, something went wrong.