PHP Classes

File: css.php

Recommend this page to a friend!
  Classes of Antonio Jozzolino   crushJsCss   css.php   Download  
File: css.php
Role: Example script
Content type: text/plain
Description: CSS Example
Class: crushJsCss
Optimize Javascript and CSS files
Author: By
Last change:
Date: 14 years ago
Size: 740 bytes


Class file image Download
= "C:\phpclasses";

$i = 0;
$css[$i++]['file'] = $path.'\class_crushJsCss\examples\1.css';
$css[$i++]['file'] = $path.'\class_crushJsCss\examples\2.css';
$css[$i-1]['pack'] = false;
$css[$i++]['file'] = $path.'\class_crushJsCss\examples\3.css';

$style = new crushJsCss();
$style->scripts = $css;
$style->type = 'css';
// CSS tidy customization. Optional.
$style->tidy_cfg_sort_properties = true;
$style->tidy_cfg_remove_last_semicolon = true;
$style->tidy_cfg_preserve_css = true;
// Cache dir
$style->cachedir = $path.'\class_crushJsCss\cache';