1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

Use New Minify Classes!

This commit is contained in:
Awilum
2013-01-20 01:25:37 +02:00
parent ded831e9a7
commit 5315020c1e
3 changed files with 6 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ class Javascript
$backend_buffer .= file_get_contents(ROOT . DS . $javascript['file']); $backend_buffer .= file_get_contents(ROOT . DS . $javascript['file']);
} }
} }
file_put_contents($backend_site_js_path, $backend_buffer); file_put_contents($backend_site_js_path, MinifyJS::process($backend_buffer));
$backend_regenerate = false; $backend_regenerate = false;
} }
@@ -118,7 +118,7 @@ class Javascript
$frontend_buffer .= file_get_contents(ROOT . DS . $javascript['file']); $frontend_buffer .= file_get_contents(ROOT . DS . $javascript['file']);
} }
} }
file_put_contents($frontend_site_js_path, $frontend_buffer); file_put_contents($frontend_site_js_path, MinifyJS::process($frontend_buffer));
$frontend_regenerate = false; $frontend_regenerate = false;
} }

View File

@@ -96,7 +96,7 @@ class Stylesheet
} }
} }
$backend_buffer = Stylesheet::parseVariables($backend_buffer); $backend_buffer = Stylesheet::parseVariables($backend_buffer);
file_put_contents($backend_site_css_path, Minify::css($backend_buffer)); file_put_contents($backend_site_css_path, MinifyCSS::process($backend_buffer));
$backend_regenerate = false; $backend_regenerate = false;
} }
@@ -120,7 +120,7 @@ class Stylesheet
} }
} }
$frontend_buffer = Stylesheet::parseVariables($frontend_buffer); $frontend_buffer = Stylesheet::parseVariables($frontend_buffer);
file_put_contents($frontend_site_css_path, Minify::css($frontend_buffer)); file_put_contents($frontend_site_css_path, MinifyCSS::process($frontend_buffer));
$frontend_regenerate = false; $frontend_regenerate = false;
} }

View File

@@ -176,7 +176,7 @@ class Site
if ( ! file_exists(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php') or if ( ! file_exists(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php') or
filemtime(THEMES_SITE . DS . $current_theme . DS . $template .'.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php')) { filemtime(THEMES_SITE . DS . $current_theme . DS . $template .'.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php')) {
$buffer = file_get_contents(THEMES_SITE. DS . $current_theme . DS . $template .'.template.php'); $buffer = file_get_contents(THEMES_SITE. DS . $current_theme . DS . $template .'.template.php');
$buffer = Minify::html($buffer); $buffer = MinifyHTML::process($buffer);
file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php', $buffer); file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php', $buffer);
} }
@@ -185,7 +185,7 @@ class Site
if ( ! File::exists(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php') or if ( ! File::exists(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php') or
filemtime(THEMES_SITE . DS . $current_theme . DS . 'index.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php')) { filemtime(THEMES_SITE . DS . $current_theme . DS . 'index.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php')) {
$buffer = file_get_contents(THEMES_SITE . DS . $current_theme . DS . 'index.template.php'); $buffer = file_get_contents(THEMES_SITE . DS . $current_theme . DS . 'index.template.php');
$buffer = Minify::html($buffer); $buffer = MinifyHTML::process($buffer);
file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php', $buffer); file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php', $buffer);
} }