Passed
Push — master ( 1cbafb...ea49ac )
by SILENT
02:42
created
single-comic.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  * @subpackage Strip
7 7
  */
8 8
 
9
-if ( post_type_exists( 'comic' ) ) {
10
-	get_header( 'lite' );
9
+if (post_type_exists('comic')) {
10
+	get_header('lite');
11 11
 } else {
12 12
 	get_header();
13 13
 }
@@ -18,25 +18,25 @@  discard block
 block discarded – undo
18 18
 
19 19
 	<?php
20 20
 	// Start the loop.
21
-	while ( have_posts() ) : the_post(); ?>
21
+	while (have_posts()) : the_post(); ?>
22 22
 
23 23
 			<div class="entry-comic">
24 24
 
25
-				<?php get_template_part( 'content-comic' ); ?>
25
+				<?php get_template_part('content-comic'); ?>
26 26
 
27 27
 					<div class="wrap clear">
28 28
 
29
-						<h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1>
29
+						<h1 class="screen-reader-text"><?php esc_html_e('Post navigation', 'strip'); ?></h1>
30 30
 
31 31
 								<div class="navigation-comic">
32
-								<nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav>
33
-								<nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), true, '', 'story' ); ?></nav>
34
-								<nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav>
35
-								<nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav>
36
-								<nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav>
32
+								<nav class="nav-first"><a href="<?php echo esc_url(first_comic_link()); ?>"><?php esc_html_e('Start', 'strip'); ?></a></nav>
33
+								<nav class="nav-previous"><?php previous_post_link('%link', __('Previous', 'strip'), true, '', 'story'); ?></nav>
34
+								<nav class="nav-title"><?php the_title('<h4 class="series-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>'); ?></nav>
35
+								<nav class="nav-next"><?php next_post_link('%link', __('Next', 'strip'), true, '', 'story'); ?></nav>
36
+								<nav class="nav-last"><a href="<?php echo esc_url(last_comic_link()); ?>"><?php esc_html_e('Last', 'strip'); ?></a></nav>
37 37
 							</div><!-- .wrap -->
38 38
 
39
-						<?php set_transient( 'story', $comic );?>
39
+						<?php set_transient('story', $comic); ?>
40 40
 
41 41
 			</div><!-- #entry-comic -->
42 42
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 		<?php
46 46
 			// If comments are open or we have at least one comment, load up the comment template.
47
-		if ( comments_open() || '0' !== get_comments_number() ) :
47
+		if (comments_open() || '0' !== get_comments_number()) :
48 48
 			comments_template();
49 49
 		endif;
50 50
 
@@ -52,4 +52,4 @@  discard block
 block discarded – undo
52 52
 
53 53
 		</main><!-- #content -->
54 54
 	</section><!-- #primary -->
55
-<?php get_footer( 'lite' ); ?>
55
+<?php get_footer('lite'); ?>
Please login to merge, or discard this patch.
archive.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@  discard block
 block discarded – undo
14 14
 	<main id="main" class="site-main" role="main">
15 15
 		<div class="wrap">
16 16
 	<?php
17
-	if ( have_posts() ) : ?>
17
+	if (have_posts()) : ?>
18 18
 
19 19
 		<header class="page-header">
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
 			} else {
27
-				the_archive_title( '<h1 class="page-title">', '</h1>' );
28
-				the_archive_description( '<div class="taxonomy-description">', '</div>' );
27
+				the_archive_title('<h1 class="page-title">', '</h1>');
28
+				the_archive_description('<div class="taxonomy-description">', '</div>');
29 29
 			}
30 30
 			?>
31 31
 		</h1>
32 32
 			</header><!-- .page-header -->
33 33
 
34 34
 			<?php /* Start the Loop */ ?>
35
-			<?php while ( have_posts() ) : the_post(); ?>
35
+			<?php while (have_posts()) : the_post(); ?>
36 36
 
37 37
 				<?php
38 38
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 					 * If you want to overload this in a child theme then include a file
42 42
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
43 43
 					 */
44
-					get_template_part( 'content', get_post_format() );
44
+					get_template_part('content', get_post_format());
45 45
 				?>
46 46
 
47 47
 			<?php endwhile; ?>
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 		<?php else : ?>
52 52
 
53
-			<?php get_template_part( 'no-results', 'archive' ); ?>
53
+			<?php get_template_part('no-results', 'archive'); ?>
54 54
 
55 55
 		<?php endif; ?>
56 56
 
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,15 +11,15 @@  discard block
 block discarded – undo
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">
@@ -35,18 +35,18 @@  discard block
 block discarded – undo
35 35
 	<header id="branding" class="site-header" role="banner">
36 36
 
37 37
 		<div class="site-branding">
