= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( _e( 'Page', 'appointment' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'appointment_title', 10,2 ); add_filter('get_avatar','appointment_add_gravatar_class'); function appointment_add_gravatar_class($class) { $class = str_replace("class='avatar", "class='img-circle", $class); return $class; } function appointment_add_to_author_profile( $contactmethods ) { $contactmethods['facebook_profile'] = __('Facebook Profile URL','appointment'); $contactmethods['twitter_profile'] = __('Twitter Profile URL','appointment'); $contactmethods['linkedin_profile'] = __('Linkedin Profile URL','appointment'); $contactmethods['google_profile'] = __('Google Profile URL','appointment'); return $contactmethods; } add_filter( 'user_contactmethods', 'appointment_add_to_author_profile', 10, 1); /********** Image Resize *************/ if ( function_exists( 'add_image_size' ) ) { add_image_size('appointment_latest_news_img',190,190,true); add_image_size('webriti_blogdetail_img',750,350,true); add_image_size('webriti_blogright_img',270,260,true); } function appointment_excerpt_length($length ) { return 25; } add_filter( 'excerpt_length', 'appointment_excerpt_length', 999 ); add_filter('get_the_excerpt','appointment_post_slider_excerpt'); add_filter('excerpt_more','__return_false'); function appointment_post_slider_excerpt($output){ if(empty($output)) { } else { if(str_word_count($output) < 25) { return '
' .''.$output.''.'
'; } else { return '
' .''.$output.''.'
'. '
Read More
'; } } } function get_home_blog_excerpt() { global $post; $excerpt = get_the_content(); $excerpt = strip_tags(preg_replace(" (\[.*?\])",'',$excerpt)); $excerpt = strip_shortcodes($excerpt); $original_len = strlen($excerpt); $excerpt = substr($excerpt, 0, 145); $len=strlen($excerpt); if($original_len>275) { $excerpt = $excerpt; return $excerpt . '
Read More
'; } else { return $excerpt; } } ?>