Advertisement
Guest User

page.php

a guest
Jul 31st, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) exit;
  3. /**
  4. * Page Template
  5. *
  6. * This template is the default page template. It is used to display content when someone is viewing a
  7. * singular view of a page ('page' post_type) unless another page template overrules this one.
  8. * @link http://codex.wordpress.org/Pages
  9. *
  10. * @package WooFramework
  11. * @subpackage Template
  12. */
  13. get_header();
  14. global $woo_options;
  15. ?>
  16.  
  17. <div id="content" class="page col-full">
  18.  
  19. <?php woo_main_before(); ?>
  20.  
  21. <section id="main" class="col-left">
  22.  
  23. <?php
  24. if ( have_posts() ) { $count = 0;
  25. while ( have_posts() ) { the_post(); $count++;
  26. ?>
  27. <article <?php post_class(); ?>>
  28.  
  29. <div class="inner">
  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. </div><!-- /.inner -->
  44.  
  45. </article><!-- /.post -->
  46.  
  47. <?php
  48. // Determine wether or not to display comments here, based on "Theme Options".
  49. if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
  50. comments_template();
  51. }
  52.  
  53. } // End WHILE Loop
  54. } else {
  55. ?>
  56. <article <?php post_class(); ?>>
  57. <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
  58. </article><!-- /.post -->
  59. <?php } // End IF Statement ?>
  60.  
  61. </section><!-- /#main -->
  62.  
  63. <?php woo_main_after(); ?>
  64.  
  65. <?php get_sidebar(); ?>
  66.  
  67. </div><!-- /#content -->
  68.  
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement