Advertisement
jegtheme

post-author-box.php

Jun 15th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.84 KB | None | 0 0
  1. <section class="author-box">
  2.     <div class="author-image">
  3.         <?php echo get_avatar( get_the_author_meta( 'ID' ), 180, null, apply_filters('jeg_get_author_name', null)) ?>
  4.     </div>
  5.     <div class="author-content">
  6.         <h2 class="author-title"><?php _e('Author','jeg_textdomain') ?></h2>
  7.         <h3 class="author-name">
  8.             <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php echo apply_filters('jeg_get_author_name', null); ?></a>
  9.         </h3>
  10.         <div class="author-socials">
  11.             <?php if ( get_the_author_meta( 'facebook' ) ): ?>
  12.                 <a target="_blank" href="<?php the_author_meta( 'facebook' ); ?>" class="facebook"><i class="fa fa-facebook-square"></i></a>
  13.             <?php endif ?>
  14.             <?php if ( get_the_author_meta( 'twitter' ) ): ?>
  15.                 <a target="_blank" href="<?php the_author_meta( 'twitter' ); ?>" class="twitter"><i class="fa fa-twitter"></i></a>
  16.             <?php endif ?>
  17.             <?php if ( get_the_author_meta( 'google' ) ): ?>
  18.                 <a target="_blank" href="<?php the_author_meta( 'google' ); ?>" class="google-plus"><i class="fa fa-google-plus"></i></a>
  19.             <?php endif ?>
  20.             <?php if ( get_the_author_meta( 'linkedin' ) ): ?>
  21.                 <a target="_blank" href="<?php the_author_meta( 'linkedin' ); ?>" class="linkedin"><i class="fa fa-linkedin"></i></a>
  22.             <?php endif ?>
  23.         </div>
  24.         <p class="author-description">
  25.             <?php echo get_the_author_meta('description'); ?>
  26.         </p>
  27.         <?php if ( get_the_author_meta('user_url') ): ?>
  28.         <p class="author-link"><i class="fa fa-link"></i>
  29.             <a target="_blank" href="<?php the_author_meta('user_url'); ?>"><?php the_author_meta('user_url'); ?></a>
  30.         </p>
  31.         <?php endif ?>
  32.     </div>
  33. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement