document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6.  
  7. get_header(); ?>
  8.  
  9. <div id="main-content" class="clearfix">
  10.  
  11. <div class="container">
  12.  
  13. <div class="col-580 left">
  14.  
  15. <?php
  16. query_posts( 'showposts=2' );
  17. if (have_posts()) :
  18. while (have_posts()) : the_post(); $category = get_the_category();
  19. ?>
  20.  
  21. <div <?php post_class(); ?>>
  22.  
  23. <div class="post-meta clearfix">
  24.  
  25. <h3 class="post-title left"><a href="<?php the_permalink() ?>" rel="bookmark" title="Zobacz artyku&#322; <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  26.  
  27. <p class="post-info right">
  28. <span>Dodany przez <?php the_author_posts_link(); ?></span>
  29. <?php the_time( 'l, j F Y' ) ?>
  30. </p>
  31.  
  32. </div><!-- End post-meta -->
  33.  
  34. <div class="post-box">
  35.  
  36. <div class="post-content">
  37.  
  38. <div class="comment-count">
  39. <?php comments_popup_link(__( '0 Komentarzy' ), __( '1 Komentarz' ), __( '% Komentarze' )); ?>
  40. </div>
  41.  
  42. <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>
  43.  
  44. <div class="post-image">
  45. <a href="<?php the_permalink() ?>" rel="bookmark" title="Zobacz artyku&#322; <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&amp;w=521&amp;h=246&amp;zc=1" alt="<?php the_title(); ?>" /></a>
  46. </div>
  47.  
  48. <?php endif; ?>
  49.  
  50. <div class="post-intro">
  51.  
  52. <?php the_content( '' ); ?>
  53.  
  54. </div><!-- End post-intro -->
  55.  
  56. </div><!-- End post-content -->
  57.  
  58. <div class="post-footer clearfix">
  59.  
  60. <div class="continue-reading">
  61. <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Czytaj dalej <?php the_title_attribute(); ?>">Czytaj dalej</a>
  62. </div>
  63.  
  64. <div class="category-menu">
  65.  
  66. <div class="category clearfix">
  67. <div><a href="#"><span class="indicator"></span> <?php echo $category[0]->cat_name; ?></a></div>
  68. </div>
  69.  
  70. <div class="dropdown">
  71.  
  72. <ul class="cat-posts">
  73. <?php
  74. $posted = get_posts( "category=" . $category[0]->cat_ID );
  75. if( $posted ) :
  76. foreach( $posted as $post ) : setup_postdata( $posted );
  77. ?>
  78. <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Zobacz artyku&#322; <?php the_title_attribute(); ?>"><?php the_title(); ?></a><span><?php the_time( ' F j, Y' ) ?></span></li>
  79. <?php
  80. endforeach;
  81. endif;
  82. ?>
  83. <li class="view-more"><a href="<?php echo get_category_link( $category[0]->cat_ID ); ?>" class="view-more">Zobacz wi&#281;cej</a></li>
  84. </ul>
  85.  
  86. </div><!-- End dropdown -->
  87.  
  88. </div><!-- End category -->
  89.  
  90. </div><!-- End post-footer -->
  91.  
  92. </div><!-- End post-box -->
  93.  
  94. </div><!-- End post -->
  95.  
  96. <?php
  97. endwhile;
  98. endif;
  99. ?>
  100.  
  101. <?php
  102. query_posts( 'showposts=4&offset=2' );
  103. if (have_posts()) : $counter = 0;
  104. while (have_posts()) : the_post(); $category = get_the_category();
  105.  
  106. if( $counter % 2 == 0 )
  107. $end = "";
  108. else
  109. $end = "last";
  110. ?>
  111.  
  112. <div <?php post_class( 'single ' . $end ); ?>>
  113.  
  114. <div class="post-meta clearfix">
  115.  
  116. <h3 class="post-title left"><a href="<?php the_permalink() ?>" rel="bookmark" title="Zobacz artyku&#322; <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  117.  
  118. </div><!-- End post-meta -->
  119.  
  120. <div class="post-box">
  121.  
  122. <div class="post-content">
  123.  
  124. <div class="comment-count">
  125. <?php comments_popup_link(__( '0 Komentarzy' ), __( '1 Komentarz' ), __( '% Komentarze' )); ?>
  126. </div>
  127.  
  128. <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>
  129.  
  130. <div class="post-image">
  131. <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&amp;w=235&amp;h=109&amp;zc=1" alt="<?php the_title(); ?>" />
  132. </div>
  133.  
  134. <?php endif; ?>
  135.  
  136. <div class="post-intro">
  137.  
  138. <?php the_excerpt( '' ); ?>
  139.  
  140. </div><!-- End post-intro -->
  141.  
  142. </div><!-- End post-content -->
  143.  
  144. <div class="post-footer clearfix">
  145.  
  146. <div class="continue-reading">
  147. <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Czytaj dalej <?php the_title_attribute(); ?>">Czytaj dalej</a>
  148. </div>
  149.  
  150. </div><!-- End post-footer -->
  151.  
  152. </div><!-- End post-box -->
  153.  
  154. </div><!-- End post -->
  155.  
  156. <?php
  157. // Clear the left float to allow for different heights
  158. if( $counter % 2 != 0 )
  159. echo'<div style="clear:left;"> </div>';
  160. ?>
  161.  
  162. <?php
  163. $counter++;
  164. endwhile;
  165. endif;
  166. ?>
  167. <br />
  168. <?php
  169. query_posts( 'showposts=6&offset=6' );
  170. if (have_posts()) :
  171. while (have_posts()) : the_post(); $category = get_the_category();
  172. ?>
  173.  
  174. <div <?php post_class( ); ?>>
  175.  
  176. <div class="post-meta clearfix">
  177.  
  178. <h3 class="post-title-small left"><a href="<?php the_permalink() ?>" rel="bookmark" title="Zobacz artyku&#322; <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  179.  
  180. <p class="post-info right">
  181. <span>Dodany przez <?php the_author_posts_link(); ?></span>
  182. <?php the_time( 'l F j, Y' ) ?>
  183. </p>
  184.  
  185. </div><!-- End post-meta -->
  186.  
  187. </div><!-- End archive -->
  188.  
  189. <?php
  190. endwhile;
  191. endif;
  192. ?>
  193.  
  194. </div><!-- End col-580 (Left Column) -->
  195.  
  196. <div class="col-340 right">
  197.  
  198. <ul id="sidebar">
  199.  
  200. <?php get_sidebar(); ?>
  201.  
  202. </ul><!-- End sidebar -->
  203.  
  204. </div><!-- End col-340 (Right Column) -->
  205.  
  206. </div><!-- End container -->
  207.  
  208. </div><!-- End main-content -->
  209.  
  210. <?php get_footer(); ?>
');