1 <?php if ( $type == 'plugin' ) :?> |
1 <?php if ( $type == 'plugin' ) :?> |
2 <div class="updated" style="padding: 0; margin: 0; border: none; background: none;"> |
2 <div class="updated" style="padding: 0; margin: 0; border: none; background: none;"> |
3 <style type="text/css"> |
|
4 .akismet_activate{min-width:825px;border:1px solid #4F800D;padding:5px;margin:15px 0;background:#83AF24;background-image:-webkit-gradient(linear,0% 0,80% 100%,from(#83AF24),to(#4F800D));background-image:-moz-linear-gradient(80% 100% 120deg,#4F800D,#83AF24);-moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;position:relative;overflow:hidden}.akismet_activate .aa_a{position:absolute;top:-5px;right:10px;font-size:140px;color:#769F33;font-family:Georgia, "Times New Roman", Times, serif;z-index:1}.akismet_activate .aa_button{font-weight:bold;border:1px solid #029DD6;border-top:1px solid #06B9FD;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#FFF;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button:hover{text-decoration:none !important;border:1px solid #029DD6;border-bottom:1px solid #00A8EF;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#F0F8FB;background:#0079B1;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#0079B1),to(#0092BF));background-image:-moz-linear-gradient(0% 100% 90deg,#0092BF,#0079B1);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button_border{border:1px solid #006699;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6)}.akismet_activate .aa_button_container{cursor:pointer;display:inline-block;background:#DEF1B8;padding:5px;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;width:266px}.akismet_activate .aa_description{position:absolute;top:22px;left:285px;margin-left:25px;color:#E5F2B1;font-size:15px;z-index:1000}.akismet_activate .aa_description strong{color:#FFF;font-weight:normal} |
|
5 </style> |
|
6 <form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST"> |
3 <form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST"> |
7 <div class="akismet_activate"> |
4 <div class="akismet_activate"> |
8 <div class="aa_a">A</div> |
5 <div class="aa_a">A</div> |
9 <div class="aa_button_container" onclick="document.akismet_activate.submit();"> |
6 <div class="aa_button_container"> |
10 <div class="aa_button_border"> |
7 <div class="aa_button_border"> |
11 <div class="aa_button"><?php esc_html_e('Activate your Akismet account', 'akismet');?></div> |
8 <input type="submit" class="aa_button" value="<?php esc_attr_e( 'Set up your Akismet account', 'akismet' ); ?>" /> |
12 </div> |
9 </div> |
13 </div> |
10 </div> |
14 <div class="aa_description"><?php _e('<strong>Almost done</strong> - activate your account and say goodbye to comment spam', 'akismet');?></div> |
11 <div class="aa_description"><?php _e('<strong>Almost done</strong> - configure Akismet and say goodbye to spam', 'akismet');?></div> |
15 </div> |
12 </div> |
16 </form> |
13 </form> |
17 </div> |
14 </div> |
18 <?php elseif ( $type == 'spam-check' ) :?> |
15 <?php elseif ( $type == 'spam-check' ) :?> |
19 <div id="akismet-warning" class="updated fade"> |
16 <div class="notice notice-warning"> |
20 <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p> |
17 <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p> |
21 <p><?php printf( __( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ) ); ?></p> |
18 <p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p> |
22 <?php if ( $link_text ) { ?> |
19 <?php if ( $link_text ) { ?> |
23 <p><?php echo $link_text; ?></p> |
20 <p><?php echo $link_text; ?></p> |
24 <?php } ?> |
21 <?php } ?> |
25 </div> |
22 </div> |
26 <?php elseif ( $type == 'version' ) :?> |
|
27 <div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div> |
|
28 <?php elseif ( $type == 'alert' ) :?> |
23 <?php elseif ( $type == 'alert' ) :?> |
29 <div class='error'> |
24 <div class='error'> |
30 <p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p> |
25 <p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p> |
31 <p><?php echo esc_html( $msg ); ?></p> |
26 <p><?php echo esc_html( $msg ); ?></p> |
32 <p><?php |
27 <p><?php |
35 printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' ); |
30 printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' ); |
36 |
31 |
37 ?> |
32 ?> |
38 </p> |
33 </p> |
39 </div> |
34 </div> |
|
35 <?php elseif ( $type == 'notice' ) :?> |
|
36 <div class="akismet-alert akismet-critical"> |
|
37 <h3 class="akismet-key-status failed"><?php echo $notice_header; ?></h3> |
|
38 <p class="akismet-description"> |
|
39 <?php echo $notice_text; ?> |
|
40 </p> |
|
41 </div> |
40 <?php elseif ( $type == 'missing-functions' ) :?> |
42 <?php elseif ( $type == 'missing-functions' ) :?> |
41 <div class="wrap alert critical"> |
43 <div class="akismet-alert akismet-critical"> |
42 <h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3> |
44 <h3 class="akismet-key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3> |
43 <p class="description"><?php printf( __('Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> functions. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet’s system requirements</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
45 <p class="akismet-description"><?php printf( __('Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet’s system requirements</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
44 </div> |
46 </div> |
45 <?php elseif ( $type == 'servers-be-down' ) :?> |
47 <?php elseif ( $type == 'servers-be-down' ) :?> |
46 <div class="wrap alert critical"> |
48 <div class="akismet-alert akismet-critical"> |
47 <h3 class="key-status failed"><?php esc_html_e("We can’t connect to your site.", 'akismet'); ?></h3> |
49 <h3 class="akismet-key-status failed"><?php esc_html_e("Your site can’t connect to the Akismet servers.", 'akismet'); ?></h3> |
48 <p class="description"><?php printf( __('Your firewall may be blocking us. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
50 <p class="akismet-description"><?php printf( __('Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
49 </div> |
51 </div> |
50 <?php elseif ( $type == 'active-dunning' ) :?> |
52 <?php elseif ( $type == 'active-dunning' ) :?> |
51 <div class="wrap alert critical"> |
53 <div class="akismet-alert akismet-critical"> |
52 <h3 class="key-status"><?php esc_html_e("Please update your payment details.", 'akismet'); ?></h3> |
54 <h3 class="akismet-key-status"><?php esc_html_e("Please update your payment information.", 'akismet'); ?></h3> |
53 <p class="description"><?php printf( __('We cannot process your transaction. Please contact your bank for assistance, and <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p> |
55 <p class="akismet-description"><?php printf( __('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p> |
54 </div> |
56 </div> |
55 <?php elseif ( $type == 'cancelled' ) :?> |
57 <?php elseif ( $type == 'cancelled' ) :?> |
56 <div class="wrap alert critical"> |
58 <div class="akismet-alert akismet-critical"> |
57 <h3 class="key-status"><?php esc_html_e("Your subscription is cancelled.", 'akismet'); ?></h3> |
59 <h3 class="akismet-key-status"><?php esc_html_e("Your Akismet plan has been cancelled.", 'akismet'); ?></h3> |
58 <p class="description"><?php printf( __('Please visit the <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p> |
60 <p class="akismet-description"><?php printf( __('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p> |
59 </div> |
61 </div> |
60 <?php elseif ( $type == 'suspended' ) :?> |
62 <?php elseif ( $type == 'suspended' ) :?> |
61 <div class="wrap alert critical"> |
63 <div class="akismet-alert akismet-critical"> |
62 <h3 class="key-status failed"><?php esc_html_e("Your subscription is suspended.", 'akismet'); ?></h3> |
64 <h3 class="akismet-key-status failed"><?php esc_html_e("Your Akismet subscription is suspended.", 'akismet'); ?></h3> |
63 <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p> |
65 <p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p> |
64 </div> |
66 </div> |
65 <?php elseif ( $type == 'active-notice' && $time_saved ) :?> |
67 <?php elseif ( $type == 'active-notice' && $time_saved ) :?> |
66 <div class="wrap alert active"> |
68 <div class="akismet-alert akismet-active"> |
67 <h3 class="key-status"><?php echo esc_html( $time_saved ); ?></h3> |
69 <h3 class="akismet-key-status"><?php echo esc_html( $time_saved ); ?></h3> |
68 <p class="description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p> |
70 <p class="akismet-description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p> |
69 </div> |
71 </div> |
70 <?php elseif ( $type == 'missing' ) :?> |
72 <?php elseif ( $type == 'missing' ) :?> |
71 <div class="wrap alert critical"> |
73 <div class="akismet-alert akismet-critical"> |
72 <h3 class="key-status failed"><?php esc_html_e( 'There is a problem with your key.', 'akismet'); ?></h3> |
74 <h3 class="akismet-key-status failed"><?php esc_html_e( 'There is a problem with your API key.', 'akismet'); ?></h3> |
73 <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p> |
75 <p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p> |
74 </div> |
76 </div> |
75 <?php elseif ( $type == 'no-sub' ) :?> |
77 <?php elseif ( $type == 'no-sub' ) :?> |
76 <div class="wrap alert critical"> |
78 <div class="akismet-alert akismet-critical"> |
77 <h3 class="key-status failed"><?php esc_html_e( 'Your subscription is missing.', 'akismet'); ?></h3> |
79 <h3 class="akismet-key-status failed"><?php esc_html_e( 'You don’t have an Akismet plan.', 'akismet'); ?></h3> |
78 <p class="description"> |
80 <p class="akismet-description"> |
79 <?php printf( __( 'Since 2012, Akismet began using subscriptions for all accounts (even free ones). It looks like a subscription has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?> |
81 <?php printf( __( 'In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?> |
80 <br /><br /> |
82 <br /><br /> |
81 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?> |
83 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?> |
82 </p> |
84 </p> |
83 </div> |
85 </div> |
84 <?php elseif ( $type == 'new-key-valid' ) :?> |
86 <?php elseif ( $type == 'new-key-valid' ) : |
85 <div class="wrap alert active"> |
87 global $wpdb; |
86 <h3 class="key-status"><?php esc_html_e('Your Akismet account has been successfully set up and activated. Happy blogging!', 'akismet'); ?></h3> |
88 |
|
89 $check_pending_link = false; |
|
90 |
|
91 $at_least_one_comment_in_moderation = !! $wpdb->get_var( "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT 1" ); |
|
92 |
|
93 if ( $at_least_one_comment_in_moderation) { |
|
94 $check_pending_link = 'edit-comments.php?akismet_recheck=' . wp_create_nonce( 'akismet_recheck' ); |
|
95 } |
|
96 |
|
97 ?> |
|
98 <div class="akismet-alert akismet-active"> |
|
99 <h3 class="akismet-key-status"><?php esc_html_e( 'Akismet is now protecting your site from spam. Happy blogging!', 'akismet' ); ?></h3> |
|
100 <?php if ( $check_pending_link ) { ?> |
|
101 <p class="akismet-description"><?php printf( __( 'Would you like to <a href="%s">check pending comments</a>?', 'akismet' ), esc_url( $check_pending_link ) ); ?></p> |
|
102 <?php } ?> |
87 </div> |
103 </div> |
88 <?php elseif ( $type == 'new-key-invalid' ) :?> |
104 <?php elseif ( $type == 'new-key-invalid' ) :?> |
89 <div class="wrap alert critical"> |
105 <div class="akismet-alert akismet-critical"> |
90 <h3 class="key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3> |
106 <h3 class="akismet-key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3> |
|
107 </div> |
|
108 <?php elseif ( $type == 'existing-key-invalid' ) :?> |
|
109 <div class="akismet-alert akismet-critical"> |
|
110 <h3 class="akismet-key-status"><?php esc_html_e( 'Your API key is no longer valid. Please enter a new key or contact support@akismet.com.' , 'akismet'); ?></h3> |
91 </div> |
111 </div> |
92 <?php elseif ( $type == 'new-key-failed' ) :?> |
112 <?php elseif ( $type == 'new-key-failed' ) :?> |
93 <div class="wrap alert critical"> |
113 <div class="akismet-alert akismet-critical"> |
94 <h3 class="key-status"><?php esc_html_e( 'The key you entered could not be verified.' , 'akismet'); ?></h3> |
114 <h3 class="akismet-key-status"><?php esc_html_e( 'The API key you entered could not be verified.' , 'akismet'); ?></h3> |
95 <p class="description"><?php printf( __('The connection to akismet.com cannot be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
115 <p class="akismet-description"><?php printf( __('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p> |
96 </div> |
116 </div> |
97 <?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?> |
117 <?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?> |
98 <div class="wrap alert critical"> |
118 <div class="akismet-alert akismet-critical"> |
99 <?php if ( $level == 'yellow' ): ?> |
119 <?php if ( $level == 'yellow' ): ?> |
100 <h3 class="key-status failed"><?php esc_html_e( 'You’re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3> |
120 <h3 class="akismet-key-status failed"><?php esc_html_e( 'You’re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3> |
101 <p class="description"> |
121 <p class="akismet-description"> |
102 <?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'http://docs.akismet.com/billing/add-more-sites/' ); ?> |
122 <?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'https://docs.akismet.com/billing/add-more-sites/' ); ?> |
103 <br /><br /> |
123 <br /><br /> |
104 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?> |
124 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?> |
105 </p> |
125 </p> |
106 <?php elseif ( $level == 'red' ): ?> |
126 <?php elseif ( $level == 'red' ): ?> |
107 <h3 class="key-status failed"><?php esc_html_e( 'You’re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3> |
127 <h3 class="akismet-key-status failed"><?php esc_html_e( 'You’re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3> |
108 <p class="description"> |
128 <p class="akismet-description"> |
109 <?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?></p> |
129 <?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?> |
110 <br /><br /> |
130 <br /><br /> |
111 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?></p> |
131 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?> |
112 </p> |
132 </p> |
113 <?php endif; ?> |
133 <?php endif; ?> |
114 </div> |
134 </div> |
|
135 <?php elseif ( $type == 'privacy' ) :?> |
|
136 <div class="notice notice-warning is-dismissible" id="akismet-privacy-notice-admin-notice"> |
|
137 <p><strong><?php esc_html_e( 'Akismet & Privacy.', 'akismet' );?></strong></p> |
|
138 <p><?php esc_html_e( 'To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on below.', 'akismet' ); ?></p> |
|
139 <p><?php printf( __(' Please <a href="%s">enable</a> or <a href="%s">disable</a> this feature. <a href="%s" id="akismet-privacy-notice-control-notice-info-link" target="_blank">More information</a>.', 'akismet' ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_display', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=display' ) ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_hide', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide' ) ), 'https://akismet.com/privacy/' ); ?></p> |
|
140 </div> |
115 <?php endif;?> |
141 <?php endif;?> |