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 king_news_meta_author('loop', array('before' => esc_html__('by', 'king_news') . ' ')); ?> <?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(); ?>
<!-- <div class="entry-content"> <?php king_news_blog_content(); ?> </div>.entry-content --> <?php if ('post' === get_post_type()) { ?> <div class="entry-meta"> <?php king_news_meta_author('loop', array('before' => esc_html__('By', 'king_news') . ' ')); ?> <?php king_news_meta_date('loop', array('before' => '<i class="material-icons">event</i>')); king_news_meta_comments('loop', array('before' => '<i class="material-icons">mode_comment</i>', 'zero' => esc_html__('Leave a comment', 'king_news'), 'one' => '1', 'plural' => '%')); king_news_meta_tags('loop', array('before' => '<i class="material-icons">folder_open</i>', 'separator' => ', ')); ?> </div><!-- .entry-meta --> <?php king_news_share_buttons('loop'); ?> </div><!-- .entry-meta-sharing --> <?php } ?> </div> <footer class="entry-footer"> <?php