Advertisement
Miryamk

Untitled

May 22nd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: 404
  4. */
  5. ?>
  6. <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
  7. <div id="main-wrapper" class="<?php echo implode(' ', apply_filters( 'tc_main_wrapper_classes' , array('container') ) ) ?>">
  8.  
  9. <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
  10.  
  11. <div class="container" role="main">
  12. <div class="<?php echo implode(' ', apply_filters( 'tc_column_content_wrapper_classes' , array('row' ,'column-content-wrapper') ) ) ?>">
  13.  
  14. <?php do_action( '__before_article_container' ); ##hook of left sidebar?>
  15.  
  16. <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( TC_utils::tc_get_layout( TC_utils::tc_id() , 'class' ) , 'article-container' ) ) ) ?>">
  17.  
  18. <?php do_action( '__before_loop' );##hooks the header of the list of post : archive, search... ?>
  19.  
  20. <?php if ( have_posts() ) : ?>
  21.  
  22. <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
  23.  
  24. <?php the_post(); ?><?php dynamic_sidebar( '404' ); ?>
  25.  
  26. <?php do_action( '__before_article' ) ?>
  27. <article <?php tc__f( '__article_selectors' ) ?>>
  28. <?php do_action( '__loop' ); ?>
  29. </article>
  30. <?php do_action( '__after_article' ) ?>
  31.  
  32. <?php endwhile; ?>
  33.  
  34. <?php endif; ##end if have posts ?>
  35.  
  36. <?php do_action( '__after_loop' );##hook of the comments and the posts navigation with priorities 10 and 20 ?>
  37.  
  38. </div><!--.article-container -->
  39.  
  40. <?php do_action( '__after_article_container' ); ##hook of left sidebar ?>
  41.  
  42. </div><!--.row -->
  43. </div><!-- .container role: main -->
  44.  
  45. <?php do_action( '__after_main_container' ); ?>
  46.  
  47. </div><!--#main-wrapper"-->
  48.  
  49. <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement