PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / includes / admin / views / html-admin-matching-properties-email.php

html-admin-matching-properties-email.php in Property Hive 2.3.1, at includes/admin/views/html-admin-matching-properties-email.php

86 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Read-only email composition count; the matching controller verifies propertyhive-matching-properties before including this view.
6 $propertyhive_email_property_ids = isset( $_POST['email_property_id'] ) && is_array( $_POST['email_property_id'] ) ? array_filter( array_map( 'sanitize_text_field', wp_unslash( $_POST['email_property_id'] ) ), 'ctype_digit' ) : array();
7 ?>
8
9 <h1>Emailing <?php echo count( $propertyhive_email_property_ids ); ?> Suitable Properties To <?php echo esc_html(get_the_title($contact_id)); ?></h1>
10
11 <table class="form-table">
12
13 <tr valign="top">
14 <th scope="row" class="titledesc"><?php echo esc_html(__( 'To', 'propertyhive' )); ?></th>
15 <td class="forminp">
16 <input type="text" name="to_email_address" value="<?php echo esc_attr( get_post_meta( $contact_id, '_email_address', TRUE ) ); ?>" style="width:100%; margin-bottom:5px;">
17 <a href="" class="show-cc">Show Cc</a> &nbsp;|&nbsp; <a href="" class="show-bcc">Show Bcc</a>
18 </td>
19 </tr>
20
21 <tr valign="top" style="display:none" id="cc_email_address_row">
22 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Cc', 'propertyhive' )); ?></th>
23 <td class="forminp">
24 <input type="text" name="cc_email_address" value="" style="width:100%;">
25 </td>
26 </tr>
27
28 <tr valign="top" style="display:none" id="bcc_email_address_row">
29 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Bcc', 'propertyhive' )); ?></th>
30 <td class="forminp">
31 <input type="text" name="bcc_email_address" value="" style="width:100%;">
32 </td>
33 </tr>
34
35 <tr valign="top">
36 <th scope="row" class="titledesc"><?php echo esc_html(__( 'From Name', 'propertyhive' )); ?></th>
37 <td class="forminp">
38 <input type="text" name="from_name" value="<?php echo esc_attr(get_bloginfo('name')); ?>" style="width:100%;">
39 </td>
40 </tr>
41
42 <tr valign="top">
43 <th scope="row" class="titledesc"><?php echo esc_html(__( 'From Email Address', 'propertyhive' )); ?></th>
44 <td class="forminp">
45 <input type="text" name="from_email_address" value="<?php echo esc_attr(trim($from_email_address)); ?>" style="width:100%;">
46 </td>
47 </tr>
48
49 <tr valign="top">
50 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Subject', 'propertyhive' )); ?></th>
51 <td class="forminp">
52 <input type="text" name="subject" value="<?php echo esc_attr($subject); ?>" style="width:100%;">
53 </td>
54 </tr>
55
56 <tr valign="top">
57 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Email Body', 'propertyhive' )); ?></th>
58 <td class="forminp">
59 <textarea name="body" style="width:100%; height:300px;"><?php echo esc_textarea( $body ); ?></textarea>
60 </td>
61 </tr>
62
63 </table>
64
65 <script>
66
67 jQuery(document).ready(function()
68 {
69 jQuery('a.show-cc').click(function(e)
70 {
71 e.preventDefault();
72
73 jQuery('#cc_email_address_row').fadeIn('fast');
74 jQuery('#cc_email_address_row input').focus();
75 });
76
77 jQuery('a.show-bcc').click(function(e)
78 {
79 e.preventDefault();
80
81 jQuery('#bcc_email_address_row').fadeIn('fast');
82 jQuery('#bcc_email_address_row input').focus();
83 });
84 });
85
86 </script>