Watch 1 Star 0 Fork 34

王飞987 / yusi

forked from 云落 / git 
Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
WordPress主题:欲思主题 spread retract

http://googlo.me/3011.html

Clone or download
single.php 5.51 KB
Copy Edit Web IDE Raw Blame History
云落 authored 2015-02-01 11:34 . 添加二维码鼠标样式
<?php get_header(); ?>
<div class="content-wrap">
<div class="content">
<?php if( dopt('d_singlecode_b') ) echo dopt('d_singlecode'); ?>
<style type="text/css">.article-content h2 {border-left: 8px solid #00A67C;border-bottom: 1px solid #00A67C;}.article-content blockquote:before {display:none !important;}.article-content h3 {border-left: 2px solid #0095ff;background-color:#fbfbfb}input{padding:0px 20px;height : 30px;}</style>
<?php if( dopt('d_singleMenu_b') ) echo '<div class="breadcrumbs">'.deel_breadcrumbs().'</div>'; ?>
<?php if( dopt('d_nosuojin_b') ) echo '<style type="text/css">.article-content{text-indent:0px;}</style>'; ?>
<?php if( dopt('d_darkhighlight_b') ) echo '<style type="text/css">.prettyprint,pre.prettyprint{background-color:#272822;border:none;overflow:hidden;padding:10px 15px;}.prettyprint.linenums,pre.prettyprint.linenums{-webkit-box-shadow:inset 40px 0 0 #39382E,inset 41px 0 0 #464741;-moz-box-shadow:inset 40px 0 0 #39382E,inset 41px 0 0 #464741;box-shadow:inset 40px 0 0 #39382E,inset 41px 0 0 #464741;}.prettyprint.linenums ol,pre.prettyprint.linenums ol{margin:0 0 0 33px;}.prettyprint.linenums ol li,pre.prettyprint.linenums ol li{padding-left:12px;color:#bebec5;line-height:20px;margin-left:0;list-style:decimal;}.prettyprint .com{color:#93a1a1;}.prettyprint .lit{color:#AE81FF;}.prettyprint .pun,.prettyprint .opn,.prettyprint .clo{color:#F8F8F2;}.prettyprint .fun{color:#dc322f;}.prettyprint .str,.prettyprint .atv{color:#E6DB74;}.prettyprint .kwd,.prettyprint .tag{color:#F92659;}.prettyprint .typ,.prettyprint .atn,.prettyprint .dec,.prettyprint .var{color:#A6E22E;}.prettyprint .pln{color:#66D9EF;}</style>'; ?>
<?php while (have_posts()) : the_post(); ?>
<header class="article-header">
<h1 class="article-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<div class="meta">
<?php
$category = get_the_category();
if($category[0]){
echo '<span id="mute-category" class="muted"><i class="fa fa-list-alt"></i><a href="'.get_category_link($category[0]->term_id ).'"> '.$category[0]->cat_name.'</a></span>';
}
?>
<span class="muted"><i class="fa fa-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>"><?php echo get_the_author() ?></a></span>
<time class="muted"><i class="fa fa-clock-o"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) )?></time>
<span class="muted"><i class="fa fa-eye"></i> <?php deel_views('次浏览'); ?></span>
<?php if( dopt('d_baidurecord_b') ){?><span class="muted"><i class="fa fa-flag"></i> <?php baidu_record(); ?></span><?php } ?>
<?php if ( comments_open() ) echo '<span class="muted"><i class="fa fa-comments-o"></i> <a href="'.get_comments_link().'">'.get_comments_number('0', '1', '%').'个评论</a></span>'; ?>
<?php if( dopt('d_qr_b') ){?><span class="muted"><i class="fa fa-qrcode"></i><a class="weixin" style="cursor : pointer;"> 扫描二维码<div class="weixin-popover"><div class="popover bottom in"><div class="popover-title">扫描二维码</div><div class="popover-content"><img src="http://s.jiathis.com/qrcode.php?url=<?php the_permalink(); ?>" ></div></div></div></a></span><?php } ?><?php edit_post_link('[编辑]'); ?>
</div>
</header>
<?php if( dopt('d_adpost_01_b') ) echo '<div class="banner banner-post">'.dopt('d_adpost_01').'</div>'; ?>
<?php if (wp_is_mobile() ): ?><?php if( dopt('Mobiled_adpost_01_b') ) echo '<div class="banner-post">'.dopt('Mobiled_adpost_01').'</div>'; ?><?php endif ;?>
<article class="article-content">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<div class="fenye">', 'after' => '', 'next_or_number' => 'next', 'previouspagelink' => '<span>上一页</span>', 'nextpagelink' => "")); ?> <?php wp_link_pages(array('before' => '', 'after' => '', 'next_or_number' => 'number', 'link_before' =>'<span>', 'link_after'=>'</span>')); ?> <?php wp_link_pages(array('before' => '', 'after' => '</div>', 'next_or_number' => 'next', 'previouspagelink' => '', 'nextpagelink' => "<span>下一页</span>")); ?>
<div class="article-social">
<a href="javascript:;" data-action="ding" data-id="<?php the_ID(); ?>" id="Addlike" class="action<?php if(isset($_COOKIE['bigfa_ding_'.$post->ID])) echo ' actived';?>"><i class="fa fa-heart-o"></i>喜欢 (<span class="count"><?php if( get_post_meta($post->ID,'bigfa_ding',true) ){ echo get_post_meta($post->ID,'bigfa_ding',true); } else {echo '0';}?></span>)</a><?php if( dopt('d_bdshare_b') ) echo'<span class="or">or</span>'; deel_share(); ?>
</div>
</article>
<?php endwhile; ?>
<footer class="article-footer">
<?php the_tags('<div class="article-tags"><i class="fa fa-tags"></i>','','</div>'); ?>
</footer>
<nav class="article-nav">
<span class="article-nav-prev"><?php previous_post_link('<i class="fa fa-angle-double-left"></i> %link'); ?></span>
<span class="article-nav-next"><?php next_post_link('%link <i class="fa fa-angle-double-right"></i>'); ?></span>
</nav>
<div class="related_top">
<?php include( 'modules/related.php' ); ?>
</div>
<?php if (wp_is_mobile() ): ?>
<?php if( dopt('Mobiled_adpost_02_b') )echo '<div id="comment-ad" class="banner-related">'.dopt('Mobiled_adpost_02').'</div>'; ?><?php endif ;?>
<?php if( dopt('d_adpost_02_b') ) echo '<div id="comment-ad" class="banner banner-related">'.dopt('d_adpost_02').'</div>'; ?>
<?php comments_template('', true); ?>
<?php if( dopt('d_adpost_03_b') ) echo '<div class="banner banner-comment">'.dopt('d_adpost_03').'</div>'; ?>
</div>
</div>
<?php get_sidebar(); get_footer(); ?>

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/dzwangfei/yusi.git
git@gitee.com:dzwangfei/yusi.git
dzwangfei
yusi
yusi
master

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542