Passed
Push — master ( 084b3e...0d992d )
by SILENT
01:43
created
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 2 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,8 +99,10 @@
 block discarded – undo
99 99
 					'add_fragment' => '#result', // Your anchor.
100 100
 				) ) );
101 101
 
102
-		else :
102
+		else {
103
+			:
103 104
 			get_template_part( 'no-results', 'archive-comic' );
105
+		}
104 106
 		endif; ?>
105 107
 
106 108
 				</div><!-- .wrap -->
Please login to merge, or discard this patch.
content.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@  discard block
 block discarded – undo
10 10
 
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 	<div class="wrap">
13
-			<?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
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' ); ?>
13
+			<?php if ('' !== get_the_post_thumbnail() && ! is_single()) : ?>
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 else : ?>
18
-				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
18
+				<?php the_post_thumbnail('strip-featured-image'); ?>
19 19
 			<?php endif; ?>
20 20
 
21 21
 		<header class="entry-header">
22 22
 			<?php
23
-			$categories_list = get_the_category_list( __( ', ', 'strip' ) );
24
-			if ( $categories_list && strip_categorized_blog() ) {
23
+			$categories_list = get_the_category_list(__(', ', 'strip'));
24
+			if ($categories_list && strip_categorized_blog()) {
25 25
 				echo '<span class="categories-links">' . $categories_list . '</span>';
26 26
 			}
27
-			if ( ! is_single() ) :
28
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			if ( ! is_single()) :
28
+				the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
29 29
 			else :
30
-					the_title( '<h1 class="entry-title">', '</h1>' );
30
+					the_title('<h1 class="entry-title">', '</h1>');
31 31
 			endif;
32 32
 			?>
33 33
 		</header><!-- .entry-header -->
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
 		<footer class="entry-meta">
36 36
 			<?php strip_entry_meta(); ?>
37 37
 
38
-			<?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?>
39
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span>
38
+			<?php if ( ! post_password_required() && (comments_open() || '0' !== get_comments_number())) : ?>
39
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'strip'), __('1 Comment', 'strip'), __('% Comments', 'strip')); ?></span>
40 40
 			<?php endif; ?>
41 41
 
42
-			<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
42
+			<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
43 43
 		</footer><!-- .entry-meta -->
44 44
 
45
-		<?php if ( is_search() ) : // Only display Excerpts for Search. ?>
45
+		<?php if (is_search()) : // Only display Excerpts for Search. ?>
46 46
 		<div class="entry-summary">
47 47
 			<?php the_excerpt(); ?>
48 48
 		</div><!-- .entry-summary -->
@@ -51,16 +51,16 @@  discard block
 block discarded – undo
51 51
 			<?php
52 52
 			the_content(sprintf(
53 53
 				/* translators: %s: Name of current post. */
54
-				esc_html( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ),
55
-				get_the_title( '<span class="screen-reader-text">"', '"</span>', false )
54
+				esc_html(__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'strip'), array('span' => array('class' => array()))),
55
+				get_the_title('<span class="screen-reader-text">"', '"</span>', false)
56 56
 			));
57 57
 
58 58
 			wp_link_pages(array(
59
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>',
59
+				'before'      => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'strip') . '</span>',
60 60
 				'after'       => '</div>',
61 61
 				'link_before' => '<span>',
62 62
 				'link_after'  => '</span>',
63
-				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>%',
63
+				'pagelink'    => '<span class="screen-reader-text">' . __('Page', 'strip') . ' </span>%',
64 64
 				'separator'   => '<span class="screen-reader-text">, </span>',
65 65
 			));
66 66
 		?>
Please login to merge, or discard this patch.
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,11 @@  discard block
 block discarded – undo
14 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 15
 				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
16 16
 			</a>
17
-			<?php else : ?>
18
-				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
17
+			<?php else {
18
+	: ?>
19
+				<?php the_post_thumbnail( 'strip-featured-image' );
20
+}
21
+?>
19 22
 			<?php endif; ?>
20 23
 
21 24
 		<header class="entry-header">
@@ -26,8 +29,10 @@  discard block
 block discarded – undo
26 29
 			}
27 30
 			if ( ! is_single() ) :
28 31
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
29
-			else :
32
+			else {
33
+				:
30 34
 					the_title( '<h1 class="entry-title">', '</h1>' );
35
+			}
31 36
 			endif;
32 37
 			?>
33 38
 		</header><!-- .entry-header -->
@@ -46,7 +51,8 @@  discard block
 block discarded – undo
46 51
 		<div class="entry-summary">
47 52
 			<?php the_excerpt(); ?>
48 53
 		</div><!-- .entry-summary -->
