Ticket #21675: twentytwelve-content.diff
File twentytwelve-content.diff, 10.6 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/content-aside.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <div class="aside"> 13 14 <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> 15 14 16 <div class="entry-content"> 15 17 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 16 18 </div><!-- .entry-content --> … … 18 20 19 21 <footer class="entry-meta"> 20 22 <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> 23 21 24 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 22 25 </footer><!-- .entry-meta --> 26 23 27 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-link.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <header><?php _e( 'Link', 'twentytwelve' ); ?></header> 14 13 15 <div class="entry-content"> 14 16 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 15 17 </div><!-- .entry-content --> 16 18 17 19 <footer class="entry-meta"> 18 20 <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> 21 19 22 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 20 23 </footer><!-- .entry-meta --> 24 21 25 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-none.php
9 9 ?> 10 10 11 11 <article id="post-0" class="post no-results not-found"> 12 12 13 <header class="entry-header"> 13 14 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> 14 </header> 15 </header><!-- .entry-header --> 15 16 16 17 <div class="entry-content"> 17 18 <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> 19 18 20 <?php get_search_form(); ?> 19 21 </div><!-- .entry-content --> 22 20 23 </article><!-- #post-0 --> -
wp-content/themes/twentytwelve/content.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> 13 <div class="featured-post">14 <?php _e( 'Featured post', 'twentytwelve' ); ?>15 </div>14 <div class="featured-post"> 15 <?php _e( 'Featured post', 'twentytwelve' ); ?> 16 </div><!-- .featured-post --> 16 17 <?php endif; ?> 18 17 19 <header class="entry-header"> 20 18 21 <?php the_post_thumbnail(); ?> 22 19 23 <?php if ( is_single() ) : ?> 20 <h1 class="entry-title"><?php the_title(); ?></h1>24 <h1 class="entry-title"><?php the_title(); ?></h1> 21 25 <?php else : ?> 22 <h1 class="entry-title">23 <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>24 </h1>26 <h1 class="entry-title"> 27 <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> 28 </h1><!-- .entry-title --> 25 29 <?php endif; // is_single() ?> 30 26 31 <?php if ( comments_open() ) : ?> 27 32 <div class="comments-link"> 28 33 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> 29 34 </div><!-- .comments-link --> 30 35 <?php endif; // comments_open() ?> 36 31 37 </header><!-- .entry-header --> 32 38 33 39 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 34 <div class="entry-summary">35 <?php the_excerpt(); ?>36 </div><!-- .entry-summary -->40 <div class="entry-summary"> 41 <?php the_excerpt(); ?> 42 </div><!-- .entry-summary --> 37 43 <?php else : ?> 38 <div class="entry-content">39 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>40 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>41 </div><!-- .entry-content -->44 <div class="entry-content"> 45 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 46 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 47 </div><!-- .entry-content --> 42 48 <?php endif; ?> 43 49 44 50 <footer class="entry-meta"> 51 45 52 <?php twentytwelve_entry_meta(); ?> 53 46 54 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 55 47 56 <?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. ?> 57 48 58 <div class="author-info"> 49 59 <div class="author-avatar"> 50 60 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> 51 61 </div><!-- .author-avatar --> 62 52 63 <div class="author-description"> 53 64 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 65 54 66 <p><?php the_author_meta( 'description' ); ?></p> 67 55 68 <div class="author-link"> 56 69 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 57 70 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> … … 59 72 </div><!-- .author-link --> 60 73 </div><!-- .author-description --> 61 74 </div><!-- .author-info --> 75 62 76 <?php endif; ?> 77 63 78 </footer><!-- .entry-meta --> 79 64 80 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-page.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <header class="entry-header"> 13 14 <h1 class="entry-title"><?php the_title(); ?></h1> 14 </header> 15 </header><!-- .entry-header --> 15 16 16 17 <div class="entry-content"> 17 18 <?php the_content(); ?> 18 19 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 19 20 </div><!-- .entry-content --> 21 20 22 <footer class="entry-meta"> 21 23 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 22 24 </footer><!-- .entry-meta --> 25 23 26 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-image.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <div class="entry-content"> 13 14 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 14 15 </div><!-- .entry-content --> … … 16 17 <footer class="entry-meta"> 17 18 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> 18 19 <h1><?php the_title(); ?></h1> 20 19 21 <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo get_the_date(); ?></time></h2> 22 20 23 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 21 24 </a> 22 25 </footer><!-- .entry-meta --> 26 23 27 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-status.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <div class="entry-header"> 13 14 <header> 14 15 <h1><?php the_author(); ?></h1> 15 16 <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> 16 17 </header> 18 17 19 <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?> 18 20 </div><!-- .entry-header --> 19 21 … … 24 26 <footer class="entry-meta"> 25 27 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 26 28 </footer><!-- .entry-meta --> 29 27 30 </article><!-- #post --> -
wp-content/themes/twentytwelve/content-quote.php
9 9 ?> 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 13 <div class="entry-content"> 13 14 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 14 15 </div><!-- .entry-content --> … … 17 18 <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> 18 19 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 19 20 </footer><!-- .entry-meta --> 21 20 22 </article><!-- #post -->