Lines Matching full:script
377 $script = "var NS='" . (isset($INFO) ? $INFO['namespace'] : '') . "';";
379 $script .= "var SIG=" . toolbar_signature() . ";";
382 $script .= 'var JSINFO = ' . json_encode($JSINFO, JSON_THROW_ON_ERROR) . ';';
383 …$script .= '(function(H){H.className=H.className.replace(/\bno-js\b/,\'js\')})(document.documentEl…
384 $head['script'][] = ['_data' => $script];
389 $head['script'][] = [
396 $head['script'][] = [
430 if ($nonce && $tag == 'script' && !empty($attr['_data'])) {
431 $attr['nonce'] = $nonce; // add nonce to inline script tags
434 if (isset($attr['_data']) || $tag == 'script') {
445 * Output the given script as inline script tag
449 * The script is NOT automatically escaped!
451 * @param string $script
455 function tpl_inlineScript($script, $return = false) argument
459 $script = '<script nonce="' . $nonce . '">' . $script . '</script>';
461 $script = '<script>' . $script . '</script>';
464 if ($return) return $script;
465 echo $script;