-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
65 lines (46 loc) · 1.91 KB
/
single.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @package Coraline
* @since Coraline 1.0
*/
get_header(); ?>
<div id="page-content">
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php if ( have_posts() ) while ( have_posts() ) : the_post();
$format = get_post_format();
if ( false == $format)
$format = 'standard'; ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( 'standard' != $format ) : ?>
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'coraline' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo esc_html( get_post_format_string( get_post_format() ) ); ?></a>
<?php endif; ?>
<?php if ( get_post_type() == 'post') : ?>
<div class="all-posts-btn">
<a href="/news"><i class="fa fa-chevron-left" aria-hidden="true"></i> All News</a>
</div>
<?php endif; ?>
<?php
the_title( '<h2 class="page-header">', '</h2>' );
?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<div class="entry-info">
<?php if ( 'standard' != $format ) : ?>
<p class="format-entry-meta">
<?php coraline_posted_on(); coraline_posted_by(); ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'coraline' ), __( '1 Comment', 'coraline' ), __( '% Comments', 'coraline' ) ); ?></span>
</p>
<?php endif; ?>
</div><!-- .entry-info -->
</div><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- col-xs-12 -->
</div><!-- row -->
</div><!-- container -->
<?php /*get_sidebar();*/ ?>
<?php get_footer(); ?>