map is showing and files are enqueued and included the right way

This commit is contained in:
lenovo
2022-10-30 18:58:08 +01:00
parent 92cb24cb89
commit c35adaa732
9 changed files with 307 additions and 118 deletions

View File

@@ -0,0 +1,11 @@
<?php
// https://stackify.com/how-to-log-to-console-in-php/
function mp_console_log($output, $with_script_tags = true) {
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) .
');';
if ($with_script_tags) {
$js_code = '<script>' . $js_code . '</script>';
}
echo $js_code;
}
?>