  <div class="sidebox">

    <div class="recommend clearfix">

      <div class="tit">

        <h4>编辑推荐</h4>

      </div>

      <div class="con">

        <ul class="pic2txt">

          <li><a href="http://www.nilaixuan.com/archives/category/xiaoermei" target="_blank" hidefocus="hidefocus"><img width="148" height="68" src="<?php bloginfo('template_directory'); ?>/images/xiaomei.png" alt="小而美">小而美</a></li>

        </ul>
         <?php $posts = get_posts( "category=13&numberposts=7" ); ?>
 <?php if( $posts ) : ?>
 <ul class="c1"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li><span class="link1">[<?php the_category(', ') ?>]</span>
         <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
     </li>
     <?php endforeach; ?>
 </ul>
 <?php endif; ?>

      </div>

    </div>

    <div class="rpic mt2 clearfix">

      <div class="tit">

        <h4>热图推荐</h4>

      </div>

      <div class="con">

          <?php $posts = get_posts( "category=21&numberposts=6" ); ?>
 <?php if( $posts ) : ?>
 <ul class="p3"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li><?php dm_the_thumbnail6(); ?>
         <p> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
     </li>
     <?php endforeach; ?>
 </ul>
 <?php endif; ?>

        </ul>

      </div>

    </div>

     <div class="hotrank clearfix mt2">

      <div class="tit">

        <h4>排行榜</h4>

      </div>

      <div class="con"> <li class="rank_top"><a title="林依晨同款！日本代购史上最轻膳魔师保温杯 165元（官网365元）"  href="http://www.nilaixuan.com/archives/268.html" class="mod_poster"><img width="50" height="50" alt="林依晨同款！日本代购史上最轻膳魔师保温杯 165元（官网365元）" src="http://img03.taobaocdn.com/bao/uploaded/i3/T1RGqiFmpaXXXKMxE0"></a>

          <h5><a title="你来选官网" href="http://www.nilaixuan.com/archives/268.html">林依晨同款！日本代购史上最轻膳魔师保温杯 165元（官网365元）</a></h5>

          <p><a href="http://www.nilaixuan.com/archives/268.html">推荐理由：秋季环保养生正当时！喝水的问题变得越来越被人重视！系享誉国际 已百年之全球最大知名高真空系列产品品牌THERMOS膳魔师家的保温杯可以许多人的心头好</a></p>

        </li>

<?php $rand_posts = get_posts('numberposts=9&orderby=date');foreach($rand_posts as $post) : ?> 
  <li class="d1">  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><span><?php get_post_views($post -> ID); ?></span></li>
<?php endforeach;?>



 </div>

      <div class="clear"></div>

    </div>



  </div>
