-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·62 lines (62 loc) · 2.17 KB
/
single.php
File metadata and controls
executable file
·62 lines (62 loc) · 2.17 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* The single template file.
*
* @subpackage journalism
* @since journalism
*/
get_header(); ?>
<div id="content">
<?php if ( have_posts() ) : the_post(); ?>
<div class="post">
<?php if ( has_post_thumbnail() ) : /* post thumbnail */ ?>
<div class="featured-image">
<?php the_post_thumbnail( 'post-thumb' ); ?>
</div>
<div class="featured-image-title">
<?php do_action( 'journalism_featured_images_title' ) ?>
</div>
<?php endif; /* post thumbnail */ ?>
<div class="journalism-post-carcas">
<header>
<h2 class="entry-title">
<?php the_title(); ?>
</h2><!-- tags .entry-title -->
<div class="post-data">
<article>
<?php _e( 'Posted on', 'journalism' ); ?>
<a href="<?php echo esc_url( get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ) ); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_the_date(); ?></a>
<?php if ( has_category() ) {
echo __( 'in', 'journalism' ) . ' ';
the_category( ', ' );
} ?>
</article>
</div><!-- div .post-data -->
</header>
<div class="post-text">
<?php the_content(); ?>
</div><!-- div .post-text -->
<?php wp_link_pages(); ?>
<footer>
<div class="clear"></div>
<span class="nav-previous"><?php previous_post_link( '%link' ); ?></span><!-- tags .previous -->
<span class="nav-next"><?php next_post_link( '%link' ); ?></span><!-- tags .next -->
<div class="clear"></div>
<?php if ( has_tag() ) { ?>
<div class="post-tag"><!-- div .post-tag -->
<?php the_tags( ' ' ); ?>
</div><!-- div .post-tag -->
<?php }
edit_post_link( __( 'Edit', 'journalism' ), '<span class="edit-link">', '</span>' ); ?>
<div class="clear"></div>
<hr />
<?php if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif; ?><!-- comments -->
</footer>
</div><!-- div .journalism-post-carcas -->
</div><!-- div .post -->
<?php endif; ?>
</div><!-- div #content -->
<?php get_sidebar();
get_footer();