File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/rt_nexus_wp/page.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 custom-page">
<?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['page_title'] == 'true') { ?>
<!-- Begin Title -->
<div class="article-rel-wrapper">
<h2 class="contentheading">
<?php the_title(); ?>
</h2>
</div>
<!-- End Title -->
<?php } ?>
<?php if ($option['page_meta'] == 'true') { ?>
<!-- Begin Post Meta -->
<div class="article-info-surround">
<div class="article-info-surround2">
<?php if ($option['page_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['page_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['page_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 edit_post_link(_r('Edit this entry.'), '', ''); ?>
<?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 pages 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(); ?>