4 Star 85 Fork 17

Seaton Jiang / kratos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
Seaton Jiang 提交于 2022-01-26 00:30 . chore: change author email
<?php
/**
* 首页模板
* @author Seaton Jiang <hi@seatonjiang.com>
* @license GPL-3.0 License
* @version 2022.01.26
*/
get_header(); ?>
<div class="k-main <?php echo kratos_option('top_img_switch', true) ? 'banner' : 'color' ?>" style="background:<?php echo kratos_option('g_background', '#f5f5f5'); ?>">
<div class="container">
<div class="row">
<div class="col-lg-8 board">
<?php if (is_home() && kratos_option('g_carousel', false)) {
kratos_carousel();
}
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 echo kratos_option('g_nothing', ASSET_PATH . '/assets/img/nothing.svg'); ?>">
<div class="sorry"><?php _e('很抱歉,没有找到任何内容', 'kratos'); ?></div>
</div>
</div>
<?php }
pagelist();
wp_reset_query(); ?>
</div>
<div class="col-lg-4 sidebar sticky-sidebar d-none d-lg-block">
<?php dynamic_sidebar('home_sidebar'); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
PHP
1
https://gitee.com/seatonjiang/kratos.git
git@gitee.com:seatonjiang/kratos.git
seatonjiang
kratos
kratos
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891