*/ $use_excerpts = get_theme_mod( 'canuck_use_excerpts', false ); if ( ! post_password_required() ) { if ( has_post_format( 'audio' ) ) { get_template_part( '/template-parts/postformat-parts/postformat', 'audio-feature' ); } elseif ( has_post_format( 'gallery' ) ) { get_template_part( '/template-parts/postformat-parts/postformat', 'gallery-feature' ); } elseif ( has_post_format( 'image' ) ) { if ( has_post_thumbnail() ) { get_template_part( '/template-parts/postformat-parts/postformat', 'image-feature' ); } } elseif ( has_post_format( 'quote' ) ) { get_template_part( '/template-parts/postformat-parts/postformat', 'quote-feature' ); } elseif ( has_post_format( 'video' ) ) { get_template_part( '/template-parts/postformat-parts/postformat', 'video-feature' ); } else { if ( has_post_thumbnail() ) { ?>
'; } elseif ( has_post_thumbnail() ) { $background_image_url = get_template_directory_uri() . '/images/password800.jpg'; echo '' . esc_attr__( 'password required', 'canuck' ) . ''; } ?>

%2$s
', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { the_excerpt(); } } else { $content = get_the_content(); $args = array( 'type' => 'audio', 'split_media' => 'true', ); $embed_audio = canuck_media_grabber_audio( $args ); $content = str_replace( $embed_audio, '', $content ); $content = apply_filters( 'the_content', $content ); echo wp_kses_post( $content ); } ?>
%2$s
', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { $trim_words = get_theme_mod( 'canuck_excerpt_length', 30 ); $more = '…
' . __( 'Read More', 'canuck' ) . '
'; $content = get_the_content(); $content = canuck_strip_extracted_quote( $content ); $content_trimmed = wp_trim_words( $content, $trim_words, $more ); $excerpt = apply_filters( 'the_excerpt', $content_trimmed ); echo wp_kses_post( $excerpt ); } } else { $content = get_the_content(); $content = canuck_strip_extracted_quote( $content ); $content = apply_filters( 'the_content', $content ); echo wp_kses_post( $content ); } } else { if ( true === $use_excerpts && ! is_single() ) { if ( has_excerpt() ) { the_excerpt(); printf( '
%2$s
', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { the_excerpt(); } } else { the_content( esc_html__( 'Read more', 'canuck' ) ); } }// End if(). canuck_post_meta_pages(); } else { echo get_the_password_form();// XSS OK. }// End if(). ?>