@@ -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() ?> |
@@ -13,8 +13,9 @@ |
||
13 | 13 | * If the current post is protected by a password and the visitor has not yet |
14 | 14 | * entered the password we will return early without loading the comments. |
15 | 15 | */ |
16 | -if ( post_password_required() ) |
|
16 | +if ( post_password_required() ) { |
|
17 | 17 | return; |
18 | +} |
|
18 | 19 | ?> |
19 | 20 | |
20 | 21 | <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; |
@@ -11,36 +11,36 @@ |
||
11 | 11 | ?><!DOCTYPE html> |
12 | 12 | <html <?php language_attributes(); ?> class="no-js"> |
13 | 13 | <head> |
14 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
14 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
15 | 15 | <meta name="viewport" content="width=device-width"> |
16 | 16 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
17 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
17 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
18 | 18 | <!--[if lt IE 9]> |
19 | - <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script> |
|
19 | + <script src="<?php echo esc_url(get_template_directory_uri()); ?>/js/html5.js"></script> |
|
20 | 20 | <![endif]--> |
21 | 21 | <?php wp_head(); ?> |
22 | 22 | </head> |
23 | 23 | |
24 | 24 | <body <?php body_class(); ?>> |
25 | 25 | <div id="page" class="hfeed site"> |
26 | - <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a> |
|
26 | + <a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'twentyfifteen'); ?></a> |
|
27 | 27 | |
28 | 28 | <div id="sidebar" class="sidebar"> |
29 | 29 | <header id="masthead" class="site-header" role="banner"> |
30 | 30 | <div class="site-branding"> |
31 | 31 | <?php |
32 | - if ( is_front_page() && is_home() ) : ?> |
|
33 | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
32 | + if (is_front_page() && is_home()) : ?> |
|
33 | + <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
34 | 34 | <?php else : ?> |
35 | - <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
35 | + <p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p> |
|
36 | 36 | <?php endif; |
37 | 37 | |
38 | - $description = get_bloginfo( 'description', 'display' ); |
|
39 | - if ( $description || is_customize_preview() ) : ?> |
|
38 | + $description = get_bloginfo('description', 'display'); |
|
39 | + if ($description || is_customize_preview()) : ?> |
|
40 | 40 | <p class="site-description"><?php echo $description; ?></p> |
41 | 41 | <?php endif; |
42 | 42 | ?> |
43 | - <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button> |
|
43 | + <button class="secondary-toggle"><?php _e('Menu and widgets', 'twentyfifteen'); ?></button> |
|
44 | 44 | </div><!-- .site-branding --> |
45 | 45 | </header><!-- .site-header --> |
46 | 46 |
@@ -31,8 +31,11 @@ |
||
31 | 31 | <?php |
32 | 32 | if ( is_front_page() && is_home() ) : ?> |
33 | 33 | <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
34 | - <?php else : ?> |
|
35 | - <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
36 | + <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); |
|
37 | +} |
|
38 | +?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
36 | 39 | <?php endif; |
37 | 40 | |
38 | 41 | $description = get_bloginfo( 'description', 'display' ); |
@@ -7,38 +7,38 @@ |
||
7 | 7 | * @since Twenty Fifteen 1.0 |
8 | 8 | */ |
9 | 9 | |
10 | -if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
10 | +if (has_nav_menu('primary') || has_nav_menu('social') || is_active_sidebar('sidebar-1')) : ?> |
|
11 | 11 | <div id="secondary" class="secondary"> |
12 | 12 | |
13 | - <?php if ( has_nav_menu( 'primary' ) ) : ?> |
|
13 | + <?php if (has_nav_menu('primary')) : ?> |
|
14 | 14 | <nav id="site-navigation" class="main-navigation" role="navigation"> |
15 | 15 | <?php |
16 | 16 | // Primary navigation menu. |
17 | - wp_nav_menu( array( |
|
17 | + wp_nav_menu(array( |
|
18 | 18 | 'menu_class' => 'nav-menu', |
19 | 19 | 'theme_location' => 'primary', |
20 | - ) ); |
|
20 | + )); |
|
21 | 21 | ?> |
22 | 22 | </nav><!-- .main-navigation --> |
23 | 23 | <?php endif; ?> |
24 | 24 | |
25 | - <?php if ( has_nav_menu( 'social' ) ) : ?> |
|
25 | + <?php if (has_nav_menu('social')) : ?> |
|
26 | 26 | <nav id="social-navigation" class="social-navigation" role="navigation"> |
27 | 27 | <?php |
28 | 28 | // Social links navigation menu. |
29 | - wp_nav_menu( array( |
|
29 | + wp_nav_menu(array( |
|
30 | 30 | 'theme_location' => 'social', |
31 | 31 | 'depth' => 1, |
32 | 32 | 'link_before' => '<span class="screen-reader-text">', |
33 | 33 | 'link_after' => '</span>', |
34 | - ) ); |
|
34 | + )); |
|
35 | 35 | ?> |
36 | 36 | </nav><!-- .social-navigation --> |
37 | 37 | <?php endif; ?> |
38 | 38 | |
39 | - <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
39 | + <?php if (is_active_sidebar('sidebar-1')) : ?> |
|
40 | 40 | <div id="widget-area" class="widget-area" role="complementary"> |
41 | - <?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
41 | + <?php dynamic_sidebar('sidebar-1'); ?> |
|
42 | 42 | </div><!-- .widget-area --> |
43 | 43 | <?php endif; ?> |
44 | 44 |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | <div id="primary" class="content-area"> |
20 | 20 | <main id="main" class="site-main" role="main"> |
21 | 21 | |
22 | - <?php if ( have_posts() ) : ?> |
|
22 | + <?php if (have_posts()) : ?> |
|
23 | 23 | |
24 | - <?php if ( is_home() && ! is_front_page() ) : ?> |
|
24 | + <?php if (is_home() && ! is_front_page()) : ?> |
|
25 | 25 | <header> |
26 | 26 | <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> |
27 | 27 | </header> |
@@ -29,28 +29,28 @@ discard block |
||
29 | 29 | |
30 | 30 | <?php |
31 | 31 | // Start the loop. |
32 | - while ( have_posts() ) : the_post(); |
|
32 | + while (have_posts()) : the_post(); |
|
33 | 33 | |
34 | 34 | /* |
35 | 35 | * Include the Post-Format-specific template for the content. |
36 | 36 | * If you want to override this in a child theme, then include a file |
37 | 37 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
38 | 38 | */ |
39 | - get_template_part( 'content', get_post_format() ); |
|
39 | + get_template_part('content', get_post_format()); |
|
40 | 40 | |
41 | 41 | // End the loop. |
42 | 42 | endwhile; |
43 | 43 | |
44 | 44 | // Previous/next page navigation. |
45 | - the_posts_pagination( array( |
|
46 | - 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
|
47 | - 'next_text' => __( 'Next page', 'twentyfifteen' ), |
|
48 | - 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
|
49 | - ) ); |
|
45 | + the_posts_pagination(array( |
|
46 | + 'prev_text' => __('Previous page', 'twentyfifteen'), |
|
47 | + 'next_text' => __('Next page', 'twentyfifteen'), |
|
48 | + 'before_page_number' => '<span class="meta-nav screen-reader-text">'.__('Page', 'twentyfifteen').' </span>', |
|
49 | + )); |
|
50 | 50 | |
51 | 51 | // If no content, include the "No posts found" template. |
52 | 52 | else : |
53 | - get_template_part( 'content', 'none' ); |
|
53 | + get_template_part('content', 'none'); |
|
54 | 54 | |
55 | 55 | endif; |
56 | 56 | ?> |
@@ -52,8 +52,10 @@ |
||
52 | 52 | ) ); |
53 | 53 | |
54 | 54 | // If no content, include the "No posts found" template. |
55 | - else : |
|
55 | + else { |
|
56 | + : |
|
56 | 57 | get_template_part( 'content', 'none' ); |
58 | + } |
|
57 | 59 | |
58 | 60 | endif; |
59 | 61 | ?> |