PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / trunk
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar vtrunk
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
← All changes | notificationx.php +13 -11 3.2.8trunk View file →
@@ -2,9 +2,9 @@
2 2 /**
3 3 * Plugin Name: NotificationX
4 4 * Plugin URI: https://notificationx.com
5 5 * Description: Social Proof & Recent Sales Popup, Comment Notification, Subscription Notification, Notification Bar and many more.
6 - * Version: 3.2.8
6 + * Version: 3.3.1
7 7 * Author: WPDeveloper
8 8 * Author URI: https://wpdeveloper.com
9 9 * License: GPL-3.0+
10 10 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -25,9 +25,9 @@
25 25 /**
26 26 * Defines CONSTANTS for Whole plugins.
27 27 */
28 28 define( 'NOTIFICATIONX_FILE', __FILE__ );
29 -define( 'NOTIFICATIONX_VERSION', '3.2.8' );
29 +define( 'NOTIFICATIONX_VERSION', '3.3.1' );
30 30 define( 'NOTIFICATIONX_URL', plugins_url( '/', __FILE__ ) );
31 31 define( 'NOTIFICATIONX_PATH', plugin_dir_path( __FILE__ ) );
32 32 define( 'NOTIFICATIONX_BASENAME', plugin_basename( __FILE__ ) );
33 33
@@ -47,10 +47,10 @@
47 47 * The Core Engine of the Plugin
48 48 */
49 49 if ( ! class_exists( '\NotificationX\NotificationX' ) ) {
50 50 require_once NOTIFICATIONX_PATH . 'vendor/autoload.php';
51 - if ( nx_is_plugin_active( 'notificationx-pro/notificationx-pro.php' ) ) {
52 - add_action( 'admin_notices', 'nx_free_compatibility_notice' );
51 + if ( notificationx_is_plugin_active( 'notificationx-pro/notificationx-pro.php' ) ) {
52 + add_action( 'admin_notices', 'notificationx_free_compatibility_notice' );
53 53 if ( file_exists( dirname( NOTIFICATIONX_PATH ) . '/notificationx-pro/notificationx-pro.php' ) ) {
54 54 require_once dirname( NOTIFICATIONX_PATH ) . '/notificationx-pro/notificationx-pro.php';
55 55 } else {
56 56 add_action('plugins_loaded', function() {
@@ -59,19 +59,19 @@
59 59 });
60 60 }
61 61 }
62 62
63 - function activate_notificationx() {
63 + function notificationx_activate() {
64 64 \NotificationX\NotificationX::get_instance()->activator();
65 65 }
66 66 /**
67 67 * Plugin Activator
68 68 */
69 - register_activation_hook( NOTIFICATIONX_FILE, 'activate_notificationx' );
69 + register_activation_hook( NOTIFICATIONX_FILE, 'notificationx_activate' );
70 70 \NotificationX\NotificationX::get_instance();
71 71 }
72 72
73 -function nx_free_compatibility_notice() {
73 +function notificationx_free_compatibility_notice() {
74 74 if ( ! function_exists( 'get_plugins' ) ) {
75 75 require_once ABSPATH . 'wp-admin/includes/plugin.php';
76 76 }
77 77 $plugins = get_plugins();
@@ -80,19 +80,21 @@
80 80 }
81 81 ?>
82 82 <div class="notice notice-warning is-dismissible">
83 83 <p>
84 - <?php echo sprintf( __( "<strong>Recommended: </strong> Seems like you haven't updated the NotificationX Pro version. Please make sure to update NotificationX Pro plugin from <a href='%s'><strong>wp-admin -> Plugins</strong></a>.", 'notificationx' ), esc_url( admin_url( 'plugins.php' ) ) ); ?></p>
84 + <?php
85 + /* translators: %s: URL of the wp-admin plugins page */
86 + echo wp_kses_post( sprintf( __( "<strong>Recommended: </strong> Seems like you haven't updated the NotificationX Pro version. Please make sure to update NotificationX Pro plugin from <a href='%s'><strong>wp-admin -> Plugins</strong></a>.", 'notificationx' ), esc_url( admin_url( 'plugins.php' ) ) ) ); ?></p>
85 87 </div>
86 88 <?php
87 89 }
88 90
89 91
90 -function nx_is_plugin_active( $plugin ) {
91 - return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || nx_is_plugin_active_for_network( $plugin );
92 +function notificationx_is_plugin_active( $plugin ) {
93 + return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || notificationx_is_plugin_active_for_network( $plugin );
92 94 }
93 95
94 -function nx_is_plugin_active_for_network( $plugin ) {
96 +function notificationx_is_plugin_active_for_network( $plugin ) {
95 97 if ( ! is_multisite() ) {
96 98 return false;
97 99 }
98 100