Advertisement
Guest User

page template

a guest
May 23rd, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php if (is_front_page()) { ?>
  2. <?php get_template_part('home'); ?>
  3. <?php } else { ?>
  4. <?php get_header(); ?>
  5. <div id="wrap">
  6. <!-- Main Content-->
  7. <img src="<?php bloginfo('template_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
  8. <div id="content">
  9. <!-- Start Main Window -->
  10. <div id="main">
  11. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  12.  
  13. <div class="new_post entry clearfix">
  14.  
  15. <h1 id="post-title"><?php the_title(); ?></h1>
  16. <div class="postcontent">
  17. <?php $width = (int) get_option('polished_thumbnail_width_pages');
  18. $height = (int) get_option('polished_thumbnail_height_pages');
  19. $classtext = 'post_img';
  20. $titletext = get_the_title();
  21.  
  22. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  23. $thumb = $thumbnail["thumb"]; ?>
  24.  
  25. <?php if($thumb <> '' && get_option('polished_page_thumbnails') == 'on') { ?>
  26. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
  27. <?php }; ?>
  28. <?php the_content(); ?>
  29. <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Polished').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  30. <?php edit_post_link(esc_html__('Edit this page','Polished')); ?>
  31. <div class="clear"></div>
  32.  
  33. <?php if (get_option('polished_show_pagescomments') == 'on') comments_template('', true); ?>
  34. </div> <!-- end .post -->
  35. </div>
  36. <?php endwhile; endif; ?>
  37. </div>
  38. <!-- End Main -->
  39.  
  40. <?php get_sidebar(); ?>
  41. <?php get_footer(); ?>
  42. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement