This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
forked from seatonjiang/kratos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
page-notitle.php
58 lines (58 loc) · 2.52 KB
/
page-notitle.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
<?php
/*
Template Name: 无标题模版
*/
$page_side_bar = kratos_option('page_side_bar');
$page_side_bar = (empty($page_side_bar)) ? 'right_side' : $page_side_bar;
get_header();
get_header('banner'); ?>
<div id="kratos-blog-post" style="background:<?php echo kratos_option('background_index_color'); ?>">
<div class="container">
<div class="row">
<?php if($page_side_bar == 'left_side'){ ?>
<aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
<div id="sidebar">
<?php dynamic_sidebar('sidebar_tool'); ?>
</div>
</aside>
<?php } ?>
<section id="main" class='<?php echo ($page_side_bar == 'single') ? 'col-md-12' : 'col-md-8'; ?>'>
<?php while ( have_posts() ) : the_post(); ?>
<article>
<div class="kratos-hentry kratos-post-inner clearfix">
<div class="kratos-post-content"><?php the_content(); ?></div>
<?php if(kratos_option('page_like_donate')||kratos_option('page_share')) {?>
<footer class="kratos-entry-footer clearfix">
<div class="post-like-donate text-center clearfix" id="post-like-donate">
<?php if ( kratos_option( 'page_like_donate' ) ) : ?>
<a href="<?php echo kratos_option('donate_links'); ?>" class="Donate"><i class="fa fa-bitcoin"></i> 打赏</a>
<?php endif; ?>
<?php if ( kratos_option( 'page_share' ) ) : ?>
<a href="javascript:;" class="Share" ><i class="fa fa-share-alt"></i> 分享</a>
<?php require_once( get_template_directory() . '/inc/share.php'); ?>
<?php endif; ?>
</div>
</footer>
<?php }?>
</div>
<?php if ( kratos_option( 'page_cc' ) ) : ?>
<div class="kratos-hentry kratos-copyright text-center clearfix">
<img alt="知识共享许可协议" src="<?php echo get_template_directory_uri(); ?>/images/licenses.png">
<h5>本作品采用 <a rel="license nofollow" target="_blank" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享署名-相同方式共享 4.0 国际许可协议</a> 进行许可</h5>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</article>
<?php endwhile;?>
</section>
<?php if($page_side_bar == 'right_side'){ ?>
<aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
<div id="sidebar">
<?php dynamic_sidebar('sidebar_tool'); ?>
</div>
</aside>
<?php } ?>
</div>
</div>
</div>
<?php get_footer(); ?>