3
<h2><?php esc_html_e( 'Akismet' , 'akismet');?></h2>
7
<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
9
<div class="new-snapshot stats">
11
<span style="float:right;margin:10px 15px -5px 0px">
12
<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>" class=""><?php esc_html_e( 'Summaries' , 'akismet');?></a>
15
<iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 215px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=180&locale=%s', urlencode( get_bloginfo('url') ), Akismet::get_api_key(), get_locale() );?>"></iframe>
18
<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
19
<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
20
<?php esc_html_e( 'Spam blocked' , 'akismet');?>
23
<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
24
<span><?php echo number_format( $stat_totals['all']->spam );?></span>
25
<?php esc_html_e( 'Spam blocked' , 'akismet');?>
28
<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
29
<span><?php echo $stat_totals['all']->accuracy; ?>%</span>
32
_n( '%s missed spam, %s false positive', '%s missed spam, %s false positives', $stat_totals['all']->false_positives , 'akismet')
34
number_format( $stat_totals['all']->missed_spam ),
35
number_format( $stat_totals['all']->false_positives )
39
<div class="clearfix"></div>
43
<?php if ( $akismet_user ):?>
45
<div id="wpcom-stats-meta-box-container" class="metabox-holder"><?php
46
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
47
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
49
<script type="text/javascript">
50
jQuery(document).ready( function($) {
51
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
52
if(typeof postboxes !== 'undefined')
53
postboxes.add_postbox_toggles( 'plugins_page_akismet-key-config' );
56
<div class="postbox-container" style="width: 55%;margin-right: 10px;">
57
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
58
<div id="referrers" class="postbox ">
59
<div class="handlediv" title="Click to toggle"><br></div>
60
<h3 class="hndle"><span><?php esc_html_e( 'Settings' , 'akismet');?></span></h3>
61
<form name="akismet_conf" id="akismet-conf" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
63
<table cellspacing="0" class="akismet-settings">
65
<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
67
<th width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
70
<span class="api-key"><input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $akismet_user->status;?>"></span>
75
<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
79
<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="1" type="checkbox" <?php checked('1', get_option('akismet_show_user_comments_approved')); ?>> <?php esc_html_e('Show the number of approved comments beside each comment author', 'akismet'); ?></label>
84
<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
87
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
88
<p><label for="akismet_strictness_1"><input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked('1', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Silently discard the worst and most pervasive spam so I never see it.', 'akismet'); ?></label></p>
89
<p><label for="akismet_strictness_0"><input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked('0', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Always put spam in the Spam folder for review.', 'akismet'); ?></label></p>
91
<span class="note"><strong><?php esc_html_e('Note:', 'akismet');?></strong> <?php printf( __( 'Spam in the <a href="%s">spam folder</a> older than 15 days is deleted automatically.' , 'akismet'), admin_url( 'edit-comments.php?comment_status=spam' ) );?></span>
97
<div id="major-publishing-actions">
98
<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
99
<div id="delete-action">
100
<a class="submitdelete deletion" href="<?php echo esc_url( Akismet_Admin::get_page_url( 'delete_key' ) ); ?>"><?php esc_html_e('Disconnect this account', 'akismet'); ?></a>
103
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
104
<div id="publishing-action">
105
<input type="hidden" name="action" value="enter-key">
106
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
109
<div class="clear"></div>
115
<div class="postbox-container" style="width:44%;">
116
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
117
<div id="referrers" class="postbox ">
118
<div class="handlediv" title="Click to toggle"><br></div>
119
<h3 class="hndle"><span><?php esc_html_e( 'Account' , 'akismet');?></span></h3>
121
<table cellspacing="0">
124
<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
127
<span><?php echo $akismet_user->account_name; ?></span>
131
<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
135
if ( 'cancelled' == $akismet_user->status ) :
136
esc_html_e( 'Cancelled', 'akismet' );
137
elseif ( 'suspended' == $akismet_user->status ) :
138
esc_html_e( 'Suspended', 'akismet' );
139
elseif ( 'missing' == $akismet_user->status ) :
140
esc_html_e( 'Missing', 'akismet' );
141
elseif ( 'no-sub' == $akismet_user->status ) :
142
esc_html_e( 'No Subscription Found', 'akismet' );
144
esc_html_e( 'Active', 'akismet' );
148
<?php if ( $akismet_user->next_billing_date ) : ?>
150
<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
153
<span><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></span>
160
<div id="major-publishing-actions">
161
<div id="publishing-action">
162
<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
164
<div class="clear"></div>
b'\\ No newline at end of file'