| @@ 166-181 (lines=16) @@ | ||
| 163 | // } |
|
| 164 | } |
|
| 165 | ||
| 166 | if($conf->get('autoptimize_js')) { |
|
| 167 | include(AUTOPTIMIZE_PLUGIN_DIR.'classes/autoptimizeScripts.php'); |
|
| 168 | if (!class_exists('JSMin')) { |
|
| 169 | if (defined('AUTOPTIMIZE_LEGACY_MINIFIERS')) { |
|
| 170 | @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/jsmin-1.1.1.php'); |
|
| 171 | } else { |
|
| 172 | @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/minify-2.3.1-jsmin.php'); |
|
| 173 | } |
|
| 174 | } |
|
| 175 | if ( ! defined( 'CONCATENATE_SCRIPTS' )) { |
|
| 176 | define('CONCATENATE_SCRIPTS',false); |
|
| 177 | } |
|
| 178 | if ( ! defined( 'COMPRESS_SCRIPTS' )) { |
|
| 179 | define('COMPRESS_SCRIPTS',false); |
|
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| 183 | if($conf->get('autoptimize_css')) { |
|
| 184 | include(AUTOPTIMIZE_PLUGIN_DIR.'classes/autoptimizeStyles.php'); |
|
| @@ 183-197 (lines=15) @@ | ||
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| 183 | if($conf->get('autoptimize_css')) { |
|
| 184 | include(AUTOPTIMIZE_PLUGIN_DIR.'classes/autoptimizeStyles.php'); |
|
| 185 | if (defined('AUTOPTIMIZE_LEGACY_MINIFIERS')) { |
|
| 186 | if (!class_exists('Minify_CSS_Compressor')) { |
|
| 187 | @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/minify-css-compressor.php'); |
|
| 188 | } |
|
| 189 | } else { |
|
| 190 | if (!class_exists('CSSmin')) { |
|
| 191 | @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/yui-php-cssmin-2.4.8-p10/cssmin.php'); |
|
| 192 | } |
|
| 193 | } |
|
| 194 | if ( ! defined( 'COMPRESS_CSS' )) { |
|
| 195 | define('COMPRESS_CSS',false); |
|
| 196 | } |
|
| 197 | } |
|
| 198 | ||
| 199 | // filter to be used with care, kills all output buffers when true. use with extreme caution. you have been warned! |
|
| 200 | if (apply_filters('autoptimize_filter_obkiller',false)) { |
|