File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/rt_affinity_wp/single.php
<?php get_header(); ?>
<?php $option = get_option('affinity-options'); ?>
<!-- Begin Main Content Column -->
<div id="vertical-sort">
<!-- Begin Section Row 3 -->
<div id="section-row3" class="section-row">
<div id="section-row3-inner">
<div id="main-body-surround" class="spacer">
<div id="main-body" class="spacing">
<div class="module-<?php echo $option['affinity_mainconstyle']; ?>">
<div class="body-surround-top">
<div class="body-surround-top2">
<div class="body-surround-top3"></div>
</div>
</div>
<!-- Begin Main Body Column -->
<div class="body-surround">
<div class="body-surround2">
<div class="body-surround3">
<div id="main-content">
<div id="maincol<?php if($option['affinity_leftsidebar_sub'] != 'true') { echo '2'; } ?>">
<div class="maincol-padding">
<?php if($option['affinity_breadcrumbs'] == 'true') { ?>
<!-- Begin Breadcrumbs -->
<div id="breadcrumbs">
<div id="breadcrumbs2">
<div id="breadcrumbs3">
<a href="<?php bloginfo('url'); ?>/" id="breadcrumbs-home"></a>
<span class="breadcrumbs pathway">
<?php
$breadcrumbs_path = get_bloginfo('template_directory');
$parent_id = $post->post_parent;
$breadcrumbs = array();
while ($parent_id) {
$page = get_page($parent_id);
$breadcrumbs[] = '<a href="'.get_permalink($page->ID).'" title="" class="pathway">'.get_the_title($page->ID).'</a>';
$parent_id = $page->post_parent;
}
$breadcrumbs = array_reverse($breadcrumbs);
foreach ($breadcrumbs as $crumb) echo $crumb.'<img alt="" src="'.$breadcrumbs_path.'/images/arrow.png"/>';
?>
<span class="no-link"><?php the_title(); ?></span>
</span>
</div>
</div>
</div>
<!-- End Breadcrumbs -->
<?php } ?>
<div class="bodycontent">
<div class="mainbody-surround">
<div id="maincontent-block">
<div class="">
<div id="page" class="full-article single-page">
<div class="">
<div class="article-rel-wrapper"></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- Begin Post -->
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if ($option['affinity_singletitle'] == 'true') { ?>
<div class="article-rel-wrapper">
<h2 class="contentheading"><?php the_title(); ?></h2>
</div>
<?php } ?>
<?php if ($option['affinity_singlemeta'] == 'true') { ?>
<div class="article-info-surround">
<div class="article-info-surround2">
<p class="articleinfo">
<?php if ($option['affinity_singlemeta_author'] == 'true') { ?>
<span class="createdby"><?php _re('Posted by'); ?> <?php the_author(); ?> <?php _re('in'); ?> <?php the_category(', ') ?></span>
<?php } ?>
<?php if ($option['affinity_singlemeta_date'] == 'true') { ?>
<span class="createdate"><?php the_time('l, j F Y H:i'); ?></span>
<?php } ?>
<?php if ($option['affinity_singlemeta_comment'] == 'true') { ?>
<a href="#comments"><span class="commentsnum"><?php comments_number(_r('No Comments'), _r('1 Comment'), _r('% Comments')); ?></span></a>
<?php } ?>
</p>
</div>
</div>
<?php } ?>
<?php if($option['affinity_single_tweetmeme'] == 'true') { ?>
<div class="tweetmeme png"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div>
<?php } ?>
<?php the_content(); ?>
<div class="clr"></div>
<?php wp_link_pages('before=<div class="pagination"><span class="pagination-name">'._r('Pages:').'</span><span class="pagination-numbers">&after=</span></div><br />'); ?>
<?php if ( has_tag() ) : ?>
<div class="yellowbox-bl">
<div class="yellowbox-br">
<div class="yellowbox-tl">
<div class="yellowbox-tr">
<div class="center">
<div class="single-tags">
<?php the_tags(_r('Tags: '), ', ', ''); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($option['affinity_single_footer'] == 'true') { ?>
<div class="entry_post_footer">
<small>
<?php _re('This entry was posted'); ?>
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
<?php _re('on'); ?> <?php the_time('l, F jS, Y') ?> <?php _re('at'); ?> <?php the_time() ?>
<?php _re('and is filed under'); ?> <?php the_category(', ') ?>.
<?php _re('You can follow any responses to this entry through the'); ?> <?php post_comments_feed_link('RSS 2.0'); ?> <?php _re('feed'); ?>.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php _re('You can'); ?> <a href="#respond"><?php _re('leave a response'); ?></a>, <?php _re('or'); ?> <a href="<?php trackback_url(); ?>" rel="trackback"><?php _re('trackback'); ?></a> <?php _re('from your own site.'); ?>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
<?php _re('Responses are currently closed, but you can'); ?> <a href="<?php trackback_url(); ?> " rel="trackback"><?php _re('trackback'); ?></a> <?php _re('from your own site.'); ?>
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _re('You can skip to the end and leave a response. Pinging is currently not allowed.'); ?>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _re('Both comments and pings are currently closed.'); ?>
<?php } edit_post_link(_r('Edit this entry'),'','.'); ?>
</small>
</div>
<?php } ?>
<br />
<?php if(comments_open()) { ?>
<a name="comments"></a>
<?php comments_template(); ?>
<?php } ?>
</div>
<!-- End Post -->
<?php endwhile; else: ?>
<span class="alert"><?php _re('Sorry, no posts matched your criteria.'); ?></span>
<?php endif; ?>
</div>
</div>
<span class="leading_separator"> </span>
</div>
</div>
<div class="mainbody-tl"></div>
<div class="mainbody-tr"></div>
<div class="mainbody-bl"></div>
<div class="mainbody-br"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Begin Left Column -->
<?php if($option['affinity_leftsidebar_sub'] == 'true') { ?>
<?php get_sidebar('left-sub'); ?>
<?php } ?>
<!-- End Left Column -->
</div>
</div>
</div>
<!-- End Main Body Column -->
<div class="body-surround-bottom">
<div class="body-surround-bottom2">
<div class="body-surround-bottom3"></div>
</div>
</div>
</div>
</div>
<!-- Begin Right Column -->
<?php if($option['affinity_rightsidebar_sub'] == 'true') { ?>
<?php get_sidebar('right-sub'); ?>
<?php } ?>
<!-- End Right Column -->
</div>
</div>
</div>
<!-- End Section Row 3 -->
<!-- Begin Section Row 4 -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('User 4') ) : ?>
<?php endif; ?>
<!-- End Section Row 4 -->
<!-- Begin Section Row 5 -->
<?php if(is_active_sidebar('user_5') || is_active_sidebar('user_6') || is_active_sidebar('user_7')) { ?>
<div id="section-row5" class="section-row">
<div id="bottom-main2">
<div id="mainmodules5" class="spacer">
<?php if(is_active_sidebar('user_5')) { ?>
<!-- Begin User 5 -->
<div class="block first" style="width: <?php echo $option['affinity_userwgetwidth']; ?>px;">
<div class="module-<?php echo $option['affinity_user5style']; ?>">
<div id="row5-block1" class="row">
<div class="body-surround-top">
<div class="body-surround-top2">
<div class="body-surround-top3"></div>
</div>
</div>
<div class="body-surround">
<div class="body-surround2">
<div class="body-surround3">
<!-- Begin Widget -->
<?php dynamic_sidebar('User 5'); ?>
<!-- End Widget -->
</div>
</div>
</div>
<div class="body-surround-bottom">
<div class="body-surround-bottom2">
<div class="body-surround-bottom3"></div>
</div>
</div>
</div>
</div>
</div>
<!-- End User 5 -->
<?php } ?>
<?php if(is_active_sidebar('user_6')) { ?>
<!-- Begin User 6 -->
<div class="block middle" style="width: <?php echo $option['affinity_userwgetwidth']; ?>px;">
<div class="module-<?php echo $option['affinity_user6style']; ?>">
<div id="row5-block2" class="row">
<div class="body-surround-top">
<div class="body-surround-top2">
<div class="body-surround-top3"></div>
</div>
</div>
<div class="body-surround">
<div class="body-surround2">
<div class="body-surround3">
<!-- Begin Widget -->
<?php dynamic_sidebar('User 6'); ?>
<!-- End Widget -->
</div>
</div>
</div>
<div class="body-surround-bottom">
<div class="body-surround-bottom2">
<div class="body-surround-bottom3"></div>
</div>
</div>
</div>
</div>
</div>
<!-- End User 6 -->
<?php } ?>
<?php if(is_active_sidebar('user_7')) { ?>
<!-- Begin User 7 -->
<div class="block last" style="width: <?php echo $option['affinity_userwgetwidth']; ?>px;">
<div class="module-<?php echo $option['affinity_user7style']; ?>">
<div id="row5-block3" class="row">
<div class="body-surround-top">
<div class="body-surround-top2">
<div class="body-surround-top3"></div>
</div>
</div>
<div class="body-surround">
<div class="body-surround2">
<div class="body-surround3">
<!-- Begin Widget -->
<?php dynamic_sidebar('User 7'); ?>
<!-- End Widget -->
</div>
</div>
</div>
<div class="body-surround-bottom">
<div class="body-surround-bottom2">
<div class="body-surround-bottom3"></div>
</div>
</div>
</div>
</div>
</div>
<!-- End User 7 -->
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<!-- End Section Row 5 -->
</div>
<!-- End Main Content Column -->
<?php get_footer(); ?>