auth-details.php 854 B

123456789101112131415161718
  1. <?php if( !is_attachment() ): ?>
  2. <article class="blog-author media">
  3. <figure class="avatar">
  4. <?php echo get_avatar( $post->post_author , 250 ); ?>
  5. </figure>
  6. <div class="media-body align-self-center">
  7. <h5 class="post-by"><?php esc_html_e( 'Written by:' , 'spice-software' );?></h5>
  8. <h4 class="name"><?php spice_software_get_author_name( $post );?></h4>
  9. <p class="mb-2">
  10. <?php
  11. $spice_software_user_data = get_user_meta( $post->post_author );
  12. echo esc_html( $spice_software_user_data['description'][0] );
  13. ?>
  14. </p>
  15. <p><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" class="text-default"><?php esc_html_e('View All Posts','spice-software' );?> <i class="fa fa-long-arrow-right pl-2"></i></a></p>
  16. </div>
  17. </article>
  18. <?php endif;?>