<?php get_header();?>

<body class="articleview">

<script language="javascript" type="text/javascript"> 

<!--                     

function CheckLogin(){          

var taget_obj = document.getElementById('_userlogin');          

myajax = new DedeAjax(taget_obj,false,false,'','','');          

myajax.SendGet2("/member/ajax_loginsta.php");          

 DedeXHTTP = null;

 }   

--> 

 </script>

<div class="header">

<div class="topbar">

 <div class="wrapbox">
     <div class="loginbar" id="_userlogin">欢迎来到<?php bloginfo('name'); ?></div>

    <div class="tlink"> +<a href="<?php echo get_option('home'); ?>" onClick="window.external.addFavorite(this.href,this.title);return false;" title="<?php bloginfo('description'); ?>

" rel="sidebar">添加到收藏夹</a> </div>

  </div>


  </div>

  <div class="top wrapbox">

   <div class="logo">

      <h1><a title="<?php bloginfo('description'); ?>" href="<?php echo get_option('home'); ?>"><?php bloginfo('description'); ?></a> </h1>

    </div>

    <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="<?php bloginfo('template_directory'); ?>/images/type-button-1.jpg" /> </div>

    <div class="dingyue">订阅到：<a href="http://mail.qq.com/cgi-bin/feed?u=/rss.php" target="blank" rel="nofollow">QQ邮箱</a> </div>

  </div>

  <div id="navMenu">

    <div class="wrapbox">
 <?php wp_nav_menu( array('sort_column' => 'menu_order', 'container_id'=>'menu','menu_class'=>'nav') ); ?>
              <div class="searchbar">

       <form  name="formsearch" action="<?php echo $_SERVER['PHP_SELF']; ?>">

            <div class="form">


              <input name="s" type="text" class="search-keyword" id="s" value="Hi,你在找什么呢？" onfocus="if(this.value=='Hi,你在找什么呢？'){this.value='';}"  onblur="if(this.value==''){this.value='Hi,你在找什么呢？';}" />

              <input  id="searchsubmit" type="submit" class="search-submit" value=" "></input>

            </div>

          </form>


        </div>

    </div>

  </div>

</div>

<div class="wrapbox">

  <div class="mainbox">

    <div class="article mt1">

      <h2><?php the_title_attribute(); ?></h2>

      <!-- /title -->

      <div class="info">发布日期：<small><?php the_date_xml()?></small>分类 : <small><?php the_category(', ') ?></small> 阅读次数：<small>

       <?php get_post_views($post -> ID); ?> 次</small> 标签 : <small><?php the_tags('', ' ', ''); ?></small></div>

      <div class="articlebox"> 
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

        <p>

<?php the_content("Read More..."); ?>
      </p>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>

 </div>

      <!-- /content -->

      <div class="list_pages">

        <ul class="pagelist">

          

        </ul>

      </div>

      <!-- /pages -->

      <div class="articleurl link2">

      ☆ <a href="javascript:memeurl(document.title+window.location.href)">喜欢这篇文章吗？分享给你的好友吧！点击这里复制网址</a> ☆

<script type="text/javascript">

	function memeurl(content) {

		content = content.replace(/- 网站（你来选）/, '');

		if(navigator.userAgent.toLowerCase().indexOf('ie') > -1) {

			clipboardData.setData('Text',content);

			alert ("网址复制成功，请粘贴到QQ/MSN上分享给你的好友！");

		} else {

			prompt ("你使用的不是IE核心浏览器，请按 Ctrl + C 复制网址。",content);

		}

	}

</script>

      </div>

      <div class="declare">欢迎转载分享但请注明出处及链接，商业媒体使用请获得相关授权。</div>

      <div class="context">

        <ul>

          <li class="fl">上一篇：<?php previous_post_link('%link'); ?> </li>

          <li class="fr">下一篇：<?php next_post_link('%link'); ?> </li>

        </ul>

      </div>

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

    </div>

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

      </div>

  <div class="sidebox">

    <h3 class="title_a nobg"><span class="fl">小而美</span></h3>

    <div class="picwall">
 <?php $posts = get_posts( "category=23&numberposts=12" ); ?>
 <?php if( $posts ) : ?>
 <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li><?php dm_the_thumbnail4(); ?>
         <p> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
     </li>
     <?php endforeach; ?>
 
 <?php endif; ?>

 </div>

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

    <h3 class="title_a mt1"><span class="fl">神店铺</span><a target="_blank" href="http://www.nilaixuan.com/archives/category/dianpu" class="fr">查看更多</a></h3>

    <div class="i_shops">

         <?php $posts = get_posts( "category=10&numberposts=8" ); ?>
 <?php if( $posts ) : ?>
 <ul class="list_img_two"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li>
        <a target="_blank" style="opacity: 0.65;" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a><img src="<?php if(get_post_meta(get_the_ID(), "img", true)) : ?><?php echo get_post_meta(get_the_ID(), "img", true); ?><?php endif; ?>">
     </li>
     <?php endforeach; ?>
 <div class="clear"></div></ul>
 <?php endif; ?>
</div>

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

    <!-- /commend -->

    <h3 class="title_a mt1"><span class="fl">热点内容</span></h3>

    <div class="hot">

      <ul class="c1">

   <?php get_timespan_most_viewed( $mode = '', $limit = 10,$days =30);?><!--调用浏览次数最多的文章-->


      </ul>

    </div>

  </div>

</div>
<?php get_footer();?>