本文整理汇总了PHP中king_news_share_buttons函数的典型用法代码示例。如果您正苦于以下问题:PHP king_news_share_buttons函数的具体用法?PHP king_news_share_buttons怎么用?PHP king_news_share_buttons使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了king_news_share_buttons函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: king_news_meta_date
?>
<?php
king_news_meta_date('loop', array('before' => '<i class="material-icons">access_time</i>'));
?>
</div>
<?php
king_news_share_buttons('loop');
?>
</div>
</div>
</figcaption>
<footer class="entry-footer">
<?php
king_news_read_more();
?>
<?php
king_news_share_buttons('loop');
?>
</footer><!-- .entry-footer -->
</figure>
</div>
</article><!-- #post-## -->
示例2: king_news_meta_author
echo $permalink;
?>
"><?php
echo $title;
?>
</a>
</h3>
<div class="widget-image-grid__footer">
<div class="widget-image-grid__footer-meta">
<?php
king_news_meta_author('both-loop-single', array('before' => esc_html__('by', 'king_news') . ' '));
?>
<a class="widget-image-grid__link" href="<?php
echo $permalink;
?>
"><i class="material-icons dp18">access_time</i><?php
echo $date;
?>
</a>
</div>
<?php
king_news_share_buttons('both-loop-single');
?>
</div>
</div>
</figcaption>
</figure>
</div>
示例3: king_news_share_buttons
<?php
/**
* Template Name: Page with social icons
*
* @package WordPress
* @since King_News
*/
?>
<div class="post-left-column">
<?php
king_news_share_buttons('page-social');
?>
</div>
<div class="post-right-column">
<?php
while (have_posts()) {
the_post();
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
示例4: while
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package king_news
*/
while (have_posts()) {
the_post();
?>
<div class="post-left-column"><?php
king_news_share_buttons('single');
?>
</div><div class="post-right-column"><?php
get_template_part('template-parts/content', 'single');
king_news_post_author_bio();
?>
</div><?php
the_post_navigation(array('next_text' => '<span class="meta-nav" aria-hidden="true">' . __('Next Post', 'king_news') . '</span> ' . '<span class="screen-reader-text">' . __('Next Post', 'king_news') . '</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __('Previous Post', 'king_news') . '</span> ' . '<span class="screen-reader-text">' . __('Previous Post', 'king_news') . '</span> ' . '<span class="post-title">%title</span>'));
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) {
comments_template();
}
}
// End of the loop.