diff options
Diffstat (limited to 'plugins/akismet/views')
-rw-r--r-- | plugins/akismet/views/config.php | 13 | ||||
-rw-r--r-- | plugins/akismet/views/notice.php | 10 |
2 files changed, 20 insertions, 3 deletions
diff --git a/plugins/akismet/views/config.php b/plugins/akismet/views/config.php index 59dd18c5..53d9fa86 100644 --- a/plugins/akismet/views/config.php +++ b/plugins/akismet/views/config.php @@ -151,6 +151,17 @@ ?> </td> </tr> + <tr> + <th class="comment-form-privacy-notice" align="left" scope="row"><?php esc_html_e('Privacy', 'akismet'); ?></th> + <td></td> + <td align="left"> + <fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet privacy notice', 'akismet'); ?></span></legend> + <p><label for="akismet_comment_form_privacy_notice_display"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_display" value="display" <?php checked('display', get_option('akismet_comment_form_privacy_notice')); ?> /> <?php esc_html_e('Display a privacy notice under your comment forms.', 'akismet'); ?></label></p> + <p><label for="akismet_comment_form_privacy_notice_hide"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_hide" value="hide" <?php echo in_array( get_option('akismet_comment_form_privacy_notice'), array('display', 'hide') ) ? checked('hide', get_option('akismet_comment_form_privacy_notice'), false) : 'checked="checked"'; ?> /> <?php esc_html_e('Do not display privacy notice.', 'akismet'); ?></label></p> + </fieldset> + <span class="akismet-note"><?php esc_html_e( 'To help your site be compliant with GDPR and other laws requiring notification of tracking, Akismet can display a notice to your users on your contact form. This feature is disabled by default, however, if you or your audience is located in Europe, you need to turn it on.', 'akismet' );?></span> + </td> + </tr> </tbody> </table> <div class="akismet-card-actions"> @@ -228,4 +239,4 @@ <?php } ?> <?php endif;?> </div> -</div>
\ No newline at end of file +</div> diff --git a/plugins/akismet/views/notice.php b/plugins/akismet/views/notice.php index 4f65b840..9f482b25 100644 --- a/plugins/akismet/views/notice.php +++ b/plugins/akismet/views/notice.php @@ -15,7 +15,7 @@ <?php elseif ( $type == 'spam-check' ) :?> <div class="notice notice-warning"> <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p> - <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> + <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> <?php if ( $link_text ) { ?> <p><?php echo $link_text; ?></p> <?php } ?> @@ -132,4 +132,10 @@ </p> <?php endif; ?> </div> -<?php endif;?>
\ No newline at end of file +<?php elseif ( $type == 'privacy' ) :?> +<div class="notice notice-warning is-dismissible" id="akismet-privacy-notice-admin-notice"> + <p><strong><?php esc_html_e( 'Akismet & Privacy.', 'akismet' );?></strong></p> + <p><?php esc_html_e( 'To help your site be compliant with GDPR and other laws requiring notification of tracking, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, if you or your audience is located in Europe, you need to turn it on.', 'akismet' ); ?></p> + <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> +</div> +<?php endif;?> |