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: 16 years ago
Size: 740 bytes
 

Contents

Class file image Download
<?php
$path
= "C:\phpclasses";
include(
'../../class_crushJsCss/class_crushJsCss.php');

$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';
$style->jscss();
?>