init commit

This commit is contained in:
zino
2021-02-16 23:07:41 +01:00
parent ec3fc78e0f
commit 12b4ef5db4
5000 changed files with 2596132 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
add_filter( 'wp_enqueue_scripts', 'js_inject_jqueryui' );
function js_inject_jqueryui() {
if (!is_user_logged_in()) {
return;
}
if(page_id() === 2) {
?>
<script>
var script = document.createElement('script');
script.setAttribute('src', 'https://code.jquery.com/ui/1.12.1/jquery-ui.min.js');
script.setAttribute('integrity', 'sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=');
script.setAttribute('crossorigin', 'anonymous');
document.getElementsByTagName('head')[0].appendChild(script);
</script>
<?php
}
}