@@ -12,17 +12,17 @@ |
||
| 12 | 12 | <div id="primary" class="site-content"> |
| 13 | 13 | <div id="content" role="main"> |
| 14 | 14 | |
| 15 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 15 | + <?php while (have_posts()) : the_post(); ?> |
|
| 16 | 16 | |
| 17 | - <?php get_template_part( 'content', get_post_format() ); ?> |
|
| 17 | + <?php get_template_part('content', get_post_format()); ?> |
|
| 18 | 18 | |
| 19 | 19 | <nav class="nav-single"> |
| 20 | - <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> |
|
| 21 | - <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span> |
|
| 22 | - <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span> |
|
| 20 | + <h3 class="assistive-text"><?php _e('Post navigation', 'twentytwelve'); ?></h3> |
|
| 21 | + <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'twentytwelve').'</span> %title'); ?></span> |
|
| 22 | + <span class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">'._x('→', 'Next post link', 'twentytwelve').'</span>'); ?></span> |
|
| 23 | 23 | </nav><!-- .nav-single --> |
| 24 | 24 | |
| 25 | - <?php comments_template( '', true ); ?> |
|
| 25 | + <?php comments_template('', true); ?> |
|
| 26 | 26 | |
| 27 | 27 | <?php endwhile; // end of the loop. ?> |
| 28 | 28 | |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 12 | 12 | <header class="entry-header"> |
| 13 | - <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?> |
|
| 13 | + <?php if ( ! is_page_template('page-templates/front-page.php')) : ?> |
|
| 14 | 14 | <?php the_post_thumbnail(); ?> |
| 15 | 15 | <?php endif; ?> |
| 16 | 16 | <h1 class="entry-title"><?php the_title(); ?></h1> |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | <div class="entry-content"> |
| 20 | 20 | <?php the_content(); ?> |
| 21 | - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|
| 21 | + <?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentytwelve'), 'after' => '</div>')); ?> |
|
| 22 | 22 | </div><!-- .entry-content --> |
| 23 | 23 | <footer class="entry-meta"> |
| 24 | - <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 24 | + <?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?> |
|
| 25 | 25 | </footer><!-- .entry-meta --> |
| 26 | 26 | </article><!-- #post --> |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | |
| 15 | 15 | <article id="post-0" class="post error404 no-results not-found"> |
| 16 | 16 | <header class="entry-header"> |
| 17 | - <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1> |
|
| 17 | + <h1 class="entry-title"><?php _e('This is somewhat embarrassing, isn’t it?', 'twentytwelve'); ?></h1> |
|
| 18 | 18 | </header> |
| 19 | 19 | |
| 20 | 20 | <div class="entry-content"> |
| 21 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p> |
|
| 21 | + <p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve'); ?></p> |
|
| 22 | 22 | <?php get_search_form(); ?> |
| 23 | 23 | </div><!-- .entry-content --> |
| 24 | 24 | </article><!-- #post-0 --> |
@@ -11,59 +11,59 @@ |
||
| 11 | 11 | ?> |
| 12 | 12 | |
| 13 | 13 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 14 | - <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> |
|
| 14 | + <?php if (is_sticky() && is_home() && ! is_paged()) : ?> |
|
| 15 | 15 | <div class="featured-post"> |
| 16 | - <?php _e( 'Featured post', 'twentytwelve' ); ?> |
|
| 16 | + <?php _e('Featured post', 'twentytwelve'); ?> |
|
| 17 | 17 | </div> |
| 18 | 18 | <?php endif; ?> |
| 19 | 19 | <header class="entry-header"> |
| 20 | - <?php if ( ! post_password_required() && ! is_attachment() ) : |
|
| 20 | + <?php if ( ! post_password_required() && ! is_attachment()) : |
|
| 21 | 21 | the_post_thumbnail(); |
| 22 | 22 | endif; ?> |
| 23 | 23 | |
| 24 | - <?php if ( is_single() ) : ?> |
|
| 24 | + <?php if (is_single()) : ?> |
|
| 25 | 25 | <h1 class="entry-title"><?php the_title(); ?></h1> |
| 26 | 26 | <?php else : ?> |
| 27 | 27 | <h1 class="entry-title"> |
| 28 | 28 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
| 29 | 29 | </h1> |
| 30 | 30 | <?php endif; // is_single() ?> |
| 31 | - <?php if ( comments_open() ) : ?> |
|
| 31 | + <?php if (comments_open()) : ?> |
|
| 32 | 32 | <div class="comments-link"> |
| 33 | - <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
|
| 33 | + <?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?> |
|
| 34 | 34 | </div><!-- .comments-link --> |
| 35 | 35 | <?php endif; // comments_open() ?> |
| 36 | 36 | </header><!-- .entry-header --> |
| 37 | 37 | |
| 38 | - <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
|
| 38 | + <?php if (is_search()) : // Only display Excerpts for Search ?> |
|
| 39 | 39 | <div class="entry-summary"> |
| 40 | 40 | <?php the_excerpt(); ?> |
| 41 | 41 | </div><!-- .entry-summary --> |
| 42 | 42 | <?php else : ?> |
| 43 | 43 | <div class="entry-content"> |
| 44 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|
| 45 | - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
|
| 44 | + <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'twentytwelve')); ?> |
|
| 45 | + <?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentytwelve'), 'after' => '</div>')); ?> |
|
| 46 | 46 | </div><!-- .entry-content --> |
| 47 | 47 | <?php endif; ?> |
| 48 | 48 | |
| 49 | 49 | <footer class="entry-meta"> |
| 50 | 50 | <?php twentytwelve_entry_meta(); ?> |
| 51 | - <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 52 | - <?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. ?> |
|
| 51 | + <?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?> |
|
| 52 | + <?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. ?> |
|
| 53 | 53 | <div class="author-info"> |
| 54 | 54 | <div class="author-avatar"> |
| 55 | 55 | <?php |
| 56 | 56 | /** This filter is documented in author.php */ |
| 57 | - $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ); |
|
| 58 | - echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); |
|
| 57 | + $author_bio_avatar_size = apply_filters('twentytwelve_author_bio_avatar_size', 68); |
|
| 58 | + echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size); |
|
| 59 | 59 | ?> |
| 60 | 60 | </div><!-- .author-avatar --> |
| 61 | 61 | <div class="author-description"> |
| 62 | - <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> |
|
| 63 | - <p><?php the_author_meta( 'description' ); ?></p> |
|
| 62 | + <h2><?php printf(__('About %s', 'twentytwelve'), get_the_author()); ?></h2> |
|
| 63 | + <p><?php the_author_meta('description'); ?></p> |
|
| 64 | 64 | <div class="author-link"> |
| 65 | - <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
| 66 | - <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> |
|
| 65 | + <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
| 66 | + <?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve'), get_the_author()); ?> |
|
| 67 | 67 | </a> |
| 68 | 68 | </div><!-- .author-link --> |
| 69 | 69 | </div><!-- .author-description --> |
@@ -23,9 +23,12 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | <?php if ( is_single() ) : ?> |
| 25 | 25 | <h1 class="entry-title"><?php the_title(); ?></h1> |
| 26 | - <?php else : ?> |
|
| 26 | + <?php else { |
|
| 27 | + : ?> |
|
| 27 | 28 | <h1 class="entry-title"> |
| 28 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
| 29 | + <a href="<?php the_permalink(); |
|
| 30 | +} |
|
| 31 | +?>" rel="bookmark"><?php the_title(); ?></a> |
|
| 29 | 32 | </h1> |
| 30 | 33 | <?php endif; // is_single() ?> |
| 31 | 34 | <?php if ( comments_open() ) : ?> |
@@ -39,9 +42,12 @@ discard block |
||
| 39 | 42 | <div class="entry-summary"> |
| 40 | 43 | <?php the_excerpt(); ?> |
| 41 | 44 | </div><!-- .entry-summary --> |
| 42 | - <?php else : ?> |
|
| 45 | + <?php else { |
|
| 46 | + : ?> |
|
| 43 | 47 | <div class="entry-content"> |
| 44 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
|
| 48 | + <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); |
|
| 49 | +} |
|
| 50 | +?> |
|
| 45 | 51 | <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
| 46 | 52 | </div><!-- .entry-content --> |
| 47 | 53 | <?php endif; ?> |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * the visitor has not yet entered the password we will |
| 18 | 18 | * return early without loading the comments. |
| 19 | 19 | */ |
| 20 | -if ( post_password_required() ) |
|
| 20 | +if (post_password_required()) |
|
| 21 | 21 | return; |
| 22 | 22 | ?> |
| 23 | 23 | |
@@ -25,23 +25,23 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | <?php // You can start editing here -- including this comment! ?> |
| 27 | 27 | |
| 28 | - <?php if ( have_comments() ) : ?> |
|
| 28 | + <?php if (have_comments()) : ?> |
|
| 29 | 29 | <h2 class="comments-title"> |
| 30 | 30 | <?php |
| 31 | - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), |
|
| 32 | - number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); |
|
| 31 | + printf(_n('One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve'), |
|
| 32 | + number_format_i18n(get_comments_number()), '<span>'.get_the_title().'</span>'); |
|
| 33 | 33 | ?> |
| 34 | 34 | </h2> |
| 35 | 35 | |
| 36 | 36 | <ol class="commentlist"> |
| 37 | - <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> |
|
| 37 | + <?php wp_list_comments(array('callback' => 'twentytwelve_comment', 'style' => 'ol')); ?> |
|
| 38 | 38 | </ol><!-- .commentlist --> |
| 39 | 39 | |
| 40 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
|
| 40 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?> |
|
| 41 | 41 | <nav id="comment-nav-below" class="navigation" role="navigation"> |
| 42 | - <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> |
|
| 43 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> |
|
| 44 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> |
|
| 42 | + <h1 class="assistive-text section-heading"><?php _e('Comment navigation', 'twentytwelve'); ?></h1> |
|
| 43 | + <div class="nav-previous"><?php previous_comments_link(__('← Older Comments', 'twentytwelve')); ?></div> |
|
| 44 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments →', 'twentytwelve')); ?></div> |
|
| 45 | 45 | </nav> |
| 46 | 46 | <?php endif; // check for comment navigation ?> |
| 47 | 47 | |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | /* If there are no comments and comments are closed, let's leave a note. |
| 50 | 50 | * But we only want the note on posts and pages that had comments in the first place. |
| 51 | 51 | */ |
| 52 | - if ( ! comments_open() && get_comments_number() ) : ?> |
|
| 53 | - <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> |
|
| 52 | + if ( ! comments_open() && get_comments_number()) : ?> |
|
| 53 | + <p class="nocomments"><?php _e('Comments are closed.', 'twentytwelve'); ?></p> |
|
| 54 | 54 | <?php endif; ?> |
| 55 | 55 | |
| 56 | 56 | <?php endif; // have_comments() ?> |
@@ -17,8 +17,9 @@ |
||
| 17 | 17 | * the visitor has not yet entered the password we will |
| 18 | 18 | * return early without loading the comments. |
| 19 | 19 | */ |
| 20 | -if ( post_password_required() ) |
|
| 20 | +if ( post_password_required() ) { |
|
| 21 | 21 | return; |
| 22 | +} |
|
| 22 | 23 | ?> |
| 23 | 24 | |
| 24 | 25 | <div id="comments" class="comments-area"> |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | <article id="post-0" class="post no-results not-found"> |
| 12 | 12 | <header class="entry-header"> |
| 13 | - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> |
|
| 13 | + <h1 class="entry-title"><?php _e('Nothing Found', 'twentytwelve'); ?></h1> |
|
| 14 | 14 | </header> |
| 15 | 15 | |
| 16 | 16 | <div class="entry-content"> |
| 17 | - <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> |
|
| 17 | + <p><?php _e('Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve'); ?></p> |
|
| 18 | 18 | <?php get_search_form(); ?> |
| 19 | 19 | </div><!-- .entry-content --> |
| 20 | 20 | </article><!-- #post-0 --> |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @since Twenty Fifteen 1.0 |
| 22 | 22 | */ |
| 23 | - do_action( 'twentyfifteen_credits' ); |
|
| 23 | + do_action('twentyfifteen_credits'); |
|
| 24 | 24 | ?> |
| 25 | - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a> |
|
| 25 | + <a href="<?php echo esc_url(__('https://wordpress.org/', 'twentyfifteen')); ?>"><?php printf(__('Proudly powered by %s', 'twentyfifteen'), 'WordPress'); ?></a> |
|
| 26 | 26 | </div><!-- .site-info --> |
| 27 | 27 | </footer><!-- .site-footer --> |
| 28 | 28 | |
@@ -14,23 +14,23 @@ |
||
| 14 | 14 | <?php twentyfifteen_post_thumbnail(); ?> |
| 15 | 15 | |
| 16 | 16 | <header class="entry-header"> |
| 17 | - <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> |
|
| 17 | + <?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?> |
|
| 18 | 18 | </header><!-- .entry-header --> |
| 19 | 19 | |
| 20 | 20 | <div class="entry-summary"> |
| 21 | 21 | <?php the_excerpt(); ?> |
| 22 | 22 | </div><!-- .entry-summary --> |
| 23 | 23 | |
| 24 | - <?php if ( 'post' == get_post_type() ) : ?> |
|
| 24 | + <?php if ('post' == get_post_type()) : ?> |
|
| 25 | 25 | |
| 26 | 26 | <footer class="entry-footer"> |
| 27 | 27 | <?php twentyfifteen_entry_meta(); ?> |
| 28 | - <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 28 | + <?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 29 | 29 | </footer><!-- .entry-footer --> |
| 30 | 30 | |
| 31 | 31 | <?php else : ?> |
| 32 | 32 | |
| 33 | - <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> |
|
| 33 | + <?php edit_post_link(__('Edit', 'twentyfifteen'), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->'); ?> |
|
| 34 | 34 | |
| 35 | 35 | <?php endif; ?> |
| 36 | 36 | |
@@ -28,9 +28,12 @@ |
||
| 28 | 28 | <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> |
| 29 | 29 | </footer><!-- .entry-footer --> |
| 30 | 30 | |
| 31 | - <?php else : ?> |
|
| 31 | + <?php else { |
|
| 32 | + : ?> |
|
| 32 | 33 | |
| 33 | - <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> |
|
| 34 | + <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); |
|
| 35 | +} |
|
| 36 | +?> |
|
| 34 | 37 | |
| 35 | 38 | <?php endif; ?> |
| 36 | 39 | |
@@ -14,19 +14,19 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | <?php |
| 16 | 16 | // Start the loop. |
| 17 | - while ( have_posts() ) : the_post(); |
|
| 17 | + while (have_posts()) : the_post(); |
|
| 18 | 18 | ?> |
| 19 | 19 | |
| 20 | 20 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 21 | 21 | |
| 22 | 22 | <nav id="image-navigation" class="navigation image-navigation"> |
| 23 | 23 | <div class="nav-links"> |
| 24 | - <div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div> |
|
| 24 | + <div class="nav-previous"><?php previous_image_link(false, __('Previous Image', 'twentyfifteen')); ?></div><div class="nav-next"><?php next_image_link(false, __('Next Image', 'twentyfifteen')); ?></div> |
|
| 25 | 25 | </div><!-- .nav-links --> |
| 26 | 26 | </nav><!-- .image-navigation --> |
| 27 | 27 | |
| 28 | 28 | <header class="entry-header"> |
| 29 | - <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
|
| 29 | + <?php the_title('<h1 class="entry-title">', '</h1>'); ?> |
|
| 30 | 30 | </header><!-- .entry-header --> |
| 31 | 31 | |
| 32 | 32 | <div class="entry-content"> |
@@ -40,12 +40,12 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param string $image_size Image size. Default 'large'. |
| 42 | 42 | */ |
| 43 | - $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); |
|
| 43 | + $image_size = apply_filters('twentyfifteen_attachment_size', 'large'); |
|
| 44 | 44 | |
| 45 | - echo wp_get_attachment_image( get_the_ID(), $image_size ); |
|
| 45 | + echo wp_get_attachment_image(get_the_ID(), $image_size); |
|
| 46 | 46 | ?> |
| 47 | 47 | |
| 48 | - <?php if ( has_excerpt() ) : ?> |
|
| 48 | + <?php if (has_excerpt()) : ?> |
|
| 49 | 49 | <div class="entry-caption"> |
| 50 | 50 | <?php the_excerpt(); ?> |
| 51 | 51 | </div><!-- .entry-caption --> |
@@ -55,34 +55,34 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | <?php |
| 57 | 57 | the_content(); |
| 58 | - wp_link_pages( array( |
|
| 59 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
|
| 58 | + wp_link_pages(array( |
|
| 59 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfifteen').'</span>', |
|
| 60 | 60 | 'after' => '</div>', |
| 61 | 61 | 'link_before' => '<span>', |
| 62 | 62 | 'link_after' => '</span>', |
| 63 | - 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
|
| 63 | + 'pagelink' => '<span class="screen-reader-text">'.__('Page', 'twentyfifteen').' </span>%', |
|
| 64 | 64 | 'separator' => '<span class="screen-reader-text">, </span>', |
| 65 | - ) ); |
|
| 65 | + )); |
|
| 66 | 66 | ?> |
| 67 | 67 | </div><!-- .entry-content --> |
| 68 | 68 | |
| 69 | 69 | <footer class="entry-footer"> |
| 70 | 70 | <?php twentyfifteen_entry_meta(); ?> |
| 71 | - <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 71 | + <?php edit_post_link(__('Edit', 'twentyfifteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 72 | 72 | </footer><!-- .entry-footer --> |
| 73 | 73 | |
| 74 | 74 | </article><!-- #post-## --> |
| 75 | 75 | |
| 76 | 76 | <?php |
| 77 | 77 | // If comments are open or we have at least one comment, load up the comment template |
| 78 | - if ( comments_open() || get_comments_number() ) : |
|
| 78 | + if (comments_open() || get_comments_number()) : |
|
| 79 | 79 | comments_template(); |
| 80 | 80 | endif; |
| 81 | 81 | |
| 82 | 82 | // Previous/next post navigation. |
| 83 | - the_post_navigation( array( |
|
| 84 | - 'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ), |
|
| 85 | - ) ); |
|
| 83 | + the_post_navigation(array( |
|
| 84 | + 'prev_text' => _x('<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen'), |
|
| 85 | + )); |
|
| 86 | 86 | |
| 87 | 87 | // End the loop. |
| 88 | 88 | endwhile; |