| name | language | licence |
|---|---|---|
| Consolidate RapidWeaver style sheets | PHP | Other |
| Directories | PHP | Other |
| PlusKit PHP Contact Form Solution | PHP | Other |
| seyDoggy Reset | CSS | Other |
| custom css link for RapidWeaver | CSS | Other |
| 2 columns within columns | HTML | GPL 2 |
| ExtraContent Sample - HTML Code | HTML | Other |
| Distro release information | bash | GPL 2 |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 >
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)