<?php get_header(); ?>
<?php if ( get_option( globaltheme_layoutside ) == "Right Sidebar") { ?>
<div id="container"><!-- CONTAINER -->
<div class="maincolumn"><!-- MAIN COLUMN -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="widgetwidecat">
<h1 class="widget"><?php the_category(' » ') ?></h1>
</div>
<h1><?php the_title(); ?></h1>
<p><b>
<?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
<?php } else { ?>
<?php the_time('F j, Y'); ?>
<?php } ?>
<?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
<?php } else { ?>
<?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
<?php } else { ?>
·
<?php } ?>
<?php comments_number('0 Comments','1 Comments','% Comments'); ?>
<?php } ?>
</b></p>
<?php if ( get_post_meta($post->ID, 'video', true) ) { ?>
<center><?php echo get_post_meta($post->ID, "video", true); ?></center>
<?php } else { ?>
<?php if ( get_option( globaltheme_disablepostimg ) == "Hide") { ?>
<?php } else { ?>
<?php the_post_thumbnail( 'main-image', array( 'class' => 'img-main' ) ); ?>
<?php } ?>
<?php } ?>
<?php the_content(__('Keep Reading'));?>
<?php if ( get_option( globaltheme_disableauthorname ) == "Name and Link") { ?>
<p><b>By <?php the_author_posts_link(); ?></b></p>
<?php } elseif ( get_option( globaltheme_disableauthorname ) == "Name Only") { ?>
<p><b>By <?php the_author(); ?></b></p>
<?php } else { ?>
<?php } ?>
<?php if ( get_option( globaltheme_disabletags ) == "Disable") { ?>
<?php } else { ?>
<?php echo get_the_tag_list('<p><b>Tags:</b> ',', ','</p>'); ?>
<?php } ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if ( get_option( globaltheme_disablefb ) == "Disable") { ?>
<?php } else { ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo get_permalink(); ?>" show_faces="true" width="450"></fb:like>
<div class="divider"></div>
<?php } ?>
<?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
<?php } else { ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php } ?>
</div><!-- /MAIN COLUMN -->
<div class="sidecolumn"><!-- SIDEBAR -->
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Post)') ) : else : ?>
<div class="nowidget"><b>NOTE:</b> This sidebar is empty, <a href="<?php echo get_settings('home'); ?>/wp-admin/widgets.php"><u>click here</u></a> and add widgets to the <b>Sidebar (Post)</b> widgetised area.</div>
<?php endif; ?>
</div><!-- /SIDEBAR -->
</div><!-- /CONTAINER -->
<?php } else { ?>
<div id="containeralt"><!-- CONTAINER -->
<div class="sidecolumnalt"><!-- SIDEBAR -->
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Post)') ) : else : ?>
<div class="nowidget"><b>NOTE:</b> This sidebar is empty, <a href="<?php echo get_settings('home'); ?>/wp-admin/widgets.php"><u>click here</u></a> and add widgets to the <b>Sidebar (Post)</b> widgetised area.</div>
<?php endif; ?>
</div><!-- /SIDEBAR -->
<div class="maincolumnalt"><!-- MAIN COLUMN -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="widgetwidecat">
<h1 class="widget"><?php the_category(' » ') ?></h1>
</div>
<h1><?php the_title(); ?></h1>
<p><b>
<?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
<?php } else { ?>
<?php the_time('F j, Y'); ?>
<?php } ?>
<?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
<?php } else { ?>
<?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
<?php } else { ?>
·
<?php } ?>
<?php comments_number('0 Comments','1 Comments','% Comments'); ?>
<?php } ?>
</b></p>
<?php if ( get_post_meta($post->ID, 'video', true) ) { ?>
<center><?php echo get_post_meta($post->ID, "video", true); ?></center>
<?php } else { ?>
<?php if ( get_option( globaltheme_disablepostimg ) == "Hide") { ?>
<?php } else { ?>
<?php the_post_thumbnail( 'main-image', array( 'class' => 'img-main' ) ); ?>
<?php } ?>
<?php } ?>
<?php the_content(__('Keep Reading'));?>
<?php if ( get_option( globaltheme_disableauthorname ) == "Name and Link") { ?>
<p><b>By <?php the_author_posts_link(); ?></b></p>
<?php } elseif ( get_option( globaltheme_disableauthorname ) == "Name Only") { ?>
<p><b>By <?php the_author(); ?></b></p>
<?php } else { ?>
<?php } ?>
<?php if ( get_option( globaltheme_disabletags ) == "Disable") { ?>
<?php } else { ?>
<?php echo get_the_tag_list('<p><b>Tags:</b> ',', ','</p>'); ?>
<?php } ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if ( get_option( globaltheme_disablefb ) == "Disable") { ?>
<?php } else { ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo get_permalink(); ?>" show_faces="true" width="450"></fb:like>
<div class="divider"></div>
<?php } ?>
<?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
<?php } else { ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php } ?>
</div><!-- /MAIN COLUMN -->
</div><!-- /CONTAINER -->
<?php } ?>
<?php get_footer(); ?>