@@ -13,9 +13,9 @@ |
||
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | 15 | <div id="post-0" class="post error404 not-found"> |
16 | - <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> |
|
16 | + <h1 class="entry-title"><?php _e('Not Found', 'twentyten'); ?></h1> |
|
17 | 17 | <div class="entry-content"> |
18 | - <p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten' ); ?></p> |
|
18 | + <p><?php _e('Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten'); ?></p> |
|
19 | 19 | <?php get_search_form(); ?> |
20 | 20 | </div><!-- .entry-content --> |
21 | 21 | </div><!-- #post-0 --> |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | ?> |
15 | 15 | |
16 | 16 | <div id="comments"> |
17 | -<?php if ( post_password_required() ) : ?> |
|
18 | - <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p> |
|
17 | +<?php if (post_password_required()) : ?> |
|
18 | + <p class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'twentyten'); ?></p> |
|
19 | 19 | </div><!-- #comments --> |
20 | 20 | <?php |
21 | 21 | /* |
@@ -31,16 +31,16 @@ discard block |
||
31 | 31 | // You can start editing here -- including this comment! |
32 | 32 | ?> |
33 | 33 | |
34 | -<?php if ( have_comments() ) : ?> |
|
34 | +<?php if (have_comments()) : ?> |
|
35 | 35 | <h3 id="comments-title"><?php |
36 | - printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ), |
|
37 | - number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); |
|
36 | + printf(_n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten'), |
|
37 | + number_format_i18n(get_comments_number()), '<em>'.get_the_title().'</em>'); |
|
38 | 38 | ?></h3> |
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 | <div class="navigation"> |
42 | - <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> |
|
43 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
|
42 | + <div class="nav-previous"><?php previous_comments_link(__('<span class="meta-nav">←</span> Older Comments', 'twentyten')); ?></div> |
|
43 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments <span class="meta-nav">→</span>', 'twentyten')); ?></div> |
|
44 | 44 | </div> <!-- .navigation --> |
45 | 45 | <?php endif; // check for comment navigation ?> |
46 | 46 | |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | * define twentyten_comment() and that will be used instead. |
54 | 54 | * See twentyten_comment() in twentyten/functions.php for more. |
55 | 55 | */ |
56 | - wp_list_comments( array( 'callback' => 'twentyten_comment' ) ); |
|
56 | + wp_list_comments(array('callback' => 'twentyten_comment')); |
|
57 | 57 | ?> |
58 | 58 | </ol> |
59 | 59 | |
60 | -<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> |
|
60 | +<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? ?> |
|
61 | 61 | <div class="navigation"> |
62 | - <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> |
|
63 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
|
62 | + <div class="nav-previous"><?php previous_comments_link(__('<span class="meta-nav">←</span> Older Comments', 'twentyten')); ?></div> |
|
63 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments <span class="meta-nav">→</span>', 'twentyten')); ?></div> |
|
64 | 64 | </div><!-- .navigation --> |
65 | 65 | <?php endif; // check for comment navigation ?> |
66 | 66 | |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | * If there are no comments and comments are closed, let's leave a little note, shall we? |
70 | 70 | * But we only want the note on posts and pages that had comments in the first place. |
71 | 71 | */ |
72 | - if ( ! comments_open() && get_comments_number() ) : ?> |
|
73 | - <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyten' ); ?></p> |
|
74 | - <?php endif; ?> |
|
72 | + if ( ! comments_open() && get_comments_number()) : ?> |
|
73 | + <p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p> |
|
74 | + <?php endif; ?> |
|
75 | 75 | |
76 | 76 | <?php endif; // end have_comments() ?> |
77 | 77 |
@@ -14,11 +14,11 @@ |
||
14 | 14 | |
15 | 15 | <footer id="colophon" class="site-footer" role="contentinfo"> |
16 | 16 | |
17 | - <?php get_sidebar( 'footer' ); ?> |
|
17 | + <?php get_sidebar('footer'); ?> |
|
18 | 18 | |
19 | 19 | <div class="site-info"> |
20 | - <?php do_action( 'twentyfourteen_credits' ); ?> |
|
21 | - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a> |
|
20 | + <?php do_action('twentyfourteen_credits'); ?> |
|
21 | + <a href="<?php echo esc_url(__('https://wordpress.org/', 'twentyfourteen')); ?>"><?php printf(__('Proudly powered by %s', 'twentyfourteen'), 'WordPress'); ?></a> |
|
22 | 22 | </div><!-- .site-info --> |
23 | 23 | </footer><!-- #colophon --> |
24 | 24 | </div><!-- #page --> |
@@ -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-## --> |
@@ -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-## --> |
@@ -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 |
@@ -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-## --> |
@@ -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 |
@@ -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 --> |