@@ -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 = 2016; |
18 | - $this_year = (int) date( 'Y' ); |
|
19 | - echo esc_html( $from_year . (($from_year !== $this_year) ? '-' . $this_year : '') );?> |
|
18 | + $this_year = (int) date('Y'); |
|
19 | + echo esc_html($from_year . (($from_year !== $this_year) ? '-' . $this_year : '')); ?> |
|
20 | 20 | <span class="sep"> | </span> |
21 | - <?php do_action( 'strip_credits' ); |
|
21 | + <?php do_action('strip_credits'); |
|
22 | 22 | ?> |
23 | - <a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip', 'strip' ) ); ?>"><?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'strip' ), 'strip', 'SILENT COMICS' ); ?></a> |
|
23 | + <a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip', 'strip')); ?>"><?php printf(esc_html__('Theme: %1$s by %2$s.', 'strip'), 'strip', 'SILENT COMICS'); ?></a> |
|
24 | 24 | </div><!-- .site-info --> |
25 | 25 | </footer><!-- #colophon --> |
26 | 26 | </div><!-- #page --> |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | <div class="wrap"> |
18 | 18 | <header class="entry-header"> |
19 | 19 | <h3 class="taxonomy-description"> |
20 | - <?php printf( '<a href="%s" class="post-parent-title">%s</a>', |
|
21 | - esc_url( get_post_type_archive_link( 'comic' ) ), |
|
22 | - esc_html( get_the_title() ) |
|
20 | + <?php printf('<a href="%s" class="post-parent-title">%s</a>', |
|
21 | + esc_url(get_post_type_archive_link('comic')), |
|
22 | + esc_html(get_the_title()) |
|
23 | 23 | ); ?> |
24 | 24 | </a></h3> |
25 | 25 | <h1 class="page-title"><?php the_title(); ?></h1> |
@@ -29,34 +29,34 @@ discard block |
||
29 | 29 | |
30 | 30 | <?php |
31 | 31 | // get the correct paged figure on a Custom Page That Isn’t Static Home Page. |
32 | - $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?> |
|
32 | + $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> |
|
33 | 33 | |
34 | 34 | |
35 | 35 | <?php |
36 | 36 | |
37 | 37 | // Call and run loop in descending order. |
38 | - $loop = new WP_Query( array( |
|
38 | + $loop = new WP_Query(array( |
|
39 | 39 | 'post_type' => 'comic', |
40 | 40 | 'story' => '', // add story term here if you want this template to only archive a specific story. |
41 | 41 | 'posts_per_page' => 9, // changes default Blog pages number "reading settings" set in dashboard. |
42 | 42 | 'paged' => $paged, // you absolutely need this. |
43 | 43 | 'orderby' => 'title', // order by title or date. |
44 | 44 | 'order' => 'ASC', |
45 | - ) ); |
|
45 | + )); |
|
46 | 46 | |
47 | 47 | // Start the loop. |
48 | - if ( $loop->have_posts() ) : |
|
49 | - while ( $loop->have_posts() ) : |
|
48 | + if ($loop->have_posts()) : |
|
49 | + while ($loop->have_posts()) : |
|
50 | 50 | $loop->the_post(); |
51 | 51 | ?> |
52 | 52 | <div class="three-column"> |
53 | - <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ),the_title_attribute( 'echo=0' ) ); ?>"></a> |
|
54 | - <?php if ( get_the_post_thumbnail() !== '' ) { |
|
53 | + <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"></a> |
|
54 | + <?php if (get_the_post_thumbnail() !== '') { |
|
55 | 55 | |
56 | 56 | echo '<a href="'; |
57 | 57 | the_permalink(); |
58 | 58 | echo '" class="thumbnail-wrapper">'; |
59 | - the_post_thumbnail( 'strip-medium' ); |
|
59 | + the_post_thumbnail('strip-medium'); |
|
60 | 60 | |
61 | 61 | echo '</a>'; |
62 | 62 | |
@@ -66,12 +66,12 @@ discard block |
||
66 | 66 | the_permalink(); |
67 | 67 | echo '" class="thumbnail-wrapper">'; |
68 | 68 | echo '<img src="'; |
69 | - echo esc_html( get_first_image( 'strip-medium', 'url' ) ); |
|
69 | + echo esc_html(get_first_image('strip-medium', 'url')); |
|
70 | 70 | echo '" alt="" />'; |
71 | 71 | echo '</a>'; |
72 | 72 | } ?> |
73 | 73 | |
74 | -<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2> |
|
74 | +<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> |
|
75 | 75 | |
76 | 76 | </div><!-- .column --> |
77 | 77 | <?php endwhile; ?> |
@@ -82,23 +82,23 @@ discard block |
||
82 | 82 | |
83 | 83 | <?php |
84 | 84 | $big = 999999999; // need an unlikely integer. |
85 | - $translated = __( 'Page', 'strip' ); // supply translatable string. |
|
85 | + $translated = __('Page', 'strip'); // supply translatable string. |
|
86 | 86 | |
87 | - echo wp_kses_post( paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/. |
|
87 | + echo wp_kses_post(paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/. |
|
88 | 88 | array( |
89 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
89 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), |
|
90 | 90 | 'format' => '?paged=%#%', |
91 | - 'current' => max( 1, get_query_var( 'paged', 1 ) ), |
|
91 | + 'current' => max(1, get_query_var('paged', 1)), |
|
92 | 92 | 'total' => $loop->max_num_pages, |
93 | 93 | 'before_page_number' => '<span class="screen-reader-text">' . $translated . ' </span>', |
94 | - 'prev_text' => esc_html__( 'Previous', 'strip' ), // If you want to change the previous link text. |
|
95 | - 'next_text' => esc_html__( 'Next', 'strip' ), // If you want to change the next link text. |
|
94 | + 'prev_text' => esc_html__('Previous', 'strip'), // If you want to change the previous link text. |
|
95 | + 'next_text' => esc_html__('Next', 'strip'), // If you want to change the next link text. |
|
96 | 96 | 'type' => 'title', // How you want the return value to be formatted. |
97 | 97 | 'add_fragment' => '#result', // Your anchor. |
98 | - ) ) ); |
|
98 | + ) )); |
|
99 | 99 | |
100 | 100 | else : |
101 | - get_template_part( 'no-results', 'archive-comic' ); |
|
101 | + get_template_part('no-results', 'archive-comic'); |
|
102 | 102 | endif; ?> |
103 | 103 | |
104 | 104 | </div><!-- .wrap --> |
@@ -99,8 +99,10 @@ |
||
99 | 99 | 'add_fragment' => '#result', // Your anchor. |
100 | 100 | ) ) ); |
101 | 101 | |
102 | - else : |
|
102 | + else { |
|
103 | + : |
|
103 | 104 | get_template_part( 'no-results', 'archive-comic' ); |
105 | + } |
|
104 | 106 | endif; ?> |
105 | 107 | |
106 | 108 | </div><!-- .wrap --> |
@@ -10,24 +10,24 @@ discard block |
||
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <div class="wrap"> |
13 | - <?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?> |
|
14 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
15 | - <?php the_post_thumbnail( 'strip-featured-image' ); ?> |
|
13 | + <?php if ('' !== get_the_post_thumbnail() && ! is_single()) : ?> |
|
14 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'strip'), the_title_attribute('echo=0'))); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
15 | + <?php the_post_thumbnail('strip-featured-image'); ?> |
|
16 | 16 | </a> |
17 | 17 | <?php else : ?> |
18 | - <?php the_post_thumbnail( 'strip-featured-image' ); ?> |
|
18 | + <?php the_post_thumbnail('strip-featured-image'); ?> |
|
19 | 19 | <?php endif; ?> |
20 | 20 | |
21 | 21 | <header class="entry-header"> |
22 | 22 | <?php |
23 | - $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
|
24 | - if ( $categories_list && strip_categorized_blog() ) { |
|
23 | + $categories_list = get_the_category_list(__(', ', 'strip')); |
|
24 | + if ($categories_list && strip_categorized_blog()) { |
|
25 | 25 | echo '<span class="categories-links">' . $categories_list . '</span>'; |
26 | 26 | } |
27 | - if ( ! is_single() ) : |
|
28 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
27 | + if ( ! is_single()) : |
|
28 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
29 | 29 | else : |
30 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
30 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
31 | 31 | endif; |
32 | 32 | ?> |
33 | 33 | </header><!-- .entry-header --> |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | <footer class="entry-meta"> |
36 | 36 | <?php strip_entry_meta(); ?> |
37 | 37 | |
38 | - <?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?> |
|
39 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span> |
|
38 | + <?php if ( ! post_password_required() && (comments_open() || '0' !== get_comments_number())) : ?> |
|
39 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'strip'), __('1 Comment', 'strip'), __('% Comments', 'strip')); ?></span> |
|
40 | 40 | <?php endif; ?> |
41 | 41 | |
42 | - <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
|
42 | + <?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?> |
|
43 | 43 | </footer><!-- .entry-meta --> |
44 | 44 | |
45 | - <?php if ( is_search() ) : // Only display Excerpts for Search. ?> |
|
45 | + <?php if (is_search()) : // Only display Excerpts for Search. ?> |
|
46 | 46 | <div class="entry-summary"> |
47 | 47 | <?php the_excerpt(); ?> |
48 | 48 | </div><!-- .entry-summary --> |
@@ -51,16 +51,16 @@ discard block |
||
51 | 51 | <?php |
52 | 52 | the_content(sprintf( |
53 | 53 | /* translators: %s: Name of current post. */ |
54 | - esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
|
55 | - get_the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
|
54 | + esc_html(__('Continue reading %s <span class="meta-nav">→</span>', 'strip'), array('span' => array('class' => array()))), |
|
55 | + get_the_title('<span class="screen-reader-text">"', '"</span>', false) |
|
56 | 56 | )); |
57 | 57 | |
58 | 58 | wp_link_pages(array( |
59 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |
|
59 | + 'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'strip') . '</span>', |
|
60 | 60 | 'after' => '</div>', |
61 | 61 | 'link_before' => '<span>', |
62 | 62 | 'link_after' => '</span>', |
63 | - 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>%', |
|
63 | + 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'strip') . ' </span>%', |
|
64 | 64 | 'separator' => '<span class="screen-reader-text">, </span>', |
65 | 65 | )); |
66 | 66 | ?> |
@@ -14,8 +14,11 @@ discard block |
||
14 | 14 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
15 | 15 | <?php the_post_thumbnail( 'strip-featured-image' ); ?> |
16 | 16 | </a> |
17 | - <?php else : ?> |
|
18 | - <?php the_post_thumbnail( 'strip-featured-image' ); ?> |
|
17 | + <?php else { |
|
18 | + : ?> |
|
19 | + <?php the_post_thumbnail( 'strip-featured-image' ); |
|
20 | +} |
|
21 | +?> |
|
19 | 22 | <?php endif; ?> |
20 | 23 | |
21 | 24 | <header class="entry-header"> |
@@ -26,8 +29,10 @@ discard block |
||
26 | 29 | } |
27 | 30 | if ( ! is_single() ) : |
28 | 31 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
29 | - else : |
|
32 | + else { |
|
33 | + : |
|
30 | 34 | the_title( '<h1 class="entry-title">', '</h1>' ); |
35 | + } |
|
31 | 36 | endif; |
32 | 37 | ?> |
33 | 38 | </header><!-- .entry-header --> |
@@ -46,7 +51,8 @@ discard block |
||
46 | 51 | <div class="entry-summary"> |
47 | 52 | <?php the_excerpt(); ?> |
48 | 53 | </div><!-- .entry-summary --> |
49 | - <?php else : ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
50 | 56 | <div class="entry-content"> |
51 | 57 | <?php |
52 | 58 | the_content(sprintf( |
@@ -54,6 +60,7 @@ discard block |
||
54 | 60 | esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
55 | 61 | get_the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
56 | 62 | )); |
63 | +} |
|
57 | 64 | |
58 | 65 | wp_link_pages(array( |
59 | 66 | 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |
@@ -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', 240 ); |
|
23 | + $author_bio_avatar_size = apply_filters('strip_author_bio_avatar_size', 240); |
|
24 | 24 | |
25 | - echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); |
|
25 | + echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size); |
|
26 | 26 | ?> |
27 | 27 | </div><!-- .author-avatar --> |
28 | 28 | |
29 | 29 | <div class="author-meta"> |
30 | 30 | |
31 | 31 | <div class="author-description"> |
32 | - <h2 class="author-title"><span class="author-heading"><?php esc_html_e( '✎', '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 --> |
@@ -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'); |
@@ -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( 'comic' ) ); |
|
35 | + return current_theme_supports('infinite-scroll') && (is_admin() || is_home() || is_search() && ! is_post_type_archive('comic')); |
|
36 | 36 | } |
37 | -add_filter( 'infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported' ); |
|
37 | +add_filter('infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported'); |
@@ -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 = 2016; |
49 | - $this_year = (int) date( 'Y' ); |
|
50 | - echo esc_html( $from_year . (($from_year !== $this_year) ? '-' . $this_year : '') );?> |
|
49 | + $this_year = (int) date('Y'); |
|
50 | + echo esc_html($from_year . (($from_year !== $this_year) ? '-' . $this_year : '')); ?> |
|
51 | 51 | <span class="sep"> | </span> |
52 | - <?php do_action( 'strip_credits' ); ?> |
|
53 | - <a href="<?php echo esc_url( __( 'https://github.com/SilentComics/Strip', 'strip' ) ); ?>"><?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'strip' ), 'Strip', 'SILENT COMICS' ); ?></a> |
|
52 | + <?php do_action('strip_credits'); ?> |
|
53 | + <a href="<?php echo esc_url(__('https://github.com/SilentComics/Strip', 'strip')); ?>"><?php printf(esc_html__('Theme: %1$s by %2$s.', 'strip'), 'Strip', 'SILENT COMICS'); ?></a> |
|
54 | 54 | </div><!-- .site-info --> |
55 | 55 | </footer><!-- #colophon --> |
56 | 56 | </div><!-- #page --> |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | <div class="wrap"> |
18 | 18 | <header class="entry-header"> |
19 | 19 | <h3 class="taxonomy-description"> |
20 | - <?php printf( '<a href="%s" class="post-parent-title">%s</a>', |
|
21 | - esc_url( get_post_type_archive_link( 'comic' ) ), |
|
22 | - esc_html( get_the_title() ) |
|
20 | + <?php printf('<a href="%s" class="post-parent-title">%s</a>', |
|
21 | + esc_url(get_post_type_archive_link('comic')), |
|
22 | + esc_html(get_the_title()) |
|
23 | 23 | ); ?> |
24 | 24 | </a></h3> |
25 | 25 | <h1 class="page-title"><?php the_title(); ?></h1> |
@@ -29,34 +29,34 @@ discard block |
||
29 | 29 | |
30 | 30 | <?php |
31 | 31 | // get the correct paged figure on a Custom Page That Isn’t Static Home Page. |
32 | - $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?> |
|
32 | + $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> |
|
33 | 33 | |
34 | 34 | |
35 | 35 | <?php |
36 | 36 | |
37 | 37 | // Call and run loop in descending order. |
38 | - $loop = new WP_Query( array( |
|
38 | + $loop = new WP_Query(array( |
|
39 | 39 | 'post_type' => 'comic', |
40 | 40 | 'story' => '', // add story term here if you want this template to only archive a specific story. |
41 | 41 | 'posts_per_page' => 12, // changes default Blog pages number "reading settings" set in dashboard. |
42 | 42 | 'paged' => $paged, // you absolutely need this. |
43 | 43 | 'orderby' => 'title', // order by title or date. |
44 | 44 | 'order' => 'ASC', |
45 | - ) ); |
|
45 | + )); |
|
46 | 46 | |
47 | 47 | // Start the loop. |
48 | - if ( $loop->have_posts() ) : |
|
49 | - while ( $loop->have_posts() ) : |
|
48 | + if ($loop->have_posts()) : |
|
49 | + while ($loop->have_posts()) : |
|
50 | 50 | $loop->the_post(); |
51 | 51 | ?> |
52 | 52 | <div class="four-column"> |
53 | - <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ),the_title_attribute( 'echo=0' ) ); ?>"></a> |
|
54 | - <?php if ( get_the_post_thumbnail() !== '' ) { |
|
53 | + <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"></a> |
|
54 | + <?php if (get_the_post_thumbnail() !== '') { |
|
55 | 55 | |
56 | 56 | echo '<a href="'; |
57 | 57 | the_permalink(); |
58 | 58 | echo '" class="thumbnail-wrapper">'; |
59 | - the_post_thumbnail( 'strip-medium' ); |
|
59 | + the_post_thumbnail('strip-medium'); |
|
60 | 60 | |
61 | 61 | echo '</a>'; |
62 | 62 | |
@@ -66,12 +66,12 @@ discard block |
||
66 | 66 | the_permalink(); |
67 | 67 | echo '" class="thumbnail-wrapper">'; |
68 | 68 | echo '<img src="'; |
69 | - echo esc_html( get_first_image( 'strip-medium', 'url' ) ); |
|
69 | + echo esc_html(get_first_image('strip-medium', 'url')); |
|
70 | 70 | echo '" alt="" />'; |
71 | 71 | echo '</a>'; |
72 | 72 | } ?> |
73 | 73 | |
74 | -<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2> |
|
74 | +<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> |
|
75 | 75 | |
76 | 76 | </div><!-- .column --> |
77 | 77 | <?php endwhile; ?> |
@@ -82,23 +82,23 @@ discard block |
||
82 | 82 | |
83 | 83 | <?php |
84 | 84 | $big = 999999999; // need an unlikely integer. |
85 | - $translated = __( 'Page', 'strip' ); // supply translatable string. |
|
85 | + $translated = __('Page', 'strip'); // supply translatable string. |
|
86 | 86 | |
87 | - echo wp_kses_post( paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/. |
|
87 | + echo wp_kses_post(paginate_links( // Data validation: wp_kses_post see https://developer.wordpress.org/reference/functions/wp_kses_post/. |
|
88 | 88 | array( |
89 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
89 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), |
|
90 | 90 | 'format' => '?paged=%#%', |
91 | - 'current' => max( 1, get_query_var( 'paged', 1 ) ), |
|
91 | + 'current' => max(1, get_query_var('paged', 1)), |
|
92 | 92 | 'total' => $loop->max_num_pages, |
93 | 93 | 'before_page_number' => '<span class="screen-reader-text">' . $translated . ' </span>', |
94 | - 'prev_text' => esc_html__( 'Previous', 'strip' ), // If you want to change the previous link text. |
|
95 | - 'next_text' => esc_html__( 'Next', 'strip' ), // If you want to change the next link text. |
|
94 | + 'prev_text' => esc_html__('Previous', 'strip'), // If you want to change the previous link text. |
|
95 | + 'next_text' => esc_html__('Next', 'strip'), // If you want to change the next link text. |
|
96 | 96 | 'type' => 'title', // How you want the return value to be formatted. |
97 | 97 | 'add_fragment' => '#result', // Your anchor. |
98 | - ) ) ); |
|
98 | + ) )); |
|
99 | 99 | |
100 | 100 | else : |
101 | - get_template_part( 'no-results', 'archive-comic' ); |
|
101 | + get_template_part('no-results', 'archive-comic'); |
|
102 | 102 | endif; ?> |
103 | 103 | |
104 | 104 | </div><!-- .wrap --> |
@@ -99,8 +99,10 @@ |
||
99 | 99 | 'add_fragment' => '#result', // Your anchor. |
100 | 100 | ) ) ); |
101 | 101 | |
102 | - else : |
|
102 | + else { |
|
103 | + : |
|
103 | 104 | get_template_part( 'no-results', 'archive-comic' ); |
105 | + } |
|
104 | 106 | endif; ?> |
105 | 107 | |
106 | 108 | </div><!-- .wrap --> |
@@ -1,1 +1,1 @@ |
||
1 | -<a href="<?php echo esc_url( site_url( '/' ) ); ?>" class="logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 198 99"><style>.logo :hover{fill: #ff99cc;}:visited {fill: #000;}</style> <path d="M15.4 44.2c-4.1 0-7.1-3.2-7.6-7.1l-4.1 1.2c1.2 5.9 5.8 9.9 11.9 9.9c6.6 0 12-5.1 12-11.8 c0-6.1-4.2-8.6-9.2-10.7l-2.5-1.1c-2.6-1.2-6-2.7-6-6c0-3.5 2.9-5.9 6.3-5.9c3.2 0 5.1 1.5 6.6 4.1l3.4-2.2c-2-3.7-5.6-5.9-9.9-5.9 c-5.7 0-10.7 3.8-10.7 9.7c0 5.5 3.8 7.7 8.3 9.8l2.3 1c3.5 1.6 7 3.1 7 7.6C23.3 41.1 19.5 44.2 15.4 44.2z"/><rect x="42.5" y="9.4" width="4.3" height="38.2"/><polygon points="63.6,9.4 63.6,47.5 78.3,47.5 78.3,43.6 67.8,43.6 67.8,9.4"/><polygon points="111.4,13.3 111.4,9.4 91.6,9.4 91.6,47.5 111.4,47.5 111.4,43.6 95.9,43.6 95.9,28.6 111,28.6 111,24.7 95.9,24.7 95.9,13.3"/><polygon points="157.3,38.9 127.5,7.8 127.5,47.5 131.8,47.5 131.8,18.1 161.5,49.2 161.5,9.4 157.3,9.4"/><polygon points="175.2,13.3 184.4,13.3 184.4,47.5 188.7,47.5 188.7,13.3 198,13.3 198,9.4 175.2,9.4"/><path d="M19.9 90.3c4 0 8.1-1.4 11.4-3.7v-5.3c-3 3-7.2 5.1-11.5 5.1c-8.5 0-15.5-7.4-15.5-15.8 c0-8.4 6.9-15.8 15.4-15.8c4.4 0 8.6 1.9 11.6 5.1v-5.3c-3.4-2.5-7.1-3.7-11.4-3.7C9 50.9 0 59.8 0 70.8C0 81.6 9.1 90.3 19.9 90.3 z"/><path d="M36.5 70.7c0 11 9 19.7 19.9 19.7c10.9 0 19.9-8.7 19.9-19.7c0-10.9-9-19.8-19.9-19.8 C45.5 50.9 36.5 59.7 36.5 70.7z M56.4 54.8C65.2 54.8 72 62 72 70.6c0 8.6-7 15.8-15.6 15.8c-8.7 0-15.6-7.2-15.6-15.8 C40.8 62 47.7 54.8 56.4 54.8z"/><polygon points="79.3,89.7 83.6,89.7 88.5,63.9 88.6,63.9 100.9,91.2 113.2,63.9 113.3,63.9 118.2,89.7 122.5,89.7 114.8,49.4 100.9,81.4 87,49.4"/><rect x="127.5" y="51.5" width="4.3" height="38.1"/><path d="M156.9 54.8c4.4 0 8.6 1.9 11.6 5.1v-5.3c-3.4-2.5-7.1-3.7-11.4-3.7c-10.9 0-19.9 9-19.9 19.9 c0 10.8 9.1 19.6 19.9 19.6c4 0 8.1-1.4 11.4-3.7v-5.3c-3 3-7.2 5.1-11.5 5.1c-8.5 0-15.5-7.4-15.5-15.8 C141.6 62.2 148.4 54.8 156.9 54.8z"/><path d="M185.7 86.4c-4.1 0-7.1-3.2-7.6-7.1l-4.1 1.2c1.2 5.9 5.8 9.9 11.9 9.9c6.6 0 12-5.1 12-11.8 c0-6.1-4.2-8.6-9.2-10.7l-2.5-1.1c-2.6-1.2-6-2.7-6-6c0-3.5 2.9-5.9 6.3-5.9c3.2 0 5.1 1.5 6.6 4.1l3.4-2.2c-2-3.7-5.6-5.9-9.9-5.9 c-5.7 0-10.7 3.8-10.7 9.7c0 5.5 3.8 7.7 8.3 9.8l2.3 1c3.5 1.6 7 3.1 7 7.6C193.6 83.3 189.8 86.4 185.7 86.4z"/><rect y="97" width="198" height="2"/><rect y="0" width="198" height="2"/></svg></a> |
|
1 | +<a href="<?php echo esc_url(site_url('/')); ?>" class="logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 198 99"><style>.logo :hover{fill: #ff99cc;}:visited {fill: #000;}</style> <path d="M15.4 44.2c-4.1 0-7.1-3.2-7.6-7.1l-4.1 1.2c1.2 5.9 5.8 9.9 11.9 9.9c6.6 0 12-5.1 12-11.8 c0-6.1-4.2-8.6-9.2-10.7l-2.5-1.1c-2.6-1.2-6-2.7-6-6c0-3.5 2.9-5.9 6.3-5.9c3.2 0 5.1 1.5 6.6 4.1l3.4-2.2c-2-3.7-5.6-5.9-9.9-5.9 c-5.7 0-10.7 3.8-10.7 9.7c0 5.5 3.8 7.7 8.3 9.8l2.3 1c3.5 1.6 7 3.1 7 7.6C23.3 41.1 19.5 44.2 15.4 44.2z"/><rect x="42.5" y="9.4" width="4.3" height="38.2"/><polygon points="63.6,9.4 63.6,47.5 78.3,47.5 78.3,43.6 67.8,43.6 67.8,9.4"/><polygon points="111.4,13.3 111.4,9.4 91.6,9.4 91.6,47.5 111.4,47.5 111.4,43.6 95.9,43.6 95.9,28.6 111,28.6 111,24.7 95.9,24.7 95.9,13.3"/><polygon points="157.3,38.9 127.5,7.8 127.5,47.5 131.8,47.5 131.8,18.1 161.5,49.2 161.5,9.4 157.3,9.4"/><polygon points="175.2,13.3 184.4,13.3 184.4,47.5 188.7,47.5 188.7,13.3 198,13.3 198,9.4 175.2,9.4"/><path d="M19.9 90.3c4 0 8.1-1.4 11.4-3.7v-5.3c-3 3-7.2 5.1-11.5 5.1c-8.5 0-15.5-7.4-15.5-15.8 c0-8.4 6.9-15.8 15.4-15.8c4.4 0 8.6 1.9 11.6 5.1v-5.3c-3.4-2.5-7.1-3.7-11.4-3.7C9 50.9 0 59.8 0 70.8C0 81.6 9.1 90.3 19.9 90.3 z"/><path d="M36.5 70.7c0 11 9 19.7 19.9 19.7c10.9 0 19.9-8.7 19.9-19.7c0-10.9-9-19.8-19.9-19.8 C45.5 50.9 36.5 59.7 36.5 70.7z M56.4 54.8C65.2 54.8 72 62 72 70.6c0 8.6-7 15.8-15.6 15.8c-8.7 0-15.6-7.2-15.6-15.8 C40.8 62 47.7 54.8 56.4 54.8z"/><polygon points="79.3,89.7 83.6,89.7 88.5,63.9 88.6,63.9 100.9,91.2 113.2,63.9 113.3,63.9 118.2,89.7 122.5,89.7 114.8,49.4 100.9,81.4 87,49.4"/><rect x="127.5" y="51.5" width="4.3" height="38.1"/><path d="M156.9 54.8c4.4 0 8.6 1.9 11.6 5.1v-5.3c-3.4-2.5-7.1-3.7-11.4-3.7c-10.9 0-19.9 9-19.9 19.9 c0 10.8 9.1 19.6 19.9 19.6c4 0 8.1-1.4 11.4-3.7v-5.3c-3 3-7.2 5.1-11.5 5.1c-8.5 0-15.5-7.4-15.5-15.8 C141.6 62.2 148.4 54.8 156.9 54.8z"/><path d="M185.7 86.4c-4.1 0-7.1-3.2-7.6-7.1l-4.1 1.2c1.2 5.9 5.8 9.9 11.9 9.9c6.6 0 12-5.1 12-11.8 c0-6.1-4.2-8.6-9.2-10.7l-2.5-1.1c-2.6-1.2-6-2.7-6-6c0-3.5 2.9-5.9 6.3-5.9c3.2 0 5.1 1.5 6.6 4.1l3.4-2.2c-2-3.7-5.6-5.9-9.9-5.9 c-5.7 0-10.7 3.8-10.7 9.7c0 5.5 3.8 7.7 8.3 9.8l2.3 1c3.5 1.6 7 3.1 7 7.6C193.6 83.3 189.8 86.4 185.7 86.4z"/><rect y="97" width="198" height="2"/><rect y="0" width="198" height="2"/></svg></a> |