-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-content-right.php
61 lines (51 loc) · 1.28 KB
/
template-content-right.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
<?php
/**
* Template Name: Content Right
*
* The template-content-right.php file.
*
* Template for placing main content on the right
*
* @package Best_Reloaded
* @since Best Reloaded v0.1
*/
?>
<?php get_header(); ?>
<?php
// This is the hook used to add featurebar content.
best_reloaded_do_featurebar();
best_reloaded_do_before_main_content_row()
?>
<div class="row flex-row-reverse">
<div class="col-md-8">
<div id="main_content" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<h2 class="page-title"><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php
wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'best-reloaded' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?>
<?php
endwhile; else :
?>
<p class="hero-p no-content-message"><?php esc_html_e( 'There is currently nothing to display.', 'best-reloaded' ); ?></p>
<?php
endif;
?>
</div><!-- end #main_content -->
<hr class="hr-row-divider">
</div><!-- end .col-md-8 -->
<?php get_sidebar( 'main' ); ?>
</div><!-- end .row -->
<?php get_footer(); ?>