rubencio (November 28th, 2010)
rubencio (November 28th, 2010)
rubencio (November 28th, 2010)
<?php
header('Content-type: text/css');
header ('cache-control: must-revalidate');
$offset = 60 * 60;
$expire = 'expires: ' . gmdate ('D, d M Y H:i:s', time() + $offset) . ' GMT';
header ($expire);
ob_start("compress");
function compress($buffer) {
/* remove comments */
$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
/* remove tabs, spaces, newlines, etc. */
$buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer);
return $buffer;
}
/* -- >your css files */
include('/wp-content/themes/classipress/green-black.css');
include('/wp-content/plugins/.....your css path');
include('/wp-content/plugins/wp-affiliate/.........your css path');
ob_end_flush();
?>
<link href="http://www.your site/wp-content/themes/classipress/styles/mycss.php" rel="stylesheet" type="text/css" media="all"/>
rubencio (December 12th, 2010)
There are currently 1 users browsing this thread. (0 members and 1 guests)