public function property_fancy_function($atts, $content)
    {
        extract(shortcode_atts(array('status' => '', 'type' => '', 'city' => '', 'count' => 4, 'order' => 'DESC', 'title' => '', 'length' => 150), $atts));
        $args = array('post_type' => 'property', 'post_status' => 'publish', 'posts_per_page' => $count, 'order' => $order, 'orderby' => 'date', 'tax_query' => array());
        /*status,type,city check */
        if ($status != '') {
            $args['tax_query'][] = array('taxonomy' => 'property_status', 'field' => 'slug', 'terms' => $status);
        }
        if ($type != '') {
            $args['tax_query'][] = array('taxonomy' => 'property_type', 'field' => 'slug', 'terms' => $type);
        }
        if ($city != '') {
            $args['tax_query'][] = array('taxonomy' => 'property_city', 'field' => 'slug', 'terms' => $city);
        }
        $ks_this_posts = new WP_Query($args);
        ob_start();
        $i = 0;
        ?>
		
		<div class="sc-property" id="sc-property-fancy">
		
			<div class="row">

				<div class="col-md-12 sc-pro-title">
				
					<div class="line-title-bigdots">
					
						<h2><span><?php 
        echo $title;
        ?>
</span></h2>
					
					</div>
				
				</div>
			
			</div>
			
			<div class="row">
			
				<?php 
        if ($ks_this_posts->have_posts()) {
            while ($ks_this_posts->have_posts()) {
                $ks_this_posts->the_post();
                $ks_property_str = new get_char(get_post(get_the_ID()));
                ?>
		
							<div class="col-md-6">

								<div class="panel panel-default prop-listing-item">

									<div class="panel-body">

										<div class="row pretty_blogs" id="mini-album-listing">

											<div class="col-md-5 blog-thum-box">

												<div>

													<div class="javo_img_hover" style="position: relative; overflow: auto; display: inline-block;">

														<a href="<?php 
                the_permalink();
                ?>
" style="display:block;">

															<?php 
                the_post_thumbnail('javo-box', array('class' => 'img-responsive', 'style' => ''));
                ?>

														</a>

													</div>

												</div>
												
												<span class="up-text"><?php 
                echo $ks_property_str->__hasStatus();
                ?>
</span>
											
											</div> <!-- col-md-5 -->
											
											<div class="col-md-7 blog-meta-box">
											
												<h2 class="title">
												
													<a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a>
												
												</h2>
												
												<div class="excerpt">

													<?php 
                echo $ks_this_posts->the_excerpt();
                ?>

														<a href="<?php 
                the_permalink();
                ?>
">

															<span class="more">[<?php 
                _e('MORE', 'property-house');
                ?>
]</span>

														</a>

												</div>
												
												<div class="property-meta">
												
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__meta('bedrooms');
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__meta('bathrooms');
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__cate('property_type', 'No Type', true);
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__cate('property_status', 'No Status', true);
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__cate('property_city', 'No City', false);
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__cate('locations', 'No Location', false);
                ?>
</span>
													
													<span class="col-md-4"><i class="icon-bed"></i><?php 
                echo $ks_property_str->__cate('property_amenities', 'No Amenities', false);
                ?>
</span>
												
												</div>
											
											</div> <!-- col-md-7 -->
											
										</div>	
										
									</div>
									
								</div>
								
							</div>	
							<?php 
            }
        }
        ?>
			
			</div>
	
		</div>
		
		<?php 
        $content = ob_get_clean();
        return $content;
    }
Example #2
0
					<?php 
printf('<h2><span>%s %s %s (%s posts)</span></h2>', $author->first_name, $author->last_name, __("items", "javo_fr"), $str->author_item_count);
?>
					</div> <!-- line-title-bigdots -->
				</div>
			</div>
			<div class="panel panel-default inner-panel">
				<div class="panel-body">
					<div class="row">
						<?php 
$javo_lister_item_args = array("author" => $author->ID, "post_status" => "publish", "posts_per_page" => 10, "post_type" => "item");
$javo_lister_item_posts = query_posts($javo_lister_item_args);
wp_reset_query();
foreach ($javo_lister_item_posts as $post) {
    setup_postdata($post);
    $javo_items_str = new get_char($post);
    if (has_post_thumbnail($javo_items_str->post->ID)) {
        $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($javo_items_str->post->ID), 'javo-box');
        $thumbnail = $thumbnail[0];
    }
    $meta = array('strong' => $javo_items_str->price, "featured" => $javo_items_str->__hasStatus());
    ?>

						<div class="row pretty_blogs" id="mini-album-listing">
							<div class="col-md-5 blog-thum-box">
								<div>
									<div class="javo_img_hover">
										<img src="<?php 
    echo $thumbnail;
    ?>
" width="330" class="img-responsive">
Example #3
0
        function infobox($post = NULL)
        {
            if ($post == NULL) {
                return;
            }
            global $javo_tso;
            $javo_list_str = new get_char($post);
            // HTML in var
            ob_start();
            ?>
			<div class="javo_somw_info">
				<div class="des">
					<ul>
						<li><?php 
            printf('%s : %s', __('Type', 'javo_fr'), $javo_list_str->__cate('item_category', 'No type', true));
            ?>
</li>
						<li>
						<?php 
            if ($javo_tso->get('hidden_lister_email') != 'hidden') {
                echo $javo_list_str->author->user_email;
            }
            ?>
						&nbsp;
						</li>
					</ul>
					<hr />
					<div class="lister">
						<span class="thumb">
							<?php 
            printf("<a href='%s'>%s</a>", $javo_list_str->lister_page, $javo_list_str->get_avatar());
            ?>
						</span>
						<ul>
							<li><?php 
            echo $javo_list_str->author_name;
            ?>
</li>
							<li><?php 
            echo $javo_list_str->a_meta('phone');
            ?>
</li>
							<li><?php 
            echo $javo_list_str->a_meta('mobile');
            ?>
</li>
						</ul>
					</div> <!-- lister -->
				</div> <!-- des -->

				<div class="pics">
					<div class="thumb">
						<a href="<?php 
            echo get_permalink($post->ID);
            ?>
" target="_blank"><?php 
            echo get_the_post_thumbnail($post->ID, "javo-map-thumbnail");
            ?>
</a>
					</div> <!-- thumb -->
					<div class="img-in-text"><?php 
            echo $javo_list_str->price;
            ?>
</div>
					<div class="javo-left-overlay">
						<div class="javo-txt-meta-area"><?php 
            echo $javo_list_str->__hasStatus();
            ?>
</div> <!-- price-text -->
						<div class="corner-wrap">
							<div class="corner"></div>
							<div class="corner-background"></div>
						</div> <!-- corner-wrap -->
					</div> <!-- javo-left-overlay -->
				</div> <!-- pic -->

				<div class="row">
					<div class="col-md-12">
						<div class="btn-group btn-group-justified pull-right">
							<a href="javascript:" class="btn btn-accent btn-sm javo-item-brief" data-id="<?php 
            echo $post->ID;
            ?>
" onclick="javo_show_brief(this);"><i class="fa fa-user"></i> <?php 
            _e("Brief", "javo_fr");
            ?>
</a>
							<a href="<?php 
            echo get_permalink($post->ID);
            ?>
" class="btn btn-accent btn-sm"><i class="fa fa-group"></i> <?php 
            _e("Detail", "javo_fr");
            ?>
</a>
							<a href="javascript:" onclick="javo_show_contact(this);" class="btn btn-accent btn-sm javo-lister-contact" data-to="<?php 
            echo $javo_list_str->author->user_email;
            ?>
"> <?php 
            _e("Contact", "javo_fr");
            ?>
</a>
						 </div><!-- btn-group -->
					</div> <!-- col-md-12 -->
				</div> <!-- row -->
			</div> <!-- javo_somw_info -->
		<?php 
            return ob_get_clean();
        }
