1. <?php
  2. /**
  3. * The template for displaying all pages.
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages
  7. * and that other 'pages' on your WordPress site will use a
  8. * different template.
  9. *
  10. * @package WordPress
  11. * @subpackage Sliding_Door
  12. * @since Sliding Door 1.0
  13. */
  14.  
  15. get_header(); ?>
  16. <?php get_sidebar(); ?>
  17.  
  18. <div id="container">
  19. <div id="content" role="main">
  20.  
  21. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  22.  
  23. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  24. <?php if ( is_front_page() ) { ?>
  25. <h2 class="entry-title"><?php the_title(); ?></h2>
  26. <?php } else { ?>
  27. <h1 class="entry-title"><?php the_title(); ?></h1>
  28. <?php } ?>
  29.  
  30. <div class="entry-content">
  31. <?php the_content(); ?>
  32. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'slidingdoor' ), 'after' => '</div>' ) ); ?>
  33. <?php edit_post_link( __( 'Edit', 'slidingdoor' ), '<span class="edit-link">', '</span>' ); ?>
  34. </div><!-- .entry-content -->
  35. </div><!-- #post-## -->
  36.  
  37. <?php comments_template( '', true ); ?>
  38.  
  39. <?php endwhile; ?>
  40.  
  41. </div><!-- #content -->
  42. </div><!-- #container -->
  43.  
  44. <?php get_footer(); ?>