post_content; if ( ! empty( $post_object->post_excerpt ) ) { $source_content = $post_object->post_excerpt; } $source_content = strip_shortcodes( $source_content ); $trimmed_content = wp_trim_words( $source_content, $length, '…' ); return $trimmed_content; } endif; if ( ! function_exists( 'blorigan_breadcrumb' ) ) : /** * Breadcrumb. * * @since 1.0.0 */ function blorigan_breadcrumb() { if ( ! function_exists( 'breadcrumb_trail' ) ) { require_once trailingslashit( get_template_directory() ) . 'vendors/breadcrumbs/breadcrumbs.php'; } $breadcrumb_args = array( 'container' => 'div', 'show_browse' => false, ); breadcrumb_trail( $breadcrumb_args ); } endif; if ( ! function_exists( 'blorigan_fonts_url' ) ) : /** * Return fonts URL. * * @since 1.0.0 * @return string Font URL. */ function blorigan_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* translators: If there are characters in your language that are not supported by Barlow, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Barlow font: on or off', 'blorigan' ) ) { $fonts[] = 'Barlow:400italic,700italic,300,400,500,600,700'; } /* translators: If there are characters in your language that are not supported by Barlow Semi Condensed, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Barlow Semi Condensed font: on or off', 'blorigan' ) ) { $fonts[] = 'Barlow Semi Condensed:400italic,700italic,300,400,500,600,700'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ); } return $fonts_url; } endif; if ( ! function_exists( 'blorigan_primary_navigation_fallback' ) ) : /** * Fallback for primary navigation. * * @since 1.0.0 */ function blorigan_primary_navigation_fallback() { echo '