Repository navigation
Expand file tree
/
Copy pathauthor.php
More file actions
70 lines (64 loc) · 4.66 KB
/
Copy pathauthor.php
File metadata and controls
70 lines (64 loc) · 4.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php get_header(); ?>
<div class="content">
<?php tie_breadcrumbs() ?>
<?php if ( have_posts() ): the_post(); ?>
<div class="page-head">
<h2 class="page-title">
<?php printf( __( 'Author Archives: %s', 'tie' ), get_the_author() ); ?>
</h2>
<?php if( tie_get_option( 'author_rss' ) ): ?>
<a class="rss-cat-icon ttip" title="<?php _e( 'Feed Subscription', 'tie' ); ?>" href="<?php echo get_author_feed_link( get_the_author_meta('ID') ); ?>"></a>
<?php endif; ?>
<div class="stripe-line"></div>
<?php if( tie_get_option( 'author_bio' ) ): ?>
<div class="author-bio">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'tie_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
<div class="author-social">
<?php if ( get_the_author_meta( 'url' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'url' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( " 's site", 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_site.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'twitter' ) ) : ?>
<a class="ttip" href="http://twitter.com/<?php the_author_meta( 'twitter' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Twitter', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_twitter.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'facebook' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'facebook' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Facebook', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_facebook.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'google' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'google' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Google+', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_google.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'linkedin' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'linkedin' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Linkedin', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_linkedin.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'flickr' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'flickr' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Flickr', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_flickr.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'youtube' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'youtube' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on YouTube', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_youtube.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'pinterest' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'pinterest' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Pinterest', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_pinterest.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'behance' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'behance' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Behance', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_behance.png" width="18" height="18" alt="" /></a>
<?php endif ?>
<?php if ( get_the_author_meta( 'instagram' ) ) : ?>
<a class="ttip" href="<?php the_author_meta( 'instagram' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Instagram', 'tie' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/author_instagram.png" width="18" height="18" alt="" /></a>
<?php endif ?>
</div>
</div>
<?php endif; ?>
</div><!-- .page-head /-->
<?php endif; ?>
<?php
rewind_posts();
get_template_part( 'loop', 'author' );
?>
<?php if ($wp_query->max_num_pages > 1) tie_pagenavi(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>