| Server IP : 217.160.0.251 / Your IP : 216.73.216.183 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u94981163 ( 8991765) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/15/d754908516/htdocs/wp-content/themes/est-project/templates/ |
Upload File : |
<?php if ( $properties_query->have_posts() ): ?>
<div class="top-slider">
<div class="properties-slider js-properties-slider">
<?php while ( $properties_query->have_posts() ): $properties_query->the_post(); ?>
<?php
if ( function_exists( 'es_get_property' ) ):
$es_property = es_get_property( get_the_ID() );
if ( ! empty( $es_property->gallery ) ){
$images = $es_property->gallery;
$src = wp_get_attachment_image_url( $es_property->gallery[0], 'top_slider' );
}
else{
$src = es_get_default_thumbnail( 'top_slider' );
}
?>
<?php if ( !empty( $src ) ):?>
<div style="background-image: url('<?php echo $src;?>')">
<div class="top-slider__full-width">
<div class="siteWidth">
<a href="#" class="slick-prev"></a>
<a href="#" class="slick-next"></a>
<div class="top-slider__content">
<div class="top-slider__dark-background">
<?php es_the_title( '<h2>', '</h2>' ); ?>
<?php es_the_address( '<p><i class="fa fa-map-marker"
aria-hidden="true"></i>', '</p>' ); ?>
</div>
<a class="theme-button" href="<?php the_permalink(); ?>"><?php _e( 'Learn More', 'es-project' );?></a>
</div>
</div>
</div>
</div>
<?php endif;?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<!-- <div class="top-slider__full-width">
<div class="siteWidth">
<a href="#" class="slick-prev"></a>
<a href="#" class="slick-next"></a>
</div>
</div>-->
</div>
<?php endif; ?>