Skip to content

Commit

Permalink
uphdate header/footer script parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
auxonic committed Mar 13, 2023
1 parent 551e649 commit 9a864d5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ function header_and_footer_scripts_page_top(array &$page_top) {
$i++;
}
}
if (isset($body_section['scripts']) && !empty($body_section['scripts'])) {
$page_top['top_scripts_scripts'] = [
'#markup' => $body_section['scripts'],
];
}
/*
if (isset($body_section['scripts']) && !empty($body_section['scripts'])) {
$output_scripts = preg_split("/(<\/script>|<\/noscript>)/", $body_section['scripts']);
$i = 1;
Expand Down Expand Up @@ -146,6 +152,7 @@ function header_and_footer_scripts_page_top(array &$page_top) {
$i++;
}
}
*/
}

/**
Expand Down

0 comments on commit 9a864d5

Please sign in to comment.