email-from.php
1 year ago
email-to.php
1 year ago
email.php
1 year ago
form.php
1 year ago
recipient.php
1 year ago
recipient.php
69 lines
| 1 | <div class="email-option body recipient"> |
| 2 | |
| 3 | <div class="email-option-part"> |
| 4 | <div class="email-option-fieldset"> |
| 5 | <div class="controls"> |
| 6 | <?php if ( ! isset( $recipient['primary'] ) ) : ?> |
| 7 | <div class="delete-recipient dashicons dashicons-no"></div> |
| 8 | <?php endif; ?> |
| 9 | </div> |
| 10 | <div class="fields"> |
| 11 | <input class="admin_name" |
| 12 | type="text" |
| 13 | name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][admin_name]" |
| 14 | value="<?php echo esc_attr( $recipient['admin_name'] ); ?>" |
| 15 | placeholder="<?php esc_html_e( '(optional)', 'strong-testimonials' ); ?>"> |
| 16 | </div> |
| 17 | </div> |
| 18 | </div> |
| 19 | |
| 20 | <div class="email-option-part"> |
| 21 | <?php if ( isset( $recipient['primary'] ) ) : ?> |
| 22 | |
| 23 | <div class="email-option-fieldset primary-1"> |
| 24 | <div class="controls"> |
| 25 | <input type="hidden" name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][primary]" value="1"> |
| 26 | <input type="radio" id="wpmtst-options-admin-site-email-1" |
| 27 | name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][admin_site_email]" <?php checked( $recipient['admin_site_email'], 1 ); ?> |
| 28 | value="1"> |
| 29 | </div> |
| 30 | <div class="fields"> |
| 31 | <label for="wpmtst-options-admin-site-email-1"> |
| 32 | <?php esc_html_e( 'admin:', 'strong-testimonials' ); ?> |
| 33 | <?php echo esc_html( get_bloginfo( 'admin_email' ) ); ?> |
| 34 | </label> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <div class="email-option-fieldset primary-2"> |
| 39 | <div class="controls"> |
| 40 | <input class="focus-next-field" type="radio" |
| 41 | id="wpmtst-options-admin-site-email-0" |
| 42 | name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][admin_site_email]" <?php checked( $recipient['admin_site_email'], 0 ); ?> |
| 43 | value="0"> |
| 44 | </div> |
| 45 | <div class="fields"> |
| 46 | <input type="email" id="wpmtst-options-admin-email" |
| 47 | name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][admin_email]" |
| 48 | value="<?php echo esc_attr( $recipient['admin_email'] ); ?>" |
| 49 | placeholder="<?php esc_html_e( 'email address', 'strong-testimonials' ); ?>"> |
| 50 | </div> |
| 51 | </div> |
| 52 | |
| 53 | <?php else : ?> |
| 54 | |
| 55 | <div class="email-option-fieldset secondary"> |
| 56 | <div class="controls"></div> |
| 57 | <div class="fields"> |
| 58 | <input type="email" |
| 59 | name="wpmtst_form_options[recipients][<?php echo esc_attr( $key ); ?>][admin_email]" |
| 60 | value="<?php echo esc_attr( $recipient['admin_email'] ); ?>" |
| 61 | placeholder="<?php esc_html_e( 'email address', 'strong-testimonials' ); ?>"> |
| 62 | </div> |
| 63 | </div> |
| 64 | |
| 65 | <?php endif; ?> |
| 66 | </div> |
| 67 | |
| 68 | </div> |
| 69 |