-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·49 lines (33 loc) · 977 Bytes
/
single.php
File metadata and controls
executable file
·49 lines (33 loc) · 977 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
41
42
43
44
45
46
47
48
49
<?php get_header(); ?>
<main role="main">
<div class="container">
<!-- section -->
<section class="medium-9 columns">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- post thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
<?php endif; ?>
<!-- /post thumbnail -->
<?php the_content(); // Dynamic Content ?>
<p><?php the_tags(); ?></p>
<?php comments_template(); ?>
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h1><?php _e( 'Sorry, nothing to display.', '' ); ?></h1>
</article>
<!-- /article -->
<?php endif; ?>
</section>
<!-- /section -->
<?php get_sidebar(); ?>
</div>
<div class="clear"></div>
</main>
<?php get_footer(); ?>