Advertisement
Guest User

SMPL page.php

a guest
Apr 26th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  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.  
  18. <?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
  19. <section id="breadcrumbs">
  20. <?php woo_breadcrumbs(); ?>
  21. </section><!--/#breadcrumbs -->
  22. <?php } ?>
  23.  
  24. <section id="main" class="col-left">
  25.  
  26. <?php
  27. if ( have_posts() ) { $count = 0;
  28. while ( have_posts() ) { the_post(); $count++;
  29. ?>
  30. <article <?php post_class(); ?>>
  31.  
  32. <header>
  33. <h1><?php the_title(); ?></h1>
  34. </header>
  35.  
  36. <section class="entry">
  37. <?php the_content(); ?>
  38.  
  39. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
  40. </section><!-- /.entry -->
  41.  
  42. <?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
  43.  
  44. </article><!-- /.post -->
  45.  
  46. <?php
  47. // Determine wether or not to display comments here, based on "Theme Options".
  48. if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
  49. comments_template();
  50. }
  51.  
  52. } // End WHILE Loop
  53. } else {
  54. ?>
  55. <article <?php post_class(); ?>>
  56. <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
  57. </article><!-- /.post -->
  58. <?php } // End IF Statement ?>
  59.  
  60. </section><!-- /#main -->
  61.  
  62. <?php get_sidebar(); ?>
  63.  
  64. </div><!-- /#content -->
  65.  
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement