├── inc ├── demo-data │ ├── screen-image.jpg │ ├── css │ │ └── demo-import.css │ ├── anipat-widgets-demo.wie │ ├── anipat-customizer.dat │ └── demo-import.php ├── elementor-widgets │ ├── assets │ │ ├── css │ │ │ ├── elementor-edit.css │ │ │ ├── utility.css │ │ │ ├── owl.carousel.min.css │ │ │ └── magnific-popup.css │ │ ├── fonts │ │ │ └── themify-icon │ │ │ │ └── fonts │ │ │ │ ├── themify.eot │ │ │ │ ├── themify.ttf │ │ │ │ └── themify.woff │ │ └── js │ │ │ ├── jquery.counterup.min.js │ │ │ ├── map-active.js │ │ │ ├── progress-loader-canvas.js │ │ │ ├── jquery.counterup.js │ │ │ ├── imagesLoaded.js │ │ │ ├── barfiller.js │ │ │ ├── waypoints.js │ │ │ ├── anipat-companion-main.js │ │ │ └── jquery.youtubebackground.js │ ├── widgets │ │ ├── hero-section.php │ │ ├── about-area.php │ │ ├── home-contact.php │ │ ├── contact.php │ │ ├── team-member.php │ │ ├── testimonial.php │ │ ├── services.php │ │ └── adopt.php │ └── elementor-widget.php ├── anipat-metabox.php ├── sidebar-widgets │ ├── blog-widget.php │ ├── newsletter-widget.php │ ├── social-links.php │ ├── about-widget.php │ └── contact-info.php └── functions.php ├── js ├── common.js └── loadmore-ajax.js ├── anipat-init.php ├── anipat-companion.php └── readme.txt /inc/demo-data/screen-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/anipat-companion/main/inc/demo-data/screen-image.jpg -------------------------------------------------------------------------------- /inc/elementor-widgets/assets/css/elementor-edit.css: -------------------------------------------------------------------------------- 1 | .elementor-choices-label i { 2 | font-size: 18px !important; 3 | padding: 5px 0; 4 | } -------------------------------------------------------------------------------- /inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/anipat-companion/main/inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.eot -------------------------------------------------------------------------------- /inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/anipat-companion/main/inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.ttf -------------------------------------------------------------------------------- /inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColorlibHQ/anipat-companion/main/inc/elementor-widgets/assets/fonts/themify-icon/fonts/themify.woff -------------------------------------------------------------------------------- /inc/demo-data/css/demo-import.css: -------------------------------------------------------------------------------- 1 | .ocdi__demo-import-notice:not(:empty) { 2 | background-color: transparent !important; 3 | border-left: 0px !important; 4 | box-shadow: none !important; 5 | padding: 0px !important; 6 | } 7 | .ocdi__demo-import-notice img { 8 | border: 4px solid #dbe3ea; 9 | width: auto; 10 | } 11 | .about-wrap .ocdi__demo-import-notice img { 12 | width: auto; 13 | } 14 | .about-wrap img { 15 | width: auto; 16 | } -------------------------------------------------------------------------------- /js/common.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | /*------------------------------------- 4 | Instagram Photos 5 | -------------------------------------*/ 6 | function cp_instagram_photos() { 7 | $('.cp-instagram-photos').each(function(){ 8 | $.instagramFeed({ 9 | 'username': $(this).data('username'), 10 | 'container': $(this), 11 | 'display_profile': false, 12 | 'display_biography': false, 13 | 'items': $(this).data('items'), 14 | 'margin': 0 15 | }); 16 | console.log( $(this) ); 17 | }); 18 | 19 | } 20 | cp_instagram_photos(); 21 | })(jQuery); -------------------------------------------------------------------------------- /inc/elementor-widgets/assets/css/utility.css: -------------------------------------------------------------------------------- 1 | /* ------------------------- 2 | :: utility Class 3 | ---------------------------- */ 4 | .anipat-pt-100 { 5 | padding-top: 100px; 6 | } 7 | .anipat-pt-80 { 8 | padding-top: 80px; 9 | } 10 | .anipat-pt-70 { 11 | padding-top: 70px; 12 | } 13 | .anipat-pt-60 { 14 | padding-top: 60px; 15 | } 16 | .anipat-pt-50 { 17 | padding-top: 50px; 18 | } 19 | .anipat-pt-30 { 20 | padding-top: 30px; 21 | } 22 | .anipat-pb-100 { 23 | padding-bottom: 100px; 24 | } 25 | .anipat-pb-80 { 26 | padding-bottom: 80px; 27 | } 28 | .anipat-pb-70 { 29 | padding-bottom: 70px; 30 | } 31 | .anipat-pb-60 { 32 | padding-bottom: 60px; 33 | } 34 | .anipat-pb-50 { 35 | padding-bottom: 50px; 36 | } 37 | .anipat-pb-30 { 38 | padding-bottom: 30px; 39 | } 40 | -------------------------------------------------------------------------------- /inc/demo-data/anipat-widgets-demo.wie: -------------------------------------------------------------------------------- 1 | {"anipat-post-sidebar":{"search-1":{"title":""},"categories-1":{"title":"Category","count":1,"hierarchical":0,"dropdown":0},"anipat_blog_widget-1":{"sectiontitle":"Recent Posts","postnumber":"4","style":"1"},"anipat_newsletter-1":{"title":"Newsletter","actionurl":"https:\/\/spondonit.us12.list-manage.com\/subscribe\/post?u=1462626880ade1ac87bd9c93a&id=92a4423d01","desc":""}},"footer-1":{"text-1":{"title":"Contact Us","text":"
\r\n
185 | 'listing', 194 | 'order' => $post_order, 195 | 'posts_per_page' => $post_item, 196 | 'post__not_in' => array( $current_post_id ), 197 | ) ); 198 | ?> 199 | 200 | 201 |
202 |
203 |
204 |
205 |
206 | '.esc_html( $have_related_listing_title ).' 210 | '; 211 | } 212 | ?> 213 |
214 |
215 |
216 |
217 | have_posts() ) { 219 | while ( $related_listings->have_posts() ) { 220 | $related_listings->the_post(); 221 | $recipe_img = get_the_post_thumbnail( get_the_ID(), 'anipat_listing_thumb_362x250', '', array( 'alt' => get_the_title() ) ); 222 | $listing_address = ! empty( anipat_meta( 'listing_address') ) ? anipat_meta( 'listing_address') : 'N/A'; 223 | $phone_number = ! empty( anipat_meta( 'phone_number') ) ? anipat_meta( 'phone_number') : 'N/A'; 224 | $listing_email = ! empty( anipat_meta( 'listing_email') ) ? anipat_meta( 'listing_email') : 'N/A'; 225 | ?> 226 |
227 |
228 | 232 | '.$recipe_img.' 233 |
234 | '; 235 | } 236 | ?> 237 |
238 |
239 | 240 |
241 |
242 |

243 | '.wp_kses_post($listing_address).'

'; 246 | } 247 | if ( $phone_number != '' || $listing_email != '' ) { 248 | ?> 249 |
    250 | 254 | '.$phone_number.' 255 | '; 256 | } 257 | if( $listing_email ) { 258 | echo ' 259 |
  • 260 | '.$listing_email.'
  • 261 | '; 262 | } 263 | ?> 264 |
265 | 268 |
269 |
270 |
271 |
272 | 276 |
277 |
278 | 279 | 280 | 286 | 287 |
288 |
289 |
290 |
291 |
292 | '.esc_html($sec_title).''; 295 | } 296 | ?> 297 |
298 |
299 |
300 | 315 |
316 |
317 |
318 |
319 | 383 |
384 | 387 |
388 | 389 | 390 | slug; 449 | $loc_term = get_term($search_location, 'listing_country'); 450 | $loc_slug = $loc_term->slug; 451 | $response = []; 452 | ob_start(); 453 | // $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; 454 | $properties = new WP_Query( array( 455 | 'post_type' => 'listing', 456 | 'tax_query' => array( 457 | 'relation' => 'AND', 458 | array( 459 | 'taxonomy' => 'listing_category', 460 | 'field' => 'slug', 461 | 'terms' => $cat_slug, 462 | // 'compare' => '=', 463 | ), 464 | array( 465 | 'taxonomy' => 'listing_country', 466 | 'field' => 'slug', 467 | 'terms' => $loc_slug, 468 | // 'compare' => '=', 469 | ), 470 | ), 471 | 'meta_query' => array( 472 | 'relation' => 'AND', 473 | array( 474 | 'key' => '_anipat_listing_price', 475 | 'value' => array($price_min, $price_max), 476 | 'type' => 'numeric', 477 | 'compare' => 'BETWEEN', 478 | ), 479 | array( 480 | 'key' => '_anipat_listing_area', 481 | 'value' => array($search_area_from, $search_area_to), 482 | 'type' => 'numeric', 483 | 'compare' => 'BETWEEN', 484 | ), 485 | ), 486 | 'posts_per_page' => '6', 487 | // 'paged' => $paged, 488 | ) ); 489 | if( $properties->have_posts() ) { 490 | while ( $properties->have_posts() ) { 491 | $properties->the_post(); 492 | $property_img = get_the_post_thumbnail( get_the_ID(), 'anipat_listing_thumb_362x250', '', array( 'alt' => get_the_title() ) ); 493 | $listing_address = ! empty( real_estate_meta( 'listing_address') ) ? real_estate_meta( 'listing_address') : ''; 494 | $phone_number = ! empty( real_estate_meta( 'phone_number') ) ? real_estate_meta( 'phone_number') : ''; 495 | $listing_email = ! empty( real_estate_meta( 'listing_email') ) ? real_estate_meta( 'listing_email') : ''; 496 | $item++; 497 | ?> 498 |
499 |
500 |
501 | 506 |
507 |
508 |
509 | 510 |
511 |
512 |

513 |

514 |
    515 |
  • 516 |
  • 517 |
  • 518 |
519 |
520 |
521 |
522 |
523 | '; 526 | wp_reset_postdata(); 527 | } else { 528 | echo '

Sorry! We could not find any property with your criteria.

'; 529 | // echo '

Prop type '.$prop_type.'

'; 530 | } 531 | $response = ob_get_clean(); 532 | } 533 | 534 | // Return response 535 | echo json_encode( $response ); 536 | exit(); 537 | } 538 | } 539 | --------------------------------------------------------------------------------