function editor_msg()
{
global $typenow;
if (current_user_can('manage_options')) {
$normalized_site_url = Jetpack::build_raw_urls(get_home_url());
$editor_dismissed = isset(self::$jetpack_hide_jitm['editor']);
if (!$editor_dismissed) {
?>
<div class="jp-jitm">
<a href="#" data-module="editor" class="dismiss"><span class="genericon genericon-close"></span></a>
<?php
echo self::get_emblem();
?>
<p class="msg">
<?php
esc_html_e('Try the brand new editor.', 'jetpack');
?>
</p>
<p>
<a href="<?php
echo esc_url('https://wordpress.com/' . $typenow . '/' . $normalized_site_url);
?>
" target="_blank" title="<?php
esc_attr_e('Write on WordPress.com', 'jetpack');
?>
" data-module="editor" class="button button-jetpack launch show-after-enable"><?php
esc_html_e('Write on WordPress.com', 'jetpack');
?>
</a>
</p>
</div>
<?php
//jitm is being viewed, track it
$jetpack = Jetpack::init();
$jetpack->stat('jitm', 'editor-viewed-' . JETPACK__VERSION);
$jetpack->do_stats('server_side');
}
// manage or editor inactive
}
}