//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
?>
<div class="akismet-box">
<?php Akismet::
view( 'title'
); ?>
<div class="akismet-jp-connect">
<h3><?php
esc_html_e( 'Connect with Jetpack', 'akismet'
); ?></h3><?php
if ( in_array( $akismet_user->status, array
( 'no-sub', 'missing'
) ) ) {?>
<p><?php
esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet'
); ?></p>
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
<input type="hidden" name="passback_url" value="<?php
echo esc_url( Akismet_Admin::
get_page_url() ); ?>"/>
<input type="hidden" name="blog" value="<?php
echo esc_url( get_option( 'home'
) ); ?>"/>
<input type="hidden" name="auto-connect" value="<?php
echo esc_attr( $akismet_user->ID
); ?>"/>
<input type="hidden" name="redirect" value="plugin-signup"/>
<input type="submit" class="akismet-button akismet-is-primary" value="<?php
esc_attr_e( 'Connect with Jetpack' , 'akismet'
); ?>"/>
</form>
<?php
echo get_avatar( $akismet_user->user_email, null, null, null, array
( 'class' => 'akismet-jetpack-gravatar'
) ); ?>
<p><?php
/* translators: %s is the WordPress.com username */
echo sprintf( esc_html( __( 'You are connected as %s.', 'akismet'
) ), '<b>' .
esc_html( $akismet_user->user_login
) . '</b>'
); ?><br /><span class="akismet-jetpack-email"><?php
echo esc_html( $akismet_user->user_email
); ?></span></p>
<?php
} elseif ( $akismet_user->status == 'cancelled'
) { ?>
<p><?php
esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet'
); ?></p>
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
<input type="hidden" name="passback_url" value="