From 9a2885da170ffd64358b99194095851a2d09c1b6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 09:30:06 +0400 Subject: if plugin method get_css(), embed plugin-specific css to main UI --- index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 6584d8d2e..3d5b2cc43 100644 --- a/index.php +++ b/index.php @@ -62,8 +62,15 @@ - + -- cgit v1.2.3-54-g00ecf From 107997e6cb04f5daddb11e631b9866c385f2ca7d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:45:04 +0400 Subject: replace jsmin with jshrink --- index.php | 6 +- lib/jshrink/LICENSE | 24 +++ lib/jshrink/Minifier.php | 470 +++++++++++++++++++++++++++++++++++++++++++++++ lib/jshrink/README.md | 21 +++ lib/jsmin.php | 375 ------------------------------------- prefs.php | 6 +- 6 files changed, 521 insertions(+), 381 deletions(-) create mode 100644 lib/jshrink/LICENSE create mode 100644 lib/jshrink/Minifier.php create mode 100644 lib/jshrink/README.md delete mode 100644 lib/jsmin.php (limited to 'index.php') diff --git a/index.php b/index.php index 3d5b2cc43..49fcfdf98 100644 --- a/index.php +++ b/index.php @@ -85,19 +85,19 @@ diff --git a/prefs.php b/prefs.php index 4027fd1fa..a47d00bce 100644 --- a/prefs.php +++ b/prefs.php @@ -54,13 +54,8 @@ } } - foreach (array("functions", "deprecated", "prefs") as $js) { - if (!isset($_GET['debug'])) { - echo JShrink\Minifier::minify(file_get_contents("js/$js.js")); - } else { - echo file_get_contents("js/$js.js"); - } - } + print get_minified_js(array("functions", "deprecated", "prefs")); + ?> -- cgit v1.2.3-54-g00ecf