1 | <?php /* Fusion/digitalnature */ ?>
|
---|
2 | <?php get_header(); ?>
|
---|
3 |
|
---|
4 | <!-- mid content -->
|
---|
5 | <div id="mid-content">
|
---|
6 |
|
---|
7 | <?php
|
---|
8 | // global $wp_query;
|
---|
9 | // $curauth = $wp_query->get_queried_object();
|
---|
10 |
|
---|
11 | if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name);
|
---|
12 | else : $curauth = get_userdata(intval($author));
|
---|
13 | endif;
|
---|
14 |
|
---|
15 | ?>
|
---|
16 |
|
---|
17 | <h1><?php echo $curauth->display_name; ?></h1>
|
---|
18 |
|
---|
19 | <div class="profile">
|
---|
20 | <div class="avatar left"><?php echo get_avatar($curauth->user_email, '128', $avatar); ?></div>
|
---|
21 | <div class="info">
|
---|
22 | <p>
|
---|
23 | <?php
|
---|
24 | if($curauth->user_description<>''): echo $curauth->user_description;
|
---|
25 | else: _e("This user hasn't shared any biographical information","fusion");
|
---|
26 | endif;
|
---|
27 | ?>
|
---|
28 | </p>
|
---|
29 | <?php
|
---|
30 | if(($curauth->user_url<>'http://') && ($curauth->user_url<>'')) echo '<p class="im">'.__('Homepage:','fusion').' <a href="'.$curauth->user_url.'">'.$curauth->user_url.'</a></p>';
|
---|
31 | if($curauth->yim<>'') echo '<p class="im">'.__('Yahoo Messenger:','fusion').' <a class="im_yahoo" href="ymsgr:sendIM?'.$curauth->yim.'">'.$curauth->yim.'</a></p>';
|
---|
32 | if($curauth->jabber<>'') echo '<p class="im">'.__('Jabber/GTalk:','fusion').' <a class="im_jabber" href="gtalk:chat?jid='.$curauth->jabber.'">'.$curauth->jabber.'</a></p>';
|
---|
33 | if($curauth->aim<>'') echo '<p class="im">'.__('AIM:','fusion').' <a class="im_aim" href="aim:goIM?screenname='.$curauth->aim.'">'.$curauth->aim.'</a></p>';
|
---|
34 | ?>
|
---|
35 | <div class="clear"></div>
|
---|
36 | </div>
|
---|
37 | <div class="clear"></div>
|
---|
38 | </div>
|
---|
39 | <br />
|
---|
40 |
|
---|
41 | <?php if (have_posts()): ?>
|
---|
42 | <h2 class="pagetitle"><?php printf(__('Posts by %s', 'fusion'), $curauth->display_name); ?></h2>
|
---|
43 | <?php while (have_posts()) : the_post(); ?>
|
---|
44 | <?php if (function_exists("post_class")) { ?>
|
---|
45 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
---|
46 | <?php } else { ?>
|
---|
47 | <div class="post" id="post-<?php the_ID(); ?>">
|
---|
48 | <?php } ?>
|
---|
49 | <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
|
---|
50 | <small><?php the_time(__('l, F jS, Y','fusion')) ?></small>
|
---|
51 | <p class="postmetadata"><?php the_tags(__('Tags: ','fusion'), ', ', '<br />'); ?> <?php printf(__('Posted in %s','fusion'), get_the_category_list(', '));?> | <?php edit_post_link(__('Edit','fusion'), '', ' | '); ?> <?php comments_popup_link(__('No Comments','fusion'), __('1 Comment','fusion'), __('% Comments','fusion')); ?></p>
|
---|
52 | </div>
|
---|
53 | <?php endwhile; ?>
|
---|
54 | <div class="navigation" id="pagenavi">
|
---|
55 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
56 | <?php wp_pagenavi() ?>
|
---|
57 | <?php else : ?>
|
---|
58 | <div class="alignleft"><?php next_posts_link(__('« Older Entries','fusion')) ?></div>
|
---|
59 | <div class="alignright"><?php previous_posts_link(__('Newer Entries »','fusion')) ?></div>
|
---|
60 | <div class="clear"></div>
|
---|
61 | <?php endif; ?>
|
---|
62 | </div>
|
---|
63 | <?php else : ?>
|
---|
64 | <p class="error"><?php _e('No posts found by this author.','fusion'); ?></p>
|
---|
65 | <?php endif; ?>
|
---|
66 |
|
---|
67 | </div>
|
---|
68 | <!-- mid content -->
|
---|
69 |
|
---|
70 | </div>
|
---|
71 | <!-- /mid -->
|
---|
72 |
|
---|
73 | <?php get_sidebar(); ?>
|
---|
74 |
|
---|
75 | <?php get_footer(); ?>
|
---|