*/ $use_excerpts = get_theme_mod( 'canuck_use_excerpts', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; ?>
<?php esc_attr_e( 'password required', 'canuck' ); ?> <?php esc_attr_e( '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 ); } } elseif ( has_post_format( 'quote' ) ) { if ( true === $use_excerpts && ! is_single() ) { if ( has_excerpt() ) { the_excerpt(); printf( '', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { $trim_words = get_theme_mod( 'canuck_excerpt_length', 30 ); $canuck_more = '…'; $content = get_the_content(); $content = canuck_strip_extracted_quote( $content ); $content_trimmed = wp_trim_words( $content, $trim_words, $canuck_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 ); } } elseif ( has_post_format( 'gallery' ) ) { if ( true === $use_excerpts && ! is_single() ) { if ( has_excerpt() ) { the_excerpt(); printf( '', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { the_excerpt(); } } else { $content = get_the_content(); $canuck_paged = $wp_query->get( 'page' ); if ( ! $canuck_paged || $canuck_paged < 2 ) { if ( false !== strpos( $content, 'wp:gallery' ) ) { $content = canuck_strip_first_block_gallery( $content ); $content = apply_filters( 'the_content', $content ); echo wp_kses_post( $content ); } else { the_content( esc_html__( 'Read more', 'canuck' ) ); } } else { the_content( esc_html__( 'Read more', 'canuck' ) ); } } } else { if ( true === $use_excerpts && ! is_single() ) { if ( has_excerpt() ) { the_excerpt(); printf( '', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'canuck' ) ); } else { the_excerpt(); } } else { the_content( esc_html__( 'Read more', 'canuck' ) ); } } canuck_post_meta_pages(); } else { echo get_the_password_form(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>