1
|
1 |
<?php get_header();?> |
|
2 |
<div class="main-container"> |
|
3 |
|
|
4 |
<?php |
|
5 |
if(get_query_var('author_name')) : |
|
6 |
$curauth = get_userdatabylogin(get_query_var('author_name')); |
|
7 |
else : |
|
8 |
$curauth = get_userdata(get_query_var('author')); |
|
9 |
endif; |
|
10 |
?> |
|
11 |
|
|
12 |
<div class="title-area"> |
|
13 |
Below are <?php echo $curauth->first_name; ?>'s Articles: |
|
14 |
</div><!--title-area--> |
|
15 |
|
|
16 |
<?php if(have_posts()):?><?php while(have_posts()):the_post();?> |
|
17 |
<div class="retweet-btn-small"> |
|
18 |
<script type="text/javascript"> |
|
19 |
tweetmeme_url = '<?php the_permalink();?>'; |
|
20 |
tweetmeme_source = '<?php echo $apa_Twitter;?>'; |
|
21 |
tweetmeme_style = 'compact'; |
|
22 |
</script> |
|
23 |
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> |
|
24 |
</div><!--retweet-btn--> |
|
25 |
|
|
26 |
<div class="post-title"> |
|
27 |
<a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
28 |
<?php the_title();?> |
|
29 |
</a> |
|
30 |
</div><!--post-title--> |
|
31 |
<div class="post-meta-data"> |
|
32 |
Added <?php the_time('M j, Y');?>, Under: <?php the_category(',')?> |
|
33 |
</div><!--post-meta-data--> |
|
34 |
|
|
35 |
<?php if ( has_post_thumbnail() ) { ?> |
|
36 |
<a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
37 |
<?php the_post_thumbnail(array(), array('class' => 'thumbs-in-archive')); ?> |
|
38 |
</a> |
|
39 |
<?php } elseif (get_post_meta($post->ID, 'image', true) ) {?> |
|
40 |
<a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
41 |
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image', $single = true); ?>&h=65&w=195&zc=1&q=100" alt="<?php the_title(); ?>" class="thumbs-in-archive"/> |
|
42 |
</a> |
|
43 |
<?php } ?> |
|
44 |
|
|
45 |
<div class="post-excerpt"> |
|
46 |
<?php the_excerpt();?> |
|
47 |
</div><!--post-excerpt--> |
|
48 |
<div class="author-box-small"> |
|
49 |
By <?php the_author_posts_link(); ?> with <?php comments_number('0 comments', '1 comment', '% comments');?> |
|
50 |
</div><!--author-box--> |
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
<?php endwhile;?> |
|
56 |
|
|
57 |
<?php if(function_exists('wp_pagenavi')){ |
|
58 |
wp_pagenavi();}else{?> |
|
59 |
<div class="next-prev-links"> |
|
60 |
<?php posts_nav_link(); ?> |
|
61 |
</div> |
|
62 |
<?php } ?> |
|
63 |
|
|
64 |
<?php endif;?> |
|
65 |
</div><!--main-container--> |
|
66 |
<?php get_sidebar();?> |
|
67 |
<?php get_footer();?> |