From d99abd99c59d599eb5fb76cba74e60feb2276f19 Mon Sep 17 00:00:00 2001 From: mattyrob Date: Sat, 19 Oct 2019 10:23:59 +0100 Subject: [PATCH] Apply coding standards to MO Notice class --- ChangeLog.txt | 1 + classes/class-mo-admin-notice.php | 183 ++++++++++++++++++++++++++++++ classes/class-s2-core.php | 2 +- classes/mo-notice.php | 180 ----------------------------- 4 files changed, 185 insertions(+), 181 deletions(-) create mode 100644 classes/class-mo-admin-notice.php delete mode 100644 classes/mo-notice.php 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()) : ?> - - - - - -
- - - -
- - -