@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | <section id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | - <?php if ( have_posts() ) : ?> |
|
15 | + <?php if (have_posts()) : ?> |
|
16 | 16 | |
17 | 17 | <?php |
18 | 18 | /* |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | ?> |
27 | 27 | |
28 | 28 | <header class="page-header"> |
29 | - <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1> |
|
29 | + <h1 class="page-title author"><?php printf(__('Author Archives: %s', 'twentyeleven'), '<span class="vcard"><a class="url fn n" href="'.esc_url(get_author_posts_url(get_the_author_meta('ID'))).'" title="'.esc_attr(get_the_author()).'" rel="me">'.get_the_author().'</a></span>'); ?></h1> |
|
30 | 30 | </header> |
31 | 31 | |
32 | 32 | <?php |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | rewind_posts(); |
39 | 39 | ?> |
40 | 40 | |
41 | - <?php twentyeleven_content_nav( 'nav-above' ); ?> |
|
41 | + <?php twentyeleven_content_nav('nav-above'); ?> |
|
42 | 42 | |
43 | 43 | <?php |
44 | 44 | // If a user has filled out their description, show a bio on their entries. |
45 | - if ( get_the_author_meta( 'description' ) ) : ?> |
|
45 | + if (get_the_author_meta('description')) : ?> |
|
46 | 46 | <div id="author-info"> |
47 | 47 | <div id="author-avatar"> |
48 | 48 | <?php |
@@ -53,18 +53,18 @@ discard block |
||
53 | 53 | * |
54 | 54 | * @param int The height and width avatar dimension in pixels. Default 60. |
55 | 55 | */ |
56 | - echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); |
|
56 | + echo get_avatar(get_the_author_meta('user_email'), apply_filters('twentyeleven_author_bio_avatar_size', 60)); |
|
57 | 57 | ?> |
58 | 58 | </div><!-- #author-avatar --> |
59 | 59 | <div id="author-description"> |
60 | - <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2> |
|
61 | - <?php the_author_meta( 'description' ); ?> |
|
60 | + <h2><?php printf(__('About %s', 'twentyeleven'), get_the_author()); ?></h2> |
|
61 | + <?php the_author_meta('description'); ?> |
|
62 | 62 | </div><!-- #author-description --> |
63 | 63 | </div><!-- #author-info --> |
64 | 64 | <?php endif; ?> |
65 | 65 | |
66 | 66 | <?php /* Start the Loop */ ?> |
67 | - <?php while ( have_posts() ) : the_post(); ?> |
|
67 | + <?php while (have_posts()) : the_post(); ?> |
|
68 | 68 | |
69 | 69 | <?php |
70 | 70 | /* |
@@ -72,22 +72,22 @@ discard block |
||
72 | 72 | * If you want to overload this in a child theme then include a file |
73 | 73 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
74 | 74 | */ |
75 | - get_template_part( 'content', get_post_format() ); |
|
75 | + get_template_part('content', get_post_format()); |
|
76 | 76 | ?> |
77 | 77 | |
78 | 78 | <?php endwhile; ?> |
79 | 79 | |
80 | - <?php twentyeleven_content_nav( 'nav-below' ); ?> |
|
80 | + <?php twentyeleven_content_nav('nav-below'); ?> |
|
81 | 81 | |
82 | 82 | <?php else : ?> |
83 | 83 | |
84 | 84 | <article id="post-0" class="post no-results not-found"> |
85 | 85 | <header class="entry-header"> |
86 | - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> |
|
86 | + <h1 class="entry-title"><?php _e('Nothing Found', 'twentyeleven'); ?></h1> |
|
87 | 87 | </header><!-- .entry-header --> |
88 | 88 | |
89 | 89 | <div class="entry-content"> |
90 | - <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> |
|
90 | + <p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?></p> |
|
91 | 91 | <?php get_search_form(); ?> |
92 | 92 | </div><!-- .entry-content --> |
93 | 93 | </article><!-- #post-0 --> |
@@ -79,11 +79,14 @@ |
||
79 | 79 | |
80 | 80 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
81 | 81 | |
82 | - <?php else : ?> |
|
82 | + <?php else { |
|
83 | + : ?> |
|
83 | 84 | |
84 | 85 | <article id="post-0" class="post no-results not-found"> |
85 | 86 | <header class="entry-header"> |
86 | - <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> |
|
87 | + <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); |
|
88 | +} |
|
89 | +?></h1> |
|
87 | 90 | </header><!-- .entry-header --> |
88 | 91 | |
89 | 92 | <div class="entry-content"> |
@@ -12,17 +12,17 @@ |
||
12 | 12 | <div id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | - <?php while ( have_posts() ) : the_post(); ?> |
|
15 | + <?php while (have_posts()) : the_post(); ?> |
|
16 | 16 | |
17 | 17 | <nav id="nav-single"> |
18 | - <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> |
|
19 | - <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> Previous', 'twentyeleven' ) ); ?></span> |
|
20 | - <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></span> |
|
18 | + <h3 class="assistive-text"><?php _e('Post navigation', 'twentyeleven'); ?></h3> |
|
19 | + <span class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">←</span> Previous', 'twentyeleven')); ?></span> |
|
20 | + <span class="nav-next"><?php next_post_link('%link', __('Next <span class="meta-nav">→</span>', 'twentyeleven')); ?></span> |
|
21 | 21 | </nav><!-- #nav-single --> |
22 | 22 | |
23 | - <?php get_template_part( 'content-single', get_post_format() ); ?> |
|
23 | + <?php get_template_part('content-single', get_post_format()); ?> |
|
24 | 24 | |
25 | - <?php comments_template( '', true ); ?> |
|
25 | + <?php comments_template('', true); ?> |
|
26 | 26 | |
27 | 27 | <?php endwhile; // end of the loop. ?> |
28 | 28 |
@@ -15,9 +15,9 @@ |
||
15 | 15 | |
16 | 16 | <div class="entry-content"> |
17 | 17 | <?php the_content(); ?> |
18 | - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
|
18 | + <?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?> |
|
19 | 19 | </div><!-- .entry-content --> |
20 | 20 | <footer class="entry-meta"> |
21 | - <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
|
21 | + <?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|
22 | 22 | </footer><!-- .entry-meta --> |
23 | 23 | </article><!-- #post-<?php the_ID(); ?> --> |
@@ -7,8 +7,8 @@ |
||
7 | 7 | * @since Twenty Eleven 1.0 |
8 | 8 | */ |
9 | 9 | ?> |
10 | - <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
11 | - <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label> |
|
12 | - <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> |
|
13 | - <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> |
|
10 | + <form method="get" id="searchform" action="<?php echo esc_url(home_url('/')); ?>"> |
|
11 | + <label for="s" class="assistive-text"><?php _e('Search', 'twentyeleven'); ?></label> |
|
12 | + <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e('Search', 'twentyeleven'); ?>" /> |
|
13 | + <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e('Search', 'twentyeleven'); ?>" /> |
|
14 | 14 | </form> |
@@ -8,14 +8,14 @@ |
||
8 | 8 | */ |
9 | 9 | ?> |
10 | 10 | |
11 | -<article id="post-<?php the_ID(); ?>" <?php post_class( 'intro' ); ?>> |
|
11 | +<article id="post-<?php the_ID(); ?>" <?php post_class('intro'); ?>> |
|
12 | 12 | <header class="entry-header"> |
13 | 13 | <h2 class="entry-title"><?php the_title(); ?></h2> |
14 | 14 | </header><!-- .entry-header --> |
15 | 15 | |
16 | 16 | <div class="entry-content"> |
17 | 17 | <?php the_content(); ?> |
18 | - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
|
19 | - <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
|
18 | + <?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?> |
|
19 | + <?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|
20 | 20 | </div><!-- .entry-content --> |
21 | 21 | </article><!-- #post-<?php the_ID(); ?> --> |
@@ -14,30 +14,30 @@ |
||
14 | 14 | |
15 | 15 | <article id="post-0" class="post error404 not-found"> |
16 | 16 | <header class="entry-header"> |
17 | - <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentyeleven' ); ?></h1> |
|
17 | + <h1 class="entry-title"><?php _e('This is somewhat embarrassing, isn’t it?', 'twentyeleven'); ?></h1> |
|
18 | 18 | </header> |
19 | 19 | |
20 | 20 | <div class="entry-content"> |
21 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p> |
|
21 | + <p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven'); ?></p> |
|
22 | 22 | |
23 | 23 | <?php get_search_form(); ?> |
24 | 24 | |
25 | - <?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?> |
|
25 | + <?php the_widget('WP_Widget_Recent_Posts', array('number' => 10), array('widget_id' => '404')); ?> |
|
26 | 26 | |
27 | 27 | <div class="widget"> |
28 | - <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2> |
|
28 | + <h2 class="widgettitle"><?php _e('Most Used Categories', 'twentyeleven'); ?></h2> |
|
29 | 29 | <ul> |
30 | - <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?> |
|
30 | + <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> |
|
31 | 31 | </ul> |
32 | 32 | </div> |
33 | 33 | |
34 | 34 | <?php |
35 | 35 | /* translators: %1$s: smilie */ |
36 | - $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>'; |
|
37 | - the_widget( 'WP_Widget_Archives', array( 'count' => 0, 'dropdown' => 1 ), array( 'after_title' => '</h2>' . $archive_content ) ); |
|
36 | + $archive_content = '<p>'.sprintf(__('Try looking in the monthly archives. %1$s', 'twentyeleven'), convert_smilies(':)')).'</p>'; |
|
37 | + the_widget('WP_Widget_Archives', array('count' => 0, 'dropdown' => 1), array('after_title' => '</h2>'.$archive_content)); |
|
38 | 38 | ?> |
39 | 39 | |
40 | - <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> |
|
40 | + <?php the_widget('WP_Widget_Tag_Cloud'); ?> |
|
41 | 41 | |
42 | 42 | </div><!-- .entry-content --> |
43 | 43 | </article><!-- #post-0 --> |
@@ -10,75 +10,75 @@ |
||
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | - <?php if ( is_sticky() ) : ?> |
|
13 | + <?php if (is_sticky()) : ?> |
|
14 | 14 | <hgroup> |
15 | 15 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
16 | - <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> |
|
16 | + <h3 class="entry-format"><?php _e('Featured', 'twentyeleven'); ?></h3> |
|
17 | 17 | </hgroup> |
18 | 18 | <?php else : ?> |
19 | 19 | <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> |
20 | 20 | <?php endif; ?> |
21 | 21 | |
22 | - <?php if ( 'post' == get_post_type() ) : ?> |
|
22 | + <?php if ('post' == get_post_type()) : ?> |
|
23 | 23 | <div class="entry-meta"> |
24 | 24 | <?php twentyeleven_posted_on(); ?> |
25 | 25 | </div><!-- .entry-meta --> |
26 | 26 | <?php endif; ?> |
27 | 27 | |
28 | - <?php if ( comments_open() && ! post_password_required() ) : ?> |
|
28 | + <?php if (comments_open() && ! post_password_required()) : ?> |
|
29 | 29 | <div class="comments-link"> |
30 | - <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
|
30 | + <?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?> |
|
31 | 31 | </div> |
32 | 32 | <?php endif; ?> |
33 | 33 | </header><!-- .entry-header --> |
34 | 34 | |
35 | - <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
|
35 | + <?php if (is_search()) : // Only display Excerpts for Search ?> |
|
36 | 36 | <div class="entry-summary"> |
37 | 37 | <?php the_excerpt(); ?> |
38 | 38 | </div><!-- .entry-summary --> |
39 | 39 | <?php else : ?> |
40 | 40 | <div class="entry-content"> |
41 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
|
42 | - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
|
41 | + <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'twentyeleven')); ?> |
|
42 | + <?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?> |
|
43 | 43 | </div><!-- .entry-content --> |
44 | 44 | <?php endif; ?> |
45 | 45 | |
46 | 46 | <footer class="entry-meta"> |
47 | 47 | <?php $show_sep = false; ?> |
48 | - <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?> |
|
48 | + <?php if (is_object_in_taxonomy(get_post_type(), 'category')) : // Hide category text when not supported ?> |
|
49 | 49 | <?php |
50 | 50 | /* translators: used between list items, there is a space after the comma */ |
51 | - $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
|
52 | - if ( $categories_list ): |
|
51 | + $categories_list = get_the_category_list(__(', ', 'twentyeleven')); |
|
52 | + if ($categories_list): |
|
53 | 53 | ?> |
54 | 54 | <span class="cat-links"> |
55 | - <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); |
|
55 | + <?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list); |
|
56 | 56 | $show_sep = true; ?> |
57 | 57 | </span> |
58 | 58 | <?php endif; // End if categories ?> |
59 | 59 | <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> |
60 | - <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?> |
|
60 | + <?php if (is_object_in_taxonomy(get_post_type(), 'post_tag')) : // Hide tag text when not supported ?> |
|
61 | 61 | <?php |
62 | 62 | /* translators: used between list items, there is a space after the comma */ |
63 | - $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
|
64 | - if ( $tags_list ): |
|
65 | - if ( $show_sep ) : ?> |
|
63 | + $tags_list = get_the_tag_list('', __(', ', 'twentyeleven')); |
|
64 | + if ($tags_list): |
|
65 | + if ($show_sep) : ?> |
|
66 | 66 | <span class="sep"> | </span> |
67 | 67 | <?php endif; // End if $show_sep ?> |
68 | 68 | <span class="tag-links"> |
69 | - <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); |
|
69 | + <?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); |
|
70 | 70 | $show_sep = true; ?> |
71 | 71 | </span> |
72 | 72 | <?php endif; // End if $tags_list ?> |
73 | 73 | <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> |
74 | 74 | |
75 | - <?php if ( comments_open() ) : ?> |
|
76 | - <?php if ( $show_sep ) : ?> |
|
75 | + <?php if (comments_open()) : ?> |
|
76 | + <?php if ($show_sep) : ?> |
|
77 | 77 | <span class="sep"> | </span> |
78 | 78 | <?php endif; // End if $show_sep ?> |
79 | - <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> |
|
79 | + <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> |
|
80 | 80 | <?php endif; // End if comments_open() ?> |
81 | 81 | |
82 | - <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
|
82 | + <?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|
83 | 83 | </footer><!-- .entry-meta --> |
84 | 84 | </article><!-- #post-<?php the_ID(); ?> --> |
@@ -15,8 +15,11 @@ discard block |
||
15 | 15 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
16 | 16 | <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> |
17 | 17 | </hgroup> |
18 | - <?php else : ?> |
|
19 | - <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
20 | + <h1 class="entry-title"><a href="<?php the_permalink(); |
|
21 | +} |
|
22 | +?>" rel="bookmark"><?php the_title(); ?></a></h1> |
|
20 | 23 | <?php endif; ?> |
21 | 24 | |
22 | 25 | <?php if ( 'post' == get_post_type() ) : ?> |
@@ -36,9 +39,12 @@ discard block |
||
36 | 39 | <div class="entry-summary"> |
37 | 40 | <?php the_excerpt(); ?> |
38 | 41 | </div><!-- .entry-summary --> |
39 | - <?php else : ?> |
|
42 | + <?php else { |
|
43 | + : ?> |
|
40 | 44 | <div class="entry-content"> |
41 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
|
45 | + <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); |
|
46 | +} |
|
47 | +?> |
|
42 | 48 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
43 | 49 | </div><!-- .entry-content --> |
44 | 50 | <?php endif; ?> |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | */ |
14 | 14 | ?> |
15 | 15 | <div id="comments"> |
16 | - <?php if ( post_password_required() ) : ?> |
|
17 | - <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p> |
|
16 | + <?php if (post_password_required()) : ?> |
|
17 | + <p class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'twentyeleven'); ?></p> |
|
18 | 18 | </div><!-- #comments --> |
19 | 19 | <?php |
20 | 20 | /* |
@@ -28,19 +28,19 @@ discard block |
||
28 | 28 | |
29 | 29 | <?php // You can start editing here -- including this comment! ?> |
30 | 30 | |
31 | - <?php if ( have_comments() ) : ?> |
|
31 | + <?php if (have_comments()) : ?> |
|
32 | 32 | <h2 id="comments-title"> |
33 | 33 | <?php |
34 | - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), |
|
35 | - number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); |
|
34 | + printf(_n('One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven'), |
|
35 | + number_format_i18n(get_comments_number()), '<span>'.get_the_title().'</span>'); |
|
36 | 36 | ?> |
37 | 37 | </h2> |
38 | 38 | |
39 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
|
39 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?> |
|
40 | 40 | <nav id="comment-nav-above"> |
41 | - <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1> |
|
42 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> |
|
43 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> |
|
41 | + <h1 class="assistive-text"><?php _e('Comment navigation', 'twentyeleven'); ?></h1> |
|
42 | + <div class="nav-previous"><?php previous_comments_link(__('← Older Comments', 'twentyeleven')); ?></div> |
|
43 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments →', 'twentyeleven')); ?></div> |
|
44 | 44 | </nav> |
45 | 45 | <?php endif; // check for comment navigation ?> |
46 | 46 | |
@@ -53,15 +53,15 @@ discard block |
||
53 | 53 | * define twentyeleven_comment() and that will be used instead. |
54 | 54 | * See twentyeleven_comment() in twentyeleven/functions.php for more. |
55 | 55 | */ |
56 | - wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) ); |
|
56 | + wp_list_comments(array('callback' => 'twentyeleven_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 | <nav id="comment-nav-below"> |
62 | - <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1> |
|
63 | - <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> |
|
64 | - <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> |
|
62 | + <h1 class="assistive-text"><?php _e('Comment navigation', 'twentyeleven'); ?></h1> |
|
63 | + <div class="nav-previous"><?php previous_comments_link(__('← Older Comments', 'twentyeleven')); ?></div> |
|
64 | + <div class="nav-next"><?php next_comments_link(__('Newer Comments →', 'twentyeleven')); ?></div> |
|
65 | 65 | </nav> |
66 | 66 | <?php endif; // check for comment navigation ?> |
67 | 67 | |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | * If there are no comments and comments are closed, let's leave a little note, shall we? |
71 | 71 | * But we only want the note on posts and pages that had comments in the first place. |
72 | 72 | */ |
73 | - if ( ! comments_open() && get_comments_number() ) : ?> |
|
74 | - <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p> |
|
73 | + if ( ! comments_open() && get_comments_number()) : ?> |
|
74 | + <p class="nocomments"><?php _e('Comments are closed.', 'twentyeleven'); ?></p> |
|
75 | 75 | <?php endif; ?> |
76 | 76 | |
77 | 77 | <?php endif; // have_comments() ?> |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | Dolly'll never go away again"; |
45 | 45 | |
46 | 46 | // Here we split it into lines |
47 | - $lyrics = explode( "\n", $lyrics ); |
|
47 | + $lyrics = explode("\n", $lyrics); |
|
48 | 48 | |
49 | 49 | // And then randomly choose a line |
50 | - return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); |
|
50 | + return wptexturize($lyrics[mt_rand(0, count($lyrics) - 1)]); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | // This just echoes the chosen line, we'll position it later |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | // Now we set that function up to execute when the admin_notices action is called |
60 | -add_action( 'admin_notices', 'hello_dolly' ); |
|
60 | +add_action('admin_notices', 'hello_dolly'); |
|
61 | 61 | |
62 | 62 | // We need some CSS to position the paragraph |
63 | 63 | function dolly_css() { |
@@ -77,6 +77,6 @@ discard block |
||
77 | 77 | "; |
78 | 78 | } |
79 | 79 | |
80 | -add_action( 'admin_head', 'dolly_css' ); |
|
80 | +add_action('admin_head', 'dolly_css'); |
|
81 | 81 | |
82 | 82 | ?> |