-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
29 lines (20 loc) · 1.07 KB
/
single.php
File metadata and controls
29 lines (20 loc) · 1.07 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
<?php
// we create class instance outside loop, so we need to take wp query instance directly
$single = JNews\Single\SinglePost::getInstance()->set_post_id($wp_query->post->ID);
get_header();
do_action('single_post_' . $single->get_template());
?>
<div class="post-wrapper">
<div class="<?php echo apply_filters('jnews_post_wrap_class', 'post-wrap', $wp_query->post->ID); ?>" <?php echo apply_filters('jnews_post_wrap_attribute', '', $wp_query->post->ID); ?>>
<?php do_action('jnews_single_post_begin', $wp_query->post->ID); ?>
<div class="jeg_main <?php $single->main_class(); ?>">
<div class="jeg_container">
<?php get_template_part('fragment/post/single-post-' . $single->get_template()); ?>
</div>
</div>
<div id="post-body-class" <?php body_class(); ?>></div>
<?php do_action('jnews_single_post_end', $wp_query->post->ID); ?>
</div>
<?php get_template_part('fragment/post/post-overlay'); ?>
</div>
<?php get_footer(); ?>