Advertisement
Guest User

theme Custominzr - index.php - 002

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