-
Notifications
You must be signed in to change notification settings - Fork 4
/
single.php
71 lines (66 loc) · 2.31 KB
/
single.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
60
61
62
63
64
65
66
67
68
69
70
71
<?php
if(zib_is_docs_mode()){
get_template_part('template/single-dosc');
return;
}
get_header(); ?>
<?php if (function_exists('dynamic_sidebar')) {
echo '<div class="container fluid-widget">';
dynamic_sidebar('all_top_fluid');
dynamic_sidebar('single_top_fluid');
echo '</div>';
}
?>
<main role="main" class="container">
<div class="content-wrap">
<div class="content-layout">
<?php if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('single_top_content');
}
?>
<?php while (have_posts()) : the_post();
$user_id = get_the_author_meta('ID');
?>
<?php zib_single_cover() ?>
<article class="article main-bg theme-box box-body radius8 main-shadow">
<?php zib_single_header() ?>
<?php zib_single_content() ?>
<?php wp_link_pages('link_before=<span>&link_after=</span>&before=<div class="article-paging">&after=</div>&next_or_number=number'); ?>
</article>
<?php endwhile; ?>
<?php if (_pz('yiyan_single_box')) {
zib_yiyan($class = 'yiyan-box main-bg theme-box text-center box-body radius8 main-shadow');
} ?>
<?php if (_pz('post_authordesc_s')) {
$args = array(
'user_id' => $user_id,
'show_button' => false
);
zib_posts_avatar_box($args);
} ?>
<?php if (_pz('post_prevnext_s')) {
zib_posts_prevnext();
} ?>
<?php if (_pz('post_related_s')) {
zib_posts_related(_pz('related_title'), _pz('post_related_n'));
} ?>
<?php if (comments_open()) {
comments_template('', true);
} ?>
<?php if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('single_bottom_content');
}
?>
</div>
</div>
<?php get_sidebar();?>
</main>
<?php if (function_exists('dynamic_sidebar')) {
echo '<div class="container fluid-widget">';
dynamic_sidebar('single_bottom_fluid');
dynamic_sidebar('all_bottom_fluid');
echo '</div>';
}
?>
<?php zib_rewards_modal($user_id); ?>
<?php get_footer();