-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (46 loc) · 1.99 KB
/
index.php
File metadata and controls
47 lines (46 loc) · 1.99 KB
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
<?php
/**
* 首页模板
* @author Seaton Jiang <[email protected]>
* @license MIT License
* @version 2020.02.15
*/
get_header(); ?>
<div class="k-main <?php echo kratos_option('top_select', 'banner'); ?> <?php if(kratos_option('global_bg')){echo "inner-wrapper";};?>" style="transform: none;">
<div class="container <?php if (kratos_option('g_nav_layout') != 'gamma'){echo "container-new";};?>">
<div class="row <?php if (kratos_option('g_nav_layout') != 'gamma'){echo "row-new";};?>">
<div class="col-lg-8 board">
<?php if(is_search()){ ?>
<div class="article-panel">
<div class="search-title"><?php _e('搜索内容:', 'kratos');the_search_query(); ?></div>
</div>
<?php }
if ( have_posts() ) {
while ( have_posts() ){
the_post();
get_template_part('/pages/page-content', get_post_format());
}
}else{ ?>
<div class="article-panel">
<div class="nothing">
<img src="<?php
if(!kratos_option('g_nothing')){
$img = get_template_directory_uri() . '/assets/img/nothing.svg';
} else {
$img = kratos_option('g_nothing', get_template_directory_uri() . '/assets/img/nothing.svg');
}
echo $img; ?>">
<div class="sorry"><?php _e('很抱歉,没有找到任何内容', 'kratos'); ?></div>
</div>
</div>
<?php }
pagelist();
wp_reset_query(); ?>
</div><!-- .board -->
<div class="col-lg-4 sidebar d-none d-lg-block">
<?php dynamic_sidebar('sidebar_tool'); ?>
</div><!-- .sidebar -->
</div>
</div>
</div><!-- .k-main -->
<?php get_footer(); ?>