Advertisement
Guest User

Clockstone page template

a guest
Aug 7th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Clockstone_Theme_1.1.1
  5. */
  6.  
  7. get_header();
  8.  
  9. $page_layout = get_post_meta(get_the_ID(), 'page_layout', true);
  10. if (!$page_layout){ $page_layout = 'sidebar_bg'; }
  11.  
  12. ?>
  13.  
  14.  
  15. <!-- _________________________ Start Content _________________________ -->
  16. <?php
  17. if ($page_layout == 'sidebar_bg'){
  18. echo '<div id="content">';
  19. } elseif ($page_layout == 'sidebar_bg sidebar_left'){
  20. echo '<div id="content" class="fr">';
  21. } else {
  22. echo '<div class="middle_content">';
  23. }
  24. if (have_posts()) : the_post();
  25. ?>
  26. <div class="entry">
  27. <?php if (has_post_thumbnail()){ ?>
  28. <span class="image_shadow_container">
  29. <a href="<?php echo get_image_path_array(get_the_ID()); ?>" rel="prettyPhoto" title="<?php if ($headingtools_active == 'custom' && $headingtools_title != ''){ echo $headingtools_title; } else { the_title(); } ?>">
  30. <img src="<?php echo get_template_directory_uri(); ?>/theme/classes/timthumb.php?src=<?php echo get_image_path(get_the_ID()); if ($page_layout == 'nobg'){ echo '&amp;w=930&amp;h=315&amp;zc=1'; } else { echo '&amp;w=610&amp;h=210&amp;zc=1'; } ?>" alt="" class="image_shadow" />
  31. </a>
  32. <img src="<?php echo get_template_directory_uri(); ?>/theme/classes/timthumb.php?src=<?php echo get_template_directory_uri(); ?>/images/image_shadow.png<?php if ($page_layout == 'nobg'){ echo '&amp;w=940'; } else { echo '&amp;w=620'; } ?>" alt="" class="noimgbg" />
  33. </span>
  34. <?php
  35. }
  36. the_content();
  37. wp_link_pages('before=<div><strong>'.stripslashes(htmlspecialchars($translation_pagination_pages)).'</strong>&link_before= . &after=</div>');
  38. ?>
  39. </div>
  40. <?php comments_template(); ?>
  41. <?php endif; ?>
  42. </div>
  43. <!-- _________________________ Finish Content _________________________ -->
  44.  
  45.  
  46. <!-- _________________________ Start Sidebar _________________________ -->
  47. <?php if ($page_layout == 'sidebar_bg'){ ?>
  48. <div id="sidebar">
  49. <?php get_sidebar(); ?>
  50. </div>
  51. <?php } elseif ($page_layout == 'sidebar_bg sidebar_left'){ ?>
  52. <div id="sidebar" class="fl">
  53. <?php get_sidebar(); ?>
  54. </div>
  55. <?php } ?>
  56. <!-- _________________________ Finish Sidebar _________________________ -->
  57.  
  58.  
  59. <?php include 'footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement