<?php get_header(); ?>
<div class="clear"></div>
<!--幻灯片-->
<div id="top_con">
	<div class="center">
		<div id="slide">
			<!--幻灯片-->
			<div id="myFocus"><!--焦点图盒子-->
			  <div class="loading"></div><!--载入画面(可删除)-->
			  <div class="pic"><!--图片列表-->
			  	<ul>
			        <li><a href="#1"><img src="<?php bloginfo('template_directory'); ?>/img/1m.jpg" thumb="" alt="虚位以待" text="虚位以待" /></a></li>
			        <li><a href="#2"><img src="<?php bloginfo('template_directory'); ?>/img/2m.jpg" thumb="" alt="虚位以待" text="虚位以待" /></a></li>
			        <li><a href="#3"><img src="<?php bloginfo('template_directory'); ?>/img/3m.jpg" thumb="" alt="虚位以待" text="虚位以待" /></a></li>
			        <li><a href="#4"><img src="<?php bloginfo('template_directory'); ?>/img/4m.jpg" thumb="" alt="虚位以待" text="虚位以待" /></a></li>
			        <li><a href="#5"><img src="<?php bloginfo('template_directory'); ?>/img/5m.jpg" thumb="" alt="虚位以待" text="虚位以待" /></a></li>
			  	</ul>
			  </div>
			</div>
			<!--幻灯片结束-->
		</div>
		<div id="bigimg">
			<a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/201401201119592047.jpg" alt="推广图片" title="推广图片" /></a>
		</div>

	</div>
</div>
<!--顶部幻灯片结束-->
<div class="clear"></div>
<div class="center">
	<div id="main">
		<div id="newtitle">
			<h3><a href="/">最新文章</a></h3>
			<ul>
				<li><a href="#">虚位以待</a></li>
				<li><a href="#">虚位以待</a></li>
				<li><a href="#">虚位以待</a></li>
				<li><a href="#">虚位以待</a></li>
				<li><a href="#">虚位以待</a></li>
				<li><a class="more" href="/tags">更多……</a></li>
			</ul>
		</div>
	<!--文章循环-->
	<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
		<div class="maintitle">
				<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" target="_blank">
					<?php if ( get_post_meta($post->ID, 'show', true) ) : ?>
						<?php $image = get_post_meta($post->ID, 'show', true); ?>
						<img src="<?php echo $image; ?>"width="400" height="240" alt="<?php the_title(); ?>"/>
						<?php else: ?>
						<?php if (has_post_thumbnail()) { the_post_thumbnail('home-thumb' ,array( 'alt' => trim(strip_tags( $post->post_title )), 'title' => trim(strip_tags( $post->post_title )),'class' => 'home-thumb')); }
						else { ?>
							 <img src="<?php echo catch_first_image() ?>" alt="<?php the_title(); ?>" width="400" height="240" />
						<?php } ?>
					<?php endif; ?>
				</a>
			<div class="titlebox">
				<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php echo cut_str($post->post_title,48); ?></a></h2>
				<span class="time">时间：<?php the_time('Y年m月d日') ?> &nbsp;&nbsp;<?php the_tags(); ?></span>
				<div class="titlep">
                     <?php if(has_excerpt()) the_excerpt();  
							else  
								 echo dm_strimwidth(strip_tags($post->post_content),0,110,"..."); ?>
                </div>
                <div class="b">
                	<span class="read"><?php echo getPostViews(get_the_ID()); ?></span>
                	<span class="love"><?php comments_popup_link('暂无评论', '<small>1</small>', '评论：<small>%</small>'); ?></span>
                </div>
                <span class="cat">
                	<?php the_category(', ') ?>
                </span>
			</div>
		</div>
	<?php endwhile; ?>
	<?php else : ?>
	<h3>什么也找不到！</h3>
	<p>抱歉,你要找的文章不在这里.</p>
	<?php endif; ?>
	<div class="page_navi"><?php par_pagenavi(2); ?></div>
	<!--文章循环结束-->
	</div>
	<?php get_sidebar(); ?>
</div>
<div class="clear"></div>
<div id="sitemap">
	<h4> SITE MAP</h4>
	<div id="sitemapmenu">
		<div class="fenlei">
				<a href="/lookbike" target="_blank">分类目录</a>
				<ul>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
				</ul>
		</div>
		<div class="fenlei">
				<a href="/lookbike" target="_blank">分类目录</a>
				<ul>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
					<li><a href="#">虚位以待</a></li>
				</ul>
		</div>
		<div class="fenlei">
				<a href="/lookbike" target="_blank">分类目录</a>
				<ul>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
				</ul>
		</div>
		<div class="fenlei">
				<a href="/lookbike" target="_blank">分类目录</a>
				<ul>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
				</ul>
		</div>
		<div class="fenlei">
				<a href="/lookbike" target="_blank">分类目录</a>
				<ul>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
					<li><a href="#">测试下啊</a></li>
				</ul>
		</div>
	</div>
	<div class="rss">
        <h3>FOLLOW US</h3>
        <a rel="nofollow" title="收听我的新浪微博" href="<?php echo stripslashes(get_option('swt_sinamblog')); ?>" target="_blank">
            <img alt="收听我的新浪微博" src="<?php bloginfo('template_directory'); ?>/images/sitemap-sina.jpg">
        </a> 
        <a rel="nofollow" title="收听我的腾讯微博" href="<?php echo stripslashes(get_option('swt_qqmblog')); ?>" target="_blank">
            <img alt="收听我的腾讯微博" src="<?php bloginfo('template_directory'); ?>/images/webt.png">
        </a>
        <a rel="nofollow" title="RSS 订阅" href="<?php echo get_option('swt_rsssub'); ?>" target="_blank">
            <img alt="RSS" src="<?php bloginfo('template_directory'); ?>/images/sitemap-rss.jpg">
        </a>  
        <a href="/8714.html">
        	<br>
        </a>
        <a rel="nofollow" title="发邮件给我" href="mailto:<?php echo stripslashes(get_option('swt_email')); ?>" target="_blank">
            <img alt="发邮件给我" src="<?php bloginfo('template_directory'); ?>/images/mail.png">
        </a> 
        <a rel="nofollow" title="豆瓣" href="<?php echo stripslashes(get_option('swt_douban')); ?>" target="_blank">
            <img alt="豆瓣" src="<?php bloginfo('template_directory'); ?>/images/sitemap-douban.jpg">
        </a> 
        <a rel="nofollow" title="有急事Q我" href="http://wpa.qq.com/msgrd?V=1&Menu=yes&Uin=<?php echo stripslashes(get_option('swt_qq')); ?>" target="_blank">
            <img alt="有急事Q我" src="<?php bloginfo('template_directory'); ?>/images/qq.png">
        </a>
            <img width="120" height="140" class="alignnone size-full wp-image-18966" title="扫描添加我们的公众微信" alt="" src="<?php bloginfo('template_directory'); ?>/images/weixin.jpg">
    </div>
</div>



<?php get_footer(); ?>