wp/wp-content/plugins/akismet/views/config.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
     1 <div class="wrap">
     1 <div id="akismet-plugin-container">
     2 
     2 	<div class="akismet-masthead">
     3 	<h2><?php esc_html_e( 'Akismet' , 'akismet');?></h2>
     3 		<div class="akismet-masthead__inside-container">
     4 
     4 			<div class="akismet-masthead__logo-container">
     5 	<div class="have-key">
     5 				<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
     6 
     6 			</div>
       
     7 		</div>
       
     8 	</div>
       
     9 	<div class="akismet-lower">
       
    10 		<?php if ( Akismet::get_api_key() ) { ?>
       
    11 			<?php Akismet_Admin::display_status(); ?>
       
    12 		<?php } ?>
       
    13 		<?php if ( ! empty( $notices ) ) { ?>
       
    14 			<?php foreach ( $notices as $notice ) { ?>
       
    15 				<?php Akismet::view( 'notice', $notice ); ?>
       
    16 			<?php } ?>
       
    17 		<?php } ?>
     7 		<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
    18 		<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
     8 
    19 			<div class="akismet-card">
     9 			<div class="new-snapshot stats">
    20 				<div class="akismet-section-header">
    10 
    21 					<div class="akismet-section-header__label">
    11 				<span style="float:right;margin:10px 15px -5px 0px">
    22 						<span><?php esc_html_e( 'Statistics' , 'akismet'); ?></span>
    12 					<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>" class=""><?php esc_html_e( 'Summaries' , 'akismet');?></a>
    23 					</div>
    13 				</span>
    24 					<div class="akismet-section-header__actions">
    14 
    25 						<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
    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>
    26 							<?php esc_html_e( 'Detailed Stats' , 'akismet');?>
    16 				<ul>
    27 						</a>
    17 					<li>
    28 					</div>
    18 						<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
    29 				</div>
    19 						<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
    30 				
    20 						<?php esc_html_e( 'Spam blocked' , 'akismet');?>
    31 				<div class="akismet-new-snapshot">
    21 					</li>
    32 					<iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=200&locale=%s', urlencode( get_option( 'home' ) ), Akismet::get_api_key(), get_locale() );?>"></iframe>
    22 					<li>
    33 					<ul>
    23 						<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
    34 						<li>
    24 						<span><?php echo number_format( $stat_totals['all']->spam );?></span>
    35 							<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
    25 						<?php esc_html_e( 'Spam blocked' , 'akismet');?>
    36 							<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
    26 					</li>
    37 							<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?>
    27 					<li>
    38 						</li>
    28 						<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
    39 						<li>
    29 						<span><?php echo $stat_totals['all']->accuracy; ?>%</span>
    40 							<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
    30 						<?php printf(
    41 							<span><?php echo number_format( $stat_totals['all']->spam );?></span>
    31 							esc_html(
    42 							<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?>
    32 								_n( '%s missed spam, %s false positive', '%s missed spam, %s false positives', $stat_totals['all']->false_positives , 'akismet')
    43 						</li>
    33 							),
    44 						<li>
    34 							number_format( $stat_totals['all']->missed_spam ),
    45 							<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
    35 							number_format( $stat_totals['all']->false_positives )
    46 							<span><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
    36 						); ?>
    47 							<?php printf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ); ?>
    37 					</li>
    48 							|
    38 				</ul>
    49 							<?php printf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ); ?>
    39 				<div class="clearfix"></div>
    50 						</li>
       
    51 					</ul>
       
    52 				</div>
    40 			</div>
    53 			</div>
    41 		<?php endif;?>
    54 		<?php endif;?>
    42 
    55 
    43 		<?php if ( $akismet_user ):?>
    56 		<?php if ( $akismet_user ):?>
    44 
    57 			<div class="akismet-card">
    45 			<div id="wpcom-stats-meta-box-container" class="metabox-holder"><?php
    58 				<div class="akismet-section-header">
    46 				wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    59 					<div class="akismet-section-header__label">
    47 				wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    60 						<span><?php esc_html_e( 'Settings' , 'akismet'); ?></span>
    48 				?>
    61 					</div>
    49 				<script type="text/javascript">
    62 				</div>
    50 				jQuery(document).ready( function($) {
    63 
    51 					jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
    64 				<div class="inside">
    52 					if(typeof postboxes !== 'undefined')
    65 					<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
    53 						postboxes.add_postbox_toggles( 'plugins_page_akismet-key-config' );
    66 						<table cellspacing="0" class="akismet-settings">
    54 				});
    67 							<tbody>
    55 				</script>
    68 								<?php if ( ! Akismet::predefined_api_key() ) { ?>
    56 				<div class="postbox-container" style="width: 55%;margin-right: 10px;">
    69 								<tr>
    57 					<div id="normal-sortables" class="meta-box-sortables ui-sortable">
    70 									<th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
    58 						<div id="referrers" class="postbox ">
    71 									<td width="5%"/>
    59 							<div class="handlediv" title="Click to toggle"><br></div>
    72 									<td align="left">
    60 							<h3 class="hndle"><span><?php esc_html_e( 'Settings' , 'akismet');?></span></h3>
    73 										<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="<?php echo esc_attr( 'regular-text code ' . $akismet_user->status ); ?>"></span>
    61 							<form name="akismet_conf" id="akismet-conf" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
    74 									</td>
    62 								<div class="inside">
    75 								</tr>
    63 									<table cellspacing="0" class="akismet-settings">
    76 								<?php } ?>
    64 										<tbody>
    77 								<?php if ( isset( $_GET['ssl_status'] ) ) { ?>
    65 											<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
    78 									<tr>
    66 											<tr>
    79 										<th align="left" scope="row"><?php esc_html_e( 'SSL Status', 'akismet' ); ?></th>
    67 												<th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
    80 										<td></td>
    68 												<td width="5%"/>
    81 										<td align="left">
    69 												<td align="left">
    82 											<p>
    70 													<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $akismet_user->status;?>"></span>
    83 												<?php
    71 												</td>
    84 
    72 											</tr>
    85 												if ( ! wp_http_supports( array( 'ssl' ) ) ) {
    73 											<?php endif; ?>
    86 													?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
    74 											<?php if ( isset( $_GET['ssl_status'] ) ) { ?>
    87 												}
    75 												<tr>
    88 												else {
    76 													<th align="left" scope="row"><?php esc_html_e( 'SSL Status', 'akismet' ); ?></th>
    89 													$ssl_disabled = get_option( 'akismet_ssl_disabled' );
    77 													<td></td>
    90 
    78 													<td align="left">
    91 													if ( $ssl_disabled ) {
    79 														<p>
    92 														?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
    80 															<?php
    93 													}
    81 
    94 													else {
    82 															if ( ! function_exists( 'wp_http_supports' ) ) {
    95 														?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
    83 																?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php printf( esc_html( 'Your WordPress installation does not include the function %s; upgrade to the latest version of WordPress.', 'akismet' ), '<code>wp_http_supports</code>' ); ?><?php
    96 													}
    84 															}
    97 												}
    85 															else if ( ! wp_http_supports( array( 'ssl' ) ) ) {
    98 
    86 																?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
    99 												?>
    87 															}
   100 											</p>
    88 															else {
   101 										</td>
    89 																$ssl_disabled = get_option( 'akismet_ssl_disabled' );
   102 									</tr>
    90 
   103 								<?php } ?>
    91 																if ( $ssl_disabled ) {
   104 								<tr>
    92 																	?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
   105 									<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
    93 																}
   106 									<td></td>
    94 																else {
   107 									<td align="left">
    95 																	?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
   108 										<p>
    96 																}
   109 											<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>">
    97 															}
   110 												<input
    98 
   111 													name="akismet_show_user_comments_approved"
    99 															?>
   112 													id="akismet_show_user_comments_approved"
   100 														</p>
   113 													value="1"
   101 													</td>
   114 													type="checkbox"
   102 												</tr>
       
   103 											<?php } ?>
       
   104 											<tr>
       
   105 												<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
       
   106 												<td></td>
       
   107 												<td align="left">
       
   108 													<p>
       
   109 														<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>
       
   110 													</p>
       
   111 												</td>
       
   112 											</tr>
       
   113 											<tr>
       
   114 												<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
       
   115 												<td></td>
       
   116 												<td align="left">
       
   117 													<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
       
   118 													<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>
       
   119 													<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>
       
   120 													</fieldset>
       
   121 													<span class="note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
       
   122 													<?php
   115 													<?php
   123 													
   116 													
   124 													$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
   117 													// If the option isn't set, or if it's enabled ('1'), or if it was enabled a long time ago ('true'), check the checkbox.
   125 													
   118 													checked( true, ( in_array( get_option( 'akismet_show_user_comments_approved' ), array( false, '1', 'true' ), true ) ) );
   126 													printf(
       
   127 														_n(
       
   128 															'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
       
   129 															'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
       
   130 															$delete_interval,
       
   131 															'akismet'
       
   132 														),
       
   133 														admin_url( 'edit-comments.php?comment_status=spam' ),
       
   134 														$delete_interval
       
   135 													);
       
   136 													
   119 													
   137 													?>
   120 													?>
   138 												</td>
   121 													/>
   139 											</tr>
   122 												<?php esc_html_e( 'Show the number of approved comments beside each comment author', 'akismet' ); ?>
   140 										</tbody>
   123 											</label>
   141 									</table>
   124 										</p>
   142 								</div>
   125 									</td>
   143 								<div id="major-publishing-actions">
   126 								</tr>
   144 									<?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
   127 								<tr>
   145 									<div id="delete-action">
   128 									<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
   146 										<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>
   129 									<td></td>
   147 									</div>
   130 									<td align="left">
   148 									<?php endif; ?>
   131 										<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
   149 									<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
   132 										<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>
   150 									<div id="publishing-action">
   133 										<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>
   151 											<input type="hidden" name="action" value="enter-key">
   134 										</fieldset>
   152 											<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
   135 										<span class="akismet-note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
   153 
   136 										<?php
   154 									</div>
   137 									
   155 									<div class="clear"></div>
   138 										$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
   156 								</div>
   139 									
   157 							</form>
   140 										printf(
       
   141 											_n(
       
   142 												'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
       
   143 												'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
       
   144 												$delete_interval,
       
   145 												'akismet'
       
   146 											),
       
   147 											admin_url( 'edit-comments.php?comment_status=spam' ),
       
   148 											$delete_interval
       
   149 										);
       
   150 									
       
   151 										?>
       
   152 									</td>
       
   153 								</tr>
       
   154 								<tr>
       
   155 									<th class="comment-form-privacy-notice" align="left" scope="row"><?php esc_html_e('Privacy', 'akismet'); ?></th>
       
   156 									<td></td>
       
   157 									<td align="left">
       
   158 										<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet privacy notice', 'akismet'); ?></span></legend>
       
   159 										<p><label for="akismet_comment_form_privacy_notice_display"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_display" value="display" <?php checked('display', get_option('akismet_comment_form_privacy_notice')); ?> /> <?php esc_html_e('Display a privacy notice under your comment forms.', 'akismet'); ?></label></p>
       
   160 										<p><label for="akismet_comment_form_privacy_notice_hide"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_hide" value="hide" <?php echo in_array( get_option('akismet_comment_form_privacy_notice'), array('display', 'hide') ) ? checked('hide', get_option('akismet_comment_form_privacy_notice'), false) : 'checked="checked"'; ?> /> <?php esc_html_e('Do not display privacy notice.', 'akismet'); ?></label></p>
       
   161 										</fieldset>
       
   162 										<span class="akismet-note"><?php esc_html_e( 'To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on above.', 'akismet' );?></span>
       
   163 									</td>
       
   164 								</tr>
       
   165 							</tbody>
       
   166 						</table>
       
   167 						<div class="akismet-card-actions">
       
   168 							<?php if ( ! Akismet::predefined_api_key() ) { ?>
       
   169 							<div id="delete-action">
       
   170 								<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>
       
   171 							</div>
       
   172 							<?php } ?>
       
   173 							<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
       
   174 							<div id="publishing-action">
       
   175 								<input type="hidden" name="action" value="enter-key">
       
   176 								<input type="submit" name="submit" id="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
       
   177 							</div>
       
   178 							<div class="clear"></div>
   158 						</div>
   179 						</div>
   159 					</div>
   180 					</form>
   160 				</div>
   181 				</div>
   161 				<div class="postbox-container" style="width:44%;">
   182 			</div>
   162 					<div id="normal-sortables" class="meta-box-sortables ui-sortable">
   183 			
   163 						<div id="referrers" class="postbox ">
   184 			<?php if ( ! Akismet::predefined_api_key() ) { ?>
   164 							<div class="handlediv" title="Click to toggle"><br></div>
   185 				<div class="akismet-card">
   165 							<h3 class="hndle"><span><?php esc_html_e( 'Account' , 'akismet');?></span></h3>
   186 					<div class="akismet-section-header">
   166 							<div class="inside">
   187 						<div class="akismet-section-header__label">
   167 								<table cellspacing="0">
   188 							<span><?php esc_html_e( 'Account' , 'akismet'); ?></span>
   168 									<tbody>
   189 						</div>
   169 										<tr>
   190 					</div>
   170 											<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
   191 				
   171 											<td width="5%"/>
   192 					<div class="inside">
   172 											<td align="left">
   193 						<table cellspacing="0" border="0" class="akismet-settings">
   173 												<span><?php echo $akismet_user->account_name; ?></span>
   194 							<tbody>
   174 											</td>
   195 								<tr>
   175 										</tr>
   196 									<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
   176 										<tr>
   197 									<td width="5%"/>
   177 											<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
   198 									<td align="left">
   178 											<td width="5%"/>
   199 										<p><?php echo esc_html( $akismet_user->account_name ); ?></p>
   179 											<td align="left">
   200 									</td>
   180 												<span><?php 
   201 								</tr>
   181 													if ( 'cancelled' == $akismet_user->status ) :
   202 								<tr>
   182 														esc_html_e( 'Cancelled', 'akismet' ); 
   203 									<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
   183 													elseif ( 'suspended' == $akismet_user->status ) :
   204 									<td width="5%"/>
   184 														esc_html_e( 'Suspended', 'akismet' );
   205 									<td align="left">
   185 													elseif ( 'missing' == $akismet_user->status ) :
   206 										<p><?php 
   186 														esc_html_e( 'Missing', 'akismet' ); 
   207 											if ( 'cancelled' == $akismet_user->status ) :
   187 													elseif ( 'no-sub' == $akismet_user->status ) :
   208 												esc_html_e( 'Cancelled', 'akismet' ); 
   188 														esc_html_e( 'No Subscription Found', 'akismet' );
   209 											elseif ( 'suspended' == $akismet_user->status ) :
   189 													else :
   210 												esc_html_e( 'Suspended', 'akismet' );
   190 														esc_html_e( 'Active', 'akismet' );  
   211 											elseif ( 'missing' == $akismet_user->status ) :
   191 													endif; ?></span>
   212 												esc_html_e( 'Missing', 'akismet' ); 
   192 											</td>
   213 											elseif ( 'no-sub' == $akismet_user->status ) :
   193 										</tr>
   214 												esc_html_e( 'No Subscription Found', 'akismet' );
   194 										<?php if ( $akismet_user->next_billing_date ) : ?>
   215 											else :
   195 										<tr>
   216 												esc_html_e( 'Active', 'akismet' );  
   196 											<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
   217 											endif; ?></p>
   197 											<td width="5%"/>
   218 									</td>
   198 											<td align="left">
   219 								</tr>
   199 												<span><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></span>
   220 								<?php if ( $akismet_user->next_billing_date ) : ?>
   200 											</td>
   221 								<tr>
   201 										</tr>
   222 									<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
   202 										<?php endif; ?>
   223 									<td width="5%"/>
   203 									</tbody>
   224 									<td align="left">
   204 								</table>
   225 										<p><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></p>
       
   226 									</td>
       
   227 								</tr>
       
   228 								<?php endif; ?>
       
   229 							</tbody>
       
   230 						</table>
       
   231 						<div class="akismet-card-actions">
       
   232 							<div id="publishing-action">
       
   233 								<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
   205 							</div>
   234 							</div>
   206 							<div id="major-publishing-actions">
   235 							<div class="clear"></div>
   207 								<div id="publishing-action">
       
   208 									<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
       
   209 								</div>
       
   210 								<div class="clear"></div>
       
   211 							</div>
       
   212 						</div>
   236 						</div>
   213 					</div>
   237 					</div>
   214 				</div>
   238 				</div>
   215 			</div>
   239 			<?php } ?>
   216 
       
   217 		<?php endif;?>
   240 		<?php endif;?>
   218 
       
   219 	</div>
   241 	</div>
   220 </div>
   242 </div>