PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
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 13.8.3 All 506 releases
← All changes | _inc/lib/admin-pages/class-akismet-admin-chrome.php +6 -13 16.2-beta → 16.3-a.7 View file →
@@ -25,8 +25,10 @@
25 25 *
26 26 * @package automattic/jetpack
27 27 */
28 28
29 +use Automattic\Jetpack\Plugin\Admin_Chrome_Logo;
30 +use Automattic\Jetpack\Plugin\Footer_Links;
29 31 use Automattic\Jetpack\Redirect;
30 32 use Automattic\Jetpack\Status;
31 33 use Automattic\Jetpack\Status\Host;
32 34
@@ -39,18 +41,8 @@
39 41 */
40 42 class Akismet_Admin_Chrome {
41 43
42 44 /**
43 - * The green Jetpack logo mark, sized via the `height` attribute by callers.
44 - *
45 - * @param int $height Pixel height of the logo.
46 - * @return string SVG markup.
47 - */
48 - private function jetpack_logo( $height ) {
49 - 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>';
50 - }
51 -
52 - /**
53 45 * The Akismet logo mark — the green rounded square with the white "A", taken from
54 46 * Akismet's own `akismet-refresh-logo.svg`. Sized via the `height` attribute by callers.
55 47 *
56 48 * @param int $height Pixel height of the logo.
@@ -342,14 +334,15 @@
342 334 : Redirect::get_url( 'jetpack' );
343 335 ?>
344 336 <footer class="jp-akismet-footer jetpack-footer" aria-label="<?php esc_attr_e( 'Jetpack', 'jetpack' ); ?>" role="contentinfo">
345 337 <div class="jp-akismet-footer__logo">
346 - <?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. ?>
347 339 <span><?php esc_html_e( 'Jetpack', 'jetpack' ); ?></span>
348 340 </div>
349 - <?php if ( ! ( new Host() )->is_wpcom_platform() ) : ?>
341 + <?php if ( ! ( new Host() )->is_wpcom_platform() && Footer_Links::is_my_jetpack_available() ) : ?>
342 + <?php $products_section = Footer_Links::get_my_jetpack_products_section(); ?>
350 343 <nav class="jp-akismet-footer__menu">
351 - <a href="<?php echo esc_url( admin_url( 'admin.php?page=my-jetpack#/products' ) ); ?>"><?php echo esc_html_x( 'Products', 'Navigation item', 'jetpack' ); ?></a>
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>
352 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>
353 346 </nav>
354 347 <?php endif; ?>
355 348 <a class="jp-akismet-footer__a8c" href="<?php echo esc_url( $a8c_url ); ?>" aria-label="<?php esc_attr_e( 'An Automattic Airline', 'jetpack' ); ?>">