function javo_post_list_callback()
{
    // Wordpress Queries
    global $wp_query, $javo_tso, $javo_favorite, $javo_custom_item_label, $javo_custom_item_tab;
    $video_media = array("youtube" => "//www.youtube.com/embed/", "vimeo" => "//player.vimeo.com/video/", "screenr" => "//www.youtube.com/embed/", "dailymotion" => "//www.youtube.com/embed/", "metacafe" => "//www.youtube.com/embed/");
    $javo_query = new javo_ARRAY($_POST);
    if ($javo_query->get('lang', null) != null) {
        global $sitepress;
        if (!empty($sitepress)) {
            $sitepress->switch_lang($javo_query->get('lang'), true);
        }
    }
    // List view tyope
    $mode = $javo_query->get('type', null);
    $post_type = $javo_query->get('post_type', 'item');
    $p = $javo_query->get('post_id', null);
    $ppp = $javo_query->get('ppp', 10);
    $page = $javo_query->get('page', 1);
    $tax = $javo_query->get('tax', 10);
    $term_meta = $javo_query->get('term_meta', 10);
    $meta = array();
    $args = array('post_type' => $post_type, 'post_status' => 'publish', 'posts_per_page' => $ppp, 'paged' => $page);
    if ((int) $p > 0) {
        $args['p'] = $p;
    }
    if ($tax != NULL && is_Array($tax)) {
        foreach ($tax as $key => $value) {
            if ($value != "") {
                $args['tax_query']['relation'] = "AND";
                $args['tax_query'][] = array("taxonomy" => $key, "field" => "term_id", "terms" => $value);
            }
        }
    }
    if ($term_meta != NULL && is_Array($term_meta)) {
        foreach ($term_meta as $key => $value) {
            if ($value != "") {
                $args['meta_query']['relation'] = "AND";
                $args['meta_query'][] = array("key" => $key, "value" => (int) $value, "compare" => ">=");
            }
        }
    }
    $args["s"] = $javo_query->get('keyword', null);
    // Not found image featured url
    $noimage = JAVO_IMG_DIR . "/no-image.png";
    ob_start();
    ?>
	<script type="text/javascript">
	if(typeof(window.jQuery) != "undefined")
	{
		jQuery(document).ready(function($)
		{
			"use strict";
			$(".javo_hover_body").css({
				"position":"absolute",
				"top":"0",
				"left":"0",
				"z-index":"2",
				"width":"100%",
				"height":"100%",
				"padding":"10px",
				"margin": "0px",
				"backgroundColor":"rgba(0, 0, 0, 0.4)",
				"display":"none"
			});
			$(".javo_img_hover")
				.css({
					"position":"relative", "overflow":"auto", "display":"inline-block"
				}).hover(function(){
					$(this).find(".javo_hover_body").fadeIn("fast");
				}, function(){
					$(this).find(".javo_hover_body").clearQueue().fadeOut("slow");
				});
		});
	};
	</script>
	<?php 
    switch ($mode) {
        case 2:
            $posts = new WP_Query($args);
            ?>
		<div class="row javo-item-grid-listing">
			<?php 
            $i = 0;
            ## Thumbnail Type ###################
            if ($posts->have_posts()) {
                while ($posts->have_posts()) {
                    $posts->the_post();
                    $javo_meta_query = new javo_GET_META(get_the_ID());
                    $meta = array('strong' => $javo_meta_query->cat('item_category', __('No Category', 'javo_fr')), "featured" => $javo_meta_query->cat('item_location', __('No Location', 'javo_fr')));
                    ?>
					<div class="col-md-4 col-sm-6 col-xs-6 pull-left">
						<div class="panel panel-default panel-relative">
							<?php 
                    $detail_images = (array) @unserialize(get_post_meta(get_the_ID(), "detail_images", true));
                    $detail_images[] = get_post_thumbnail_id(get_the_ID());
                    if (!empty($detail_images)) {
                        echo '<div class="javo_detail_slide">';
                        $javo_this_image_meta = wp_get_attachment_image_src($detail_images, 'large');
                        $javo_this_image = $javo_this_image_meta[0];
                        ?>

									<?php 
                        echo '<ul class="slides list list-unstyled">';
                        foreach ($detail_images as $index => $image) {
                            $javo_this_image_meta = wp_get_attachment_image_src($image, 'full');
                            $javo_this_image = $javo_this_image_meta[0];
                            ?>
										<li>
											<u href="<?php 
                            echo $javo_this_image;
                            ?>
" style="cursor:pointer;">
												<?php 
                            $javo_this = wp_get_attachment_image($image, "javo-box-v", false);
                            if ($javo_this) {
                                echo $javo_this;
                            } else {
                                printf('<img src="%s" class="img-responsive wp-post-image" style="width:100%%; height:201px;">', $javo_tso->get('no_image', JAVO_IMG_DIR . '/no-image.png'));
                            }
                            ?>
											</u>
										</li>
										<?php 
                        }
                        echo '</ul>';
                        echo '</div>';
                    }
                    ?>
							<div class="panel-body">
								<div class="col-md-12">
									<a href="<?php 
                    the_permalink();
                    ?>
" class="javo-tooltip javo-igl-title"  title="<?php 
                    the_title();
                    ?>
">
										<div>
											<h2 class="panel-title text-center">
												<strong> <?php 
                    echo javo_str_cut(get_the_title(), 120);
                    ?>
 </strong>
											</h2>
											<div class="text-center"><?php 
                    echo $meta['strong'];
                    ?>
</div>
										</div>
									</a>
									<ul class="list list-unstyled">
										<li class="text-center text-excerpt javo-grid-listing-excerpt"><?php 
                    echo javo_str_cut(get_the_excerpt(), 150);
                    ?>
</li>
										<li class="text-center">
											<h2 class="javo-sns-wrap social-wrap">
												<i class="sns-facebook" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
													<a class="facebook javo-tooltip" title="<?php 
                    _e('Share Facebook', 'javo_fr');
                    ?>
"></a>
												</i>
												<i class="sns-twitter" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
													<a class="twitter javo-tooltip" title="<?php 
                    _e('Share Twitter', 'javo_fr');
                    ?>
"></a>
												</i>
												<i class="sns-heart">
													<a class="javo-tooltip favorite javo_favorite<?php 
                    echo $javo_favorite->on(get_the_ID(), ' saved');
                    ?>
"  data-post-id="<?php 
                    the_ID();
                    ?>
" title="<?php 
                    _e('Add My Favorite', 'javo_fr');
                    ?>
"></a>
												</i>
											</h2>
										</li>
									</ul><!-- List group -->
								</div>
							</div>
							<div class="javo-left-overlay">
								<div class="javo-txt-meta-area admin-color-setting">
									<?php 
                    echo $meta['featured'];
                    ?>
								</div> <!-- javo-txt-meta-area -->
								<div class="corner-wrap">
									<div class="corner admin-color-setting"></div>
									<div class="corner-background admin-color-setting"></div>
								</div> <!-- corner-wrap -->
							</div><!-- javo-left-overlay -->



						</div> <!-- /.panel -->
					</div><!-- /.col-sm-4 -->
					<?php 
                    $i++;
                    echo $i % 3 == 0 ? '<p style="clear:both;"></p>' : '';
                }
                // End While
            }
            // End If
            break;
        case 4:
            $posts = new WP_Query($args);
            if ($posts->have_posts()) {
                while ($posts->have_posts()) {
                    $posts->the_post();
                    $javo_meta_query = new javo_GET_META(get_the_ID());
                    $javo_rating = new javo_rating(get_the_ID());
                    $pd = strtotime(get_the_date());
                    $meta = array('column1' => $post_type == "item" ? $javo_meta_query->cat('item_category', __('No Category', 'javo_fr')) : get_the_author_meta('user_login'), 'column2' => $post_type == "item" ? $javo_meta_query->cat('item_location', __('No Location', 'javo_fr')) : get_the_author_meta('user_login'), 'column3' => $post_type == "item" ? (int) $javo_meta_query->get_child_count('jv_events') : get_the_author_meta('user_login'), 'column4' => $post_type == "item" ? (int) $javo_meta_query->get_child_count('review') : get_the_author_meta('user_login'), 'column5' => sprintf(' %s', $post_type == "item" ? $javo_meta_query->get('item_category', __('No Category', 'javo_fr')) : get_the_author_meta('user_login')), 'column6' => sprintf('<i class="%s"></i> %s', $post_type == "item" ? "icon-status" : "javo-con status", $post_type == "item" ? $javo_meta_query->get('item_category', __('No Category', 'javo_fr')) : get_the_author_meta('user_login')), 'features' => sprintf('<span class="%s"></span> %s', $post_type == "item" ? "glyphicon glyphicon-user" : "", $post_type == "item" ? $javo_meta_query->get('item_category', __('No Category', 'javo_fr')) : get_the_author_meta('user_login')), "month" => sprintf('%.1f', (double) $javo_meta_query->_get('rating_average', 0)), "day" => '/ ' . (int) $javo_meta_query->get_child_count('ratings', 'rating_parent_post_id'));
                    ?>
					<div class="row pretty_blogs" id="mini-album-listing">
						<div class="col-md-4 col-sm-5 col-xs-6 blog-thum-box">
							<?php 
                    $detail_images = (array) @unserialize(get_post_meta(get_the_ID(), "detail_images", true));
                    $detail_images[] = get_post_thumbnail_id(get_the_ID());
                    if (!empty($detail_images)) {
                        ?>
								<div class="javo_detail_slide">
									<ul class="slides list-unstyled">
										<?php 
                        foreach ($detail_images as $index => $image) {
                            $javo_this_image_meta = wp_get_attachment_image_src($image, 'full');
                            $javo_this = wp_get_attachment_image($image, "javo-box-v", false);
                            if (!$javo_this) {
                                $javo_this = sprintf('<img src="%s" class="img-responsive wp-post-image" style="width:100%%; height:219px;">', $javo_tso->get('no_image', JAVO_IMG_DIR . '/no-image.png'));
                            }
                            $javo_this_image = $javo_this_image_meta[0];
                            printf('<li><u href="%s">%s</u></li>', $javo_this_image, $javo_this);
                        }
                        ?>
									</ul>
									<?php 
                        if ($javo_custom_item_tab->get('ratings', '') == '') {
                            ?>
										<div class="javo-mini-album-rating-area">
											<div class="javo-rating-registed-score" data-score="<?php 
                            echo $javo_rating->parent_rating_average;
                            ?>
"></div>
										</div>
									<?php 
                        }
                        ?>
								</div>
								<?php 
                    }
                    ?>
							<div class="">
								<span class="down-text"><?php 
                    //echo $meta['month'];
                    ?>
</span>
								<span class="up-text"><?php 
                    //echo $meta['day'];
                    ?>
</span>
							</div>

						</div> <!-- col-md-5 -->

						<div class="col-md-8 col-sm-7 col-xs-6 blog-meta-box">
							<div class="blog-meta-box-arrow"></div>
							<h2 class="title"><a href="<?php 
                    echo get_permalink(get_the_ID());
                    ?>
"><?php 
                    the_title();
                    ?>
</a></h2>

							<div class="excerpt"><?php 
                    echo javo_str_cut(get_the_excerpt(), 240);
                    ?>
&nbsp;&nbsp;<a href="<?php 
                    the_permalink();
                    ?>
">[<?php 
                    _e('MORE', 'javo_fr');
                    ?>
]</a></div>

							<div class="row">
								<div class="col-md-12 javo-blog-meta-tags">
									<div class="pull-left javo-tooltip" title="<?php 
                    _e('Category', 'javo_fr');
                    ?>
">
										<ul class="pagination pagination-sm no-margin pagination-dark pagination-upper">
											<li class="active"><a href="#"><?php 
                    echo $meta['column1'];
                    ?>
</a></li>
										</ul>
									</div>
									<div class="pull-left javo-tooltip" title="<?php 
                    _e('Location', 'javo_fr');
                    ?>
">
										<ul class="pagination pagination-sm no-margin pagination-dark pagination-upper">
											<li class="active"><a href="#"><?php 
                    echo $meta['column2'];
                    ?>
</a></li>
										</ul>
									</div>
									<?php 
                    if ($javo_custom_item_tab->get('events', '') == '') {
                        ?>
										<div class="pull-left">
											<ul class="pagination pagination-sm no-margin pagination-dark">
												<li><a href="#" class="javo-accent bold-number"><?php 
                        echo $meta['column3'];
                        ?>
</a></li>
												<li class="active"><a href="#"><?php 
                        echo $javo_custom_item_label->get('events', __("Events", 'javo_fr')) . "(s)";
                        ?>
</a></li>
											</ul>
										</div>
									<?php 
                    }
                    ?>

									<?php 
                    if ($javo_custom_item_tab->get('reviews', '') == '') {
                        ?>
										<div class="pull-left">
											<ul class="pagination pagination-sm no-margin pagination-dark">
												<li><a href="#" class="javo-accent bold-number"><?php 
                        echo $meta['column4'];
                        ?>
</a></li>
												<li class="active"><a href="#"><?php 
                        echo $javo_custom_item_label->get('reviews', __("Reviews", 'javo_fr')) . "(s)";
                        ?>
</a></li>
											</ul>
										</div>
									<?php 
                    }
                    ?>
									<div class="pull-right">
										<span class="javo-sns-wrap social-wrap">
											<i class="sns-facebook" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
												<a class="facebook javo-tooltip" title="<?php 
                    _e('Share Facebook', 'javo_fr');
                    ?>
"></a>
											</i>
											<i class="sns-twitter" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
												<a class="twitter javo-tooltip" title="<?php 
                    _e('Share Twitter', 'javo_fr');
                    ?>
"></a>
											</i>
											<i class="sns-heart">
												<a class="javo-tooltip favorite javo_favorite<?php 
                    echo $javo_favorite->on(get_the_ID(), ' saved');
                    ?>
"  data-post-id="<?php 
                    the_ID();
                    ?>
" title="<?php 
                    _e('Add My Favorite', 'javo_fr');
                    ?>
"></a>
											</i>
										</span>
									</div>
								</div><!-- Col-md-12 -->
							</div> <!-- property-meta -->
						</div> <!-- col-md-7 -->
					</div> <!-- row -->
					<?php 
                }
                // End While
            }
            // End If
            break;
        case 11:
            $posts = new WP_Query($args);
            $javo_variable_integer = 0;
            ?>
			<div class="row" id="box-listing">
				<?php 
            if ($posts->have_posts()) {
                while ($posts->have_posts()) {
                    $posts->the_post();
                    $javo_meta_query = new javo_GET_META(get_the_ID());
                    $javo_meta_string = array('strong' => get_comments_number(get_the_ID()), 'featured' => $javo_meta_query->cat('category', __('No Category', 'javo_fr')), 'type' => sprintf('<span class="glyphicon glyphicon-user"></span> %s ( %s )', get_the_author_meta('display_name'), esc_attr(get_the_date(__('M d, Y', 'javo_fr')))));
                    ?>
						<div class="col-md-6 col-sm-6 col-xs-6 box-wraps">
							<div class="panel panel-default">
								<div class="panel-body">
									<div class="main-box item-wrap1">
										<div class="row blog-wrap-inner">
											<div class="col-md-5 col-sm-5 col-xs-5 img-wrap">
												<div class="javo_img_hover">
													<?php 
                    if (has_post_thumbnail()) {
                        the_post_thumbnail('javo-box', array('class' => 'img-responsive', 'style' => 'width:100%;'));
                    } else {
                        printf('<img src="%s" class="img-responsive wp-post-image">', $javo_tso->get('no_image', JAVO_IMG_DIR . '/no-image.png'));
                    }
                    ?>
												</div> <!-- javo_img_hover -->
											</div> <!-- col-md-5 -->
											<div class="col-md-7 col-sm-7 col-xs-7">
												<div class="detail">
													<h3><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    the_title();
                    ?>
</a></h3>
													<p class="expert"><?php 
                    echo javo_str_cut(get_the_excerpt(), 120);
                    ?>
</p>
												</div>
											</div> <!-- col-md-7 -->
										</div> <!-- row -->
									</div> <!-- main-box -->
								</div><!-- Panel Body -->

								<ul class="list-group">
									<li class="list-group-item">
										<div class="row">
											<div class="col-md-9 col-sm-9 col-xs-8 javo-box-listing-meta">
												<?php 
                    echo $javo_meta_string['type'];
                    ?>
											</div>
											<div class="col-md-3 col-sm-3 col-xs-4 text-right">
												<span class="javo-sns-wrap social-wrap">
													<i class="sns-facebook" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
														<a class="facebook javo-tooltip" title="<?php 
                    _e('Share Facebook', 'javo_fr');
                    ?>
"></a>
													</i>
													<i class="sns-twitter" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
														<a class="twitter javo-tooltip" title="<?php 
                    _e('Share Twitter', 'javo_fr');
                    ?>
"></a>
													</i>
												</span>
											</div> <!-- col-6-md -->
										</div><!-- row -->
									</li>
								  </ul>
								<div class="javo-left-overlay">
									<div class="javo-txt-meta-area admin-color-setting">
										<?php 
                    echo $javo_meta_string['featured'];
                    ?>
									</div> <!-- javo-txt-meta-area -->
									<div class="corner-wrap">
										<div class="corner"></div>
										<div class="corner-background"></div>
									</div> <!-- corner-wrap -->
								</div><!-- javo-left-overlay -->
							</div><!-- Panel Wrap -->
						</div> <!-- col-lg-6 -->
						<?php 
                    $javo_variable_integer++;
                    echo $javo_variable_integer % 2 == 0 ? '<p class="clearfix"></p>' : '';
                }
                // End While
            }
            // End IF
            ?>
			</div>
			<?php 
            break;
        case "listers":
            $posts = query_posts($args);
            ## Blog Calender Type #################
            foreach ($posts as $post) {
                setup_postdata($post);
                $javo_list_str = new get_char($post);
                $author = get_userdata($post->post_author);
                if (has_post_thumbnail($post->ID)) {
                    $thumbnail = get_the_post_thumbnail($post->ID, "javo-avatar");
                } else {
                    $thumbnail = $noimage;
                }
                ?>
			<!--<div class="row">-->
				<div class="col-md-3" id="listers-box-list">
				<div class="panel panel-default">
					  <div class="panel-heading">

					  <div class="lister-pic">
						<a href="<?php 
                echo get_permalink($post->ID);
                ?>
">
							<?php 
                $img_src = wp_get_attachment_image_src(get_user_meta($author->ID, "avatar", true), "javo-avatar");
                if ($img_src != "") {
                    printf("<img src='%s'>", $img_src[0]);
                }
                ?>
						</a>
							<div class="text-rb-meta">
							<?php 
                printf("%s %s", number_format($javo_list_str->get_author_item_count()), __("items", "javo_fr"));
                ?>
							</div>
						</div>

					  </div> <!-- panel-heading -->
					  <ul class="list-group">
  						<li class="list-group-item"><h3 class="panel-title"><span class="glyphicon glyphicon-user"></span>&nbsp;
								<?php 
                echo $author->first_name;
                ?>
&nbsp;<?php 
                echo $author->last_name;
                ?>
</h3></li>

						<li class="list-group-item"><?php 
                echo javo_str_cut($javo_list_str->a_meta('description'), 130);
                ?>
</li>
						<li class="list-group-item">
							<a href="http://facebook.com/<?php 
                echo $javo_list_str->a_meta('facebook');
                ?>
" target="_blank"><i class="fa fa-facebook"></i></a>
							<a href="http://twitter.com/<?php 
                echo $javo_list_str->a_meta('twitter');
                ?>
" target="_blank"><i class="fa fa-twitter"></i></a>
						</li>
					  </ul><!-- List group -->
					</div><!-- panel -->



				</div> <!-- col-md-3 -->
		<?php 
            }
            break;
        case "new_list":
            $posts = new WP_Query($args);
            ?>
			<div class="body-content">
				<div class="container">
					<div class="row">
						<div class="col-md-12">
							<!-- grid/list -->
							<div id="products" class="row list-group">
							<?php 
            if ($posts->have_posts()) {
                while ($posts->have_posts()) {
                    $posts->the_post();
                    $javo_this_author_avatar_id = get_the_author_meta('avatar');
                    $javo_rating = new javo_rating(get_the_ID());
                    ?>
									<div class="item col-md-4 javo-animation x1 javo-left-to-right-100">

									<div class="panel panel-default  item-list-box-listing">
										<div class="panel-body">
											<div class="main-box blog-wrap1">
												<div class="row blog-wrap-inner">
													<div class="col-md-12img-wrap">
														<div class="javo_img_hover" style="position: relative; display: inline-block;">
															<a href="<?php 
                    the_permalink();
                    ?>
">
																<?php 
                    if (has_post_thumbnail()) {
                        the_post_thumbnail('javo-box-v', array('class' => 'group list-group-image item-thumbs img-responsive'));
                    }
                    ?>
																<div class="img-on-ratings text-right">
																	<div class="javo-rating-registed-score" data-score="<?php 
                    echo $javo_rating->parent_rating_average;
                    ?>
"></div>
																</div>

																<div class="javo_hover_body" style="position: absolute; top: 0px; left: 0px; z-index: 2; width: 100%; height: 100%; padding: 10px; margin: 0px; display: none; opacity: 0.3151841979620183; background-color: rgba(0, 0, 0, 0.4);">
																	<div class="javo_hover_content" style="cursor: pointer; display: table; width: 100%; height: 100%;" data-href="<?php 
                    the_permalink();
                    ?>
">
																	<div class="javo_hover_content_link" style="display: table-cell; color: rgb(239, 239, 239); vertical-align: middle; font-size: 2em; text-align: center;"><i class="glyphicon glyphicon-plus"></i></div></div> <!-- javo_hover_content -->
																</div> <!-- javo_hover_body -->
															</a>
														</div> <!-- javo_img_hover -->
													</div> <!-- col-md-12 -->
												</div> <!-- row -->
											</div> <!-- main-box -->
										</div><!-- Panel Body -->


										<ul class="list-group">
											<li class="list-group-item">
												<div class="row">
													<div class="col-md-8">
														<?php 
                    echo javo_str_cut(get_the_title(), 20);
                    ?>


													</div>
													<div class="col-md-4 text-right">
														<div class="social-wrap javo-type-11-share">
															<span class="javo-sns-wrap">
																<i class="sns-facebook" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
																	<a class="facebook"></a>
																</i>
																<i class="sns-twitter" data-title="<?php 
                    the_title();
                    ?>
" data-url="<?php 
                    the_permalink();
                    ?>
">
																	<a class="twitter"></a>
																</i>
																<i class="sns-heart">
																	<a class="favorite javo_favorite<?php 
                    echo $javo_favorite->on(get_the_ID(), ' saved');
                    ?>
"  data-post-id="<?php 
                    the_ID();
                    ?>
"></a>
																</i>
															</span>
														</div> <!-- sc-social-wrap -->
													</div> <!-- col-6-md -->
												</div><!-- row -->
											</li> <!-- list-group-item -->
										</ul> <!-- list-group -->

										<div class="panel-footer options-wrap">
											<div class="row">
												<ul class="options">
													<li class="col-md-6 col-sm-6 col-xs-6"><i class="javo-con category"></i>&nbsp;<?php 
                    echo javo_get_cat(get_the_ID(), 'item_category', __('No Category', 'javo_fr'));
                    ?>
</li>
													<li class="col-md-6 col-sm-6 col-xs-6 text-right"><i class="javo-con location"></i>&nbsp;<?php 
                    echo javo_get_cat(get_the_ID(), 'item_location', __('No Location', 'javo_fr'));
                    ?>
</li>
												</ul>
											</div>
										</div><!-- panel-footer -->
										<div class="javo-left-overlay">
											<div class="javo-txt-meta-area">
												<?php 
                    echo javo_get_cat(get_the_ID(), 'item_category', __('No Category', 'javo_fr'));
                    ?>
											</div> <!-- javo-txt-meta-area -->
											<div class="corner-wrap">
												<div class="corner"></div>
												<div class="corner-background"></div>
											</div> <!-- corner-wrap -->
										</div><!-- javo-left-overlay -->
									</div> <!-- panel -->
									</div> <!-- item col-md-4 -->
									<?php 
                }
                // Close while
            } else {
            }
            // Emd While
            ?>
							<!-- // grid/list -->


						</div>
					</div>
				</div>
			</div>
			<?php 
            break;
        default:
            _e('Error', 'javo_fr');
    }
    $big = 999999999;
    // need an unlikely integer
    wp_reset_query();
    echo "<div class='javo_pagination'>" . paginate_links(array('base' => "%_%", 'format' => '?paged=%#%', 'current' => $page, 'total' => $posts->max_num_pages)) . "</div>";
    $content = ob_get_clean();
    // Markers
    $javo_this_info_window_contents = new WP_Query($args);
    $markers = array();
    if ($javo_this_info_window_contents->have_posts()) {
        while ($javo_this_info_window_contents->have_posts()) {
            $javo_this_info_window_contents->the_post();
            $javo_meta_query = new javo_GET_META(get_the_ID());
            $javo_this_author_avatar_id = get_the_author_meta('avatar');
            $javo_this_author_name = sprintf('%s %s', get_the_author_meta('first_name'), get_the_author_meta('last_name'));
            ob_start();
            ?>
				<div class="javo_somw_info">
					<div class="row">
						<div class="col-md-6 col-sm-6 col-xs-12">
							<h4><?php 
            the_title();
            ?>
</h4>
							<ul class="list-unstyled">
								<li><div class="prp-meta"><?php 
            echo $javo_meta_query->get('phone');
            ?>
</div></li>
								<li><div class="prp-meta"><?php 
            echo $javo_meta_query->get('mobile');
            ?>
</div></li>
								<li><div class="prp-meta"><?php 
            echo $javo_meta_query->get('website');
            ?>
</div></li>
								<li><div class="prp-meta"><?php 
            echo $javo_meta_query->get('email');
            ?>
</div></li>
							</ul>
						</div><!-- /.col-md-8 -->
						<div class="col-md-6 col-sm-6 hidden-xs">
							<div class="thumb">
								<a href="<?php 
            the_permalink();
            ?>
" target="_blank">
									<?php 
            if (has_post_thumbnail()) {
                the_post_thumbnail('javo-map-thumbnail');
            } else {
                printf('<img src="%s" style="width:150px; height:165px;">', $javo_tso->get('no_image', JAVO_IMG_DIR . '/no-image.png'));
            }
            ?>
								</a>
								<div class="img-in-text"><?php 
            echo $javo_meta_query->cat('item_category', __('No Category', 'javo_fr'));
            ?>
</div>
								<div class="javo-left-overlay">
									<div class="javo-txt-meta-area"><?php 
            echo $javo_meta_query->cat('item_location', __('No Location', 'javo_fr'));
            ?>
</div>
									<div class="corner-wrap">
										<div class="corner"></div>
										<div class="corner-background"></div>
									</div> <!-- corner-wrap -->
								</div> <!-- javo-left-overlay -->
							</div> <!-- thumb -->
						</div><!-- /.col-md-4 -->
					</div><!-- /.row -->



				</div> <!-- javo_somw_info -->
			<?php 
            $infoWindow = ob_get_clean();
            $latlng = array('lat' => get_post_meta(get_the_ID(), 'jv_item_lat', true), 'lng' => get_post_meta(get_the_ID(), 'jv_item_lng', true));
            $javo_set_icon = '';
            $javo_marker_term_id = wp_get_post_terms(get_the_ID(), 'item_category');
            if (!empty($javo_marker_term_id)) {
                $javo_set_icon = get_option('javo_item_category_' . $javo_marker_term_id[0]->term_id . '_marker', '');
                if ($javo_set_icon == '') {
                    $javo_set_icon = $javo_tso->get('map_marker', '');
                }
            }
            if (!empty($latlng['lat']) && !empty($latlng['lng'])) {
                $markers[] = array('id' => 'mid_' . get_the_ID(), 'lat' => $latlng['lat'], 'lng' => $latlng['lng'], 'info' => array('content' => $infoWindow, 'post_title' => get_the_title()), 'icon' => $javo_set_icon);
            }
        }
        // End While
    }
    // End If
    // Not found results
    ob_start();
    ?>
	<div class="row">
		<div class="col-md-12 text-center">
			<?php 
    _e('No result found. Please try again', 'javo_fr');
    ?>
		</div>

	</div>

	<?php 
    $blank_content = ob_get_clean();
    $result = array("result" => "success", "html" => $posts->found_posts > 0 ? $content : $blank_content, "markers" => $markers);
    echo json_encode($result);
    exit(0);
}
	}
