1. <?php get_header(); ?>
  2. <div id="main-area-wrap">
  3. <div id="wrapper">
  4. <div id="main">
  5. <div class="post">
  6. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  7. <div class="new-post">
  8. <h1><?php the_title() ?></h1>
  9. <div id="post-content">
  10.  
  11. <?php $width = (int) get_option('glow_thumbnail_width_pages');
  12. $height = (int) get_option('glow_thumbnail_height_pages');
  13. $classtext = 'thumbnail alignleft';
  14. $titletext = get_the_title();
  15.  
  16. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  17. $thumb = $thumbnail["thumb"]; ?>
  18.  
  19. <?php if($thumb <> '' && get_option('glow_page_thumbnails') == 'on') { ?>
  20. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  21. <?php }; ?>
  22.  
  23. <?php the_content(); ?>
  24. <?php edit_post_link(esc_html__('Edit this page','Glow')); ?>
  25. <div class="clear"></div>
  26. </div> <!-- end post-content -->
  27. </div> <!-- end new-post -->
  28. <?php if (get_option('glow_show_pagescomments') == 'on') comments_template('', true); ?>
  29. <?php endwhile; ?>
  30.  
  31. <?php else : ?>
  32. <!--If no results are found-->
  33. <div id="post-content">
  34. <h1><?php esc_html_e('No Results Found','Glow'); ?></h1>
  35. <p><?php esc_html_e('The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.','Glow'); ?></p>
  36. </div>
  37. <!--End if no results are found-->
  38. <?php endif; ?>
  39. </div> <!-- end post -->
  40. </div> <!-- end main -->
  41. <?php get_sidebar(); ?>
  42. <?php get_footer(); ?>