forked from LiveCarta/LiveCartaWP
LAW-8882
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@ require_once 'inc/walker-nav-menu.php';
|
|||||||
<div class="title">Product</div>
|
<div class="title">Product</div>
|
||||||
<a href="/features/" tabindex="0">Features</a>
|
<a href="/features/" tabindex="0">Features</a>
|
||||||
<a href="/digital-experience-platform/" tabindex="0">Product</a>
|
<a href="/digital-experience-platform/" tabindex="0">Product</a>
|
||||||
<a href="/resourсes" tabindex="0">Resourсes</a>
|
<a href="/resources/" tabindex="0">Resourсes</a>
|
||||||
<a href="/collection/" tabindex="0">Chapter Collections</a>
|
<a href="/collection/" tabindex="0">Chapter Collections</a>
|
||||||
<a href="/custom-copy/" tabindex="0">Customized book copies</a>
|
<a href="/custom-copy/" tabindex="0">Customized book copies</a>
|
||||||
<a href="/individual-chapters/" tabindex="0">Individual Chapters</a>
|
<a href="/individual-chapters/" tabindex="0">Individual Chapters</a>
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|||||||
login: appUrl + '/user/login',
|
login: appUrl + '/user/login',
|
||||||
signUp: appUrl + '/user/registration',
|
signUp: appUrl + '/user/registration',
|
||||||
llm: appUrl + '/outline-builder',
|
llm: appUrl + '/outline-builder',
|
||||||
resources: appUrl + '/resources',
|
resources: wpUrl + '/resources',
|
||||||
|
|
||||||
verify: appUrl + '/user/registration/verify',
|
verify: appUrl + '/user/registration/verify',
|
||||||
|
|
||||||
|
|||||||
36
htdocs/wp-content/themes/lawcarta/page_resource_item.php
Normal file
36
htdocs/wp-content/themes/lawcarta/page_resource_item.php
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?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) => {
|
||||||
|
document.addEventListener( 'wpcf7submit', ( event ) => {
|
||||||
|
console.log("submit");
|
||||||
|
},false);
|
||||||
|
|
||||||
|
document.addEventListener( 'wpcf7mailsent', ( event ) => {
|
||||||
|
if (!pdfUrl) {
|
||||||
|
console.warn("please add pdfUrl");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.open(pdfUrl, "_self");
|
||||||
|
}, false );
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
endwhile;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
get_footer();
|
||||||
Reference in New Issue
Block a user