@@ -12,51 +12,51 @@ |
||
| 12 | 12 | <?php twentyfourteen_post_thumbnail(); ?> |
| 13 | 13 | |
| 14 | 14 | <header class="entry-header"> |
| 15 | - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
| 15 | + <?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?> |
|
| 16 | 16 | <div class="entry-meta"> |
| 17 | - <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
| 17 | + <span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span> |
|
| 18 | 18 | </div><!-- .entry-meta --> |
| 19 | 19 | <?php |
| 20 | 20 | endif; |
| 21 | 21 | |
| 22 | - if ( is_single() ) : |
|
| 23 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
| 22 | + if (is_single()) : |
|
| 23 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
| 24 | 24 | else : |
| 25 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
| 25 | + the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); |
|
| 26 | 26 | endif; |
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div class="entry-meta"> |
| 30 | 30 | <span class="post-format"> |
| 31 | - <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a> |
|
| 31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('quote')); ?>"><?php echo get_post_format_string('quote'); ?></a> |
|
| 32 | 32 | </span> |
| 33 | 33 | |
| 34 | 34 | <?php twentyfourteen_posted_on(); ?> |
| 35 | 35 | |
| 36 | - <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> |
|
| 37 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> |
|
| 36 | + <?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?> |
|
| 37 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span> |
|
| 38 | 38 | <?php endif; ?> |
| 39 | 39 | |
| 40 | - <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 40 | + <?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 41 | 41 | </div><!-- .entry-meta --> |
| 42 | 42 | </header><!-- .entry-header --> |
| 43 | 43 | |
| 44 | 44 | <div class="entry-content"> |
| 45 | 45 | <?php |
| 46 | 46 | /* translators: %s: Name of current post */ |
| 47 | - the_content( sprintf( |
|
| 48 | - __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
|
| 49 | - the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
| 50 | - ) ); |
|
| 47 | + the_content(sprintf( |
|
| 48 | + __('Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen'), |
|
| 49 | + the_title('<span class="screen-reader-text">', '</span>', false) |
|
| 50 | + )); |
|
| 51 | 51 | |
| 52 | - wp_link_pages( array( |
|
| 53 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
| 52 | + wp_link_pages(array( |
|
| 53 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
| 54 | 54 | 'after' => '</div>', |
| 55 | 55 | 'link_before' => '<span>', |
| 56 | 56 | 'link_after' => '</span>', |
| 57 | - ) ); |
|
| 57 | + )); |
|
| 58 | 58 | ?> |
| 59 | 59 | </div><!-- .entry-content --> |
| 60 | 60 | |
| 61 | - <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> |
|
| 61 | + <?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?> |
|
| 62 | 62 | </article><!-- #post-## --> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying posts in the Quote post format |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The template for displaying posts in the Quote post format |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -21,8 +21,10 @@ |
||
| 21 | 21 | |
| 22 | 22 | if ( is_single() ) : |
| 23 | 23 | the_title( '<h1 class="entry-title">', '</h1>' ); |
| 24 | - else : |
|
| 24 | + else { |
|
| 25 | + : |
|
| 25 | 26 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
| 27 | + } |
|
| 26 | 28 | endif; |
| 27 | 29 | ?> |
| 28 | 30 | |
@@ -12,51 +12,51 @@ |
||
| 12 | 12 | <?php twentyfourteen_post_thumbnail(); ?> |
| 13 | 13 | |
| 14 | 14 | <header class="entry-header"> |
| 15 | - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
| 15 | + <?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?> |
|
| 16 | 16 | <div class="entry-meta"> |
| 17 | - <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
| 17 | + <span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span> |
|
| 18 | 18 | </div><!-- .entry-meta --> |
| 19 | 19 | <?php |
| 20 | 20 | endif; |
| 21 | 21 | |
| 22 | - if ( is_single() ) : |
|
| 23 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
| 22 | + if (is_single()) : |
|
| 23 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
| 24 | 24 | else : |
| 25 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
| 25 | + the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); |
|
| 26 | 26 | endif; |
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div class="entry-meta"> |
| 30 | 30 | <span class="post-format"> |
| 31 | - <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'audio' ) ); ?>"><?php echo get_post_format_string( 'audio' ); ?></a> |
|
| 31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('audio')); ?>"><?php echo get_post_format_string('audio'); ?></a> |
|
| 32 | 32 | </span> |
| 33 | 33 | |
| 34 | 34 | <?php twentyfourteen_posted_on(); ?> |
| 35 | 35 | |
| 36 | - <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> |
|
| 37 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> |
|
| 36 | + <?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?> |
|
| 37 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span> |
|
| 38 | 38 | <?php endif; ?> |
| 39 | 39 | |
| 40 | - <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 40 | + <?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 41 | 41 | </div><!-- .entry-meta --> |
| 42 | 42 | </header><!-- .entry-header --> |
| 43 | 43 | |
| 44 | 44 | <div class="entry-content"> |
| 45 | 45 | <?php |
| 46 | 46 | /* translators: %s: Name of current post */ |
| 47 | - the_content( sprintf( |
|
| 48 | - __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
|
| 49 | - the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
| 50 | - ) ); |
|
| 47 | + the_content(sprintf( |
|
| 48 | + __('Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen'), |
|
| 49 | + the_title('<span class="screen-reader-text">', '</span>', false) |
|
| 50 | + )); |
|
| 51 | 51 | |
| 52 | - wp_link_pages( array( |
|
| 53 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
| 52 | + wp_link_pages(array( |
|
| 53 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
| 54 | 54 | 'after' => '</div>', |
| 55 | 55 | 'link_before' => '<span>', |
| 56 | 56 | 'link_after' => '</span>', |
| 57 | - ) ); |
|
| 57 | + )); |
|
| 58 | 58 | ?> |
| 59 | 59 | </div><!-- .entry-content --> |
| 60 | 60 | |
| 61 | - <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> |
|
| 61 | + <?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?> |
|
| 62 | 62 | </article><!-- #post-## --> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying posts in the Audio post format |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The template for displaying posts in the Audio post format |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -21,8 +21,10 @@ |
||
| 21 | 21 | |
| 22 | 22 | if ( is_single() ) : |
| 23 | 23 | the_title( '<h1 class="entry-title">', '</h1>' ); |
| 24 | - else : |
|
| 24 | + else { |
|
| 25 | + : |
|
| 25 | 26 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
| 27 | + } |
|
| 26 | 28 | endif; |
| 27 | 29 | ?> |
| 28 | 30 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying image attachments |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The template for displaying image attachments |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | // Retrieve attachment metadata. |
| 11 | 11 | $metadata = wp_get_attachment_metadata(); |
@@ -18,20 +18,20 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | 20 | // Start the Loop. |
| 21 | - while ( have_posts() ) : the_post(); |
|
| 21 | + while (have_posts()) : the_post(); |
|
| 22 | 22 | ?> |
| 23 | 23 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 24 | 24 | <header class="entry-header"> |
| 25 | - <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
|
| 25 | + <?php the_title('<h1 class="entry-title">', '</h1>'); ?> |
|
| 26 | 26 | |
| 27 | 27 | <div class="entry-meta"> |
| 28 | 28 | |
| 29 | - <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span> |
|
| 29 | + <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr(get_the_date('c')); ?>"><?php echo esc_html(get_the_date()); ?></time></span> |
|
| 30 | 30 | |
| 31 | - <span class="full-size-link"><a href="<?php echo esc_url( wp_get_attachment_url() ); ?>"><?php echo esc_html( $metadata['width'] ); ?> × <?php echo esc_html( $metadata['height'] ); ?></a></span> |
|
| 31 | + <span class="full-size-link"><a href="<?php echo esc_url(wp_get_attachment_url()); ?>"><?php echo esc_html($metadata['width']); ?> × <?php echo esc_html($metadata['height']); ?></a></span> |
|
| 32 | 32 | |
| 33 | - <span class="parent-post-link"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span> |
|
| 34 | - <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 33 | + <span class="parent-post-link"><a href="<?php echo esc_url(get_permalink($post->post_parent)); ?>" rel="gallery"><?php echo get_the_title($post->post_parent); ?></a></span> |
|
| 34 | + <?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 35 | 35 | </div><!-- .entry-meta --> |
| 36 | 36 | </header><!-- .entry-header --> |
| 37 | 37 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | <?php twentyfourteen_the_attached_image(); ?> |
| 42 | 42 | </div><!-- .attachment --> |
| 43 | 43 | |
| 44 | - <?php if ( has_excerpt() ) : ?> |
|
| 44 | + <?php if (has_excerpt()) : ?> |
|
| 45 | 45 | <div class="entry-caption"> |
| 46 | 46 | <?php the_excerpt(); ?> |
| 47 | 47 | </div><!-- .entry-caption --> |
@@ -50,20 +50,20 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | <?php |
| 52 | 52 | the_content(); |
| 53 | - wp_link_pages( array( |
|
| 54 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
| 53 | + wp_link_pages(array( |
|
| 54 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
| 55 | 55 | 'after' => '</div>', |
| 56 | 56 | 'link_before' => '<span>', |
| 57 | 57 | 'link_after' => '</span>', |
| 58 | - ) ); |
|
| 58 | + )); |
|
| 59 | 59 | ?> |
| 60 | 60 | </div><!-- .entry-content --> |
| 61 | 61 | </article><!-- #post-## --> |
| 62 | 62 | |
| 63 | 63 | <nav id="image-navigation" class="navigation image-navigation"> |
| 64 | 64 | <div class="nav-links"> |
| 65 | - <?php previous_image_link( false, '<div class="previous-image">' . __( 'Previous Image', 'twentyfourteen' ) . '</div>' ); ?> |
|
| 66 | - <?php next_image_link( false, '<div class="next-image">' . __( 'Next Image', 'twentyfourteen' ) . '</div>' ); ?> |
|
| 65 | + <?php previous_image_link(false, '<div class="previous-image">'.__('Previous Image', 'twentyfourteen').'</div>'); ?> |
|
| 66 | + <?php next_image_link(false, '<div class="next-image">'.__('Next Image', 'twentyfourteen').'</div>'); ?> |
|
| 67 | 67 | </div><!-- .nav-links --> |
| 68 | 68 | </nav><!-- #image-navigation --> |
| 69 | 69 | |
@@ -12,51 +12,51 @@ |
||
| 12 | 12 | <?php twentyfourteen_post_thumbnail(); ?> |
| 13 | 13 | |
| 14 | 14 | <header class="entry-header"> |
| 15 | - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
| 15 | + <?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?> |
|
| 16 | 16 | <div class="entry-meta"> |
| 17 | - <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
| 17 | + <span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span> |
|
| 18 | 18 | </div><!-- .entry-meta --> |
| 19 | 19 | <?php |
| 20 | 20 | endif; |
| 21 | 21 | |
| 22 | - if ( is_single() ) : |
|
| 23 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
| 22 | + if (is_single()) : |
|
| 23 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
| 24 | 24 | else : |
| 25 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
| 25 | + the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); |
|
| 26 | 26 | endif; |
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div class="entry-meta"> |
| 30 | 30 | <span class="post-format"> |
| 31 | - <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a> |
|
| 31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('gallery')); ?>"><?php echo get_post_format_string('gallery'); ?></a> |
|
| 32 | 32 | </span> |
| 33 | 33 | |
| 34 | 34 | <?php twentyfourteen_posted_on(); ?> |
| 35 | 35 | |
| 36 | - <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> |
|
| 37 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> |
|
| 36 | + <?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?> |
|
| 37 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span> |
|
| 38 | 38 | <?php endif; ?> |
| 39 | 39 | |
| 40 | - <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 40 | + <?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?> |
|
| 41 | 41 | </div><!-- .entry-meta --> |
| 42 | 42 | </header><!-- .entry-header --> |
| 43 | 43 | |
| 44 | 44 | <div class="entry-content"> |
| 45 | 45 | <?php |
| 46 | 46 | /* translators: %s: Name of current post */ |
| 47 | - the_content( sprintf( |
|
| 48 | - __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
|
| 49 | - the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
| 50 | - ) ); |
|
| 47 | + the_content(sprintf( |
|
| 48 | + __('Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen'), |
|
| 49 | + the_title('<span class="screen-reader-text">', '</span>', false) |
|
| 50 | + )); |
|
| 51 | 51 | |
| 52 | - wp_link_pages( array( |
|
| 53 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
| 52 | + wp_link_pages(array( |
|
| 53 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
| 54 | 54 | 'after' => '</div>', |
| 55 | 55 | 'link_before' => '<span>', |
| 56 | 56 | 'link_after' => '</span>', |
| 57 | - ) ); |
|
| 57 | + )); |
|
| 58 | 58 | ?> |
| 59 | 59 | </div><!-- .entry-content --> |
| 60 | 60 | |
| 61 | - <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> |
|
| 61 | + <?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?> |
|
| 62 | 62 | </article><!-- #post-## --> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying posts in the Gallery post format |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The template for displaying posts in the Gallery post format |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -21,8 +21,10 @@ |
||
| 21 | 21 | |
| 22 | 22 | if ( is_single() ) : |
| 23 | 23 | the_title( '<h1 class="entry-title">', '</h1>' ); |
| 24 | - else : |
|
| 24 | + else { |
|
| 25 | + : |
|
| 25 | 26 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
| 27 | + } |
|
| 26 | 28 | endif; |
| 27 | 29 | ?> |
| 28 | 30 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The Header for our theme |
|
| 4 | - * |
|
| 5 | - * Displays all of the <head> section and everything up till <div id="main"> |
|
| 6 | - * |
|
| 7 | - * @package WordPress |
|
| 8 | - * @subpackage Twenty_Fourteen |
|
| 9 | - * @since Twenty Fourteen 1.0 |
|
| 10 | - */ |
|
| 3 | + * The Header for our theme |
|
| 4 | + * |
|
| 5 | + * Displays all of the <head> section and everything up till <div id="main"> |
|
| 6 | + * |
|
| 7 | + * @package WordPress |
|
| 8 | + * @subpackage Twenty_Fourteen |
|
| 9 | + * @since Twenty Fourteen 1.0 |
|
| 10 | + */ |
|
| 11 | 11 | ?><!DOCTYPE html> |
| 12 | 12 | <!--[if IE 7]> |
| 13 | 13 | <html class="ie ie7" <?php language_attributes(); ?>> |
@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | <html <?php language_attributes(); ?>> |
| 20 | 20 | <!--<![endif]--> |
| 21 | 21 | <head> |
| 22 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
| 22 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
| 23 | 23 | <meta name="viewport" content="width=device-width"> |
| 24 | - <title><?php wp_title( '|', true, 'right' ); ?></title> |
|
| 24 | + <title><?php wp_title('|', true, 'right'); ?></title> |
|
| 25 | 25 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 26 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
| 26 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
| 27 | 27 | <!--[if lt IE 9]> |
| 28 | 28 | <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> |
| 29 | 29 | <![endif]--> |
@@ -32,26 +32,26 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | <body <?php body_class(); ?>> |
| 34 | 34 | <div id="page" class="hfeed site"> |
| 35 | - <?php if ( get_header_image() ) : ?> |
|
| 35 | + <?php if (get_header_image()) : ?> |
|
| 36 | 36 | <div id="site-header"> |
| 37 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
|
| 38 | - <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> |
|
| 37 | + <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"> |
|
| 38 | + <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"> |
|
| 39 | 39 | </a> |
| 40 | 40 | </div> |
| 41 | 41 | <?php endif; ?> |
| 42 | 42 | |
| 43 | 43 | <header id="masthead" class="site-header" role="banner"> |
| 44 | 44 | <div class="header-main"> |
| 45 | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
| 45 | + <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
| 46 | 46 | |
| 47 | 47 | <div class="search-toggle"> |
| 48 | - <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a> |
|
| 48 | + <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e('Search', 'twentyfourteen'); ?></a> |
|
| 49 | 49 | </div> |
| 50 | 50 | |
| 51 | 51 | <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"> |
| 52 | - <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> |
|
| 53 | - <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> |
|
| 54 | - <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?> |
|
| 52 | + <button class="menu-toggle"><?php _e('Primary Menu', 'twentyfourteen'); ?></button> |
|
| 53 | + <a class="screen-reader-text skip-link" href="#content"><?php _e('Skip to content', 'twentyfourteen'); ?></a> |
|
| 54 | + <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu')); ?> |
|
| 55 | 55 | </nav> |
| 56 | 56 | </div> |
| 57 | 57 | |
@@ -7,10 +7,10 @@ |
||
| 7 | 7 | * @since Twenty Fourteen 1.0 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! is_active_sidebar( 'sidebar-2' ) ) { |
|
| 10 | +if ( ! is_active_sidebar('sidebar-2')) { |
|
| 11 | 11 | return; |
| 12 | 12 | } |
| 13 | 13 | ?> |
| 14 | 14 | <div id="content-sidebar" class="content-sidebar widget-area" role="complementary"> |
| 15 | - <?php dynamic_sidebar( 'sidebar-2' ); ?> |
|
| 15 | + <?php dynamic_sidebar('sidebar-2'); ?> |
|
| 16 | 16 | </div><!-- #content-sidebar --> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The Content Sidebar |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The Content Sidebar |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | if ( ! is_active_sidebar( 'sidebar-2' ) ) { |
| 11 | 11 | return; |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | <div id="main-content" class="main-content"> |
| 13 | 13 | |
| 14 | 14 | <?php |
| 15 | - if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
|
| 15 | + if (is_front_page() && twentyfourteen_has_featured_posts()) { |
|
| 16 | 16 | // Include the featured content template. |
| 17 | - get_template_part( 'featured-content' ); |
|
| 17 | + get_template_part('featured-content'); |
|
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | |
@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | <div id="content" class="site-content" role="main"> |
| 23 | 23 | <?php |
| 24 | 24 | // Start the Loop. |
| 25 | - while ( have_posts() ) : the_post(); |
|
| 25 | + while (have_posts()) : the_post(); |
|
| 26 | 26 | |
| 27 | 27 | // Include the page content template. |
| 28 | - get_template_part( 'content', 'page' ); |
|
| 28 | + get_template_part('content', 'page'); |
|
| 29 | 29 | |
| 30 | 30 | // If comments are open or we have at least one comment, load up the comment template. |
| 31 | - if ( comments_open() || get_comments_number() ) { |
|
| 31 | + if (comments_open() || get_comments_number()) { |
|
| 32 | 32 | comments_template(); |
| 33 | 33 | } |
| 34 | 34 | endwhile; |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Template Name: Contributor Page |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * Template Name: Contributor Page |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | get_header(); ?> |
| 11 | 11 | |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | <div id="main-content" class="main-content"> |
| 13 | 13 | |
| 14 | 14 | <?php |
| 15 | - if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
|
| 15 | + if (is_front_page() && twentyfourteen_has_featured_posts()) { |
|
| 16 | 16 | // Include the featured content template. |
| 17 | - get_template_part( 'featured-content' ); |
|
| 17 | + get_template_part('featured-content'); |
|
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | |
@@ -22,23 +22,23 @@ discard block |
||
| 22 | 22 | <div id="content" class="site-content" role="main"> |
| 23 | 23 | <?php |
| 24 | 24 | // Start the Loop. |
| 25 | - while ( have_posts() ) : the_post(); |
|
| 25 | + while (have_posts()) : the_post(); |
|
| 26 | 26 | ?> |
| 27 | 27 | |
| 28 | 28 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 29 | 29 | <?php |
| 30 | - the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); |
|
| 30 | + the_title('<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->'); |
|
| 31 | 31 | |
| 32 | 32 | // Output the authors list. |
| 33 | 33 | twentyfourteen_list_authors(); |
| 34 | 34 | |
| 35 | - edit_post_link( __( 'Edit', 'twentyfourteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); |
|
| 35 | + edit_post_link(__('Edit', 'twentyfourteen'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); |
|
| 36 | 36 | ?> |
| 37 | 37 | </article><!-- #post-## --> |
| 38 | 38 | |
| 39 | 39 | <?php |
| 40 | 40 | // If comments are open or we have at least one comment, load up the comment template. |
| 41 | - if ( comments_open() || get_comments_number() ) { |
|
| 41 | + if (comments_open() || get_comments_number()) { |
|
| 42 | 42 | comments_template(); |
| 43 | 43 | } |
| 44 | 44 | endwhile; |
@@ -9,21 +9,21 @@ |
||
| 9 | 9 | ?> |
| 10 | 10 | <div id="secondary"> |
| 11 | 11 | <?php |
| 12 | - $description = get_bloginfo( 'description', 'display' ); |
|
| 13 | - if ( ! empty ( $description ) ) : |
|
| 12 | + $description = get_bloginfo('description', 'display'); |
|
| 13 | + if ( ! empty ($description)) : |
|
| 14 | 14 | ?> |
| 15 | - <h2 class="site-description"><?php echo esc_html( $description ); ?></h2> |
|
| 15 | + <h2 class="site-description"><?php echo esc_html($description); ?></h2> |
|
| 16 | 16 | <?php endif; ?> |
| 17 | 17 | |
| 18 | - <?php if ( has_nav_menu( 'secondary' ) ) : ?> |
|
| 18 | + <?php if (has_nav_menu('secondary')) : ?> |
|
| 19 | 19 | <nav role="navigation" class="navigation site-navigation secondary-navigation"> |
| 20 | - <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> |
|
| 20 | + <?php wp_nav_menu(array('theme_location' => 'secondary')); ?> |
|
| 21 | 21 | </nav> |
| 22 | 22 | <?php endif; ?> |
| 23 | 23 | |
| 24 | - <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
| 24 | + <?php if (is_active_sidebar('sidebar-1')) : ?> |
|
| 25 | 25 | <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary"> |
| 26 | - <?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
| 26 | + <?php dynamic_sidebar('sidebar-1'); ?> |
|
| 27 | 27 | </div><!-- #primary-sidebar --> |
| 28 | 28 | <?php endif; ?> |
| 29 | 29 | </div><!-- #secondary --> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The Sidebar containing the main widget area |
|
| 4 | - * |
|
| 5 | - * @package WordPress |
|
| 6 | - * @subpackage Twenty_Fourteen |
|
| 7 | - * @since Twenty Fourteen 1.0 |
|
| 8 | - */ |
|
| 3 | + * The Sidebar containing the main widget area |
|
| 4 | + * |
|
| 5 | + * @package WordPress |
|
| 6 | + * @subpackage Twenty_Fourteen |
|
| 7 | + * @since Twenty Fourteen 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | ?> |
| 10 | 10 | <div id="secondary"> |
| 11 | 11 | <?php |