1. <?php
  2. /**
  3. * Page Template
  4. *
  5. * This template is the default page template. It is used to display content when someone is viewing a
  6. * singular view of a page ('page' post_type) unless another page template overrules this one.
  7. * @link http://codex.wordpress.org/Pages
  8. *
  9. * @package WooFramework
  10. * @subpackage Template
  11. */
  12. get_header();
  13. global $woo_options;
  14. ?>
  15.  
  16. <div id="content" class="page col-full">
  17. <section id="main" class="col-left">
  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.  
  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(); ?>