Example #1
0
    king_news_meta_author('single', array('before' => esc_html__('By', 'king_news') . ' '));
    king_news_meta_date('single', array('before' => '<i class="material-icons">access_time</i>'));
    king_news_meta_comments('single', array('before' => '<i class="material-icons">chat_bubble_outline</i>', 'zero' => esc_html__('Leave a comment', 'king_news'), 'one' => '1', 'plural' => '%'));
    ?>

			</div><!-- .entry-meta -->

		<?php 
}
?>

	</header><!-- .entry-header -->

	<figure class="post-thumbnail">
		<?php 
king_news_post_thumbnail(false);
?>
	</figure><!-- .post-thumbnail -->

	<div class="entry-content">
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'king_news'), 'after' => '</div>'));
?>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php 
king_news_meta_tags('single', array('before' => '<i class="material-icons">folder_open</i>Tagged in: ', 'separator' => ', '));
 * @package King_News
 */
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('posts-list__item card');
?>
>
	<div class="post-list__item-content">


			<figure class="grid-view-main">
				<?php 
king_news_post_thumbnail(true, '', '_tm-thumb-536-411');
?>

				<figcaption class="grid-view-figcaption">
					<?php 
king_news_meta_categories('loop');
?>

					<div class="grid-view__footer">
						<?php 
if (is_single()) {
    the_title('<h2 class="entry-title">', '</h2>');
} else {
    echo '<h3 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">' . get_short_title(50) . '</a></h3>';
    /*the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );*/
}
Example #3
0
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('posts-list__item card');
?>
>
	<div class="post-list__item-content">


			<figure class="post-thumbnail <?php 
king_news_post_thumbnail_class();
?>
 ">
				<?php 
king_news_post_thumbnail(true);
?>
				<?php 
king_news_meta_categories('loop');
?>
				<?php 
king_news_sticky_label();
?>
			</figure><!-- .post-thumbnail -->


		<div class="post-body-right">
			<header class="entry-header">

				<?php 
if (is_single()) {