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


PHP king_news_share_buttons函數代碼示例

本文整理匯總了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-## -->
開發者ID:vfedushchin,項目名稱:KingNews,代碼行數:30,代碼來源:content-grid-gallery.php

示例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>
開發者ID:vfedushchin,項目名稱:KingNews,代碼行數:31,代碼來源:tm-image-grid-view.php

示例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();
    ?>
>
開發者ID:vfedushchin,項目名稱:KingNews,代碼行數:31,代碼來源:page-with-social.php

示例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.
開發者ID:vfedushchin,項目名稱:KingNews,代碼行數:27,代碼來源:single.php


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