Skip to content

Instantly share code, notes, and snippets.

@HechtMediaArts HechtMediaArts/autor.php
Last active Aug 29, 2015

Embed
What would you like to do?
Der nötige Code für die Anzeige der Autorenbox
<?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
You can’t perform that action at this time.