-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
28 lines (28 loc) · 1005 Bytes
/
Copy pathsingle.php
File metadata and controls
28 lines (28 loc) · 1005 Bytes
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
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<main class="main">
<div class="container container--modifier">
<article class="main__single">
<div class="main__single-header d-flex align-items-center justify-content-between">
<div class="main__single-img">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} ?>
</div>
<div class="main__single-title p-2 w-100 text-right">
<h1><?php the_title(); ?></h1>
<span class="date"><?php the_date(); ?></span>
</div>
</div>
<div class="main__content text-right">
<?php the_content(); ?>
</div>
</article>
<?php
if (comments_open())
comments_template();
?>
</div>
</main>
<?php endwhile; endif; ?>
<?php get_footer(); ?>