-
Notifications
You must be signed in to change notification settings - Fork 13
/
single.php
74 lines (64 loc) · 2.39 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
72
73
74
<?php get_header(); ?>
<!--main content start -->
<div class="showcase-wrapper">
<div class="container-fluid">
<?php custom_breadcrumbs(); ?>
<div class="navigation-wrapper">
<div class="posts-navigation">
<?php the_post_navigation(
array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
)
); ?>
</div>
</div>
<div class="single-content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<h1>
<?php the_title(); ?>
</h1>
<span class="author-date">Posted on
<?php the_date(); ?> by
<?php the_author(); ?></span>
<p>
<?php the_content(); ?>
</p>
<div class="navigation-wrapper">
<div class="posts-navigation">
<?php the_post_navigation(
array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
)
); ?>
</div>
</div>
<?php if( is_single() ) : comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else : ?>
<p>
<?php __('No post found'); ?>
</p>
<?php endif; ?>
</div>
<div id="widgetized-area">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('widgetized-area')) : else : ?>
<div class="pre-widget">
<p><strong>Widgetized Area</strong></p>
<p>This panel is active and ready for you to add some widgets via the WP Admin</p>
</div>
<?php endif; ?>
</div>
</div>
</div>
<!--main content end -->
<!--footer -->
<?php get_footer(); ?>