Advertisement
nsbalg

Untitled

May 4th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php if ( get_option( globaltheme_layoutside ) == "Right Sidebar") { ?>
  3. <div id="container"><!-- CONTAINER -->
  4. <div class="maincolumn"><!-- MAIN COLUMN -->
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <div class="widgetwidecat">
  7. <h1 class="widget"><?php the_category(' &nbsp;&raquo;&nbsp; ') ?></h1>
  8. </div>
  9. <h1><?php the_title(); ?></h1>
  10. <p><b>
  11. <?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
  12. <?php } else { ?>
  13. <?php the_time('F j, Y'); ?>
  14. <?php } ?>
  15. <?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
  16. <?php } else { ?>
  17. <?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
  18. <?php } else { ?>
  19. &nbsp;&nbsp;&middot;&nbsp;&nbsp;
  20. <?php } ?>
  21. <?php comments_number('0 Comments','1 Comments','% Comments'); ?>
  22. <?php } ?>
  23. </b></p>
  24. <?php if ( get_post_meta($post->ID, 'video', true) ) { ?>
  25. <center><?php echo get_post_meta($post->ID, "video", true); ?></center>
  26. <?php } else { ?>
  27. <?php if ( get_option( globaltheme_disablepostimg ) == "Hide") { ?>
  28. <?php } else { ?>
  29. <?php the_post_thumbnail( 'main-image', array( 'class' => 'img-main' ) ); ?>
  30. <?php } ?>
  31. <?php } ?>
  32. <?php the_content(__('Keep Reading'));?>
  33. <?php if ( get_option( globaltheme_disableauthorname ) == "Name and Link") { ?>
  34. <p><b>By <?php the_author_posts_link(); ?></b></p>
  35. <?php } elseif ( get_option( globaltheme_disableauthorname ) == "Name Only") { ?>
  36. <p><b>By <?php the_author(); ?></b></p>
  37. <?php } else { ?>
  38. <?php } ?>
  39. <?php if ( get_option( globaltheme_disabletags ) == "Disable") { ?>
  40. <?php } else { ?>
  41. <?php echo get_the_tag_list('<p><b>Tags:</b> ',', ','</p>'); ?>
  42. <?php } ?>
  43. <?php endwhile; else: ?>
  44. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  45. <?php endif; ?>
  46. <?php if ( get_option( globaltheme_disablefb ) == "Disable") { ?>
  47. <?php } else { ?>
  48. <div id="fb-root"></div>
  49. <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>
  50. <div class="divider"></div>
  51. <?php } ?>
  52. <?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
  53. <?php } else { ?>
  54. <?php comments_template(); // Get wp-comments.php template ?>
  55. <?php } ?>
  56. </div><!-- /MAIN COLUMN -->
  57. <div class="sidecolumn"><!-- SIDEBAR -->
  58. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Post)') ) : else : ?>
  59. <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>
  60. <?php endif; ?>
  61. </div><!-- /SIDEBAR -->
  62. </div><!-- /CONTAINER -->
  63. <?php } else { ?>
  64. <div id="containeralt"><!-- CONTAINER -->
  65. <div class="sidecolumnalt"><!-- SIDEBAR -->
  66. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar (Post)') ) : else : ?>
  67. <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>
  68. <?php endif; ?>
  69. </div><!-- /SIDEBAR -->
  70. <div class="maincolumnalt"><!-- MAIN COLUMN -->
  71. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  72. <div class="widgetwidecat">
  73. <h1 class="widget"><?php the_category(' &nbsp;&raquo;&nbsp; ') ?></h1>
  74. </div>
  75. <h1><?php the_title(); ?></h1>
  76. <p><b>
  77. <?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
  78. <?php } else { ?>
  79. <?php the_time('F j, Y'); ?>
  80. <?php } ?>
  81. <?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
  82. <?php } else { ?>
  83. <?php if ( get_option( globaltheme_disabledate ) == "Disable") { ?>
  84. <?php } else { ?>
  85. &nbsp;&nbsp;&middot;&nbsp;&nbsp;
  86. <?php } ?>
  87. <?php comments_number('0 Comments','1 Comments','% Comments'); ?>
  88. <?php } ?>
  89. </b></p>
  90. <?php if ( get_post_meta($post->ID, 'video', true) ) { ?>
  91. <center><?php echo get_post_meta($post->ID, "video", true); ?></center>
  92. <?php } else { ?>
  93. <?php if ( get_option( globaltheme_disablepostimg ) == "Hide") { ?>
  94. <?php } else { ?>
  95. <?php the_post_thumbnail( 'main-image', array( 'class' => 'img-main' ) ); ?>
  96. <?php } ?>
  97. <?php } ?>
  98. <?php the_content(__('Keep Reading'));?>
  99. <?php if ( get_option( globaltheme_disableauthorname ) == "Name and Link") { ?>
  100. <p><b>By <?php the_author_posts_link(); ?></b></p>
  101. <?php } elseif ( get_option( globaltheme_disableauthorname ) == "Name Only") { ?>
  102. <p><b>By <?php the_author(); ?></b></p>
  103. <?php } else { ?>
  104. <?php } ?>
  105. <?php if ( get_option( globaltheme_disabletags ) == "Disable") { ?>
  106. <?php } else { ?>
  107. <?php echo get_the_tag_list('<p><b>Tags:</b> ',', ','</p>'); ?>
  108. <?php } ?>
  109. <?php endwhile; else: ?>
  110. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  111. <?php endif; ?>
  112. <?php if ( get_option( globaltheme_disablefb ) == "Disable") { ?>
  113. <?php } else { ?>
  114. <div id="fb-root"></div>
  115. <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>
  116. <div class="divider"></div>
  117. <?php } ?>
  118. <?php if ( get_option( globaltheme_disablecomments ) == "Disable") { ?>
  119. <?php } else { ?>
  120. <?php comments_template(); // Get wp-comments.php template ?>
  121. <?php } ?>
  122. </div><!-- /MAIN COLUMN -->
  123. </div><!-- /CONTAINER -->
  124. <?php } ?>
  125. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement