author.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. get_header();
  3. ?>
  4. <div class="author_info">
  5. <div class="avatar" style="height: 75px;width: 75px;">
  6. <?php echo get_avatar($author) ?>
  7. </div>
  8. <div class="author-center">
  9. <h3><?php the_author() ?></h3>
  10. <div class="description"><?php echo get_the_author_meta('description') ? get_the_author_meta('description') : __("No personal profile set yet","sakurairo"); ?></div>
  11. </div>
  12. </div>
  13. <style>
  14. .author_info {
  15. margin-top: 50px;
  16. overflow: hidden;
  17. padding: 40px 0;
  18. position: relative;
  19. font-weight: var(--global-font-weight);
  20. }
  21. .author_info .avatar {
  22. float: left;
  23. margin-right: 30px;
  24. margin-left: 0px;
  25. }
  26. .author_info .avatar img {
  27. border-radius: 100%;
  28. border: 2px solid #fff;
  29. background: #fff;
  30. vertical-align: middle;
  31. }
  32. .author_info .author-center {
  33. line-height: 27px;
  34. padding-top: 10px;
  35. }
  36. .author_info .author-center h3 {
  37. font-weight: 700;
  38. font-size: 30px;
  39. line-height: 1;
  40. margin-bottom: 5px;
  41. display: inline;
  42. }
  43. .author_info .author-center .description {
  44. font-size: 14px;
  45. line-height: 2;
  46. font-weight: var(--global-font-weight);
  47. }
  48. </style>
  49. <div id="primary" class="content-area">
  50. <main id="main" class="site-main" role="main">
  51. <?php
  52. if (have_posts()) :
  53. /* Start the Loop */
  54. if (iro_opt('post_list_style') == 'akinastyle') {
  55. while (have_posts()) : the_post();
  56. get_template_part('tpl/content', get_post_format());
  57. endwhile;
  58. } else {
  59. get_template_part('tpl/content', 'thumb');
  60. }
  61. ?>
  62. <div class="clearer"></div>
  63. <?php else :
  64. get_template_part('tpl/content', 'none');
  65. endif; ?>
  66. </main><!-- #main -->
  67. <?php if (iro_opt('pagenav_style') == 'ajax') { ?>
  68. <div id="pagination"><?php next_posts_link(__(' Previous', 'sakurairo')); ?></div>
  69. <div id="add_post"><span id="add_post_time" style="visibility: hidden;" title="<?php echo iro_opt('page_auto_load', ''); ?>"></span></div>
  70. <?php } else { ?>
  71. <nav class="navigator">
  72. <?php previous_posts_link('<i class="fa-solid fa-angle-left"></i>') ?><?php next_posts_link('<i class="fa-solid fa-angle-right"></i>') ?>
  73. </nav>
  74. <?php } ?>
  75. </div><!-- #primary -->
  76. <?php
  77. get_footer();