| @@ 225-231 (lines=7) @@ | ||
| 222 | * | |
| 223 | * @param bool $calypso Optional. Whether links should point to Calypso or wp-admin. Default true (Calypso). | |
| 224 | */ | |
| 225 | 	public function add_tools_menu( $calypso = true ) { | |
| 226 | $menu_slug = $calypso ? 'https://wordpress.com/marketing/tools/' . $this->domain : 'tools.php'; | |
| 227 | ||
| 228 | add_submenu_page( $menu_slug, esc_attr__( 'Marketing', 'jetpack' ), __( 'Marketing', 'jetpack' ), 'manage_options', 'https://wordpress.com/marketing/tools/' . $this->domain, null, 5 ); | |
| 229 | add_submenu_page( $menu_slug, esc_attr__( 'Earn', 'jetpack' ), __( 'Earn', 'jetpack' ), 'manage_options', 'https://wordpress.com/earn/' . $this->domain, null, 10 ); | |
| 230 | ||
| 231 | parent::add_tools_menu( $calypso ); | |
| 232 | } | |
| 233 | ||
| 234 | /** | |
| @@ 303-310 (lines=8) @@ | ||
| 300 | * | |
| 301 | * @param bool $calypso Optional. Whether links should point to Calypso or wp-admin. Default true (Calypso). | |
| 302 | */ | |
| 303 | 	public function add_tools_menu( $calypso = true ) { | |
| 304 | $menu_slug = $calypso ? 'https://wordpress.com/marketing/tools/' . $this->domain : 'tools.php'; | |
| 305 | ||
| 306 | add_submenu_page( $menu_slug, esc_attr__( 'Marketing', 'jetpack' ), __( 'Marketing', 'jetpack' ), 'manage_options', 'https://wordpress.com/marketing/tools/' . $this->domain, null, 5 ); | |
| 307 | add_submenu_page( $menu_slug, esc_attr__( 'Earn', 'jetpack' ), __( 'Earn', 'jetpack' ), 'manage_options', 'https://wordpress.com/earn/' . $this->domain, null, 10 ); | |
| 308 | ||
| 309 | parent::add_tools_menu( $calypso ); | |
| 310 | } | |
| 311 | ||
| 312 | /** | |
| 313 | * Adds Settings menu. | |