本文整理汇总了PHP中Jetpack::get_jp_emblem方法的典型用法代码示例。如果您正苦于以下问题:PHP Jetpack::get_jp_emblem方法的具体用法?PHP Jetpack::get_jp_emblem怎么用?PHP Jetpack::get_jp_emblem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jetpack
的用法示例。
在下文中一共展示了Jetpack::get_jp_emblem方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jetpack_show_user_connected_icon
function jetpack_show_user_connected_icon($val, $col, $user_id)
{
if ('user_jetpack' == $col && Jetpack::is_user_connected($user_id)) {
$emblem_html = sprintf('<a title="%1$s" class="jp-emblem-user-admin">%2$s</a>', esc_attr__('This user is linked and ready to fly with Jetpack.', 'jetpack'), Jetpack::get_jp_emblem());
return $emblem_html;
}
return $val;
}
示例2: get_emblem
function get_emblem()
{
return '<div class="jp-emblem">' . Jetpack::get_jp_emblem() . '</div>';
}
示例3: stats_msg
/**
* Display message in editor prompting user to enable stats.
*
* @since 3.9.0
*/
function stats_msg()
{
$stats_active = Jetpack::is_module_active('stats');
$normalized_site_url = Jetpack::build_raw_urls(get_home_url());
?>
<div class="jp-jitm">
<a href="#" data-module="stats" class="dismiss"><span class="genericon genericon-close"></span></a>
<div class="jp-emblem">
<?php
echo Jetpack::get_jp_emblem();
?>
</div>
<p class="msg">
<?php
esc_html_e('Track detailed stats on this post and the rest of your site.', 'jetpack');
?>
</p>
<?php
if (!$stats_active) {
?>
<p>
<img class="j-spinner hide" src="<?php
echo esc_url(includes_url('images/spinner-2x.gif'));
?>
" alt="<?php
echo esc_attr__('Loading...', 'jetpack');
?>
" /><a href="#" data-module="stats" data-module-success="<?php
esc_attr_e('Success! Jetpack Stats is now activated.', 'jetpack');
?>
" class="activate button"><?php
esc_html_e('Enable Jetpack Stats', 'jetpack');
?>
</a>
</p>
<?php
}
// stats inactive
?>
<p class="show-after-enable <?php
echo $stats_active ? '' : 'hide';
?>
">
<a href="<?php
echo esc_url('https://wordpress.com/stats/insights/' . $normalized_site_url);
?>
" target="_blank" title="<?php
esc_attr_e('Go to WordPress.com', 'jetpack');
?>
" data-module="stats" class="button button-jetpack launch show-after-enable"><?php
esc_html_e('Go to WordPress.com', 'jetpack');
?>
</a>
</p>
</div>
<?php
//jitm is being viewed, track it
$jetpack = Jetpack::init();
$jetpack->stat('jitm', 'post-stats-viewed-' . JETPACK__VERSION);
$jetpack->do_stats('server_side');
}
示例4: render_notice_header
function render_notice_header()
{
?>
<div class="jp-idc-notice__header">
<div class="jp-idc-notice__header__emblem">
<?php
echo Jetpack::get_jp_emblem();
?>
</div>
<p class="jp-idc-notice__header__text">
<?php
esc_html_e('Jetpack Safe Mode', 'jetpack');
?>
</p>
</div>
<div class="jp-idc-notice__separator"></div>
<?php
}