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