$lastCheck ) { add_action('admin_notices', 'layerslider_premium_support'); } } if( get_option('ls-show-canceled_activation_notice', 0) ) { add_action('admin_notices', 'layerslider_canceled_activation'); } } // Storage notice if(get_option('layerslider-slides') !== false) { global $pagenow; if($pagenow == 'plugins.php' || $pagenow == 'index.php' || strpos($_SERVER['REQUEST_URI'], 'layerslider')) { add_action('admin_notices', 'layerslider_compatibility_notice'); } } // License notification under the plugin row on the Plugins screen if(!get_option('layerslider-authorized-site', null)) { add_action('after_plugin_row_'.LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice', 10, 3 ); } } function layerslider_important_notice() { // Get data $storeData = get_option('ls-store-data', false); $lastNotice = get_option('ls-last-important-notice', 0); // Check if there's an important notice if( $storeData && ! empty($storeData['important_notice']) ) { // Get notice data $notice = $storeData['important_notice']; // Check notice validity if( ! empty($notice['date']) && ! empty($notice['title']) && ! empty($notice['message']) ) { // Check date if( $notice['date'] <= $lastNotice ) { return; } // Check min version (if any) if( ! empty($notice['min_version']) ) { if( version_compare(LS_PLUGIN_VERSION, $notice['min_version'], '<') ) { return; } } // Check max version (if any) if( ! empty($notice['max_version']) ) { if( version_compare(LS_PLUGIN_VERSION, $notice['max_version'], '>') ) { return; } } // Show the notice ?>
update->_update_banner ) ) { if( version_compare( $last_notification, $latest, '<' ) ) { ?> update ) ) { $update = $updates[ LS_PLUGIN_BASE ]; $currentVersion = $update->Version; $newVersion = $update->update->new_version; if( version_compare( $newVersion, $currentVersion, '>' ) ) { add_thickbox(); ?>