ID, '_imagify_ignore_notices', true ); $cap = ( imagify_is_active_for_network() ) ? 'manage_network_options' : 'manage_options'; if ( ( isset( $current_screen ) && ( 'settings_page_imagify' === $current_screen->base || 'settings_page_imagify-network' === $current_screen->base ) ) || in_array( 'welcome-steps', (array) $ignored_notices ) || get_imagify_option( 'api_key', false ) || ! current_user_can( apply_filters( 'imagify_capacity', $cap ) ) ) { return; } ?>

', '' ); ?>

ID, '_imagify_ignore_notices', true ); $api_key = get_imagify_option( 'api_key', false ); $cap = ( imagify_is_active_for_network() ) ? 'manage_network_options' : 'manage_options'; if ( ( isset( $current_screen ) && 'media_page_imagify-bulk-optimization' !== $current_screen->base ) || in_array( 'wrong-api-key', (array) $ignored_notices ) || empty( $api_key ) || imagify_valid_key() || ! current_user_can( apply_filters( 'imagify_capacity', $cap ) ) ) { return; } ?>

', '', '' ); ?>

'wp-smushit/wp-smush.php', // WP Smush 'kraken' => 'kraken-image-optimizer/kraken.php', // Kraken.io 'tinypng' => 'tiny-compress-images/tiny-compress-images.php', // TinyPNG 'shortpixel' => 'shortpixel-image-optimiser/wp-shortpixel.php', // Shortpixel 'ewww' => 'ewww-image-optimizer/ewww-image-optimizer.php', // EWWW Image Optimizer 'ewww-cloud' => 'ewww-image-optimizer-cloud/ewww-image-optimizer-cloud.php', // EWWW Image Optimizer Cloud 'imagerecycle' => 'imagerecycle-pdf-image-compression/wp-image-recycle.php', // ImageRecycle ); /** * Filter the recommended plugins to deactivate to prevent conflicts * * @since 1.0 * * @param string $plugins List of recommended plugins to deactivate */ $plugins = apply_filters( 'imagify_plugins_to_deactivate', $plugins ); $plugins = array_filter( $plugins, 'is_plugin_active' ); /** This filter is documented in inc/admin/options.php */ if ( ! (bool) $plugins || ! current_user_can( apply_filters( 'imagify_capacity', $cap ) ) ) { return; } ?>

ID, '_imagify_ignore_notices', true ); if ( ( isset( $current_screen ) && ( 'settings_page_imagify' === $current_screen->base || 'settings_page_imagify-network' === $current_screen->base ) ) || in_array( 'http-block-external', (array) $ignored_notices ) || ! current_user_can( apply_filters( 'imagify_capacity', 'manage_options' ) ) || ! is_imagify_blocked() ) { return; } ?>

WP_HTTP_BLOCK_EXTERNAL constant in the wp-config.php to block all external HTTP requests.', 'imagify' ); ?>

wp-config.php file so that it works correctly.', 'imagify' ); ?>

ID, '_imagify_ignore_notices', true ); $media_library_mode = get_user_option( 'media_library_mode', get_current_user_id() ); if ( ( isset( $current_screen ) && 'upload' !== $current_screen->base ) || in_array( 'grid-view', (array) $ignored_notices ) || ! current_user_can( 'upload_files' ) || $media_library_mode == 'list' || version_compare( $wp_version, '4.0' ) < 0 ) { return; } // Don't display the notice if the API key isn't valid if ( ! imagify_valid_key() ) { return; } ?>

ID, '_imagify_ignore_notices', true ); $cap = ( imagify_is_active_for_network() ) ? 'manage_network_options' : 'manage_options'; if ( ( isset( $current_screen ) && ( 'media_page_imagify-bulk-optimization' !== $current_screen->base && 'settings_page_imagify' !== $current_screen->base && 'settings_page_imagify-network' !== $current_screen->base ) ) || in_array( 'free-over-quota', (array) $ignored_notices ) || ! current_user_can( apply_filters( 'imagify_capacity', $cap ) ) ) { return; } $user = new Imagify_User(); // Don't display the notice if the user doesn't use all his quota or the API key isn't valid if ( ! $user->is_over_quota() || ! imagify_valid_key() ) { return; } ?>

%s back on %s.', 'imagify' ), size_format( $user->quota * 1048576 ), date_i18n( get_option( 'date_format' ), strtotime( $user->next_date_update ) ) ) . '

' . sprintf( __( 'To continue to optimize your images, log in to your Imagify account to %sbuy a pack or subscribe to a plan%s.', 'imagify' ), '', '' ); ?>

ID, '_imagify_ignore_notices', true ); if ( ( isset( $current_screen ) && 'media_page_imagify-bulk-optimization' !== $current_screen->base ) || in_array( 'wp-rocket', (array) $ignored_notices ) || ! current_user_can( apply_filters( 'imagify_capacity', 'manage_options' ) ) ) { return; } $dismiss_url = get_imagify_admin_url( 'dismiss-notice', 'wp-rocket' ); $coupon_code = 'IMAGIFY20'; $wprocket_url = 'http://wp-rocket.me/'; switch( get_locale() ) { case 'fr_FR' : $wprocket_url = 'http://wp-rocket.me/fr/'; break; case 'es_ES' : $wprocket_url = 'http://wp-rocket.me/es/'; break; case 'it_IT' : $wprocket_url = 'http://wp-rocket.me/it/'; break; case 'de_DE' : $wprocket_url = 'http://wp-rocket.me/de/'; break; } $wprocket_url .= '?utm_source=imagify-coupon&utm_medium=plugin&utm_campaign=imagify'; ?>

'; printf( esc_html__( '%sGet %s off%s with this coupon code:%s', 'imagify' ), '', '20%', '', ' ' . $coupon_code ); ?>

ID, '_imagify_ignore_notices', true ); if ( ( isset( $current_screen ) && ( 'settings_page_imagify' === $current_screen->base || 'settings_page_imagify-network' === $current_screen->base ) ) || in_array( 'rating', (array) $ignored_notices ) || ! current_user_can( apply_filters( 'imagify_capacity', 'manage_options' ) ) ) { return; } ?>

', '', $user_images_count ); ?>

', '
', '', '' ); ?>
☆☆☆☆☆