* @package King_News */ ?> <article id="post-<?php the_ID(); ?> " <?php post_class('posts-list__item'); ?> > <header class="entry-header"> <?php the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>'); ?> </header><!-- .entry-header --> <div class="entry-summary"> <?php king_news_post_excerpt(array('length' => 45, 'more' => '…')); ?> </div><!-- .entry-summary --> <footer class="entry-footer"> <!-- <?php king_news_read_more(); ?> --> </footer><!-- .entry-footer --> </article><!-- #post-## -->
/** * Show blog post content * * @return void */ function king_news_blog_content($length = 25) { if (!is_singular() && wp_is_mobile()) { return; } $blog_content = get_theme_mod('blog_posts_content', king_news_theme()->customizer->get_default('blog_posts_content')); if (!in_array($blog_content, array('full', 'excerpt'))) { $blog_content = 'excerpt'; } switch ($blog_content) { case 'full': king_news_post_content(); break; case 'excerpt': king_news_post_excerpt(array('length' => $length, 'more' => '…')); break; } }