-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
36 lines (24 loc) · 737 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
35
36
<?php get_header(); ?>
<div class="container text-center">
<div class="row align-items-start mt-5 pt-3">
<div class="col-sm-8">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php
// check for a Featured Image and then assign it to a PHP variable for later use
if ( has_post_thumbnail() ) {
$featured_image = get_the_post_thumbnail();
}
echo $featured_image;
?>
<?php the_content(); ?>
<?php endwhile; else : ?>
<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div>
<div class="col-sm-4">
<h3>Сайдбар</h3>
</div>
</div>
</div>
<?php get_footer(); ?>