> Catalog entries from Core. * $local array * Local install state, keyed by slug. * * @package Robotstxt_Manager */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Variables provided by Robotstxt_Manager_Admin::render_page(). * * @var list> $catalog * @var array $local */ $client_configured = Robotstxt_Manager_Core_Client::from_options()->is_configured(); $refresh_url = add_query_arg( array( 'action' => 'robotstxt_manager_refresh_catalog', ), admin_url( 'admin-post.php' ) ); $refresh_url = wp_nonce_url( $refresh_url, 'robotstxt_manager_refresh_catalog' ); $refreshed = isset( $_GET['refreshed'] ) && '1' === $_GET['refreshed']; // phpcs:ignore WordPress.Security.NonceVerification.Recommended $local_wp_version = (string) get_bloginfo( 'version' ); $local_php_version = (string) PHP_VERSION; $compat_warnings = 0; ?>

Set the Store URL and API key to see your plugin catalog.', 'robotstxt-manager' ), esc_url( admin_url( 'admin.php?page=' . Robotstxt_Manager_Settings::PAGE_SLUG ) ) ) ); ?>

=' ); $php_ok = '' === $req_php || version_compare( $local_php_version, $req_php, '>=' ); if ( ! $wp_ok || ! $php_ok ) { ++$compat_warnings; } $raw_state = $local[ $slug ] ?? array( 'installed' => false, 'active' => false, 'version' => '', ); $l_installed = (bool) ( $raw_state['installed'] ?? false ); $l_active = (bool) ( $raw_state['active'] ?? false ); $raw_lv = $raw_state['version'] ?? ''; $l_version = is_string( $raw_lv ) ? $raw_lv : ''; $update_available = $l_installed && '' !== $remote_v && '' !== $l_version && version_compare( $l_version, $remote_v, '<' ); $row_class = ( ! $wp_ok || ! $php_ok ) ? ' robotstxt-manager-row--incompatible' : ''; ?>

0.0 ) { echo esc_html( sprintf( '€%s / year', number_format_i18n( $cost, 0 ) ) ); } else { echo '—'; } ?> ' . esc_html__( 'Not installed', 'robotstxt-manager' ) . ''; } elseif ( ! $l_active ) { echo '' . esc_html__( 'Installed (inactive)', 'robotstxt-manager' ) . ''; } elseif ( $update_available ) { echo '' . esc_html( sprintf( /* translators: 1: installed version, 2: available version. */ __( 'Update available (v%1$s → v%2$s)', 'robotstxt-manager' ), $l_version, $remote_v ) ) . ''; } else { echo '' . esc_html__( 'Up to date', 'robotstxt-manager' ) . ''; } ?> 0.0 && '' !== $page_url ) : ?>
0 ) : ?>