]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/plugins/akismet/views/start.php
75eb03241c46c88f7ce128517b74090da7f9a61d
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / views / start.php
1 <div class="no-key config-wrap"><?php
2         if ( $akismet_user && in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub', 'missing', 'cancelled', 'suspended' ) ) ) :
3                 if ( in_array( $akismet_user->status, array( 'no-sub', 'missing' ) ) ) :?>
4 <p><?php esc_html_e('Akismet eliminates spam from your site. Register below to get started.', 'akismet'); ?></p>
5 <div class="activate-highlight activate-option">
6         <div class="option-description">
7                 <strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
8                 <?php echo esc_html( $akismet_user->user_email ); ?>
9         </div>
10         <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
11                 <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
12                 <input type="hidden" name="blog" value="<?php echo esc_url( get_bloginfo('url') ); ?>"/>
13                 <input type="hidden" name="auto-connect" value="<?php echo $akismet_user->ID;?>"/>
14                 <input type="hidden" name="redirect" value="plugin-signup"/>
15                 <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Register for Akismet' , 'akismet'); ?>"/>
16         </form>
17 </div>
18 <?php elseif ( $akismet_user->status == 'cancelled' ) :?>
19 <p><?php esc_html_e('Akismet eliminates spam from your site.', 'akismet'); ?></p>
20 <div class="activate-highlight activate-option">
21         <div class="option-description" style="width:75%;">
22                 <strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
23                 <?php printf( esc_html__( 'Your subscription for %s is cancelled' , 'akismet'), $akismet_user->user_email ); ?>
24         </div>
25         <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
26                 <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
27                 <input type="hidden" name="blog" value="<?php echo esc_url( get_bloginfo('url') ); ?>"/>
28                 <input type="hidden" name="user_id" value="<?php echo $akismet_user->ID;?>"/>
29                 <input type="hidden" name="redirect" value="upgrade"/>
30                 <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Reactivate Akismet' , 'akismet'); ?>"/>
31         </form>
32 </div>
33 <?php elseif ( $akismet_user->status == 'suspended' ) : ?>
34 <p><?php esc_html_e('Akismet eliminates spam from your site.', 'akismet'); ?></p>
35 <div class="activate-highlight centered activate-option">
36         <strong class="small-heading"><?php esc_html_e( 'Connected via Jetpack' , 'akismet'); ?></strong>
37         <h3 class="alert-text"><?php printf( esc_html__( 'Your subscription for %s is suspended' , 'akismet'), $akismet_user->user_email ); ?></h3>
38         <p><?php esc_html_e('No worries! Get in touch and we&#8217;ll sort this out.', 'akismet'); ?></p>
39         <a href="https://akismet.com/contact" class="button button-primary"><?php esc_html_e( 'Contact Akismet support' , 'akismet'); ?></a>
40 </div>
41 <?php else : // ask do they want to use akismet account found using jetpack wpcom connection ?>
42 <p style="margin-right:10px"><?php esc_html_e('Akismet eliminates spam from your site. To set up Akismet, select one of the options below.', 'akismet'); ?></p>
43 <div class="activate-highlight activate-option">
44         <div class="option-description">
45                 <strong class="small-heading"><?php esc_html_e('Connected via Jetpack', 'akismet'); ?></strong>
46                 <?php echo esc_html( $akismet_user->user_email ); ?>
47         </div>
48         <form name="akismet_use_wpcom_key" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-activate" class="right">
49                 <input type="hidden" name="key" value="<?php echo esc_attr( $akismet_user->api_key );?>"/>
50                 <input type="hidden" name="action" value="enter-key">
51                 <?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
52                 <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Use this account' , 'akismet'); ?>"/>
53         </form>
54 </div>
55 <?php endif;?>
56 <div class="activate-highlight secondary activate-option">
57         <div class="option-description">
58                 <strong><?php esc_html_e('Sign up for a plan with a different email address', 'akismet'); ?></strong>
59                 <p><?php esc_html_e('Use this option to use Akismet independently of your Jetpack connection.', 'akismet'); ?></p>
60         </div>
61         <?php Akismet::view( 'get', array( 'text' => __( 'Sign up with a different email address' , 'akismet'), 'classes' => array( 'right', 'button', 'button-secondary' ) ) ); ?>
62 </div>
63 <div class="activate-highlight secondary activate-option">
64         <div class="option-description">
65                 <strong><?php esc_html_e('Enter an API key', 'akismet'); ?></strong>
66                 <p><?php esc_html_e('Already have your key? Enter it here.', 'akismet'); ?></p>
67         </div>
68         <form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-enter-api-key" class="right">
69                 <input id="key" name="key" type="text" size="15" value="" class="regular-text code">
70                 <input type="hidden" name="action" value="enter-key">
71                 <?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
72                 <input type="submit" name="submit" id="submit" class="button button-secondary" value="<?php esc_attr_e('Use this key', 'akismet');?>">
73         </form>
74 </div>
75 <?php else :?>
76 <p><?php esc_html_e('Akismet eliminates spam from your site. To set up Akismet, select one of the options below.', 'akismet'); ?></p>
77 <div class="activate-highlight activate-option">
78         <div class="option-description">
79                 <strong><?php esc_html_e( 'Activate Akismet' , 'akismet');?></strong>
80                 <p><?php esc_html_e('Log in or sign up now.', 'akismet'); ?></p>
81         </div>
82         <?php Akismet::view( 'get', array( 'text' => __( 'Get your API key' , 'akismet'), 'classes' => array( 'right', 'button', 'button-primary' ) ) ); ?>
83 </div>
84 <div class="activate-highlight secondary activate-option">
85         <div class="option-description">
86                 <strong><?php esc_html_e('Manually enter an API key', 'akismet'); ?></strong>
87                 <p><?php esc_html_e('If you already know your API key.', 'akismet'); ?></p>
88         </div>
89         <form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-enter-api-key" class="right">
90                 <input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( Akismet::get_api_key() ); ?>" class="regular-text code">
91                 <input type="hidden" name="action" value="enter-key">
92                 <?php wp_nonce_field( Akismet_Admin::NONCE ); ?>
93                 <input type="submit" name="submit" id="submit" class="button button-secondary" value="<?php esc_attr_e('Use this key', 'akismet');?>">
94         </form>
95 </div><?php
96         endif;?>
97 </div>