forked from fant0mex/DIAS_
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·40 lines (34 loc) · 778 Bytes
/
single.php
File metadata and controls
executable file
·40 lines (34 loc) · 778 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
29
30
31
32
33
34
35
36
37
38
39
40
<?php
get_header();
get_template_part('content', 'hero-image');
?>
<div class="container">
<div class="row">
<div class="col-sm-9">
<?php
if ( have_posts() ):
while ( have_posts() ):
the_post();
?>
<article class="blog-post">
<h2><?php the_title(); ?></h2>
<div class="info">
<?php the_time('F jS, Y'); ?> by <?php the_author( );?>
</div>
<div class="main-text">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
else:
?>
<p><?php _e('Sorry, this page does not exist.'); ?></p>
<?php endif; ?>
</div>
<div class="col-sm-3">
<?php get_sidebar() ?>
</div>
</div>
</div>
<?php get_footer(); ?>