' . __( 'Install Now', 'notification' ) . ''; } break; case 'update_available': if ( $status['url'] ) { /* translators: 1: Plugin name and version */ $action_button = '' . __( 'Update Now', 'notification' ) . ''; } break; case 'latest_installed': case 'newer_installed': if ( is_plugin_active( $status['file'] ) ) { $action_button = ''; } elseif ( current_user_can( 'activate_plugins' ) ) { $button_text = __( 'Activate', 'notification' ); /* translators: %s: Plugin name */ $button_label = _x( 'Activate %s', 'plugin', 'notification' ); $activate_url = add_query_arg( array( '_wpnonce' => wp_create_nonce( 'activate-plugin_' . $status['file'] ), 'action' => 'activate', 'plugin' => $status['file'], ), network_admin_url( 'plugins.php' ) ); if ( is_network_admin() ) { $button_text = __( 'Network Activate', 'notification' ); /* translators: %s: Plugin name */ $button_label = _x( 'Network Activate %s', 'plugin', 'notification' ); $activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url ); } $action_button = sprintf( '%3$s', esc_url( $activate_url ), esc_attr( sprintf( $button_label, $ext['name'] ) ), $button_text ); } else { $action_button = ''; } break; } } else { $action_button = '' . __( 'More Details', 'notification' ) . ''; } ?>