49
-		<?php else : ?>
54
+		<?php else {
55
+	: ?>
50 56
 		<div class="entry-content">
51 57
 			<?php
52 58
 			the_content(sprintf(
@@ -54,6 +60,7 @@  discard block
 block discarded – undo
54 60
 				esc_html( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ),
55 61
 				get_the_title( '<span class="screen-reader-text">"', '"</span>', false )
56 62
 			));
63
+}
57 64
 
58 65
 			wp_link_pages(array(
59 66
 				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>',
Please login to merge, or discard this patch.
inc/author-box.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,22 +20,22 @@
 block discarded – undo
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', 240 );
23
+		$author_bio_avatar_size = apply_filters('strip_author_bio_avatar_size', 240);
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( '&#9998;', 'strip' ); ?></span> <?php echo get_the_author(); ?></h2>
32
+		<h2 class="author-title"><span class="author-heading"><?php esc_html_e('&#9998;', '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 -->
Please login to merge, or discard this patch.
inc/customizer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@
 block discarded – undo
11 11
 	 *
12 12
 	 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
13 13
 	 */
14
-function strip_customize_register( $wp_customize ) {
15
-	$wp_customize->get_setting( 'blogname' )        ->transport = 'postMessage';
16
-	$wp_customize->get_setting( 'blogdescription' ) ->transport = 'postMessage';
17
-	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
18
-	$wp_customize->get_setting( 'background_image' )->transport = 'postMessage';
19
-	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'content_title_color', array(
20
-		'label'   => esc_html_x( 'Content Title Color', 'admin', 'strip' ),
14
+function strip_customize_register($wp_customize) {
15
+	$wp_customize->get_setting('blogname')        ->transport = 'postMessage';
16
+	$wp_customize->get_setting('blogdescription') ->transport = 'postMessage';
17
+	$wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
18
+	$wp_customize->get_setting('background_image')->transport = 'postMessage';
19
+	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'content_title_color', array(
20
+		'label'   => esc_html_x('Content Title Color', 'admin', 'strip'),
21 21
 		'section' => 'colors',
22
-	) ) );
22
+	)));
23 23
 }
24
-	add_action( 'customize_register', 'strip_customize_register' );
24
+	add_action('customize_register', 'strip_customize_register');
25 25
 
26 26
 	/**
27 27
 	 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
28 28
 	 */
29 29
 function strip_customize_preview_js() {
30
-	wp_enqueue_script( 'strip_customizer', get_template_directory_uri() . '/js/min/customizer-min.js', array( 'customize-preview' ), '20130508', true );
30
+	wp_enqueue_script('strip_customizer', get_template_directory_uri() . '/js/min/customizer-min.js', array('customize-preview'), '20130508', true);
31 31
 }
32
-	add_action( 'customize_preview_init', 'strip_customize_preview_js' );
32
+	add_action('customize_preview_init', 'strip_customize_preview_js');
Please login to merge, or discard this patch.
inc/jetpack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 		'posts_per_page' => false,
24 24
 	));
25 25
 }
26
-add_action( 'after_setup_theme', 'strip_infinite_scroll_setup' );
26
+add_action('after_setup_theme', 'strip_infinite_scroll_setup');
27 27
 
28 28
 /**
29 29
  * Enables Jetpack's Infinite Scroll for home (blog), disables it in WooCommerce product archives
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
  * https://wordpress.org/support/topic/suppress-infinite-blog-with-woocommerce
33 33
  */
34 34
 function strip_jetpack_infinite_scroll_supported() {
35
-	return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search()  && ! is_post_type_archive( 'comic' ) );
35
+	return current_theme_supports('infinite-scroll') && (is_admin() || is_home() || is_search() && ! is_post_type_archive('comic'));
36 36
 }
37
-add_filter( 'infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported' );
37
+add_filter('infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported');
Please login to merge, or discard this patch.
footer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,28 +14,28 @@  discard block
 block discarded – undo
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
 block discarded – undo
44 44
 			</div><!-- .entry-wrap -->
45 45
 
46 46
 		<div class="site-info">
47
-			&copy; <span class="site-name"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> <?php
47
+			&copy; <span class="site-name"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span> <?php
48 48
 			$from_year = 2016;
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', 'SILENT COMICS' ); ?></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', 'SILENT COMICS'); ?></a>
54 54
 		</div><!-- .site-info -->
55 55
 	</footer><!-- #colophon -->
56 56
 </div><!-- #page -->
Please login to merge, or discard this patch.
home 4.php 2 patches
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="four-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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,8 +99,10 @@
 block discarded – undo
