Skip to content

Commit

Permalink
add question form to sd_cpt_event tmp (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 15, 2020
1 parent 83b0253 commit 025fdf0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions seminardesk-custom/templates/sd_cpt_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@
wp_reset_query();
?>

<div id="question">
<h3><?php echo __('Frage zur Veranstaltung stellen', 'hueman-7l-child'); ?> </h3>
<?php echo do_shortcode('[contact-form-7 id="2325" title="Frage zu Veranstaltung"]'); ?>
</div>
<script type="text/javascript">
document.getElementsByClassName("wpcf7-form")[0].elements['your-subject'].value = 'Frage zu Veranstaltung: <?php echo the_title(); ?> (<?php echo $event_fromdate.' - '.$event_todate; ?>)';
</script>

</div><!-- #site-content -->

<!-- End of SeminarDesk original template -->
Expand Down

0 comments on commit 025fdf0

Please sign in to comment.