[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 //phpcs:disable VariableAnalysis 4 // There are "undefined" variables here because they're defined in the code that includes this file as a template. 5 6 ?> 7 <div class="akismet-box"> 8 <?php Akismet::view( 'title' ); ?> 9 <div class="akismet-jp-connect"> 10 <h3><?php esc_html_e( 'Connect with Jetpack', 'akismet' ); ?></h3><?php 11 if ( in_array( $akismet_user->status, array( 'no-sub', 'missing' ) ) ) {?> 12 <p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p> 13 <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank"> 14 <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/> 15 <input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/> 16 <input type="hidden" name="auto-connect" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/> 17 <input type="hidden" name="redirect" value="plugin-signup"/> 18 <input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/> 19 </form> 20 <?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?> 21 <p><?php 22 /* translators: %s is the WordPress.com username */ 23 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> 24 <?php } elseif ( $akismet_user->status == 'cancelled' ) { ?> 25 <p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p> 26 <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank"> 27 <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/> 28 <input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/> 29 <input type="hidden" name="user_id" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/> 30 <input type="hidden" name="redirect" value="upgrade"/> 31 <input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/> 32 </form> 33 <?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?> 34 <p><?php 35 /* translators: %s is the WordPress.com email address */ 36 echo esc_html( sprintf( __( 'Your subscription for %s is cancelled.' , 'akismet' ), $akismet_user->user_email ) ); ?><br /><span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span></p> 37 <?php } elseif ( $akismet_user->status == 'suspended' ) { ?> 38 <div class="akismet-right"> 39 <p><a href="https://akismet.com/contact" class="akismet-button akismet-is-primary"><?php esc_html_e( 'Contact Akismet support' , 'akismet' ); ?></a></p> 40 </div> 41 <p> 42 <span class="akismet-alert-text"><?php 43 /* translators: %s is the WordPress.com email address */ 44 echo esc_html( sprintf( __( 'Your subscription for %s is suspended.' , 'akismet' ), $akismet_user->user_email ) ); ?></span> 45 <?php esc_html_e( 'No worries! Get in touch and we’ll sort this out.', 'akismet' ); ?> 46 </p> 47 <?php } else { // ask do they want to use akismet account found using jetpack wpcom connection ?> 48 <p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p> 49 <form name="akismet_use_wpcom_key" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-activate" class="akismet-right"> 50 <input type="hidden" name="key" value="<?php echo esc_attr( $akismet_user->api_key );?>"/> 51 <input type="hidden" name="action" value="enter-key"> 52 <?php wp_nonce_field( Akismet_Admin::NONCE ) ?> 53 <input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/> 54 </form> 55 <?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?> 56 <p><?php 57 /* translators: %s is the WordPress.com username */ 58 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> 59 <?php } ?> 60 </div> 61 <div class="akismet-ak-connect"> 62 <?php Akismet::view( 'setup' );?> 63 </div> 64 <div class="centered akismet-toggles"> 65 <a href="#" class="toggle-jp-connect"><?php esc_html_e( 'Connect with Jetpack', 'akismet' ); ?></a> 66 <a href="#" class="toggle-ak-connect"><?php esc_html_e( 'Set up a different account', 'akismet' ); ?></a> 67 </div> 68 </div> 69 <br/> 70 <div class="akismet-box"> 71 <?php Akismet::view( 'enter' );?> 72 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |