Advertisement
towfiqi

blog page

Apr 28th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.35 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Blog Page
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9.  
  10.  
  11. <!--LATEST POSTS-->
  12.  
  13. <div id="content">
  14. <div class="lay4">
  15. <div class="lay4_wrap">
  16.                    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
  17. query_posts("showposts=6&paged=$page");
  18. while ( have_posts() ) : the_post() ?>
  19.  <div class="single_post">
  20.                 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  21.                
  22.                 <div class="post_content">
  23.                     <h2 class="postitle"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  24.                     <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>
  25.                     <div class="zn_post_wrap"><?php the_content(); ?> </div>
  26.                     <div style="clear:both"></div>
  27.                     <?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
  28.                    
  29.                    
  30.                     <!--Post Footer-->
  31.                     <div class="post_foot">
  32.                     <?php if(of_get_option('disscats_checkbox') == "0"){ ?>
  33.                         <div class="post_meta">
  34.                         <div class="post_cat"><?php _e('Category' , 'zenon'); ?> : <div class="catag_list"><?php the_category(', '); ?></div></div>
  35.                        
  36.                         <?php if( has_tag() ) { ?><div class="post_tag"><?php _e('Tags' , 'zenon'); ?> : <div class="catag_list"><?php the_tags(' '); ?></div></div><?php } else { ?><?php } ?>
  37.                         </div>
  38.                     <?php } ?>
  39.                        
  40.                    </div><div class="edit"><?php edit_post_link(); ?></div>
  41.                    
  42.                 </div>
  43.                
  44.                         </div>
  45. <div class="single_skew">
  46.         <div class="skew_bottom_big"></div>
  47.         <div class="skew_bottom_right"></div>
  48.     </div>
  49.     </div>
  50.             <?php endwhile ?>
  51.  
  52.  
  53.  </div>          
  54.             <?php if (function_exists("znn_paginate")) {znn_paginate();} ?>
  55.             <?php wp_reset_query(); ?>
  56. </div>  
  57.  
  58.            
  59.                      
  60.     <?php get_sidebar();?>
  61.     </div>
  62.  
  63. <!--LATEST POSTS END-->
  64.  
  65. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement