当前位置: 首页>>代码示例>>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;未经允许,请勿转载。