Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Content -->
- <div class="container contents listing-grid-layout">
- <div class="row">
- <div class="span12 main-wrap">
- <!-- Main Content -->
- <div class="main">
- <section class="listing-layout">
- <?php
- $title_display = get_post_meta( $post->ID, 'REAL_HOMES_page_title_display', true );
- if( $title_display != 'show' ){
- ?>
- <h3 class="title-heading">Imóveis em Destaque</h3>
- <?php
- }
- ?>
- <!-- Gallery Filter -->
- <div id="filter-by" class="clearfix">
- <a href="#" data-filter="gallery-item" class="active"><?php _e('All', 'framework'); ?></a><?php
- $status_terms = get_terms( array( 'taxonomy' => 'property-status', 'exclude' => '71' ) );
- if ( !empty($status_terms) && is_array($status_terms) )
- {
- foreach ($status_terms as $status_term)
- {
- echo '<a href="' . get_term_link( $status_term->slug, $status_term->taxonomy ) . '" data-filter="'.$status_term->slug.'" title="' . sprintf(__('View all Properties having %s status', 'framework'), $status_term->name) . '">' . $status_term->name . '</a>';
- }
- }
- ?>
- </div>
- <!-- Gallery Container -->
- <div id="gallery-container">
- <div class="<?php global $gallery_name; echo esc_attr( $gallery_name ); ?> isotope clearfix">
- <?php
- // Basic Gallery Query
- $query_args = array(
- 'post_type' => 'property',
- 'posts_per_page' => -1
- );
- // Gallery Query and Start of Loop
- $gallery_query = new WP_Query( $query_args );
- while ( $gallery_query->have_posts() ) :
- $gallery_query->the_post();
- // Getting list of property status terms
- $term_list = '';
- $terms = get_the_terms( $post->ID, 'property-status' );
- if ( !empty($terms) && !is_wp_error( $terms ) ) :
- foreach( $terms as $term )
- if ($term->slug != 'projeto') {
- $term_list .= $term->slug;
- $term_list .= ' ';
- }
- endif;
- if(has_post_thumbnail()):
- ?>
- <div <?php post_class("gallery-item isotope-item $term_list"); ?> >
- <article class="property-item clearfix">
- <?php
- $image_id = get_post_thumbnail_id();
- $full_image_url = wp_get_attachment_url($image_id);
- global $gallery_image_size;
- $featured_image = wp_get_attachment_image_src( $image_id, $gallery_image_size );
- ?>
- <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
- <figure style="float:left;">
- <a href="<?php the_permalink(); ?>">
- <?php
- global $post;
- if( has_post_thumbnail( $post->ID ) ) {
- the_post_thumbnail( 'property-thumb-image' );
- } else {
- inspiry_image_placeholder( 'property-thumb-image' );
- }
- ?>
- </a>
- <?php display_figcaption( $post->ID ); ?>
- </figure>
- <div class="detail" style="width:230px;float:left;">
- <h5 class="price">
- <?php
- //preco
- property_price();
- //tipo de imovel
- echo inspiry_get_property_types( $post->ID );
- ?>
- </h5>
- <p><?php framework_excerpt(12); ?></p>
- <a class="more-details" href="<?php the_permalink() ?>"><?php _e('More Details ','framework'); ?><i class="fa fa-caret-right"></i></a>
- </div>
- <div class="property-meta">
- <?php get_template_part('property-details/property-metas'); ?>
- </div>
- <time class="updated hide" datetime="<?php the_modified_time('c'); ?>"><?php the_modified_time('M d, Y'); ?></time>
- <span class="vcard hide">
- <?php
- printf( '<a class="url fn" href="%1$s" title="%2$s" rel="author">%3$s</a>',
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
- esc_attr( sprintf( __( 'View all posts by %s', 'framework' ), get_the_author() ) ),
- get_the_author()
- );
- ?>
- </span>
- </article>
- </div>
- <?php
- endif;
- endwhile;
- ?>
- </div>
- </div>
- <!-- end of gallery container -->
- </section>
- </div><!-- End Main Content -->
- </div> <!-- End span12 -->
- </div><!-- End contents row -->
- </div><!-- End Content -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement