forked from kushinauwu/OBF-Homepage-New
-
Notifications
You must be signed in to change notification settings - Fork 10
/
single-obf-events.php
58 lines (53 loc) · 1.87 KB
/
single-obf-events.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
<?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 Event: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Event: ', '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>
<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 Event: ', 'obf-new' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Event: ', '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>
</div>
<!--main content end -->
<!--footer -->
<?php get_footer(); ?>