function admin_jetpack_manage_notice()
{
$screen = get_current_screen();
// Don't show the connect notice on the jetpack settings page.
if (!in_array($screen->base, array('dashboard')) || $screen->is_network || $screen->action) {
return;
}
$opt_out_url = $this->opt_out_jetpack_manage_url();
$opt_in_url = $this->opt_in_jetpack_manage_url();
/**
* I think it would be great to have different wordsing depending on where you are
* for example if we show the notice on dashboard and a different one if we show it on Plugins screen
* etc..
*/
?>
<div id="message" class="updated jp-banner">
<a href="<?php
echo esc_url($opt_out_url);
?>
" class="notice-dismiss" title="<?php
esc_attr_e('Dismiss this notice', 'jetpack');
?>
"></a>
<div class="jp-banner__description-container">
<h2 class="jp-banner__header"><?php
esc_html_e('Jetpack Centralized Site Management', 'jetpack');
?>
</h2>
<p class="jp-banner__description"><?php
printf(__('Manage multiple Jetpack enabled sites from one single dashboard at wordpress.com. Allows all existing, connected Administrators to modify your site.', 'jetpack'), 'https://jetpack.com/support/site-management');
?>
</p>
<p class="jp-banner__button-container">
<a href="<?php
echo esc_url($opt_in_url);
?>
" class="button button-primary" id="wpcom-connect"><?php
_e('Activate Jetpack Manage', 'jetpack');
?>
</a>
<a href="https://jetpack.com/support/site-management" class="button" target="_blank" title="<?php
esc_attr_e('Learn more about Jetpack Manage on Jetpack.com', 'jetpack');
?>
"><?php
_e('Learn more', 'jetpack');
?>
</a>
</p>
</div>
</div>
<?php
}