99 99
 					'add_fragment' => '#result', // Your anchor.
100 100
 				) ) );
101 101
 
102
-		else :
102
+		else {
103
+			:
103 104
 			get_template_part( 'no-results', 'archive-comic' );
105
+		}
104 106
 		endif; ?>
105 107
 
106 108
 				</div><!-- .wrap -->
Please login to merge, or discard this patch.
assets/admin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,9 +96,9 @@
 block discarded – undo
96 96
 function strip_custom_dashboard_widgets() {
97 97
 	wp_add_dashboard_widget( 'strip_rss_dashboard_widget', __( 'SILENT COMICS blog', 'strip' ), 'strip_rss_dashboard_widget' );
98 98
 	/**
99
-	* Be sure to drop any other created Dashboard Widgets.
100
-	* in this function and they will all load.
101
-	*/
99
+	 * Be sure to drop any other created Dashboard Widgets.
100
+	 * in this function and they will all load.
101
+	 */
102 102
 }
103 103
 // removing the dashboard widgets.
104 104
 add_action( 'wp_dashboard_setup', 'disable_default_dashboard_widgets' );
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -25,20 +25,20 @@  discard block
 block discarded – undo
25 25
  */
26 26
 function disable_default_dashboard_widgets() {
27 27
 	global $wp_meta_boxes;
28
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity'] );        // Activity Widget.
29
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] ); // Comments Widget.
30
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'] );  // Incoming Links Widget.
31
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] );         // Plugins Widget.
28
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); // Activity Widget.
29
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Comments Widget.
30
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links Widget.
31
+	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins Widget.
32 32
 
33
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );       // Quick Press Widget.
34
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts'] );     // Recent Drafts Widget.
35
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] );           // WordPress related feed.
36
-	unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'] );         //
33
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press Widget.
34
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts Widget.
35
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress related feed.
36
+	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); //
37 37
 
38 38
 	// remove plugin dashboard boxes
