Change Stylesheet links to point to minified files.

Cette révision appartient à :
Gautham Warrier 2014-02-19 11:13:50 +05:30
Parent 73542f286e
révision 8cc4670134
2 fichiers modifiés avec 214 ajouts et 214 suppressions

Voir le fichier

@ -572,7 +572,7 @@ function clean_copy_assets($path){
} else { } else {
$unnecessaryJs = array('./js/less.min.js'); $unnecessaryJs = array('./js/less.min.js');
@mkdir($path.'/css'); @mkdir($path.'/css');
@copy('./css/daux-'.$options['theme'].'.css', $path.'/css/daux-'.$options['theme'].'.css'); @copy('./css/daux-'.$options['theme'].'.min.css', $path.'/css/daux-'.$options['theme'].'.min.css');
$unnecessaryImgs = array_diff($unnecessaryImgs, array('./img/favicon-'.$options['theme'].'.png')); $unnecessaryImgs = array_diff($unnecessaryImgs, array('./img/favicon-'.$options['theme'].'.png'));
} }
copy_recursive('./img', $path.'/', $unnecessaryImgs); copy_recursive('./img', $path.'/', $unnecessaryImgs);

Voir le fichier

@ -21,7 +21,7 @@
</style> </style>
<script src="<?php echo $base_url ?>/js/less.min.js"></script> <script src="<?php echo $base_url ?>/js/less.min.js"></script>
<?php } else { ?> <?php } else { ?>
<link rel="stylesheet" href="<?php echo $base_url ?>/css/daux-<?php echo $options['theme'];?>.css"> <link rel="stylesheet" href="<?php echo $base_url ?>/css/daux-<?php echo $options['theme'];?>.min.css">
<?php } ?> <?php } ?>
<link rel="stylesheet" href="<?php echo $base_url ?>/css/full-doc.css"> <link rel="stylesheet" href="<?php echo $base_url ?>/css/full-doc.css">