diff --git a/ChangeLog.txt b/ChangeLog.txt index 843399b..e7ab044 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,7 @@ * Fix some Coding Standards Issues * Correct maximum execution time limit to 5 minutes * Fix some new Coding Standards errors and warnings +* Applied coding standards to MO Notice class * Clean unused global variables * Implemented compatibility with Fusion Builder * Fix error caused by menu registration in WordPress 5.3 diff --git a/classes/class-mo-admin-notice.php b/classes/class-mo-admin-notice.php new file mode 100644 index 0000000..dc787a8 --- /dev/null +++ b/classes/class-mo-admin-notice.php @@ -0,0 +1,183 @@ +is_plugin_installed() && $this->is_plugin_active() ) { + return; + } + + $dismiss_url = esc_url_raw( + add_query_arg( + array( + 'mo-adaction' => 'mo_dismiss_adnotice', + ), + admin_url() + ) + ); + $this->notice_css(); + $install_url = wp_nonce_url( + admin_url( 'update.php?action=install-plugin&plugin=mailoptin' ), + 'install-plugin_mailoptin' + ); + + $activate_url = wp_nonce_url( admin_url( 'plugins.php?action=activate&plugin=mailoptin%2Fmailoptin.php' ), 'activate-plugin_mailoptin/mailoptin.php' ); + ?> +
+
+

+ ', + '' + ); + ?> +

+

Recommended by Subscribe2 plugin

+
+
+ is_plugin_installed() ) : ?> + + + + + is_plugin_installed() && ! $this->is_plugin_active() ) : ?> + + + + + +
+ + + +
+ + + is_plugin_installed() && $this->is_plugin_active()) { - return; - } - - $dismiss_url = esc_url_raw( - add_query_arg( - array( - 'mo-adaction' => 'mo_dismiss_adnotice' - ), - admin_url() - ) - ); - $this->notice_css(); - $install_url = wp_nonce_url( - admin_url('update.php?action=install-plugin&plugin=mailoptin'), - 'install-plugin_mailoptin' - ); - - $activate_url = wp_nonce_url(admin_url('plugins.php?action=activate&plugin=mailoptin%2Fmailoptin.php'), 'activate-plugin_mailoptin/mailoptin.php'); - ?> -
-
-

- ', ''); - ?> -

-

Recommended by Subscribe2 plugin

-
-
- is_plugin_installed()) : ?> - - - - - is_plugin_installed() && ! $this->is_plugin_active()) : ?> - - - - - -
- - - -
- - -