]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/plugins/akismet/views/notice.php
WordPress 4.5.2
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / views / notice.php
1 <?php if ( $type == 'plugin' ) :?>
2 <div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
3         <form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
4                 <div class="akismet_activate">
5                         <div class="aa_a">A</div>
6                         <div class="aa_button_container">
7                                 <div class="aa_button_border">
8                                         <input type="submit" class="aa_button" value="<?php esc_attr_e( 'Activate your Akismet account', 'akismet' ); ?>" />
9                                 </div>
10                         </div>
11                         <div class="aa_description"><?php _e('<strong>Almost done</strong> - activate Akismet and say goodbye to spam', 'akismet');?></div>
12                 </div>
13         </form>
14 </div>
15 <?php elseif ( $type == 'spam-check' ) :?>
16 <div id="akismet-warning" class="updated fade">
17         <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p>
18         <p><?php printf( __( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ) ); ?></p>
19         <?php if ( $link_text ) { ?>
20                 <p><?php echo $link_text; ?></p>
21         <?php } ?>
22 </div>
23 <?php elseif ( $type == 'version' ) :?>
24 <div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div>
25 <?php elseif ( $type == 'alert' ) :?>
26 <div class='error'>
27         <p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p>
28         <p><?php echo esc_html( $msg ); ?></p>
29         <p><?php
30
31         /* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
32         printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' );
33
34         ?>
35         </p>
36 </div>
37 <?php elseif ( $type == 'notice' ) :?>
38 <div class="wrap alert critical">
39         <h3 class="key-status failed"><?php echo $notice_header; ?></h3>
40         <p class="description">
41                 <?php echo $notice_text; ?>
42         </p>
43 </div>
44 <?php elseif ( $type == 'missing-functions' ) :?>
45 <div class="wrap alert critical">
46         <h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
47         <p class="description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> function.  <strong>Akismet cannot work correctly until this is fixed.</strong>  Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
48 </div>
49 <?php elseif ( $type == 'servers-be-down' ) :?>
50 <div class="wrap alert critical">
51         <h3 class="key-status failed"><?php esc_html_e("Akismet can&#8217;t connect to your site.", 'akismet'); ?></h3>
52         <p class="description"><?php printf( __('Your firewall may be blocking Akismet. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
53 </div>
54 <?php elseif ( $type == 'active-dunning' ) :?>
55 <div class="wrap alert critical">
56         <h3 class="key-status"><?php esc_html_e("Please update your payment information.", 'akismet'); ?></h3>
57         <p class="description"><?php printf( __('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p>
58 </div>
59 <?php elseif ( $type == 'cancelled' ) :?>
60 <div class="wrap alert critical">
61         <h3 class="key-status"><?php esc_html_e("Your Akismet plan has been cancelled.", 'akismet'); ?></h3>
62         <p class="description"><?php printf( __('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p>
63 </div>
64 <?php elseif ( $type == 'suspended' ) :?>
65 <div class="wrap alert critical">
66         <h3 class="key-status failed"><?php esc_html_e("Your Akismet subscription is suspended.", 'akismet'); ?></h3>
67         <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
68 </div>
69 <?php elseif ( $type == 'active-notice' && $time_saved ) :?>
70 <div class="wrap alert active">
71         <h3 class="key-status"><?php echo esc_html( $time_saved ); ?></h3>
72         <p class="description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p>
73 </div>
74 <?php elseif ( $type == 'missing' ) :?>
75 <div class="wrap alert critical">
76         <h3 class="key-status failed"><?php esc_html_e( 'There is a problem with your API key.', 'akismet'); ?></h3>
77         <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
78 </div>
79 <?php elseif ( $type == 'no-sub' ) :?>
80 <div class="wrap alert critical">
81         <h3 class="key-status failed"><?php esc_html_e( 'You don&#8217;t have an Akismet plan.', 'akismet'); ?></h3>
82         <p class="description">
83                 <?php printf( __( 'In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we&#8217;d appreciate it if you&#8217;d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
84                 <br /><br />
85                 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?>
86         </p>
87 </div>
88 <?php elseif ( $type == 'new-key-valid' ) :?>
89 <div class="wrap alert active">
90         <h3 class="key-status"><?php esc_html_e('Akismet is now activated. Happy blogging!', 'akismet'); ?></h3>
91 </div>
92 <?php elseif ( $type == 'new-key-invalid' ) :?>
93 <div class="wrap alert critical">
94         <h3 class="key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3>
95 </div>
96 <?php elseif ( $type == 'existing-key-invalid' ) :?>
97 <div class="wrap alert critical">
98         <h3 class="key-status"><?php esc_html_e( 'Your API key is no longer valid. Please enter a new key or contact support@akismet.com.' , 'akismet'); ?></h3>
99 </div>
100 <?php elseif ( $type == 'new-key-failed' ) :?>
101 <div class="wrap alert critical">
102         <h3 class="key-status"><?php esc_html_e( 'The API key you entered could not be verified.' , 'akismet'); ?></h3>
103         <p class="description"><?php printf( __('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'http://blog.akismet.com/akismet-hosting-faq/'); ?></p>
104 </div>
105 <?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?>
106 <div class="wrap alert critical">
107         <?php if ( $level == 'yellow' ): ?>
108         <h3 class="key-status failed"><?php esc_html_e( 'You&#8217;re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3>
109         <p class="description">
110                 <?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'http://docs.akismet.com/billing/add-more-sites/' ); ?>
111                 <br /><br />
112                 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
113         </p>
114         <?php elseif ( $level == 'red' ): ?>
115         <h3 class="key-status failed"><?php esc_html_e( 'You&#8217;re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3>
116         <p class="description">
117                 <?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?></p>
118                 <br /><br />
119                 <?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?></p>
120         </p>
121         <?php endif; ?>
122 </div>
123 <?php endif;?>