Advertisement
Ornela

my index

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