@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Template for displaying all single posts |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Fourteen |
|
7 | - * @since Twenty Fourteen 1.0 |
|
8 | - */ |
|
3 | + * The Template for displaying all single posts |
|
4 | + * |
|
5 | + * @package WordPress |
|
6 | + * @subpackage Twenty_Fourteen |
|
7 | + * @since Twenty Fourteen 1.0 |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | get_header(); ?> |
11 | 11 |
@@ -13,20 +13,20 @@ discard block |
||
13 | 13 | <div id="content" class="site-content" role="main"> |
14 | 14 | <?php |
15 | 15 | // Start the Loop. |
16 | - while ( have_posts() ) : the_post(); |
|
16 | + while (have_posts()) : the_post(); |
|
17 | 17 | |
18 | 18 | /* |
19 | 19 | * Include the post format-specific template for the content. If you want to |
20 | 20 | * use this in a child theme, then include a file called called content-___.php |
21 | 21 | * (where ___ is the post format) and that will be used instead. |
22 | 22 | */ |
23 | - get_template_part( 'content', get_post_format() ); |
|
23 | + get_template_part('content', get_post_format()); |
|
24 | 24 | |
25 | 25 | // Previous/next post navigation. |
26 | 26 | twentyfourteen_post_nav(); |
27 | 27 | |
28 | 28 | // If comments are open or we have at least one comment, load up the comment template. |
29 | - if ( comments_open() || get_comments_number() ) { |
|
29 | + if (comments_open() || get_comments_number()) { |
|
30 | 30 | comments_template(); |
31 | 31 | } |
32 | 32 | endwhile; |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | </div><!-- #primary --> |
36 | 36 | |
37 | 37 | <?php |
38 | -get_sidebar( 'content' ); |
|
38 | +get_sidebar('content'); |
|
39 | 39 | get_sidebar(); |
40 | 40 | get_footer(); |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template used for displaying page content |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Fourteen |
|
7 | - * @since Twenty Fourteen 1.0 |
|
8 | - */ |
|
3 | + * The template used for displaying page content |
|
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(); ?>> |
@@ -12,20 +12,20 @@ |
||
12 | 12 | <?php |
13 | 13 | // Page thumbnail and title. |
14 | 14 | twentyfourteen_post_thumbnail(); |
15 | - the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); |
|
15 | + the_title('<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->'); |
|
16 | 16 | ?> |
17 | 17 | |
18 | 18 | <div class="entry-content"> |
19 | 19 | <?php |
20 | 20 | the_content(); |
21 | - wp_link_pages( array( |
|
22 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
21 | + wp_link_pages(array( |
|
22 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
23 | 23 | 'after' => '</div>', |
24 | 24 | 'link_before' => '<span>', |
25 | 25 | 'link_after' => '</span>', |
26 | - ) ); |
|
26 | + )); |
|
27 | 27 | |
28 | - edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); |
|
28 | + edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); |
|
29 | 29 | ?> |
30 | 30 | </div><!-- .entry-content --> |
31 | 31 | </article><!-- #post-## --> |
@@ -16,14 +16,14 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @since Twenty Fourteen 1.0 |
18 | 18 | */ |
19 | - do_action( 'twentyfourteen_featured_posts_before' ); |
|
19 | + do_action('twentyfourteen_featured_posts_before'); |
|
20 | 20 | |
21 | 21 | $featured_posts = twentyfourteen_get_featured_posts(); |
22 | - foreach ( (array) $featured_posts as $order => $post ) : |
|
23 | - setup_postdata( $post ); |
|
22 | + foreach ((array) $featured_posts as $order => $post) : |
|
23 | + setup_postdata($post); |
|
24 | 24 | |
25 | 25 | // Include the featured content template. |
26 | - get_template_part( 'content', 'featured-post' ); |
|
26 | + get_template_part('content', 'featured-post'); |
|
27 | 27 | endforeach; |
28 | 28 | |
29 | 29 | /** |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @since Twenty Fourteen 1.0 |
33 | 33 | */ |
34 | - do_action( 'twentyfourteen_featured_posts_after' ); |
|
34 | + do_action('twentyfourteen_featured_posts_after'); |
|
35 | 35 | |
36 | 36 | wp_reset_postdata(); |
37 | 37 | ?> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying featured content |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Fourteen |
|
7 | - * @since Twenty Fourteen 1.0 |
|
8 | - */ |
|
3 | + * The template for displaying featured content |
|
4 | + * |
|
5 | + * @package WordPress |
|
6 | + * @subpackage Twenty_Fourteen |
|
7 | + * @since Twenty Fourteen 1.0 |
|
8 | + */ |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <div id="featured-content" class="featured-content"> |
@@ -14,11 +14,11 @@ discard block |
||
14 | 14 | <div id="content" class="site-content" role="main"> |
15 | 15 | |
16 | 16 | <header class="page-header"> |
17 | - <h1 class="page-title"><?php _e( 'Not Found', 'twentyfourteen' ); ?></h1> |
|
17 | + <h1 class="page-title"><?php _e('Not Found', 'twentyfourteen'); ?></h1> |
|
18 | 18 | </header> |
19 | 19 | |
20 | 20 | <div class="page-content"> |
21 | - <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen' ); ?></p> |
|
21 | + <p><?php _e('It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen'); ?></p> |
|
22 | 22 | |
23 | 23 | <?php get_search_form(); ?> |
24 | 24 | </div><!-- .page-content --> |
@@ -27,6 +27,6 @@ discard block |
||
27 | 27 | </div><!-- #primary --> |
28 | 28 | |
29 | 29 | <?php |
30 | -get_sidebar( 'content' ); |
|
30 | +get_sidebar('content'); |
|
31 | 31 | get_sidebar(); |
32 | 32 | get_footer(); |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying 404 pages (Not Found) |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Fourteen |
|
7 | - * @since Twenty Fourteen 1.0 |
|
8 | - */ |
|
3 | + * The template for displaying 404 pages (Not Found) |
|
4 | + * |
|
5 | + * @package WordPress |
|
6 | + * @subpackage Twenty_Fourteen |
|
7 | + * @since Twenty Fourteen 1.0 |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | get_header(); ?> |
11 | 11 |
@@ -14,37 +14,37 @@ discard block |
||
14 | 14 | <?php twentyfourteen_post_thumbnail(); ?> |
15 | 15 | |
16 | 16 | <header class="entry-header"> |
17 | - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> |
|
17 | + <?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?> |
|
18 | 18 | <div class="entry-meta"> |
19 | - <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> |
|
19 | + <span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span> |
|
20 | 20 | </div> |
21 | 21 | <?php |
22 | 22 | endif; |
23 | 23 | |
24 | - if ( is_single() ) : |
|
25 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
24 | + if (is_single()) : |
|
25 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
26 | 26 | else : |
27 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
27 | + the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); |
|
28 | 28 | endif; |
29 | 29 | ?> |
30 | 30 | |
31 | 31 | <div class="entry-meta"> |
32 | 32 | <?php |
33 | - if ( 'post' == get_post_type() ) |
|
33 | + if ('post' == get_post_type()) |
|
34 | 34 | twentyfourteen_posted_on(); |
35 | 35 | |
36 | - if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : |
|
36 | + if ( ! post_password_required() && (comments_open() || get_comments_number())) : |
|
37 | 37 | ?> |
38 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> |
|
38 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span> |
|
39 | 39 | <?php |
40 | 40 | endif; |
41 | 41 | |
42 | - edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); |
|
42 | + edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); |
|
43 | 43 | ?> |
44 | 44 | </div><!-- .entry-meta --> |
45 | 45 | </header><!-- .entry-header --> |
46 | 46 | |
47 | - <?php if ( is_search() ) : ?> |
|
47 | + <?php if (is_search()) : ?> |
|
48 | 48 | <div class="entry-summary"> |
49 | 49 | <?php the_excerpt(); ?> |
50 | 50 | </div><!-- .entry-summary --> |
@@ -52,20 +52,20 @@ discard block |
||
52 | 52 | <div class="entry-content"> |
53 | 53 | <?php |
54 | 54 | /* translators: %s: Name of current post */ |
55 | - the_content( sprintf( |
|
56 | - __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
|
57 | - the_title( '<span class="screen-reader-text">', '</span>', false ) |
|
58 | - ) ); |
|
55 | + the_content(sprintf( |
|
56 | + __('Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen'), |
|
57 | + the_title('<span class="screen-reader-text">', '</span>', false) |
|
58 | + )); |
|
59 | 59 | |
60 | - wp_link_pages( array( |
|
61 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
|
60 | + wp_link_pages(array( |
|
61 | + 'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>', |
|
62 | 62 | 'after' => '</div>', |
63 | 63 | 'link_before' => '<span>', |
64 | 64 | 'link_after' => '</span>', |
65 | - ) ); |
|
65 | + )); |
|
66 | 66 | ?> |
67 | 67 | </div><!-- .entry-content --> |
68 | 68 | <?php endif; ?> |
69 | 69 | |
70 | - <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> |
|
70 | + <?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?> |
|
71 | 71 | </article><!-- #post-## --> |
@@ -23,15 +23,18 @@ discard block |
||
23 | 23 | |
24 | 24 | if ( is_single() ) : |
25 | 25 | the_title( '<h1 class="entry-title">', '</h1>' ); |
26 | - else : |
|
26 | + else { |
|
27 | + : |
|
27 | 28 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
29 | + } |
|
28 | 30 | endif; |
29 | 31 | ?> |
30 | 32 | |
31 | 33 | <div class="entry-meta"> |
32 | 34 | <?php |
33 | - if ( 'post' == get_post_type() ) |
|
34 | - twentyfourteen_posted_on(); |
|
35 | + if ( 'post' == get_post_type() ) { |
|
36 | + twentyfourteen_posted_on(); |
|
37 | + } |
|
35 | 38 | |
36 | 39 | if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : |
37 | 40 | ?> |
@@ -48,7 +51,8 @@ discard block |
||
48 | 51 | <div class="entry-summary"> |
49 | 52 | <?php the_excerpt(); ?> |
50 | 53 | </div><!-- .entry-summary --> |
51 | - <?php else : ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
52 | 56 | <div class="entry-content"> |
53 | 57 | <?php |
54 | 58 | /* translators: %s: Name of current post */ |
@@ -56,6 +60,7 @@ discard block |
||
56 | 60 | __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
57 | 61 | the_title( '<span class="screen-reader-text">', '</span>', false ) |
58 | 62 | ) ); |
63 | +} |
|
59 | 64 | |
60 | 65 | wp_link_pages( array( |
61 | 66 | 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The default template for displaying content |
|
4 | - * |
|
5 | - * Used for both single and index/archive/search. |
|
6 | - * |
|
7 | - * @package WordPress |
|
8 | - * @subpackage Twenty_Fourteen |
|
9 | - * @since Twenty Fourteen 1.0 |
|
10 | - */ |
|
3 | + * The default template for displaying content |
|
4 | + * |
|
5 | + * Used for both single and index/archive/search. |
|
6 | + * |
|
7 | + * @package WordPress |
|
8 | + * @subpackage Twenty_Fourteen |
|
9 | + * @since Twenty Fourteen 1.0 |
|
10 | + */ |
|
11 | 11 | ?> |
12 | 12 | |
13 | 13 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying Comments |
|
4 | - * |
|
5 | - * The area of the page that contains comments and the comment form. |
|
6 | - * |
|
7 | - * @package WordPress |
|
8 | - * @subpackage Twenty_Fourteen |
|
9 | - * @since Twenty Fourteen 1.0 |
|
10 | - */ |
|
3 | + * The template for displaying Comments |
|
4 | + * |
|
5 | + * The area of the page that contains comments and the comment form. |
|
6 | + * |
|
7 | + * @package WordPress |
|
8 | + * @subpackage Twenty_Fourteen |
|
9 | + * @since Twenty Fourteen 1.0 |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | /* |
13 | 13 | * If the current post is protected by a password and the visitor has not yet |
@@ -13,50 +13,50 @@ |
||
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 | 21 | <div id="comments" class="comments-area"> |
22 | 22 | |
23 | - <?php if ( have_comments() ) : ?> |
|
23 | + <?php if (have_comments()) : ?> |
|
24 | 24 | |
25 | 25 | <h2 class="comments-title"> |
26 | 26 | <?php |
27 | - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), |
|
28 | - number_format_i18n( get_comments_number() ), get_the_title() ); |
|
27 | + printf(_n('One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen'), |
|
28 | + number_format_i18n(get_comments_number()), get_the_title()); |
|
29 | 29 | ?> |
30 | 30 | </h2> |
31 | 31 | |
32 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> |
|
32 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?> |
|
33 | 33 | <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> |
34 | - <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> |
|
35 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> |
|
36 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> |
|
34 | + <h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1> |
|
35 | + <div class="nav-previous"><?php previous_comments_link(__('← Older Comments', 'twentyfourteen')); ?></div> |
|
36 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments →', 'twentyfourteen')); ?></div> |
|
37 | 37 | </nav><!-- #comment-nav-above --> |
38 | 38 | <?php endif; // Check for comment navigation. ?> |
39 | 39 | |
40 | 40 | <ol class="comment-list"> |
41 | 41 | <?php |
42 | - wp_list_comments( array( |
|
42 | + wp_list_comments(array( |
|
43 | 43 | 'style' => 'ol', |
44 | 44 | 'short_ping' => true, |
45 | 45 | 'avatar_size' => 34, |
46 | - ) ); |
|
46 | + )); |
|
47 | 47 | ?> |
48 | 48 | </ol><!-- .comment-list --> |
49 | 49 | |
50 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> |
|
50 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?> |
|
51 | 51 | <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> |
52 | - <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> |
|
53 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> |
|
54 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> |
|
52 | + <h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1> |
|
53 | + <div class="nav-previous"><?php previous_comments_link(__('← Older Comments', 'twentyfourteen')); ?></div> |
|
54 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments →', 'twentyfourteen')); ?></div> |
|
55 | 55 | </nav><!-- #comment-nav-below --> |
56 | 56 | <?php endif; // Check for comment navigation. ?> |
57 | 57 | |
58 | - <?php if ( ! comments_open() ) : ?> |
|
59 | - <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p> |
|
58 | + <?php if ( ! comments_open()) : ?> |
|
59 | + <p class="no-comments"><?php _e('Comments are closed.', 'twentyfourteen'); ?></p> |
|
60 | 60 | <?php endif; ?> |
61 | 61 | |
62 | 62 | <?php endif; // have_comments() ?> |
@@ -9,22 +9,22 @@ |
||
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <header class="page-header"> |
12 | - <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1> |
|
12 | + <h1 class="page-title"><?php _e('Nothing Found', 'twentyfourteen'); ?></h1> |
|
13 | 13 | </header> |
14 | 14 | |
15 | 15 | <div class="page-content"> |
16 | - <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|
16 | + <?php if (is_home() && current_user_can('publish_posts')) : ?> |
|
17 | 17 | |
18 | - <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p> |
|
18 | + <p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen'), admin_url('post-new.php')); ?></p> |
|
19 | 19 | |
20 | - <?php elseif ( is_search() ) : ?> |
|
20 | + <?php elseif (is_search()) : ?> |
|
21 | 21 | |
22 | - <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> |
|
22 | + <p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen'); ?></p> |
|
23 | 23 | <?php get_search_form(); ?> |
24 | 24 | |
25 | 25 | <?php else : ?> |
26 | 26 | |
27 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> |
|
27 | + <p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen'); ?></p> |
|
28 | 28 | <?php get_search_form(); ?> |
29 | 29 | |
30 | 30 | <?php endif; ?> |
@@ -22,9 +22,12 @@ |
||
22 | 22 | <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> |
23 | 23 | <?php get_search_form(); ?> |
24 | 24 | |
25 | - <?php else : ?> |
|
25 | + <?php else { |
|
26 | + : ?> |
|
26 | 27 | |
27 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> |
|
28 | + <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); |
|
29 | +} |
|
30 | +?></p> |
|
28 | 31 | <?php get_search_form(); ?> |
29 | 32 | |
30 | 33 | <?php endif; ?> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying a "No posts found" message |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Fourteen |
|
7 | - * @since Twenty Fourteen 1.0 |
|
8 | - */ |
|
3 | + * The template for displaying a "No posts found" message |
|
4 | + * |
|
5 | + * @package WordPress |
|
6 | + * @subpackage Twenty_Fourteen |
|
7 | + * @since Twenty Fourteen 1.0 |
|
8 | + */ |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <header class="page-header"> |
@@ -19,13 +19,13 @@ |
||
19 | 19 | * A sidebar in the footer? Yep. You can can customize |
20 | 20 | * your footer with three columns of widgets. |
21 | 21 | */ |
22 | - if ( ! is_404() ) |
|
23 | - get_sidebar( 'footer' ); |
|
22 | + if ( ! is_404()) |
|
23 | + get_sidebar('footer'); |
|
24 | 24 | ?> |
25 | 25 | |
26 | 26 | <div id="site-generator"> |
27 | - <?php do_action( 'twentyeleven_credits' ); ?> |
|
28 | - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a> |
|
27 | + <?php do_action('twentyeleven_credits'); ?> |
|
28 | + <a href="<?php echo esc_url(__('https://wordpress.org/', 'twentyeleven')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyeleven'); ?>"><?php printf(__('Proudly powered by %s', 'twentyeleven'), 'WordPress'); ?></a> |
|
29 | 29 | </div> |
30 | 30 | </footer><!-- #colophon --> |
31 | 31 | </div><!-- #page --> |
@@ -19,8 +19,9 @@ |
||
19 | 19 | * A sidebar in the footer? Yep. You can can customize |
20 | 20 | * your footer with three columns of widgets. |
21 | 21 | */ |
22 | - if ( ! is_404() ) |
|
23 | - get_sidebar( 'footer' ); |
|
22 | + if ( ! is_404() ) { |
|
23 | + get_sidebar( 'footer' ); |
|
24 | + } |
|
24 | 25 | ?> |
25 | 26 | |
26 | 27 | <div id="site-generator"> |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for displaying the footer |
|
4 | - * |
|
5 | - * Contains the closing of the id=main div and all content after |
|
6 | - * |
|
7 | - * @package WordPress |
|
8 | - * @subpackage Twenty_Eleven |
|
9 | - * @since Twenty Eleven 1.0 |
|
10 | - */ |
|
3 | + * Template for displaying the footer |
|
4 | + * |
|
5 | + * Contains the closing of the id=main div and all content after |
|
6 | + * |
|
7 | + * @package WordPress |
|
8 | + * @subpackage Twenty_Eleven |
|
9 | + * @since Twenty Eleven 1.0 |
|
10 | + */ |
|
11 | 11 | ?> |
12 | 12 | |
13 | 13 | </div><!-- #main --> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template for displaying content |
|
4 | - * |
|
5 | - * @package WordPress |
|
6 | - * @subpackage Twenty_Eleven |
|
7 | - * @since Twenty Eleven 1.0 |
|
8 | - */ |
|
3 | + * Template for displaying content |
|
4 | + * |
|
5 | + * @package WordPress |
|
6 | + * @subpackage Twenty_Eleven |
|
7 | + * @since Twenty Eleven 1.0 |
|
8 | + */ |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -12,28 +12,28 @@ discard block |
||
12 | 12 | <header class="entry-header"> |
13 | 13 | <hgroup> |
14 | 14 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
15 | - <h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3> |
|
15 | + <h3 class="entry-format"><?php _e('Quote', 'twentyeleven'); ?></h3> |
|
16 | 16 | </hgroup> |
17 | 17 | |
18 | 18 | <div class="entry-meta"> |
19 | 19 | <?php twentyeleven_posted_on(); ?> |
20 | 20 | </div><!-- .entry-meta --> |
21 | 21 | |
22 | - <?php if ( comments_open() && ! post_password_required() ) : ?> |
|
22 | + <?php if (comments_open() && ! post_password_required()) : ?> |
|
23 | 23 | <div class="comments-link"> |
24 | - <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
|
24 | + <?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?> |
|
25 | 25 | </div> |
26 | 26 | <?php endif; ?> |
27 | 27 | </header><!-- .entry-header --> |
28 | 28 | |
29 | - <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
|
29 | + <?php if (is_search()) : // Only display Excerpts for Search ?> |
|
30 | 30 | <div class="entry-summary"> |
31 | 31 | <?php the_excerpt(); ?> |
32 | 32 | </div><!-- .entry-summary --> |
33 | 33 | <?php else : ?> |
34 | 34 | <div class="entry-content"> |
35 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
|
36 | - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
|
35 | + <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'twentyeleven')); ?> |
|
36 | + <?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?> |
|
37 | 37 | </div><!-- .entry-content --> |
38 | 38 | <?php endif; ?> |
39 | 39 | |
@@ -41,34 +41,34 @@ discard block |
||
41 | 41 | <?php $show_sep = false; ?> |
42 | 42 | <?php |
43 | 43 | /* translators: used between list items, there is a space after the comma */ |
44 | - $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
|
45 | - if ( $categories_list ): |
|
44 | + $categories_list = get_the_category_list(__(', ', 'twentyeleven')); |
|
45 | + if ($categories_list): |
|
46 | 46 | ?> |
47 | 47 | <span class="cat-links"> |
48 | - <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); |
|
48 | + <?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list); |
|
49 | 49 | $show_sep = true; ?> |
50 | 50 | </span> |
51 | 51 | <?php endif; // End if categories ?> |
52 | 52 | <?php |
53 | 53 | /* translators: used between list items, there is a space after the comma */ |
54 | - $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
|
55 | - if ( $tags_list ): |
|
56 | - if ( $show_sep ) : ?> |
|
54 | + $tags_list = get_the_tag_list('', __(', ', 'twentyeleven')); |
|
55 | + if ($tags_list): |
|
56 | + if ($show_sep) : ?> |
|
57 | 57 | <span class="sep"> | </span> |
58 | 58 | <?php endif; // End if $show_sep ?> |
59 | 59 | <span class="tag-links"> |
60 | - <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); |
|
60 | + <?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); |
|
61 | 61 | $show_sep = true; ?> |
62 | 62 | </span> |
63 | 63 | <?php endif; // End if $tags_list ?> |
64 | 64 | |
65 | - <?php if ( comments_open() ) : ?> |
|
66 | - <?php if ( $show_sep ) : ?> |
|
65 | + <?php if (comments_open()) : ?> |
|
66 | + <?php if ($show_sep) : ?> |
|
67 | 67 | <span class="sep"> | </span> |
68 | 68 | <?php endif; // End if $show_sep ?> |
69 | - <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
|
69 | + <span class="comments-link"><?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?></span> |
|
70 | 70 | <?php endif; // End if comments_open() ?> |
71 | 71 | |
72 | - <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
|
72 | + <?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|
73 | 73 | </footer><!-- .entry-meta --> |
74 | 74 | </article><!-- #post-<?php the_ID(); ?> --> |
@@ -30,9 +30,12 @@ |
||
30 | 30 | <div class="entry-summary"> |
31 | 31 | <?php the_excerpt(); ?> |
32 | 32 | </div><!-- .entry-summary --> |
33 | - <?php else : ?> |
|
33 | + <?php else { |
|
34 | + : ?> |
|
34 | 35 | <div class="entry-content"> |
35 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
|
36 | + <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); |
|
37 | +} |
|
38 | +?> |
|
36 | 39 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
37 | 40 | </div><!-- .entry-content --> |
38 | 41 | <?php endif; ?> |