From d21645ee9a5f930181f0c057d310e1204f92af01 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 9 May 2019 16:39:50 +0200 Subject: [PATCH 1/3] About Page: remove submenu and add link to page in footer Fixes #12315 You can now access the About Page from 4 different locations: - The Automattic link at the bottom of the Jetpack dashboard pages. - The About link at the bottom of the Jetpack dashboard pages. - The Automattic logo on any Jetpack non-react admin pages (e.g. Settings > Sharing) - The about link at the bottom of any Jetpack non-react admin pages (e.g. Settings > Sharing) --- _inc/client/components/footer/index.jsx | 20 ++++++++++++++++++- .../admin-pages/class-jetpack-about-page.php | 8 ++++---- .../admin-pages/class.jetpack-admin-page.php | 5 ++++- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/_inc/client/components/footer/index.jsx b/_inc/client/components/footer/index.jsx index e7540581f9fae..db233fc909c19 100644 --- a/_inc/client/components/footer/index.jsx +++ b/_inc/client/components/footer/index.jsx @@ -52,6 +52,13 @@ export class Footer extends React.Component { } ); }; + trackAboutClick = () => { + analytics.tracks.recordJetpackClick( { + target: 'footer_link', + link: 'about', + } ); + }; + trackPrivacyClick = () => { window.requestAnimationFrame( smoothScroll ); analytics.tracks.recordJetpackClick( { @@ -78,6 +85,7 @@ export class Footer extends React.Component { const classes = classNames( this.props.className, 'jp-footer' ); const version = this.props.currentVersion; + const maybeShowReset = () => { if ( this.props.isDevVersion && this.props.userCanManageOptions ) { return ( @@ -163,7 +171,7 @@ export class Footer extends React.Component { return (
- + +
  • + + { __( 'About', { context: 'Link to learn more about Jetpack.' } ) } + +