Exemplo n.º 1
0
?>

								<?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-## -->
Exemplo n.º 2
0
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>
Exemplo n.º 3
0
<?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();
    ?>
>
Exemplo n.º 4
0
<?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.