Esempio n. 1
0
                        <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>
                            </header>
                            <?php 
        inspiry_property_meta($similar_property, array('exclude' => array('id', 'status')));
Esempio n. 2
0
                    <div class="property-description">
                        <header class="entry-header">
                            <h4 class="entry-title"><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        echo get_inspiry_custom_excerpt(get_the_title(), 7);
        ?>
</a></h4>
                            <div class="price-and-status">
                                <span class="price"><?php 
        echo esc_html($home_property->get_price_without_postfix());
        ?>
</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>
                                    <?php 
        }
        ?>
                            </div>
Esempio n. 3
0
     $current_prop_array['lng'] = $map_property->get_longitude();
 }
 // Property Thumbnail
 if (has_post_thumbnail()) {
     $image_id = get_post_thumbnail_id();
     $image_attributes = wp_get_attachment_image_src($image_id, 'post-thumbnail');
     if (!empty($image_attributes[0])) {
         $current_prop_array['thumb'] = $image_attributes[0];
     }
 }
 // Property Permalink
 $current_prop_array['url'] = get_permalink();
 // Property Map Icon Based on Property Type
 $property_type_slug = 'single-family-home';
 // Default Icon Slug
 $temp_property_type_slug = $map_property->get_taxonomy_first_term('property-type', 'slug');
 if (!empty($temp_property_type_slug)) {
     $property_type_slug = $temp_property_type_slug;
 }
 if (file_exists(get_template_directory() . '/images/map/' . $property_type_slug . '-map-icon.png')) {
     $current_prop_array['icon'] = get_template_directory_uri() . '/images/map/' . $property_type_slug . '-map-icon.png';
     // retina icon
     if (file_exists(get_template_directory() . '/images/map/' . $property_type_slug . '*****@*****.**')) {
         $current_prop_array['retinaIcon'] = get_template_directory_uri() . '/images/map/' . $property_type_slug . '*****@*****.**';
     }
 } else {
     $current_prop_array['icon'] = get_template_directory_uri() . '/images/map/single-family-home-map-icon.png';
     // default icon
     $current_prop_array['retinaIcon'] = get_template_directory_uri() . '/images/map/single-family-home-map-icon@2x.png';
     // default retina icon
 }
Esempio n. 4
0
                    <div class="property-description">
                        <header class="entry-header">
                            <h4 class="entry-title"><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a></h4>
                            <div class="price-and-status">
                                <span class="price"><?php 
        echo esc_html($featured_property->get_price_without_postfix());
        ?>
</span>
                                <?php 
        $first_status_term = $featured_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>
        <div class="title-and-meta">
            <header class="entry-header">

                <h3 class="entry-title"><a href="<?php 
the_permalink();
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h3>

                <?php 
/*
 * Property Type
 */
$first_type_term = $grid_property->get_taxonomy_first_term('property-type', 'all');
if ($first_type_term) {
    ?>
<p class="property-type"><?php 
    echo esc_html($first_type_term->name);
    ?>
</p><?php 
}
?>

                <div class="price-and-status-wrapper clearfix">

                    <div class="price-wrapper">
                        <span class="price"><?php 
$grid_property->price();
?>