Advertisement
Guest User

Untitled

a guest
Sep 18th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <?php
  2. /**
  3. * Default Page Template
  4. */
  5.  
  6. // Header
  7. get_template_part( 'header', 'page' ); // this makes $content_title available
  8.  
  9. ?>
  10.  
  11. <?php while ( have_posts() ) : the_post(); ?>
  12.  
  13. <div id="content">
  14.  
  15. <div id="content-inner"<?php if ( risen_sidebar_enabled( 'primary' ) ) : ?> class="has-sidebar"<?php endif; ?>>
  16.  
  17. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  18.  
  19. <?php if ( $content_title ) : // this comes from header-page.php; empty if no title should show at top of content ?>
  20. <header>
  21. <h1 class="page-title"><?php echo $content_title ?></h1>
  22. </header>
  23. <?php endif; ?>
  24.  
  25. <div class="post-content"> <!-- confines heading font to this content -->
  26. <?php the_content() ?>
  27. </div>
  28.  
  29. <?php
  30. // multipage nav: 1, 2, 3, etc. for when <!--nextpage--> is used in content
  31. if ( ! post_password_required() ) {
  32. wp_link_pages( array(
  33. 'before' => '<div class="box multipage-nav"><span>' . __( 'Pages:', 'risen' ) . '</span>',
  34. 'after' => '</div>'
  35. ) );
  36. }
  37. ?>
  38.  
  39. <?php if ( get_edit_post_link( $post->ID ) ) : ?>
  40. <footer class="box page-footer">
  41. <?php edit_post_link( __( 'Edit Page', 'risen' ), '<span class="edit-link">', '</span>' ); ?>
  42. </footer>
  43. <?php endif; ?>
  44.  
  45. </article>
  46.  
  47. <?php comments_template( '', true ); ?>
  48.  
  49. </div>
  50.  
  51. </div>
  52.  
  53. <?php risen_show_sidebar( 'primary' ); ?>
  54.  
  55. <?php endwhile; ?>
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement