authorprofile.php 1.1 KB

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * AUTHOR PROFILE
  4. */
  5. if (iro_opt('author_profile') == '1') {
  6. $author_description = get_the_author_meta( 'description' ) ? get_the_author_meta( 'description' ) :iro_opt('author_profile_text', 'Carpe Diem and Do what I like');
  7. ?>
  8. <section class="author-profile">
  9. <div class="info" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
  10. <a href="<?= esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" class="profile gravatar"><img src="<?php echo get_avatar_profile_url(); ?>" itemprop="image" alt="<?php the_author(); ?>" height="70" width="70"></a>
  11. <div class="meta">
  12. <span class="title"><?php esc_html_e('Author', 'akina'); ?></span>
  13. <h3 itemprop="name">
  14. <a href="<?= esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" itemprop="url" rel="author"><?php the_author(); ?></a>
  15. </h3>
  16. </div>
  17. </div>
  18. <?php if($author_description){/*TODO: <hr>实际上没有显示出来,高度为0*/?>
  19. <hr>
  20. <p><i class="iconfont icon-write"></i><?=$author_description ?></p>
  21. <?php
  22. }
  23. ?>
  24. </section>
  25. <?php } ?>