예제 #1
0
파일: start.php 프로젝트: migumuno/obesity
    esc_html_e('Akismet eliminates the comment and trackback spam you get on your site. To setup Akismet, select one of the options below.', 'akismet');
    ?>
</p>
<div class="activate-highlight activate-option">
	<div class="option-description">
		<strong><?php 
    esc_html_e('Activate Akismet', 'akismet');
    ?>
</strong>
		<p><?php 
    esc_html_e('Log in or create an account to get your API key.', 'akismet');
    ?>
</p>
	</div>
	<?php 
    Akismet::view('get', array('text' => __('Get your API key', 'akismet'), 'classes' => array('right', 'button', 'button-primary')));
    ?>
</div>
<div class="activate-highlight secondary activate-option">
	<div class="option-description">
		<strong><?php 
    esc_html_e('Manually enter an API key', 'akismet');
    ?>
</strong>
		<p><?php 
    esc_html_e('If you already know your API key.', 'akismet');
    ?>
</p>
	</div>
	<form action="<?php 
    echo esc_url(Akismet_Admin::get_page_url());
 public static function display_status()
 {
     $servers = self::get_server_connectivity();
     $fail_count = count($servers) - count(array_filter($servers));
     $type = '';
     if (empty($servers) || $fail_count > 0) {
         $type = 'servers-be-down';
     }
     if (!function_exists('fsockopen') || !function_exists('gethostbynamel')) {
         $type = 'missing-functions';
     }
     if (!empty($type)) {
         Akismet::view('notice', compact('type'));
     } elseif (!empty(self::$notices)) {
         foreach (self::$notices as $type) {
             Akismet::view('notice', compact('type'));
         }
     }
 }
예제 #3
0
 public static function display_status()
 {
     $type = '';
     if (!self::get_server_connectivity()) {
         $type = 'servers-be-down';
     }
     if (!empty($type)) {
         Akismet::view('notice', compact('type'));
     } elseif (!empty(self::$notices)) {
         foreach (self::$notices as $type) {
             Akismet::view('notice', compact('type'));
         }
     }
 }
예제 #4
0
													endif; ?></span>
											</td>
										</tr>
										<?php if ( $akismet_user->next_billing_date ) : ?>
										<tr>
											<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
											<td width="5%"/>
											<td align="left">
												<span><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></span>
											</td>
										</tr>
										<?php endif; ?>
									</tbody>
								</table>
							</div>
							<div id="major-publishing-actions">
								<div id="publishing-action">
									<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
								</div>
								<div class="clear"></div>
							</div>
						</div>
					</div>
				</div>
			</div>

		<?php endif;?>

	</div>
>>>>>>> b875702c9c06ab5012e52ff4337439b03918f453
</div>
 public static function display_status()
 {
     $type = '';
     if (!self::get_server_connectivity()) {
         $type = 'servers-be-down';
     }
     if (!empty($type)) {
         Akismet::view('notice', compact('type'));
     } elseif (!empty(self::$notices)) {
         foreach (self::$notices as $type) {
             if (is_object($type)) {
                 $notice_header = $notice_text = '';
                 if (property_exists($type, 'notice_header')) {
                     $notice_header = wp_kses($type->notice_header, self::$allowed);
                 }
                 if (property_exists($type, 'notice_text')) {
                     $notice_text = wp_kses($type->notice_text, self::$allowed);
                 }
                 if (property_exists($type, 'status')) {
                     $type = wp_kses($type->status, self::$allowed);
                     Akismet::view('notice', compact('type', 'notice_header', 'notice_text'));
                 }
             } else {
                 Akismet::view('notice', compact('type'));
             }
         }
     }
 }