$val ) { $options[ $key ] = $val; } } update_option( 'theme_mods_blog-inn', $options ); } } function blog_inn_setup() { remove_image_size('blog-way-common'); } add_action( 'after_setup_theme', 'blog_inn_setup' ); //============================================================= // Function to change default excerpt //============================================================= if ( ! function_exists( 'blog_inn_implement_excerpt_length' ) ) : /** * Implement excerpt length. * * @since 1.0.0 * * @param int $length The number of words. * @return int Excerpt length. */ function blog_inn_implement_excerpt_length( $length ) { $excerpt_length = blog_way_get_option( 'excerpt_length' ); if ( absint( $excerpt_length ) > 0 ) { $length = absint( $excerpt_length ); } return $length; } endif; if ( ! function_exists( 'blog_inn_implement_read_more' ) ) : /** * Implement read more in excerpt. * * @since 1.0.0 * * @param string $more The string shown within the more link. * @return string The excerpt. */ function blog_inn_implement_read_more( $more ) { $output = $more; $read_more_text = esc_html__('Read More', 'blog-inn'); if ( ! empty( $read_more_text ) ) { $output = '…

' . esc_html( $read_more_text ) . ' →

'; } return $output; } endif; if ( ! function_exists( 'blog_inn_hook_read_more_filters' ) ) : /** * Hook read more and excerpt length filters. * * @since 1.0.0 */ function blog_inn_hook_read_more_filters() { add_filter( 'excerpt_length', 'blog_inn_implement_excerpt_length', 999 ); add_filter( 'excerpt_more', 'blog_inn_implement_read_more' ); } endif; add_action( 'wp', 'blog_inn_hook_read_more_filters' ); function blog_way_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'cyrillic,cyrillic-ext,latin-ext,vietnamese'; /* translators: If there are characters in your language that are not supported by Droid Serif, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lora: on or off', 'blog-inn' ) ) { $fonts[] = 'Lora:400,400i,700,700i'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), '//fonts.googleapis.com/css' ); } return $fonts_url; } function blog_way_credit_action(){ ?>
WP Cane' ); ?>