-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.php
40 lines (38 loc) · 1.56 KB
/
content.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
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>"><?php the_title( ); ?></a>
</h2>
<div class="entry-meta">
<time class="entry-date published updated" datetime="<?php the_date( 'c' ); ?>">
<?php echo get_the_date(); ?>
</time>
<span class="author vcard">
<a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php echo get_the_author(); ?>
</a>
</span>
</div><!-- .entry-meta -->
<?php if( has_post_thumbnail() ) : ?>
<div class="featured-image">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; //end has_post_thumbnail() ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __('Continua a leggere ', 'skam') . get_the_title() ); ?>
</div>
<footer class="entry-footer">
<span class="cat-links"><?php the_category( ', ' ); ?></span>
<span class="tag-links"><?php the_tags(); ?></span>
<span class="comments-links">
<?php
if( is_single() ){
comments_template();
} else {
comments_popup_link( __( 'Lascia il tuo commento', 'skam' ), __( '1 commento', 'skam' ), __( '% commenti', 'skam' ) );
}
?>
</span>
</footer><!-- .entry-footer -->
</article>