本文整理汇总了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());
示例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'));
}
}
}
示例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'));
}
}
}
示例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>
示例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'));
}
}
}
}