forked from martinosmartinos/Mongabay-Wordpress-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
39 lines (39 loc) · 1.23 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
<?php get_header(); ?>
<main role="main">
<div class="row">
<div id="main" class="col-lg-8 single">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1><?php the_title(); ?></h1>
<?php mongabay_sanitized_content($post_id);?>
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h1><?php _e( 'Sorry, nothing to display.', 'mongabay' ); ?></h1>
</article>
<!-- /article -->
<?php endif; ?>
</div>
<?php
if(!wp_is_mobile()) {
global $post;
if(($post->post_parent=='186085') || is_page('statistics')) {
echo '<aside class="sidebar col-lg-4" role="complementary"><div class="sidebar-widget">';
dynamic_sidebar('stats-widget');
echo '</div></aside>';
}
else {
get_sidebar();
}
}
?>
</div>
<?php get_template_part( section, series ); ?>
</main>
</div>
<!-- /container -->
<?php get_footer(); ?>