Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #180 from digilist/dev
Browse files Browse the repository at this point in the history
now doesn't minify resetstyle if minifying is disabled
  • Loading branch information
brinley committed Jun 13, 2013
2 parents f53f0f5 + 0c64571 commit eaf810c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/resetstyle.php
Expand Up @@ -33,9 +33,14 @@ function resetstyle(&$output){
elseif(file_exists('plugins/resetstyle/default.css')){
$reset_stylesheet = file_get_contents('plugins/resetstyle/default.css');
}

global $cssp;
if(!empty($reset_stylesheet)){
// Compress the styles
$reset_stylesheet = cssmin::minify($reset_stylesheet);
if($cssp->config['minify_css'] == true){
// Compress the styles
$reset_stylesheet = cssmin::minify($reset_stylesheet);
}

// Force a scrollbar?
if(is_array($settings) && in_array('force-scrollbar', $settings)){
$reset_stylesheet .= 'html{overflow-y:scroll}';
Expand All @@ -44,7 +49,6 @@ function resetstyle(&$output){
$output = $reset_stylesheet.$output;
}
else{
global $cssp;
$cssp->report_error('Resetstyle plugin couldn\'t find a stylesheet to include');
}
}
Expand Down

0 comments on commit eaf810c

Please sign in to comment.