Completed
Push — master ( 37508c...146e22 )
by SILENT
02:12
created
archive-story.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 		<div class="wrap">
18 18
 			<header class="entry-header">
19 19
 				<h3 class="taxonomy-description">
20
-					<?php printf( '<a href="%s" class="post-parent-title">%s</a>',
21
-						esc_url( get_post_type_archive_link( 'comic' ) ),
22
-						esc_html( get_the_title() )
20
+					<?php printf('<a href="%s" class="post-parent-title">%s</a>',
21
+						esc_url(get_post_type_archive_link('comic')),
22
+						esc_html(get_the_title())
23 23
 					); ?>
24 24
 					</a></h3>
25 25
 				<h1 class="page-title"><?php the_title(); ?></h1>
@@ -29,34 +29,34 @@  discard block
 block discarded – undo
29 29
 
30 30
 			<?php
31 31
 			// get the correct paged figure on a Custom Page That Isn’t Static Home Page.
32
-			$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?>
32
+			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
33 33
 
34 34
 
35 35
 		<?php
36 36
 
37 37
 					// Call and run loop in descending order.
38
-					$loop = new WP_Query( array(
38
+					$loop = new WP_Query(array(
39 39
 						'post_type'			     => 'comic',
40 40
 						'story'              => '', // add story term here if you want this template to only archive a specific story.
41 41
 						'posts_per_page'     => 12, // changes default Blog pages number "reading settings" set in dashboard.
42 42
 						'paged'              => $paged, // you absolutely need this.
43 43
 						'orderby'            => 'title', // order by title or date.
44 44
 						'order'              => 'DESC',
45
-					) );
45
+					));
46 46
 
47 47
 					// Start the loop.
48
-					if ( $loop->have_posts() ) :
49
-						while ( $loop->have_posts() ) :
48
+					if ($loop->have_posts()) :
49
+						while ($loop->have_posts()) :
50 50
 							$loop->the_post();
51 51
 			?>
52 52
 			<div class="three-column">
53
-				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ),the_title_attribute( 'echo=0' ) ); ?>"></a>
54
-				<?php if ( get_the_post_thumbnail() !== '' ) {
53
+				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"></a>
54
+				<?php if (get_the_post_thumbnail() !== '') {
55 55
 
56 56
 					echo '<a href="';
57 57
 					the_permalink();
58 58
 					echo '" class="thumbnail-wrapper">';
59
-					the_post_thumbnail( 'thumbnail' );
59
+					the_post_thumbnail('thumbnail');
60 60
 
61 61
 					echo '</a>';
62 62
 
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 	the_permalink();
67 67
 	echo '" class="thumbnail-wrapper">';
68 68
 	echo '<img src="';
69
-	echo esc_html( get_first_image() );
69
+	echo esc_html(get_first_image());
70 70
 	echo '" alt="" />';
71 71
 	echo '</a>';
72 72
 } ?>
73 73
 
74
-<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
74
+<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
75 75
 
76 76
 			</div><!-- .column -->
77 77
 			<?php endwhile; ?>
@@ -82,23 +82,23 @@  discard block
 block discarded – undo
82 82
 
83 83
 		<?php
84 84
 				$big = 999999999; // need an unlikely integer.
85
-				$translated = __( 'Page', 'strip' ); // supply translatable string.
85
+				$translated = __('Page', 'strip'); // supply translatable string.
86 86
 
87
-				echo wp_kses_post( paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/.
87
+				echo wp_kses_post(paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/.
88 88
 					array(
89
-					'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
89
+					'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
90 90
 					'format' => '?paged=%#%',
91
-					'current' => max( 1, get_query_var( 'paged', 1 ) ),
91
+					'current' => max(1, get_query_var('paged', 1)),
92 92
 					'total' => $loop->max_num_pages,
93 93
 					'before_page_number' => '<span class="screen-reader-text">' . $translated . ' </span>',
94
-					'prev_text' => esc_html__( 'Previous', 'strip' ), // If you want to change the previous link text.
95
-					'next_text' => esc_html__( 'Next', 'strip' ), // If you want to change the next link text.
94
+					'prev_text' => esc_html__('Previous', 'strip'), // If you want to change the previous link text.
95
+					'next_text' => esc_html__('Next', 'strip'), // If you want to change the next link text.
96 96
 					'type' => 'title', // How you want the return value to be formatted.
97 97
 					'add_fragment' => '#result', // Your anchor.
98
-				) ) );
98
+				) ));
99 99
 
100 100
 		else :
101
-			get_template_part( 'no-results', 'archive-comic' );
101
+			get_template_part('no-results', 'archive-comic');
102 102
 		endif; ?>
103 103
 
104 104
 				</div><!-- .wrap -->
Please login to merge, or discard this patch.