Advertisement
Guest User

woocommerce.php

a guest
Jul 3rd, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The main template file.
  4.  */
  5. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  6.  
  7. $view = 'archive';
  8. if ( is_singular() )
  9.     $view = 'single';
  10. elseif ( is_search() )
  11.     $view = 'search';
  12.  
  13. do_action( 'pojo_setup_body_classes', $view, get_post_type(), '' );
  14.  
  15. get_header();
  16.  
  17. do_action( 'pojo_get_start_layout', $view, get_post_type(), '' );
  18.  
  19. echo '<div class="hentry"><div class="entry-page">';
  20.  
  21. if ( class_exists( 'WCV_Vendor_Shop' ) ) {
  22.     WCV_Vendor_Shop::shop_description();
  23. }
  24.  
  25. woocommerce_content();
  26.  
  27. echo '</div><!-- div.entry-page --></div><!-- div.hentry -->';
  28.  
  29. do_action( 'pojo_get_end_layout', $view, get_post_type(), '' );
  30.  
  31. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement