-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.php
45 lines (36 loc) · 1.7 KB
/
post.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
37
38
39
40
41
42
43
44
45
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header class="article-header">
<time class="updated article-date" datetime="<?php echo get_the_time('Y-m-j')?>" pubdate>
<span class="article-date-day"><?php echo get_the_time('j')?></span>
<span class="article-date-month"><?php echo get_the_time('M')?></span>
<span class="article-date-year"><?php echo get_the_time('Y')?></span>
</time>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php
// check if the post has a Post Thumbnail assigned to it.
if ( has_post_thumbnail() ) {
the_post_thumbnail('flatdesign_post_preview');
} else {
?>
<img width="847" height="222" src="<?php echo get_stylesheet_directory_uri(); ?>/library/images/headers/default-847-222.jpg" class="attachment-flatdesign_post_preview wp-post-image" alt="<?php the_title(); ?>">
<?php
}
?>
<h1 class="h2 post-title"><?php the_title(); ?></h1>
</a>
</header> <!-- end article header -->
<section class="entry-content clearfix">
<?php the_excerpt(); ?>
</section> <!-- end article section -->
<footer class="article-footer">
<div class="categories first">
<span class="categories-title"> <?php echo __('Categories', 'bonestheme') ?>:</span>
<span class="the-categories"> <?php echo get_the_category_list(', ') ?></span>
</div>
<div class="tags last">
<span class="tags-title"><?php echo __('Tags', 'bonestheme') ?>:</span>
<span class="the-tags"> <?php echo get_the_tag_list('', ', ', '') ?></span>
</div>
</footer> <!-- end article footer -->
<?php // comments_template(); // uncomment if you want to use them ?>
</article> <!-- end article -->