Skip to content
Newer
Older
100644 71 lines (42 sloc) 2.28 KB
b32764d Importing the Trending theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Home Template
4 *
5 * This is the home template. Technically, it is the "posts page" template. It is used when a visitor is on the
6 * page assigned to show a site's latest blog posts.
7 *
8 * @package Prototype
9 * @subpackage Template
10 */
11
12 get_header(); // Loads the header.php template. ?>
13
14 <?php do_atomic( 'before_content' ); // prototype_before_content ?>
15
16 <div id="content">
17
18 <?php do_atomic( 'open_content' ); // prototype_open_content ?>
19
20 <div class="hfeed">
21
22 <?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
23
24 <?php if ( have_posts() ) : ?>
25
26 <?php while ( have_posts() ) : the_post(); ?>
27
28 <?php do_atomic( 'before_entry' ); // prototype_before_entry ?>
29
30 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
31
32 <?php do_atomic( 'open_entry' ); // prototype_open_entry ?>
33
34 <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail' ) ); ?>
35
36 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
37
38 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
39
40 <div class="entry-summary">
41 <?php the_excerpt(); ?>
42 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
43 </div><!-- .entry-summary -->
44
45 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-comments-link]', hybrid_get_textdomain() ) . '</div>' ); ?>
46
47 <?php do_atomic( 'close_entry' ); // prototype_close_entry ?>
48
49 </div><!-- .hentry -->
50
51 <?php do_atomic( 'after_entry' ); // prototype_after_entry ?>
52
53 <?php endwhile; ?>
54
55 <?php else : ?>
56
57 <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
58
59 <?php endif; ?>
60
61 </div><!-- .hfeed -->
62
63 <?php do_atomic( 'close_content' ); // prototype_close_content ?>
64
65 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
66
67 </div><!-- #content -->
68
69 <?php do_atomic( 'after_content' ); // prototype_after_content ?>
70
71 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.