'nav',
'show_browse' => false,
);
breadcrumb_trail( $breadcrumb_args );
}
endif;
/**
*
* Excerpt Length
* @since 1.0.0
*
*/
if ( ! function_exists( 'acoustics_excerpt_length' ) ) :
function acoustics_excerpt_length( $length ) {
if ( is_admin() ) {
return $length;
}
return 75;
}
add_filter( 'excerpt_length', 'acoustics_excerpt_length', 100 );
endif;
if ( ! function_exists( 'acoustics_excerpt_more' ) ) :
/**
* Replaces "[...]" (appended to automatically generated excerpts) with ... and a option from customizer
*
* @return string option from customizer prepended with an ellipsis.
*/
function acoustics_excerpt_more( $link ) {
if ( is_admin() ) {
return $link;
}
return sprintf( '%2$s',
get_permalink( get_the_ID() ),
__( 'Read more', 'acoustics' )
);
}
endif;
add_filter( 'excerpt_more', 'acoustics_excerpt_more' );
if ( ! function_exists( 'acoustics_custom_excerpt_more' ) ) :
/**
* Replaces "[...]" (appended to automatically generated excerpts) with ... and a option from customizer
*
* @return string option from customizer prepended with an ellipsis.
*/
function acoustics_custom_excerpt_more( $excerpt ) {
if ( has_excerpt() && ! is_attachment() ) {
$link = sprintf( '%2$s',
get_permalink( get_the_ID() ),
__( 'Read more', 'acoustics' )
);
$excerpt .= $link;
}
return $excerpt;
}
endif;
add_filter( 'get_the_excerpt', 'acoustics_custom_excerpt_more' );
if( ! function_exists('acoustics_categories')):
function acoustics_categories() {
$category_list = array();
$categories = get_categories(
array(
'hide_empty' => 0,
)
);
$category_list[0] = esc_html__('Select Category', 'acoustics');
foreach ($categories as $category):
$category_list[$category->term_id] = $category->name;
endforeach;
return $category_list;
}
endif;
if ( function_exists( 'acoustics_footer_social' ) ):
add_action( 'footer_social', 'acoustics_footer_social', 10 );
endif;