Completed
Push — master ( 5ae94f...981b9c )
by SILENT
02:18
created
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/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', 168 );
23
+		$author_bio_avatar_size = apply_filters('strip_author_bio_avatar_size', 168);
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.
page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 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 while ( have_posts() ) :
20
+			<?php while (have_posts()) :
21 21
 				the_post(); ?>
22 22
 
23
-				<?php get_template_part( 'content', 'page' ); ?>
23
+				<?php get_template_part('content', 'page'); ?>
24 24
 
25 25
 				<?php
26 26
 					// If comments are open or we have at least one comment, load up the comment template.
27
-				if ( comments_open() || '0' !== get_comments_number() ) {
27
+				if (comments_open() || '0' !== get_comments_number()) {
28 28
 					comments_template();
29 29
 				}
30 30
 				?>
Please login to merge, or discard this patch.
content-gallery.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,8 +28,10 @@
 block discarded – undo
28 28
 
29 29
 	if ( ! is_single() ) :
30 30
 		the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
31
-	else :
31
+	else {
32
+		:
32 33
 					the_title( '<h1 class="entry-title">', '</h1>' );
34
+	}
33 35
 	endif; ?>
34 36
 
35 37
 		<div class="entry-content clear">
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 // Access global variable directly to set content_width.
10
-if ( isset( $GLOBALS['content_width'] ) ) {
10
+if (isset($GLOBALS['content_width'])) {
11 11
 	$GLOBALS['content_width'] = 1920;
12 12
 }
13 13
 ?>
@@ -15,22 +15,22 @@  discard block
 block discarded – undo
15 15
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
16 16
 	<div class="entry-wrap wrap clear">
17 17
 
18
-<?php if ( '' !== get_the_post_thumbnail() ) :
19
-	the_post_thumbnail( 'strip-featured-thumbnail' );
18
+<?php if ('' !== get_the_post_thumbnail()) :
19
+	the_post_thumbnail('strip-featured-thumbnail');
20 20
 endif; ?>
21 21
 
22 22
 		<header class="entry-header">
23 23
 	<?php
24
-				$categories_list = get_the_category_list( __( ', ', 'strip' ) );
24
+				$categories_list = get_the_category_list(__(', ', 'strip'));
25 25
 
26
-	if ( ! is_single() ) :
27
-		the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
26
+	if ( ! is_single()) :
27
+		the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
28 28
 	else :
29
-					the_title( '<h1 class="entry-title">', '</h1>' );
29
+					the_title('<h1 class="entry-title">', '</h1>');
30 30
 	endif; ?>
31 31
 
32 32
 		<div class="entry-content clear">
33
-	<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
33
+	<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'strip')); ?>
34 34
 
35 35
 		</div><!-- .entry-content -->
36 36
 		</header><!-- .entry-header -->
@@ -38,16 +38,16 @@  discard block
 block discarded – undo
38 38
 		<footer class="entry-meta">
39 39
 	<?php strip_entry_meta(); ?>
40 40
 
41
-			<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>
41
+			<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>
42 42
 
43
-	<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
43
+	<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
44 44
 		</footer><!-- .entry-meta -->
45 45
 
46
-	<?php if ( has_excerpt() ) : ?>
46
+	<?php if (has_excerpt()) : ?>
47 47
 		<div class="entry-summary">
48
-	<?php do_action( 'strip_formatted_posts_excerpt_before' ); ?>
48
+	<?php do_action('strip_formatted_posts_excerpt_before'); ?>
49 49
 	<?php the_excerpt(); ?>
50
-	<?php do_action( 'strip_formatted_posts_excerpt_after' ); ?>
50
+	<?php do_action('strip_formatted_posts_excerpt_after'); ?>
51 51
 		</div><!-- .entry-caption -->
52 52
 	<?php endif; ?>
53 53
 
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 = 2013;
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', 'Hoa' ); ?></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', 'Hoa'); ?></a>
54 54
 		</div><!-- .site-info -->
55 55
 	</footer><!-- #colophon -->
56 56
 </div><!-- #page -->
Please login to merge, or discard this patch.
content-series.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
11 11
 
12 12
 	<div class="wrap">
13
-		<?php if ( '' !== get_the_post_thumbnail() ) : ?>
13
+		<?php if ('' !== get_the_post_thumbnail()) : ?>
14 14
 
15
-			<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">
16
-				<?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?>
15
+			<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">
16
+				<?php the_post_thumbnail('strip-featured-thumbnail'); ?>
17 17
 			</a>
18 18
 		<?php endif; ?>
19 19
 
@@ -24,17 +24,17 @@  discard block
 block discarded – undo
24 24
 		<header class="entry-header">
25 25
 
26 26
 			<?php
27
-			edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' );
27
+			edit_post_link(__('Edit Comic', 'strip'), '<span class="edit-link">', '</span>');
28 28
 
29
-			if ( ! is_single() ) :
30
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
29
+			if ( ! is_single()) :
30
+				the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
31 31
 			else :
32
-					the_title( '<h1 class="entry-title">', '</h1>' );
32
+					the_title('<h1 class="entry-title">', '</h1>');
33 33
 			endif; ?>
34 34
 
35 35
 	</header><!-- .entry-header -->
36 36
 
37
-	<?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
37
+	<?php if (is_search()) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
38 38
 
39 39
 		<div class="entry-summary">
40 40
 			<?php the_excerpt(); ?>
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,8 +28,10 @@  discard block
 block discarded – undo
