document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2.  
  3. get_header();
  4. $body_classes = get_custom_body_classes();
  5. $sidebar = thb_get_option("_sidebar_works");
  6.  
  7. ?>
  8.  
  9. <?php while(have_posts()) : the_post(); ?>
  10.  
  11. <?php
  12.  
  13. /**
  14. * Retrieving post data
  15. */
  16. $post_id = get_the_ID();
  17. $post_format = get_post_format();
  18. $image = thb_get_featured_image($post_id, "large");
  19. $image_full = thb_get_featured_image($post_id, "full");
  20. $pagetitle = get_the_title();
  21. ?>
  22.  
  23.  
  24. <div style="float:right;"><?php if( !empty($sidebar) ) thb_get_sidebar($sidebar); ?></div>
  25.  
  26. <div style="float:left;">
  27. <?php // Post template ================================================================== ?>
  28.  
  29. <article id="post-<?php echo $post_id; ?>" <?php post_class(); ?>>
  30.  
  31. <?php // Post header ================================================================ ?>
  32.  
  33. <?php if( isset($pagetitle) ) : ?>
  34. <header class="page-header">
  35. <h1><?php echo $pagetitle; ?></h1>
  36. <!-- <h2><em><?php _e("by", THEMENAME); ?></em> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"><?php the_author(); ?></a></h2> -->
  37. </header>
  38. <?php endif; ?>
  39.  
  40. <?php switch( $post_format ) :
  41.  
  42. // Post format gallery ==========================================================
  43.  
  44. case 'gallery': ?>
  45.  
  46. <?php
  47. thb_component("gallery", array(
  48. "size" => "large"
  49. ));
  50.  
  51. break;
  52. ?>
  53.  
  54. <?php // Post format default ==================================================== ?>
  55.  
  56. <?php default: ?>
  57.  
  58. <div style="width:580px;"><?php if( !empty($image) ) : ?>
  59. <a href="<?php echo $image_full; ?>" class="item-image" rel="prettyPhoto" title="<?php the_title(); ?>">
  60. <span class="overlay"></span>
  61. <img src="<?php echo $image; ?>" alt="">
  62. </a>
  63. <?php endif; ?>
  64. </div>
  65.  
  66. <?php break; ?>
  67.  
  68. <?php endswitch; ?>
  69.  
  70.  
  71. <?php // Post content =============================================================== ?>
  72.  
  73. <div class="text" style="float:left;width:580px;">
  74. <?php the_content(); ?>
  75. <?php
  76. wp_link_pages(array(
  77. 'pagelink' => '<span>%</span>',
  78. 'before' => '<div id="page-links"><p><span class="pages">'. __('Pages', THEMENAME).'</span>',
  79. 'after' => '</p></div>'
  80. ));
  81. ?>
  82. </div>
  83.  
  84.  
  85. <?php // Post details =============================================================== ?>
  86.  
  87. <!-- <div class="meta">
  88. <ul>
  89. <?php // Post date ================================================================== ?>
  90. <li class="published">
  91. <time pubdate datetime="<?php echo thb_get_the_date_microformatted(); ?>">
  92. <span class="value-title" title="<?php echo thb_get_the_date_microformatted(); ?>"><?php _e("Posted on", THEMENAME); ?></span>
  93. <?php echo get_the_date(); ?>
  94. </time>
  95. </li>
  96.  
  97. <?php // Post comments number =============================================== ?>
  98.  
  99. <li class="comments-number">
  100. <a href="<?php comments_link(); ?>" title="<?php comments_number(__('0 comments', THEMENAME), __('1 comment', THEMENAME), '% comments'); ?>">
  101. <?php comments_number(__('0 comments', THEMENAME), __('1 comment', THEMENAME), '% comments'); ?>
  102. </a>
  103. </li>
  104.  
  105. <?php // Post categories ==================================================== ?>
  106.  
  107. <li class="categories">
  108. <span><?php _e("in", THEMENAME); ?> <?php the_category(', '); ?></span>
  109. </li>
  110.  
  111. <?php // Post tags ========================================================== ?>
  112.  
  113. <?php $tags = get_the_tags(); if( !empty($tags) ) : ?>
  114. <li class="tags">
  115. <span><?php _e("Tags : ", THEMENAME); ?> <?php the_tags('', ', '); ?></span>
  116. </li>
  117. <?php endif; ?>
  118.  
  119. <?php // Post author ========================================================== ?>
  120.  
  121. <li class="author">
  122. <span><?php _e("by", THEMENAME); ?> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"><?php the_author(); ?></a></span>
  123. </li>
  124.  
  125. </ul> -->
  126. </div>
  127.  
  128. </div>
  129.  
  130. <?php // Navigation between posts =============================================== ?>
  131. <div style="float:left; width:560px;">
  132.  
  133. <?php if( thb_get_option("_post_shownav") == "1" ) : ?>
  134. <nav role="navigation" class="navigation post-nav">
  135. <ul class="items-arrows">
  136. <?php if(thb_post_has_previous()) : ?>
  137. <li class="previous-arrow"><span>&larr;</span><?php previous_post_link('%link'); ?></li>
  138. <?php endif; ?>
  139. <?php if(thb_post_has_next()) : ?>
  140. <li class="next-arrow"><?php next_post_link('%link'); ?><span>&rarr;</span></li>
  141. <?php endif; ?>
  142. </ul>
  143. </nav>
  144. <?php endif; ?>
  145. </div>
  146.  
  147. </article>
  148.  
  149.  
  150.  
  151. <!-- closing the content section -->
  152.  
  153. <!-- <section class="secondary box-col span-<?php if( in_array("wout-sidebar", $body_classes) ) : ?>12<?php else : ?>8<?php endif; ?>">
  154. <?php // Post secondary content ===================================================== ?>
  155.  
  156. <?php // Posts comments ========================================================= ?>
  157.  
  158. <?php comments_template("", true); ?>
  159.  
  160. <?php // Posts comments form ==================================================== ?>
  161.  
  162. <?php if( have_comments() == "" ) : ?>
  163. <div class="no-comments col span-<?php if( in_array("wout-sidebar", $body_classes) ) : ?>12<?php else : ?>8<?php endif; ?>">
  164. <?php comment_form(); ?>
  165. </div>
  166. <?php else : ?>
  167. <div class="col span-<?php if( in_array("wout-sidebar", $body_classes) ) : ?>12<?php else : ?>8<?php endif; ?>">
  168. <?php comment_form(); ?>
  169. </div>
  170. <?php endif; ?>
  171.  
  172. <?php // Posts related items ==================================================== ?>
  173.  
  174. <?php if( thb_get_option("_post_related") == 1 ) : ?>
  175. <?php
  176. thb_component("related-entries", array(
  177. "post_type" => "post"
  178. ));
  179. ?>
  180. <?php endif; ?>
  181.  
  182. </section> -->
  183. <?php endwhile; ?>
  184. </section> <!-- closing content-wrapper section -->
  185.  
  186. </div>
  187.  
  188. <?php get_footer(); ?>
');