38
-			<?php get_template_part( '/assets/inline-logo.svg' ); // remove or replace by your own custom svg logo. ?>
39
-			<?php get_template_part( 'template-parts/header/header', 'image' ); ?>
38
+			<?php get_template_part('/assets/inline-logo.svg'); // remove or replace by your own custom svg logo. ?>
39
+			<?php get_template_part('template-parts/header/header', 'image'); ?>
40 40
 			<?php strip_the_custom_logo(); ?>
41
-				<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>
41
+				<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>
42 42
 	</div><!-- .site-branding -->
43 43
 
44
-		<?php if ( has_nav_menu( 'primary' ) ) : ?>
44
+		<?php if (has_nav_menu('primary')) : ?>
45 45
 		<nav id="site-navigation" class="main-navigation clear" role="navigation">
46
-			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e( 'discover', 'strip' ); ?></button>
47
-			<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'strip' ); ?></a></div>
46
+			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e('discover', 'strip'); ?></button>
47
+			<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e('Skip to content', 'strip'); ?></a></div>
48 48
 
49
-			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'wrap' ) ); ?>
49
+			<?php wp_nav_menu(array('theme_location' => 'primary', 'container_class' => 'wrap')); ?>
50 50
 		</nav><!-- #site-navigation -->
51 51
 		<?php endif; ?>
52 52
 
Please login to merge, or discard this patch.
content-gallery.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@  discard block
 block discarded – undo
10 10
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
11 11
 	<div class="entry-wrap wrap clear">
12 12
 
13
-<?php if ( '' !== get_the_post_thumbnail() ) :
14
-	the_post_thumbnail( 'strip-featured-image' );
13
+<?php if ('' !== get_the_post_thumbnail()) :
14
+	the_post_thumbnail('strip-featured-image');
15 15
 endif; ?>
16 16
 
17 17
 		<header class="entry-header">
18 18
 	<?php
19
-				$categories_list = get_the_category_list( __( ', ', 'strip' ) );
19
+				$categories_list = get_the_category_list(__(', ', 'strip'));
20 20
 
21
-	if ( ! is_single() ) :
22
-		the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
21
+	if ( ! is_single()) :
22
+		the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
23 23
 	else :
24
-					the_title( '<h1 class="entry-title">', '</h1>' );
24
+					the_title('<h1 class="entry-title">', '</h1>');
25 25
 	endif; ?>
26 26
 
27 27
 		<div class="entry-content clear">
28
-	<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
28
+	<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'strip')); ?>
29 29
 
30 30
 		</div><!-- .entry-content -->
31 31
 		</header><!-- .entry-header -->
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
 		<footer class="entry-meta">
34 34
 	<?php strip_entry_meta(); ?>
35 35
 
36
-			<span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'gallery' ) ); ?></a></span>
36
+			<span class="entry-format"><a href="<?php echo esc_url(get_post_format_link('gallery')); ?>" title="<?php echo esc_attr(sprintf(__('All %s posts', 'strip'), get_post_format_string('gallery'))); ?>"><?php echo esc_html(get_post_format_string('gallery')); ?></a></span>
37 37
 
38
-	<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
38
+	<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
39 39
 		</footer><!-- .entry-meta -->
40 40
 
41
-	<?php if ( has_excerpt() ) : ?>
41
+	<?php if (has_excerpt()) : ?>
42 42
 		<div class="entry-summary">
43
-	<?php do_action( 'strip_formatted_posts_excerpt_before' ); ?>
43
+	<?php do_action('strip_formatted_posts_excerpt_before'); ?>
44 44
 	<?php the_excerpt(); ?>
45
-	<?php do_action( 'strip_formatted_posts_excerpt_after' ); ?>
45
+	<?php do_action('strip_formatted_posts_excerpt_after'); ?>
46 46
 		</div><!-- .entry-caption -->
47 47
 	<?php endif; ?>
48 48
 
Please login to merge, or discard this patch.
content-page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@
 block discarded – undo
11 11
 <article id="post-<?php the_ID(); ?>" >
12 12
 	<div class="wrap">
13 13
 	<?php
14
-	if ( '' !== get_the_post_thumbnail() ) :
15
-		the_post_thumbnail( 'strip-featured-image' );
14
+	if ('' !== get_the_post_thumbnail()) :
15
+		the_post_thumbnail('strip-featured-image');
16 16
 	endif;
17 17
 	?>
18 18
 		<header class="entry-header">
19
-	<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
19
+	<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
20 20
 		</header><!-- .entry-header -->
21 21
 
22 22
 	<footer class="entry-meta">
23 23
 	<?php strip_entry_meta(); ?>
24 24
 
25
-	<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
25
+	<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
26 26
 		</footer><!-- .entry-meta -->
27 27
 
28 28
 		<div class="entry-content clear">
