+ ';
+ if ( ! $compatible_php && ! $compatible_wp ) {
+ echo '
' . esc_html_e( 'This plugin does not work with your versions of WordPress and PHP.', 'default' ) . '
';
+ if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
+ echo wp_kses_post(
+ /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
+ ' ' . __( '
Please update WordPress, and then
learn more about updating PHP.', 'default' ),
+ esc_url( self_admin_url( 'update-core.php' ) ),
+ esc_url( wp_get_update_php_url() )
+ );
+ wp_update_php_annotation( '
', '
' );
+ } elseif ( current_user_can( 'update_core' ) ) {
+ echo wp_kses_post(
+ /* translators: %s: URL to WordPress Updates screen. */
+ ' ' . __( '
Please update WordPress.', 'default' ),
+ esc_url( self_admin_url( 'update-core.php' ) )
+ );
+ } elseif ( current_user_can( 'update_php' ) ) {
+ echo wp_kses_post(
+ /* translators: %s: URL to Update PHP page. */
+ ' ' . __( '
Learn more about updating PHP.', 'default' ),
+ esc_url( wp_get_update_php_url() )
+ );
+ wp_update_php_annotation( '
', '
' );
+ }
+ } elseif ( ! $compatible_wp ) {
+ esc_html_e( 'This plugin does not work with your version of WordPress.', 'default' );
+ if ( current_user_can( 'update_core' ) ) {
+ echo wp_kses_post(
+ /* translators: %s: URL to WordPress Updates screen. */
+ ' ' . __( '
Please update WordPress.', 'default' ),
+ esc_url( self_admin_url( 'update-core.php' ) )
+ );
+ }
+ } elseif ( ! $compatible_php ) {
+ esc_html_e( 'This plugin does not work with your version of PHP.', 'default' );
+ if ( current_user_can( 'update_php' ) ) {
+ echo wp_kses_post(
+ /* translators: %s: URL to Update PHP page. */
+ ' ' . __( '
Learn more about updating PHP.', 'default' ),
+ esc_url( wp_get_update_php_url() )
+ );
+ wp_update_php_annotation( '
', '
' );
+ }
+ }
+ echo '
';
+ }
+ ?>
+
+
+ $plugin_data['rating'],
+ 'type' => 'percent',
+ 'number' => $plugin_data['num_ratings'],
+ )
+ );
+ ?>
+ ()
+
+
+
+
+
+
+ = 1000000 ) {
+ $active_installs_millions = floor( $plugin_data['active_installs'] / 1000000 );
+ $active_installs_text = sprintf(
+ /* translators: %s: Number of millions. */
+ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations', 'default' ),
+ number_format_i18n( $active_installs_millions )
+ );
+ } elseif ( 0 === $plugin_data['active_installs'] ) {
+ $active_installs_text = _x( 'Less Than 10', 'Active plugin installations', 'default' );
+ } else {
+ $active_installs_text = number_format_i18n( $plugin_data['active_installs'] ) . '+';
+ }
+ /* translators: %s: Number of installations. */
+ printf( esc_html__( '%s Active Installations', 'default' ), esc_html( $active_installs_text ) );
+ ?>
+
+
+ ' . esc_html__( 'Untested with your version of WordPress', 'default' ) . '';
+ } elseif ( ! $compatible_wp ) {
+ echo '' . wp_kses_post( __( 'Incompatible with your version of WordPress', 'default' ) ) . '';
+ } else {
+ echo '' . wp_kses_post( __( 'Compatible with your version of WordPress', 'default' ) ) . '';
+ }
+ ?>
+
+
+