PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← All changes | _inc/lib/admin-pages/class-akismet-admin-chrome.php +3 -12 16.3-a.3 → 16.3-beta View file →
@@ -25,8 +25,9 @@
25 25 *
26 26 * @package automattic/jetpack
27 27 */
28 28
29 +use Automattic\Jetpack\Plugin\Admin_Chrome_Logo;
29 30 use Automattic\Jetpack\Plugin\Footer_Links;
30 31 use Automattic\Jetpack\Redirect;
31 32 use Automattic\Jetpack\Status;
32 33 use Automattic\Jetpack\Status\Host;
@@ -40,18 +41,8 @@
40 41 */
41 42 class Akismet_Admin_Chrome {
42 43
43 44 /**
44 - * The green Jetpack logo mark, sized via the `height` attribute by callers.
45 - *
46 - * @param int $height Pixel height of the logo.
47 - * @return string SVG markup.
48 - */
49 - private function jetpack_logo( $height ) {
50 - return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" height="' . (int) $height . '" class="jp-akismet-logo" aria-hidden="true"><path fill="#069e08" d="M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"></path></svg>';
51 - }
52 -
53 - /**
54 45 * The Akismet logo mark — the green rounded square with the white "A", taken from
55 46 * Akismet's own `akismet-refresh-logo.svg`. Sized via the `height` attribute by callers.
56 47 *
57 48 * @param int $height Pixel height of the logo.
@@ -343,12 +334,12 @@
343 334 : Redirect::get_url( 'jetpack' );
344 335 ?>
345 336 <footer class="jp-akismet-footer jetpack-footer" aria-label="<?php esc_attr_e( 'Jetpack', 'jetpack' ); ?>" role="contentinfo">
346 337 <div class="jp-akismet-footer__logo">
347 - <?php echo $this->jetpack_logo( 16 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static SVG. ?>
338 + <?php echo Admin_Chrome_Logo::render( 16, 'jp-akismet-logo' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static SVG. ?>
348 339 <span><?php esc_html_e( 'Jetpack', 'jetpack' ); ?></span>
349 340 </div>
350 - <?php if ( ! ( new Host() )->is_wpcom_platform() ) : ?>
341 + <?php if ( ! ( new Host() )->is_wpcom_platform() && Footer_Links::is_my_jetpack_available() ) : ?>
351 342 <?php $products_section = Footer_Links::get_my_jetpack_products_section(); ?>
352 343 <nav class="jp-akismet-footer__menu">
353 344 <a href="<?php echo esc_url( admin_url( 'admin.php?page=my-jetpack#/' . $products_section['slug'] ) ); ?>"><?php echo esc_html( $products_section['label'] ); ?></a>
354 345 <a href="<?php echo esc_url( admin_url( 'admin.php?page=my-jetpack#/help' ) ); ?>"><?php echo esc_html_x( 'Help', 'Navigation item', 'jetpack' ); ?></a>