diff --git a/css/admin/message.css b/css/admin/message.css index 6bce232..e11ad75 100644 --- a/css/admin/message.css +++ b/css/admin/message.css @@ -3,10 +3,12 @@ position: relative; border-left-color: #2ea2cc !important; } + .envince-message a.button-primary, .envince-message a.button-secondary { text-decoration: none !important; } + .envince-message a.envince-message-close { position: absolute; top: 0; @@ -16,6 +18,7 @@ line-height: 1.23076923; text-decoration: none; } + .envince-message a.envince-message-close:before { position: absolute; top: 8px; @@ -23,3 +26,20 @@ -webkit-transition: all .1s ease-in-out; transition: all .1s ease-in-out; } + +/* Review Notice */ +.notice.updated.theme-review-notice { + padding-right: 40px; +} + +.theme-review-notice .links { + margin: 0.5em 0; +} + +.theme-review-notice .links a { + margin: 2px; +} + +.theme-review-notice .links .dashicons { + line-height: 30px; +} diff --git a/functions.php b/functions.php index dae6a35..845abb0 100644 --- a/functions.php +++ b/functions.php @@ -33,6 +33,7 @@ if ( is_admin() ) { require get_template_directory() . '/inc/admin/class-envince-admin.php'; require get_template_directory() . '/inc/admin/class-envince-tdi-notice.php'; + require get_template_directory() . '/inc/admin/class-envince-theme-review-notice.php'; } /* Do theme setup on the 'after_setup_theme' hook. */ diff --git a/inc/admin/class-envince-theme-review-notice.php b/inc/admin/class-envince-theme-review-notice.php new file mode 100644 index 0000000..b56ad37 --- /dev/null +++ b/inc/admin/class-envince-theme-review-notice.php @@ -0,0 +1,175 @@ + strtotime( '-15 day' ) ) || ( $ignored_notice_partially > strtotime( '-15 day' ) ) || ( $ignored_notice ) ) { + return; + } + ?> + +
+

+ ' . esc_html( $current_user->display_name ) . '' + ); + ?> +

+ + + + +
+ + ID, 'envince_ignore_theme_review_notice', true ); + $ignored_notice_partially = get_user_meta( $user->ID, 'nag_envince_ignore_theme_review_notice_partially', true ); + + // Delete permanent notice remove data. + if ( $ignored_notice ) { + delete_user_meta( $user->ID, 'envince_ignore_theme_review_notice' ); + } + + // Delete partial notice remove data. + if ( $ignored_notice_partially ) { + delete_user_meta( $user->ID, 'nag_envince_ignore_theme_review_notice_partially' ); + } + + } + } + +} + +new Envince_Theme_Review_Notice(); diff --git a/readme.txt b/readme.txt index ec32a06..afd98eb 100644 --- a/readme.txt +++ b/readme.txt @@ -41,6 +41,9 @@ Envince WordPress Theme, Copyright (c) 2015, ThemeGrill Envince is distributed under the terms of the GNU GPL == Changelog == += Version TBD = +* Tweak - Add review notice message. + = Version 1.2.5 - 2020-02-20 = * Tweak - Update `screen-reader-text` CSS.