a8c_data = $this->fetch_a8c_data(); } /** * Enqueues scripts and styles for the admin page. */ public function page_admin_scripts() { wp_enqueue_style( 'plugin-install' ); wp_enqueue_script( 'plugin-install' ); // required for plugin modal action button functionality. wp_enqueue_script( 'updates' ); // required for modal popup JS and styling. wp_enqueue_style( 'thickbox' ); wp_enqueue_script( 'thickbox' ); } /** * Load styles for static page. */ public function additional_styles() { Jetpack_Admin_Page::load_wrapper_styles(); } /** * Render the page with a common top and bottom part, and page specific content */ public function render() { Jetpack_Admin_Page::wrap_ui( array( $this, 'page_render' ), array( 'show-nav' => false ) ); } /** * Render the page content */ public function page_render() { ?>
take a look at our WordPress.org profile.', 'jetpack' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), 'class' => array(), 'data-jptracks-name' => array(), ), ) ); ?>
'; if ( ! $compatible_php && ! $compatible_wp ) { esc_html_e( 'This plugin doesn’t work with your versions of WordPress and PHP.', 'jetpack' ); if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { printf( /* translators: 1: "Update WordPress" screen URL, 2: "Update PHP" page URL */ ' ' . wp_kses( __( 'Please update WordPress, and then learn more about updating PHP.', 'jetpack' ), array( 'a' => array( 'href' => true ) ) ), 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' ) ) { printf( /* translators: %s: "Update WordPress" screen URL */ ' ' . wp_kses( __( 'Please update WordPress.', 'jetpack' ), array( 'a' => array( 'href' => true ) ) ), esc_url( self_admin_url( 'update-core.php' ) ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: "Update PHP" page URL */ ' ' . wp_kses( __( 'Learn more about updating PHP.', 'jetpack' ), array( 'a' => array( 'href' => true ) ) ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation(); } } elseif ( ! $compatible_wp ) { esc_html_e( 'This plugin doesn’t work with your version of WordPress.', 'jetpack' ); if ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: "Update WordPress" screen URL */ ' ' . wp_kses( __( 'Please update WordPress.', 'jetpack' ), array( 'a' => array( 'href' => true ) ) ), esc_url( self_admin_url( 'update-core.php' ) ) ); } } elseif ( ! $compatible_php ) { esc_html_e( 'This plugin doesn’t work with your version of PHP.', 'jetpack' ); if ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: "Update PHP" page URL */ ' ' . wp_kses( __( 'Learn more about updating PHP.', 'jetpack' ), array( 'a' => array( 'href' => true ) ) ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation(); } } echo '
'; } ?>