Advertisement
Guest User

page edited

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