Completed
Push — master ( 5add7f...9edeb8 )
by SILENT
02:36
created
inc/template-tags.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -13,88 +13,88 @@  discard block
 block discarded – undo
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
 
32
-		$nav_class = ( is_single() || is_post_type( 'comic' ) ) ? 'post-navigation' : 'paging-navigation' ;
32
+		$nav_class = (is_single() || is_post_type('comic')) ? 'post-navigation' : 'paging-navigation';
33 33
 
34 34
 		?> <div class="wrap clear">
35 35
 
36
-		<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?> clear">
37
-		<h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1>
36
+		<nav role="navigation" id="<?php echo esc_attr($nav_id); ?>" class="<?php echo esc_attr($nav_class); ?> clear">
37
+		<h1 class="screen-reader-text"><?php esc_html_e('Post navigation', 'strip'); ?></h1>
38 38
 
39
-		<?php  if ( 'comic' === get_post_type() && ( is_single() ) ) : // comics navigation links.
39
+		<?php  if ('comic' === get_post_type() && (is_single())) : // comics navigation links.
40 40
 
41 41
 			$nav_class .= ' navigation-comic'; ?>
42 42
 
43 43
 				<div class="navigation-comic">
44
-				<nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav>
45
-				<nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), true, '', 'story' ); ?></nav>
46
-				<nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav>
47
-				<nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav>
48
-				<nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav>
44
+				<nav class="nav-first"><a href="<?php echo esc_url(first_comic_link()); ?>"><?php esc_html_e('Start', 'strip'); ?></a></nav>
45
+				<nav class="nav-previous"><?php previous_post_link('%link', __('Previous', 'strip'), true, '', 'story'); ?></nav>
46
+				<nav class="nav-title"><?php the_title('<h4 class="series-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>'); ?></nav>
47
+				<nav class="nav-next"><?php next_post_link('%link', __('Next', 'strip'), true, '', 'story'); ?></nav>
48
+				<nav class="nav-last"><a href="<?php echo esc_url(last_comic_link()); ?>"><?php esc_html_e('Last', 'strip'); ?></a></nav>
49 49
 			</div><!-- .navigation-comic -->
50 50
 
51
-		<?php elseif ( is_single() ) : // navigation links for single posts. ?>
51
+		<?php elseif (is_single()) : // navigation links for single posts. ?>
52 52
 
53
-		<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&#8592;', 'Previous post link', 'strip' ) . '</span> %title' ); ?>
54
-		<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&#8594;', 'Next post link', 'strip' ) . '</span>' ); ?>
53
+		<?php previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('&#8592;', 'Previous post link', 'strip') . '</span> %title'); ?>
54
+		<?php next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('&#8594;', 'Next post link', 'strip') . '</span>'); ?>
55 55
 
56 56
 		<?php endif; ?>
57 57
 
58 58
 				</div><!-- .entry-wrap -->
59
-			</nav><!-- #<?php echo esc_attr( $nav_id ); ?> -->
59
+			</nav><!-- #<?php echo esc_attr($nav_id); ?> -->
60 60
 			<?php
61 61
 	}
62 62
 endif; // strip_content_nav.
63 63
 
64
-if ( ! function_exists( 'strip_entry_meta' ) ) :
64
+if ( ! function_exists('strip_entry_meta')) :
65 65
 	/**
66 66
 	 * Prints HTML with meta information for the current post-date/time and author.
67 67
 	 */
