-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathold_author.php
129 lines (42 loc) · 1.87 KB
/
old_author.php
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
<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<!---------------------- This sets the $curauth variable ------------------------
-->
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
dprint_r($curauth);
?>
<TABLE>
<TR>
<TD><?php echo get_avatar( $curauth->user_email, '80' ); ?></TD>
<TD valign="top"><h1 style="color:#000; padding:0px;margin:0px"><?php echo $curauth->user_firstname;?> <?php echo $curauth->user_lastname;?> (<a href="<?php echo $curauth->user_url;?>"><?php echo $curauth->user_nicename;?></a>)</h1>
<?php echo $curauth->user_description; ?> <br>Added <strong><?php echo author__post_count($curauth->ID);?></strong> sessions so far.
</TD>
</TR>
</TABLE>
<br />
<!-------------------------------author ends-------------------------------------
-->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php //the_content(__('Read more'));?><div style="clear:both;"></div>
<div class="postinfo">
<?php the_time('F j, Y'); ?> | Filed Under <?php the_category(', ') ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<p><?php posts_nav_link(' — ', __('← Previous Page'), __('Next Page →')); ?></p>
</div>
<?php include(TEMPLATEPATH."/l_author_sidebar.php");?>
<?php include(TEMPLATEPATH."/r_sidebar.php");?>
</div>
<!-- The main column ends -->
<?php get_footer(); ?>