1 Star 0 Fork 17

逐鹿实验室/kratos

forked from Seaton Jiang/kratos 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
page.php 2.58 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 details">
<?php if (have_posts()) : the_post();
update_post_caches($posts); ?>
<div class="article py-4">
<div class="header text-center">
<h1 class="title m-0"><?php the_title(); ?></h1>
</div>
<div class="content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="paginations text-center">',
'after' => '',
'next_or_number' => 'next',
'previouspagelink' => __('<span>上一页</span>', 'kratos'),
'nextpagelink' => ''
)
);
wp_link_pages(
array(
'before' => '',
'after' => '',
'next_or_number' => 'number',
'link_before' => '<span>',
'link_after' => '</span>'
)
);
wp_link_pages(
array(
'before' => '',
'after' => '</div>',
'next_or_number' => 'next',
'previouspagelink' => '',
'nextpagelink' => __('<span>下一页</span>', 'kratos')
)
); ?>
</div>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<div class="col-lg-4 sidebar sticky-sidebar d-none d-lg-block">
<?php dynamic_sidebar('page_sidebar'); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/null_167_6592/kratos.git
git@gitee.com:null_167_6592/kratos.git
null_167_6592
kratos
kratos
main

搜索帮助