|
15 | 15 |
|
16 | 16 | <?php while ( have_posts() ) : the_post(); ?> |
17 | 17 |
|
18 | | - <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
19 | | - <header class="entry-header"> |
20 | | - <h1 class="entry-title"><?php the_title(); ?></h1> |
| 18 | + <article id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>> |
21 | 19 |
|
22 | | - <div class="entry-meta"> |
23 | | - <?php echo influence_get_post_meta() ?> |
24 | | - <?php edit_post_link( __( 'Edit', 'influence' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?> |
25 | | - </div><!-- .entry-meta --> |
| 20 | + <div class="post-thumbnail"> |
| 21 | + <?php $next_attachment_url = influence_next_attachment_url(); ?> |
26 | 22 |
|
27 | | - <nav id="image-navigation" class="site-navigation"> |
28 | | - <span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'influence' ) ); ?></span> |
29 | | - <span class="next-image"><?php next_image_link( false, __( 'Next →', 'influence' ) ); ?></span> |
30 | | - </nav><!-- #image-navigation --> |
31 | | - </header><!-- .entry-header --> |
| 23 | + <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"> |
| 24 | + <?php |
| 25 | + $attachment_size = apply_filters( 'influence_attachment_size', array( 1200, 1200 ) ); // Filterable image size. |
| 26 | + echo wp_get_attachment_image( $post->ID, $attachment_size ); |
| 27 | + ?> |
| 28 | + </a> |
| 29 | + </div> |
32 | 30 |
|
33 | | - <div class="entry-content"> |
| 31 | + <div class="post-text"> |
34 | 32 |
|
35 | | - <div class="entry-attachment"> |
36 | | - <div class="attachment"> |
37 | | - <?php $next_attachment_url = influence_next_attachment_url(); ?> |
| 33 | + <?php if( get_the_title() ) : ?> |
| 34 | + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'influence' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> |
| 35 | + <?php endif; ?> |
38 | 36 |
|
39 | | - <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"> |
| 37 | + <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 38 | + <div class="entry-content"> |
| 39 | + <?php the_excerpt(); ?> |
| 40 | + </div><!-- .entry-summary --> |
| 41 | + <?php else : ?> |
| 42 | + <div class="entry-content"> |
| 43 | + <?php the_content( '' ); ?> |
| 44 | + <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'influence' ), 'after' => '</div>' ) ); ?> |
| 45 | + </div><!-- .entry-content --> |
| 46 | + <?php endif; ?> |
| 47 | + |
| 48 | + <div class="entry-meta"> |
| 49 | + <?php if( !is_singular() && ( preg_match( '/<!--more(.*?)?-->/', $post->post_content ) || empty($post->post_title) ) ) : ?> |
| 50 | + <div class="continue-reading"><a href="<?php the_permalink() ?>"><?php _e('Continue Reading <span class="meta-nav">→</span>', 'influence') ?></a></div> |
| 51 | + <?php else : ?> |
| 52 | + <div class="taxonomy"> |
40 | 53 | <?php |
41 | | - $attachment_size = apply_filters( 'influence_attachment_size', array( 1200, 1200 ) ); // Filterable image size. |
42 | | - echo wp_get_attachment_image( $post->ID, $attachment_size ); |
| 54 | + the_tags( '<div class="tags"><span class="influence-icon-ribbon"></span>', ', ', '</div>' ); |
| 55 | + if( influence_categorized_blog() ) the_terms( get_the_ID(), 'category', '<div class="categories"><span class="influence-icon-layers"></span>', ', ', '</div>' ); |
43 | 56 | ?> |
44 | | - </a> |
45 | | - </div><!-- .attachment --> |
46 | | - |
47 | | - <?php if ( ! empty( $post->post_excerpt ) ) : ?> |
48 | | - <div class="entry-caption"> |
49 | | - <?php the_excerpt(); ?> |
50 | | - </div><!-- .entry-caption --> |
| 57 | + </div> |
51 | 58 | <?php endif; ?> |
52 | | - </div><!-- .entry-attachment --> |
53 | 59 |
|
54 | | - <?php the_content(); ?> |
55 | | - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'influence' ), 'after' => '</div>' ) ); ?> |
| 60 | + <div class="posted-on"><?php influence_posted_on(); ?></div> |
| 61 | + </div><!-- .entry-meta --> |
| 62 | + |
| 63 | + <?php if ( comments_open() || '0' != get_comments_number() ) : ?> |
| 64 | + |
| 65 | + <div id="single-comments-wrapper"> |
| 66 | + <?php comments_template( '', true ); ?> |
| 67 | + </div><!-- #single-comments-wrapper --> |
56 | 68 |
|
57 | | - </div><!-- .entry-content --> |
| 69 | + <?php endif; ?> |
58 | 70 |
|
59 | | - <footer class="entry-meta"> |
60 | | - <?php edit_post_link( __( 'Edit', 'influence' ), ' <span class="edit-link">', '</span>' ); ?> |
61 | | - </footer><!-- .entry-meta --> |
62 | | - </article><!-- #post-<?php the_ID(); ?> --> |
| 71 | + </div> |
63 | 72 |
|
64 | | - <?php comments_template(); ?> |
| 73 | + </article> |
65 | 74 |
|
66 | 75 | <?php endwhile; // end of the loop. ?> |
67 | 76 |
|
|
0 commit comments