forked from shahidbasheer/origines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-single.php
94 lines (67 loc) · 2.92 KB
/
loop-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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
* Name: Origines WordPress Theme
* GitHub URI: https://github.com/haroldparis/origines
* Description: Origines template for the loop-single.
* Author: Harold Paris
* Twitter: @haroldparis
* Author website: http://www.tribeleadr.com/
*/
?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="o-title-header page-header">
<h1 class="o-title">
<?php the_title(); ?>
</h1> <!-- /.o-title -->
</header> <!-- /.o-title-header -->
<div id="o-content" class="o-entry-content clearfix" itemprop="MainContentofPage">
<?php the_content(); ?>
</div> <!-- /#o-content -->
<footer class="o-entry-meta">
<?php origines_entry_meta(); ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div id="o-author-info" class="well media">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php the_author(); ?>" id="o-author-avatar-link" class="pull-left">
<?php origines_get_avatar( get_the_author_meta( 'user_email' ), 96); ?>
</a>
<div id="o-author-description" class="media-body">
<h4 id="o-author-info-title" class="media-heading">
<?php printf( __( 'About %s', 'origines' ), get_the_author() ); ?>
</h4> <!-- /#o-author-info-title -->
<p><?php the_author_meta( 'description' ); ?></p>
<div id="o-author-link">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author" class="btn btn-mini btn-info">
<?php printf( __( '<i class="icon-user icon-white"></i> View all posts by %s', 'origines' ), get_the_author() ); ?>
</a>
</div><!-- /#o-author-link -->
</div><!-- /#o-author-description -->
</div><!-- /#o-author-info -->
<?php endif; ?>
</footer><!-- /.o-entry-meta -->
</article><!-- #post -->
<nav class="o-page-nav">
<ul class="pager">
<li class="previous">
<?php previous_post_link( '%link', '<i class="icon-arrow-left"></i> '. __( 'Previous post:', 'origines' ) . ' <strong>%title</strong>' ); ?>
</li>
<li class="next">
<?php next_post_link( '%link', __( 'Next post:', 'origines' ) . ' <strong>%title</strong> <i class="icon-arrow-right"></i>' ); ?>
</li>
</ul>
</nav><!-- /.o-page-nav -->
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="o-title-header page-header">
<h1 class="o-title">
<?php _e( 'Nothing Found', 'origines' ); ?>
</h1> <!-- /.o-title -->
</header> <!-- /.o-title-header -->
<div id="o-content" class="o-entry-content clearfix" itemprop="MainContentofPage">
<p><?php _e( 'Apologies, but no results were found.', 'origines' ); ?></p>
</div> <!-- /#o-content -->
</article><!-- #post-0 -->
<?php endif; ?>