<?php get_header(); ?>
<div id="maincontent">
<div id="fade">
<div class="wrapper clearfix">
<div id="sidebar" class="clearfix">
<?php include ( TEMPLATEPATH . '/ad.php' ); ?>
</div>
<div id="content" class="clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="upload-header clearfix">
<div class="avatar"><a class="user" title="<?php the_author(); ?>" href="<?php bloginfo('url'); ?>/members/<?php echo get_the_author_meta('user_login') ?>/"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '48' ); ?></a></div>
<div class="meta clearfix">
<h1><?php the_title(); ?></h1>
<p>Posted by <strong><?php printf( __( '%s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></strong></p>
<ul>
<li class="date"><span title="<?php the_time('l, j F Y'); ?> at <?php the_time('g:i a'); ?>"><?php wp_time_since(); ?></span></li>
<li class="views"><span title="<?php userViews('',''); ?> Views"><?php userViews('',''); ?></span></li>
<li class="likes"><span><a title="# Likes" href="javascript:alert('coming soon');"><del>#</del></a></span></li>
<li class="comments"><span><?php comments_popup_link('0', '1', '%'); ?></span></li>
</ul>
</div>
</div>
<?php the_content(); ?>
<div class="tags clearfix">
<?php the_tags('<p>Tagged with:</p><ul class="clearfix"><li>','</li><li>','</li></ul>'); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php comments_template(); ?>
</div>
</div>
<!-- END:Wrapper -->
</div>
<!-- END:Fade -->
</div>
<!-- END:Main Content -->
<?php get_footer(); ?>