Ejemplo n.º 1
0
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package King_News
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<?php 
king_news_meta_categories('single');
the_title('<h1 class="entry-title">', '</h1>');
?>

		<?php 
if ('post' === get_post_type()) {
    ?>

			<div class="entry-meta">

				<?php 
    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' => '%'));
    ?>
Ejemplo n.º 2
0
?>
" <?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>' );*/
}
?>

						<div class="grid-view__footer-2">
							<div class="grid-view__author-date">
								<?php 
Ejemplo n.º 3
0
?>
 col-xl-<?php 
echo $columns_class;
?>
">
	<figure class="widget-image-grid__inner" <?php 
echo $inline_style;
?>
>
		<?php 
echo $image;
?>
		<figcaption class="widget-image-grid__content">

      <?php 
king_news_meta_categories('both-loop-single');
?>

      <div></div>

			<div class="widget-image-grid__content-2">
        <h3 class="widget-image-grid__title">
          <a href="<?php 
echo $permalink;
?>
"><?php 
echo $title;
?>
</a>
        </h3>