urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), '//fonts.googleapis.com/css' ); } return $fonts_url; } } if ( ! function_exists( 'glaze_blog_lite_navigation_fallback' ) ) { /** * Callback function for 'fallback_cb' in argument of 'wp_nav_menu'. * * @since 1.0.0 */ function glaze_blog_lite_navigation_fallback() { ?> '; return $form; } } add_filter( 'get_search_form', 'glaze_blog_lite_search_form' ); if ( ! function_exists( 'glaze_blog_lite_excerpt_length' ) ) { /** * Modify post excerpt length. * * @param int $length Excerpt length. */ function glaze_blog_lite_excerpt_length( $length ) { if ( is_admin() ) { return $length; } $excerpt_length = glaze_blog_lite_get_option( 'excerpt_length' ); if ( absint( $excerpt_length ) > 0 ) { $excerpt_length = absint( $excerpt_length ); } return $excerpt_length; } } add_filter( 'excerpt_length', 'glaze_blog_lite_excerpt_length' ); if ( ! function_exists( 'glaze_blog_lite_excerpt_more' ) ) { /** * Trailing text for post excerpts. * * @param string $more The string shown within the more link. * @return string */ function glaze_blog_lite_excerpt_more( $more ) { if ( is_admin() ) { return $more; } return '...'; } } add_filter( 'excerpt_more', 'glaze_blog_lite_excerpt_more' );