post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } } if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { return; } $nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation'; ?> %3$s'; } return $template; } } if ( ! function_exists( 'hotelgalaxy_footer_meta' ) ) { add_action( 'hotelgalaxy_get_category', 'hotelgalaxy_footer_meta' ); function hotelgalaxy_footer_meta() { $post_types = apply_filters( 'hotelgalaxy_footer_meta_post_types', array( 'post', ) ); if ( in_array( get_post_type(), $post_types ) ) : ?>
%1$s %2$s ', esc_html_x( 'Categories', 'Used before category names.', 'hotel-galaxy'), $categories_list ) ); } } if ( 'tags' === $item ) { $tags = apply_filters( 'hotelgalaxy_show_tags', true ); $term_separator = apply_filters( 'hotelgalaxy_term_separator', _x( ', ', 'Used between list items, there is a space after the comma.', 'hotel-galaxy'), 'tags' ); $tags_list = get_the_tag_list( '', $term_separator ); if ( $tags_list && $tags ) { echo apply_filters( 'hotelgalaxy_tag_list_output', sprintf( '%1$s ', $tags_list ) ); } } if ( 'date' === $item ) { $date = apply_filters( 'hotelgalaxy_post_date', true ); $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = '' . $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() ) ); // If our date is enabled, show it. if ( $date ) { echo apply_filters( 'hotelgalaxy_post_date_output', sprintf( '%3$s ', esc_url( get_permalink() ), esc_attr( get_the_time() ), $time_string ), $time_string ); } } if ( 'author' === $item ) { $author = apply_filters( 'hotelgalaxy_post_author', true ); if ( $author ) { echo apply_filters( 'hotelgalaxy_post_author_output', sprintf( ' ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'hotel-galaxy'), get_the_author() ) ), esc_html( get_the_author() ), 'itemprop="author" itemtype="https://schema.org/Person" itemscope' ) ); } } } ?>