SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /* | |
3 | * Template Name: Blog Posts | |
4 | * @package Customizr | |
5 | * @since Customizr 3.0.12 | |
6 | */ | |
7 | ?> | |
8 | ||
9 | <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?> | |
10 | <div id="main-wrapper" class="<?php echo tc__f( 'tc_main_wrapper_classes' , 'container' ) ?>"> | |
11 | ||
12 | <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?> | |
13 | ||
14 | <div class="container" role="main"> | |
15 | <div class="<?php echo tc__f( 'tc_column_content_wrapper_classes' , 'row column-content-wrapper' ) ?>"> | |
16 | ||
17 | <?php do_action( '__before_article_container'); ##hook of left sidebar?> | |
18 | ||
19 | - | |
19 | + | |
20 | <?php query_posts('post_type=post&paged='. get_query_var('paged')); ?> | |
21 | <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?> | |
22 | ||
23 | <?php if ( tc__f('__is_no_results') || is_404() ) : ##no search results or 404 cases ?> | |
24 | <article <?php tc__f('__article_selectors') ?>> | |
25 | <?php do_action( '__loop' ); ?> | |
26 | </article> | |
27 | <?php endif; ?> | |
28 | ||
29 | <?php if ( have_posts() && !is_404() ) : ?> | |
30 | <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?> | |
31 | <?php the_post(); ?> | |
32 | <article <?php tc__f('__article_selectors') ?>> | |
33 | <?php | |
34 | do_action( '__loop' ); | |
35 | ?> | |
36 | </article> | |
37 | <?php endwhile; ?> | |
38 | ||
39 | <?php endif; ##end if have posts ?> | |
40 | ||
41 | <?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?> | |
42 | ||
43 | </div><!--.article-container --> | |
44 | ||
45 | <?php wp_reset_query(); ?> | |
46 | ||
47 | <?php do_action( '__after_article_container'); ##hook of left sidebar?> | |
48 | ||
49 | </div><!--.row --> | |
50 | </div><!-- .container role: main --> | |
51 | ||
52 | <?php do_action( '__after_main_container' ); ?> | |
53 | ||
54 | </div><!--#main-wrapper"--> | |
55 | ||
56 | <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?> |