Last active
August 29, 2015 14:18
-
-
Save seoagentur-hamburg/cb87c03b97ceb13ac1bd to your computer and use it in GitHub Desktop.
Der nötige Code für die Anzeige der Autorenbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Die Biobox für jeden Autor der Website | |
* | |
*/ | |
?> | |
<div class="author-info"> | |
<?php echo get_avatar( get_the_author_meta('email'), '60' ); ?> | |
<div class="author-description"> | |
<h3><?php echo _e('Autor: ', 'revothemes'); | |
the_author(); | |
?></h3> | |
<p> | |
<?php the_author_meta('description');?> | |
</p> | |
<div class="social-network"> | |
<ul> | |
<li class="folgen">Folge dem Autor auf: </li> | |
<?php if ( get_the_author_meta( 'user_url' ) ) : | |
?> | |
<li class="social-website"><a href="<?php the_author_meta('user_url');?>" target="_blank">Website</a></li> | |
<?php endif;?> | |
<?php if ( get_the_author_meta( 'twitter' ) ) : | |
?> | |
<li class="social-twitter"><a href="<?php the_author_meta('twitter');?>" target="_blank">Twitter</a></li> | |
<?php endif;?> | |
<?php if ( get_the_author_meta( 'facebook' ) ) : | |
?> | |
<li class="social-facebook"><a href="<?php the_author_meta('facebook');?>" target="_blank">Facebook</a></li> | |
<?php endif;?> | |
<?php if ( get_the_author_meta( 'googleplus' ) ) : | |
?> | |
<li class="social-gplus"><a href="<?php the_author_meta('googleplus');?>" target="_blank">Google+</a></li> | |
<?php endif;?> | |
</ul> | |
</div><!-- end authorsites --> | |
</div><!-- end author-description --> | |
</div><!-- end author-info --> | |
<div class="clearfix"></div> | |
</div><!-- end site-info --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment