-
Notifications
You must be signed in to change notification settings - Fork 610
/
page-full.php
59 lines (57 loc) · 2.46 KB
/
page-full.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
<?php
/*
* Template Name: 单页样式
* @author Seaton Jiang <[email protected]>
* @license GPL-3.0 License
* @version 2024.01.17
*/
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-12 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" id="lightgallery">
<?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>
</div>
</div>
<?php get_footer(); ?>