68 68
 	function strip_entry_meta() {
69
-		if ( is_sticky() && is_home() ) {
69
+		if (is_sticky() && is_home()) {
70 70
 			printf(
71
-				wp_kses( '<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip' ),
72
-				esc_url( get_permalink() ),
73
-				esc_attr( get_the_time() )
71
+				wp_kses('<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip'),
72
+				esc_url(get_permalink()),
73
+				esc_attr(get_the_time())
74 74
 			);
75 75
 		}
76 76
 
77
-		if ( 'post' === get_post_type() ) {
77
+		if ('post' === get_post_type()) {
78 78
 			printf(
79
-				__( '<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' ),
80
-				esc_url( get_permalink() ),
81
-				esc_attr( get_the_time() ),
82
-				esc_attr( get_the_date( 'c' ) ),
79
+				__('<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'),
80
+				esc_url(get_permalink()),
81
+				esc_attr(get_the_time()),
82
+				esc_attr(get_the_date('c')),
83 83
 				get_the_date(),
84
-				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
85
-				esc_attr( sprintf( __( 'View all posts by %s', 'strip' ), get_the_author() ) ),
84
+				esc_url(get_author_posts_url(get_the_author_meta('ID'))),
85
+				esc_attr(sprintf(__('View all posts by %s', 'strip'), get_the_author())),
86 86
 				get_the_author()
87 87
 			);
88 88
 		}
89 89
 
90
-		$tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'strip' ) );
91
-		if ( $tags_list ) {
92
-			printf( '<span class="tags-links">' . esc_html( '%1$s', 'strip' ) . '</span>', $tags_list ); // WPCS: XSS OK.
90
+		$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'strip'));
91
+		if ($tags_list) {
92
+			printf('<span class="tags-links">' . esc_html('%1$s', 'strip') . '</span>', $tags_list); // WPCS: XSS OK.
93 93
 		}
94 94
 	}
95 95
 endif;
96 96
 
97
-if ( ! function_exists( 'strip_term_description' ) ) :
97
+if ( ! function_exists('strip_term_description')) :
98 98
 	/**
99 99
 	 * Display optional term description for category, tag and custom taxonomy pages.
100 100
 	 *
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
 		// Show an optional term description.
105 105
 		$term_description = term_description();
106 106
 
107
-		if ( is_post_type_archive( 'comic' ) || is_category() || is_tag() || is_tax( 'story' ) && ! empty( $term_description ) ) :
108
-			printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.
107
+		if (is_post_type_archive('comic') || is_category() || is_tag() || is_tax('story') && ! empty($term_description)) :
108
+			printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK.
109 109
 			endif;
110 110
 	}
111 111
 endif; // ends check for strip_term_description.
@@ -116,25 +116,25 @@  discard block
 block discarded – undo
116 116
  * @return bool
117 117
  */
