ID, '_adventure_travel_sidebar_layout', true ); if( $sidebar_layout == 'default-sidebar' ){ if( is_active_sidebar( 'right-sidebar' ) ){ $classes[] = 'rightsidebar'; }else{ $classes[] = 'full-width'; } }elseif( $sidebar_layout == 'left-sidebar' ){ if( is_active_sidebar( 'right-sidebar' ) ){ $classes[] = 'leftsidebar'; }else{ $classes[] = 'full-width'; } }elseif( $sidebar_layout == 'no-sidebar' ){ $classes[] = 'full-width'; }else{ $classes[] = 'rightsidebar'; } }else{ $classes[] = 'rightsidebar'; } return $classes; } endif; add_filter( 'body_class', 'adventure_travel_body_classes' ); /** * Add a pingback url auto-discovery header for single posts, pages, or attachments. */ if( ! function_exists( 'adventure_travel_pingback_header' ) ) : function adventure_travel_pingback_header() { if ( is_singular() && pings_open() ) { printf( '', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } endif; add_action( 'wp_head', 'adventure_travel_pingback_header' ); /** * Content Start * */ if( ! function_exists( 'adventure_travel_content_start' ) ) : function adventure_travel_content_start(){ $home_sections = array( 'banner', 'why_choose', 'best_seller', 'popular_destination', 'stat_counter', 'popular_activities', 'featured_trip', 'testimonial', 'blog' ); $ed_section = adventure_travel_home_section(); if( is_front_page() && ! is_home() ){ if( !$ed_section ){ ?>