當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Akismet::view方法代碼示例

本文整理匯總了PHP中Akismet::view方法的典型用法代碼示例。如果您正苦於以下問題:PHP Akismet::view方法的具體用法?PHP Akismet::view怎麽用?PHP Akismet::view使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Akismet的用法示例。


在下文中一共展示了Akismet::view方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: esc_html_e

    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());
開發者ID:migumuno,項目名稱:obesity,代碼行數:31,代碼來源:start.php

示例2: display_status

 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'));
         }
     }
 }
開發者ID:valiror,項目名稱:sharingdais_demo1,代碼行數:19,代碼來源:class.akismet-admin.php

示例3: display_status

 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'));
         }
     }
 }
開發者ID:sb-xs,項目名稱:que-pour-elle,代碼行數:14,代碼來源:class.akismet-admin.php

示例4: if

													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>
開發者ID:pombredanne,項目名稱:ArcherSys,代碼行數:31,代碼來源:config.php

示例5: display_status

 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'));
             }
         }
     }
 }
開發者ID:nakamuraagatha,項目名稱:reseptest,代碼行數:28,代碼來源:class.akismet-admin.php


注:本文中的Akismet::view方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。