28 28
 
29 29
 			if ( ! is_single() ) :
30 30
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
31
-			else :
31
+			else {
32
+				:
32 33
 					the_title( '<h1 class="entry-title">', '</h1>' );
34
+			}
33 35
 			endif; ?>
34 36
 
35 37
 	</header><!-- .entry-header -->
@@ -40,10 +42,13 @@  discard block
 block discarded – undo
40 42
 			<?php the_excerpt(); ?>
41 43
 		</div><!-- .entry-summary -->
42 44
 
43
-		<?php else : ?>
45
+		<?php else {
46
+	: ?>
44 47
 
45 48
 	<div class="entry-comic">
46
-		<?php the_content(); ?>
49
+		<?php the_content();
50
+}
51
+?>
47 52
 
48 53
 		<?php endif; ?>
49 54
 		</div><!-- .entry-content -->
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +11 added lines, -11 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">
@@ -34,17 +34,17 @@  discard block
 block discarded – undo
34 34
 	<header id="branding" class="site-header" role="banner">
35 35
 
36 36
 		<div class="site-branding">
37
-			<?php get_template_part( '/assets/inline', 'logo.svg' ); // remove or replace by your own custom svg logo. ?>
37
+			<?php get_template_part('/assets/inline', 'logo.svg'); // remove or replace by your own custom svg logo. ?>
38 38
 			<?php strip_the_custom_logo(); ?>
39
-				<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>
39
+				<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>
40 40
 	</div><!-- .site-branding -->
41 41
 
42
-		<?php if ( has_nav_menu( 'primary' ) ) : ?>
42
+		<?php if (has_nav_menu('primary')) : ?>
43 43
 		<nav id="site-navigation" class="main-navigation clear" role="navigation">
44
-			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e( 'discover', 'strip' ); ?></button>
45
-			<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'strip' ); ?></a></div>
44
+			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e('discover', 'strip'); ?></button>
45
+			<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e('Skip to content', 'strip'); ?></a></div>
46 46
 
47
-			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'wrap' ) ); ?>
47
+			<?php wp_nav_menu(array('theme_location' => 'primary', 'container_class' => 'wrap')); ?>
48 48
 		</nav><!-- #site-navigation -->
49 49
 		<?php endif; ?>
50 50
 
Please login to merge, or discard this patch.
archive.php 2 patches
Spacing   +43 added lines, -43 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,15 +84,15 @@  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 ) ) :
88
-						'<div class="taxonomy-description"' . printf( esc_html( '%s', $term_description, 'strip' ) ) . '</div>';
87
+					if ( ! empty($term_description)) :
88
+						'<div class="taxonomy-description"' . printf(esc_html('%s', $term_description, 'strip')) . '</div>';
89 89
 			endif;
90 90
 					?>
91 91
 				</div><!-- .wrap -->
92 92
 			</header><!-- .page-header -->
93 93
 
94 94
 			<?php /* Start the Loop */ ?>
95
-			<?php while ( have_posts() ) : the_post(); ?>
95
+			<?php while (have_posts()) : the_post(); ?>
96 96
 
97 97
 				<?php
98 98
 
@@ -101,16 +101,16 @@  discard block
 block discarded – undo
101 101
 					 * If you want to overload this in a child theme then include a file
102 102
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
103 103
 					 */
104
-					get_template_part( 'content', get_post_format() );
104
+					get_template_part('content', get_post_format());
105 105
 				?>
106 106
 
107 107
 			<?php endwhile; ?>
108 108
 
109
-			<?php strip_content_nav( 'nav-below' ); ?>
109
+			<?php strip_content_nav('nav-below'); ?>
110 110
 
111 111
 		<?php else : ?>
112 112
 
113
-			<?php get_template_part( 'no-results', 'archive' ); ?>
113
+			<?php get_template_part('no-results', 'archive'); ?>
114 114
 
115 115
 		<?php endif; ?>
116 116
 
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
 						?>
@@ -108,9 +110,12 @@  discard block
 block discarded – undo
108 110
 
109 111
 			<?php strip_content_nav( 'nav-below' ); ?>
110 112
 
111
-		<?php else : ?>
113
+		<?php else {
114
+	: ?>
112 115
 
113
-			<?php get_template_part( 'no-results', 'archive' ); ?>
116
+			<?php get_template_part( 'no-results', 'archive' );
117
+}
118
+?>
114 119
 
115 120
 		<?php endif; ?>
116 121
 
Please login to merge, or discard this patch.
index.php 2 patches
Spacing   +5 added lines, -5 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,16 +31,16 @@  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
-			<?php strip_content_nav( 'nav-below' ); ?>
39
+			<?php strip_content_nav('nav-below'); ?>
40 40
 
41 41
 		<?php else : ?>
42 42
 
43
-			<?php get_template_part( 'no-results', 'index' ); ?>
43
+			<?php get_template_part('no-results', 'index'); ?>
44 44
 
45 45
 		<?php endif; ?>
46 46
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,12 @@
 block discarded – undo
38 38
 
39 39
 			<?php strip_content_nav( 'nav-below' ); ?>
40 40
 
41
-		<?php else : ?>
41
+		<?php else {
42
+	: ?>
42 43
 
43
-			<?php get_template_part( 'no-results', 'index' ); ?>
44
+			<?php get_template_part( 'no-results', 'index' );
45
+}
46
+?>
44 47
 
45 48
 		<?php endif; ?>
46 49
 
Please login to merge, or discard this patch.