File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/rt_nexus_wp/single.php
<?php get_header(); ?>
<?php $option = get_option('nexus-options'); ?>
<!-- Begin Main Body -->
<div id="main-body">
<div id="main-body-surround">
<div id="main-content" class="<?php echo $option['layout_subpage']; ?>">
<div class="colmask leftmenu <?php if (rok_isIe(6)) echo 'wrapper'; ?>">
<?php if (!rok_isIe(6)):?><div class="wrapper"><?php endif; ?>
<div class="colmid">
<div class="colright">
<!-- Begin Main Column (col1wrap) -->
<div class="col1wrap">
<div class="col1pad">
<div class="col1">
<div id="maincol">
<?php if($option['breadcrumbs'] == 'true') { ?>
<div id="breadcrumbs">
<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>
<?php } ?>
<div class="bodycontent">
<div id="maincontent-block">
<div class="blog single-post">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- Begin Post -->
<div class="leading">
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if ($option['single_title'] == 'true') { ?>
<!-- Begin Title -->
<div class="article-rel-wrapper">
<h2 class="contentheading">
<?php the_title(); ?>
</h2>
</div>
<!-- End Title -->
<?php } ?>
<?php if ($option['single_meta'] == 'true') { ?>
<!-- Begin Post Meta -->
<div class="article-info-surround">
<div class="article-info-surround2">
<?php if ($option['single_meta_comments'] == 'true') { ?>
<!-- Begin Comments Button -->
<div class="article-info-right">
<p class="buttonheading">
<a href="#comments" title="<?php comments_number(_r('No Comments'), _r('1 Comment'), _r('% Comments')); ?>">
<img src="<?php bloginfo('template_directory'); ?>/images/pdf_button.png" alt="<?php comments_number(_r('No Comments'), _r('1 Comment'), _r('% Comments')); ?>" />
</a>
</p>
</div>
<!-- End Comments Button -->
<?php } ?>
<?php if ($option['single_meta_author_date'] == 'true') { ?>
<!-- Begin Date & Author -->
<div class="iteminfo">
<div class="article-info-left">
<span class="createdate">
<span class="date1">
<?php the_time('M j'); ?>
</span>
<span class="date2">
<span class="date-div">|</span>
<?php the_author(); ?> • <?php the_time('H:i'); ?>
</span>
</span>
</div>
</div>
<!-- End Date & Author -->
<?php } ?>
</div>
</div>
<!-- End Post Meta -->
<?php } ?>
<!-- Begin Post Text -->
<div class="main-text">
<?php if($option['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="tag-box">
<?php the_tags('<span>'._r('TAGS:').' </span>', ', ', ''); ?>
</div>
<?php endif; ?>
<?php if ($option['single_footer'] == 'true') { ?>
<br />
<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 } ?>
<?php if(comments_open()) { ?>
<a name="comments"></a>
<?php comments_template(); ?>
<?php } ?>
</div>
<div class="clr"></div>
<!-- End Post Text -->
</div>
</div>
<span class="leading_separator"> </span>
<!-- End Post -->
<?php endwhile; ?>
<?php else : ?>
<span class="attention"><?php _re('Sorry, no posts matched your criteria.'); ?></span>
<?php endif; ?>
</div>
</div>
</div>
<div class="clr"></div>
</div>
</div>
</div>
</div>
<!-- End Main Column (col1wrap) -->
<!-- Begin Left Column (col2) -->
<?php if($option['left_sub_sidebar'] == 'true') { ?>
<?php get_sidebar('left-sub'); ?>
<?php } ?>
<!-- End Left Column (col2) -->
<!-- Begin Right Column (col3) -->
<?php if($option['right_sub_sidebar'] == 'true') { ?>
<?php get_sidebar('right-sub'); ?>
<?php } ?>
<!--End Right Column (col3)-->
</div>
</div>
<?php if (!rok_isIe(6)):?></div><?php endif; ?>
</div>
</div>
</div>
</div>
<!-- End Main Body -->
<?php if(is_active_sidebar('user_1') || is_active_sidebar('user_2') || is_active_sidebar('user_3')) { ?>
<!-- Begin Bottom Section -->
<div id="bottom">
<div class="wrapper">
<div id="mainmodules4" class="spacer w49">
<?php if(is_active_sidebar('user_1')) { ?>
<!-- Begin Widget -->
<div class="fullblock first">
<div class="<?php echo $option['bottom_widget_1']; ?>">
<div class="moduletable">
<div class="module-surround">
<div class="module-surround2"></div>
<div class="module-surround3"></div>
<div class="module-surround4"></div>
<div class="module-surround5"></div>
<!-- Begin Widget Content -->
<?php dynamic_sidebar('User 1'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
<?php if(is_active_sidebar('user_2')) { ?>
<!-- Begin Widget -->
<div class="block middle">
<div class="<?php echo $option['bottom_widget_2']; ?>">
<div class="moduletable">
<div class="module-surround">
<div class="module-surround2"></div>
<div class="module-surround3"></div>
<div class="module-surround4"></div>
<div class="module-surround5"></div>
<!-- Begin Widget Content -->
<?php dynamic_sidebar('User 2'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
<?php if(is_active_sidebar('user_3')) { ?>
<!-- Begin Widget -->
<div class="block last">
<div class="<?php echo $option['bottom_widget_3']; ?>">
<div class="moduletable">
<div class="module-surround">
<div class="module-surround2"></div>
<div class="module-surround3"></div>
<div class="module-surround4"></div>
<div class="module-surround5"></div>
<!-- Begin Widget Content -->
<?php dynamic_sidebar('User 3'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
</div>
</div>
</div>
<!-- End Bottom Section -->
<?php } ?>
<?php if(is_active_sidebar('bottom_feature_1') || is_active_sidebar('bottom_feature_2') || is_active_sidebar('bottom_feature_3')) { ?>
<!-- Begin Bottom Feature -->
<div id="bottom2">
<div class="wrapper">
<div id="mainmodules3" class="spacer w33">
<?php if(is_active_sidebar('bottom_feature_1')) { ?>
<!-- Begin Widget -->
<div class="block first">
<div class="">
<div class="moduletable">
<!-- Begin Widget Content -->
<?php dynamic_sidebar('Bottom Feature 1'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
<?php if(is_active_sidebar('bottom_feature_2')) { ?>
<!-- Begin Widget -->
<div class="block middle">
<div class="">
<div class="moduletable">
<!-- Begin Widget Content -->
<?php dynamic_sidebar('Bottom Feature 2'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
<?php if(is_active_sidebar('bottom_feature_3')) { ?>
<!-- Begin Widget -->
<div class="block last">
<div class="">
<div class="moduletable">
<!-- Begin Widget Content -->
<?php dynamic_sidebar('Bottom Feature 3'); ?>
<!-- End Widget Content -->
</div>
</div>
</div>
<!-- End Widget -->
<?php } ?>
</div>
</div>
</div>
<!-- End Bottom Feature -->
<?php } ?>
<?php get_footer(); ?>