Skip to content
Newer
Older
100644 79 lines (47 sloc) 2.65 KB
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
1 <?php
2 /**
3 * Post Template
4 *
5 * This is the default post template. It is used when a more specific template can't be found to display
6 * singular views of the 'post' post type.
7 *
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
8 * @package Trending
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
9 * @subpackage Template
10 */
11
12 get_header(); // Loads the header.php template. ?>
13
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
14 <?php do_atomic( 'before_content' ); // trending_before_content ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
15
16 <div id="content">
17
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
18 <?php do_atomic( 'open_content' ); // trending_open_content ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
19
20 <div class="hfeed">
21
22 <?php if ( have_posts() ) : ?>
23
24 <?php while ( have_posts() ) : the_post(); ?>
25
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
26 <?php do_atomic( 'before_entry' ); // trending_before_entry ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
27
28 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
29
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
30 <?php do_atomic( 'open_entry' ); // trending_open_entry ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
31
32 <?php echo apply_atomic( 'entry_avatar', get_avatar( get_the_author_meta( 'user_email' ), '100', '', get_the_author_meta( 'display_name' ) ) ); ?>
33
34 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
35
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored Aug 23, 2012
36 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'trending' ) . '</div>' ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
37
38 <?php if ( has_excerpt() ) : ?>
39
40 <div class="entry-summary">
41 <?php the_excerpt(); ?>
42 </div><!-- .entry-summary -->
43
44 <?php endif; ?>
45
46 <div class="entry-content">
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored Aug 24, 2012
47 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'trending' ) ); ?>
48 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'trending' ), 'after' => '</p>' ) ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
49 </div><!-- .entry-content -->
50
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored Aug 24, 2012
51 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms taxonomy="post_tag" before="Tagged "]', 'trending' ) . '</div>' ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
52
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
53 <?php do_atomic( 'close_entry' ); // trending_close_entry ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
54
55 </div><!-- .hentry -->
56
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
57 <?php do_atomic( 'after_entry' ); // trending_after_entry ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
58
59 <?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
60
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
61 <?php do_atomic( 'after_singular' ); // trending_after_singular ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
62
63 <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
64
65 <?php endwhile; ?>
66
67 <?php endif; ?>
68
69 </div><!-- .hfeed -->
70
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
71 <?php do_atomic( 'close_content' ); // trending_close_content ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
72
73 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
74
75 </div><!-- #content -->
76
c4bc693 Ready for beta 1.
greenshady authored May 23, 2011
77 <?php do_atomic( 'after_content' ); // trending_after_content ?>
b32764d Importing the Trending theme files and folders.
greenshady authored Mar 19, 2011
78
79 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.