Advertisement
Guest User

HIGA9891

a guest
Oct 7th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.32 KB | None | 0 0
  1. <?php global $theme; get_header(); ?>
  2.    
  3.     <div id="main">
  4.    
  5.         <?php $theme->hook('main_before'); ?>
  6. <?php get_sidebars(); ?>
  7.  
  8.         <div id="content">
  9.  
  10. <div id="days_container">
  11.     <div id="day_container">
  12.         <?php query_posts('showposts=1 &cat=10'); ?>
  13.         <?php while (have_posts()) : the_post(); ?>
  14.         <div id="day_featured_thumbnail"><?php the_post_thumbnail(array (700,900)); ?>
  15.         <?php endwhile; ?>
  16.  
  17.         </div>
  18.                         <div id="day_posts">
  19. <?php query_posts('showposts=8 &category_name=day'); ?>
  20.             <?php while (have_posts()) : the_post(); ?>
  21.                             <a class="day_posts_titles" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  22.                             <?php endwhile; ?>
  23.                                    
  24.                         </div>
  25.     </div>
  26.  
  27. </div>
  28.  
  29. <?php
  30. $temp = $wp_query;
  31. $wp_query= null;
  32. $wp_query = new WP_Query();
  33. $wp_query->query('cat=-10,-24&posts_per_page=4'.'&paged='.$paged);
  34. update_post_caches($posts);
  35.     $temp_content='';
  36.     while ($wp_query->have_posts()) : $wp_query->the_post();
  37.     $do_not_duplicate[] = $post->ID;
  38.     wp_reset_postdata();
  39.                    get_template_part('post', 'homepage');
  40.                    
  41.                
  42.  
  43.  
  44.  endwhile;
  45.  
  46.  
  47. ?>  
  48.            
  49.  
  50.            
  51.             <?php $theme->hook('content_after'); ?>
  52.  
  53. <div id="tutorials_container">
  54. <div id="featured_tutorial">
  55. <?php query_posts('showposts=1 &category_name=tutorials'); ?>
  56.             <?php while (have_posts()) : the_post(); ?>
  57.                
  58. <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
  59. <div id="tutorials_header">
  60. Oct
  61. </br>
  62. 10
  63. </div>
  64.                     <div class="tutorials_title"><?php the_title(); ?></div></a>
  65.                 <div id="tutorials_img"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php endwhile; ?><?php if ( has_post_thumbnail() ) {
  66.                     the_post_thumbnail(array (350, 240));} ?></a>
  67.  
  68.                 </div>
  69. </div>
  70. <div id="tutorials_head">
  71. <div id="tutorials_headers">
  72. <a href="tutorials">Tutorials & Freebies</a>
  73. </div>
  74. </div>
  75.  
  76. <div id="tutorials">
  77. <div id="alltutorials">
  78. <?php query_posts('showposts=5 &category_name=tutorials'); ?>
  79.             <?php while (have_posts()) : the_post();?>
  80.        <a href="<?php the_permalink(); ?>">
  81.  
  82. <ul class="tutorial_titles">
  83.  
  84.          
  85. <div class="tutorial_posts">
  86. <div><?php the_title(); ?></div>
  87. <div class="tutorial_dates">
  88. <?php the_time('l, M, d, Y') ?></div>
  89.  
  90.  
  91.  
  92. </ul>
  93. </a>
  94.  
  95.  
  96.   <?php endwhile; ?>      
  97. </div>
  98.  
  99. </div>
  100. </div>
  101.  
  102.            <div class="meta_container"></div>
  103.  
  104. <?php query_posts('cat=-10, -24&showposts=4&offset=4');
  105.   if (have_posts()) : while (have_posts()) : the_post();
  106.  if (in_array($post->ID, $do_not_duplicate)) continue;
  107.  update_post_caches($posts);
  108.  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  109.    
  110.    
  111.  
  112. get_template_part('post', 'homepage');
  113.  
  114.    endwhile; endif; ?>
  115.  
  116.  
  117.  
  118.    <div>
  119.  
  120. <div class="navigation">
  121.   <div class="alignleft"><?php previous_posts_link('&laquo; Previous') ?></div>
  122.   <div class="alignright"><?php next_posts_link('More &raquo;') ?></div>
  123. </div>
  124.  
  125.         <?php get_sidebars(); ?>
  126. <?php $wp_query = null; $wp_query = $temp;?>
  127. <?php $theme->hook('content_after'); ?>
  128.  
  129. </div>
  130.  
  131.  
  132.  
  133.  
  134.         </div><!-- #content -->
  135.  
  136.        
  137.         <?php $theme->hook('main_after'); ?>
  138.     </div>
  139.  
  140. <!-- #main -->
  141. </div><!-- #container -->
  142.  
  143.  
  144.  
  145. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement