Advertisement
Guest User

Customizr - index.php

a guest
Jan 23rd, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.80 KB | None | 0 0
  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. <br>
  13. <?php if(is_home() && !is_paged()):?><div align="center">
  14. <span style="font-size: large;"><?php _e('Yellow Bridge is an international knowledge center that inspires <br> and supports small and medium organizations
  15. to improve their performance through sustainability.','customizr'); ?><br></span></div><?php endif;?>
  16.  
  17.  
  18.     <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
  19.    
  20.     <div class="container" role="main">
  21.         <div class="row">
  22.  
  23.             <?php do_action( '__before_article_container'); ##hook of left sidebar?>
  24.                
  25.                 <div id="content" class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
  26.                    
  27.                     <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
  28.  
  29.                         <?php if ( tc__f('__is_no_results') || is_404() ) : ##no search results or 404 cases ?>
  30.  
  31.                             <article <?php tc__f('__article_selectors') ?>>
  32.                                 <?php do_action( '__loop' ); ?>
  33.                             </article>
  34.                            
  35.                         <?php endif; ?>
  36.  
  37.                         <?php if ( have_posts() && !is_404() ) : ?>
  38.                             <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
  39.                                 <?php the_post(); ?>
  40.  
  41.                                 <?php do_action ('__before_article') ?>
  42.                                     <article <?php tc__f('__article_selectors') ?>>
  43.                                         <?php do_action( '__loop' ); ?>
  44.                                     </article>
  45.                                 <?php do_action ('__after_article') ?>
  46.  
  47.                             <?php endwhile; ?>
  48.  
  49.                         <?php endif; ##end if have posts ?>
  50.  
  51.                     <?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
  52.  
  53.                 </div><!--.article-container -->
  54.  
  55.            <?php do_action( '__after_article_container'); ##hook of left sidebar ?>
  56.  
  57.         </div><!--.row -->
  58.     </div><!-- .container role: main -->
  59.  
  60.     <?php do_action( '__after_main_container' ); ?>
  61.  
  62. </div><!--#main-wrapper"-->
  63.  
  64. <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement