Guest User

Untitled

a guest
May 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Home
  4. *
  5. * This template is a full-width version of the page.php template file. It removes the sidebar area.
  6. *
  7. * @package WooFramework
  8. * @subpackage Template
  9. */
  10. get_header();
  11. global $woo_options;
  12. ?>
  13.  
  14. <div id="content" class="page col-full">
  15. <section id="main" class="col-right">
  16.  
  17. <?php get_template_part( 'includes/advanced-search-form' ); ?>
  18.  
  19. <?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
  20. <section id="breadcrumbs">
  21. <?php woo_breadcrumbs(); ?>
  22. </section><!--/#breadcrumbs -->
  23. <?php } ?>
  24.  
  25. <?php
  26. if ( have_posts() ) { $count = 0;
  27. while ( have_posts() ) { the_post(); $count++;
  28. ?>
  29. <article <?php post_class(); ?>>
  30.  
  31. <header>
  32. <h1><?php the_title(); ?></h1>
  33. </header>
  34.  
  35. <section class="entry">
  36. <?php the_content(); ?>
  37.  
  38. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
  39. </section><!-- /.entry -->
  40.  
  41. <?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
  42.  
  43. </article><!-- /.post -->
  44.  
  45. <?php
  46. // Determine wether or not to display comments here, based on "Theme Options".
  47. if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
  48. comments_template();
  49. }
  50.  
  51. } // End WHILE Loop
  52. } else {
  53. ?>
  54. <article <?php post_class(); ?>>
  55. <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
  56. </article><!-- /.post -->
  57. <?php } // End IF Statement ?>
  58.  
  59. </section><!-- /#main -->
  60.  
  61. <?php get_sidebar(); ?>
  62.  
  63. </div><!-- /#content -->
  64.  
  65. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment