Guest User

"page-blog.php"

a guest
Jul 27th, 2012
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Template Name: Blog
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8. <div id="content">
  9. <div class="lay4">
  10. <div class="lay4_wrap">
  11.  
  12.  
  13. <?php
  14. $args = array(
  15. 'cat' => ''.$zn_blog = of_get_option('blog_cat').'',
  16. 'post_type' => 'post',
  17. 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
  18. );
  19.  
  20. query_posts($args);
  21.  
  22. while (have_posts()) : the_post();?>
  23. <div class="single_post">
  24. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  25.  
  26. <div class="post_content">
  27. <h2 class="postitle"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  28. <div class="single_metainfo">On <?php the_time( get_option('date_format') ); ?><?php if(of_get_option('dissauth_checkbox') == "0"){ ?> by <?php the_author(); ?><?php } ?></div>
  29. <div class="zn_post_wrap"><?php the_content(); ?> </div>
  30. <div style="clear:both"></div>
  31. <?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
  32.  
  33.  
  34. <!--Post Footer-->
  35. <div class="post_foot">
  36. <?php if(of_get_option('disscats_checkbox') == "0"){ ?>
  37. <div class="post_meta">
  38. <div class="post_cat"><?php _e('Category' , 'zenon'); ?> : <div class="catag_list"><?php the_category(', '); ?></div></div>
  39.  
  40. <?php if( has_tag() ) { ?><div class="post_tag"><?php _e('Tags' , 'zenon'); ?> : <div class="catag_list"><?php the_tags(' '); ?></div></div><?php } else { ?><?php } ?>
  41. </div>
  42. <?php } ?>
  43.  
  44. </div><div class="edit"><?php edit_post_link(); ?></div>
  45.  
  46. </div>
  47.  
  48. </div>
  49. <div class="single_skew">
  50. <div class="skew_bottom_big"></div>
  51. <div class="skew_bottom_right"></div>
  52. </div>
  53. </div>
  54. <?php endwhile ?>
  55.  
  56.  
  57. </div>
  58. <?php if (function_exists("znn_paginate")) {znn_paginate();} ?>
  59. <?php wp_reset_query(); ?>
  60. </div>
  61.  
  62.  
  63.  
  64. <?php get_sidebar();?>
  65. </div>
  66. <?php get_footer(); ?>
RAW Paste Data Copied