page.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php get_header(); ?>
  2. <div class="wrapper section-inner">
  3. <div class="content left">
  4. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  5. <div class="posts">
  6. <div class="post">
  7. <?php if ( has_post_thumbnail() ) : ?>
  8. <div class="featured-media">
  9. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
  10. <?php the_post_thumbnail('post-image'); ?>
  11. <?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
  12. <div class="media-caption-container">
  13. <p class="media-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
  14. </div>
  15. <?php endif; ?>
  16. </a>
  17. </div> <!-- /featured-media -->
  18. <?php endif; ?>
  19. <div class="post-header">
  20. <h1 class="post-title"><?php the_title(); ?></h1>
  21. </div> <!-- /post-header -->
  22. <div class="post-content">
  23. <?php the_content(); ?>
  24. <?php if ( current_user_can( 'manage_options' ) ) : ?>
  25. <p><?php edit_post_link( __('Edit', 'hemingway') ); ?></p>
  26. <?php endif; ?>
  27. </div> <!-- /post-content -->
  28. </div> <!-- /post -->
  29. <?php if ( comments_open() || get_comments_number() != '' ) : ?>
  30. <?php comments_template( '', true ); ?>
  31. <?php endif; ?>
  32. </div> <!-- /posts -->
  33. <?php endwhile; else: ?>
  34. <p><?php _e("We couldn't find any posts that matched your query. Please try again.", "hemingway"); ?></p>
  35. <?php endif; ?>
  36. <div class="clear"></div>
  37. </div> <!-- /content left -->
  38. <?php get_sidebar(); ?>
  39. <div class="clear"></div>
  40. </div> <!-- /wrapper -->
  41. <?php get_footer(); ?>