39
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget'] );           // Yoast's SEO Plugin Widget.
40
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard'] );        // Gravity Forms Plugin Widget.
41
-	unset( $wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now'] );   // bbPress Plugin Widget.
39
+	unset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']); // Yoast's SEO Plugin Widget.
40
+	unset($wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard']); // Gravity Forms Plugin Widget.
41
+	unset($wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now']); // bbPress Plugin Widget.
42 42
 
43 43
 	/*
44 44
 	Have more plugin widgets you'd like to remove?
@@ -61,30 +61,30 @@  discard block
 block discarded – undo
61 61
  * RSS Dasboars Widget
62 62
  */
63 63
 function strip_rss_dashboard_widget() {
64
-	if ( function_exists( 'fetch_feed' ) ) {
65
-		$feed = fetch_feed( 'https://silentcomics.com/feed.xml' );// specify the source feed.
66
-		if ( is_wp_error( $feed ) ) {
64
+	if (function_exists('fetch_feed')) {
65
+		$feed = fetch_feed('https://silentcomics.com/feed.xml'); // specify the source feed.
66
+		if (is_wp_error($feed)) {
67 67
 			return;
68 68
 		}
69
-			$limit = $feed->get_item_quantity( 3 );                        // specify number of items.
70
-			$items = $feed->get_items( 0, $limit );                        // create an array of items.
69
+			$limit = $feed->get_item_quantity(3); // specify number of items.
70
+			$items = $feed->get_items(0, $limit); // create an array of items.
71 71
 	}
72
-	if ( 0 ) { echo '<div>The RSS Feed is either empty or unavailable.</div>'; // fallback message.
72
+	if (0) { echo '<div>The RSS Feed is either empty or unavailable.</div>'; // fallback message.
73 73
 		return;
74 74
 	}
75
-	foreach ( $items as $item ) { ?>
75
+	foreach ($items as $item) { ?>
76 76
 
77 77
 			<h4 style="margin-bottom: 1em; max-width: 384px;">
78
-				<a href="<?php echo esc_url( $item->get_permalink() ); ?>" title="" target="_blank">
79
-					<?php echo esc_attr( $item->get_title() ); ?>
78
+				<a href="<?php echo esc_url($item->get_permalink()); ?>" title="" target="_blank">
79
+					<?php echo esc_attr($item->get_title()); ?>
80 80
 					<br>
81 81
 				</a>
82 82
 			</h4>
83 83
 
84 84
 			<p style="margin-top: 1.2em;
85 85
 					  #strip_rss_dashboard_widget .postbox.postbox-container { width: 12px; }">
86
-						<?php echo esc_html( mysql2date( __( 'j F Y @ g:i a', 'strip' ), $item->get_date( 'Y-m-d H:i:s' ) ) ); ?>
87
-			<?php echo wp_kses_post( substr( $item->get_description(), 0, 742 ) ); ?>
86
+						<?php echo esc_html(mysql2date(__('j F Y @ g:i a', 'strip'), $item->get_date('Y-m-d H:i:s'))); ?>
87
+			<?php echo wp_kses_post(substr($item->get_description(), 0, 742)); ?>
88 88
 			</p>
89 89
 			<?php
90 90
 	}
@@ -94,16 +94,16 @@  discard block
 block discarded – undo
94 94
  * Calling all custom dashboard widgets.
95 95
  */
96 96
 function strip_custom_dashboard_widgets() {
97
-	wp_add_dashboard_widget( 'strip_rss_dashboard_widget', __( 'SILENT COMICS blog', 'strip' ), 'strip_rss_dashboard_widget' );
97
+	wp_add_dashboard_widget('strip_rss_dashboard_widget', __('SILENT COMICS blog', 'strip'), 'strip_rss_dashboard_widget');
98 98
 	/**
99 99
 	* Be sure to drop any other created Dashboard Widgets.
100 100
 	* in this function and they will all load.
101 101
 	*/
102 102
 }
103 103
 // removing the dashboard widgets.
104
-add_action( 'wp_dashboard_setup', 'disable_default_dashboard_widgets' );
104
+add_action('wp_dashboard_setup', 'disable_default_dashboard_widgets');
105 105
 // adding any custom widgets.
106
-add_action( 'wp_dashboard_setup', 'strip_custom_dashboard_widgets' );
106
+add_action('wp_dashboard_setup', 'strip_custom_dashboard_widgets');
107 107
 
108 108
 
109 109
 /************* CUSTOM LOGIN PAGE *****************/
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
  * See http://codex.wordpress.org/Plugin_API/Action_Reference/login_enqueue_scripts.
115 115
  */
116 116
 function strip_login_css() {
117
-	 wp_enqueue_style( 'strip_login_css', get_template_directory_uri() . '/assets/css/login.css', false );
117
+	 wp_enqueue_style('strip_login_css', get_template_directory_uri() . '/assets/css/login.css', false);
118 118
 
119 119
 	// Enqueue custom font to the login form.
120
-	wp_enqueue_style( 'strip_inconsolata_css', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null );
120
+	wp_enqueue_style('strip_inconsolata_css', get_template_directory_uri() . '/assets/fonts/inconsolata.css', array(), null);
121 121
 }
122 122
 
123 123
 /**
@@ -134,12 +134,12 @@  discard block
 block discarded – undo
134 134
 	 * @return blog title.
135 135
 	 */
136 136
 function strip_login_title() {
137
-	return get_option( 'blogname' ); }
137
+	return get_option('blogname'); }
138 138
 
139 139
 // calling only on the login page.
140
-add_action( 'login_enqueue_scripts', 'strip_login_css', 10 );
141
-add_filter( 'login_headerurl', 'strip_login_url' );
142
-add_filter( 'login_headertext', 'strip_login_title' );
140
+add_action('login_enqueue_scripts', 'strip_login_css', 10);
141
+add_filter('login_headerurl', 'strip_login_url');
142
+add_filter('login_headertext', 'strip_login_title');
143 143
 
144 144
 /************* CUSTOMIZE ADMIN *******************/
145 145
 
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
  */
156 156
 function strip_custom_admin_footer() {
157 157
 	?>
158
-	<span id="footer-thankyou"><a href="<?php echo esc_url( __( 'https://silent-comics.com/', 'strip' ) ); ?>"><?php printf( esc_html__( 'Developed by %s', 'strip' ), 'Silent Comics' ); ?></a>
158
+	<span id="footer-thankyou"><a href="<?php echo esc_url(__('https://silent-comics.com/', 'strip')); ?>"><?php printf(esc_html__('Developed by %s', 'strip'), 'Silent Comics'); ?></a>
159 159
 			<span class="sep"> | </span>
160
-			<a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip/', 'strip' ) ); ?>"><?php printf( esc_html__( 'Contribute on %s', 'strip' ), 'GitHub' ); ?></a>
160
+			<a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip/', 'strip')); ?>"><?php printf(esc_html__('Contribute on %s', 'strip'), 'GitHub'); ?></a>
161 161
 <?php }
162 162
 
163 163
 // adding it to the admin area.
164
-add_filter( 'admin_footer_text', 'strip_custom_admin_footer' );
164
+add_filter('admin_footer_text', 'strip_custom_admin_footer');
Please login to merge, or discard this patch.