@@ -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); |
@@ -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'); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @package strip |
19 | 19 | */ |
20 | 20 | function strip_custom_header_setup() { |
21 | - add_theme_support( 'custom-header', apply_filters( 'strip_custom_header_args', array( |
|
21 | + add_theme_support('custom-header', apply_filters('strip_custom_header_args', array( |
|
22 | 22 | 'default-image' => get_template_directory_uri() . '/assets/images/Default-header.png', |
23 | 23 | 'default-text-color' => '000', |
24 | 24 | 'flex-width' => true, |
@@ -28,20 +28,20 @@ discard block |
||
28 | 28 | 'wp-head-callback' => 'strip_header_style', |
29 | 29 | 'admin-head-callback' => 'strip_admin_header_style', |
30 | 30 | 'admin-preview-callback' => 'strip_admin_header_image', |
31 | - ) ) ); |
|
31 | + ))); |
|
32 | 32 | } |
33 | -add_action( 'after_setup_theme', 'strip_custom_header_setup' ); |
|
33 | +add_action('after_setup_theme', 'strip_custom_header_setup'); |
|
34 | 34 | |
35 | -if ( ! function_exists( 'strip_header_style' ) ) : |
|
35 | +if ( ! function_exists('strip_header_style')) : |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Register default header image |
39 | 39 | */ |
40 | - register_default_headers( array( |
|
40 | + register_default_headers(array( |
|
41 | 41 | 'DefaultHeader' => array( |
42 | 42 | 'url' => get_template_directory_uri() . '/assets/images/Default-header.png', |
43 | 43 | 'thumbnail_url' => get_template_directory_uri() . '/assets/images/Default-header.png', |
44 | - 'description' => _x( 'DefaultHeader', 'header image description', 'strip' ), |
|
44 | + 'description' => _x('DefaultHeader', 'header image description', 'strip'), |
|
45 | 45 | ), |
46 | 46 | )); |
47 | 47 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | // If no custom options for text are set, let's bail |
56 | 56 | // get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. |
57 | - if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { |
|
57 | + if (get_theme_support('custom-header', 'default-text-color') === $header_text_color) { |
|
58 | 58 | return; |
59 | 59 | } |
60 | 60 | // If we get this far, we have custom styles. Let's do this. |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | <style type="text/css"> |
63 | 63 | <?php |
64 | 64 | // Has the text been hidden? |
65 | - if ( 'blank' === $header_text_color ) : |
|
65 | + if ('blank' === $header_text_color) : |
|
66 | 66 | ?> |
67 | 67 | .site-title, |
68 | 68 | .site-description { |
@@ -75,10 +75,10 @@ discard block |
||
75 | 75 | ?> |
76 | 76 | .site-title a, |
77 | 77 | .site-description { |
78 | - color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
78 | + color: #<?php echo esc_attr($header_text_color); ?>; |
|
79 | 79 | } |
80 | 80 | .site-title { |
81 | - border-color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
81 | + border-color: #<?php echo esc_attr($header_text_color); ?>; |
|
82 | 82 | } |
83 | 83 | <?php endif; ?> |
84 | 84 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | endif; // strip_header_style. |
89 | 89 | |
90 | -if ( ! function_exists( 'strip_admin_header_style' ) ) : |
|
90 | +if ( ! function_exists('strip_admin_header_style')) : |
|
91 | 91 | /** |
92 | 92 | * Styles the header image displayed on the Appearance > Header admin panel. |
93 | 93 | * |
@@ -120,20 +120,20 @@ discard block |
||
120 | 120 | } |
121 | 121 | endif; // strip_admin_header_style. |
122 | 122 | |
123 | -if ( ! function_exists( 'strip_admin_header_image' ) ) : |
|
123 | +if ( ! function_exists('strip_admin_header_image')) : |
|
124 | 124 | /** |
125 | 125 | * Custom header image markup displayed on the Appearance > Header admin panel. |
126 | 126 | * |
127 | 127 | * @see strip_custom_header_setup(). |
128 | 128 | */ |
129 | 129 | function strip_admin_header_image() { |
130 | - $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); |
|
130 | + $style = sprintf(' style="color:#%s;"', get_header_textcolor()); |
|
131 | 131 | $header_image = get_header_image(); |
132 | 132 | ?> |
133 | 133 | <div id="headimg"> |
134 | - <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> |
|
135 | - <div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> |
|
136 | - <?php if ( get_header_image() ) : ?> |
|
134 | + <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1> |
|
135 | + <div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo('description'); ?></div> |
|
136 | + <?php if (get_header_image()) : ?> |
|
137 | 137 | <img src="<?php header_image(); ?>" alt=""> |
138 | 138 | <?php endif; ?> |
139 | 139 | </div><!-- #headimg --> |
@@ -71,11 +71,14 @@ |
||
71 | 71 | } |
72 | 72 | <?php |
73 | 73 | // If the user has set a custom color for the text use that. |
74 | - else : |
|
74 | + else { |
|
75 | + : |
|
75 | 76 | ?> |
76 | 77 | .site-title a, |
77 | 78 | .site-description { |
78 | - color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
79 | + color: #<?php echo esc_attr( $header_text_color ); |
|
80 | + } |
|
81 | + ?>; |
|
79 | 82 | } |
80 | 83 | .site-title { |
81 | 84 | border-color: #<?php echo esc_attr( $header_text_color ); ?>; |
@@ -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 | ?> |
@@ -28,8 +28,10 @@ |
||
28 | 28 | |
29 | 29 | if ( ! is_single() ) : |
30 | 30 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
31 | - else : |
|
31 | + else { |
|
32 | + : |
|
32 | 33 | the_title( '<h1 class="entry-title">', '</h1>' ); |
34 | + } |
|
33 | 35 | endif; ?> |
34 | 36 | |
35 | 37 | <div class="entry-content clear"> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | // Access global variable directly to set content_width. |
10 | -if ( isset( $GLOBALS['content_width'] ) ) { |
|
10 | +if (isset($GLOBALS['content_width'])) { |
|
11 | 11 | $GLOBALS['content_width'] = 1920; |
12 | 12 | } |
13 | 13 | ?> |
@@ -15,25 +15,25 @@ discard block |
||
15 | 15 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
16 | 16 | <div class="entry-wrap wrap clear"> |
17 | 17 | |
18 | -<?php if ( '' !== get_the_post_thumbnail() ) : |
|
19 | - the_post_thumbnail( 'strip-featured-thumbnail' ); |
|
18 | +<?php if ('' !== get_the_post_thumbnail()) : |
|
19 | + the_post_thumbnail('strip-featured-thumbnail'); |
|
20 | 20 | endif; ?> |
21 | 21 | |
22 | 22 | <header class="entry-header"> |
23 | 23 | <?php |
24 | - $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
|
25 | - if ( $categories_list && strip_categorized_blog() ) { |
|
24 | + $categories_list = get_the_category_list(__(', ', 'strip')); |
|
25 | + if ($categories_list && strip_categorized_blog()) { |
|
26 | 26 | echo '<span class="categories-links">' . $categories_list . '</span>'; |
27 | 27 | } |
28 | 28 | |
29 | - if ( ! is_single() ) : |
|
30 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
29 | + if ( ! is_single()) : |
|
30 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
31 | 31 | else : |
32 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
32 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
33 | 33 | endif; ?> |
34 | 34 | |
35 | 35 | <div class="entry-content clear"> |
36 | - <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'strip' ) ); ?> |
|
36 | + <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'strip')); ?> |
|
37 | 37 | |
38 | 38 | </div><!-- .entry-content --> |
39 | 39 | </header><!-- .entry-header --> |
@@ -41,16 +41,16 @@ discard block |
||
41 | 41 | <footer class="entry-meta"> |
42 | 42 | <?php strip_entry_meta(); ?> |
43 | 43 | |
44 | - <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'gallery' ) ); ?></a></span> |
|
44 | + <span class="entry-format"><a href="<?php echo esc_url(get_post_format_link('gallery')); ?>" title="<?php echo esc_attr(sprintf(__('All %s posts', 'strip'), get_post_format_string('gallery'))); ?>"><?php echo esc_html(get_post_format_string('gallery')); ?></a></span> |
|
45 | 45 | |
46 | - <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
|
46 | + <?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?> |
|
47 | 47 | </footer><!-- .entry-meta --> |
48 | 48 | |
49 | - <?php if ( has_excerpt() ) : ?> |
|
49 | + <?php if (has_excerpt()) : ?> |
|
50 | 50 | <div class="entry-summary"> |
51 | - <?php do_action( 'strip_formatted_posts_excerpt_before' ); ?> |
|
51 | + <?php do_action('strip_formatted_posts_excerpt_before'); ?> |
|
52 | 52 | <?php the_excerpt(); ?> |
53 | - <?php do_action( 'strip_formatted_posts_excerpt_after' ); ?> |
|
53 | + <?php do_action('strip_formatted_posts_excerpt_after'); ?> |
|
54 | 54 | </div><!-- .entry-caption --> |
55 | 55 | <?php endif; ?> |
56 | 56 |
@@ -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 --> |
@@ -10,10 +10,10 @@ discard block |
||
10 | 10 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
11 | 11 | |
12 | 12 | <div class="wrap"> |
13 | - <?php if ( '' !== get_the_post_thumbnail() ) : ?> |
|
13 | + <?php if ('' !== get_the_post_thumbnail()) : ?> |
|
14 | 14 | |
15 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
15 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'strip'), the_title_attribute('echo=0'))); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
16 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
17 | 17 | </a> |
18 | 18 | <?php endif; ?> |
19 | 19 | |
@@ -24,17 +24,17 @@ discard block |
||
24 | 24 | <header class="entry-header"> |
25 | 25 | |
26 | 26 | <?php |
27 | - edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' ); |
|
27 | + edit_post_link(__('Edit Comic', 'strip'), '<span class="edit-link">', '</span>'); |
|
28 | 28 | |
29 | - if ( ! is_single() ) : |
|
30 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
29 | + if ( ! is_single()) : |
|
30 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
31 | 31 | else : |
32 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
32 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
33 | 33 | endif; ?> |
34 | 34 | |
35 | 35 | </header><!-- .entry-header --> |
36 | 36 | |
37 | - <?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?> |
|
37 | + <?php if (is_search()) : // Only display Excerpts for Search — implement search for custom taxonomies. ?> |
|
38 | 38 | |
39 | 39 | <div class="entry-summary"> |
40 | 40 | <?php the_excerpt(); ?> |
@@ -28,8 +28,10 @@ discard block |
||
28 | 28 | |
29 | 29 | if ( ! is_single() ) : |
30 | 30 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
31 | - else : |
|
31 | + else { |
|
32 | + : |
|
32 | 33 | the_title( '<h1 class="entry-title">', '</h1>' ); |
34 | + } |
|
33 | 35 | endif; ?> |
34 | 36 | |
35 | 37 | </header><!-- .entry-header --> |
@@ -40,10 +42,13 @@ discard block |
||
40 | 42 | <?php the_excerpt(); ?> |
41 | 43 | </div><!-- .entry-summary --> |
42 | 44 | |
43 | - <?php else : ?> |
|
45 | + <?php else { |
|
46 | + : ?> |
|
44 | 47 | |
45 | 48 | <div class="entry-comic"> |
46 | - <?php the_content(); ?> |
|
49 | + <?php the_content(); |
|
50 | +} |
|
51 | +?> |
|
47 | 52 | |
48 | 53 | <?php endif; ?> |
49 | 54 | </div><!-- .entry-content --> |