?> </div> <div class="post-footer"> <div class="post-statistic"> <?php echo get_post_like(get_the_ID()); ?> <span class="views"><svg><use xlink:href="#views" /></svg><span><?php if (function_exists('get_views_count')) { echo get_views_count(get_the_ID()); } ?> </span></span> </div> <?php sergeymotovilets_entry_footer($post->ID); ?> </div><!-- .entry-footer --> <!-- BEGIN Related posts --> <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach ($tags as $tag) { $tag_id[] = $tag->term_id; } $args = array('post_type' => 'post', 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'posts_per_page' => 6, 'caller_get_posts' => 1); $query = new WP_Query($args); if ($query->have_posts()) { ?>
<header class="entry-header"> <?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?> <?php if ('post' === get_post_type()) { ?> <div class="entry-meta"> <?php sergeymotovilets_posted_on(); ?> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <footer class="entry-footer"> <?php sergeymotovilets_entry_footer(); ?> </footer><!-- .entry-footer --> </article><!-- #post-## -->