This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
72 lines (68 loc) · 3.81 KB
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php get_header(); ?>
<div class="container">
<div class="col-xs-12 col-sm-9 page-main-frame">
<div class="row">
<?php if ( have_posts() ):while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('col-xs-12 col-sm-12'); ?>>
<div class="row jp_page_post">
<div class="col-xs-12 col-sm-12 post-header">
<h2 class="post-title"><a href="<?php the_permalink(); ?>"
title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="col-xs-12 col-sm-12 col-lg-12 post_meta">
<ul class="post_meta_ul">
<li class="inline-li">
<i class="fa fa-calendar-check-o"></i>
<?php echo date('Y-m-d H:i',strtotime($post->post_date)); ?>
</li>
<li class="inline-li">
<span class="post-span"> | </span>
</li>
<li class="inline-li">
<i class="fa fa-comments-o"></i>
<?php comments_popup_link( __( '0 reply', JUMPING_NAME ), __( '1 reply', JUMPING_NAME ), __( '% replies', JUMPING_NAME ) ); ?>
</li>
</ul>
</div>
<div class="col-xs-12 col-sm-12 post-body clearfix">
<div class="post-content"><?php the_content( '' ); ?></div>
</div>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else:; ?>
<div class="col-xs-12 col-sm-12">
<div class="row jp_page_post">
<div class="col-xs-12 col-sm-12 post-header"">
<h2 class="post-title"><?php _e('对不起,页面不存在'); ?></h2>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!-- 右侧边栏 -->
<div class="col-xs-12 col-sm-3" id="sidebar">
<div class="widget_self">
<img src="<?php echo jumping_image('jumbotron_self.png'); ?>" class="img-responsive img-circle center-block" alt="侧栏个人头像" width="120px">
<div class="widget_self_intro text-center">
<?php
$authorName = jumping_setting( 'author-name' );
$author_name = empty($authorName) ? '博主' : $authorName;
$weiboName = jumping_setting( 'weibo-link' );
$weibo_name = empty($weiboName) ? '#' : $weiboName;
$facebookName = jumping_setting( 'facebook-link' );
$facebook_name = empty($facebookName) ? '#' : $facebookName;
$githubName = jumping_setting( 'github-link' );
$github_name = empty($githubName) ? '#' : $githubName;
?>
<h4><?php echo $author_name ?></h4>
<a href="<?php echo $weibo_name ?>" class="i_weibo" target="_blank" rel="external nofollow"><i class="fa fa-weibo fa-lg"></i></a>
<a href="<?php echo $github_name ?>" class="i_github" target="_blank" rel="external nofollow"><i class="fa fa-github fa-lg"></i></a>
<a href="<?php echo $facebook_name ?>" class="i_facebook" target="_blank" rel="external nofollow"><i class="fa fa-facebook-square fa-lg"></i></a>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>