| name | language | licence |
|---|---|---|
| JaxsPro RapidSearch Box (MenuEnd) | HTML | Other |
| RapidWeaver_Addons_version | AppleScript | Other |
| Consolidate RapidWeaver style sheets | PHP | Other |
| custom css link for RapidWeaver | CSS | Other |
| ????API??????StatusBar | Objective-C | Other |
< 1 2 3 4 5 >
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
html (48)