Please login to merge, or discard this patch.
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'              => 'ASC',
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( 'strip-medium' );
59
+					the_post_thumbnail('strip-medium');
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( 'strip-medium', 'url' ) );
69
+	echo esc_html(get_first_image('strip-medium', 'url'));
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.
content-comic.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
 ?>
10 10
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
11 11
 	<div class="entry-wrap wrap clear">
12
-		<?php if ( '' !== get_the_post_thumbnail() ) : ?>
12
+		<?php if ('' !== get_the_post_thumbnail()) : ?>
13 13
 
14
-			<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">
15
-				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
14
+			<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">
15
+				<?php the_post_thumbnail('strip-featured-image'); ?>
16 16
 			</a>
17 17
 			<?php endif; ?>
18 18
 
@@ -24,36 +24,36 @@  discard block
 block discarded – undo
24 24
 
25 25
 			<?php // calls each series by get_the_terms, custom taxonomy "story" instead of WP native category.
26 26
 
27
-			$terms = get_the_terms( $post->ID, 'story' );
27
+			$terms = get_the_terms($post->ID, 'story');
28 28
 
29
-			foreach ( $terms as $term ) {
29
+			foreach ($terms as $term) {
30 30
 				// The $term is an object, so we don't need to specify the $taxonomy.
31
-				$term_link = get_term_link( $term );
31
+				$term_link = get_term_link($term);
32 32
 				// If there was an error, continue to the next term.
33
-				if ( is_wp_error( $term_link ) ) {
33
+				if (is_wp_error($term_link)) {
34 34
 					continue;
35 35
 				}
36 36
 
37 37
 				// We successfully got a link. Print it out. ?>
38 38
 		<nav class="categories-links">
39
-				<?php printf( '<a href="%s" class="categories-links">%s</a>',
40
-					esc_url( $term_link ) ,
41
-					esc_html( $term->name )
39
+				<?php printf('<a href="%s" class="categories-links">%s</a>',
40
+					esc_url($term_link),
41
+					esc_html($term->name)
42 42
 				);
43 43
 			} ?>
44 44
 	  </nav>
45 45
 
46
-		<?php	edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' );
46
+		<?php	edit_post_link(__('Edit Comic', 'strip'), '<span class="edit-link">', '</span>');
47 47
 
48
-		if ( ! is_single() ) :
49
-			the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
48
+		if ( ! is_single()) :
49
+			the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
50 50
 			else :
51
-					the_title( '<h1 class="entry-title">', '</h1>' );
51
+					the_title('<h1 class="entry-title">', '</h1>');
52 52
 			endif; ?>
53 53
 
54 54
 	</header><!-- .entry-header -->
55 55
 
56
-	<?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
56
+	<?php if (is_search()) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
57 57
 
58 58
 		<div class="entry-summary">
59 59
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		<?php else : ?>
64 64
 
65 65
 	<div class="entry-comic">
66
-		<?php the_content( __( 'Continue watching <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
66
+		<?php the_content(__('Continue watching <span class="meta-nav">&rarr;</span>', 'strip')); ?>
67 67
 
68 68
 			<?php endif; ?>
69 69
 		</div><!-- .entry-content -->
Please login to merge, or discard this patch.
footer-lite.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 	<footer id="colophon" class="site-footer" role="contentinfo">
14 14
 
15 15
 	  <div class="site-info">
16
-				&copy; <span class="site-name"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> <?php
16
+				&copy; <span class="site-name"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span> <?php
17 17
 				$from_year = 2016;
18
-				$this_year = (int) date( 'Y' );
19
-				echo esc_html( $from_year . (($from_year !== $this_year) ? '-' . $this_year : '') );?>
18
+				$this_year = (int) date('Y');
19
+				echo esc_html($from_year . (($from_year !== $this_year) ? '-' . $this_year : '')); ?>
20 20
 				<span class="sep"> | </span>
21
-		<?php do_action( 'strip_credits' );
21
+		<?php do_action('strip_credits');
22 22
 					?>
23
-					<a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip', 'strip' ) ); ?>"><?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'strip' ), 'strip', 'SILENT COMICS' ); ?></a>
23
+					<a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip', 'strip')); ?>"><?php printf(esc_html__('Theme: %1$s by %2$s.', 'strip'), 'strip', 'SILENT COMICS'); ?></a>
24 24
 			</div><!-- .site-info -->
25 25
 		</footer><!-- #colophon -->
26 26
 	</div><!-- #page -->
Please login to merge, or discard this patch.
home 3.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'     => 9, // 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'              => 'ASC',
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( 'strip-medium' );
59
+					the_post_thumbnail('strip-medium');
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( 'strip-medium', 'url' ) );
69
+	echo esc_html(get_first_image('strip-medium', 'url'));
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.