@@ -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; |
@@ -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 --> |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | <div id="main-content" class="main-content"> |
20 | 20 | |
21 | 21 | <?php |
22 | - if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
|
22 | + if (is_front_page() && twentyfourteen_has_featured_posts()) { |
|
23 | 23 | // Include the featured content template. |
24 | - get_template_part( 'featured-content' ); |
|
24 | + get_template_part('featured-content'); |
|
25 | 25 | } |
26 | 26 | ?> |
27 | 27 | |
@@ -29,16 +29,16 @@ discard block |
||
29 | 29 | <div id="content" class="site-content" role="main"> |
30 | 30 | |
31 | 31 | <?php |
32 | - if ( have_posts() ) : |
|
32 | + if (have_posts()) : |
|
33 | 33 | // Start the Loop. |
34 | - while ( have_posts() ) : the_post(); |
|
34 | + while (have_posts()) : the_post(); |
|
35 | 35 | |
36 | 36 | /* |
37 | 37 | * Include the post format-specific template for the content. If you want to |
38 | 38 | * use this in a child theme, then include a file called called content-___.php |
39 | 39 | * (where ___ is the post format) and that will be used instead. |
40 | 40 | */ |
41 | - get_template_part( 'content', get_post_format() ); |
|
41 | + get_template_part('content', get_post_format()); |
|
42 | 42 | |
43 | 43 | endwhile; |
44 | 44 | // Previous/next post navigation. |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | |
47 | 47 | else : |
48 | 48 | // If no content, include the "No posts found" template. |
49 | - get_template_part( 'content', 'none' ); |
|
49 | + get_template_part('content', 'none'); |
|
50 | 50 | |
51 | 51 | endif; |
52 | 52 | ?> |
53 | 53 | |
54 | 54 | </div><!-- #content --> |
55 | 55 | </div><!-- #primary --> |
56 | - <?php get_sidebar( 'content' ); ?> |
|
56 | + <?php get_sidebar('content'); ?> |
|
57 | 57 | </div><!-- #main-content --> |
58 | 58 | |
59 | 59 | <?php |
@@ -44,9 +44,11 @@ |
||
44 | 44 | // Previous/next post navigation. |
45 | 45 | twentyfourteen_paging_nav(); |
46 | 46 | |
47 | - else : |
|
47 | + else { |
|
48 | + : |
|
48 | 49 | // If no content, include the "No posts found" template. |
49 | 50 | get_template_part( 'content', 'none' ); |
51 | + } |
|
50 | 52 | |
51 | 53 | endif; |
52 | 54 | ?> |
@@ -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( 'video' ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a> |
|
31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('video')); ?>"><?php echo get_post_format_string('video'); ?></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-## --> |
@@ -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,23 +12,23 @@ |
||
12 | 12 | <a class="post-thumbnail" href="<?php the_permalink(); ?>"> |
13 | 13 | <?php |
14 | 14 | // Output the featured image. |
15 | - if ( has_post_thumbnail() ) : |
|
16 | - if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) { |
|
15 | + if (has_post_thumbnail()) : |
|
16 | + if ('grid' == get_theme_mod('featured_content_layout')) { |
|
17 | 17 | the_post_thumbnail(); |
18 | 18 | } else { |
19 | - the_post_thumbnail( 'twentyfourteen-full-width' ); |
|
19 | + the_post_thumbnail('twentyfourteen-full-width'); |
|
20 | 20 | } |
21 | 21 | endif; |
22 | 22 | ?> |
23 | 23 | </a> |
24 | 24 | |
25 | 25 | <header class="entry-header"> |
26 | - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
26 | + <?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?> |
|
27 | 27 | <div class="entry-meta"> |
28 | - <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
28 | + <span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span> |
|
29 | 29 | </div><!-- .entry-meta --> |
30 | 30 | <?php endif; ?> |
31 | 31 | |
32 | - <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?> |
|
32 | + <?php the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); ?> |
|
33 | 33 | </header><!-- .entry-header --> |
34 | 34 | </article><!-- #post-## --> |
@@ -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( 'aside' ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a> |
|
31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('aside')); ?>"><?php echo get_post_format_string('aside'); ?></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-## --> |
@@ -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 |
@@ -14,30 +14,30 @@ discard block |
||
14 | 14 | <section id="primary" class="content-area"> |
15 | 15 | <div id="content" class="site-content" role="main"> |
16 | 16 | |
17 | - <?php if ( have_posts() ) : ?> |
|
17 | + <?php if (have_posts()) : ?> |
|
18 | 18 | |
19 | 19 | <header class="archive-header"> |
20 | - <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1> |
|
20 | + <h1 class="archive-title"><?php printf(__('Category Archives: %s', 'twentyfourteen'), single_cat_title('', false)); ?></h1> |
|
21 | 21 | |
22 | 22 | <?php |
23 | 23 | // Show an optional term description. |
24 | 24 | $term_description = term_description(); |
25 | - if ( ! empty( $term_description ) ) : |
|
26 | - printf( '<div class="taxonomy-description">%s</div>', $term_description ); |
|
25 | + if ( ! empty($term_description)) : |
|
26 | + printf('<div class="taxonomy-description">%s</div>', $term_description); |
|
27 | 27 | endif; |
28 | 28 | ?> |
29 | 29 | </header><!-- .archive-header --> |
30 | 30 | |
31 | 31 | <?php |
32 | 32 | // Start the Loop. |
33 | - while ( have_posts() ) : the_post(); |
|
33 | + while (have_posts()) : the_post(); |
|
34 | 34 | |
35 | 35 | /* |
36 | 36 | * Include the post format-specific template for the content. If you want to |
37 | 37 | * use this in a child theme, then include a file called called content-___.php |
38 | 38 | * (where ___ is the post format) and that will be used instead. |
39 | 39 | */ |
40 | - get_template_part( 'content', get_post_format() ); |
|
40 | + get_template_part('content', get_post_format()); |
|
41 | 41 | |
42 | 42 | endwhile; |
43 | 43 | // Previous/next page navigation. |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | else : |
47 | 47 | // If no content, include the "No posts found" template. |
48 | - get_template_part( 'content', 'none' ); |
|
48 | + get_template_part('content', 'none'); |
|
49 | 49 | |
50 | 50 | endif; |
51 | 51 | ?> |
@@ -53,6 +53,6 @@ discard block |
||
53 | 53 | </section><!-- #primary --> |
54 | 54 | |
55 | 55 | <?php |
56 | -get_sidebar( 'content' ); |
|
56 | +get_sidebar('content'); |
|
57 | 57 | get_sidebar(); |
58 | 58 | get_footer(); |
@@ -43,9 +43,11 @@ |
||
43 | 43 | // Previous/next page navigation. |
44 | 44 | twentyfourteen_paging_nav(); |
45 | 45 | |
46 | - else : |
|
46 | + else { |
|
47 | + : |
|
47 | 48 | // If no content, include the "No posts found" template. |
48 | 49 | get_template_part( 'content', 'none' ); |
50 | + } |
|
49 | 51 | |
50 | 52 | endif; |
51 | 53 | ?> |
@@ -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( 'link' ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a> |
|
31 | + <a class="entry-format" href="<?php echo esc_url(get_post_format_link('link')); ?>"><?php echo get_post_format_string('link'); ?></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-## --> |
@@ -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 |