>
'; return; }else{ return; } } if( is_404() ) echo '
'; ?>
'; return; }else{ return; } } ?>
'; /** * Popular Packages * * @hooked travel_booking_get_popular_package - 15 */ do_action( 'travel_booking_popular_package' ); } } endif; add_action( 'travel_booking_before_footer', 'travel_booking_container_end', 30 ); if( ! function_exists( 'travel_booking_breadcrumb' ) ) : /** * Page Header for inner pages */ function travel_booking_breadcrumb(){ global $post; $post_page = get_option( 'page_for_posts' ); //The ID of the page that displays posts. $show_front = get_option( 'show_on_front' ); //What to show on the front page $home = get_theme_mod( 'breadcrumb_home_text', __( 'Home', 'travel-booking' ) ); // text for the 'Home' link $before = '
  • '; // tag before the current crumb $after = '
  • '; // tag after the current crumb if( get_theme_mod( 'ed_breadcrumb', true ) && ! is_front_page() ){ echo ''; } } endif; add_action( 'travel_booking_before_content', 'travel_booking_breadcrumb', 20 ); if( ! function_exists( 'travel_booking_get_search_page_header' ) ) : /** * Content Start */ function travel_booking_get_search_page_header(){ global $wp_query; ?>
    '; if( ! is_tax( array( 'destination', 'activities', 'trip_types' ) ) ){ the_archive_title( '

    ', '

    ' ); if( ! is_post_type_archive( 'trip' ) ) the_archive_description( '
    ', '
    ' ); } echo '
    '; } } endif; add_action( 'travel_booking_before_content', 'travel_booking_page_header', 40 ); if( ! function_exists( 'travel_booking_get_post_page_header' ) ) : /** * Display post/page title. * */ function travel_booking_get_post_page_header(){ if( is_singular() ){ ?>
    ', '' ); }else{ the_title( '

    ', '

    ' ); } ?>
    '; the_post_thumbnail( $image_size, array( 'itemprop'=>'image' ) ); echo '
    '; } }else{ $image_size = 'travel-booking-blog-full'; echo ''; if( has_post_thumbnail() ){ the_post_thumbnail( $image_size, array( 'itemprop'=>'image' ) ); } else { travel_booking_fallback_image( $image_size ); } echo ''; } } endif; add_action( 'travel_booking_before_entry_content', 'travel_booking_post_thumbnail', 20 ); add_action( 'travel_booking_before_text_holder', 'travel_booking_post_thumbnail', 20 ); if( ! function_exists( 'travel_booking_before_entry_header' ) ) : /** * Display Categories */ function travel_booking_before_entry_header(){ ?>
    "%s"', 'travel-booking' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); wp_link_pages( array( 'before' => '', ) ); } ?>
    '; } } if ( get_edit_post_link() ){ edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'travel-booking' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>

    %link
    ', '' . esc_html__( 'Prev Post', 'travel-booking' ) . '%title', false, '', 'category' ); $next = get_next_post_link( '', '' . esc_html__( 'Next Post', 'travel-booking' ) . '%title', false, '', 'category' ); if( $previous || $next ){?> __( 'Previous', 'travel-booking' ), 'next_text' => __( 'Next', 'travel-booking' ), 'before_page_number' => '' . __( 'Page', 'travel-booking' ) . ' ', ) ); } } endif; add_action( 'travel_booking_after_post_content', 'travel_booking_pagination', 20 ); add_action( 'travel_booking_after_content', 'travel_booking_pagination' ); if( ! function_exists( 'travel_booking_related_and_recent_posts' ) ) : /** * Related Posts */ function travel_booking_related_and_recent_posts(){ global $post; $ed_related = get_theme_mod( 'ed_related', true ); $ed_recent = get_theme_mod( 'ed_recent', true ); $related_title = get_theme_mod( 'related_title', __( 'You may also like.', 'travel-booking' ) ); $recent_title = get_theme_mod( 'recent_title', __( 'Recent Posts', 'travel-booking' ) ); if( $ed_related ){ $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 4, 'ignore_sticky_posts' => true, 'post__not_in' => array( $post->ID ), 'orderby' => 'rand' ); $cats = get_the_category( $post->ID ); if( $cats ){ $c = array(); foreach( $cats as $cat ){ $c[] = $cat->term_id; } $args['category__in'] = $c; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?> 'post', 'post_status' => 'publish', 'posts_per_page' => 4, 'ignore_sticky_posts' => true, 'post__not_in' => array( $post->ID ), 'orderby' => 'rand' ); $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?>
    ' . esc_html( $recent_title ) . ''; ?>
    have_posts() ){ $qry->the_post(); ?>
    '; the_post_thumbnail( $image_size, array( 'itemprop'=>'image' ) ); echo ''; }else{ ?>

    'trip', 'post_status' => 'publish', 'posts_per_page' => 6, 'post__in' => $trip_array, 'orderby' => 'post__in' ); $popular_qry = new WP_Query( $args ); ?>