| @@ -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 | |
| @@ -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 --> | 
| @@ -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 --> | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | 'posts_per_page' => false, | 
| 24 | 24 | )); | 
| 25 | 25 | } | 
| 26 | -add_action( 'after_setup_theme', 'strip_infinite_scroll_setup' ); | |
| 26 | +add_action('after_setup_theme', 'strip_infinite_scroll_setup'); | |
| 27 | 27 | |
| 28 | 28 | /** | 
| 29 | 29 | * Enables Jetpack's Infinite Scroll for home (blog), disables it in WooCommerce product archives | 
| @@ -32,6 +32,6 @@ discard block | ||
| 32 | 32 | * https://wordpress.org/support/topic/suppress-infinite-blog-with-woocommerce | 
| 33 | 33 | */ | 
| 34 | 34 |  function strip_jetpack_infinite_scroll_supported() { | 
| 35 | - return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search() && ! is_post_type_archive( 'product' ) ); | |
| 35 | +	return current_theme_supports('infinite-scroll') && (is_admin() || is_home() || is_search() && ! is_post_type_archive('product')); | |
| 36 | 36 | } | 
| 37 | -add_filter( 'infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported' ); | |
| 37 | +add_filter('infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported'); | |
| @@ -11,22 +11,22 @@ | ||
| 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'); | |
| @@ -20,22 +20,22 @@ | ||
| 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( '✎', 'strip' ); ?></span> <?php echo get_the_author(); ?></h2> | |
| 32 | +		<h2 class="author-title"><span class="author-heading"><?php esc_html_e('✎', '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 --> | 
| @@ -17,14 +17,14 @@ | ||
| 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 | ?> | 
| @@ -14,28 +14,28 @@ discard block | ||
| 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 | ||
| 44 | 44 | </div><!-- .entry-wrap --> | 
| 45 | 45 | |
| 46 | 46 | <div class="site-info"> | 
| 47 | - © <span class="site-name"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> <?php | |
| 47 | +			© <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 --> |