EduardET

Extra Author Box

Nov 23rd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.24 KB | None | 0 0
  1. if ( extra_is_post_author_box() ) { ?>
  2.                         <div class="et_extra_other_module author-box vcard">
  3.                             <div class="author-box-header">
  4.                                 <h3><?php esc_html_e( 'About The Author', 'extra' ); ?></h3>
  5.                             </div>
  6.                             <div class="author-box-content clearfix">
  7.                                 <div class="author-box-avatar">
  8.                                     <?php echo get_avatar( get_the_author_meta( 'user_email' ), 170, 'mystery', esc_attr( get_the_author() ) ); ?>
  9.                                 </div>
  10.                                 <div class="author-box-description">
  11.                                     <h4><a class="author-link url fn" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author" title="<?php printf( et_get_safe_localization( __( 'View all posts by %s', 'extra' ) ), get_the_author() ); ?>"><?php echo get_the_author(); ?></a></h4>
  12.                                     <p class="note"><?php the_author_meta( 'description' ); ?></p>
  13.                                     <ul class="social-icons">
  14.                                         <?php foreach ( extra_get_author_contact_methods() as $method ) { ?>
  15.                                             <li><a href="<?php echo esc_url( $method['url'] ); ?>" target="_blank"><span class="et-extra-icon et-extra-icon-<?php echo esc_attr( $method['slug'] ); ?> et-extra-icon-color-hover"></span></a></li>
  16.                                         <?php } ?>
  17.                                     </ul>
  18.                                 </div>
  19.                             </div>
  20.                         </div>
  21.                         <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment