',
esc_url( get_permalink( get_the_ID() ) ),
esc_html__( 'Read More', 'canuck' )
);
} else {
the_excerpt();
}
} elseif ( has_post_format( 'quote' ) ) {
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 {
if ( has_excerpt() ) {
the_excerpt();
printf(
'',
esc_url( get_permalink( get_the_ID() ) ),
esc_html__( 'Read More', 'canuck' )
);
} else {
the_excerpt();
}
}// End if().
canuck_post_meta_pages();
} else {
echo get_the_password_form(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}// End if().
?>