%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); echo '' . $time_string . ''; } endif; if( ! function_exists( 'travel_agency_posted_by' ) ) : /** * Posted By */ function travel_agency_posted_by(){ echo ' '; } endif; if( ! function_exists( 'travel_agency_categories' ) ) : /** * Blog Categories */ function travel_agency_categories(){ // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'travel-agency' ) ); if ( $categories_list ) { echo '' . $categories_list . ''; } } } endif; if( ! function_exists( 'travel_agency_tags' ) ) : /** * Blog Categories */ function travel_agency_tags(){ // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { $tags_list = get_the_tag_list( '', ' ' ); if ( $tags_list ) { echo '
'; // WPCS: XSS OK. } } } endif; if ( ! function_exists( 'travel_agency_comment_count' ) ) : /** * Comments counts */ function travel_agency_comment_count(){ if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'travel-agency' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), __( '1', 'travel-agency' ), '%' ); echo ''; } } endif; if( ! function_exists( 'travel_agency_sidebar_layout' ) ) : /** * Return sidebar layouts for pages */ function travel_agency_sidebar_layout(){ global $post; if( get_post_meta( $post->ID, '_sidebar_layout', true ) ){ return get_post_meta( $post->ID, '_sidebar_layout', true ); }else{ return 'right-sidebar'; } } endif; if( ! function_exists( 'travel_agency_comment_list' ) ) : /** * Callback function for Comment List * * @link https://codex.wordpress.org/Function_Reference/wp_list_comments */ function travel_agency_comment_list( $comment, $args, $depth ) { if ( 'div' === $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">