Advertisement
nateldn

Untitled

Sep 26th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.75 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name:  Workshop Profile
  4.  *
  5.  *
  6.  * @package Customizr
  7.  * @since Customizr 1.0
  8.  */
  9. if ( apply_filters( 'czr_ms', false ) ) {
  10.   do_action( 'czr_ms_tmpl' );
  11.   return;
  12. }
  13. ?>
  14. <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
  15. <div id="main-wrapper" class="<?php echo implode(' ', apply_filters( 'tc_main_wrapper_classes' , array('container') ) ) ?>">
  16.  
  17.     <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
  18.  
  19.     <div class="container" role="main">
  20.         <div class="<?php echo implode(' ', apply_filters( 'tc_column_content_wrapper_classes' , array('row' ,'column-content-wrapper') ) ) ?>">
  21.  
  22.             <?php do_action( '__before_article_container'); ##hook of left sidebar?>
  23.  
  24.                 <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
  25.  
  26.                     <?php do_action ('__before_loop');##hooks the heading of the list of post : archive, search... ?>
  27.  
  28.                         <?php if ( czr_fn__f('__is_no_results') || is_404() ) : ##no search results or 404 cases ?>
  29.  
  30.                             <article <?php czr_fn__f('__article_selectors') ?>>
  31.                                 <?php do_action( '__loop' ); ?>
  32.                          
  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 czr_fn__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_footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement