@@ -190,7 +190,7 @@  | 
                                                    ||
| 190 | 190 | * @link https://core.trac.wordpress.org/ticket/27094  | 
                                                        
| 191 | 191 | *  | 
                                                        
| 192 | 192 | * @param bool $in_same_term Optional. Whether returned post should be in a same taxonomy term.  | 
                                                        
| 193 | - * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs.  | 
                                                        |
| 193 | + * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs.  | 
                                                        |
| 194 | 194 | * @param bool $start Optional. Whether to retrieve first or last post.  | 
                                                        
| 195 | 195 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'.  | 
                                                        
| 196 | 196 | * @return mixed Array containing the boundary post object if successful, null otherwise.  | 
                                                        
@@ -13,105 +13,105 @@ discard block  | 
                                                    ||
| 13 | 13 | * Add custom header image to header area  | 
                                                        
| 14 | 14 | */  | 
                                                        
| 15 | 15 |  function strip_header_background() { | 
                                                        
| 16 | -	if ( get_header_image() ) { | 
                                                        |
| 17 | -		$css = '.site-branding { background-image: url(' . esc_url( get_header_image() ) . '); }'; | 
                                                        |
| 18 | - wp_add_inline_style( 'strip-style', $css );  | 
                                                        |
| 16 | +	if (get_header_image()) { | 
                                                        |
| 17 | +		$css = '.site-branding { background-image: url(' . esc_url(get_header_image()) . '); }'; | 
                                                        |
| 18 | +		wp_add_inline_style('strip-style', $css); | 
                                                        |
| 19 | 19 | }  | 
                                                        
| 20 | 20 | }  | 
                                                        
| 21 | -add_action( 'wp_enqueue_scripts', 'strip_header_background', 11 );  | 
                                                        |
| 21 | +add_action('wp_enqueue_scripts', 'strip_header_background', 11); | 
                                                        |
| 22 | 22 | |
| 23 | -if ( ! function_exists( 'strip_content_nav' ) ) :  | 
                                                        |
| 23 | +if ( ! function_exists('strip_content_nav')) : | 
                                                        |
| 24 | 24 | |
| 25 | 25 | /**  | 
                                                        
| 26 | 26 | * Display navigation to next/previous pages when applicable  | 
                                                        
| 27 | 27 | *  | 
                                                        
| 28 | 28 | * @param $string $nav_id strip_content_nav.  | 
                                                        
| 29 | 29 | */  | 
                                                        
| 30 | -	function strip_content_nav( $nav_id ) { | 
                                                        |
| 30 | +	function strip_content_nav($nav_id) { | 
                                                        |
| 31 | 31 | global $wp_query, $post;  | 
                                                        
| 32 | 32 | |
| 33 | 33 | // Don't print empty markup on single pages if there's nowhere to navigate.  | 
                                                        
| 34 | 34 | // Don't print empty markup in archives if there's only one page.  | 
                                                        
| 35 | -		if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { | 
                                                        |
| 35 | +		if ($wp_query->max_num_pages < 2 && (is_home() || is_archive() || is_search())) { | 
                                                        |
| 36 | 36 | return;  | 
                                                        
| 37 | 37 | }  | 
                                                        
| 38 | 38 | |
| 39 | - $nav_class = ( is_single() || is_tax( 'story' ) ) ? 'post-navigation' : 'paging-navigation' ;  | 
                                                        |
| 39 | +		$nav_class = (is_single() || is_tax('story')) ? 'post-navigation' : 'paging-navigation'; | 
                                                        |
| 40 | 40 | |
| 41 | 41 | ?> <div class="wrap clear">  | 
                                                        
| 42 | 42 | |
| 43 | - <nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo esc_attr( $nav_class ); ?> clear">  | 
                                                        |
| 44 | - <h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1>  | 
                                                        |
| 43 | + <nav role="navigation" id="<?php echo esc_attr($nav_id); ?>" class="<?php echo esc_attr($nav_class); ?> clear">  | 
                                                        |
| 44 | +		<h1 class="screen-reader-text"><?php esc_html_e('Post navigation', 'strip'); ?></h1> | 
                                                        |
| 45 | 45 | |
| 46 | - <?php if ( 'comic' === get_post_type() && ( is_single() ) ) : // comics navigation links.  | 
                                                        |
| 46 | +		<?php  if ('comic' === get_post_type() && (is_single())) : // comics navigation links. | 
                                                        |
| 47 | 47 | |
| 48 | 48 | $nav_class .= ' navigation-comic'; ?>  | 
                                                        
| 49 | 49 | |
| 50 | 50 | <div class="navigation-comic">  | 
                                                        
| 51 | - <nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav>  | 
                                                        |
| 52 | - <nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), $in_same_term = true, $excluded_terms = '', $taxonomy = 'story' ); ?></nav>  | 
                                                        |
| 53 | - <nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav>  | 
                                                        |
| 54 | - <nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav>  | 
                                                        |
| 55 | - <nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav>  | 
                                                        |
| 51 | +				<nav class="nav-first"><a href="<?php echo esc_url(first_comic_link()); ?>"><?php esc_html_e('Start', 'strip'); ?></a></nav> | 
                                                        |
| 52 | +				<nav class="nav-previous"><?php previous_post_link('%link', __('Previous', 'strip'), $in_same_term = true, $excluded_terms = '', $taxonomy = 'story'); ?></nav> | 
                                                        |
| 53 | +				<nav class="nav-title"><?php the_title('<h4 class="series-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>'); ?></nav> | 
                                                        |
| 54 | +				<nav class="nav-next"><?php next_post_link('%link', __('Next', 'strip'), true, '', 'story'); ?></nav> | 
                                                        |
| 55 | +				<nav class="nav-last"><a href="<?php echo esc_url(last_comic_link()); ?>"><?php esc_html_e('Last', 'strip'); ?></a></nav> | 
                                                        |
| 56 | 56 | </div><!-- .navigation-comic -->  | 
                                                        
| 57 | 57 | |
| 58 | - <?php elseif ( is_single() ) : // navigation links for single posts. ?>  | 
                                                        |
| 58 | + <?php elseif (is_single()) : // navigation links for single posts. ?>  | 
                                                        |
| 59 | 59 | |
| 60 | - <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'strip' ) . '</span> %title' ); ?>  | 
                                                        |
| 61 | - <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'strip' ) . '</span>' ); ?>  | 
                                                        |
| 60 | +		<?php previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('←', 'Previous post link', 'strip') . '</span> %title'); ?> | 
                                                        |
| 61 | +		<?php next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('→', 'Next post link', 'strip') . '</span>'); ?> | 
                                                        |
| 62 | 62 | |
| 63 | - <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for blog, archive, and search pages. ?>  | 
                                                        |
| 63 | + <?php elseif ($wp_query->max_num_pages > 1 && (is_home() || is_archive() || is_search())) : // navigation links for blog, archive, and search pages. ?>  | 
                                                        |
| 64 | 64 | |
| 65 | - <?php if ( get_next_posts_link() ) : ?>  | 
                                                        |
| 66 | - <div class="nav-previous-page"><?php next_posts_link( __( 'Older posts', 'strip' ) ); ?></div>  | 
                                                        |
| 65 | + <?php if (get_next_posts_link()) : ?>  | 
                                                        |
| 66 | +		<div class="nav-previous-page"><?php next_posts_link(__('Older posts', 'strip')); ?></div> | 
                                                        |
| 67 | 67 | <?php endif; ?>  | 
                                                        
| 68 | 68 | |
| 69 | - <?php if ( get_previous_posts_link() ) : ?>  | 
                                                        |
| 70 | - <div class="nav-next-page"><?php previous_posts_link( __( 'Recent posts', 'strip' ) ); ?></div>  | 
                                                        |
| 69 | + <?php if (get_previous_posts_link()) : ?>  | 
                                                        |
| 70 | +		<div class="nav-next-page"><?php previous_posts_link(__('Recent posts', 'strip')); ?></div> | 
                                                        |
| 71 | 71 | <?php endif; ?>  | 
                                                        
| 72 | 72 | |
| 73 | 73 | <?php endif; ?>  | 
                                                        
| 74 | 74 | |
| 75 | 75 | </div><!-- .entry-wrap -->  | 
                                                        
| 76 | - </nav><!-- #<?php echo esc_attr( $nav_id ); ?> -->  | 
                                                        |
| 76 | + </nav><!-- #<?php echo esc_attr($nav_id); ?> -->  | 
                                                        |
| 77 | 77 | <?php  | 
                                                        
| 78 | 78 | }  | 
                                                        
| 79 | 79 | endif; // strip_content_nav.  | 
                                                        
| 80 | 80 | |
| 81 | -if ( ! function_exists( 'strip_entry_meta' ) ) :  | 
                                                        |
| 81 | +if ( ! function_exists('strip_entry_meta')) : | 
                                                        |
| 82 | 82 | /**  | 
                                                        
| 83 | 83 | * Prints HTML with meta information for the current post-date/time and author.  | 
                                                        
| 84 | 84 | */  | 
                                                        
| 85 | 85 |  	function strip_entry_meta() { | 
                                                        
| 86 | -		if ( is_sticky() && is_home() ) { | 
                                                        |
| 86 | +		if (is_sticky() && is_home()) { | 
                                                        |
| 87 | 87 | printf(  | 
                                                        
| 88 | - __( '<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip' ),  | 
                                                        |
| 89 | - esc_url( get_permalink() ),  | 
                                                        |
| 90 | - esc_attr( get_the_time() )  | 
                                                        |
| 88 | +				__('<span class="featured-post"><a href="%1$s" title="%2$s" rel="bookmark">Sticky</a></span>', 'strip'), | 
                                                        |
| 89 | + esc_url(get_permalink()),  | 
                                                        |
| 90 | + esc_attr(get_the_time())  | 
                                                        |
| 91 | 91 | );  | 
                                                        
| 92 | 92 | }  | 
                                                        
| 93 | 93 | |
| 94 | -		if ( 'post' === get_post_type() ) { | 
                                                        |
| 94 | +		if ('post' === get_post_type()) { | 
                                                        |
| 95 | 95 | printf(  | 
                                                        
| 96 | - __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip' ),  | 
                                                        |
| 97 | - esc_url( get_permalink() ),  | 
                                                        |
| 98 | - esc_attr( get_the_time() ),  | 
                                                        |
| 99 | - esc_attr( get_the_date( 'c' ) ),  | 
                                                        |
| 96 | +				__('<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time datetime="%3$s">%4$s</time></a></span><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span>', 'strip'), | 
                                                        |
| 97 | + esc_url(get_permalink()),  | 
                                                        |
| 98 | + esc_attr(get_the_time()),  | 
                                                        |
| 99 | +				esc_attr(get_the_date('c')), | 
                                                        |
| 100 | 100 | get_the_date(),  | 
                                                        
| 101 | - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),  | 
                                                        |
| 102 | - esc_attr( sprintf( __( 'View all posts by %s', 'strip' ), get_the_author() ) ),  | 
                                                        |
| 101 | +				esc_url(get_author_posts_url(get_the_author_meta('ID'))), | 
                                                        |
| 102 | +				esc_attr(sprintf(__('View all posts by %s', 'strip'), get_the_author())), | 
                                                        |
| 103 | 103 | get_the_author()  | 
                                                        
| 104 | 104 | );  | 
                                                        
| 105 | 105 | }  | 
                                                        
| 106 | 106 | |
| 107 | - $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'strip' ) );  | 
                                                        |
| 108 | -		if ( $tags_list ) { | 
                                                        |
| 109 | - printf( '<span class="tags-links">' . esc_html( '%1$s', 'strip' ) . '</span>', $tags_list ); // WPCS: XSS OK.  | 
                                                        |
| 107 | +		$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'strip')); | 
                                                        |
| 108 | +		if ($tags_list) { | 
                                                        |
| 109 | +			printf('<span class="tags-links">' . esc_html('%1$s', 'strip') . '</span>', $tags_list); // WPCS: XSS OK. | 
                                                        |
| 110 | 110 | }  | 
                                                        
| 111 | 111 | }  | 
                                                        
| 112 | 112 | endif;  | 
                                                        
| 113 | 113 | |
| 114 | -if ( ! function_exists( 'strip_term_description' ) ) :  | 
                                                        |
| 114 | +if ( ! function_exists('strip_term_description')) : | 
                                                        |
| 115 | 115 | /**  | 
                                                        
| 116 | 116 | * Display optional term description for category, tag and custom taxonomy pages.  | 
                                                        
| 117 | 117 | *  | 
                                                        
@@ -121,8 +121,8 @@ discard block  | 
                                                    ||
| 121 | 121 | // Show an optional term description.  | 
                                                        
| 122 | 122 | $term_description = term_description();  | 
                                                        
| 123 | 123 | |
| 124 | - if ( is_post_type_archive( 'comic' ) || is_category() || is_tag() || is_tax( 'story' ) && ! empty( $term_description ) ) :  | 
                                                        |
| 125 | - printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.  | 
                                                        |
| 124 | +		if (is_post_type_archive('comic') || is_category() || is_tag() || is_tax('story') && ! empty($term_description)) : | 
                                                        |
| 125 | +			printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK. | 
                                                        |
| 126 | 126 | endif;  | 
                                                        
| 127 | 127 | }  | 
                                                        
| 128 | 128 | endif; // ends check for strip_term_description.  | 
                                                        
@@ -133,7 +133,7 @@ discard block  | 
                                                    ||
| 133 | 133 | * @return bool  | 
                                                        
| 134 | 134 | */  | 
                                                        
