|
1 <?php get_header(); ?> |
|
2 <div class="column span-17 colborder first" id="maincontent"> |
|
3 <div class="content"> |
|
4 <!-- This sets the $curauth variable --> |
|
5 <?php |
|
6 if(isset($_GET['author_name'])) : |
|
7 $curauth = get_userdatabylogin($author_name); |
|
8 else : |
|
9 $curauth = get_userdata(intval($author)); |
|
10 endif; |
|
11 ?> |
|
12 <div class="author"> |
|
13 <h4>About: <?php echo $curauth->nickname; ?></h4> |
|
14 <img src="<?php bloginfo('stylesheet_directory'); ?>/images/authors/<?php echo $curauth->last_name; ?>.jpg" alt="<?php echo $curauth->nickname; ?>" /> |
|
15 <h6>Profile:</h6> |
|
16 <p class="small"><?php echo $curauth->user_description; ?></p> |
|
17 <h6>Website</h6> |
|
18 <p class="small"><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></p> |
|
19 <h6>Contact:</h6> |
|
20 <p class="small"><a href="mailto:<?php echo $curauth->user_email; ?>">Email <?php echo $curauth->nickname; ?></a></p> |
|
21 </div> |
|
22 <h6 class="alignright">Posts by <?php echo $curauth->nickname; ?></h6> |
|
23 <!-- The Loop --> |
|
24 <?php if (have_posts()) : ?> |
|
25 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
|
26 <?php /* If this is a category archive */ if (is_category()) { ?> |
|
27 <h6 class="departments"><?php echo single_cat_title(); ?> Department</h6> |
|
28 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
|
29 <h6 class="departments">Entries from <?php the_time('F Y'); ?></h6> |
|
30 <?php /* If this is a search */ } elseif (is_search()) { ?> |
|
31 <h2>Search Results</h2> |
|
32 <?php } ?> |
|
33 <?php while (have_posts()) : the_post(); ?> |
|
34 <div class="entry"> |
|
35 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title"> <?php the_title(); ?></a></h2> |
|
36 |
|
37 <div class="column span-2 first"> |
|
38 <div class="byline"><?php the_time('M j, Y') ?></div> |
|
39 </div> |
|
40 |
|
41 <div class="column span-11 last"> |
|
42 <?php the_excerpt() ?> |
|
43 <div class="meta"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Read</a> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> | <strong>Tags:</strong> <?php the_category(' · ') ?></div> |
|
44 </div> |
|
45 </div> |
|
46 <hr></hr> |
|
47 <?php endwhile; ?> |
|
48 <?php else : ?> |
|
49 <h2>Welp, we couldn't find that...try again?</h2> |
|
50 <div class="entry"> |
|
51 <?php include (TEMPLATEPATH . '/searchform.php'); ?> |
|
52 </div> |
|
53 <?php endif; ?> |
|
54 <!-- End Loop --> |
|
55 <?php posts_nav_link(' · ', 'previous page', 'next page'); ?> |
|
56 </div> |
|
57 </div> |
|
58 <div class="column span-6 last"> |
|
59 <?php include (TEMPLATEPATH . '/sidebar_single.php'); ?> |
|
60 </div> |
|
61 <hr></hr> |
|
62 <?php get_sidebar(); ?> |
|
63 <?php get_footer(); ?> |