| name | language | licence |
|---|---|---|
| Contact Form 1 | PHP | Other |
| Email Obfuscation | PHP | Other |
| MultiSort | PHP | Other |
| Show Recent Posts 2 | PHP | Other |
| JavaScript Compressor - PHP | PHP | GPL 2 |
| officeHours OPEN/CLOSE visitor notification | PHP | Other |
| Contact Form 2 | PHP | Other |
| Consolidate RapidWeaver style sheets | PHP | Other |
< 1 2 >
language: PHP
licence: Other
Consolidate RapidWeaver style sheets
options: view full snippet • send to code collector
<?PHP
//get contents of buffer and discard
$out = ob_get_clean();
//split by newline
$arry_lines = split("[\n|\r]", $out);
//initialize vars
$newout="";
$beginStyleTag='<style type="text/css" media="all">';
$endStyleTag='</style>';
$pattern='/(<link\b.+href=")(?!http)([^"]*)(".*>)/';
//loop through each line of buffer
foreach ($arry_lines as &$value) {



library
css (23)