*/
$ks_this_posts = new WP_Query($args);
?>
<div class="main-content">
	
	<h1 class="main-heading">?? Apartments found for Sale</h1>
	
		<div class="col-md-8 col-sm-12">
		
			<?php 
if ($ks_this_posts->have_posts()) {
    while ($ks_this_posts->have_posts()) {
        $ks_this_posts->the_post();
        $ks_property_str = new get_char(get_post(get_the_ID()));
        ?>

			<div class="single-listing">
		
				<div class="row">		
				
					<div class="col-md-9 col-sm-6">
							
						<h3 class="listing-title"><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
<?php

$ks_property_str = new get_char(get_post(get_the_ID()));
?>
<div class="single-listing">

	<div class="row">		
	
		<div class="col-md-9 col-sm-6">
				
			<h3 class="listing-title"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h3>
			
			<div class="listing-images" style="float: left;">
				<a href="<?php 
the_permalink();
?>
">
					<div style="background-image: url('http://localhost:8080/wptesting/wp-content/themes/property-house/images/thumbnail.jpeg');"></div>
					<!--<img src="http://localhost:8080/wptesting/wp-content/themes/property-house/images/thumbnail.jpeg" />-->
				</a>
			</div>
			
			<div class="listing-features">
				<ul>
					<li>Bedrooms : <b><?php 
get_header();
?>

<div class="main-content">
		
	<div class="col-md-9 col-sm-12">
	
		<div class="row">
		
		<?php 
while (have_posts()) {
    the_post();
    ?>
		
		<?php 
    $ks_property_str = new get_char(get_post(get_the_ID()));
    $latlng = unserialize(get_post_meta($post->ID, "latlng", true));
    $detail_images = @unserialize(get_post_meta($post->ID, "detail_images", true));
    ?>
		
		<?php 
    the_title('<h1 class="main-heading" style="float: left;">', '</h1>');
    ?>
			<div class="single-listing-price" style="margin-top: 18px; display: inline-block;"><?php 
    echo $ks_property_str->__meta('price_postfix');
    ?>
 <b style="font-size: 20px;"><?php 
    echo $ks_property_str->__meta('sale_price');
    ?>
</b> /yr</div>