Changed source root directory

This commit is contained in:
2026-03-05 16:30:11 +01:00
parent dc85447ee1
commit 538f85d7a2
5868 changed files with 749734 additions and 99 deletions

View File

@@ -0,0 +1,46 @@
<?php
/**
* Template Name: Resource Item
*/
get_header();
if (have_posts()):
while (have_posts()):
the_post();
?>
<div class="content">
<?= the_content(); ?>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
const btn = document.querySelector("#submit");
btn.addEventListener("click", ( event ) => {
btn.classList.add("btn-loading");
},false);
document.addEventListener( 'wpcf7invalid', ( event ) => {
btn.classList.remove("btn-loading");
},false);
document.addEventListener( 'wpcf7mailfailed', ( event ) => {
btn.classList.remove("btn-loading");
},false);
document.addEventListener( 'wpcf7mailsent', ( event ) => {
if (typeof pdfUrl === "undefined") {
console.warn("please add pdfUrl");
return;
}
btn.classList.remove("btn-loading");
window.open(pdfUrl, "_blank");
}, false );
});
</script>
</div>
<?php
endwhile;
endif;
get_footer();