',
) );
}
add_action( 'widgets_init', 'appointpres_widgets_init' );
/*Post date show*/
if ( ! function_exists( 'appointment_posted_on' ) ) :
function appointment_posted_on() {
printf( __( 'Posted by %7$son ', 'appointment' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( esc_attr__( 'View all posts by %s', 'appointment' ), get_the_author() ),
esc_html( get_the_author() )
);
}
endif;
// code for comment
if ( ! function_exists( 'appointment_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* To override this walker in a child theme without modifying the comments template
* simply create your own appointment(), and that function will be used instead.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since appointment
*/
function appointment_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
//get theme data
global $data;
//translations
$leave_reply = $data['translation_reply_to_coment'] ? $data['translation_reply_to_coment'] : __('Reply','appointment');
?>