daily pastebin goal
67%
SHARE
TWEET

theme Custominzr - index.php

a guest Jan 23rd, 2014 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The main template file. Includes the loop.
  4.  *
  5.  *
  6.  * @package Customizr
  7.  * @since Customizr 1.0
  8.  */
  9. ?>
  10. <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
  11. <div id="main-wrapper" class="<?php echo tc__f( 'tc_main_wrapper_classes' , '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.         <div class="row">
  17.  
  18.             <?php do_action( '__before_article_container'); ##hook of left sidebar?>
  19.                
  20.                 <div id="content" class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
  21.                    
  22.                     <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
  23.  
  24.                         <?php if ( tc__f('__is_no_results') || is_404() ) : ##no search results or 404 cases ?>
  25.  
  26.                             <article <?php tc__f('__article_selectors') ?>>
  27.                                 <?php do_action( '__loop' ); ?>
  28.                             </article>
  29.                            
  30.                         <?php endif; ?>
  31.  
  32.                         <?php if ( have_posts() && !is_404() ) : ?>
  33.                             <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
  34.                                 <?php the_post(); ?>
  35.  
  36.                                 <?php do_action ('__before_article') ?>
  37.                                     <article <?php tc__f('__article_selectors') ?>>
  38.                                         <?php do_action( '__loop' ); ?>
  39.                                     </article>
  40.                                 <?php do_action ('__after_article') ?>
  41.  
  42.                             <?php endwhile; ?>
  43.  
  44.                         <?php endif; ##end if have posts ?>
  45.  
  46.                     <?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
  47.  
  48.                 </div><!--.article-container -->
  49.  
  50.            <?php do_action( '__after_article_container'); ##hook of left sidebar ?>
  51.  
  52.         </div><!--.row -->
  53.     </div><!-- .container role: main -->
  54.  
  55.     <?php do_action( '__after_main_container' ); ?>
  56.  
  57. </div><!--#main-wrapper"-->
  58.  
  59. <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top