style-classic.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Template part for displaying page content in page.php
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package WordPress
  8. * @subpackage Taskereasy
  9. * @since 1.0
  10. * @version 1.0
  11. */
  12. ?>
  13. <article <?php post_class('post-container'); ?>>
  14. <?php if(has_post_thumbnail()){ ?>
  15. <div class="post-thumbnail">
  16. <a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a>
  17. </div>
  18. <?php } ?>
  19. <div class="post-meta">
  20. <ul>
  21. <li><?php echo esc_html__('By:', 'taskereasy') ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a></li>
  22. <li><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></li>
  23. <li><?php the_category(); ?></li>
  24. </ul>
  25. </div>
  26. <h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  27. <div class="excerpt"><?php echo taskereasy_custom_excerpt_length(19); ?></div>
  28. <a href="<?php echo get_the_permalink(); ?>" class="btn"><?php echo esc_html__ ('Read More', 'taskereasy'); ?> <i class="fa fa-angle-right"></i></a>
  29. </article>