<?php get_header(); ?>
<div class="main">
<?php $count = 1; ?>
<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
<ul <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<li>
<?php if(($count == 1||$count == 2||$count == 3||$count == 4)) : ?>
<div class="article">
<div class="newtitle">
<div class="post_date">
<span class="date_d"><?php echo date('m',get_the_time('U'));?>·<?php the_time('d') ?></span>
</div>
<div class="line"></div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="详细阅读 <?php the_title_attribute(); ?>"><?php the_title(); ?></a><span class="new"><?php include('includes/new.php'); ?></span></h2>
<div class="infotop2">
<span class="info-category-icon"><?php the_category(', ') ?></span>
<span class="info-view-icon">超过<?php if(function_exists(the_views)) { the_views(' 次', true);}?>围观</span>
<span class="info-comment-icon"><?php comments_popup_link ('0条评论','1条评论','%条评论'); ?></span>
</div>
</div>
<div class="thumbnail_box_top">
<div class="thumbnail">
<a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="<?php the_title(); ?>"><?php the_post_thumbnail('thumbnail',array('alt' => trim(strip_tags( $post->post_title )),'title'=> trim(strip_tags( $post->post_title )))); ?></a></div>
</div>
<div class="entry_post_top">
<span style="padding-left:20px"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 315,"...","utf-8"); ?></span>
<div class="intag"><span class="info-tag-icon"><?php the_tags('标签:', ', ', ''); ?></span></div>
<div class="clear"></div>
</div></li></ul><div class="clear"></div>
<?php else: ?>
<div class="article_b">
<span class="small-number"><?php the_time('m') ?>-<?php the_time('d') ?>
</span>
<div class="tagleft"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="详细阅读 <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div>
<div class="infotop">
<span class="info-category-icon"><?php the_category(', ') ?></span>
<span class="info-view-icon">超过<?php if(function_exists(the_views)) { the_views(' 次', true);}?>围观</span>
<span class="info-comment-icon"><?php comments_popup_link ('0条评论','1条评论','%条评论'); ?></span>
</div>
<div class="thumbnail_box">
<div class="thumbnail">
<a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="<?php the_title(); ?>"><?php the_post_thumbnail('medium',array('alt' => trim(strip_tags( $post->post_title )),'title'=> trim(strip_tags( $post->post_title )))); ?></a></div>
</div>
<div class="entry_post">
<span><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 240,"...","utf-8"); ?></span>
<div class="clear"></div>
<!--<div class="readmore"><a href="<?php the_permalink() ?>" title="详细阅读 <?php the_title(); ?>" rel="bookmark" style="opacity: 1; ">阅读全文</a></div>-->
</div></li></ul><div class="clear"></div><?php endif;$count++; ?>
		<?php endwhile; ?>
		<?php endif; ?>
<div id="indexbot">

<div class="navigation"><?php pagination($query_string); ?></div></div>
</div>


<?php get_sidebar(); ?>               
<?php get_footer(); ?>