'primary',
'menu_id' => 'primary-menu',
'menu_class' => 'nav-menu',
'fallback_cb' => 'daily_construction_primary_navigation_fallback',
) );
?>
0 ) {
$length = absint( $excerpt_length );
}
return $length;
}
endif;
add_filter( 'excerpt_length', 'daily_construction_excerpt_length', 999 );
if( ! function_exists( 'daily_construction_banner_header' ) ) :
/**
* Page Header
*/
function daily_construction_banner_header() {
$show_header_image = daily_construction_get_option( 'show_header_image' );
$show_page_title = daily_construction_get_option( 'show_page_title' );
if ( is_front_page() && ! is_home() )
return;
$header_image = get_header_image();
if ( is_singular() ) :
$header_image = has_post_thumbnail() ? get_the_post_thumbnail_url( get_the_id(), 'full' ) : $header_image;
endif;
?>
';
}
endif;
add_action( 'daily_construction_banner_header', 'daily_construction_banner_header', 10 );
if( ! function_exists( 'daily_construction_banner_title' ) ) :
/**
* Page Header
*/
function daily_construction_banner_title(){
if ( ( is_front_page() && is_home() ) || is_home() ){
$your_latest_posts_title = daily_construction_get_option( 'your_latest_posts_title' );?>
', '' );
}
if( is_archive() ){
the_archive_description( '', '
' );
the_archive_title( '', ' ' );
}
if( is_search() ){ ?>
' . get_search_query() . '' ); ?>
' . esc_html__( 'Error 404', 'daily-construction' ) . '';
}
}
endif;
if ( ! function_exists( 'daily_construction_posts_tags' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function daily_construction_posts_tags() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() && has_tag() ) { ?>
';
echo '';
if ( ! empty( $social_link1 ) ) {
echo ' ';
}
if ( ! empty( $social_link2 ) ) {
echo ' ';
}
if ( ! empty( $social_link3 ) ) {
echo ' ';
}
echo ' ';
echo '';
}