-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
35 lines (30 loc) · 911 Bytes
/
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
<?php get_header(); ?>
<div class="page">
<main id="main" class="site-main" role="main">
<div class="row">
<div class="col-lg-8 col-md-7 middle-panel-rise">
<?php while ( have_posts() ) : the_post();?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<!-- Put title if hide-title meta entry is (1) set to false or (2) not set at all -->
<?php
global $post;
$hide_title = get_post_meta($post->ID, 'hide-title', true) === 'true';
if (!$hide_title) : ?>
<h2 class="text-center question-topic"><?php the_title(); ?></h2>
<?php endif; ?>
<div>
<?php the_content(); ?>
</div>
</div>
<?php
// End the loop.
endwhile;
?>
</div>
<div class="col-lg-4 col-md-5">
<?php get_sidebar('footer');?>
</div>
</div>
</main><!-- .site-main -->
</div>
<?php get_footer(); ?>