Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Blog
- */
- ?>
- <?php get_header(); ?>
- <div id="content">
- <div class="lay4">
- <div class="lay4_wrap">
- <?php
- $args = array(
- 'cat' => ''.$zn_blog = of_get_option('blog_cat').'',
- 'post_type' => 'post',
- 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
- );
- query_posts($args);
- while (have_posts()) : the_post();?>
- <div class="single_post">
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <div class="post_content">
- <h2 class="postitle"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <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>
- <div class="zn_post_wrap"><?php the_content(); ?> </div>
- <div style="clear:both"></div>
- <?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
- <!--Post Footer-->
- <div class="post_foot">
- <?php if(of_get_option('disscats_checkbox') == "0"){ ?>
- <div class="post_meta">
- <div class="post_cat"><?php _e('Category' , 'zenon'); ?> : <div class="catag_list"><?php the_category(', '); ?></div></div>
- <?php if( has_tag() ) { ?><div class="post_tag"><?php _e('Tags' , 'zenon'); ?> : <div class="catag_list"><?php the_tags(' '); ?></div></div><?php } else { ?><?php } ?>
- </div>
- <?php } ?>
- </div><div class="edit"><?php edit_post_link(); ?></div>
- </div>
- </div>
- <div class="single_skew">
- <div class="skew_bottom_big"></div>
- <div class="skew_bottom_right"></div>
- </div>
- </div>
- <?php endwhile ?>
- </div>
- <?php if (function_exists("znn_paginate")) {znn_paginate();} ?>
- <?php wp_reset_query(); ?>
- </div>
- <?php get_sidebar();?>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment