forked from Adleraci/adlerka.top
test inlining
This commit is contained in:
parent
729a80b647
commit
3c21c5e2f8
@ -8,6 +8,8 @@ function inlineLocalStylesFromHref($inputString) {
|
||||
// Extract the href attribute value
|
||||
$href = isset($match[1]) ? $match[1] : $match[2];
|
||||
|
||||
$fname = $_SERVER['DOCUMENT_ROOT'] . '/' . $href;
|
||||
echo "from $fname";
|
||||
// Get the content of the local CSS file
|
||||
$cssContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $href);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user