<div class="content-wrapper col-xs-9 col-lg-10"> <div class="title-and-meta"> <header class="entry-header"> <h3 class="entry-title"> <a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a> <span class="price"><?php $my_property->price(); ?> </span> </h3> </header> <!-- .entry-header --> <div class="property-meta entry-meta clearfix"> <div class="meta-item"> <span class="meta-item-label"><?php _e('Posted on:', 'inspiry'); ?> </span> <span class="meta-item-value"><?php the_time("d F 'y");
<div class="container"> <div class="slide-inner-container"> <div class="row"> <div class="col-lg-6"> <h3 class="slide-entry-title entry-title"> <a href="<?php the_permalink(); ?> " rel="bookmark"><?php echo get_inspiry_custom_excerpt(get_the_title(), 6); ?> </a> </h3> <div class="price-and-status"> <span class="price"><?php $slider_property->price(); ?> </span> <?php $first_status_term = $slider_property->get_taxonomy_first_term('property-status', 'all'); if ($first_status_term) { ?> <a href="<?php echo esc_url(get_term_link($first_status_term)); ?> "> <span class="property-status-tag"><?php echo esc_html($first_status_term->name); ?> </span> </a>
?> </figure> <div class="property-description"> <div class="arrow"></div> <header class="entry-header"> <h3 class="entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a></h3> <div class="price-and-status"> <span class="price"><?php $similar_property->price(); ?> </span><?php $first_status_term = $similar_property->get_taxonomy_first_term('property-status', 'all'); if ($first_status_term) { ?> <a href="<?php echo esc_url(get_term_link($first_status_term)); ?> "><span class="property-status-tag"><?php echo esc_html($first_status_term->name); ?> </span></a><?php } ?> </div>
<?php /* * Address */ $grid_property_address = $grid_property->get_address(); if (!empty($grid_property_address)) { ?> <p class="property-address"><i class="fa fa-map-marker"></i><?php echo esc_html($grid_property_address); ?> </p><?php } ?> <div class="price-wrapper"> <span class="price"><?php $grid_property->price(); ?> </span> </div> </div> </header> <div class="property-meta entry-meta clearfix"> <?php /* * Beds */ $inspiry_property_beds = $grid_property->get_beds(); if ($inspiry_property_beds) { ?>
<?php global $inspiry_options; global $property_list_counter; global $post; $list_property = new Inspiry_Property(get_the_ID()); ?> <article class="property-listing-simple property-listing-simple-2 hentry clearfix"> <div class="property-thumbnail col-sm-5 zero-horizontal-padding"> <div class="price-wrapper"> <span class="price"><?php $list_property->price(); ?> </span> </div> <?php /* * Display image gallery or thumbnail */ if ($inspiry_options['inspiry_property_card_gallery']) { inspiry_property_gallery($list_property->get_post_ID(), intval($inspiry_options['inspiry_property_card_gallery_limit'])); } else { inspiry_thumbnail(); } ?> </div> <!-- .property-thumbnail -->
?> <h4 class="fancy-title"><?php echo esc_html($inspiry_options['inspiry_property_children_title']); ?> </h4><?php } while ($child_properties_query->have_posts()) { $child_properties_query->the_post(); $child_property = new Inspiry_Property(get_the_ID()); ?> <article class="property-listing-simple property-listing-simple-2 meta-item-half hentry clearfix"> <div class="property-thumbnail col-sm-5 zero-horizontal-padding"> <div class="price-wrapper"> <span class="price"><?php $child_property->price(); ?> </span> </div> <?php inspiry_thumbnail('inspiry-grid-thumbnail'); ?> </div> <div class="title-and-meta col-sm-7"> <header class="entry-header"> <h3 class="entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title();
?> </div> <!-- .property-thumbnail --> <div class="property-description clearfix col-lg-6"> <header class="entry-header"> <h3 class="entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a></h3> <div class="price-and-status"> <span class="price"><?php $home_property->price(); ?> </span> <?php $first_status_term = $home_property->get_taxonomy_first_term('property-status', 'all'); if ($first_status_term) { ?> <a href="<?php echo esc_url(get_term_link($first_status_term)); ?> "> <span class="property-status-tag"><?php echo esc_html($first_status_term->name); ?> </span> </a>
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if (empty($title)) { $title = false; } // number of properties $count = intval($instance['count']); if (!$count || $count < 1) { $count = 2; } $sort_by = $instance['sort_by']; $featured_args = array('post_type' => 'property', 'posts_per_page' => $count, 'meta_query' => array(array('key' => 'REAL_HOMES_featured', 'value' => 1, 'compare' => '=', 'type' => 'NUMERIC'))); //Order by if ($sort_by == "random") { $featured_args['orderby'] = "rand"; } else { $featured_args['orderby'] = "date"; } $featured_query = new WP_Query($featured_args); echo $before_widget; if ($title) { echo $before_title; echo esc_html($title); echo $after_title; } if ($featured_query->have_posts()) { ?> <ul class="widget-featured-properties"> <?php while ($featured_query->have_posts()) { $featured_query->the_post(); $featured_property = new Inspiry_Property(get_the_ID()); ?> <li> <figure class="featured-properties-thumbnail"> <span class="price"><?php $featured_property->price(); ?> </span> <?php inspiry_thumbnail('post-thumbnail'); ?> </figure> <h4 class="featured-properties-title"> <a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </h4> <p><?php inspiry_excerpt(12); ?> <a href="<?php the_permalink(); ?> " class="read-more-link"><?php _e('Know More', 'inspiry'); ?> </a></p> </li> <?php } ?> </ul> <?php } else { ?> <ul class="widget-featured-properties"> <?php echo '<li>'; _e('No featured property found!', 'inspiry'); echo '</li>'; ?> </ul> <?php } wp_reset_postdata(); echo $after_widget; }