Advertisement
Guest User

Untitled

a guest
May 12th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <?php
  2. /*
  3.  
  4. Template Name: Blog Page
  5.  
  6. */
  7. ?>
  8. <?php get_header(); ?>
  9. <?php if (have_posts()) : while (have_posts()) : the_post();
  10.  
  11. $page = get_page($post->ID);
  12. $current_page_id = '';
  13.  
  14. if(isset($page->ID))
  15. {
  16. $current_page_id = $page->ID;
  17. }
  18.  
  19. $page_sidebar = get_post_meta($current_page_id, 'page_sidebar', true); ?>
  20.  
  21. <!-- Wrapper za sidebar page -->
  22. <div id="wrapper-sidebar-page" class="container_12 clearfix">
  23. <style type="text/css">
  24. #main-content-with-sidebar {
  25. width:685px !important;
  26. }
  27. #page-title-button-wrapper{
  28. z-index:99999999;
  29. }
  30. #wrapper-sidebar-page {
  31. width: 1320px !important;
  32. }
  33. </style>
  34. <div id="main-content-with-sidebar" class="grid_9">
  35.  
  36. <?php $hider = get_post_meta($post->ID, 'ha_hider', $single = true); ?>
  37. <?php if($hider==true) { ?>
  38. <div class="hider"><span></span></div>
  39. <?php } ?>
  40.  
  41. <!-- Header Title -->
  42. <h1 class="title-background"><span><?php echo ( get_post_meta( $post->ID, 'ha_page_title', true ) ) ? get_post_meta( $post->ID, 'ha_page_title', true ) : $post->post_title; ?></span></h1>
  43.  
  44.  
  45.  
  46. <?php
  47. $loop = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => 3, 'paged' => $paged ) );
  48. while ( $loop->have_posts() ) : $loop->the_post();
  49. $thumb = get_post_thumbnail_id();
  50. $image = ha_resize( $thumb, '', 649, 340, true );
  51. ?>
  52.  
  53. <div class="blog-post-wrapper clearfix">
  54.  
  55.  
  56.  
  57. <div class="something last-column">
  58. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  59. <?php the_content() ?>
  60. </div>
  61.  
  62. <div class="separator-noline"></div>
  63. </div>
  64.  
  65. <?php endwhile; ?>
  66.  
  67. <div class="blog-pagination clearfix">
  68.  
  69. <div class="alignleft"><?php next_posts_link( __('&larr;&nbsp;&nbsp; Previous Posts', 'Harmony'), $loop->max_num_pages ); ?></div>
  70. <div class="alignright"><?php previous_posts_link( __('Newer Posts &nbsp;&nbsp;&rarr;', 'Harmony' ) ); ?></div>
  71.  
  72. </div>
  73.  
  74. <div class="bottom-line">line</div>
  75.  
  76. </div>
  77.  
  78. <div class="grid_3" id="sidebar-content">
  79. <?php dynamic_sidebar($page_sidebar); ?>
  80. </div>
  81.  
  82. <div class="clear"></div>
  83.  
  84. </div>
  85. <?php endwhile; endif; ?>
  86. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement