<?php get_header(); if (have_posts()) { while (have_posts()) { the_post(); $post_id = get_the_ID(); $header_img_scr = ct_get_header_image_src($post_id); if (!empty($header_img_scr)) { $header_img_height = ct_get_header_image_height($post_id); $sidebar_position = ct_get_sidebar_position($post_id); $content_class = 'post-content'; if ('no' != $sidebar_position) { $content_class .= ' col-md-9'; } $header_content = get_post_meta($post_id, '_header_content', true); ?> <section class="parallax-window" data-parallax="scroll" data-image-src="<?php echo esc_url($header_img_scr); ?> " data-natural-width="1400" data-natural-height="<?php echo esc_attr($header_img_height); ?> "> <div class="parallax-content-1"> <?php echo balancetags($header_content); ?> </div> </section><!-- End section -->
if (is_user_logged_in()) { $user_id = get_current_user_id(); $wishlist = get_user_meta($user_id, 'wishlist', true); } // filter by post type if (!empty($wishlist) && !empty($post_type_filter) && is_array($post_type_filter)) { foreach ($wishlist as $key => $post_id) { $post_type = get_post_type($post_id); if (!in_array($post_type, $post_type_filter)) { unset($wishlist[$key]); } } } $count = count($wishlist); // total_count $header_img_scr = ct_get_header_image_src('tour'); if (!empty($header_img_scr)) { $header_img_height = ct_get_header_image_height('tour'); $header_content = ''; if (!empty($ct_options['tour_header_content'])) { $header_content = $ct_options['tour_header_content']; } ?> <section class="parallax-window" data-parallax="scroll" data-image-src="<?php echo esc_url($header_img_scr); ?> " data-natural-width="1400" data-natural-height="<?php echo esc_attr($header_img_height); ?> ">
<?php get_header(); global $ct_options; $header_img_scr = ct_get_header_image_src('blog'); if (!empty($header_img_scr)) { $header_img_height = ct_get_header_image_height('blog'); $sidebar_position = ct_get_sidebar_position('blog'); $content_class = ''; if ('no' != $sidebar_position) { $content_class = 'col-md-9'; } $header_content = ''; if (!empty($ct_options['blog_header_content'])) { $header_content = $ct_options['blog_header_content']; } ?> <section class="parallax-window" data-parallax="scroll" data-image-src="<?php echo esc_url($header_img_scr); ?> " data-natural-width="1400" data-natural-height="<?php echo esc_attr($header_img_height); ?> "> <div class="parallax-content-1"> <?php echo balancetags($header_content); ?> </div> </section><!-- End section -->
$kids = isset($_REQUEST['kids']) && is_numeric($_REQUEST['kids']) ? sanitize_text_field($_REQUEST['kids']) : 0; $order_by = isset($_REQUEST['order_by']) && array_key_exists($_REQUEST['order_by'], $order_by_array) ? sanitize_text_field($_REQUEST['order_by']) : ''; $order = isset($_REQUEST['order']) && in_array($_REQUEST['order'], $order_array) ? sanitize_text_field($_REQUEST['order']) : 'ASC'; $districts = isset($_REQUEST['districts']) ? is_array($_REQUEST['districts']) ? $_REQUEST['districts'] : array($_REQUEST['districts']) : array(); $price_filter = isset($_REQUEST['price_filter']) && is_array($_REQUEST['price_filter']) ? $_REQUEST['price_filter'] : array(); $star_filter = isset($_REQUEST['star_filter']) && is_array($_REQUEST['star_filter']) ? $_REQUEST['star_filter'] : array(); $rating_filter = isset($_REQUEST['rating_filter']) && is_array($_REQUEST['rating_filter']) ? $_REQUEST['rating_filter'] : array(); $facility_filter = isset($_REQUEST['facilities']) && is_array($_REQUEST['facilities']) ? $_REQUEST['facilities'] : array(); $current_view = isset($_REQUEST['view']) ? sanitize_text_field($_REQUEST['view']) : 'list'; $page = isset($_REQUEST['page']) && is_numeric($_REQUEST['page']) && $_REQUEST['page'] >= 1 ? sanitize_text_field($_REQUEST['page']) : 1; $per_page = isset($ct_options['hotel_posts']) && is_numeric($ct_options['hotel_posts']) ? $ct_options['hotel_posts'] : 6; $search_result = ct_hotel_get_search_result(array('s' => $s, 'date_from' => $date_from, 'date_to' => $date_to, 'rooms' => $rooms, 'adults' => $adults, 'kids' => $kids, 'star_filter' => $star_filter, 'district' => $districts, 'price_filter' => $price_filter, 'rating_filter' => $rating_filter, 'facility_filter' => $facility_filter, 'order_by' => $order_by_array[$order_by], 'order' => $order, 'last_no' => ($page - 1) * $per_page, 'per_page' => $per_page)); $post_list = $search_result['ids']; $count = $search_result['count']; // total_count $header_img_scr = ct_get_header_image_src('hotel'); if (!empty($header_img_scr)) { $header_img_height = ct_get_header_image_height('hotel'); $header_content = ''; if (!empty($ct_options['hotel_header_content'])) { $header_content = $ct_options['hotel_header_content']; } ?> <section class="parallax-window" data-parallax="scroll" data-image-src="<?php echo esc_url($header_img_scr); ?> " data-natural-width="1400" data-natural-height="<?php echo esc_attr($header_img_height); ?> ">