PluginProbe ʕ •ᴥ•ʔ
Check & Log Email – Easy Email Testing & Mail logging / trunk
Check & Log Email – Easy Email Testing & Mail logging vtrunk
1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.13.2 2.0.14 2.0.2 2.0.3 2.0.4 2.0.5 2.0.5.1 2.0.6 2.0.7 2.0.8 2.0.9 trunk 0.5.7 0.6.0 0.6.1 0.6.2 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.12.1 1.0.13 1.0.13.1 1.0.2 1.0.3
check-email / include / deactivate-feedback.php
check-email / include Last commit date
Core 1 month ago Util 1 month ago Check_Email_Encode_Tab.php 1 month ago Check_Email_Notify_Tab.php 1 month ago Check_Email_SMTP_Tab.php 1 month ago class-check-email-header-parser.php 1 month ago class-check-email-log-autoloader.php 1 month ago class-check-email-newsletter.php 1 month ago deactivate-feedback.php 1 month ago helper-function.php 1 month ago install.php 1 month ago
deactivate-feedback.php
53 lines
1 <?php
2 /**
3 * Deactivate Feedback Template
4 * @since 2.0.27
5 */
6 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
7 $current_user = wp_get_current_user();
8 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
9 $check_mail_email = '';
10 if( $current_user instanceof WP_User ) {
11 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
12 $check_mail_email = trim( $current_user->user_email );
13 }
14
15 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
16 $reasons = array(
17 1 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="temporary"/>' . esc_html__('It is only temporary', 'check-email') . '</label></li>',
18 2 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="stopped showing Using"/>' . esc_html__('I stopped using check & log mail on my site', 'check-email') . '</label></li>',
19 3 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="missing feature"/>' . esc_html__('I miss a feature', 'check-email') . '</label></li>
20 <li><input type="text" name="ck_mail_disable_text[]" value="" placeholder="'.esc_attr__('Please describe the feature', 'check-email').'"/></li>',
21 4 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="technical issue"/>' . esc_html__('Technical Issue', 'check-email') . '</label></li>
22 <li><textarea name="ck_mail_disable_text[]" placeholder="' . esc_attr__('Can we help? Please describe your problem', 'check-email') . '"></textarea></li>',
23 5 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="'.esc_attr('other plugin').'"/>' . esc_html__('I switched to another plugin', 'check-email') . '</label></li>
24 <li><input type="text" name="ck_mail_disable_text[]" value="" placeholder="'.esc_attr__('Name of the plugin', 'check-email').'"/></li>',
25 6 => '<li><label><input type="radio" name="ck_mail_disable_reason" required value="other"/>' . __('Other reason', 'check-email') . '</label></li>
26 <li><textarea name="ck_mail_disable_text[]" placeholder="' . esc_attr__('Please specify, if possible', 'check-email') . '"></textarea></li>',
27 );
28 shuffle($reasons);
29 ?>
30
31
32 <div id="ck-mail-reloaded-feedback-overlay" style="display: none;">
33 <div id="ck-mail-reloaded-feedback-content">
34 <form action="" method="post">
35 <h3><strong><?php esc_html_e('If you have a moment, please let us know why you are deactivating:', 'check-email'); ?></strong></h3>
36 <ul>
37 <?php
38 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
39 foreach ($reasons as $reason_escaped){
40 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- all html inside this variable already escaped above in $reasons variable
41 echo $reason_escaped;
42 }
43 ?>
44 </ul>
45 <?php if( null !== $check_mail_email && !empty( $check_mail_email ) ) : ?>
46 <input type="hidden" name="ck_mail_disable_from" value="<?php echo esc_attr($check_mail_email); ?>" />
47 <?php endif; ?>
48 <input id="ck-mail-reloaded-feedback-submit" class="button button-primary" type="submit" name="ck_mail_disable_submit" value="<?php esc_html_e('Submit & Deactivate', 'check-email'); ?>"/>
49 <a class="button ck-mail-feedback-only-deactivate"><?php esc_html_e('Only Deactivate', 'check-email'); ?></a>
50 <a class="ck-mail-feedback-not-deactivate" href="#"><?php esc_html_e('Don\'t deactivate', 'check-email'); ?></a>
51 </form>
52 </div>
53 </div>