����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
global $post, $homey_local, $homey_prefix;
$rating = homey_option('rating');
?>
<section class="top-banner-wrap property-slider-wrap <?php homey_banner_fullscreen(); ?>">
<div class="header-slider">
<?php
$args = array(
'post_type' => 'listing',
'posts_per_page' => '-1',
'meta_query' => array(
'relation' => 'AND',
array(
'key' => $homey_prefix.'homeslider',
'value' => 'yes',
'compare' => '='
),
array(
'relation' => 'OR',
array(
'key' => 'featured',
'value' => '1',
'compare' => '='
),
array(
'key' => 'featured',
'compare' => 'NOT EXISTS'
),
array(
'key' => 'featured',
'value' => '0',
'compare' => '='
),
),
),
'orderby' => array(
'meta_key' => array(
'featured' => 'DESC'
),
'date' => 'DESC'
),
);
$slider = new WP_Query( $args );
if( $slider->have_posts() ): while( $slider->have_posts() ): $slider->the_post();
$slider_img = get_post_meta( $post->ID, $homey_prefix. 'slider_image', true );
$imag_url = wp_get_attachment_image_src( $slider_img, 'full', true );
$address = ''; //get_post_meta( get_the_ID(), $homey_prefix.'listing_address', true );
$bedrooms = get_post_meta( get_the_ID(), $homey_prefix.'listing_bedrooms', true );
//guests info
$guests = get_post_meta( get_the_ID(), $homey_prefix.'guests', true );
$guests = $guests > 0 ? $guests : 0;
$num_additional_guests = get_post_meta( get_the_ID(), $homey_prefix.'num_additional_guests', true );
$num_additional_guests = $num_additional_guests > 0 ? $num_additional_guests : 0;
$total_guests = (int) $num_additional_guests + (int) $guests;
$beds = get_post_meta( get_the_ID(), $homey_prefix.'beds', true );
$baths = get_post_meta( get_the_ID(), $homey_prefix.'baths', true );
$night_price = get_post_meta( get_the_ID(), $homey_prefix.'night_price', true );
$listing_author = homey_get_author();
$total_rating = get_post_meta( get_the_ID(), 'listing_total_rating', true );
$listing_total_number_of_reviews = get_post_meta( $post->ID, 'listing_total_number_of_reviews', true );
?>
<div class="header-slider-item" style="background-image: url(<?php echo esc_url($imag_url[0]); ?>);">
<a class="banner-link" href="<?php the_permalink(); ?>"></a>
<div class="item-wrap item-list-view">
<div class="property-item">
<div class="item-body clearfix">
<div class="item-title-head table-block">
<div class="title-head-left">
<h2 class="title"><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></h2>
<?php get_template_part('single-listing/item-address'); ?>
<?php if(!empty($address)) { ?>
<address class="item-address"><?php echo esc_attr($address); ?></address>
<?php } ?>
</div>
</div>
<div class="item-media-price">
<span class="item-price">
<?php echo homey_formatted_price($night_price, false, true); ?><sub>/<?php echo homey_get_price_label_by_id(get_the_ID()); ?></sub>
</span>
</div>
<ul class="item-amenities">
<li>
<i class="homey-icon homey-icon-hotel-double-bed"></i>
<span class="total-beds"><?php echo esc_attr($bedrooms); ?></span> <span class="item-label"><?php echo esc_attr(homey_option('glc_bedrooms_label'));?></span>
</li>
<li>
<i class="homey-icon homey-icon-bathroom-shower-1"></i>
<span class="total-baths"><?php echo esc_attr($baths); ?></span> <span class="item-label"><?php echo esc_attr(homey_option('glc_baths_label'));?></span>
</li>
<li>
<i class="homey-icon homey-icon-multiple-man-woman-2"></i>
<span class="total-guests"><?php echo esc_attr($total_guests); ?></span> <span class="item-label"><?php echo esc_attr(homey_option('glc_guests_label'));?></span>
</li>
<li class="item-type"><?php echo homey_taxonomy_simple('listing_type'); ?></li>
</ul>
<div class="item-user-image list-item-hidden">
<?php echo ''.$listing_author['photo'];?>
<span class="item-user-info"><?php echo esc_attr($homey_local['hosted_by']);?><br>
<?php echo esc_attr($listing_author['name']); ?></span>
</div>
<div class="item-footer">
<?php
if($rating && ($total_rating != '' && $total_rating != 0 ) ) { ?>
<div class="footer-left">
<div class="stars">
<ul class="list-inline rating">
<?php echo homey_get_review_stars_v2($total_rating, false, true, false); ?>
</ul>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div><!-- .item-wrap -->
</div><!-- header-slider-item -->
<?php endwhile; endif; wp_reset_postdata(); ?>
</div><!-- top-gallery-section -->
</section><!-- header-parallax -->| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| caption-exp.php | File | 740 B | 0644 |
|
| caption.php | File | 732 B | 0644 |
|
| half-search-exp.php | File | 1.01 KB | 0644 |
|
| half-search.php | File | 1 KB | 0644 |
|
| main.php | File | 1.1 KB | 0644 |
|
| map.php | File | 793 B | 0644 |
|
| map_experiences.php | File | 364 B | 0644 |
|
| parallax.php | File | 877 B | 0644 |
|
| revolution-slider.php | File | 786 B | 0644 |
|
| slider-exp.php | File | 5.23 KB | 0644 |
|
| slider.php | File | 7.23 KB | 0644 |
|
| video.php | File | 1.62 KB | 0644 |
|