@@ -13,105 +13,105 @@ discard block |
||
13 | 13 | * Add custom header image to header area |
14 | 14 | */ |
15 | 15 | function strip_header_background() { |
16 | - if ( get_header_image() ) { |
|
17 | - $css = '.site-branding { background-image: url(' . esc_url( get_header_image() ) . '); }'; |
|
18 | - wp_add_inline_style( 'strip-style', $css ); |
|
16 | + if (get_header_image()) { |
|
17 | + $css = '.site-branding { background-image: url(' . esc_url(get_header_image()) . '); }'; |
|
18 | + wp_add_inline_style('strip-style', $css); |
|
19 | 19 | } |
20 | 20 | } |
21 | -add_action( 'wp_enqueue_scripts', 'strip_header_background', 11 ); |
|
21 | +add_action('wp_enqueue_scripts', 'strip_header_background', 11); |
|
22 | 22 | |
23 | -if ( ! function_exists( 'strip_content_nav' ) ) : |
|
23 | +if ( ! function_exists('strip_content_nav')) : |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Display navigation to next/previous pages when applicable |
27 | 27 | * |
28 | 28 | * @param $string $nav_id strip_content_nav. |
29 | 29 | */ |
30 | - function strip_content_nav( $nav_id ) { |
|
30 | + function strip_content_nav($nav_id) { |
|
31 | 31 | global $wp_query, $post; |
32 | 32 | |
33 | 33 | // Don't print empty markup on single pages if there's nowhere to navigate. |
34 | 34 | // Don't print empty markup in archives if there's only one page. |
35 | - if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { |
|
35 | + if ($wp_query->max_num_pages < 2 && (is_home() || is_archive() || is_search())) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - $nav_class = ( is_single() || is_tax( 'story' ) ) ? 'post-navigation' : 'paging-navigation' ; |
|
39 | + $nav_class = (is_single() || is_tax('story')) ? 'post-navigation' : 'paging-navigation'; |
|
40 | 40 | |
41 | 41 | ?> <div class="wrap clear"> |
42 | 42 | |
43 | - <nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?> clear"> |
|
44 | - <h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1> |
|
43 | + <nav role="navigation" id="<?php echo esc_attr($nav_id); ?>" class="<?php echo esc_attr($nav_class); ?> clear"> |
|
44 | + <h1 class="screen-reader-text"><?php esc_html_e('Post navigation', 'strip'); ?></h1> |
|
45 | 45 | |
46 | - <?php if ( 'comic' === get_post_type() && ( is_single() ) ) : // comics navigation links. |
|
46 | + <?php if ('comic' === get_post_type() && (is_single())) : // comics navigation links. |
|
47 | 47 | |
48 | 48 | $nav_class .= ' navigation-comic'; ?> |
49 | 49 | |
50 | 50 | <div class="navigation-comic"> |
51 | - <nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav> |
|
52 | - <nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), $in_same_term = true, $excluded_terms = '', $taxonomy = 'story' ); ?></nav> |
|
53 | - <nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav> |
|
54 | - <nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav> |
|
55 | - <nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav> |
|
51 | + <nav class="nav-first"><a href="<?php echo esc_url(first_comic_link()); ?>"><?php esc_html_e('Start', 'strip'); ?></a></nav> |
|
52 | + <nav class="nav-previous"><?php previous_post_link('%link', __('Previous', 'strip'), $in_same_term = true, $excluded_terms = '', $taxonomy = 'story'); ?></nav> |
|
53 | + <nav class="nav-title"><?php the_title('<h4 class="series-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>'); ?></nav> |
|
54 | + <nav class="nav-next"><?php next_post_link('%link', __('Next', 'strip'), true, '', 'story'); ?></nav> |
|
55 | + <nav class="nav-last"><a href="<?php echo esc_url(last_comic_link()); ?>"><?php esc_html_e('Last', 'strip'); ?></a></nav> |
|
56 | 56 | </div><!-- .navigation-comic --> |
57 | 57 | |
58 | - <?php elseif ( is_single() ) : // navigation links for single posts. ?> |
|
58 | + <?php elseif (is_single()) : // navigation links for single posts. ?> |
|
59 | 59 | |
60 | - <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'strip' ) . '</span> %title' ); ?> |
|
61 | - <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'strip' ) . '</span>' ); ?> |
|
60 | + <?php previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('←', 'Previous post link', 'strip') . '</span> %title'); ?> |
|
61 | + <?php next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('→', 'Next post link', 'strip') . '</span>'); ?> |
|
62 | 62 | |
63 | - <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for blog, archive, and search pages. ?> |
|
63 | + <?php elseif ($wp_query->max_num_pages > 1 && (is_home() || is_archive() || is_search())) : // navigation links for blog, archive, and search pages. ?> |
|
64 | 64 | |
65 | - <?php if ( get_next_posts_link() ) : ?> |
|
66 | - <div class="nav-previous-page"><?php next_posts_link( __( 'Older posts', 'strip' ) ); ?></div> |
|
65 | + <?php if (get_next_posts_link()) : ?> |
|
66 | + <div class="nav-previous-page"><?php next_posts_link(__('Older posts', 'strip')); ?></div> |
|
67 | 67 | <?php endif; ?> |
68 | 68 | |
69 | - <?php if ( get_previous_posts_link() ) : ?> |
|
70 | - <div class="nav-next-page"><?php previous_posts_link( __( 'Recent posts', 'strip' ) ); ?></div> |
|
69 | + <?php if (get_previous_posts_link()) : ?> |
|
70 | + <div class="nav-next-page"><?php previous_posts_link(__('Recent posts', 'strip')); ?></div> |
|
71 | 71 | <?php endif; ?> |
72 | 72 | |
73 | 73 | <?php endif; ?> |
74 | 74 | |
75 | 75 | </div><!-- .entry-wrap --> |
76 | - </nav><!-- #<?php echo esc_attr( $nav_id ); ?> --> |
|
76 | + </nav><!-- #<?php echo esc_attr($nav_id); ?> --> |
|
77 | 77 | <?php |
78 | 78 | } |
79 | 79 | endif; // strip_content_nav. |
80 | 80 | |
81 | -if ( ! function_exists( 'strip_entry_meta' ) ) : |
|
81 | +if ( ! function_exists('strip_entry_meta')) : |
|
82 | 82 | /** |
83 | 83 | * Prints HTML with meta information for the current post-date/time and author. |
84 | 84 | */ |
85 | 85 | function strip_entry_meta() { |
86 | - if ( is_sticky() && is_home() ) { |
|
86 | + if (is_sticky() && is_home()) { |
|
87 | 87 | printf( |
88 | - __( '<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip' ), |
|
89 | - esc_url( get_permalink() ), |
|
90 | - esc_attr( get_the_time() ) |
|
88 | + __('<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip'), |
|
89 | + esc_url(get_permalink()), |
|
90 | + esc_attr(get_the_time()) |
|
91 | 91 | ); |
92 | 92 | } |
93 | 93 | |
94 | - if ( 'post' === get_post_type() ) { |
|
94 | + if ('post' === get_post_type()) { |
|
95 | 95 | printf( |
96 | - __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip' ), |
|
97 | - esc_url( get_permalink() ), |
|
98 | - esc_attr( get_the_time() ), |
|
99 | - esc_attr( get_the_date( 'c' ) ), |
|
96 | + __('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip'), |
|
97 | + esc_url(get_permalink()), |
|
98 | + esc_attr(get_the_time()), |
|
99 | + esc_attr(get_the_date('c')), |
|
100 | 100 | get_the_date(), |
101 | - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), |
|
102 | - esc_attr( sprintf( __( 'View all posts by %s', 'strip' ), get_the_author() ) ), |
|
101 | + esc_url(get_author_posts_url(get_the_author_meta('ID'))), |
|
102 | + esc_attr(sprintf(__('View all posts by %s', 'strip'), get_the_author())), |
|
103 | 103 | get_the_author() |
104 | 104 | ); |
105 | 105 | } |
106 | 106 | |
107 | - $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'strip' ) ); |
|
108 | - if ( $tags_list ) { |
|
109 | - printf( '<span class="tags-links">' . esc_html( '%1$s', 'strip' ) . '</span>', $tags_list ); // WPCS: XSS OK. |
|
107 | + $tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'strip')); |
|
108 | + if ($tags_list) { |
|
109 | + printf('<span class="tags-links">' . esc_html('%1$s', 'strip') . '</span>', $tags_list); // WPCS: XSS OK. |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 | endif; |
113 | 113 | |
114 | -if ( ! function_exists( 'strip_term_description' ) ) : |
|
114 | +if ( ! function_exists('strip_term_description')) : |
|
115 | 115 | /** |
116 | 116 | * Display optional term description for category, tag and custom taxonomy pages. |
117 | 117 | * |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | // Show an optional term description. |
122 | 122 | $term_description = term_description(); |
123 | 123 | |
124 | - if ( is_post_type_archive( 'comic' ) || is_category() || is_tag() || is_tax( 'story' ) && ! empty( $term_description ) ) : |
|
125 | - printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK. |
|
124 | + if (is_post_type_archive('comic') || is_category() || is_tag() || is_tax('story') && ! empty($term_description)) : |
|
125 | + printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK. |
|
126 | 126 | endif; |
127 | 127 | } |
128 | 128 | endif; // ends check for strip_term_description. |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @return bool |
134 | 134 | */ |
135 | 135 | function strip_categorized_blog() { |
136 | - if ( false === ( $all_the_cool_cats = get_transient( 'strip_categories' ) ) ) { |
|
136 | + if (false === ($all_the_cool_cats = get_transient('strip_categories'))) { |
|
137 | 137 | // Create an array of all the categories that are attached to posts. |
138 | 138 | $all_the_cool_cats = get_categories(array( |
139 | 139 | 'fields' => 'ids', |
@@ -143,12 +143,12 @@ discard block |
||
143 | 143 | )); |
144 | 144 | |
145 | 145 | // Count the number of categories that are attached to the posts. |
146 | - $all_the_cool_cats = count( $all_the_cool_cats ); |
|
146 | + $all_the_cool_cats = count($all_the_cool_cats); |
|
147 | 147 | |
148 | - set_transient( 'strip_categories', $all_the_cool_cats ); |
|
148 | + set_transient('strip_categories', $all_the_cool_cats); |
|
149 | 149 | } |
150 | 150 | |
151 | - if ( $all_the_cool_cats > 1 ) { |
|
151 | + if ($all_the_cool_cats > 1) { |
|
152 | 152 | // This blog has more than 1 category so strip_categorized_blog should return true. |
153 | 153 | return true; |
154 | 154 | } |
@@ -160,16 +160,16 @@ discard block |
||
160 | 160 | * Flushes out the transients used in strip_categorized_blog. |
161 | 161 | */ |
162 | 162 | function strip_category_transient_flusher() { |
163 | - if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { |
|
163 | + if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { |
|
164 | 164 | return; |
165 | 165 | } |
166 | 166 | // Like, beat it. Dig? |
167 | - delete_transient( 'strip_categories' ); |
|
167 | + delete_transient('strip_categories'); |
|
168 | 168 | } |
169 | -add_action( 'edit_category', 'strip_category_transient_flusher' ); |
|
170 | -add_action( 'save_post', 'strip_category_transient_flusher' ); |
|
169 | +add_action('edit_category', 'strip_category_transient_flusher'); |
|
170 | +add_action('save_post', 'strip_category_transient_flusher'); |
|
171 | 171 | |
172 | -if ( ! function_exists( 'strip_the_custom_logo' ) ) : |
|
172 | +if ( ! function_exists('strip_the_custom_logo')) : |
|
173 | 173 | /** |
174 | 174 | * Displays the optional custom logo. |
175 | 175 | * |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * @since strip 1.0 |
179 | 179 | */ |
180 | 180 | function strip_the_custom_logo() { |
181 | - if ( function_exists( 'the_custom_logo' ) ) { |
|
181 | + if (function_exists('the_custom_logo')) { |
|
182 | 182 | the_custom_logo(); |
183 | 183 | } |
184 | 184 | } |
@@ -195,10 +195,10 @@ discard block |
||
195 | 195 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'. |
196 | 196 | * @return mixed Array containing the boundary post object if successful, null otherwise. |
197 | 197 | */ |
198 | -function get_comic_boundary_post( $in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category' ) { |
|
198 | +function get_comic_boundary_post($in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category') { |
|
199 | 199 | global $post; |
200 | - setup_postdata( $post ); |
|
201 | - if ( ! taxonomy_exists( $taxonomy ) ) { |
|
200 | + setup_postdata($post); |
|
201 | + if ( ! taxonomy_exists($taxonomy)) { |
|
202 | 202 | return null; |
203 | 203 | } |
204 | 204 | |
@@ -213,39 +213,39 @@ discard block |
||
213 | 213 | |
214 | 214 | $term_array = array(); |
215 | 215 | |
216 | - if ( ! is_array( $excluded_terms ) ) { |
|
217 | - if ( ! empty( $excluded_terms ) ) { |
|
218 | - $excluded_terms = explode( ',', $excluded_terms ); |
|
216 | + if ( ! is_array($excluded_terms)) { |
|
217 | + if ( ! empty($excluded_terms)) { |
|
218 | + $excluded_terms = explode(',', $excluded_terms); |
|
219 | 219 | } else { |
220 | 220 | $excluded_terms = array(); |
221 | 221 | } |
222 | 222 | } |
223 | 223 | |
224 | - if ( $in_same_term || ! empty( $excluded_terms ) ) { |
|
225 | - if ( $in_same_term ) { |
|
226 | - $term_array = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) ); |
|
224 | + if ($in_same_term || ! empty($excluded_terms)) { |
|
225 | + if ($in_same_term) { |
|
226 | + $term_array = wp_get_object_terms($post->ID, $taxonomy, array('fields' => 'ids')); |
|
227 | 227 | } |
228 | 228 | |
229 | - if ( ! empty( $excluded_terms ) ) { |
|
230 | - $excluded_terms = array_map( 'intval', $excluded_terms ); |
|
231 | - $excluded_terms = array_diff( $excluded_terms, $term_array ); |
|
229 | + if ( ! empty($excluded_terms)) { |
|
230 | + $excluded_terms = array_map('intval', $excluded_terms); |
|
231 | + $excluded_terms = array_diff($excluded_terms, $term_array); |
|
232 | 232 | |
233 | 233 | $inverse_terms = array(); |
234 | - foreach ( $excluded_terms as $excluded_term ) { |
|
234 | + foreach ($excluded_terms as $excluded_term) { |
|
235 | 235 | $inverse_terms[] = $excluded_term * -1; |
236 | 236 | } |
237 | 237 | $excluded_terms = $inverse_terms; |
238 | 238 | } |
239 | 239 | |
240 | - $query_args['tax_query'] = array( array( |
|
240 | + $query_args['tax_query'] = array(array( |
|
241 | 241 | 'taxonomy' => $taxonomy, |
242 | - 'terms' => array_merge( $term_array, $excluded_terms ), |
|
242 | + 'terms' => array_merge($term_array, $excluded_terms), |
|
243 | 243 | ), |
244 | 244 | ); |
245 | 245 | } |
246 | 246 | |
247 | 247 | $get_posts = new wp_query; |
248 | - return $get_posts -> query( $query_args ); |
|
248 | + return $get_posts -> query($query_args); |
|
249 | 249 | wp_reset_postdata(); |
250 | 250 | } |
251 | 251 | |
@@ -254,11 +254,11 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @param array $args first_comic_link. |
256 | 256 | */ |
257 | -function first_comic_link( $args = array() ) { |
|
258 | - $first = get_comic_boundary_post( true, '', true, 'story' ); |
|
259 | - apply_filters( 'the_title', $first[0]->post_title ); |
|
257 | +function first_comic_link($args = array()) { |
|
258 | + $first = get_comic_boundary_post(true, '', true, 'story'); |
|
259 | + apply_filters('the_title', $first[0]->post_title); |
|
260 | 260 | |
261 | - echo esc_html( get_permalink( $first[0]->ID ) ); |
|
261 | + echo esc_html(get_permalink($first[0]->ID)); |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | /** |
@@ -266,9 +266,9 @@ discard block |
||
266 | 266 | * |
267 | 267 | * @param array $args last_comic_link. |
268 | 268 | */ |
269 | -function last_comic_link( $args = array() ) { |
|
270 | - $last = get_comic_boundary_post( true, '', false, 'story' ); |
|
271 | - apply_filters( 'the_title', $last[0]->post_title ); |
|
269 | +function last_comic_link($args = array()) { |
|
270 | + $last = get_comic_boundary_post(true, '', false, 'story'); |
|
271 | + apply_filters('the_title', $last[0]->post_title); |
|
272 | 272 | |
273 | - echo esc_html( get_permalink( $last[0]->ID ) ); |
|
273 | + echo esc_html(get_permalink($last[0]->ID)); |
|
274 | 274 | } |
@@ -20,22 +20,22 @@ |
||
20 | 20 | * |
21 | 21 | * @param int $size The avatar height and width size in pixels. |
22 | 22 | */ |
23 | - $author_bio_avatar_size = apply_filters( 'strip_author_bio_avatar_size', 168 ); |
|
23 | + $author_bio_avatar_size = apply_filters('strip_author_bio_avatar_size', 168); |
|
24 | 24 | |
25 | - echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); |
|
25 | + echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size); |
|
26 | 26 | ?> |
27 | 27 | </div><!-- .author-avatar --> |
28 | 28 | |
29 | 29 | <div class="author-meta"> |
30 | 30 | |
31 | 31 | <div class="author-description"> |
32 | - <h2 class="author-title"><span class="author-heading"><?php esc_html_e( '✎', 'strip' ); ?></span> <?php echo get_the_author(); ?></h2> |
|
32 | + <h2 class="author-title"><span class="author-heading"><?php esc_html_e('✎', 'strip'); ?></span> <?php echo get_the_author(); ?></h2> |
|
33 | 33 | |
34 | 34 | |
35 | 35 | <p class="author-bio"> |
36 | - <?php the_author_meta( 'description' ); ?> |
|
37 | - <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
38 | - <br> <?php printf( esc_html__( 'View all articles by %s', 'strip' ), get_the_author() ); ?> |
|
36 | + <?php the_author_meta('description'); ?> |
|
37 | + <a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
38 | + <br> <?php printf(esc_html__('View all articles by %s', 'strip'), get_the_author()); ?> |
|
39 | 39 | </a> |
40 | 40 | </p><!-- .author-bio --> |
41 | 41 | </div><!-- .author-description --> |
@@ -17,14 +17,14 @@ |
||
17 | 17 | <div id="primary" class="content-area"> |
18 | 18 | <div id="content" class="site-content" role="main"> |
19 | 19 | |
20 | - <?php while ( have_posts() ) : |
|
20 | + <?php while (have_posts()) : |
|
21 | 21 | the_post(); ?> |
22 | 22 | |
23 | - <?php get_template_part( 'content', 'page' ); ?> |
|
23 | + <?php get_template_part('content', 'page'); ?> |
|
24 | 24 | |
25 | 25 | <?php |
26 | 26 | // If comments are open or we have at least one comment, load up the comment template. |
27 | - if ( comments_open() || '0' !== get_comments_number() ) { |
|
27 | + if (comments_open() || '0' !== get_comments_number()) { |
|
28 | 28 | comments_template(); |
29 | 29 | } |
30 | 30 | ?> |
@@ -14,28 +14,28 @@ discard block |
||
14 | 14 | <footer id="colophon" class="site-footer" role="contentinfo"> |
15 | 15 | |
16 | 16 | <div class="entry-wrap wrap clear"> |
17 | - <?php if ( is_active_sidebar( 'first-footer-widget' ) || is_active_sidebar( 'second-footer-widget' ) || is_active_sidebar( 'third-footer-widget' ) || is_active_sidebar( 'fourth-footer-widget' ) ) : ?> |
|
17 | + <?php if (is_active_sidebar('first-footer-widget') || is_active_sidebar('second-footer-widget') || is_active_sidebar('third-footer-widget') || is_active_sidebar('fourth-footer-widget')) : ?> |
|
18 | 18 | <div id="secondary" class="widget-area clear" role="complementary"> |
19 | 19 | <div class="widget-area-wrapper"> |
20 | - <?php do_action( 'before_sidebar' ); ?> |
|
21 | - <?php if ( is_active_sidebar( 'first-footer-widget' ) ) : ?> |
|
20 | + <?php do_action('before_sidebar'); ?> |
|
21 | + <?php if (is_active_sidebar('first-footer-widget')) : ?> |
|
22 | 22 | <div class="footer-widget-1"> |
23 | - <?php dynamic_sidebar( 'first-footer-widget' ); ?> |
|
23 | + <?php dynamic_sidebar('first-footer-widget'); ?> |
|
24 | 24 | </div> |
25 | 25 | <?php endif; ?> |
26 | - <?php if ( is_active_sidebar( 'second-footer-widget' ) ) : ?> |
|
26 | + <?php if (is_active_sidebar('second-footer-widget')) : ?> |
|
27 | 27 | <div class="footer-widget-2"> |
28 | - <?php dynamic_sidebar( 'second-footer-widget' ); ?> |
|
28 | + <?php dynamic_sidebar('second-footer-widget'); ?> |
|
29 | 29 | </div> |
30 | 30 | <?php endif; ?> |
31 | - <?php if ( is_active_sidebar( 'third-footer-widget' ) ) : ?> |
|
31 | + <?php if (is_active_sidebar('third-footer-widget')) : ?> |
|
32 | 32 | <div class="footer-widget-3"> |
33 | - <?php dynamic_sidebar( 'third-footer-widget' ); ?> |
|
33 | + <?php dynamic_sidebar('third-footer-widget'); ?> |
|
34 | 34 | </div> |
35 | 35 | <?php endif; ?> |
36 | - <?php if ( is_active_sidebar( 'fourth-footer-widget' ) ) : ?> |
|
36 | + <?php if (is_active_sidebar('fourth-footer-widget')) : ?> |
|
37 | 37 | <div class="footer-widget-4"> |
38 | - <?php dynamic_sidebar( 'fourth-footer-widget' ); ?> |
|
38 | + <?php dynamic_sidebar('fourth-footer-widget'); ?> |
|
39 | 39 | </div> |
40 | 40 | <?php endif; ?> |
41 | 41 | </div><!-- .widget-area-wrapper --> |
@@ -44,13 +44,13 @@ discard block |
||
44 | 44 | </div><!-- .entry-wrap --> |
45 | 45 | |
46 | 46 | <div class="site-info"> |
47 | - © <span class="site-name"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> <?php |
|
47 | + © <span class="site-name"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span> <?php |
|
48 | 48 | $from_year = 2013; |
49 | - $this_year = (int) date( 'Y' ); |
|
50 | - echo esc_html( $from_year . (($from_year !== $this_year) ? '-' . $this_year : '') );?> |
|
49 | + $this_year = (int) date('Y'); |
|
50 | + echo esc_html($from_year . (($from_year !== $this_year) ? '-' . $this_year : '')); ?> |
|
51 | 51 | <span class="sep"> | </span> |
52 | - <?php do_action( 'strip_credits' ); ?> |
|
53 | - <a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip', 'strip' ) ); ?>"><?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'strip' ), 'strip', 'Hoa' ); ?></a> |
|
52 | + <?php do_action('strip_credits'); ?> |
|
53 | + <a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip', 'strip')); ?>"><?php printf(esc_html__('Theme: %1$s by %2$s.', 'strip'), 'strip', 'Hoa'); ?></a> |
|
54 | 54 | </div><!-- .site-info --> |
55 | 55 | </footer><!-- #colophon --> |
56 | 56 | </div><!-- #page --> |
@@ -10,10 +10,10 @@ discard block |
||
10 | 10 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
11 | 11 | |
12 | 12 | <div class="wrap"> |
13 | - <?php if ( '' !== get_the_post_thumbnail() ) : ?> |
|
13 | + <?php if ('' !== get_the_post_thumbnail()) : ?> |
|
14 | 14 | |
15 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
15 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'strip'), the_title_attribute('echo=0'))); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
17 | 17 | </a> |
18 | 18 | <?php endif; ?> |
19 | 19 | |
@@ -24,17 +24,17 @@ discard block |
||
24 | 24 | <header class="entry-header"> |
25 | 25 | |
26 | 26 | <?php |
27 | - edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' ); |
|
27 | + edit_post_link(__('Edit Comic', 'strip'), '<span class="edit-link">', '</span>'); |
|
28 | 28 | |
29 | - if ( ! is_single() ) : |
|
30 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
29 | + if ( ! is_single()) : |
|
30 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
31 | 31 | else : |
32 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
32 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
33 | 33 | endif; ?> |
34 | 34 | |
35 | 35 | </header><!-- .entry-header --> |
36 | 36 | |
37 | - <?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?> |
|
37 | + <?php if (is_search()) : // Only display Excerpts for Search — implement search for custom taxonomies. ?> |
|
38 | 38 | |
39 | 39 | <div class="entry-summary"> |
40 | 40 | <?php the_excerpt(); ?> |
@@ -11,15 +11,15 @@ discard block |
||
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 http-equiv="X-UA-Compatible" content="IE=Edge"> |
16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
17 | -<meta name="description" content="<?php if ( is_single() ) { |
|
18 | - single_post_title( '', true ); |
|
17 | +<meta name="description" content="<?php if (is_single()) { |
|
18 | + single_post_title('', true); |
|
19 | 19 | } else { |
20 | - bloginfo( 'name' ); |
|
20 | + bloginfo('name'); |
|
21 | 21 | echo ' - '; |
22 | - bloginfo( 'description' ); |
|
22 | + bloginfo('description'); |
|
23 | 23 | } |
24 | 24 | ?>" /> |
25 | 25 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
@@ -34,17 +34,17 @@ discard block |
||
34 | 34 | <header id="branding" class="site-header" role="banner"> |
35 | 35 | |
36 | 36 | <div class="site-branding"> |
37 | - <?php get_template_part( '/assets/inline', 'logo.svg' ); // remove or replace by your own custom svg logo. ?> |
|
37 | + <?php get_template_part('/assets/inline', 'logo.svg'); // remove or replace by your own custom svg logo. ?> |
|
38 | 38 | <?php strip_the_custom_logo(); ?> |
39 | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> |
|
39 | + <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> <h2 class="site-description"><?php bloginfo('description'); ?></h2> |
|
40 | 40 | </div><!-- .site-branding --> |
41 | 41 | |
42 | - <?php if ( has_nav_menu( 'primary' ) ) : ?> |
|
42 | + <?php if (has_nav_menu('primary')) : ?> |
|
43 | 43 | <nav id="site-navigation" class="main-navigation clear" role="navigation"> |
44 | - <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e( 'discover', 'strip' ); ?></button> |
|
45 | - <div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'strip' ); ?></a></div> |
|
44 | + <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e('discover', 'strip'); ?></button> |
|
45 | + <div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e('Skip to content', 'strip'); ?></a></div> |
|
46 | 46 | |
47 | - <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'wrap' ) ); ?> |
|
47 | + <?php wp_nav_menu(array('theme_location' => 'primary', 'container_class' => 'wrap')); ?> |
|
48 | 48 | </nav><!-- #site-navigation --> |
49 | 49 | <?php endif; ?> |
50 | 50 |
@@ -13,70 +13,70 @@ discard block |
||
13 | 13 | <div id="primary" |
14 | 14 | <div id="content" role="main"> |
15 | 15 | |
16 | - <?php if ( have_posts() ) : ?> |
|
16 | + <?php if (have_posts()) : ?> |
|
17 | 17 | |
18 | 18 | <header class="page-header"> |
19 | 19 | <div class="wrap"> |
20 | 20 | <h1 class="page-title"> |
21 | 21 | <?php |
22 | - if ( is_author() && get_the_author_meta( 'description' ) ) { |
|
22 | + if (is_author() && get_the_author_meta('description')) { |
|
23 | 23 | echo '<div class="author-index shorter">'; |
24 | - get_template_part( 'inc/author','box' ); |
|
24 | + get_template_part('inc/author', 'box'); |
|
25 | 25 | echo '</div>'; |
26 | 26 | } |
27 | 27 | ?> |
28 | 28 | <?php |
29 | - if ( is_category() ) : |
|
30 | - printf( esc_html__( 'Category Archives: %s', 'strip' ), '<span>' . single_cat_title( '', false ) . '</span>' ); |
|
29 | + if (is_category()) : |
|
30 | + printf(esc_html__('Category Archives: %s', 'strip'), '<span>' . single_cat_title('', false) . '</span>'); |
|
31 | 31 | |
32 | - elseif ( is_tag() ) : |
|
33 | - printf( esc_html__( 'Tag Archives: %s', 'strip' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
|
32 | + elseif (is_tag()) : |
|
33 | + printf(esc_html__('Tag Archives: %s', 'strip'), '<span>' . single_tag_title('', false) . '</span>'); |
|
34 | 34 | |
35 | - elseif ( is_author() ) : |
|
36 | - printf( esc_html__( 'All articles by %s', 'strip' ), '<span class="vcard">' . get_the_author() . '</span>' ); |
|
35 | + elseif (is_author()) : |
|
36 | + printf(esc_html__('All articles by %s', 'strip'), '<span class="vcard">' . get_the_author() . '</span>'); |
|
37 | 37 | |
38 | - elseif ( is_day() ) : |
|
39 | - printf( esc_html__( 'Daily Archives: %s', 'strip' ), '<span>' . get_the_date() . '</span>' ); |
|
38 | + elseif (is_day()) : |
|
39 | + printf(esc_html__('Daily Archives: %s', 'strip'), '<span>' . get_the_date() . '</span>'); |
|
40 | 40 | |
41 | - elseif ( is_month() ) : |
|
42 | - printf( esc_html__( 'Monthly Archives: %s', 'strip' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); |
|
41 | + elseif (is_month()) : |
|
42 | + printf(esc_html__('Monthly Archives: %s', 'strip'), '<span>' . get_the_date('F Y') . '</span>'); |
|
43 | 43 | |
44 | - elseif ( is_year() ) : |
|
45 | - printf( esc_html__( 'Yearly Archives: %s', 'strip' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); |
|
44 | + elseif (is_year()) : |
|
45 | + printf(esc_html__('Yearly Archives: %s', 'strip'), '<span>' . get_the_date('Y') . '</span>'); |
|
46 | 46 | |
47 | - elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : |
|
48 | - esc_html_e( 'Asides', 'strip' ); |
|
47 | + elseif (is_tax('post_format', 'post-format-aside')) : |
|
48 | + esc_html_e('Asides', 'strip'); |
|
49 | 49 | |
50 | - elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) : |
|
51 | - esc_html_e( 'Galleries', 'strip' ); |
|
50 | + elseif (is_tax('post_format', 'post-format-gallery')) : |
|
51 | + esc_html_e('Galleries', 'strip'); |
|
52 | 52 | |
53 | - elseif ( is_tax( 'post_format', 'post-format-image' ) ) : |
|
54 | - esc_html_e( 'Images', 'strip' ); |
|
53 | + elseif (is_tax('post_format', 'post-format-image')) : |
|
54 | + esc_html_e('Images', 'strip'); |
|
55 | 55 | |
56 | - elseif ( is_tax( 'post_format', 'post-format-video' ) ) : |
|
57 | - esc_html_e( 'Videos', 'strip' ); |
|
56 | + elseif (is_tax('post_format', 'post-format-video')) : |
|
57 | + esc_html_e('Videos', 'strip'); |
|
58 | 58 | |
59 | - elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : |
|
60 | - esc_html_e( 'Quotes', 'strip' ); |
|
59 | + elseif (is_tax('post_format', 'post-format-quote')) : |
|
60 | + esc_html_e('Quotes', 'strip'); |
|
61 | 61 | |
62 | - elseif ( is_tax( 'post_format', 'post-format-link' ) ) : |
|
63 | - esc_html_e( 'Links', 'strip' ); |
|
62 | + elseif (is_tax('post_format', 'post-format-link')) : |
|
63 | + esc_html_e('Links', 'strip'); |
|
64 | 64 | |
65 | - elseif ( is_tax( 'post_format', 'post-format-audio' ) ) : |
|
66 | - esc_html_e( 'Audios', 'strip' ); |
|
65 | + elseif (is_tax('post_format', 'post-format-audio')) : |
|
66 | + esc_html_e('Audios', 'strip'); |
|
67 | 67 | |
68 | - elseif ( is_tax( 'post_format', 'post-format-chat' ) ) : |
|
69 | - esc_html_e( 'Chats', 'strip' ); |
|
68 | + elseif (is_tax('post_format', 'post-format-chat')) : |
|
69 | + esc_html_e('Chats', 'strip'); |
|
70 | 70 | |
71 | - elseif ( is_tax( 'story', 'story_term' ) ) : |
|
72 | - esc_html_e( 'Stories', 'strip' ); |
|
73 | - get_template_part( 'archive-comic' ); |
|
71 | + elseif (is_tax('story', 'story_term')) : |
|
72 | + esc_html_e('Stories', 'strip'); |
|
73 | + get_template_part('archive-comic'); |
|
74 | 74 | |
75 | - elseif ( ! 'comic' === get_post_type() ) : |
|
76 | - esc_html_e( 'Comics', 'strip' ); |
|
75 | + elseif ( ! 'comic' === get_post_type()) : |
|
76 | + esc_html_e('Comics', 'strip'); |
|
77 | 77 | |
78 | 78 | else : |
79 | - esc_html_e( 'Archives', 'strip' ); |
|
79 | + esc_html_e('Archives', 'strip'); |
|
80 | 80 | |
81 | 81 | endif; |
82 | 82 | ?> |
@@ -84,15 +84,15 @@ discard block |
||
84 | 84 | <?php |
85 | 85 | // Show an optional term description. |
86 | 86 | $term_description = term_description(); |
87 | - if ( ! empty( $term_description ) ) : |
|
88 | - '<div class="taxonomy-description"' . printf( esc_html( '%s', $term_description, 'strip' ) ) . '</div>'; |
|
87 | + if ( ! empty($term_description)) : |
|
88 | + '<div class="taxonomy-description"' . printf(esc_html('%s', $term_description, 'strip')) . '</div>'; |
|
89 | 89 | endif; |
90 | 90 | ?> |
91 | 91 | </div><!-- .wrap --> |
92 | 92 | </header><!-- .page-header --> |
93 | 93 | |
94 | 94 | <?php /* Start the Loop */ ?> |
95 | - <?php while ( have_posts() ) : the_post(); ?> |
|
95 | + <?php while (have_posts()) : the_post(); ?> |
|
96 | 96 | |
97 | 97 | <?php |
98 | 98 | |
@@ -101,16 +101,16 @@ discard block |
||
101 | 101 | * If you want to overload this in a child theme then include a file |
102 | 102 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
103 | 103 | */ |
104 | - get_template_part( 'content', get_post_format() ); |
|
104 | + get_template_part('content', get_post_format()); |
|
105 | 105 | ?> |
106 | 106 | |
107 | 107 | <?php endwhile; ?> |
108 | 108 | |
109 | - <?php strip_content_nav( 'nav-below' ); ?> |
|
109 | + <?php strip_content_nav('nav-below'); ?> |
|
110 | 110 | |
111 | 111 | <?php else : ?> |
112 | 112 | |
113 | - <?php get_template_part( 'no-results', 'archive' ); ?> |
|
113 | + <?php get_template_part('no-results', 'archive'); ?> |
|
114 | 114 | |
115 | 115 | <?php endif; ?> |
116 | 116 |
@@ -10,27 +10,27 @@ discard block |
||
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" > |
12 | 12 | <div class="wrap"> |
13 | - <?php if ( '' !== get_the_post_thumbnail() ) : ?> |
|
14 | - <?php if ( ! is_single() ) : ?> |
|
15 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
13 | + <?php if ('' !== get_the_post_thumbnail()) : ?> |
|
14 | + <?php if ( ! is_single()) : ?> |
|
15 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'strip'), the_title_attribute('echo=0'))); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
17 | 17 | </a> |
18 | 18 | <?php else : ?> |
19 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
19 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
20 | 20 | <?php endif; ?> |
21 | 21 | <?php endif; ?> |
22 | 22 | |
23 | 23 | <header class="entry-header"> |
24 | 24 | <?php |
25 | - $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
|
26 | - if ( $categories_list && strip_categorized_blog() ) { |
|
25 | + $categories_list = get_the_category_list(__(', ', 'strip')); |
|
26 | + if ($categories_list && strip_categorized_blog()) { |
|
27 | 27 | echo '<span class="categories-links">' . $categories_list . '</span>'; |
28 | 28 | } |
29 | 29 | |
30 | - if ( ! is_single() ) : |
|
31 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
30 | + if ( ! is_single()) : |
|
31 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
32 | 32 | else : |
33 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
33 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
34 | 34 | endif; |
35 | 35 | ?> |
36 | 36 | </header><!-- .entry-header --> |
@@ -38,14 +38,14 @@ discard block |
||
38 | 38 | <footer class="entry-meta"> |
39 | 39 | <?php strip_entry_meta(); ?> |
40 | 40 | |
41 | - <?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?> |
|
42 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span> |
|
41 | + <?php if ( ! post_password_required() && (comments_open() || '0' !== get_comments_number())) : ?> |
|
42 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'strip'), __('1 Comment', 'strip'), __('% Comments', 'strip')); ?></span> |
|
43 | 43 | <?php endif; ?> |
44 | 44 | |
45 | - <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
|
45 | + <?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?> |
|
46 | 46 | </footer><!-- .entry-meta --> |
47 | 47 | |
48 | - <?php if ( is_search() ) : // Only display Excerpts for Search. ?> |
|
48 | + <?php if (is_search()) : // Only display Excerpts for Search. ?> |
|
49 | 49 | <div class="entry-summary"> |
50 | 50 | <?php the_excerpt(); ?> |
51 | 51 | </div><!-- .entry-summary --> |
@@ -54,16 +54,16 @@ discard block |
||
54 | 54 | <?php |
55 | 55 | the_content(sprintf( |
56 | 56 | /* translators: %s: Name of current post. */ |
57 | - esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
|
58 | - the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
|
57 | + esc_html(__('Continue reading %s <span class="meta-nav">→</span>', 'strip'), array('span' => array('class' => array()))), |
|
58 | + the_title('<span class="screen-reader-text">"', '"</span>', false) |
|
59 | 59 | )); |
60 | 60 | |
61 | 61 | wp_link_pages(array( |
62 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |
|
62 | + 'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'strip') . '</span>', |
|
63 | 63 | 'after' => '</div>', |
64 | 64 | 'link_before' => '<span>', |
65 | 65 | 'link_after' => '</span>', |
66 | - 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>%', |
|
66 | + 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'strip') . ' </span>%', |
|
67 | 67 | 'separator' => '<span class="screen-reader-text">, </span>', |
68 | 68 | )); |
69 | 69 | ?> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * the visitor has not yet entered the password we will |
19 | 19 | * return early without loading the comments. |
20 | 20 | */ |
21 | -if ( post_password_required() ) { |
|
21 | +if (post_password_required()) { |
|
22 | 22 | return; |
23 | 23 | } |
24 | 24 | ?> |
@@ -27,13 +27,13 @@ discard block |
||
27 | 27 | |
28 | 28 | <?php |
29 | 29 | // You can start editing here -- including this comment! |
30 | - if ( have_comments() ) : ?> |
|
30 | + if (have_comments()) : ?> |
|
31 | 31 | <h2 class="comments-title"> |
32 | 32 | <?php |
33 | 33 | $comments_number = get_comments_number(); |
34 | - if ( '1' === $comments_number ) { |
|
34 | + if ('1' === $comments_number) { |
|
35 | 35 | /* translators: %s: post title */ |
36 | - printf( esc_html_x( 'One Reply to “%s”', 'comments title', 'strip' ), get_the_title() ); |
|
36 | + printf(esc_html_x('One Reply to “%s”', 'comments title', 'strip'), get_the_title()); |
|
37 | 37 | } else { |
38 | 38 | printf( |
39 | 39 | /* translators: 1: number of comments, 2: post title */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'comments title', |
45 | 45 | 'strip' |
46 | 46 | ), |
47 | - number_format_i18n( $comments_number ), |
|
47 | + number_format_i18n($comments_number), |
|
48 | 48 | get_the_title() |
49 | 49 | ); |
50 | 50 | } |
@@ -53,26 +53,26 @@ discard block |
||
53 | 53 | |
54 | 54 | <ol class="comment-list"> |
55 | 55 | <?php |
56 | - wp_list_comments( array( |
|
56 | + wp_list_comments(array( |
|
57 | 57 | 'avatar_size' => 96, |
58 | 58 | 'style' => 'ol', |
59 | 59 | 'short_ping' => true, |
60 | - 'reply_text' => __( 'Reply', 'strip' ), |
|
61 | - ) ); |
|
60 | + 'reply_text' => __('Reply', 'strip'), |
|
61 | + )); |
|
62 | 62 | ?> |
63 | 63 | </ol> |
64 | 64 | |
65 | - <?php the_comments_pagination( array( |
|
66 | - 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous', 'strip' ) . '</span>', |
|
67 | - 'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'strip' ) . '</span>', |
|
68 | - ) ); |
|
65 | + <?php the_comments_pagination(array( |
|
66 | + 'prev_text' => '<span class="screen-reader-text">' . __('Previous', 'strip') . '</span>', |
|
67 | + 'next_text' => '<span class="screen-reader-text">' . __('Next', 'strip') . '</span>', |
|
68 | + )); |
|
69 | 69 | |
70 | 70 | endif; // Check for have_comments(). |
71 | 71 | |
72 | 72 | // If comments are closed and there are comments, let's leave a little note, shall we? |
73 | - if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> |
|
73 | + if ( ! comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
74 | 74 | |
75 | - <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'strip' ); ?></p> |
|
75 | + <p class="no-comments"><?php esc_html_e('Comments are closed.', 'strip'); ?></p> |
|
76 | 76 | <?php |
77 | 77 | endif; |
78 | 78 |