| 1 | Index: wp-content/themes/twentytwelve/content-aside.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentytwelve/content-aside.php (revision 22166) |
|---|
| 4 | +++ wp-content/themes/twentytwelve/content-aside.php (working copy) |
|---|
| 5 | @@ -9,8 +9,10 @@ |
|---|
| 6 | ?> |
|---|
| 7 | |
|---|
| 8 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 9 | + |
|---|
| 10 | <div class="aside"> |
|---|
| 11 | <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> |
|---|
| 12 | + |
|---|
| 13 | <div class="entry-content"> |
|---|
| 14 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 15 | </div><!-- .entry-content --> |
|---|
| 16 | @@ -18,6 +20,8 @@ |
|---|
| 17 | |
|---|
| 18 | <footer class="entry-meta"> |
|---|
| 19 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
|---|
| 20 | + |
|---|
| 21 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 22 | </footer><!-- .entry-meta --> |
|---|
| 23 | + |
|---|
| 24 | </article><!-- #post --> |
|---|
| 25 | Index: wp-content/themes/twentytwelve/content-link.php |
|---|
| 26 | =================================================================== |
|---|
| 27 | --- wp-content/themes/twentytwelve/content-link.php (revision 22166) |
|---|
| 28 | +++ wp-content/themes/twentytwelve/content-link.php (working copy) |
|---|
| 29 | @@ -9,13 +9,17 @@ |
|---|
| 30 | ?> |
|---|
| 31 | |
|---|
| 32 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 33 | + |
|---|
| 34 | <header><?php _e( 'Link', 'twentytwelve' ); ?></header> |
|---|
| 35 | + |
|---|
| 36 | <div class="entry-content"> |
|---|
| 37 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 38 | </div><!-- .entry-content --> |
|---|
| 39 | |
|---|
| 40 | <footer class="entry-meta"> |
|---|
| 41 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
|---|
| 42 | + |
|---|
| 43 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 44 | </footer><!-- .entry-meta --> |
|---|
| 45 | + |
|---|
| 46 | </article><!-- #post --> |
|---|
| 47 | Index: wp-content/themes/twentytwelve/content-none.php |
|---|
| 48 | =================================================================== |
|---|
| 49 | --- wp-content/themes/twentytwelve/content-none.php (revision 22166) |
|---|
| 50 | +++ wp-content/themes/twentytwelve/content-none.php (working copy) |
|---|
| 51 | @@ -9,12 +9,15 @@ |
|---|
| 52 | ?> |
|---|
| 53 | |
|---|
| 54 | <article id="post-0" class="post no-results not-found"> |
|---|
| 55 | + |
|---|
| 56 | <header class="entry-header"> |
|---|
| 57 | <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> |
|---|
| 58 | - </header> |
|---|
| 59 | + </header><!-- .entry-header --> |
|---|
| 60 | |
|---|
| 61 | <div class="entry-content"> |
|---|
| 62 | <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> |
|---|
| 63 | + |
|---|
| 64 | <?php get_search_form(); ?> |
|---|
| 65 | </div><!-- .entry-content --> |
|---|
| 66 | + |
|---|
| 67 | </article><!-- #post-0 --> |
|---|
| 68 | Index: wp-content/themes/twentytwelve/content.php |
|---|
| 69 | =================================================================== |
|---|
| 70 | --- wp-content/themes/twentytwelve/content.php (revision 22166) |
|---|
| 71 | +++ wp-content/themes/twentytwelve/content.php (working copy) |
|---|
| 72 | @@ -9,49 +9,62 @@ |
|---|
| 73 | ?> |
|---|
| 74 | |
|---|
| 75 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 76 | + |
|---|
| 77 | <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> |
|---|
| 78 | - <div class="featured-post"> |
|---|
| 79 | - <?php _e( 'Featured post', 'twentytwelve' ); ?> |
|---|
| 80 | - </div> |
|---|
| 81 | + <div class="featured-post"> |
|---|
| 82 | + <?php _e( 'Featured post', 'twentytwelve' ); ?> |
|---|
| 83 | + </div><!-- .featured-post --> |
|---|
| 84 | <?php endif; ?> |
|---|
| 85 | + |
|---|
| 86 | <header class="entry-header"> |
|---|
| 87 | + |
|---|
| 88 | <?php the_post_thumbnail(); ?> |
|---|
| 89 | + |
|---|
| 90 | <?php if ( is_single() ) : ?> |
|---|
| 91 | - <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 92 | + <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 93 | <?php else : ?> |
|---|
| 94 | - <h1 class="entry-title"> |
|---|
| 95 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> |
|---|
| 96 | - </h1> |
|---|
| 97 | + <h1 class="entry-title"> |
|---|
| 98 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> |
|---|
| 99 | + </h1><!-- .entry-title --> |
|---|
| 100 | <?php endif; // is_single() ?> |
|---|
| 101 | + |
|---|
| 102 | <?php if ( comments_open() ) : ?> |
|---|
| 103 | <div class="comments-link"> |
|---|
| 104 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
|---|
| 105 | </div><!-- .comments-link --> |
|---|
| 106 | <?php endif; // comments_open() ?> |
|---|
| 107 | + |
|---|
| 108 | </header><!-- .entry-header --> |
|---|
| 109 | |
|---|
| 110 | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
|---|
| 111 | - <div class="entry-summary"> |
|---|
| 112 | - <?php the_excerpt(); ?> |
|---|
| 113 | - </div><!-- .entry-summary --> |
|---|
| 114 | + <div class="entry-summary"> |
|---|
| 115 | + <?php the_excerpt(); ?> |
|---|
| 116 | + </div><!-- .entry-summary --> |
|---|
| 117 | <?php else : ?> |
|---|
| 118 | - <div class="entry-content"> |
|---|
| 119 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 120 | - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|---|
| 121 | - </div><!-- .entry-content --> |
|---|
| 122 | + <div class="entry-content"> |
|---|
| 123 | + <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 124 | + <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|---|
| 125 | + </div><!-- .entry-content --> |
|---|
| 126 | <?php endif; ?> |
|---|
| 127 | |
|---|
| 128 | <footer class="entry-meta"> |
|---|
| 129 | + |
|---|
| 130 | <?php twentytwelve_entry_meta(); ?> |
|---|
| 131 | + |
|---|
| 132 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 133 | + |
|---|
| 134 | <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> |
|---|
| 135 | + |
|---|
| 136 | <div class="author-info"> |
|---|
| 137 | <div class="author-avatar"> |
|---|
| 138 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> |
|---|
| 139 | </div><!-- .author-avatar --> |
|---|
| 140 | + |
|---|
| 141 | <div class="author-description"> |
|---|
| 142 | <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> |
|---|
| 143 | + |
|---|
| 144 | <p><?php the_author_meta( 'description' ); ?></p> |
|---|
| 145 | + |
|---|
| 146 | <div class="author-link"> |
|---|
| 147 | <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|---|
| 148 | <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> |
|---|
| 149 | @@ -59,6 +72,9 @@ |
|---|
| 150 | </div><!-- .author-link --> |
|---|
| 151 | </div><!-- .author-description --> |
|---|
| 152 | </div><!-- .author-info --> |
|---|
| 153 | + |
|---|
| 154 | <?php endif; ?> |
|---|
| 155 | + |
|---|
| 156 | </footer><!-- .entry-meta --> |
|---|
| 157 | + |
|---|
| 158 | </article><!-- #post --> |
|---|
| 159 | Index: wp-content/themes/twentytwelve/content-page.php |
|---|
| 160 | =================================================================== |
|---|
| 161 | --- wp-content/themes/twentytwelve/content-page.php (revision 22166) |
|---|
| 162 | +++ wp-content/themes/twentytwelve/content-page.php (working copy) |
|---|
| 163 | @@ -9,15 +9,18 @@ |
|---|
| 164 | ?> |
|---|
| 165 | |
|---|
| 166 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 167 | + |
|---|
| 168 | <header class="entry-header"> |
|---|
| 169 | <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 170 | - </header> |
|---|
| 171 | + </header><!-- .entry-header --> |
|---|
| 172 | |
|---|
| 173 | <div class="entry-content"> |
|---|
| 174 | <?php the_content(); ?> |
|---|
| 175 | <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|---|
| 176 | </div><!-- .entry-content --> |
|---|
| 177 | + |
|---|
| 178 | <footer class="entry-meta"> |
|---|
| 179 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 180 | </footer><!-- .entry-meta --> |
|---|
| 181 | + |
|---|
| 182 | </article><!-- #post --> |
|---|
| 183 | Index: wp-content/themes/twentytwelve/content-image.php |
|---|
| 184 | =================================================================== |
|---|
| 185 | --- wp-content/themes/twentytwelve/content-image.php (revision 22166) |
|---|
| 186 | +++ wp-content/themes/twentytwelve/content-image.php (working copy) |
|---|
| 187 | @@ -9,6 +9,7 @@ |
|---|
| 188 | ?> |
|---|
| 189 | |
|---|
| 190 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 191 | + |
|---|
| 192 | <div class="entry-content"> |
|---|
| 193 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 194 | </div><!-- .entry-content --> |
|---|
| 195 | @@ -16,8 +17,11 @@ |
|---|
| 196 | <footer class="entry-meta"> |
|---|
| 197 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> |
|---|
| 198 | <h1><?php the_title(); ?></h1> |
|---|
| 199 | + |
|---|
| 200 | <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo get_the_date(); ?></time></h2> |
|---|
| 201 | + |
|---|
| 202 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 203 | </a> |
|---|
| 204 | </footer><!-- .entry-meta --> |
|---|
| 205 | + |
|---|
| 206 | </article><!-- #post --> |
|---|
| 207 | Index: wp-content/themes/twentytwelve/content-status.php |
|---|
| 208 | =================================================================== |
|---|
| 209 | --- wp-content/themes/twentytwelve/content-status.php (revision 22166) |
|---|
| 210 | +++ wp-content/themes/twentytwelve/content-status.php (working copy) |
|---|
| 211 | @@ -9,11 +9,13 @@ |
|---|
| 212 | ?> |
|---|
| 213 | |
|---|
| 214 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 215 | + |
|---|
| 216 | <div class="entry-header"> |
|---|
| 217 | <header> |
|---|
| 218 | <h1><?php the_author(); ?></h1> |
|---|
| 219 | <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2> |
|---|
| 220 | </header> |
|---|
| 221 | + |
|---|
| 222 | <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?> |
|---|
| 223 | </div><!-- .entry-header --> |
|---|
| 224 | |
|---|
| 225 | @@ -24,4 +26,5 @@ |
|---|
| 226 | <footer class="entry-meta"> |
|---|
| 227 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 228 | </footer><!-- .entry-meta --> |
|---|
| 229 | + |
|---|
| 230 | </article><!-- #post --> |
|---|
| 231 | Index: wp-content/themes/twentytwelve/content-quote.php |
|---|
| 232 | =================================================================== |
|---|
| 233 | --- wp-content/themes/twentytwelve/content-quote.php (revision 22166) |
|---|
| 234 | +++ wp-content/themes/twentytwelve/content-quote.php (working copy) |
|---|
| 235 | @@ -9,6 +9,7 @@ |
|---|
| 236 | ?> |
|---|
| 237 | |
|---|
| 238 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 239 | + |
|---|
| 240 | <div class="entry-content"> |
|---|
| 241 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|---|
| 242 | </div><!-- .entry-content --> |
|---|
| 243 | @@ -17,4 +18,5 @@ |
|---|
| 244 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
|---|
| 245 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|---|
| 246 | </footer><!-- .entry-meta --> |
|---|
| 247 | + |
|---|
| 248 | </article><!-- #post --> |
|---|