| 135 | 135 |  function strip_categorized_blog() { | 
                                                        
| 136 | -	if ( false === ( $all_the_cool_cats = get_transient( 'strip_categories' ) ) ) { | 
                                                        |
| 136 | +	if (false === ($all_the_cool_cats = get_transient('strip_categories'))) { | 
                                                        |
| 137 | 137 | // Create an array of all the categories that are attached to posts.  | 
                                                        
| 138 | 138 | $all_the_cool_cats = get_categories(array(  | 
                                                        
| 139 | 139 | 'fields' => 'ids',  | 
                                                        
@@ -143,12 +143,12 @@ discard block  | 
                                                    ||
| 143 | 143 | ));  | 
                                                        
| 144 | 144 | |
| 145 | 145 | // Count the number of categories that are attached to the posts.  | 
                                                        
| 146 | - $all_the_cool_cats = count( $all_the_cool_cats );  | 
                                                        |
| 146 | + $all_the_cool_cats = count($all_the_cool_cats);  | 
                                                        |
| 147 | 147 | |
| 148 | - set_transient( 'strip_categories', $all_the_cool_cats );  | 
                                                        |
| 148 | +		set_transient('strip_categories', $all_the_cool_cats); | 
                                                        |
| 149 | 149 | }  | 
                                                        
| 150 | 150 | |
| 151 | -	if ( $all_the_cool_cats > 1 ) { | 
                                                        |
| 151 | +	if ($all_the_cool_cats > 1) { | 
                                                        |
| 152 | 152 | // This blog has more than 1 category so strip_categorized_blog should return true.  | 
                                                        
| 153 | 153 | return true;  | 
                                                        
| 154 | 154 | }  | 
                                                        
@@ -160,16 +160,16 @@ discard block  | 
                                                    ||
| 160 | 160 | * Flushes out the transients used in strip_categorized_blog.  | 
                                                        
| 161 | 161 | */  | 
                                                        
| 162 | 162 |  function strip_category_transient_flusher() { | 
                                                        
| 163 | -	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { | 
                                                        |
| 163 | +	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { | 
                                                        |
| 164 | 164 | return;  | 
                                                        
| 165 | 165 | }  | 
                                                        
| 166 | 166 | // Like, beat it. Dig?  | 
                                                        
| 167 | - delete_transient( 'strip_categories' );  | 
                                                        |
| 167 | +	delete_transient('strip_categories'); | 
                                                        |
| 168 | 168 | }  | 
                                                        
| 169 | -add_action( 'edit_category', 'strip_category_transient_flusher' );  | 
                                                        |
| 170 | -add_action( 'save_post', 'strip_category_transient_flusher' );  | 
                                                        |
| 169 | +add_action('edit_category', 'strip_category_transient_flusher'); | 
                                                        |
| 170 | +add_action('save_post', 'strip_category_transient_flusher'); | 
                                                        |
| 171 | 171 | |
| 172 | -if ( ! function_exists( 'strip_the_custom_logo' ) ) :  | 
                                                        |
| 172 | +if ( ! function_exists('strip_the_custom_logo')) : | 
                                                        |
| 173 | 173 | /**  | 
                                                        
| 174 | 174 | * Displays the optional custom logo.  | 
                                                        
| 175 | 175 | *  | 
                                                        
@@ -178,7 +178,7 @@ discard block  | 
                                                    ||
| 178 | 178 | * @since strip 1.0  | 
                                                        
| 179 | 179 | */  | 
                                                        
| 180 | 180 |  	function strip_the_custom_logo() { | 
                                                        
| 181 | -		if ( function_exists( 'the_custom_logo' ) ) { | 
                                                        |
| 181 | +		if (function_exists('the_custom_logo')) { | 
                                                        |
| 182 | 182 | the_custom_logo();  | 
                                                        
| 183 | 183 | }  | 
                                                        
| 184 | 184 | }  | 
                                                        
@@ -195,10 +195,10 @@ discard block  | 
                                                    ||
| 195 | 195 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'.  | 
                                                        
| 196 | 196 | * @return mixed Array containing the boundary post object if successful, null otherwise.  | 
                                                        
| 197 | 197 | */  | 
                                                        
| 198 | -function get_comic_boundary_post( $in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category' ) { | 
                                                        |
| 198 | +function get_comic_boundary_post($in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category') { | 
                                                        |
| 199 | 199 | global $post;  | 
                                                        
| 200 | - setup_postdata( $post );  | 
                                                        |
| 201 | -	if ( ! taxonomy_exists( $taxonomy ) ) { | 
                                                        |
| 200 | + setup_postdata($post);  | 
                                                        |
| 201 | +	if ( ! taxonomy_exists($taxonomy)) { | 
                                                        |
| 202 | 202 | return null;  | 
                                                        
| 203 | 203 | }  | 
                                                        
| 204 | 204 | |
@@ -213,39 +213,39 @@ discard block  | 
                                                    ||
| 213 | 213 | |
| 214 | 214 | $term_array = array();  | 
                                                        
| 215 | 215 | |
| 216 | -	if ( ! is_array( $excluded_terms ) ) { | 
                                                        |
| 217 | -		if ( ! empty( $excluded_terms ) ) { | 
                                                        |
| 218 | - $excluded_terms = explode( ',', $excluded_terms );  | 
                                                        |
| 216 | +	if ( ! is_array($excluded_terms)) { | 
                                                        |
| 217 | +		if ( ! empty($excluded_terms)) { | 
                                                        |
| 218 | +			$excluded_terms = explode(',', $excluded_terms); | 
                                                        |
| 219 | 219 |  		} else { | 
                                                        
| 220 | 220 | $excluded_terms = array();  | 
                                                        
| 221 | 221 | }  | 
                                                        
| 222 | 222 | }  | 
                                                        
| 223 | 223 | |
| 224 | -	if ( $in_same_term || ! empty( $excluded_terms ) ) { | 
                                                        |
| 225 | -		if ( $in_same_term ) { | 
                                                        |
| 226 | - $term_array = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );  | 
                                                        |
| 224 | +	if ($in_same_term || ! empty($excluded_terms)) { | 
                                                        |
| 225 | +		if ($in_same_term) { | 
                                                        |
| 226 | +			$term_array = wp_get_object_terms($post->ID, $taxonomy, array('fields' => 'ids')); | 
                                                        |
| 227 | 227 | }  | 
                                                        
| 228 | 228 | |
| 229 | -		if ( ! empty( $excluded_terms ) ) { | 
                                                        |
| 230 | - $excluded_terms = array_map( 'intval', $excluded_terms );  | 
                                                        |
| 231 | - $excluded_terms = array_diff( $excluded_terms, $term_array );  | 
                                                        |
| 229 | +		if ( ! empty($excluded_terms)) { | 
                                                        |
| 230 | +			$excluded_terms = array_map('intval', $excluded_terms); | 
                                                        |
| 231 | + $excluded_terms = array_diff($excluded_terms, $term_array);  | 
                                                        |
| 232 | 232 | |
| 233 | 233 | $inverse_terms = array();  | 
                                                        
| 234 | -			foreach ( $excluded_terms as $excluded_term ) { | 
                                                        |
| 234 | +			foreach ($excluded_terms as $excluded_term) { | 
                                                        |
| 235 | 235 | $inverse_terms[] = $excluded_term * -1;  | 
                                                        
| 236 | 236 | }  | 
                                                        
| 237 | 237 | $excluded_terms = $inverse_terms;  | 
                                                        
| 238 | 238 | }  | 
                                                        
| 239 | 239 | |
| 240 | - $query_args['tax_query'] = array( array(  | 
                                                        |
| 240 | + $query_args['tax_query'] = array(array(  | 
                                                        |
| 241 | 241 | 'taxonomy' => $taxonomy,  | 
                                                        
| 242 | - 'terms' => array_merge( $term_array, $excluded_terms ),  | 
                                                        |
| 242 | + 'terms' => array_merge($term_array, $excluded_terms),  | 
                                                        |
| 243 | 243 | ),  | 
                                                        
| 244 | 244 | );  | 
                                                        
| 245 | 245 | }  | 
                                                        
| 246 | 246 | |
| 247 | 247 | $get_posts = new wp_query;  | 
                                                        
| 248 | - return $get_posts -> query( $query_args );  | 
                                                        |
| 248 | + return $get_posts -> query($query_args);  | 
                                                        |
| 249 | 249 | wp_reset_postdata();  | 
                                                        
| 250 | 250 | }  | 
                                                        
| 251 | 251 | |
@@ -254,11 +254,11 @@ discard block  | 
                                                    ||
| 254 | 254 | *  | 
                                                        
| 255 | 255 | * @param array $args first_comic_link.  | 
                                                        
| 256 | 256 | */  | 
                                                        
| 257 | -function first_comic_link( $args = array() ) { | 
                                                        |
| 258 | - $first = get_comic_boundary_post( true, '', true, 'story' );  | 
                                                        |
| 259 | - apply_filters( 'the_title', $first[0]->post_title );  | 
                                                        |
| 257 | +function first_comic_link($args = array()) { | 
                                                        |
| 258 | + $first = get_comic_boundary_post(true, '', true, 'story');  | 
                                                        |
| 259 | +	apply_filters('the_title', $first[0]->post_title); | 
                                                        |
| 260 | 260 | |
| 261 | - echo esc_html( get_permalink( $first[0]->ID ) );  | 
                                                        |
| 261 | + echo esc_html(get_permalink($first[0]->ID));  | 
                                                        |
| 262 | 262 | }  | 
                                                        
| 263 | 263 | |
| 264 | 264 | /**  | 
                                                        
@@ -266,9 +266,9 @@ discard block  | 
                                                    ||
| 266 | 266 | *  | 
                                                        
| 267 | 267 | * @param array $args last_comic_link.  | 
                                                        
| 268 | 268 | */  | 
                                                        
| 269 | -function last_comic_link( $args = array() ) { | 
                                                        |
| 270 | - $last = get_comic_boundary_post( true, '', false, 'story' );  | 
                                                        |
| 271 | - apply_filters( 'the_title', $last[0]->post_title );  | 
                                                        |
| 269 | +function last_comic_link($args = array()) { | 
                                                        |
| 270 | + $last = get_comic_boundary_post(true, '', false, 'story');  | 
                                                        |
| 271 | +	apply_filters('the_title', $last[0]->post_title); | 
                                                        |
| 272 | 272 | |
| 273 | - echo esc_html( get_permalink( $last[0]->ID ) );  | 
                                                        |
| 273 | + echo esc_html(get_permalink($last[0]->ID));  | 
                                                        |
| 274 | 274 | }  | 
                                                        
@@ -6,7 +6,7 @@ discard block  | 
                                                    ||
| 6 | 6 | * @subpackage Strip  | 
                                                        
| 7 | 7 | */  | 
                                                        
| 8 | 8 | |
| 9 | -if ( ! is_active_sidebar( 'sidebar' ) ) { | 
                                                        |
| 9 | +if ( ! is_active_sidebar('sidebar')) { | 
                                                        |
| 10 | 10 | return;  | 
                                                        
| 11 | 11 | }  | 
                                                        
| 12 | 12 | ?>  | 
                                                        
@@ -17,7 +17,7 @@ discard block  | 
                                                    ||
| 17 | 17 | |
| 18 | 18 | <div class="main-sidebar">  | 
                                                        
| 19 | 19 | |
| 20 | - <?php dynamic_sidebar( 'sidebar' ); ?>  | 
                                                        |
| 20 | +	<?php dynamic_sidebar('sidebar'); ?> | 
                                                        |
| 21 | 21 | |
| 22 | 22 | </div>  | 
                                                        
| 23 | 23 | </div><!-- .widget-wrap -->  | 
                                                        
@@ -16,21 +16,21 @@ discard block  | 
                                                    ||
| 16 | 16 | <div id="primary"  | 
                                                        
| 17 | 17 | <main id="content" class="wrap" role="main">  | 
                                                        
| 18 | 18 | |
| 19 | - <?php if ( have_posts() ) : ?>  | 
                                                        |
| 19 | + <?php if (have_posts()) : ?>  | 
                                                        |
| 20 | 20 | <header class="page-header">  | 
                                                        
| 21 | 21 | </br>  | 
                                                        
| 22 | 22 | <?php  | 
                                                        
| 23 | 23 | // Show an optional term description.  | 
                                                        
| 24 | 24 | $term_description = term_description();  | 
                                                        
| 25 | - if ( ! empty( $term_description ) ) :  | 
                                                        |
| 26 | - printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.  | 
                                                        |
| 25 | + if ( ! empty($term_description)) :  | 
                                                        |
| 26 | +				printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK. | 
                                                        |
| 27 | 27 | endif; ?>  | 
                                                        
| 28 | 28 | <h4 class="comic-blurb">Here are your uncategorized comics. To order them, go to Add New Comic, then + Add New Story and write a series title of your choice, or check an existing series box, if you had one. To write your own custom taxonomies, clone taxonomy-story-draft.php and replace "draft" by your own story name.</h4>  | 
                                                        
| 29 | 29 | </header><!-- .page-header -->  | 
                                                        
| 30 | 30 | |
| 31 | 31 | <?php // Create and run first loop in reverse order.  | 
                                                        
| 32 | 32 | $comic = new WP_Query();  | 
                                                        
| 33 | - $comic->query( array(  | 
                                                        |
| 33 | + $comic->query(array(  | 
                                                        |
| 34 | 34 | 'post_type' => 'comic',  | 
                                                        
| 35 | 35 | 'showposts' => -1,  | 
                                                        
| 36 | 36 | 'story' => 'draft',  | 
                                                        
@@ -39,9 +39,9 @@ discard block  | 
                                                    ||
| 39 | 39 | )  | 
                                                        
| 40 | 40 | );  | 
                                                        
| 41 | 41 | |
| 42 | -while ( $comic->have_posts() ) : $comic->the_post();  | 
                                                        |
| 42 | +while ($comic->have_posts()) : $comic->the_post();  | 
                                                        |
| 43 | 43 | |
| 44 | - get_template_part( 'content-comic' ); ?>  | 
                                                        |
| 44 | +	get_template_part('content-comic'); ?> | 
                                                        |
| 45 | 45 | |
| 46 | 46 | <?php endwhile; ?>  | 
                                                        
| 47 | 47 | <?php  | 
                                                        
@@ -49,7 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | ?>  | 
                                                        
| 50 | 50 | <?php else : ?>  | 
                                                        
| 51 | 51 | |
| 52 | - <?php get_template_part( 'no-results', 'archive-comic' ); ?>  | 
                                                        |
| 52 | +			<?php get_template_part('no-results', 'archive-comic'); ?> | 
                                                        |
| 53 | 53 | |
| 54 | 54 | <?php endif; ?>  | 
                                                        
| 55 | 55 | |
@@ -47,9 +47,12 @@  | 
                                                    ||
| 47 | 47 | <?php  | 
                                                        
| 48 | 48 | wp_reset_postdata();  | 
                                                        
| 49 | 49 | ?>  | 
                                                        
| 50 | - <?php else : ?>  | 
                                                        |
| 50 | +		<?php else { | 
                                                        |
| 51 | + : ?>  | 
                                                        |
| 51 | 52 | |
| 52 | - <?php get_template_part( 'no-results', 'archive-comic' ); ?>  | 
                                                        |
| 53 | + <?php get_template_part( 'no-results', 'archive-comic' );  | 
                                                        |
| 54 | +}  | 
                                                        |
| 55 | +?>  | 
                                                        |
| 53 | 56 | |
| 54 | 57 | <?php endif; ?>  | 
                                                        
| 55 | 58 | |
@@ -21,8 +21,10 @@  | 
                                                    ||
| 21 | 21 | |
| 22 | 22 | if ( ! is_single() ) :  | 
                                                        
| 23 | 23 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );  | 
                                                        
| 24 | - else :  | 
                                                        |
| 24 | +				else { | 
                                                        |
| 25 | + :  | 
                                                        |
| 25 | 26 | the_title( '<h1 class="entry-title">', '</h1>' );  | 
                                                        
| 27 | + }  | 
                                                        |
| 26 | 28 | endif;  | 
                                                        
| 27 | 29 | ?>  | 
                                                        
| 28 | 30 | </header><!-- .entry-header -->  | 
                                                        
@@ -14,30 +14,30 @@  | 
                                                    ||
| 14 | 14 | <div class="entry-info">  | 
                                                        
| 15 | 15 | <header class="entry-header">  | 
                                                        
| 16 | 16 | <?php  | 
                                                        
| 17 | - $categories_list = get_the_category_list( __( ', ', 'strip' ) );  | 
                                                        |
| 18 | -				if ( $categories_list && strip_categorized_blog() ) { | 
                                                        |
| 17 | +					$categories_list = get_the_category_list(__(', ', 'strip')); | 
                                                        |
| 18 | +				if ($categories_list && strip_categorized_blog()) { | 
                                                        |
| 19 | 19 | echo '<span class="categories-links">' . $categories_list . '</span>';  | 
                                                        
| 20 | 20 | }  | 
                                                        
| 21 | 21 | |
| 22 | - if ( ! is_single() ) :  | 
                                                        |
| 23 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );  | 
                                                        |
| 22 | + if ( ! is_single()) :  | 
                                                        |
| 23 | +					the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); | 
                                                        |
| 24 | 24 | else :  | 
                                                        
| 25 | - the_title( '<h1 class="entry-title">', '</h1>' );  | 
                                                        |
| 25 | +						the_title('<h1 class="entry-title">', '</h1>'); | 
                                                        |
| 26 | 26 | endif;  | 
                                                        
| 27 | 27 | ?>  | 
                                                        
| 28 | 28 | </header><!-- .entry-header -->  | 
                                                        
| 29 | 29 | |
| 30 | 30 | <footer class="entry-meta">  | 
                                                        
| 31 | 31 | |
| 32 | - <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'audio' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'audio' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'audio' ) ); ?></a></span>  | 
                                                        |
| 32 | +				<span class="entry-format"><a href="<?php echo esc_url(get_post_format_link('audio')); ?>" title="<?php echo esc_attr(sprintf(__('All %s posts', 'strip'), get_post_format_string('audio'))); ?>"><?php echo esc_html(get_post_format_string('audio')); ?></a></span> | 
                                                        |
| 33 | 33 | |
| 34 | - <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>  | 
                                                        |
| 34 | +				<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?> | 
                                                        |
| 35 | 35 | </footer><!-- .entry-meta -->  | 
                                                        
| 36 | 36 | |
| 37 | 37 | </div><!-- .entry-info -->  | 
                                                        
| 38 | 38 | |
| 39 | 39 | <div class="entry-content clear">  | 
                                                        
| 40 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'strip' ) ); ?>  | 
                                                        |
| 40 | +			<?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'strip')); ?> | 
                                                        |
| 41 | 41 | |
| 42 | 42 | </div><!-- .entry-content -->  | 
                                                        
| 43 | 43 | </div><!-- .entry-wrap -->  | 
                                                        
@@ -14,13 +14,13 @@ discard block  | 
                                                    ||
| 14 | 14 | |
| 15 | 15 | <header class="page-header">  | 
                                                        
| 16 | 16 | |
| 17 | - <h1 class="page-title"><?php single_term_title( 'All episodes: ' ); ?></h1>  | 
                                                        |
| 17 | +	<h1 class="page-title"><?php single_term_title('All episodes: '); ?></h1> | 
                                                        |
| 18 | 18 | |
| 19 | 19 | <?php  | 
                                                        
| 20 | 20 | // Show an optional term description.  | 
                                                        
| 21 | 21 | $term_description = term_description();  | 
                                                        
| 22 | - if ( ! empty( $term_description ) ) :  | 
                                                        |
| 23 | - echo apply_filters( 'taxonomy_archive_meta', '<div class="taxonomy-description">' . $term_description . '</div>' );  | 
                                                        |
| 22 | + if ( ! empty($term_description)) :  | 
                                                        |
| 23 | +		echo apply_filters('taxonomy_archive_meta', '<div class="taxonomy-description">' . $term_description . '</div>'); | 
                                                        |
| 24 | 24 | endif;  | 
                                                        
| 25 | 25 | ?>  | 
                                                        
| 26 | 26 | |
@@ -28,10 +28,10 @@ discard block  | 
                                                    ||
| 28 | 28 | |
| 29 | 29 | <?php  | 
                                                        
| 30 | 30 | // get the correct paged figure on a static page.  | 
                                                        
| 31 | -	if ( get_query_var( 'paged' ) ) { | 
                                                        |
| 32 | - $paged = get_query_var( 'paged' );  | 
                                                        |
| 33 | -	} elseif ( get_query_var( 'page' ) ) { | 
                                                        |
| 34 | - $paged = get_query_var( 'page' );  | 
                                                        |
| 31 | +	if (get_query_var('paged')) { | 
                                                        |
| 32 | +		   $paged = get_query_var('paged'); | 
                                                        |
| 33 | +	} elseif (get_query_var('page')) { | 
                                                        |
| 34 | +		   $paged = get_query_var('page'); | 
                                                        |
| 35 | 35 |  	} else { | 
                                                        
| 36 | 36 | $paged = 1;  | 
                                                        
| 37 | 37 | }  | 
                                                        
@@ -47,12 +47,12 @@ discard block  | 
                                                    ||
| 47 | 47 | 'order' => 'ASC',  | 
                                                        
| 48 | 48 | );  | 
                                                        
| 49 | 49 | |
| 50 | - $loop = new WP_Query( $args );  | 
                                                        |
| 50 | + $loop = new WP_Query($args);  | 
                                                        |
| 51 | 51 | // Start the loop.  | 
                                                        
| 52 | - if ( $loop->have_posts() ) :  | 
                                                        |
| 53 | - while ( $loop->have_posts() ) : $loop->the_post();  | 
                                                        |
| 52 | + if ($loop->have_posts()) :  | 
                                                        |
| 53 | + while ($loop->have_posts()) : $loop->the_post();  | 
                                                        |
| 54 | 54 | |
| 55 | - get_template_part( 'content-series' ); ?>  | 
                                                        |
| 55 | +			get_template_part('content-series'); ?> | 
                                                        |
| 56 | 56 | |
| 57 | 57 | <?php endwhile;  | 
                                                        
| 58 | 58 | wp_reset_postdata(); ?>  | 
                                                        
@@ -61,13 +61,13 @@ discard block  | 
                                                    ||
| 61 | 61 | global $wp_query;  | 
                                                        
| 62 | 62 | |
| 63 | 63 | $big = 999999999; // need an unlikely integer.  | 
                                                        
| 64 | - $translated = __( 'Page', 'strip' ); // supply translatable string.  | 
                                                        |
| 64 | +		$translated = __('Page', 'strip'); // supply translatable string. | 
                                                        |
| 65 | 65 | |
| 66 | 66 | echo paginate_links(  | 
                                                        
| 67 | 67 | array(  | 
                                                        
| 68 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),  | 
                                                        |
| 68 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),  | 
                                                        |
| 69 | 69 | 'format' => '?paged=%#%',  | 
                                                        
| 70 | - 'current' => max( 1, get_query_var( 'paged' ) ),  | 
                                                        |
| 70 | +			'current' => max(1, get_query_var('paged')), | 
                                                        |
| 71 | 71 | 'total' => $loop->max_num_pages,  | 
                                                        
| 72 | 72 | 'before_page_number' => '<span class="screen-reader-text">' . $translated . ' </span>',  | 
                                                        
| 73 | 73 | )  | 
                                                        
@@ -75,7 +75,7 @@ discard block  | 
                                                    ||
| 75 | 75 | |
| 76 | 76 | |
| 77 | 77 | else :  | 
                                                        
| 78 | - get_template_part( 'no-results', 'archive-comic' );  | 
                                                        |
| 78 | +			get_template_part('no-results', 'archive-comic'); | 
                                                        |
| 79 | 79 | endif; ?>  | 
                                                        
| 80 | 80 | |
| 81 | 81 | </main><!-- #content -->  | 
                                                        
@@ -30,8 +30,10 @@  | 
                                                    ||
| 30 | 30 | |
| 31 | 31 | if ( ! is_single() ) :  | 
                                                        
| 32 | 32 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );  | 
                                                        
| 33 | - else :  | 
                                                        |
| 33 | +		else { | 
                                                        |
| 34 | + :  | 
                                                        |
| 34 | 35 | the_title( '<h1 class="entry-title">', '</h1>' );  | 
                                                        
| 36 | + }  | 
                                                        |
| 35 | 37 | endif;  | 
                                                        
| 36 | 38 | ?>  | 
                                                        
| 37 | 39 | </header><!-- .entry-header -->  | 
                                                        
@@ -11,35 +11,35 @@  | 
                                                    ||
| 11 | 11 | <section id="primary"  | 
                                                        
| 12 | 12 | <main id="content" role="main">  | 
                                                        
| 13 | 13 | |
| 14 | - <?php if ( have_posts() ) : ?>  | 
                                                        |
| 14 | + <?php if (have_posts()) : ?>  | 
                                                        |
| 15 | 15 | |
| 16 | 16 | <header class="page-header">  | 
                                                        
| 17 | - <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>  | 
                                                        |
| 17 | +				<h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'strip'), '<span>' . get_search_query() . '</span>'); ?></h1> | 
                                                        |
| 18 | 18 | </header><!-- .page-header -->  | 
                                                        
| 19 | 19 | |
| 20 | 20 | <?php /* Start the Loop */ ?>  | 
                                                        
| 21 | - <?php while ( have_posts() ) :  | 
                                                        |
| 21 | + <?php while (have_posts()) :  | 
                                                        |
| 22 | 22 | the_post();  | 
                                                        
| 23 | 23 | |
| 24 | - get_template_part( 'content', get_post_format() );  | 
                                                        |
| 24 | +				get_template_part('content', get_post_format()); | 
                                                        |
| 25 | 25 | |
| 26 | 26 | endwhile;  | 
                                                        
| 27 | 27 | |
| 28 | - strip_content_nav( 'nav-below' );  | 
                                                        |
| 28 | +		strip_content_nav('nav-below'); | 
                                                        |
| 29 | 29 | |
| 30 | 30 | else : ?>  | 
                                                        
| 31 | 31 | |
| 32 | 32 | <article id="post-0" class="no-results">  | 
                                                        
| 33 | 33 | <header class="page-header">  | 
                                                        
| 34 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>  | 
                                                        |
| 34 | +		<h1 class="page-title"><?php esc_html_e('Nothing Found', 'strip'); ?></h1> | 
                                                        |
| 35 | 35 | </header><!-- .page-header -->  | 
                                                        
| 36 | 36 | <div class="entry-content">  | 
                                                        
| 37 | - <p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.  | 
                                                        |
| 38 | - Would you like to search in the', 'strip' ); ?>  | 
                                                        |
| 37 | +			<p> <?php esc_html_e('Bummer, I cannot find what you are looking for. | 
                                                        |
| 38 | + Would you like to search in the', 'strip'); ?>  | 
                                                        |
| 39 | 39 | |
| 40 | - <a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>  | 
                                                        |
| 40 | +			<a href="<?php echo esc_url(get_post_type_archive_link('comic')); ?>">Comics Archive</a>? Great stuff there.</p> | 
                                                        |
| 41 | 41 | |
| 42 | - <p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>  | 
                                                        |
| 42 | +			<p><?php esc_html_e('Or do you prefer trying another search with different keywords?', 'strip'); ?></p> | 
                                                        |
| 43 | 43 | |
| 44 | 44 | <?php get_search_form(); ?>  | 
                                                        
| 45 | 45 | |
@@ -27,11 +27,14 @@  | 
                                                    ||
| 27 | 27 | |
| 28 | 28 | strip_content_nav( 'nav-below' );  | 
                                                        
| 29 | 29 | |
| 30 | - else : ?>  | 
                                                        |
| 30 | +		else { | 
                                                        |
| 31 | + : ?>  | 
                                                        |
| 31 | 32 | |
| 32 | 33 | <article id="post-0" class="no-results">  | 
                                                        
| 33 | 34 | <header class="page-header">  | 
                                                        
| 34 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>  | 
                                                        |
| 35 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' );  | 
                                                        |
| 36 | + }  | 
                                                        |
| 37 | + ?></h1>  | 
                                                        |
| 35 | 38 | </header><!-- .page-header -->  | 
                                                        
| 36 | 39 | <div class="entry-content">  | 
                                                        
| 37 | 40 | <p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.  | 
                                                        
@@ -13,15 +13,15 @@  | 
                                                    ||
| 13 | 13 | <section id="primary">  | 
                                                        
| 14 | 14 | <main id="content" role="main">  | 
                                                        
| 15 | 15 | |
| 16 | - <?php while ( have_posts() ) : the_post(); ?>  | 
                                                        |
| 16 | + <?php while (have_posts()) : the_post(); ?>  | 
                                                        |
| 17 | 17 | |
| 18 | - <?php get_template_part( 'content', get_post_format() ); ?>  | 
                                                        |
| 18 | +			<?php get_template_part('content', get_post_format()); ?> | 
                                                        |
| 19 | 19 | |
| 20 | - <?php strip_content_nav( 'nav-below' ); ?>  | 
                                                        |
| 20 | +			<?php strip_content_nav('nav-below'); ?> | 
                                                        |
| 21 | 21 | |
| 22 | 22 | <?php  | 
                                                        
| 23 | 23 | // If comments are open or we have at least one comment, load up the comment template.  | 
                                                        
| 24 | -			if ( comments_open() || '0' !== get_comments_number() ) { | 
                                                        |
| 24 | +			if (comments_open() || '0' !== get_comments_number()) { | 
                                                        |
| 25 | 25 | comments_template();  | 
                                                        
| 26 | 26 | }  | 
                                                        
| 27 | 27 | ?>  | 
                                                        
@@ -13,14 +13,14 @@  | 
                                                    ||
| 13 | 13 | <footer id="colophon" class="site-footer" role="contentinfo">  | 
                                                        
| 14 | 14 | |
| 15 | 15 | <div class="site-info">  | 
                                                        
| 16 | - © <span class="site-name"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> <?php  | 
                                                        |
| 16 | +				© <span class="site-name"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span> <?php | 
                                                        |
| 17 | 17 | $from_year = 2013;  | 
                                                        
| 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', 'Hoa' ); ?></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', 'Hoa'); ?></a> | 
                                                        |
| 24 | 24 | </div><!-- .site-info -->  | 
                                                        
| 25 | 25 | </footer><!-- #colophon -->  | 
                                                        
| 26 | 26 | </div><!-- #page -->  | 
                                                        
@@ -13,15 +13,15 @@ discard block  | 
                                                    ||
| 13 | 13 | *  | 
                                                        
| 14 | 14 | * @param $strings $classes group-blog.  | 
                                                        
| 15 | 15 | */  | 
                                                        
| 16 | -function strip_body_classes( $classes ) { | 
                                                        |
| 16 | +function strip_body_classes($classes) { | 
                                                        |
| 17 | 17 | // Adds a class of group-blog to blogs with more than 1 published author.  | 
                                                        
| 18 | -	if ( is_multi_author() ) { | 
                                                        |
| 18 | +	if (is_multi_author()) { | 
                                                        |
| 19 | 19 | $classes[] = 'group-blog';  | 
                                                        
| 20 | 20 | }  | 
                                                        
| 21 | 21 | |
| 22 | 22 | return $classes;  | 
                                                        
| 23 | 23 | }  | 
                                                        
| 24 | -add_filter( 'body_class', 'strip_body_classes' );  | 
                                                        |
| 24 | +add_filter('body_class', 'strip_body_classes'); | 
                                                        |
| 25 | 25 | |
| 26 | 26 | /**  | 
                                                        
| 27 | 27 | * Filters wp_title to print a neat <title> tag based on what is being viewed.  | 
                                                        
@@ -29,27 +29,27 @@ discard block  | 
                                                    ||
| 29 | 29 | * @param $strings $title $paged.  | 
                                                        
| 30 | 30 | * @param $strings $sep title.  | 
                                                        
| 31 | 31 | */  | 
                                                        
| 32 | -function strip_wp_title( $title, $sep ) { | 
                                                        |
| 32 | +function strip_wp_title($title, $sep) { | 
                                                        |
| 33 | 33 | global $page, $paged;  | 
                                                        
| 34 | 34 | |
| 35 | -	if ( is_feed() ) { | 
                                                        |
| 35 | +	if (is_feed()) { | 
                                                        |
| 36 | 36 | return $title;  | 
                                                        
| 37 | 37 | }  | 
                                                        
| 38 | 38 | |
| 39 | 39 | // Add the blog name.  | 
                                                        
| 40 | - $title .= get_bloginfo( 'name' );  | 
                                                        |
| 40 | +	$title .= get_bloginfo('name'); | 
                                                        |
| 41 | 41 | |
| 42 | 42 | // Add the blog description for the home/front page.  | 
                                                        
| 43 | - $site_description = get_bloginfo( 'description', 'display' );  | 
                                                        |
| 44 | -	if ( $site_description && ( is_home() || is_front_page() ) ) { | 
                                                        |
| 43 | +	$site_description = get_bloginfo('description', 'display'); | 
                                                        |
| 44 | +	if ($site_description && (is_home() || is_front_page())) { | 
                                                        |
| 45 | 45 | $title .= " $sep $site_description";  | 
                                                        
| 46 | 46 | }  | 
                                                        
| 47 | 47 | |
| 48 | 48 | // Add a page number if necessary.  | 
                                                        
| 49 | -	if ( $paged >= 2 || $page >= 2 ) { | 
                                                        |
| 50 | - $title .= " $sep " . sprintf( __( 'Page %s', 'strip' ), max( $paged, $page ) );  | 
                                                        |
| 49 | +	if ($paged >= 2 || $page >= 2) { | 
                                                        |
| 50 | +		$title .= " $sep " . sprintf(__('Page %s', 'strip'), max($paged, $page)); | 
                                                        |
| 51 | 51 | }  | 
                                                        
| 52 | 52 | |
| 53 | 53 | return $title;  | 
                                                        
| 54 | 54 | }  | 
                                                        
| 55 | -add_filter( 'wp_title', 'strip_wp_title', 10, 2 );  | 
                                                        |
| 55 | +add_filter('wp_title', 'strip_wp_title', 10, 2); | 
                                                        |