Advertisement
Guest User

Customizr blog php

a guest
May 15th, 2014
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  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. <?php tc__f('rec' , __FILE__ , __FUNCTION__ ); ?>
  11. <div id="main-wrapper" class="container">
  12.  
  13. <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
  14.  
  15. <div class="container" role="main">
  16. <?php /*?> <div class="row"><?php */?>
  17. <div class="<?php echo tc__f( 'tc_column_content_wrapper_classes' , 'row column-content-wrapper' ) ?>">
  18.  
  19. <?php do_action( '__before_article_container'); ##hook of left sidebar?>
  20.  
  21. <?php query_posts('post_type=post&post_status=publish&posts_per_page=10&paged='. get_query_var('paged')); ?>
  22.  
  23. <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
  24.  
  25. <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
  26.  
  27. <?php if ( tc__f('__is_no_results') || is_404() ) : ##no search results or 404 cases ?>
  28. <article <?php tc__f('__article_selectors') ?>>
  29. <?php do_action( '__loop' ); ?>
  30. </article>
  31. <?php endif; ?>
  32.  
  33. <?php if ( have_posts() && !is_404() ) : ?>
  34. <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
  35. <?php the_post(); ?>
  36. <article <?php tc__f('__article_selectors') ?>>
  37. <?php
  38. do_action( '__loop' );
  39. ?>
  40. </article>
  41. <?php endwhile; ?>
  42.  
  43. <?php endif; ##end if have posts ?>
  44.  
  45. <?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
  46.  
  47. </div><!--.article-container -->
  48.  
  49. <?php wp_reset_query(); ?>
  50.  
  51. <?php do_action( '__after_article_container'); ##hook of left sidebar?>
  52.  
  53. </div><!--.row -->
  54. </div><!-- .container role: main -->
  55.  
  56. <?php do_action( '__after_main_container' ); ?>
  57.  
  58. </div><!--#main-wrapper"-->
  59.  
  60. <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement