Completed
Push — master ( 3fc6af...399a22 )
by SILENT
02:18
created
archive.php 2 patches
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,22 +103,22 @@  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 111
 			<div class="wrap">
112
-					<?php the_posts_pagination( array(
113
-						'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
114
-						'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
115
-						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
116
-					) ); ?>
112
+					<?php the_posts_pagination(array(
113
+						'prev_text' => _x('&#8592;', 'Previous page link', 'strip') . '<span class="screen-reader-text">' . __('Previous page', 'strip') . '</span>',
114
+						'next_text' => '<span class="screen-reader-text">' . __('Next page', 'strip') . '</span>' . _x('&#8594;', 'Next post link', 'strip'),
115
+						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'strip') . ' </span>',
116
+					)); ?>
117 117
 	</div>
118 118
 
119 119
 		<?php else : ?>
120 120
 
121
-			<?php get_template_part( 'no-results', 'archive' ); ?>
121
+			<?php get_template_part('no-results', 'archive'); ?>
122 122
 
123 123
 		<?php endif; ?>
124 124
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,10 @@  discard block
 block discarded – undo
75 75
 						elseif ( ! 'comic' === get_post_type() ) :
76 76
 							esc_html_e( 'Comics', 'strip' );
77 77
 
78
-							else :
78
+							else {
79
+								:
79 80
 								esc_html_e( 'Archives', 'strip' );
81
+							}
80 82
 
81 83
 							endif;
82 84
 						?>
@@ -116,9 +118,12 @@  discard block
 block discarded – undo
116 118
 					) ); ?>
117 119
 	</div>
118 120
 
119
-		<?php else : ?>
121
+		<?php else {
122
+	: ?>
120 123
 
121
-			<?php get_template_part( 'no-results', 'archive' ); ?>
124
+			<?php get_template_part( 'no-results', 'archive' );
125
+}
126
+?>
122 127
 
123 128
 		<?php endif; ?>
124 129
 
Please login to merge, or discard this patch.