-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
65 lines (49 loc) · 2.73 KB
/
page.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
<?php
get_header();
get_template_part( 'heading' );
// get options
$sb = monica_meta_data( '_monica_radio_sidebar_layout' ) ? monica_meta_data( '_monica_radio_sidebar_layout' ) : monica_option_data( 'select_post_sidebar' );
$fp = monica_meta_data( '_monica_full_page_width' ) ? 'container-full' : 'container';
$ctwd = $sb == 'fullwidth' ? 12 : 8;
?>
<div class="site-main <?php echo esc_attr( $fp );?>-wrapper">
<div class="<?php echo esc_attr( $fp );?>">
<div class="row" id="<?php echo esc_attr( $sb );?>">
<div id="page-content" class="content col-md-<?php echo esc_attr( $ctwd );?>">
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class( 'page-entry' ); ?>>
<div class="entry-content-container <?php echo esc_attr( $sb );?>-wrap">
<div class="entry-content format-content clearfix">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
esc_html__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'monica_theme' ),
get_the_title()
) );
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'monica_theme' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'monica_theme' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div><!-- .entry-content -->
</div><!-- // .entry-content-container -->
</div><!-- // .entry-item -->
<?php
if ( monica_option_data( 'switch_comment_page') && ( comments_open() || get_comments_number() )) {
comments_template();
}
?>
<?php endwhile; ?>
</div><!-- // #archive-content -->
<?php
if ( $ctwd == 8)
get_sidebar();
?>
</div><!-- // .row -->
</div><!-- // .container -->
</div><!-- // .site-main -->
<?php get_footer(); ?>