public function dashboard_widget_connect_to_wpcom()
{
if (Jetpack::is_active() || Jetpack::is_development_mode() || !current_user_can('jetpack_connect')) {
return;
}
?>
<div class="wpcom-connect">
<div class="jp-emblem">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 172.9 172.9" enable-background="new 0 0 172.9 172.9" xml:space="preserve">
<path d="M86.4 0C38.7 0 0 38.7 0 86.4c0 47.7 38.7 86.4 86.4 86.4s86.4-38.7 86.4-86.4C172.9 38.7 134.2 0 86.4 0zM83.1 106.6l-27.1-6.9C49 98 45.7 90.1 49.3 84l33.8-58.5V106.6zM124.9 88.9l-33.8 58.5V66.3l27.1 6.9C125.1 74.9 128.4 82.8 124.9 88.9z"/>
</svg>
</div>
<h3><?php
esc_html_e('Please Connect Jetpack', 'jetpack');
?>
</h3>
<p><?php
echo wp_kses(__('Connecting Jetpack will show you <strong>stats</strong> about your traffic, <strong>protect</strong> you from brute force attacks, <strong>speed up</strong> your images and photos, and enable other <strong>traffic and security</strong> features.', 'jetpack'), 'jetpack');
?>
</p>
<div class="actions">
<a href="<?php
echo $this->build_connect_url(false, false, 'widget-btn');
?>
" class="button button-primary">
<?php
esc_html_e('Connect Jetpack', 'jetpack');
?>
</a>
</div>
</div>
<?php
}