page-custom.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /*
  3. Template Name: Custom Page Example
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="content" class="clear">
  8. <div id="main" class="col620 clear" role="main">
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <article id="post-<?php the_ID(); ?>" class="clear">
  11. <header>
  12. <h1><?php the_title(); ?></h1>
  13. <p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>
  14. </header> <!-- end article header -->
  15. <section class="post_content">
  16. <?php the_content(); ?>
  17. </section> <!-- end article section -->
  18. <footer>
  19. <p class="clear"><?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?></p>
  20. </footer> <!-- end article footer -->
  21. </article> <!-- end article -->
  22. <?php comments_template(); ?>
  23. <?php endwhile; ?>
  24. <?php else : ?>
  25. <article id="post-not-found">
  26. <header>
  27. <h1>Not Found</h1>
  28. </header>
  29. <section class="post_content">
  30. <p>Sorry, but the requested resource was not found on this site.</p>
  31. </section>
  32. <footer>
  33. </footer>
  34. </article>
  35. <?php endif; ?>
  36. </div> <!-- end #main -->
  37. <?php get_sidebar(); // sidebar 1 ?>
  38. </div> <!-- end #content -->
  39. <?php get_footer(); ?>