View difference between Paste ID: YQVkzpZv and sjPCNNzT
SHOW: | | - or go back to the newest paste.
1
<?php get_header(); ?>
2
3
		<div id="primary">  <!--home template -->
4
5
			<div id="content" role="main">
6
7
			<?php do_action( 'voodoo_pre_loop' ); ?>
8
			
9
			<?php if( is_home() && !is_paged() ) : ?>
10
11
				<?php $args = array(
12
					'posts_per_page' => 1,
13
					'post__in' => get_option( 'sticky_posts' ),
14
					'ignore_sticky_posts' => 1
15
				);
16
				$my_query = new WP_Query( $args );
17
				while ($my_query->have_posts()) : $my_query->the_post();
18
				$do_not_duplicate = $post->ID; ?>
19
				<?php get_template_part( 'content', 'featured' ); ?>
20
				<?php endwhile; ?>
21
				<?php wp_reset_postdata(); ?>
22
				
23
				<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
24
						<?php dynamic_sidebar( 'sidebar-2' ); ?>
25
				<?php endif; ?>
26
                                <?php endif; ?>
27
				
28
				<?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
29
				$more_args = array(
30
					'posts_per_page' => 9,
31
					'post__not_in' => get_option( 'sticky_posts' ),
32
					'paged' => $paged
33
				);
34
				query_posts( $more_args ); ?>
35
				
36
			
37
38
			<?php if ( have_posts() ) : ?>
39
40
				<?php voodoo_content_nav( 'nav-above' ); ?>
41
42
				<?php while ( have_posts() ) : the_post();
43
				if( $post->ID == $do_not_duplicate ) continue; ?>
44
45
					<?php $format = get_post_format();
46
					if ( false === $format )
47
						$format = 'standard';
48
						get_template_part( 'content', $format ); ?>
49
50
				<?php endwhile; ?>
51
52
				<?php voodoo_content_nav( 'nav-below' ); ?>
53
54
			<?php else : ?>
55
56
				<?php voodoo_else(); ?>
57
58
			<?php endif; ?>
59
60
			</div> <!-- #content -->
61
62
		</div> <!-- #primary -->
63
64
<?php get_sidebar(); ?>
65-
<?php get_footer(); ?>
65+
66
<?php get_footer(); ?>
67
68