content-status.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Template part for displaying posts.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Akina
  8. */
  9. ?>
  10. <article class="post post-list" itemscope="" itemtype="http://schema.org/BlogPosting">
  11. <div class="post-status">
  12. <div class="postava">
  13. <a href="javascript:;">
  14. <img alt="<?php the_author(); ?>" src="<?php echo get_avatar_profile_url(); ?>" class="avatar avatar-64 photo" height="64" width="64">
  15. </a>
  16. </div>
  17. <div class="s-content">
  18. <p><?php echo mb_strimwidth(strip_shortcodes(strip_tags(apply_filters('the_content', $post->post_content))), 0, 150,"...");?></p>
  19. <div class="s-time">
  20. <?php if(is_sticky()) : ?>
  21. <i class="fa-regular fa-gem"></i>
  22. <?php endif ?>
  23. <i class="fa-regular fa-clock"></i><?php echo poi_time_since(strtotime($post->post_date));//the_time('Y-m-d');?>
  24. </div>
  25. </div>
  26. <footer class="entry-footer">
  27. <div class="info-meta">
  28. <div class="comnum">
  29. <span><i class="fa-regular fa-comment"></i>
  30. <?php comments_popup_link(__("NOTHING","sakurairo"), __("1 Comment","sakurairo")/*条评论*/, '% '.__("Comments","sakurairo")/*条评论*/,'',__("Comment Closed","sakurairo")/**评论关闭 */); ?>
  31. </span>
  32. </div>
  33. <div class="views">
  34. <span><i class="fa-regular fa-eye"></i><?php echo get_post_views(get_the_ID()).' '._n('Hit','Hits',get_post_views(get_the_ID()),'sakurairo')/*热度*/?></span>
  35. </div>
  36. </div>
  37. </footer><!-- .entry-footer -->
  38. </div>
  39. <hr>
  40. </article><!-- #post-## -->