|
|
|
@ -11,6 +11,7 @@ |
|
|
|
$pb_network_contact_form_title = get_option( 'pb_network_contact_form_title' ); |
|
|
|
$pb_network_contact_form_title = get_option( 'pb_network_contact_form_title' ); |
|
|
|
$contact_form_title = ( ! empty( $pb_network_contact_form_title ) ) ? $pb_network_contact_form_title : __( 'Contact Us', 'pressbooks-aldine' ); |
|
|
|
$contact_form_title = ( ! empty( $pb_network_contact_form_title ) ) ? $pb_network_contact_form_title : __( 'Contact Us', 'pressbooks-aldine' ); |
|
|
|
$contact_form_response = \Aldine\Helpers\handle_contact_form_submission(); |
|
|
|
$contact_form_response = \Aldine\Helpers\handle_contact_form_submission(); |
|
|
|
|
|
|
|
$honeypot = 'firstname' . rand(); |
|
|
|
|
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
@ -23,8 +24,8 @@ $contact_form_response = \Aldine\Helpers\handle_contact_form_submission(); |
|
|
|
<?php wp_nonce_field( 'pb_root_contact_form', 'pb_root_contact_form_nonce' ); ?> |
|
|
|
<?php wp_nonce_field( 'pb_root_contact_form', 'pb_root_contact_form_nonce' ); ?> |
|
|
|
<input type="hidden" name="submitted" value="1"> |
|
|
|
<input type="hidden" name="submitted" value="1"> |
|
|
|
<p class="form__row" style="display:none;"> |
|
|
|
<p class="form__row" style="display:none;"> |
|
|
|
<input type="text" name="firstname" id="firstname"/> |
|
|
|
<input type="text" name="<?php echo $honeypot; ?>" id="<?php echo $honeypot; ?>"/>
|
|
|
|
<label for="firstname"> |
|
|
|
<label for="<?php echo $honeypot; ?>">
|
|
|
|
<?php _e( 'Keep this field blank (required)', 'pressbooks-aldine' ); ?> |
|
|
|
<?php _e( 'Keep this field blank (required)', 'pressbooks-aldine' ); ?> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|