118 118
 function strip_categorized_blog() {
119
-	$category_count = get_transient( 'strip_categories' );
119
+	$category_count = get_transient('strip_categories');
120 120
 
121
-	if ( false === $category_count ) {
121
+	if (false === $category_count) {
122 122
 		// Create an array of all the categories that are attached to posts.
123
-		$categories = get_categories( array(
123
+		$categories = get_categories(array(
124 124
 			'fields'     => 'ids',
125 125
 			'hide_empty' => 1,
126 126
 			// We only need to know if there is more than one category.
127 127
 			'number'     => 2,
128
-		) );
128
+		));
129 129
 
130 130
 		// Count the number of categories that are attached to the posts.
131
-		$category_count = count( $categories );
131
+		$category_count = count($categories);
132 132
 
133
-		set_transient( 'strip_categories', $category_count );
133
+		set_transient('strip_categories', $category_count);
134 134
 	}
135 135
 
136 136
 	// Allow viewing case of 0 or 1 categories in post preview.
137
-	if ( is_preview() ) {
137
+	if (is_preview()) {
138 138
 		return true;
139 139
 	}
140 140
 
@@ -146,16 +146,16 @@  discard block
 block discarded – undo
146 146
  * Flush out the transients used in strip_categorized_blog.
147 147
  */
148 148
 function strip_category_transient_flusher() {
149
-	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
149
+	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
150 150
 		return;
151 151
 	}
152 152
 	// Like, beat it. Dig?
153
-	delete_transient( 'strip_categories' );
153
+	delete_transient('strip_categories');
154 154
 }
155
-add_action( 'edit_category', 'strip_category_transient_flusher' );
156
-add_action( 'save_post',     'strip_category_transient_flusher' );
155
+add_action('edit_category', 'strip_category_transient_flusher');
156
+add_action('save_post', 'strip_category_transient_flusher');
157 157
 
158
-if ( ! function_exists( 'strip_the_custom_logo' ) ) :
158
+if ( ! function_exists('strip_the_custom_logo')) :
159 159
 	/**
160 160
 	 * Displays the optional custom logo.
161 161
 	 *
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 * @since strip 1.0
165 165
 	 */
166 166
 	function strip_the_custom_logo() {
167
-		if ( function_exists( 'the_custom_logo' ) ) {
167
+		if (function_exists('the_custom_logo')) {
168 168
 			the_custom_logo();
169 169
 		}
170 170
 	}
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
  * @param string $taxonomy       Optional. Taxonomy, if $in_same_term is true. Default 'category'.
181 181
  * @return mixed Array containing the boundary post object if successful, null otherwise.
182 182
  */
183
-function get_comic_boundary_post( $in_same_term = false, $start = true, $taxonomy = 'category' ) {
183
+function get_comic_boundary_post($in_same_term = false, $start = true, $taxonomy = 'category') {
184 184
 	global $post;
185
-	setup_postdata( $post );
186
-	if ( ! taxonomy_exists( $taxonomy ) ) {
185
+	setup_postdata($post);
186
+	if ( ! taxonomy_exists($taxonomy)) {
187 187
 		return null;
188 188
 	}
189 189
 
@@ -197,37 +197,37 @@  discard block
 block discarded – undo
197 197
 	);
198 198
 
199 199
 	$term_array = array();
200
-	if ( $in_same_term ) {
201
-		if ( $in_same_term ) {
202
-			$term_array = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
200
+	if ($in_same_term) {
201
+		if ($in_same_term) {
202
+			$term_array = wp_get_object_terms($post->ID, $taxonomy, array('fields' => 'ids'));
203 203
 		}
204
-		$query_args['tax_query'] = array( array(
204
+		$query_args['tax_query'] = array(array(
205 205
 			'taxonomy' => $taxonomy,
206
-			'terms' => array_merge( $term_array ),
206
+			'terms' => array_merge($term_array),
207 207
 		),
208 208
 		);
209 209
 	}
210 210
 
211 211
 	$get_posts = new wp_query;
212
-	return $get_posts -> query( $query_args );
212
+	return $get_posts -> query($query_args);
213 213
 }
214 214
 
215 215
 /**
216 216
  * Link to the first comic post in same term
217 217
  */
218 218
 function first_comic_link() {
219
-	$first = get_comic_boundary_post( true, true, 'story' );
220
-	apply_filters( 'the_title', $first[0]->post_title );
219
+	$first = get_comic_boundary_post(true, true, 'story');
220
+	apply_filters('the_title', $first[0]->post_title);
221 221
 
222
-	echo esc_html( get_permalink( $first[0]->ID ) );
222
+	echo esc_html(get_permalink($first[0]->ID));
223 223
 }
224 224
 
225 225
 /**
226 226
  * Link to the last comic post in same term
227 227
  */
228 228
 function last_comic_link() {
229
-	$last = get_comic_boundary_post( true, false, 'story' );
230
-	apply_filters( 'the_title', $last[0]->post_title );
229
+	$last = get_comic_boundary_post(true, false, 'story');
230
+	apply_filters('the_title', $last[0]->post_title);
231 231
 
232
-	echo esc_html( get_permalink( $last[0]->ID ) );
232
+	echo esc_html(get_permalink($last[0]->ID));
233 233
 }
Please login to merge, or discard this patch.
archive.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -13,70 +13,70 @@  discard block
 block discarded – undo
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,7 +84,7 @@  discard block
 block discarded – undo
84 84
 					<?php
85 85
 						// Show an optional term description.
86 86
 						$term_description = term_description();
87
-					if ( ! empty( $term_description ) ) :
87
+					if ( ! empty($term_description)) :
88 88
 						echo '<div class="taxonomy-description">';
89 89
 						echo term_description();
90 90
 						echo '</div>';
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 			</header><!-- .page-header -->
95 95
 
96 96
 			<?php /* Start the Loop */ ?>
97
-			<?php while ( have_posts() ) : the_post(); ?>
97
+			<?php while (have_posts()) : the_post(); ?>
98 98
 
99 99
 				<?php
100 100
 
@@ -103,20 +103,20 @@  discard block
 block discarded – undo
103 103
 					 * If you want to overload this in a child theme then include a file
104 104
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
105 105
 					 */
106
-					get_template_part( 'content', get_post_format() );
106
+					get_template_part('content', get_post_format());
107 107
 				?>
108 108
 
109 109
 			<?php endwhile; ?>
110 110
 
111
-			<?php the_posts_pagination( array(
112
-				'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
113
-				'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
114
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
115
-			) ); ?>
111
+			<?php the_posts_pagination(array(
112
+				'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
113
+				'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
114
+				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
115
+			)); ?>
116 116
 
117 117
 		<?php else : ?>
118 118
 
119
-			<?php get_template_part( 'no-results', 'archive' ); ?>
119
+			<?php get_template_part('no-results', 'archive'); ?>
120 120
 
121 121
 		<?php endif; ?>
122 122
 
Please login to merge, or discard this patch.
search.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,39 +11,39 @@
 block discarded – undo
11 11
 	<section id="primary"
12 12
 	<main id="content" role="main">
13 13
 
14
-		<?php if ( have_posts() ) : ?>
14
+		<?php if (have_posts()) : ?>
15 15
 
16 16
 			<header class="page-header">
17
-				<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
17
+				<h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'strip'), '<span>' . get_search_query() . '</span>'); ?></h1>
18 18
 			</header><!-- .page-header -->
19 19
 
20 20
 			<?php /* Start the Loop */ ?>
21
-			<?php while ( have_posts() ) :
21
+			<?php while (have_posts()) :
22 22
 				the_post();
23 23
 
24
-				get_template_part( 'content', get_post_format() );
24
+				get_template_part('content', get_post_format());
25 25
 
26 26
 			endwhile;
27 27
 
28
-			the_posts_pagination( array(
29
-				'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
30
-				'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
31
-				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
32
-			) );
28
+			the_posts_pagination(array(
29
+				'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
30
+				'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
31
+				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
32
+			));
33 33
 
34 34
 		else : ?>
35 35
 
36 36
 <article id="post-0" class="no-results">
37 37
 	<header class="page-header">
38
-		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>
38
+		<h1 class="page-title"><?php esc_html_e('Nothing Found', 'strip'); ?></h1>
39 39
 	</header><!-- .page-header -->
40 40
 <div class="entry-content">
41
-			<p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.
42
-				Would you like to search in the', 'strip' ); ?>
41
+			<p> <?php esc_html_e('Bummer, I cannot find what you are looking for.
42
+				Would you like to search in the', 'strip'); ?>
43 43
 
44
-			<a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
44
+			<a href="<?php echo esc_url(get_post_type_archive_link('comic')); ?>">Comics Archive</a>? Great stuff there.</p>
45 45
 
46
-			<p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>
46
+			<p><?php esc_html_e('Or do you prefer trying another search with different keywords?', 'strip'); ?></p>
47 47
 
48 48
 			<?php get_search_form(); ?>
49 49
 
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 	<div id="primary" class="content-area">
18 18
 		<div id="content" class="site-content" role="main">
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 	<?php /* Start the Loop */ ?>
23
-			<?php while ( have_posts() ) :
23
+			<?php while (have_posts()) :
24 24
 				the_post(); ?>
25 25
 
26 26
 				<?php
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
 				* If you want to override this in a child theme, then include a file
32 32
 				* called content-___.php (where ___ is the Post Format name) and that will be used instead.
33 33
 				*/
34
-					get_template_part( 'content', get_post_format() );
34
+					get_template_part('content', get_post_format());
35 35
 				?>
36 36
 
37 37
 			<?php endwhile; ?>
38 38
 
39 39
 			<div class="wrap">
40
-					<?php the_posts_pagination( array(
41
-						'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
42
-						'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
43
-						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
44
-					) ); ?>
40
+					<?php the_posts_pagination(array(
41
+						'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
42
+						'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
43
+						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
44
+					)); ?>
45 45
 	</div>
46 46
 
47 47
 		<?php else : ?>
48 48
 
49
-			<?php get_template_part( 'no-results', 'index' ); ?>
49
+			<?php get_template_part('no-results', 'index'); ?>
50 50
 
51 51
 		<?php endif; ?>
52 52
 
Please login to merge, or discard this patch.