Changeset 2986633
- Timestamp:
- 10/31/2023 08:49:52 AM (2 years ago)
- Location:
- apimo/trunk
- Files:
-
- 3 added
- 31 edited
-
README.md (modified) (1 diff)
-
action-scheduler/classes/ActionScheduler_DateTime.php (modified) (3 diffs)
-
action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php (modified) (3 diffs)
-
action-scheduler/classes/schema/ActionScheduler_StoreSchema.php (modified) (5 diffs)
-
action-scheduler/functions.php (modified) (1 diff)
-
admin/add_property.php (modified) (24 diffs)
-
admin/settings.php (modified) (16 diffs)
-
apimo.php (modified) (4 diffs)
-
assets/css/admin.css (modified) (1 diff)
-
assets/images/gear-setting-icon-png.webp (added)
-
assets/images/shortcodeicon.png (added)
-
assets/images/welcome.png (added)
-
assets/js/admin.js (modified) (4 diffs)
-
assets/js/frontend.js (modified) (2 diffs)
-
includes/apimo_ajax.php (modified) (2 diffs)
-
includes/metabox.php (modified) (1 diff)
-
includes/shortcode.php (modified) (7 diffs)
-
languages/apimo-de_DE.mo (modified) (previous)
-
languages/apimo-de_DE.po (modified) (5 diffs)
-
languages/apimo-en_GB.mo (modified) (previous)
-
languages/apimo-en_GB.po (modified) (1 diff)
-
languages/apimo-es_ES.mo (modified) (previous)
-
languages/apimo-es_ES.po (modified) (5 diffs)
-
languages/apimo-fr_FR.mo (modified) (previous)
-
languages/apimo-fr_FR.po (modified) (12 diffs)
-
languages/apimo-it_IT.mo (modified) (previous)
-
languages/apimo-it_IT.po (modified) (3 diffs)
-
languages/apimo-ru_RU.mo (modified) (previous)
-
languages/apimo-ru_RU.po (modified) (3 diffs)
-
languages/apimo.pot (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
templates/single-property.php (modified) (2 diffs)
-
templates/single_property_style_1.php (modified) (8 diffs)
-
templates/template_archive_block.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apimo/trunk/README.md
r2986629 r2986633 3 3 4 4 guide d'instalation : https://docs.google.com/document/d/12UlXOGv8eQSX0roWzwv7dgqc7VIWvN3r/edit?usp=sharing&ouid=106872380869006948937&rtpof=true&sd=true 5 6 # Publier sur le store WP 7 8 exemple avec le fichier apimo_ajax 9 10 - svn co https://plugins.svn.wordpress.org/apimo 11 - cp ../includes/apimo_ajax.php apimo/trunk/includes/apimo_ajax.php 12 - svn update trunk/includes/apimo_ajax.php 13 - svn status 14 - svn commit -m 'patch api connector: multiple agencies on the same provider' trunk/includes/apimo_ajax.php 15 - svn cp trunk tags/2.2.1 16 - svn ci -m "tagging version 2.2.1" -
apimo/trunk/action-scheduler/classes/ActionScheduler_DateTime.php
r2986629 r2986633 51 51 */ 52 52 53 public function getTimestamp() {53 // public function getTimestamp() { 54 54 55 return method_exists( 'DateTime', 'getTimestamp' ) ? parent::getTimestamp() : $this->format( 'U' );55 // return method_exists( 'DateTime', 'getTimestamp' ) ? parent::getTimestamp() : $this->format( 'U' ); 56 56 57 // } 58 59 public function getTimestamp(): int { 60 return method_exists('DateTime', 'getTimestamp') ? parent::getTimestamp() : (int) $this->format('U'); 57 61 } 58 62 … … 93 97 */ 94 98 95 public function getOffset() {99 // public function getOffset() { 96 100 101 // return $this->utcOffset ? $this->utcOffset : parent::getOffset(); 102 103 // } 104 public function getOffset(): int { 97 105 return $this->utcOffset ? $this->utcOffset : parent::getOffset(); 98 99 106 } 100 107 … … 117 124 */ 118 125 119 public function setTimezone( $timezone ) {126 // public function setTimezone( $timezone ) { 120 127 121 $this->utcOffset = 0;128 // $this->utcOffset = 0; 122 129 123 parent::setTimezone( $timezone );130 // parent::setTimezone( $timezone ); 124 131 125 132 126 133 127 return $this;134 // return $this; 128 135 136 // } 137 public function setTimezone($timezone): DateTime { 138 $this->utcOffset = 0; 139 parent::setTimezone($timezone); 140 return $this; 129 141 } 130 142 -
apimo/trunk/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php
r2986629 r2986633 85 85 message text NOT NULL, 86 86 87 log_date_gmt datetime NULL default ' ${default_date}',87 log_date_gmt datetime NULL default '{$default_date}', 88 88 89 log_date_local datetime NULL default ' ${default_date}',89 log_date_local datetime NULL default '{$default_date}', 90 90 91 91 PRIMARY KEY (log_id), … … 151 151 $table_name = $wpdb->prefix . 'actionscheduler_logs'; 152 152 153 $table_list = $wpdb->get_col( "SHOW TABLES LIKE ' ${table_name}'" );153 $table_list = $wpdb->get_col( "SHOW TABLES LIKE '{$table_name}'" ); 154 154 155 155 $default_date = ActionScheduler_StoreSchema::DEFAULT_DATE; … … 161 161 $query = " 162 162 163 ALTER TABLE ${table_name}163 ALTER TABLE {$table_name} 164 164 165 MODIFY COLUMN log_date_gmt datetime NULL default ' ${default_date}',165 MODIFY COLUMN log_date_gmt datetime NULL default '{$default_date}', 166 166 167 MODIFY COLUMN log_date_local datetime NULL default ' ${default_date}'167 MODIFY COLUMN log_date_local datetime NULL default '{$default_date}' 168 168 169 169 "; -
apimo/trunk/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php
r2986629 r2986633 97 97 status varchar(20) NOT NULL, 98 98 99 scheduled_date_gmt datetime NULL default ' ${default_date}',100 101 scheduled_date_local datetime NULL default ' ${default_date}',99 scheduled_date_gmt datetime NULL default '{$default_date}', 100 101 scheduled_date_local datetime NULL default '{$default_date}', 102 102 103 103 args varchar($max_index_length), … … 109 109 attempts int(11) NOT NULL default '0', 110 110 111 last_attempt_gmt datetime NULL default ' ${default_date}',112 113 last_attempt_local datetime NULL default ' ${default_date}',111 last_attempt_gmt datetime NULL default '{$default_date}', 112 113 last_attempt_local datetime NULL default '{$default_date}', 114 114 115 115 claim_id bigint(20) unsigned NOT NULL default '0', … … 147 147 claim_id bigint(20) unsigned NOT NULL auto_increment, 148 148 149 date_created_gmt datetime NULL default ' ${default_date}',149 date_created_gmt datetime NULL default '{$default_date}', 150 150 151 151 PRIMARY KEY (claim_id), … … 227 227 $table_name = $wpdb->prefix . 'actionscheduler_actions'; 228 228 229 $table_list = $wpdb->get_col( "SHOW TABLES LIKE ' ${table_name}'" );229 $table_list = $wpdb->get_col( "SHOW TABLES LIKE '{$table_name}'" ); 230 230 231 231 $default_date = self::DEFAULT_DATE; … … 237 237 $query = " 238 238 239 ALTER TABLE ${table_name}240 241 MODIFY COLUMN scheduled_date_gmt datetime NULL default ' ${default_date}',242 243 MODIFY COLUMN scheduled_date_local datetime NULL default ' ${default_date}',244 245 MODIFY COLUMN last_attempt_gmt datetime NULL default ' ${default_date}',246 247 MODIFY COLUMN last_attempt_local datetime NULL default ' ${default_date}'239 ALTER TABLE {$table_name} 240 241 MODIFY COLUMN scheduled_date_gmt datetime NULL default '{$default_date}', 242 243 MODIFY COLUMN scheduled_date_local datetime NULL default '{$default_date}', 244 245 MODIFY COLUMN last_attempt_gmt datetime NULL default '{$default_date}', 246 247 MODIFY COLUMN last_attempt_local datetime NULL default '{$default_date}' 248 248 249 249 "; -
apimo/trunk/action-scheduler/functions.php
r2986629 r2986633 617 617 */ 618 618 619 function as_get_datetime_object( $date_string = null, $timezone = 'UTC' ) { 620 621 if ( is_object( $date_string ) && $date_string instanceof DateTime ) { 622 623 $date = new ActionScheduler_DateTime( $date_string->format( 'Y-m-d H:i:s' ), new DateTimeZone( $timezone ) ); 624 625 } elseif ( is_numeric( $date_string ) ) { 626 627 $date = new ActionScheduler_DateTime( '@' . $date_string, new DateTimeZone( $timezone ) ); 628 629 } else { 630 631 $date = new ActionScheduler_DateTime( $date_string, new DateTimeZone( $timezone ) ); 632 633 } 634 635 return $date; 636 637 } 638 619 // function as_get_datetime_object( $date_string = null, $timezone = 'UTC' ) { 620 621 // if ( is_object( $date_string ) && $date_string instanceof DateTime ) { 622 623 // $date = new ActionScheduler_DateTime( $date_string->format( 'Y-m-d H:i:s' ), new DateTimeZone( $timezone ) ); 624 625 // } elseif ( is_numeric( $date_string ) ) { 626 627 // $date = new ActionScheduler_DateTime( '@' . $date_string, new DateTimeZone( $timezone ) ); 628 629 // } else { 630 631 // $date = new ActionScheduler_DateTime( $date_string, new DateTimeZone( $timezone ) ); 632 633 // } 634 635 // return $date; 636 637 // } 638 function as_get_datetime_object($date_string = null, $timezone = 'UTC') { 639 if ($date_string === null) { 640 $date = new ActionScheduler_DateTime('now', new DateTimeZone($timezone)); 641 } elseif (is_object($date_string) && $date_string instanceof DateTime) { 642 $date = new ActionScheduler_DateTime($date_string->format('Y-m-d H:i:s'), new DateTimeZone($timezone)); 643 } elseif (is_numeric($date_string)) { 644 $date = new ActionScheduler_DateTime('@' . $date_string, new DateTimeZone($timezone)); 645 } else { 646 $date = new ActionScheduler_DateTime($date_string, new DateTimeZone($timezone)); 647 } 648 return $date; 649 } -
apimo/trunk/admin/add_property.php
r2986629 r2986633 304 304 if (empty($property_exist->posts)) { 305 305 306 306 307 $title = $property->id; 308 if(isset($commentdata_lang->title)){ 309 $title = $commentdata_lang->title; 310 } 307 311 308 312 $id = wp_insert_post(array( 309 313 310 'post_title' => !empty($commentdata_lang) ? $commentdata_lang->title : $property->id,314 'post_title' => $title, 311 315 312 316 'post_type' => 'property', 313 317 314 318 'post_status' => 'publish', 315 316 317 319 318 320 )); … … 367 369 368 370 369 370 $country = wp_set_object_terms($id, $property->country, 'country', true); 371 372 $region = wp_set_object_terms($id, $property->region->name, 'region', true); 373 374 add_term_meta($region[0], 'apimo_term_id', $property->region->id); 375 376 $city = wp_set_object_terms($id, $property->city->name, 'city', false); 377 371 if($property->country){ 372 $country = wp_set_object_terms($id, $property->country, 'country', true); 373 } 378 374 379 380 update_term_meta($city[0], 'apimo_term_id', $property->city->id); 381 update_term_meta($city[0], 'zip_code', $property->city->zipcode); 375 376 // $country = wp_set_object_terms($id, $property->country, 'country', true); 377 378 if($property->region){ 379 $region = wp_set_object_terms($id, $property->region->name, 'region', true); 380 add_term_meta($region[0], 'apimo_term_id', $property->region->id); 381 382 } 383 384 // $region = wp_set_object_terms($id, $property->region->name, 'region', true); 385 386 // add_term_meta($region[0], 'apimo_term_id', $property->region->id); 387 388 if($property->city){ 389 $city = wp_set_object_terms($id, $property->city->name, 'city', false); 390 update_term_meta($city[0], 'apimo_term_id', $property->city->id); 391 update_term_meta($city[0], 'zip_code', $property->city->zipcode); 392 } 393 // $city = wp_set_object_terms($id, $property->city->name, 'city', false); 394 395 396 397 // update_term_meta($city[0], 'apimo_term_id', $property->city->id); 398 // update_term_meta($city[0], 'zip_code', $property->city->zipcode); 399 382 400 // $city_zipcode = wp_insert_term($property->city->zipcode, 'city', array('parent' => $city[0])); 383 401 // if (is_wp_error($city_zipcode)) { … … 387 405 // wp_set_object_terms($id, $city_zipcode, 'city', true); 388 406 // } 389 390 391 $district = wp_set_object_terms($id, $property->district->name, 'district', true); 392 393 add_term_meta($district[0], 'apimo_term_id', $property->district->id); 407 408 409 if ($property->district) { 410 411 $district = wp_set_object_terms($id, $property->district->name, 'district', true); 412 add_term_meta($district[0], 'apimo_term_id', $property->district->id); 413 414 } 415 416 // $district = wp_set_object_terms($id, $property->district->name, 'district', true); 417 418 // add_term_meta($district[0], 'apimo_term_id', $property->district->id); 394 419 395 420 … … 416 441 417 442 $category = get_terms($category_args); 418 419 wp_set_object_terms($id, $category[0]->term_id, 'apimo_category', true); 443 if($category){ 444 wp_set_object_terms($id, $category[0]->term_id, 'apimo_category', true); 445 446 } 447 // wp_set_object_terms($id, $category[0]->term_id, 'apimo_category', true); 420 448 421 449 … … 442 470 443 471 $subcategory = get_terms($subcategory_args); 444 445 wp_set_object_terms($id, $subcategory[0]->term_id, 'apimo_category', true); 472 if($subcategory){ 473 wp_set_object_terms($id, $subcategory[0]->term_id, 'apimo_category', true); 474 } 475 // wp_set_object_terms($id, $subcategory[0]->term_id, 'apimo_category', true); 446 476 447 477 … … 471 501 $service_term = get_terms($service_args); 472 502 473 wp_set_object_terms($id, $service_term[0]->term_id, 'apimo_service', true); 503 if($service_term){ 504 wp_set_object_terms($id, $service_term[0]->term_id, 'apimo_service', true); 505 } 506 507 // wp_set_object_terms($id, $service_term[0]->term_id, 'apimo_service', true); 474 508 } 475 509 … … 497 531 498 532 $availability_term = get_terms($availability_args); 499 500 wp_set_object_terms($id, $availability_term[0]->term_id, 'apimo_availability', true); 533 if($availability_term){ 534 wp_set_object_terms($id, $availability_term[0]->term_id, 'apimo_availability', true); 535 } 536 // wp_set_object_terms($id, $availability_term[0]->term_id, 'apimo_availability', true); 501 537 502 538 … … 525 561 526 562 $type = get_terms($type_args); 527 528 wp_set_object_terms($id, $type[0]->term_id, 'apimo_type', true); 563 if($type){ 564 wp_set_object_terms($id, $type[0]->term_id, 'apimo_type', true); 565 } 566 567 // wp_set_object_terms($id, $type[0]->term_id, 'apimo_type', true); 529 568 530 569 … … 553 592 554 593 $subtype = get_terms($subtype_args); 555 556 wp_set_object_terms($id, $subtype[0]->term_id, 'apimo_subtype', true); 594 if($subtype){ 595 wp_set_object_terms($id, $subtype[0]->term_id, 'apimo_subtype', true); 596 } 597 // wp_set_object_terms($id, $subtype[0]->term_id, 'apimo_subtype', true); 557 598 558 599 … … 583 624 584 625 $construction = get_terms($constructions_args); 585 586 wp_set_object_terms($id, array_map(function ($term) { 587 588 return $term->term_id; 589 }, $construction), 'apimo_construction', true); 626 if($construction){ 627 wp_set_object_terms($id, array_map(function ($term) { 628 629 return $term->term_id; 630 }, $construction), 'apimo_construction', true); 631 } 632 633 // wp_set_object_terms($id, array_map(function ($term) { 634 635 // return $term->term_id; 636 // }, $construction), 'apimo_construction', true); 590 637 591 638 … … 617 664 $residence_type = get_terms($residence_type_args); 618 665 619 wp_set_object_terms($id, $residence_type[0]->term_id, 'apimo_property_building', true); 666 if($residence_type){ 667 wp_set_object_terms($id, $residence_type[0]->term_id, 'apimo_property_building', true); 668 } 669 670 // wp_set_object_terms($id, $residence_type[0]->term_id, 'apimo_property_building', true); 620 671 621 672 … … 652 703 653 704 $floor_type = get_terms($floor_args); 654 655 wp_set_object_terms($id, $floor_type[0]->term_id, 'apimo_floor', true); 705 if($floor_type){ 706 wp_set_object_terms($id, $floor_type[0]->term_id, 'apimo_floor', true); 707 } 708 709 // wp_set_object_terms($id, $floor_type[0]->term_id, 'apimo_floor', true); 656 710 657 711 … … 699 753 700 754 $areas = get_terms($areas_args); 701 702 wp_set_object_terms($id, array_map(function ($term) { 703 704 return $term->term_id; 705 }, $areas), 'apimo_areas', true); 755 if($areas){ 756 wp_set_object_terms($id, array_map(function ($term) { 757 758 return $term->term_id; 759 }, $areas), 'apimo_areas', true); 760 } 761 762 // wp_set_object_terms($id, array_map(function ($term) { 763 764 // return $term->term_id; 765 // }, $areas), 'apimo_areas', true); 706 766 } 707 767 … … 777 837 update_post_meta($id, 'apimo_sleeps', $property->sleeps); 778 838 779 update_post_meta($id, 'apimo_price', $property->price->value );839 update_post_meta($id, 'apimo_price', $property->price->value + $property->price->fees); 780 840 781 841 update_post_meta($id, 'apimo_price_data', $property->price); … … 840 900 841 901 $heating_type = get_terms($heating_type_args); 842 843 wp_set_object_terms($id, array_map(function ($term) { 844 845 return $term->term_id; 846 }, $heating_type), 'apimo_heating_type', true); 902 if($heating_type){ 903 wp_set_object_terms($id, array_map(function ($term) { 904 return $term->term_id; 905 }, $heating_type), 'apimo_heating_type', true); 906 } 907 // wp_set_object_terms($id, array_map(function ($term) { 908 909 // return $term->term_id; 910 // }, $heating_type), 'apimo_heating_type', true); 847 911 848 912 … … 871 935 872 936 $heating_access = get_terms($heating_access_args); 873 874 wp_set_object_terms($id, $heating_access[0]->term_id, 'apimo_heating_access', true); 937 if($heating_access){ 938 wp_set_object_terms($id, $heating_access[0]->term_id, 'apimo_heating_access', true); 939 } 940 941 // wp_set_object_terms($id, $heating_access[0]->term_id, 'apimo_heating_access', true); 875 942 876 943 … … 901 968 902 969 $heating_device = get_terms($heating_device_args); 903 904 wp_set_object_terms($id, array_map(function ($term) { 905 906 return $term->term_id; 907 }, $heating_device), 'apimo_heating_device', true); 970 if($heating_device){ 971 wp_set_object_terms($id, array_map(function ($term) { 972 973 return $term->term_id; 974 }, $heating_device), 'apimo_heating_device', true); 975 } 976 // wp_set_object_terms($id, array_map(function ($term) { 977 978 // return $term->term_id; 979 // }, $heating_device), 'apimo_heating_device', true); 908 980 909 981 … … 932 1004 933 1005 $water_hot_device = get_terms($water_hot_device_args); 934 935 wp_set_object_terms($id, $water_hot_device[0]->term_id, 'apimo_water_hot_device', true); 1006 if($water_hot_device){ 1007 wp_set_object_terms($id, $water_hot_device[0]->term_id, 'apimo_water_hot_device', true); 1008 } 1009 1010 // wp_set_object_terms($id, $water_hot_device[0]->term_id, 'apimo_water_hot_device', true); 936 1011 937 1012 … … 960 1035 961 1036 $water_hot_access = get_terms($water_hot_access_args); 962 963 wp_set_object_terms($id, $water_hot_access[0]->term_id, 'apimo_water_hot_access', true); 1037 if($water_hot_access){ 1038 wp_set_object_terms($id, $water_hot_access[0]->term_id, 'apimo_water_hot_access', true); 1039 } 1040 1041 // wp_set_object_terms($id, $water_hot_access[0]->term_id, 'apimo_water_hot_access', true); 964 1042 965 1043 … … 988 1066 989 1067 $water_waste = get_terms($water_waste_args); 990 991 wp_set_object_terms($id, $water_waste[0]->term_id, 'apimo_water_waste', true); 1068 if($water_waste){ 1069 wp_set_object_terms($id, $water_waste[0]->term_id, 'apimo_water_waste', true); 1070 } 1071 1072 // wp_set_object_terms($id, $water_waste[0]->term_id, 'apimo_water_waste', true); 992 1073 993 1074 … … 1016 1097 1017 1098 $property_condition = get_terms($property_condition_args); 1018 1019 wp_set_object_terms($id, $property_condition[0]->term_id, 'apimo_property_condition', true); 1099 if($property_condition){ 1100 wp_set_object_terms($id, $property_condition[0]->term_id, 'apimo_property_condition', true); 1101 } 1102 1103 // wp_set_object_terms($id, $property_condition[0]->term_id, 'apimo_property_condition', true); 1020 1104 1021 1105 … … 1046 1130 1047 1131 $property_standing = get_terms($property_standing_args); 1048 1049 wp_set_object_terms($id, $property_standing[0]->term_id, 'apimo_property_standing', true); 1132 if($property_standing){ 1133 wp_set_object_terms($id, $property_standing[0]->term_id, 'apimo_property_standing', true); 1134 } 1135 // wp_set_object_terms($id, $property_standing[0]->term_id, 'apimo_property_standing', true); 1050 1136 1051 1137 … … 1076 1162 1077 1163 $repository_tag = get_terms($repository_tags); 1078 1079 wp_set_object_terms($id, array_map(function ($term) { 1080 1081 return $term->term_id; 1082 }, $repository_tag), 'repository_tags', true); 1164 if($repository_tag){ 1165 wp_set_object_terms($id, array_map(function ($term) { 1166 1167 return $term->term_id; 1168 }, $repository_tag), 'repository_tags', true); 1169 } 1170 1171 // wp_set_object_terms($id, array_map(function ($term) { 1172 1173 // return $term->term_id; 1174 // }, $repository_tag), 'repository_tags', true); 1083 1175 1084 1176 … … 1126 1218 1127 1219 if (!is_wp_error($temp_file)) { 1220 1221 @list($origin_image_url,$timestamp) = explode("?", $image->url); 1128 1222 1129 1223 $file = array( 1130 1224 1131 'name' => basename($ image->url), // ex: wp-header-logo.png1225 'name' => basename($origin_image_url), // ex: wp-header-logo.png 1132 1226 1133 1227 'type' => 'image/jpg', -
apimo/trunk/admin/settings.php
r2986629 r2986633 29 29 30 30 31 $style = filter_var_array($_POST['style'], FILTER_SANITIZE_STRING); 31 $style = filter_var_array($_POST['style'], FILTER_UNSAFE_RAW); 32 33 // echo '<pre>'; 34 // print_r($style);die(); 35 // echo '</pre>'; 32 36 33 37 update_option('apimo_style', $style); … … 43 47 'single_slug' => sanitize_text_field($_POST['archive']['single_slug']), 44 48 'template' => sanitize_text_field($_POST['archive']['template']), 45 'view_1' => filter_var_array($_POST['archive']['view_1'], FILTER_ SANITIZE_STRING),46 'filter' => filter_var_array($_POST['archive']['filter'], FILTER_ SANITIZE_STRING),49 'view_1' => filter_var_array($_POST['archive']['view_1'], FILTER_UNSAFE_RAW), 50 'filter' => filter_var_array($_POST['archive']['filter'], FILTER_UNSAFE_RAW), 47 51 'pagination_enable' => sanitize_text_field($_POST['archive']['pagination_enable']), 48 52 'num_of_post' => filter_var($_POST['archive']['num_of_post'], FILTER_SANITIZE_NUMBER_INT), 49 'archive_display_option' => filter_var_array($_POST['archive']['archive_display_option'], FILTER_ SANITIZE_STRING),53 'archive_display_option' => filter_var_array($_POST['archive']['archive_display_option'], FILTER_UNSAFE_RAW), 50 54 'area_display_type' => sanitize_text_field($_POST['archive']['area_display_type']), 51 'gallery_display_slider' => filter_var($_POST['archive']['gallery_display_slider'], FILTER_VALIDATE_INT) 55 'gallery_display_slider' => filter_var($_POST['archive']['gallery_display_slider'], FILTER_VALIDATE_INT), 56 // 'hideicon' => sanitize_text_field($_POST['archive']['hideicon']) 57 'hideicon' => (isset($_POST['archive']['hideicon'])) ? sanitize_text_field($_POST['archive']['hideicon']) : "showicon" 58 52 59 ); 60 53 61 62 63 54 64 update_option('apimo_style_archive', $archive); 55 65 … … 74 84 75 85 if (isset($_POST['clear_all_data'])) { 86 76 87 global $wpdb; 77 88 78 $allposts = get_posts(array('post_type' => 'property', 'numberposts' => -1)); 79 80 foreach ($allposts as $eachpost) { 81 wp_delete_post($eachpost->ID, true); 82 } 89 // Define the post type and any additional conditions if needed 90 $post_type = 'property'; 91 92 // Construct the SQL query to delete posts and their post metadata 93 $sql = $wpdb->prepare( 94 "DELETE posts, postmeta 95 FROM {$wpdb->posts} AS posts 96 LEFT JOIN {$wpdb->postmeta} AS postmeta ON posts.ID = postmeta.post_id 97 WHERE posts.post_type = %s", 98 $post_type 99 ); 100 101 // Execute the SQL query 102 $wpdb->query($sql); 103 104 83 105 84 106 $terms = get_terms( … … 126 148 $apimo_api_keys = get_option('apimo_key_data'); 127 149 128 150 // Initialize arrays to store unique IDs 151 $uniqueProviderIDs = []; 152 $uniqueAgencyIDs = []; 153 154 // Loop through the array and count unique IDs 155 foreach ($apimo_api_keys as $keyData) { 156 $uniqueProviderIDs[] = $keyData['company_id']; 157 $uniqueAgencyIDs[] = $keyData['agency_id']; 158 } 159 160 // Use array_unique to get unique values 161 $uniqueProviderIDs = array_unique($uniqueProviderIDs); 162 $uniqueAgencyIDs = array_unique($uniqueAgencyIDs); 163 164 // Count the unique IDs 165 $providerIDCount = count($uniqueProviderIDs); 166 $agencyIDCount = count($uniqueAgencyIDs); 167 168 update_option('providerIDCounts',$providerIDCount); 169 update_option('agencyIDCounts',$agencyIDCount); 129 170 130 171 $apimo_api_key = get_option('apimo_api_key'); … … 288 329 289 330 331 <button class="scheduled_icon wt_iew_export_action_btn run_menual_scheduler scheduled_icon icon" name="run_scheduler" > 332 <img src="<?php echo plugin_dir_url(dirname(__FILE__)) . 'assets/images/gear-setting-icon-png.webp' ?>" title="Run scheduler for featching data"> 333 </button> 334 <button class="shortcode_icon wt_iew_export_action_btn icon" id="apimo_create_shortcode" title="Generate a shortcode"> 335 <img src="<?php echo plugin_dir_url(dirname(__FILE__)) . 'assets/images/shortcodeicon.png'; ?>" alt="shortcode"> 336 </button> 337 290 338 <form method="post"> 291 339 292 340 <div class="apimo-dashboard"> 293 341 294 342 <div class="apimo-header"> 295 296 343 <div class="apimo-logo"> 297 344 <img src="<?php echo esc_url($apimo_url . '/assets/images/small-logo.svg'); ?>"> … … 348 395 349 396 <!-- General setting --> 350 397 <!--Welcome Section --> 398 <div class="apimo-block"> 399 <div class="apimo_welcome_block"> 400 <div class="apimo_state"> 401 <span class="apimo_date"> 402 <?php echo date('d/m/Y'); ?> 403 </span> 404 <h4><?php _e('Welcome','apimo') ?>, <span class="apimo_user"> 405 <?php 406 $current_user = wp_get_current_user(); 407 if ($current_user->exists()) { 408 echo $current_user->user_login . "!"; 409 }else{ 410 echo "User"; 411 } 412 413 ?> 414 </span></h4> 415 <span class="apimo_message"><?php _e('See What’s happening with Apimo Plugin.','apimo') ?></span> 416 <div class="apimo_data"> 417 <div class="apimo_card provider"> 418 <h5>Providers</h5> 419 420 <span> 421 <?php 422 echo get_option('providerIDCounts'); 423 ?> 424 </span> 425 </div> 426 <div class="apimo_card agencies"> 427 <h5>Agencies</h5> 428 <span><?php echo get_option('agencyIDCounts') ?></span> 429 </div> 430 <div class="apimo_card properties"> 431 <h5>Properties</h5> 432 <span> 433 <?php 434 $args = array( 435 'post_type' => 'property', 436 'posts_per_page' => -1, 437 ); 438 439 $query = new WP_Query($args); 440 441 $count = $query->found_posts; 442 echo $count; 443 ?> 444 </span> 445 </div> 446 <div class="apimo_card provider"> 447 <h5>BookMark</h5> 448 449 <span> 450 <?php 451 if(get_option('apimo_shortcodes')){ 452 echo count(get_option('apimo_shortcodes')); 453 }else{ 454 echo "0"; 455 } 456 ?> 457 </span> 458 </div> 459 </div> 460 </div> 461 <div class="apimo_image"> 462 <img src="<?php echo plugin_dir_url(dirname(__FILE__)) . 'assets/images/welcome.png'; ?>" alt=""> 463 </div> 464 </div> 465 </div> 351 466 <div class="apimo-block apimo_setting_section general-setting"> 352 467 … … 361 476 <div class="apimo-api-key-information"> 362 477 363 <div class="apimo-api-key-information-row-wrap"> <?php if (!empty($apimo_api_keys)): 364 foreach ($apimo_api_keys as $data): 365 if ($data['key'] == '' && $data['company_id'] == '') { 366 367 continue; 368 369 } ?> 370 478 <div class="apimo-api-key-information-row-wrap"> 479 <?php 480 if (!empty($apimo_api_keys)): 481 482 foreach ($apimo_api_keys as $data): 483 if ($data['key'] == '' && $data['company_id'] == '') { 484 485 continue; 486 487 } 488 $provider_id = $data['company_id']; 489 if (!isset($providers[$provider_id])) { 490 $providers[$provider_id] = array(); 491 } 492 $providers[$provider_id][] = $data; 493 endforeach; 494 $i = 0; 495 foreach ($providers as $provider_id => $agencies){ 496 497 ?> 371 498 <div class="apimo-api-key-information-row"> 372 499 373 500 <div class="apimo-row apimo-row-v-center"> 374 501 375 <div class="apimo-col-3 col-btn"> <button type="button" class="apimo-remove-data"> <svg id="Modalità_Isolamento" data-name="Modalità Isolamento" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 408.61 408.8"> 502 <div class="apimo-col-3 col-btn"> 503 <button type="button" class="apimo-remove-data"> 504 <svg id="Modalità_Isolamento" data-name="Modalità Isolamento" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 408.61 408.8"> 376 505 377 506 <path d="M294.54,239A204.44,204.44,0,0,0,5.46,239c-79.68,79.7-79.68,209.37,0,289.07a204.41,204.41,0,0,0,289.07,0c79.68-79.7,79.68-209.38,0-289.07ZM253,403.1H47.06V363.9H253Z" transform="translate(54.3 -179.1)" /> 378 507 379 </svg> </button> </div> 380 381 <div class="apimo-col-3"> <label class="apimo-api-key-box"> <span><?php _e('Add your API key', 'apimo'); ?></span> <input type="text" name="inserisci_api_key[]" class="apimo-input_text" value="<?php echo esc_html($data['key']); ?>" /> </label> </div> 382 383 <div class="apimo-col-3"> <label class="apimo-compnay-id-box"> <span class="apimo-general-setting-label"><?php _e('Company ID', 'apimo'); ?></span> <input type="text" name="apimo_company_id[]" class="apimo-input_text" value="<?php echo esc_html($data['company_id']); ?>" /> </label> </div> 508 </svg> 509 </button> 510 </div> 511 512 513 514 <div class="apimo-col-3"> 515 <label class="apimo-compnay-id-box"> 516 <span class="apimo-general-setting-label"> 517 <?php _e('Provider ID', 'apimo'); ?> 518 </span> 519 <input type="text" name="apimo_company_id[]" class="apimo-input_text" value="<?php echo esc_html($provider_id ); ?>" /> 520 </label> 521 </div> 522 523 <div class="apimo-col-3"> 524 <label class="apimo-api-key-box"> 525 <span><?php _e('Add your API key', 'apimo'); ?></span> 526 <input type="text" name="inserisci_api_key[]" class="apimo-input_text" value="<?php echo esc_html($agencies[$i]['key']); ?>" /> 527 </label> 528 </div> 529 384 530 385 531 <div class="apimo-col-3"> … … 387 533 <div class="apimo-valid-invalid"> 388 534 389 <div class="apimo-valid apimo-api_key_validation" <?php if ($data['is_valid']) { 390 391 echo 'style="display:flex"'; 392 393 } ?>> 535 <div class="apimo-valid apimo-api_key_validation" <?php if ($data['is_valid']) {echo 'style="display:flex"';} ?>> 394 536 395 537 <div class="apimo-circle_green"></div> … … 399 541 </div> 400 542 401 <div class="apimo-invalid apimo-api_key_validation" <?php if (!$data['is_valid']) { 402 403 echo 'style="display:flex"'; 404 405 } ?>> 543 <div class="apimo-invalid apimo-api_key_validation" <?php if (!$data['is_valid']) {echo 'style="display:flex"';} ?>> 406 544 407 545 <div class="apimo-circle_red"></div> … … 414 552 415 553 </div> 554 <div class="apimo-col-3"> 555 <?php 556 foreach ($agencies as $agency): 557 ?> 558 <div class="apimo-agency"> 559 <div class="apimo-agency-info"> 560 <strong><?php _e('Agence ID', 'apimo'); ?>:</strong> <?php echo esc_html($agency['agency_id']); ?> 561 </div> 562 </div> 563 <?php 564 endforeach; 565 ?> 566 </div> 416 567 417 568 </div> 418 569 419 </div> <?php endforeach; 420 421 endif; ?> 570 </div> 571 <?php 572 573 574 } 575 576 577 endif; 578 ?> 422 579 423 580 </div> … … 442 599 443 600 </svg> </button> </div> 601 602 <div class="apimo-col-3"> <label class="apimo-compnay-id-box"> <span class="apimo-general-setting-label"><?php _e('Provider ID', 'apimo'); ?></span> <input type="text" name="apimo_company_id[]" class="apimo-input_text" value="" /> </label> </div> 603 444 604 445 605 <div class="apimo-col-3"> <label class="apimo-api-key-box"> <span><?php _e('Add your API key', 'apimo'); ?></span> <input type="text" name="inserisci_api_key[]" class="apimo-input_text" value="" /> </label> </div> 446 606 447 <div class="apimo-col-3"> <label class="apimo-compnay-id-box"> <span class="apimo-general-setting-label"><?php _e('Company ID', 'apimo'); ?></span> <input type="text" name="apimo_company_id[]" class="apimo-input_text" value="" /> </label> </div>448 449 607 <div class="apimo-col-3"> 450 608 … … 475 633 </div> 476 634 477 </div> <!-- Style setting --> 478 479 <section class="apimo-block apimo_setting_section style-settings"> 635 </div> 636 <!--Scheduled --> 637 <div style="padding: 30px;" class="apimo-block"> 638 <?php 639 global $wpdb; 640 641 $tablename = $wpdb->prefix . 'actionscheduler_actions'; 642 643 $rows = $wpdb->get_results('SELECT * FROM ' . $tablename .' WHERE hook="apimo_import_property_recurring" OR hook="apimo_fetch_property_manual" ORDER BY `wp_actionscheduler_actions`.`action_id` DESC limit 5 ' ); 644 ?> 645 <div class="apimo-row"> 646 <div class="apimo-col-8"> 647 648 <div class="apimo-block"> 649 650 <div class="apimo-block-header"> 651 652 <h3>Scheduled Logs</h3> 653 654 </div> 655 656 <div class="apimo-block-body"> 657 658 <div class="apimo-block-info"> 659 660 <!-- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p> --> 661 662 </div> 663 664 <table class="wp-list-table widefat fixed striped feeds"> 665 666 <thead> 667 668 <tr> 669 670 <th scope="col"><?php echo _e('Action ID','Apimo');?></th> 671 672 <th scope="col"><?php echo _e('Hook','Apimo');?></th> 673 674 <th scope="col"><?php echo _e('Status','Apimo');?></th> 675 676 <th scope="col"><?php echo _e('Args','Apimo');?></th> 677 678 <th scope="col"><?php echo _e('Time','Apimo');?></th> 679 680 </tr> 681 682 </thead> 683 684 <tbody> 685 686 <?php 687 688 foreach($rows as $row){ 689 690 // if($row->hook == 'apimo_fetch_property_recurring' || $row->hook == 'apimo_fetch_property_manual'){ 691 692 ?> 693 694 <tr> 695 696 <td><?php echo esc_html( $row->action_id ); ?></td> 697 698 <td><?php echo esc_html( $row->hook ); ?></td> 699 700 <td><?php echo esc_html( $row->status ); ?></td> 701 702 <td><?php echo esc_html( $row->args ); ?></td> 703 704 <td><?php echo esc_html( $row->scheduled_date_local ); ?></td> 705 706 </tr> 707 708 <?php 709 710 // } 711 712 } 713 714 ?> 715 716 </tbody> 717 718 <tfoot> 719 720 <tr> 721 722 <th scope="col"><?php echo _e('Action ID','Apimo');?></th> 723 724 <th scope="col"><?php echo _e('Hook','Apimo');?></th> 725 726 <th scope="col"><?php echo _e('Status','Apimo');?></th> 727 728 <th scope="col"><?php echo _e('Args','Apimo');?></th> 729 730 <th scope="col"><?php echo _e('Time','Apimo');?></th> 731 732 </tr> 733 734 </tfoot> 735 736 </table> 737 738 </div> 739 740 </div> 741 742 </div> 743 744 <div class="apimo-col-4"> 745 746 <div class="apimo-block"> 747 748 <div class="apimo-block-header"> 749 750 <h3>Manually Run</h3> 751 752 </div> 753 754 <div class="apimo-block-body"> 755 756 <div class="apimo-block-info apimo-api-result"> 757 758 <p>You can manually run the properties import from APIMO webservices.</p> 759 760 </div> 761 762 </div> 763 764 <div class="apimo-footer align-right"> 765 766 <input type="button" class="button button-primary wt_iew_export_action_btn run_menual_scheduler" name="run_scheduler" value="Run Scheduler"> 767 768 </div> 769 770 </div> 771 772 </div> 773 774 </div> 775 </div> 776 <!-- Shortcodes setting --> 777 <div class="apimo-block apimo-crea-shortcode"> 480 778 481 779 <div class="apimo-block-header"> 482 780 483 <h3><?php _e('Genera l settings', 'apimo'); ?></h3>781 <h3><?php _e('Generate shortcode', 'apimo'); ?></h3> 484 782 485 783 </div> 486 784 487 <div class="apimo-block-body apimo-section-description"> 488 489 <div class="apimo-row"> 490 491 <div class="apimo-col-4"> 492 493 <div class="apimo-block-label"> 494 495 <h5><?php _e('Slug'); ?></h5> 496 497 </div> 498 499 <div class="apimo-block-info"> 500 501 <p><?php _e('Manage the slug of your custom post type "properties". <br>You can add your custom url for the Properties List and Detail Page:', 'apimo'); ?></p> 502 503 </div> 504 505 <div class="apimo-step-desctiption-content"> 506 507 <div class="apimo-radio-settings"> 508 509 <div class="apimo-row"> 510 511 <div class="apimo-col-auto"> 512 513 <div class="apimo-view-type"> 514 515 <p><?php _e('Properties List', 'apimo'); ?>:</p> <label> <input type="text" name="archive[archive_slug]" min="1" value="<?php echo esc_html($archive['archive_slug']); ?>"> </label> 785 <div class="apimo-block-body"> 786 787 <div class="apimo-block-info"> 788 789 <p><?php _e('Create a shortcode and place anywhere on your website.', 'apimo'); ?></p> 790 <?php 791 $shortcodes = get_option('apimo_shortcodes'); 792 // Assuming your option name is 'shortcode' 793 // echo "<pre>"; 794 // print_r($shortcodes); 795 // echo "</pre>"; 796 if (is_array($shortcodes) && !empty($shortcodes)) { 797 // Display the table only if there are shortcodes 798 ?> 799 <table id="shortcodes"> 800 <tr> 801 <th>Title</th> 802 <th>Description</th> 803 <th>Shortcode</th> 804 <th>Action</th> 805 </tr> 806 <?php 807 foreach ($shortcodes as $index => $shortcode) { 808 echo '<tr>'; 809 echo '<td>' . $shortcode['Title'] . '</td>'; 810 echo '<td>' . $shortcode['Description'] . '</td>'; 811 // Use stripslashes to remove backslashes from the displayed shortcode 812 echo '<td class="shortcode-cell" id="shortcode_' . $index . '">' . stripslashes($shortcode['Shortcode']) . '</td>'; 813 echo '<td><button class="btn button button-danger" id="delete_shortcode" data-id="' . $index . '">Delete</button><button class="btn button apimo-step-button" id="apimo_copy_shortcode" data-id="' . $index . '">Copy</button></td>'; 814 echo '</tr>'; 815 } 816 ?> 817 </table> 818 819 <?php 820 } 821 ?> 822 823 824 825 </div> 826 827 <div class="apimo-create-shortcode-popup" id="apimo-create-shortcode-popup" style="display:none"> 828 829 <div class="apimo-shortcode-header"> 830 831 <h3><?php _e('Generate shortcode', 'apimo'); ?></h3> 832 833 </div> <button type="button" id="apimo-close-shortcode-popup"> <svg id="Livello_1" data-name="Livello 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381.49 381.49"> 834 835 <path d="M380.58,285.83,541.45,446.7a17.5,17.5,0,0,1-24.75,24.75L355.83,310.58,195,471.45a17.5,17.5,0,0,1-24.75-24.75L331.08,285.83,170.21,125A17.5,17.5,0,0,1,195,100.21L355.83,261.08,516.7,100.21A17.5,17.5,0,0,1,541.45,125Z" transform="translate(-165.09 -95.09)" /> 836 837 </svg> </button> 838 839 <div class="apimo-steps-titles"> <button type="button" class="apimo-step-title active" data-id="1">1</button> <button type="button" class="apimo-step-title" data-id="2">2</button> <button type="button" class="apimo-step-title" data-id="3">3</button> <button type="button" class="apimo-step-title" data-id="4">4</button> <button type="button" class="apimo-step-title" data-id="5">5</button> <button type="button" class="apimo-step-title" data-id="6">6</button> </div> 840 841 <div class="apimo-step step-1 active" data-id="1"> 842 843 <div class="apimo-step-title-inner"> 844 845 <h5><?php _e('Select the properties', 'apimo'); ?></h5> 846 847 <p><?php _e('Choose the properties to show. Remember that you can generate as many shortcodes as you like.'); ?> 848 849 </div> 850 851 <div class="apimo-step-description"> 852 853 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 854 855 <div class="apimo-radio-container"> <input type="radio" class="apimo-portrait_radio" name="apimo_proprty_types" value="selected" id="apimo-type-1" checked> <label for="apimo-type-1"><?php _e('Choose by filters', 'apimo'); ?> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Featured_Home.png'); ?>"> </div> </label> </div> 856 857 </label> <label class="apimo-type-radio"> 858 859 <div class="apimo-radio-container"> <input type="radio" class="apimo-portrait_radio" name="apimo_proprty_types" value="all" id="apimo-type-2"> <label for="apimo-type-2"><?php _e('All properties', 'apimo'); ?> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Home.png'); ?>"> </div> </label> </div> 860 861 </label> </div> 862 863 </div> 864 865 <div class="apimo-step-buttons"> <button type="button" class="button button-primary apimo-step-button apimo-step-next" data-id="2">Next</button> </div> 866 867 </div> 868 869 <div class="apimo-step apimo-filter-step step-2" data-id="2"> 870 871 <div class="apimo-step-title-inner"> 872 873 <h5><?php _e('Enable filters', 'apimo'); ?></h5> 874 875 <p><?php _e('You can enable filters and paging in the shortcode. Pay attention to the next step.'); ?> 876 877 </div> 878 879 <div class="apimo-step-description"> 880 881 <div class="apimo-row center"> 882 883 <div class="apimo-col-4"> <label class="apimo-field checkbox-toggle"> <label class="apimo-title"><strong><?php _e('Enable filter', 'apimo'); ?></strong></label> 884 885 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="" id="shortcode_enable_filter" /> <span class="slider round"></span> </div> 886 887 </label> 888 889 <div class="apimo-row center" data-id="shortcode_enable_filter" style="display: none;"> 890 891 <div class="apimo-col-4"> 892 893 <div class="apimo-container"> 894 895 <div class="apimo-block-label"> 896 897 <h5><?php _e('Standard filter', 'apimo') ?></h5> 898 899 </div> 900 901 <div class="apimo-checkbox-container"> 902 903 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="category_filter" id="apimo-archive-shortcode-category_filter" /> <span class="check"></span> <label for="apimo-archive-shortcode-category_filter"><?php _e('Category Filter', 'apimo'); ?></label> </div> 904 905 </div> 906 907 <div class="apimo-checkbox-container"> 908 909 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="subtype_filter" id="apimo-archive-shortcode-subtype_filter" /> <span class="check"></span> <label for="apimo-archive-shortcode-subtype_filter"><?php _e('Subtype Filter', 'apimo'); ?></label> </div> 910 911 </div> 912 913 <div class="apimo-checkbox-container"> 914 915 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="number_of_rooms" id="apimo-archive-shortcode-number_of_rooms"> <span class="check"></span> <label for="apimo-archive-shortcode-number_of_rooms"><?php _e('Number of rooms', 'apimo'); ?></label> </div> 916 917 </div> 918 919 <div class="apimo-checkbox-container"> 920 921 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="number_of_bedrooms" id="apimo-archive-shortcode-number_of_bedrooms"> <span class="check"></span> <label for="apimo-archive-shortcode-number_of_bedrooms"><?php _e('Number of bedrooms', 'apimo'); ?></label> </div> 922 923 </div> 924 925 <div class="apimo-checkbox-container"> 926 927 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="price_range" id="apimo-archive-shortcode-price_range"> <span class="check"></span> <label for="apimo-archive-shortcode-price_range"><?php _e('Price range', 'apimo'); ?></label> </div> 928 929 </div> 930 931 <div class="apimo-checkbox-container"> 932 933 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="property_areas" id="apimo-archive-shortcode-property_areas"> <span class="check"></span> <label for="apimo-archive-shortcode-property_areas"><?php _e('Areas range', 'apimo'); ?></label> </div> 934 935 </div> 936 937 <div class="apimo-checkbox-container"> 938 939 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="dates" id="apimo-archive-shortcode-dates"> <span class="check"></span> <label for="apimo-archive-shortcode-dates"><?php _e('Dates', 'apimo'); ?></label> </div> 940 941 </div> 942 943 <div class="apimo-checkbox-container"> 944 945 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="location" id="apimo-archive-shortcode-location"> <span class="check"></span> <label for="apimo-archive-shortcode-location"><?php _e('Location (Region, City, District)', 'apimo'); ?></label> </div> 946 947 </div> 948 949 </div> 516 950 517 951 </div> 518 952 953 <div class="apimo-col-4"> 954 955 <div class="apimo-container"> 956 957 <div class="apimo-block-label"> 958 959 <h5><?php _e('Advance filter', 'apimo') ?></h5> 960 961 </div> 962 963 <div class="apimo-checkbox-container"> 964 965 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="garden" id="apimo-archive-shortcode-garden"> <span class="check"></span> <label for="apimo-archive-shortcode-garden"><?php _e('Garden', 'apimo'); ?></label> </div> 966 967 </div> 968 969 <div class="apimo-checkbox-container"> 970 971 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="terrace" id="apimo-archive-shortcode-terrace"> <span class="check"></span> <label for="apimo-archive-shortcode-terrace"><?php _e('Terrace', 'apimo'); ?></label> </div> 972 973 </div> 974 975 <div class="apimo-checkbox-container"> 976 977 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="balcony" id="apimo-archive-shortcode-balcony"> <span class="check"></span> <label for="apimo-archive-shortcode-balcony"><?php _e('Balcony', 'apimo'); ?></label> </div> 978 979 </div> 980 981 <div class="apimo-checkbox-container"> 982 983 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="garage_box" id="apimo-archive-shortcode-garage_box"> <span class="check"></span> <label for="apimo-archive-shortcode-garage_box"><?php _e('Garage or Box', 'apimo'); ?></label> </div> 984 985 </div> 986 987 <div class="apimo-checkbox-container"> 988 989 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="parking_space" id="apimo-archive-shortcode-parking_space"> <span class="check"></span> <label for="apimo-archive-shortcode-parking_space"><?php _e('Parking space (internal or external)', 'apimo'); ?></label> </div> 990 991 </div> 992 993 <div class="apimo-checkbox-container"> 994 995 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="cellar" id="apimo-archive-shortcode-cellar"> <span class="check"></span> <label for="apimo-archive-shortcode-cellar"><?php _e('Cellar', 'apimo'); ?></label> </div> 996 997 </div> 998 999 <div class="apimo-checkbox-container"> 1000 1001 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="pool" id="apimo-archive-shortcode-pool"> <span class="check"></span> <label for="apimo-archive-shortcode-pool"><?php _e('Pool', 'apimo'); ?></label> </div> 1002 1003 </div> 1004 1005 <div class="apimo-checkbox-container"> 1006 1007 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="lift" id="apimo-archive-shortcode-lift"> <span class="check"></span> <label for="apimo-archive-shortcode-lift"><?php _e('Lift', 'apimo'); ?></label> </div> 1008 1009 </div> 1010 1011 </div> 1012 1013 </div> 1014 519 1015 </div> 520 1016 521 <div class="apimo-col-auto"> 522 523 <div class="apimo-view-type"> 524 525 <p><?php _e('Detail Page', 'apimo'); ?>:</p> <label> <input type="text" name="archive[single_slug]" min="1" value="<?php echo esc_html($archive['single_slug']); ?>"> </label> 1017 </div> 1018 1019 <div class="apimo-col-4"> 1020 <label class="apimo-field checkbox-toggle"> 1021 <label class="apimo-title"> 1022 <strong><?php _e('Enable pagination', 'apimo'); ?> 1023 </strong> 1024 </label> 1025 1026 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="" id="shortcode_enable_pagination" /> <span class="slider round"></span> </div> 1027 1028 </label> 1029 1030 1031 1032 <div class="apimo-row center" data-id="shortcode_enable_pagination" style="display: none;"> 1033 1034 <div class="apimo-col" style="margin-top: 10px"> 1035 1036 <div class="apimo-shortcode-input-label"> 1037 1038 <p><?php _e('Number of post per page', 'apimo') ?></p> 1039 1040 </div> <input class="" id="filter_page_size" value="12" /> 526 1041 527 1042 </div> … … 531 1046 </div> 532 1047 533 </div> 534 535 </div> 536 537 </div> 538 539 <div class="apimo-col-4"> 540 541 <div class="apimo-block-label"> 542 543 <h5><?php _e('Color settings'); ?></h5> 544 545 </div> 546 547 <div class="apimo-block-info"> 548 549 <p><?php _e('This style is general for all the pages regarding apimo plugin.'); ?></p> 550 551 </div> 552 553 <div class="apimo-style"> 554 555 <div class="apimo-row"> 556 557 <div class="apimo-col-auto"> 558 559 <div class="apimo-block-label"> 560 561 <h5><?php _e('Primary', 'apimo'); ?></h5> 562 563 </div> 564 565 <div class="aprimo-block-style-option"> 566 567 <p>Choose a color:</p> <label> <input type="text" class="apimo-color-picker-field" name="style[primary][color]" placeholder="<?php _e('Select Color', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['primary']['color']); ?>"> </label> 568 569 </div> 570 571 </div> 572 573 <div class="apimo-col-auto"> 574 575 <div class="apimo-block-label"> 576 577 <h5><?php _e('Secondary', 'apimo'); ?></h5> 578 579 </div> 580 581 <div class="aprimo-block-style-option"> 582 583 <p>Choose a color:</p> <label> <input type="text" class="apimo-color-picker-field" name="style[secondary][color]" placeholder="<?php _e('Select Color', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['secondary']['color']); ?>"> </label> 584 585 </div> 586 587 </div> 588 589 </div> 590 591 </div> 592 593 </div> 594 595 <div class="apimo-col-3"> 596 597 <div class="apimo-block-label"> 598 599 <h5><?php _e('Container Settings'); ?></h5> 600 601 </div> 602 603 <div class="apimo-block-info"> 604 605 <p><?php _e('Set up the width of the container for apimo archive.'); ?></p> 606 607 </div> 608 609 <div class="apimo-style"> 610 611 <div class="apimo-row"> 612 613 <div class="apimo-col-auto"> 614 615 <div class="aprimo-block-style-option"> <label> <input type="text" name="style[container_width]" placeholder="<?php _e('Container Width', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['container_width']); ?>"> <span> <select name="style[container_width_unit]"> 616 617 <option value="px" <?php echo ($apimo_style['container_width_unit'] == 'px') ? "selected" : "" ?>>px</option> 618 619 <option value="%" <?php echo ($apimo_style['container_width_unit'] == '%') ? "selected" : "" ?>>%</option> 620 621 </select> </span> </label> </div> 622 623 </div> 624 625 </div> 626 627 </div> 628 629 </div> 630 631 </div> 632 633 </div> 634 635 <div class="apimo-footer align-right"> <?php /* <button type="button" class="button button-primary wt_iew_export_action_btn" id=""><?php _e('save','apimo'); ?></button> */?> 636 637 638 639 </div> 640 641 </section> 642 643 644 645 <!-- Archive Properties --> 646 647 <div class="apimo-block style_archive"> 648 649 <div class="apimo-block-header"> 650 651 <h3><?php _e('Setting - Properties List', 'apimo'); ?></h3> 652 653 </div> 654 655 <div class="apimo-block-body p-0"> 656 657 <div class="apimo-step-line"> 658 659 <div class="apimo-inner-header"> 660 661 <p><span class="point-circle">1</span><?php _e('Layout', 'apimo'); ?></p> 662 663 </div> 664 665 <div class="apimo-body-inner"> 666 667 <div class="apimo-block-info"> 668 669 <p>Choose the card type for the properties in the archive page:</p> 670 671 </div> 672 673 <div class="apimo-step-desctiption-content"> 674 675 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 676 677 <div class="apimo-radio-container"> <input type="radio" name="archive[template]" value="landscape" id="apimo-landscape" <?php if ($archive['template'] == 'landscape') { 678 679 echo 'checked'; 680 681 } ?>> <label for="apimo-landscape"> 682 683 <p><?php _e('Landscape', 'apimo'); ?></p> 684 685 <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . '/assets/images/Horizzontal.png'); ?>"> </div> 686 687 </label> </div> 688 689 </label> <label class="apimo-type-radio"> 690 691 <div class="apimo-radio-container"> <input type="radio" name="archive[template]" value="portrait" id="apimo-portrait" <?php if ($archive['template'] == 'portrait') { 692 693 echo 'checked'; 694 695 } ?>> <label for="apimo-portrait"> 696 697 <p><?php _e('Portrait', 'apimo'); ?></p> 698 699 <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . '/assets/images/Vertical.png'); ?>"> </div> 700 701 </label> </div> 702 703 </label> </div> 704 705 </div> 706 707 </div> 708 709 <div class="apimo-body-inner"> 710 711 <div class="apimo-block-info"> 712 713 <p><?php _e('Choose the number of columns for each view of website:', 'apimo'); ?></p> 714 715 </div> 716 717 <div class="apimo-step-desctiption-content"> <label class="apimo-type-radio"> 718 719 <div class="apimo-radio-settings"> 720 721 <div class="apimo-row"> 722 723 <div class="apimo-col-3"> 724 725 <div class="apimo-block-label"> 726 727 <h5><?php _e('Desktop', 'apimo'); ?></h5> 728 729 </div> 730 731 <div class="apimo-view-type"> 732 733 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][desktop]" min="1" value="<?php echo esc_html($archive['view_1']['desktop']); ?>"> </label> 734 735 </div> 736 737 </div> 738 739 <div class="apimo-col-3"> 740 741 <div class="apimo-block-label"> 742 743 <h5><?php _e('Tablet', 'apimo'); ?></h5> 744 745 </div> 746 747 <div class="apimo-view-type"> 748 749 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][teblate]" min="1" value="<?php echo esc_html($archive['view_1']['teblate']); ?>"> </label> 750 751 </div> 752 753 </div> 754 755 <div class="apimo-col-3"> 756 757 <div class="apimo-block-label"> 758 759 <h5><?php _e('Mobile', 'apimo'); ?></h5> 760 761 </div> 762 763 <div class="apimo-view-type"> 764 765 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][mobile]" min="1" value="<?php echo esc_html($archive['view_1']['mobile']); ?>"> </label> 766 767 </div> 768 769 </div> 770 771 </div> 772 773 </div> 774 775 </label> </div> 776 777 </div> 778 779 </div> 780 781 </div> 782 783 <div class="apimo-step-line"> 784 785 <div class="apimo-inner-header"> 786 787 <p><span class="point-circle">2</span><?php _e('Filter and pagination', 'apimo'); ?></p> 788 789 </div> 790 791 <div class="apimo-body-inner"> 792 793 <div class="apimo-step-desctiption-content"> 794 795 <div class="apimo-row"> 796 797 <div class="apimo-col-8"> 798 799 <div class="apimo-block-info"> 800 801 <p><?php _e('Choose the filter to show in your archive page:', 'apimo'); ?></p> 802 803 </div> 804 805 <div class="apimo-step-description mt-15"> 806 807 <div class="apimo-row"> 808 809 <div class="apimo-col-6"> 810 811 <div class="apimo-container"> 812 813 <div class="apimo-block-label"> 814 815 <h5><?php _e('Standard filter', 'apimo') ?></h5> 816 817 </div> 818 819 <div class="apimo-checkbox-container"> 820 821 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="category_filter" id="apimo-archive-category_filter" <?php if (in_array("category_filter", $archive['filter'])) { 822 823 echo 'checked'; 824 825 } ?>> <span class="check"></span> <label for="apimo-archive-category_filter"><?php _e('Category Filter', 'apimo'); ?></label> </div> 826 827 </div> 828 829 <div class="apimo-checkbox-container"> 830 831 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="subtype_filter" id="apimo-archive-subtype_filter" <?php if (in_array("subtype_filter", $archive['filter'])) { 832 833 echo 'checked'; 834 835 } ?>> <span class="check"></span> <label for="apimo-archive-subtype_filter"><?php _e('Subtype Filter', 'apimo'); ?></label> </div> 836 837 </div> 838 839 <div class="apimo-checkbox-container"> 840 841 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="number_of_rooms" id="apimo-archive-number_of_rooms" <?php if (in_array("number_of_rooms", $archive['filter'])) { 842 843 echo 'checked'; 844 845 } ?>> <span class="check"></span> <label for="apimo-archive-number_of_rooms"><?php _e('Number of rooms', 'apimo'); ?></label> </div> 846 847 </div> 848 849 <div class="apimo-checkbox-container"> 850 851 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="number_of_bedrooms" id="apimo-archive-number_of_bedrooms" <?php if (in_array("number_of_bedrooms", $archive['filter'])) { 852 853 echo 'checked'; 854 855 } ?>> <span class="check"></span> <label for="apimo-archive-number_of_bedrooms"><?php _e('Number of bedrooms', 'apimo'); ?></label> </div> 856 857 </div> 858 859 <div class="apimo-checkbox-container"> 860 861 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="price_range" id="apimo-archive-price_range" <?php if (in_array("price_range", $archive['filter'])) { 862 863 echo 'checked'; 864 865 } ?>> <span class="check"></span> <label for="apimo-archive-price_range"><?php _e('Price range', 'apimo'); ?></label> </div> 866 867 </div> 868 869 <div class="apimo-checkbox-container"> 870 871 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="property_areas" id="apimo-archive-property_areas" <?php if (in_array("property_areas", $archive['filter'])) { 872 873 echo 'checked'; 874 875 } ?>> <span class="check"></span> <label for="apimo-archive-property_areas"><?php _e('Areas range', 'apimo'); ?></label> </div> 876 877 </div> 878 879 <div class="apimo-checkbox-container"> 880 881 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="dates" id="apimo-archive-dates" <?php if (in_array("dates", $archive['filter'])) { 882 883 echo 'checked'; 884 885 } ?>> <span class="check"></span> <label for="apimo-archive-dates"><?php _e('Dates', 'apimo'); ?></label> </div> 886 887 </div> 888 889 <div class="apimo-checkbox-container"> 890 891 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="location" id="apimo-archive-location" <?php if (in_array("location", $archive['filter'])) { 892 893 echo 'checked'; 894 895 } ?>> <span class="check"></span> <label for="apimo-archive-location"><?php _e('Location (Region, City, District)', 'apimo'); ?></label> </div> 896 897 </div> 898 899 </div> 900 901 </div> 902 903 <div class="apimo-col-6"> 904 905 <div class="apimo-container"> 906 907 <div class="apimo-block-label"> 908 909 <h5><?php _e('Advance filter', 'apimo') ?></h5> 910 911 </div> 912 913 <div class="apimo-checkbox-container"> 914 915 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="garden" id="apimo-archive-garden" <?php if (in_array("garden", $archive['filter']['advance'])) { 916 917 echo 'checked'; 918 919 } ?>> <span class="check"></span> <label for="apimo-archive-garden"><?php _e('Garden', 'apimo'); ?></label> </div> 920 921 </div> 922 923 <div class="apimo-checkbox-container"> 924 925 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="terrace" id="apimo-archive-terrace" <?php if (in_array("terrace", $archive['filter']['advance'])) { 926 927 echo 'checked'; 928 929 } ?>> <span class="check"></span> <label for="apimo-archive-terrace"><?php _e('Terrace', 'apimo'); ?></label> </div> 930 931 </div> 932 933 <div class="apimo-checkbox-container"> 934 935 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="balcony" id="apimo-archive-balcony" <?php if (in_array("balcony", $archive['filter']['advance'])) { 936 937 echo 'checked'; 938 939 } ?>> <span class="check"></span> <label for="apimo-archive-balcony"><?php _e('Balcony', 'apimo'); ?></label> </div> 940 941 </div> 942 943 <div class="apimo-checkbox-container"> 944 945 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="garage_box" id="apimo-archive-garage_box" <?php if (in_array("garage_box", $archive['filter']['advance'])) { 946 947 echo 'checked'; 948 949 } ?>> <span class="check"></span> <label for="apimo-archive-garage_box"><?php _e('Garage or Box', 'apimo'); ?></label> </div> 950 951 </div> 952 953 <div class="apimo-checkbox-container"> 954 955 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="parking_space" id="apimo-archive-parking_space" <?php if (in_array("parking_space", $archive['filter']['advance'])) { 956 957 echo 'checked'; 958 959 } ?>> <span class="check"></span> <label for="apimo-archive-parking_space"><?php _e('Parking space (internal or external)', 'apimo'); ?></label> </div> 960 961 </div> 962 963 <div class="apimo-checkbox-container"> 964 965 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="cellar" id="apimo-archive-cellar" <?php if (in_array("cellar", $archive['filter']['advance'])) { 966 967 echo 'checked'; 968 969 } ?>> <span class="check"></span> <label for="apimo-archive-cellar"><?php _e('Cellar', 'apimo'); ?></label> </div> 970 971 </div> 972 973 <div class="apimo-checkbox-container"> 974 975 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="pool" id="apimo-archive-pool" <?php if (in_array("pool", $archive['filter']['advance'])) { 976 977 echo 'checked'; 978 979 } ?>> <span class="check"></span> <label for="apimo-archive-pool"><?php _e('Pool', 'apimo'); ?></label> </div> 980 981 </div> 982 983 <div class="apimo-checkbox-container"> 984 985 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="lift" id="apimo-archive-lift" <?php if (in_array("lift", $archive['filter']['advance'])) { 986 987 echo 'checked'; 988 989 } ?>> <span class="check"></span> <label for="apimo-archive-lift"><?php _e('Lift', 'apimo'); ?></label> </div> 990 991 </div> 992 993 </div> 994 995 </div> 996 997 </div> 998 999 </div> 1000 1001 </div> 1002 1003 <div class="apimo-col-3"> 1004 1005 <div class="apimo-block-info"> 1006 1007 <p><?php _e('Enable pagination and choose the number of elements:', 'apimo'); ?></p> 1008 1009 </div> 1010 1011 <div class="apimo-step-description mt-15"> <label class="apimo-field checkbox-toggle"> <label class="apimo-title"><strong><?php _e('Enable pagination', 'apimo'); ?></strong></label> 1012 1013 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="archive[pagination_enable]" <?php if ($archive['pagination_enable']) { 1014 1015 echo 'checked'; 1016 1017 } ?> /> <span class="slider round"></span> </div> 1018 1019 </label> </div> 1020 1021 <div class="apimo-step-description mt-15"> <label class="apimo-field"> <label class="apimo-title"><?php _e('Number of post per page', 'apimo'); ?></label> <input type="number" name="archive[num_of_post]" value="<?php echo esc_html($archive['num_of_post']); ?>" /> </label> </div> 1022 1023 </div> 1024 1025 </div> 1026 1027 </div> 1028 1029 </div> 1030 1031 </div> 1032 1033 <div class="apimo-step-line"> 1034 1035 <div class="apimo-inner-header"> 1036 1037 <p><span class="point-circle">3</span><?php _e('Display options', 'apimo'); ?></p> 1038 1039 </div> 1040 1041 <div class="apimo-body-inner"> 1042 1043 <div class="apimo-row"> 1044 1045 <div class="apimo-col-6"> 1046 1047 <div class="apimo-block-label"> 1048 1049 <h5><?php _e('Meta fields - Apimo Cards'); ?></h5> 1050 1051 </div> 1052 1053 <div class="apimo-block-info"> 1054 1055 <p><?php _e('Choose the meta field to show in the properties cards:', 'apimo'); ?></p> 1056 1057 </div> 1058 1059 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 1060 1061 <div class="box-apimo-checkbox"> <input id="card_number_of_rooms" type="checkbox" name="archive[archive_display_option][]" value="number_of_rooms" <?php if (in_array('number_of_rooms', $archive['archive_display_option'])) { 1062 1063 echo 'checked'; 1064 1065 } ?> /> <span class="check"></span> <label for="card_number_of_rooms" class="apimo-title"><?php _e('Rooms', 'apimo'); ?></label> </div> 1066 1067 </label> <label class="apimo-field"> 1068 1069 <div class="box-apimo-checkbox"> <input id="card_bathroom" type="checkbox" name="archive[archive_display_option][]" value="bathroom" <?php if (in_array('bathroom', $archive['archive_display_option'])) { 1070 1071 echo 'checked'; 1072 1073 } ?> /> <span class="check"></span> <label for="card_bathroom" class="apimo-title"><?php _e('Bath', 'apimo'); ?></label> </div> 1074 1075 </label> <label class="apimo-field"> 1076 1077 <div class="box-apimo-checkbox"> <input id="card_areas" type="checkbox" name="archive[archive_display_option][]" value="areas" <?php if (in_array('areas', $archive['archive_display_option'])) { 1078 1079 echo 'checked'; 1080 1081 } ?> /> <span class="check"></span> <label for="card_areas" class="apimo-title"><?php _e('MQ Areas', 'apimo'); ?></label> </div> 1082 1083 </label> <label class="apimo-field"> 1084 1085 <div class="box-apimo-checkbox"> <input id="card_external_areas" type="checkbox" name="archive[archive_display_option][]" value="external_areas" <?php if (in_array('external_areas', $archive['archive_display_option'])) { 1086 1087 echo 'checked'; 1088 1089 } ?> /> <span class="check"></span> <label for="card_external_areas" class="apimo-title"><?php _e('External Areas', 'apimo'); ?></label> </div> 1090 1091 </label> </div> 1092 1093 </div> 1094 1095 <div class="apimo-col-6"> 1096 1097 <div class="apimo-block-label"> 1098 1099 <h5><?php _e('Meta fields "Area"'); ?></h5> 1100 1101 </div> 1102 1103 <div class="apimo-block-info"> 1104 1105 <p><?php _e('Choose the area type value to show in your website:', 'apimo'); ?></p> 1106 1107 </div> 1108 1109 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 1110 1111 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="weighted" id="area_type_weighted" <?php if ($archive['area_display_type'] == 'weighted' || $archive['area_display_type'] == '') { 1112 1113 echo 'checked'; 1114 1115 } ?> /> <span class="check"></span> <label for="area_type_weighted" class="apimo-title"><?php _e('Commercial area', 'apimo'); ?></label> </div> 1116 1117 </label> <label class="apimo-field"> 1118 1119 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="total" id="area_type_total" <?php if ($archive['area_display_type'] == 'total') { 1120 1121 echo 'checked'; 1122 1123 } ?> /> <span class="check"></span> <label for="area_type_total" class="apimo-title"><?php _e('Total area', 'apimo'); ?></label> </div> 1124 1125 </label> <label class="apimo-field"> 1126 1127 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="value" id="area_type_value" <?php if ($archive['area_display_type'] == 'value') { 1128 1129 echo 'checked'; 1130 1131 } ?> /> <span class="check"></span> <label for="area_type_value" class="apimo-title"><?php _e('Net area', 'apimo'); ?></label> </div> 1132 1133 </label> </div> 1134 1135 </div> 1136 1137 <div class="apimo-col-6"> 1138 1139 <div class="apimo-block-label"> 1140 1141 <h5><?php _e('Hide Icon', 'apimo'); ?></h5> 1142 1143 </div> 1144 1145 <div class="apimo-block-info"> 1146 1147 <p><?php _e('Select this option for remove all the icon from the metas. This option will affect archive page and all shortcode.', 'apimo'); ?></p> 1148 1149 </div> 1150 1151 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 1152 1153 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[hideicon]" value="hideicon" id="hideicon" <?php if ($archive['hideicon'] == 'hideicon') { 1154 1155 echo 'checked'; 1156 1157 } ?> /> <span class="check"></span> <label for="hideicon" class="apimo-title"><?php _e('Yes, I want remove all the icon', 'apimo'); ?></label> </div> 1158 1159 </label> </div> 1160 1161 </div> 1162 1163 </div> 1164 1165 </div> 1166 1167 </div> 1168 1169 <div class="apimo-step-line"> 1170 1171 <div class="apimo-inner-header"> 1172 1173 <p><span class="point-circle">7</span><?php _e('Gallery Display Type', 'apimo'); ?></p> 1174 1175 </div> 1176 1177 <div class="apimo-body-inner"> 1178 1179 <div class="apimo-step-description"> <label class="apimo-field"> <label class="apimo-title"><?php _e('Lightbox', 'apimo'); ?></label> <input type="checkbox" name="archive[gallery_display_lighbox]" value="1" <?php if (isset($archive['gallery_display_lighbox']) && $archive['gallery_display_lighbox'] == '1') { 1180 1181 echo 'checked'; 1182 1183 } ?> /> </label> <label class="apimo-field"> <label class="apimo-title"><?php _e('Slider', 'apimo'); ?></label> <input type="checkbox" name="archive[gallery_display_slider]" value="1" <?php if (isset($archive['gallery_display_slider']) && $archive['gallery_display_slider'] == '1') { 1184 1185 echo 'checked'; 1186 1187 } ?> /> </label> </div> 1188 1189 </div> 1190 1191 </div> 1192 1193 </div> 1194 1195 1196 1197 <!-- Single Properties --> 1198 1199 <div class="apimo-block apimo_setting_section style_pagina"> 1200 1201 <div class="apimo-block-header"> 1202 1203 <h3><?php _e("Layout - Detail Page", 'apimo'); ?></h3> 1204 1205 </div> 1206 1207 <div class="apimo-block-body apimo-section-description"> 1208 1209 <div class="apimo-block-info"> 1210 1211 <p><?php _e('Choose the layout for the single properties page. You can override this option for each post', 'apimo'); ?></p> 1212 1213 </div> 1214 1215 <div class="apimo-section-description"> 1216 1217 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 1218 1219 <div class="apimo-radio-container"> <input type="radio" name="apimo_style_pagina" id="apimo-pagina_style_1" value="pagina_style_1" <?php if ($apimo_style_pagina == 'pagina_style_1') { 1220 1221 echo 'checked'; 1222 1223 } ?>> <label for="apimo-pagina_style_1"> 1224 1225 <p><?php _e("Style 1", 'apimo'); ?></p> 1226 1227 <div class="apimo-radio-image"> <img src="<?php echo esc_html($apimo_url . 'assets/images/Horizzontal.png'); ?>"> </div> 1228 1229 </label> </div> 1230 1231 </label> 1232 1233 <?php /* <label class="apimo-type-radio"> <div class="apimo-radio-container"> <input type="radio" name="apimo_style_pagina" id="apimo-pagina_style_2" value="pagina_style_2" <?php if ($apimo_style_pagina == 'pagina_style_2') { echo 'checked'; } ?>> <label for="apimo-pagina_style_2"> <p><?php _e("Style 2", 'apimo'); ?></p> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Vertical.png'); ?>"> </div> </label> </div> </label> */?> </div> 1234 1235 </div> 1236 1237 </div> 1238 1239 <div class="apimo-block-body apimo-section-description"> 1240 1241 <div class="apimo-block-info"> 1242 1243 <p><?php _e('Show Unavailable Services', 'apimo'); ?></p> 1244 1245 </div> 1246 1247 <div class="apimo-section-description"> 1248 1249 <div class="apimo-checkbox-container"> 1250 1251 <div class="box-apimo-checkbox"> <input type="checkbox" name="apimo_show_unavailable_service" value="1" id="apimo_show_unavailable_service" <?php checked($apimo_show_unavailable_service, 1); ?>> <span class="check"></span> <label for="apimo_show_unavailable_service"><?php _e('Show Unavailable Services', 'apimo'); ?></label> </div> 1252 1253 </div> 1254 1255 </div> 1256 1257 </div> 1258 1259 </div> 1260 1261 <div class="apimo-block apimo-crea-shortcode"> 1262 1263 <div class="apimo-block-header"> 1264 1265 <h3><?php _e('Generate shortcode', 'apimo'); ?></h3> 1266 1267 </div> 1268 1269 <div class="apimo-block-body"> 1270 1271 <div class="apimo-block-info"> 1272 1273 <p><?php _e('Create a shortcode and place anywhere on your website.', 'apimo'); ?></p> 1274 1275 </div> 1276 1277 <div class="apimo-create-shortcode-popup" id="apimo-create-shortcode-popup" style="display:none"> 1278 1279 <div class="apimo-shortcode-header"> 1280 1281 <h3><?php _e('Generate shortcode', 'apimo'); ?></h3> 1282 1283 </div> <button type="button" id="apimo-close-shortcode-popup"> <svg id="Livello_1" data-name="Livello 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381.49 381.49"> 1284 1285 <path d="M380.58,285.83,541.45,446.7a17.5,17.5,0,0,1-24.75,24.75L355.83,310.58,195,471.45a17.5,17.5,0,0,1-24.75-24.75L331.08,285.83,170.21,125A17.5,17.5,0,0,1,195,100.21L355.83,261.08,516.7,100.21A17.5,17.5,0,0,1,541.45,125Z" transform="translate(-165.09 -95.09)" /> 1286 1287 </svg> </button> 1288 1289 <div class="apimo-steps-titles"> <button type="button" class="apimo-step-title active" data-id="1">1</button> <button type="button" class="apimo-step-title" data-id="2">2</button> <button type="button" class="apimo-step-title" data-id="3">3</button> <button type="button" class="apimo-step-title" data-id="4">4</button> <button type="button" class="apimo-step-title" data-id="5">5</button> <button type="button" class="apimo-step-title" data-id="6">6</button> </div> 1290 1291 <div class="apimo-step step-1 active" data-id="1"> 1292 1293 <div class="apimo-step-title-inner"> 1294 1295 <h5><?php _e('Select the properties', 'apimo'); ?></h5> 1296 1297 <p><?php _e('Choose the properties to show. Remember that you can generate as many shortcodes as you like.'); ?> 1298 1299 </div> 1300 1301 <div class="apimo-step-description"> 1302 1303 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 1304 1305 <div class="apimo-radio-container"> <input type="radio" class="apimo-portrait_radio" name="apimo_proprty_types" value="selected" id="apimo-type-1" checked> <label for="apimo-type-1"><?php _e('Choose by filters', 'apimo'); ?> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Featured_Home.png'); ?>"> </div> </label> </div> 1306 1307 </label> <label class="apimo-type-radio"> 1308 1309 <div class="apimo-radio-container"> <input type="radio" class="apimo-portrait_radio" name="apimo_proprty_types" value="all" id="apimo-type-2"> <label for="apimo-type-2"><?php _e('All properties', 'apimo'); ?> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Home.png'); ?>"> </div> </label> </div> 1310 1311 </label> </div> 1312 1313 </div> 1314 1315 <div class="apimo-step-buttons"> <button type="button" class="button button-primary apimo-step-button apimo-step-next" data-id="2">Next</button> </div> 1316 1317 </div> 1318 1319 <div class="apimo-step apimo-filter-step step-2" data-id="2"> 1320 1321 <div class="apimo-step-title-inner"> 1322 1323 <h5><?php _e('Enable filters', 'apimo'); ?></h5> 1324 1325 <p><?php _e('You can enable filters and paging in the shortcode. Pay attention to the next step.'); ?> 1326 1327 </div> 1328 1329 <div class="apimo-step-description"> 1330 1331 <div class="apimo-row center"> 1332 1333 <div class="apimo-col-6"> <label class="apimo-field checkbox-toggle"> <label class="apimo-title"><strong><?php _e('Enable filter', 'apimo'); ?></strong></label> 1334 1335 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="" id="shortcode_enable_filter" /> <span class="slider round"></span> </div> 1048 <div style="margin-top: 20px;" class="apimo-col-4"> 1049 1050 <label class="apimo-field checkbox-toggle"> 1051 <label class="apimo-title"> 1052 <strong><?php _e('Limit post number', 'apimo'); ?> 1053 </strong> 1054 </label> 1055 1056 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="" id="shortcode_enable_post_limit" /> <span class="slider round"></span> </div> 1336 1057 1337 1058 </label> 1338 1339 <div class="apimo-row center" data-id="shortcode_enable_filter" style="display: none;"> 1340 1341 <div class="apimo-col-4"> 1342 1343 <div class="apimo-container"> 1344 1345 <div class="apimo-block-label"> 1346 1347 <h5><?php _e('Standard filter', 'apimo') ?></h5> 1348 1349 </div> 1350 1351 <div class="apimo-checkbox-container"> 1352 1353 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="category_filter" id="apimo-archive-shortcode-category_filter" /> <span class="check"></span> <label for="apimo-archive-shortcode-category_filter"><?php _e('Category Filter', 'apimo'); ?></label> </div> 1354 1355 </div> 1356 1357 <div class="apimo-checkbox-container"> 1358 1359 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="subtype_filter" id="apimo-archive-shortcode-subtype_filter" /> <span class="check"></span> <label for="apimo-archive-shortcode-subtype_filter"><?php _e('Subtype Filter', 'apimo'); ?></label> </div> 1360 1361 </div> 1362 1363 <div class="apimo-checkbox-container"> 1364 1365 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="number_of_rooms" id="apimo-archive-shortcode-number_of_rooms"> <span class="check"></span> <label for="apimo-archive-shortcode-number_of_rooms"><?php _e('Number of rooms', 'apimo'); ?></label> </div> 1366 1367 </div> 1368 1369 <div class="apimo-checkbox-container"> 1370 1371 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="number_of_bedrooms" id="apimo-archive-shortcode-number_of_bedrooms"> <span class="check"></span> <label for="apimo-archive-shortcode-number_of_bedrooms"><?php _e('Number of bedrooms', 'apimo'); ?></label> </div> 1372 1373 </div> 1374 1375 <div class="apimo-checkbox-container"> 1376 1377 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="price_range" id="apimo-archive-shortcode-price_range"> <span class="check"></span> <label for="apimo-archive-shortcode-price_range"><?php _e('Price range', 'apimo'); ?></label> </div> 1378 1379 </div> 1380 1381 <div class="apimo-checkbox-container"> 1382 1383 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="property_areas" id="apimo-archive-shortcode-property_areas"> <span class="check"></span> <label for="apimo-archive-shortcode-property_areas"><?php _e('Areas range', 'apimo'); ?></label> </div> 1384 1385 </div> 1386 1387 <div class="apimo-checkbox-container"> 1388 1389 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="dates" id="apimo-archive-shortcode-dates"> <span class="check"></span> <label for="apimo-archive-shortcode-dates"><?php _e('Dates', 'apimo'); ?></label> </div> 1390 1391 </div> 1392 1393 <div class="apimo-checkbox-container"> 1394 1395 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_normal[]" value="location" id="apimo-archive-shortcode-location"> <span class="check"></span> <label for="apimo-archive-shortcode-location"><?php _e('Location (Region, City, District)', 'apimo'); ?></label> </div> 1396 1397 </div> 1398 1399 </div> 1400 1401 </div> 1402 1403 <div class="apimo-col-4"> 1404 1405 <div class="apimo-container"> 1406 1407 <div class="apimo-block-label"> 1408 1409 <h5><?php _e('Advance filter', 'apimo') ?></h5> 1410 1411 </div> 1412 1413 <div class="apimo-checkbox-container"> 1414 1415 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="garden" id="apimo-archive-shortcode-garden"> <span class="check"></span> <label for="apimo-archive-shortcode-garden"><?php _e('Garden', 'apimo'); ?></label> </div> 1416 1417 </div> 1418 1419 <div class="apimo-checkbox-container"> 1420 1421 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="terrace" id="apimo-archive-shortcode-terrace"> <span class="check"></span> <label for="apimo-archive-shortcode-terrace"><?php _e('Terrace', 'apimo'); ?></label> </div> 1422 1423 </div> 1424 1425 <div class="apimo-checkbox-container"> 1426 1427 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="balcony" id="apimo-archive-shortcode-balcony"> <span class="check"></span> <label for="apimo-archive-shortcode-balcony"><?php _e('Balcony', 'apimo'); ?></label> </div> 1428 1429 </div> 1430 1431 <div class="apimo-checkbox-container"> 1432 1433 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="garage_box" id="apimo-archive-shortcode-garage_box"> <span class="check"></span> <label for="apimo-archive-shortcode-garage_box"><?php _e('Garage or Box', 'apimo'); ?></label> </div> 1434 1435 </div> 1436 1437 <div class="apimo-checkbox-container"> 1438 1439 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="parking_space" id="apimo-archive-shortcode-parking_space"> <span class="check"></span> <label for="apimo-archive-shortcode-parking_space"><?php _e('Parking space (internal or external)', 'apimo'); ?></label> </div> 1440 1441 </div> 1442 1443 <div class="apimo-checkbox-container"> 1444 1445 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="cellar" id="apimo-archive-shortcode-cellar"> <span class="check"></span> <label for="apimo-archive-shortcode-cellar"><?php _e('Cellar', 'apimo'); ?></label> </div> 1446 1447 </div> 1448 1449 <div class="apimo-checkbox-container"> 1450 1451 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="pool" id="apimo-archive-shortcode-pool"> <span class="check"></span> <label for="apimo-archive-shortcode-pool"><?php _e('Pool', 'apimo'); ?></label> </div> 1452 1453 </div> 1454 1455 <div class="apimo-checkbox-container"> 1456 1457 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive_filter_advance[]" value="lift" id="apimo-archive-shortcode-lift"> <span class="check"></span> <label for="apimo-archive-shortcode-lift"><?php _e('Lift', 'apimo'); ?></label> </div> 1458 1459 </div> 1460 1461 </div> 1462 1463 </div> 1464 1465 </div> 1466 1467 </div> 1468 1469 <div class="apimo-col-6"> <label class="apimo-field checkbox-toggle"> <label class="apimo-title"><strong><?php _e('Enable pagination', 'apimo'); ?></strong></label> 1470 1471 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="" id="shortcode_enable_pagination" /> <span class="slider round"></span> </div> 1472 1473 </label> 1474 1475 <div class="apimo-row center" data-id="shortcode_enable_pagination" style="display: none;"> 1059 <div class="apimo-row center" data-id="shortcode_enable_post_limit" style="display: none;"> 1476 1060 1477 1061 <div class="apimo-col" style="margin-top: 10px"> … … 1479 1063 <div class="apimo-shortcode-input-label"> 1480 1064 1481 <p><?php _e(' Number of post per page', 'apimo') ?></p>1482 1483 </div> <input class="" id="filter_p age_size" value="12" />1065 <p><?php _e('Limit Posts', 'apimo') ?></p> 1066 1067 </div> <input class="" id="filter_post_limit" value="12" /> 1484 1068 1485 1069 </div> … … 2176 1760 </div> 2177 1761 2178 <div class="apimo-step-desctiption-content step-shortcode-end"> 2179 2180 <div class="apimo-shortcode-generate"> <input type="button" class="button button-primary" name="generate-shortcode" value="<?php _e('Generate now', 'apimo'); ?>" /> </div> 2181 2182 <div class="apimo-shortcode"> <input type="text" name="shortcode" value="[apimo]" /> <input type="button" class="button" name="copy_shortcode" value="<?php _e('Copy', 'apimo'); ?>" /> </div> 2183 2184 </div> 2185 2186 <div class="apimo-step-buttons"> <button type="button" class="button apimo-step-button apimo-step-previous" data-id="5">Prev</button> </div> 1762 <div class="apimo-step-desctiption-content step-shortcode-end"> 1763 1764 <div class="apimo-shortcode-generate"> <input type="button" class="button button-primary" name="generate-shortcode" value="<?php _e('Generate now', 'apimo'); ?>" /> </div> 1765 1766 <div class="apimo-shortcode"> 1767 <input style="margin:15px 0" type="text" placeholder="Shortcode title" name="shortcode_title" id="shortcode_title"> 1768 <textarea placeholder="Shortcode description" style="width: 60%;border: 1px solid #dedede!important;" name="shortcode_description" id="shortcode_description" cols="30" rows="10"></textarea> 1769 </div> 1770 <div class="apimo-shortcode"> 1771 <input type="text" name="shortcode" id="shortcode" value="[apimo]" /> 1772 <input type="button" class="button" name="copy_shortcode" value="<?php _e('Copy', 'apimo'); ?>" /> 1773 </div> 1774 1775 1776 </div> 1777 1778 <div class="apimo-step-buttons"> 1779 <button type="button" class="button apimo-step-button apimo-step-previous" data-id="5">Prev</button> 1780 <input id="save_shortcode" type="submit" class="button button-primary" name="save_shortcode" value="Add to Bookmark"> 1781 </div> 1782 1783 1784 1785 2187 1786 2188 1787 </div> … … 2195 1794 2196 1795 </div> 1796 <!-- Style setting --> 1797 <section class="apimo-block apimo_setting_section style-settings"> 1798 1799 <div class="apimo-block-header"> 1800 1801 <h3><?php _e('General settings', 'apimo'); ?></h3> 1802 1803 </div> 1804 1805 <div class="apimo-block-body apimo-section-description"> 1806 1807 <div class="apimo-row"> 1808 1809 <div class="apimo-col-4"> 1810 1811 <div class="apimo-block-label"> 1812 1813 <h5><?php _e('Slug'); ?></h5> 1814 1815 </div> 1816 1817 <div class="apimo-block-info"> 1818 1819 <p><?php _e('Manage the slug of your custom post type "properties". <br>You can add your custom url for the Properties List and Detail Page:', 'apimo'); ?></p> 1820 1821 </div> 1822 1823 <div class="apimo-step-desctiption-content"> 1824 1825 <div class="apimo-radio-settings"> 1826 1827 <div class="apimo-row"> 1828 1829 <div class="apimo-col-auto"> 1830 1831 <div class="apimo-view-type"> 1832 1833 <p><?php _e('Properties List', 'apimo'); ?>:</p> <label> <input type="text" name="archive[archive_slug]" min="1" value="<?php echo esc_html($archive['archive_slug']); ?>"> </label> 1834 1835 </div> 1836 1837 </div> 1838 1839 <div class="apimo-col-auto"> 1840 1841 <div class="apimo-view-type"> 1842 1843 <p><?php _e('Detail Page', 'apimo'); ?>:</p> <label> <input type="text" name="archive[single_slug]" min="1" value="<?php echo esc_html($archive['single_slug']); ?>"> </label> 1844 1845 </div> 1846 1847 </div> 1848 1849 </div> 1850 1851 </div> 1852 1853 </div> 1854 1855 </div> 1856 1857 <div class="apimo-col-4"> 1858 1859 <div class="apimo-block-label"> 1860 1861 <h5><?php _e('Color settings'); ?></h5> 1862 1863 </div> 1864 1865 <div class="apimo-block-info"> 1866 1867 <p><?php _e('This style is general for all the pages regarding apimo plugin.'); ?></p> 1868 1869 </div> 1870 1871 <div class="apimo-style"> 1872 1873 <div class="apimo-row"> 1874 1875 <div class="apimo-col-auto"> 1876 1877 <div class="apimo-block-label"> 1878 1879 <h5><?php _e('Primary', 'apimo'); ?></h5> 1880 1881 </div> 1882 1883 <div class="aprimo-block-style-option"> 1884 1885 <p>Choose a color:</p> <label> <input type="text" class="apimo-color-picker-field" name="style[primary][color]" placeholder="<?php _e('Select Color', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['primary']['color']); ?>"> </label> 1886 1887 </div> 1888 1889 </div> 1890 1891 <div class="apimo-col-auto"> 1892 1893 <div class="apimo-block-label"> 1894 1895 <h5><?php _e('Secondary', 'apimo'); ?></h5> 1896 1897 </div> 1898 1899 <div class="aprimo-block-style-option"> 1900 1901 <p>Choose a color:</p> <label> <input type="text" class="apimo-color-picker-field" name="style[secondary][color]" placeholder="<?php _e('Select Color', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['secondary']['color']); ?>"> </label> 1902 1903 </div> 1904 1905 </div> 1906 1907 </div> 1908 1909 </div> 1910 1911 </div> 1912 1913 <div class="apimo-col-3"> 1914 1915 <div class="apimo-block-label"> 1916 1917 <h5><?php _e('Container Settings'); ?></h5> 1918 1919 </div> 1920 1921 <div class="apimo-block-info"> 1922 1923 <p><?php _e('Set up the width of the container for apimo archive.'); ?></p> 1924 1925 </div> 1926 1927 <div class="apimo-style"> 1928 1929 <div class="apimo-row"> 1930 1931 <div class="apimo-col-auto"> 1932 1933 <div class="aprimo-block-style-option"> <label> <input type="text" name="style[container_width]" placeholder="<?php _e('Container Width', 'apimo'); ?>" value="<?php echo esc_html($apimo_style['container_width']); ?>"> <span> <select name="style[container_width_unit]"> 1934 1935 <option value="px" <?php echo ($apimo_style['container_width_unit'] == 'px') ? "selected" : "" ?>>px</option> 1936 1937 <option value="%" <?php echo ($apimo_style['container_width_unit'] == '%') ? "selected" : "" ?>>%</option> 1938 1939 </select> </span> </label> </div> 1940 1941 </div> 1942 1943 </div> 1944 1945 </div> 1946 1947 </div> 1948 1949 </div> 1950 1951 </div> 1952 1953 <div class="apimo-footer align-right"> <?php /* <button type="button" class="button button-primary wt_iew_export_action_btn" id=""><?php _e('save','apimo'); ?></button> */?> 1954 1955 1956 1957 </div> 1958 1959 </section> 1960 1961 1962 1963 <!-- Archive Properties --> 1964 1965 <div class="apimo-block style_archive"> 1966 1967 <div class="apimo-block-header"> 1968 1969 <h3><?php _e('Setting - Properties List', 'apimo'); ?></h3> 1970 1971 </div> 1972 1973 <div class="apimo-block-body p-0"> 1974 1975 <div class="apimo-step-line"> 1976 1977 <div class="apimo-inner-header"> 1978 1979 <p><span class="point-circle">1</span><?php _e('Layout', 'apimo'); ?></p> 1980 1981 </div> 1982 1983 <div class="apimo-body-inner"> 1984 1985 <div class="apimo-block-info"> 1986 1987 <p>Choose the card type for the properties in the archive page:</p> 1988 1989 </div> 1990 1991 <div class="apimo-step-desctiption-content"> 1992 1993 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 1994 1995 <div class="apimo-radio-container"> <input type="radio" name="archive[template]" value="landscape" id="apimo-landscape" <?php if ($archive['template'] == 'landscape') { 1996 1997 echo 'checked'; 1998 1999 } ?>> <label for="apimo-landscape"> 2000 2001 <p><?php _e('Landscape', 'apimo'); ?></p> 2002 2003 <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . '/assets/images/Horizzontal.png'); ?>"> </div> 2004 2005 </label> </div> 2006 2007 </label> <label class="apimo-type-radio"> 2008 2009 <div class="apimo-radio-container"> <input type="radio" name="archive[template]" value="portrait" id="apimo-portrait" <?php if ($archive['template'] == 'portrait') { 2010 2011 echo 'checked'; 2012 2013 } ?>> <label for="apimo-portrait"> 2014 2015 <p><?php _e('Portrait', 'apimo'); ?></p> 2016 2017 <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . '/assets/images/Vertical.png'); ?>"> </div> 2018 2019 </label> </div> 2020 2021 </label> </div> 2022 2023 </div> 2024 2025 </div> 2026 2027 <div class="apimo-body-inner"> 2028 2029 <div class="apimo-block-info"> 2030 2031 <p><?php _e('Choose the number of columns for each view of website:', 'apimo'); ?></p> 2032 2033 </div> 2034 2035 <div class="apimo-step-desctiption-content"> <label class="apimo-type-radio"> 2036 2037 <div class="apimo-radio-settings"> 2038 2039 <div class="apimo-row"> 2040 2041 <div class="apimo-col-3"> 2042 2043 <div class="apimo-block-label"> 2044 2045 <h5><?php _e('Desktop', 'apimo'); ?></h5> 2046 2047 </div> 2048 2049 <div class="apimo-view-type"> 2050 2051 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][desktop]" min="1" value="<?php echo esc_html($archive['view_1']['desktop']); ?>"> </label> 2052 2053 </div> 2054 2055 </div> 2056 2057 <div class="apimo-col-3"> 2058 2059 <div class="apimo-block-label"> 2060 2061 <h5><?php _e('Tablet', 'apimo'); ?></h5> 2062 2063 </div> 2064 2065 <div class="apimo-view-type"> 2066 2067 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][teblate]" min="1" value="<?php echo esc_html($archive['view_1']['teblate']); ?>"> </label> 2068 2069 </div> 2070 2071 </div> 2072 2073 <div class="apimo-col-3"> 2074 2075 <div class="apimo-block-label"> 2076 2077 <h5><?php _e('Mobile', 'apimo'); ?></h5> 2078 2079 </div> 2080 2081 <div class="apimo-view-type"> 2082 2083 <p><?php _e('Number of elements', 'apimo'); ?>:</p> <label> <input type="number" name="archive[view_1][mobile]" min="1" value="<?php echo esc_html($archive['view_1']['mobile']); ?>"> </label> 2084 2085 </div> 2086 2087 </div> 2088 2089 </div> 2090 2091 </div> 2092 2093 </label> </div> 2094 2095 </div> 2096 2097 </div> 2098 2099 </div> 2100 2101 <div class="apimo-step-line"> 2102 2103 <div class="apimo-inner-header"> 2104 2105 <p><span class="point-circle">2</span><?php _e('Filter and pagination', 'apimo'); ?></p> 2106 2107 </div> 2108 2109 <div class="apimo-body-inner"> 2110 2111 <div class="apimo-step-desctiption-content"> 2112 2113 <div class="apimo-row"> 2114 2115 <div class="apimo-col-8"> 2116 2117 <div class="apimo-block-info"> 2118 2119 <p><?php _e('Choose the filter to show in your archive page:', 'apimo'); ?></p> 2120 2121 </div> 2122 2123 <div class="apimo-step-description mt-15"> 2124 2125 <div class="apimo-row"> 2126 2127 <div class="apimo-col-6"> 2128 2129 <div class="apimo-container"> 2130 2131 <div class="apimo-block-label"> 2132 2133 <h5><?php _e('Standard filter', 'apimo') ?></h5> 2134 2135 </div> 2136 2137 <div class="apimo-checkbox-container"> 2138 2139 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="category_filter" id="apimo-archive-category_filter" <?php if (in_array("category_filter", $archive['filter'])) { 2140 2141 echo 'checked'; 2142 2143 } ?>> <span class="check"></span> <label for="apimo-archive-category_filter"><?php _e('Category Filter', 'apimo'); ?></label> </div> 2144 2145 </div> 2146 2147 <div class="apimo-checkbox-container"> 2148 2149 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="subtype_filter" id="apimo-archive-subtype_filter" <?php if (in_array("subtype_filter", $archive['filter'])) { 2150 2151 echo 'checked'; 2152 2153 } ?>> <span class="check"></span> <label for="apimo-archive-subtype_filter"><?php _e('Subtype Filter', 'apimo'); ?></label> </div> 2154 2155 </div> 2156 2157 <div class="apimo-checkbox-container"> 2158 2159 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="number_of_rooms" id="apimo-archive-number_of_rooms" <?php if (in_array("number_of_rooms", $archive['filter'])) { 2160 2161 echo 'checked'; 2162 2163 } ?>> <span class="check"></span> <label for="apimo-archive-number_of_rooms"><?php _e('Number of rooms', 'apimo'); ?></label> </div> 2164 2165 </div> 2166 2167 <div class="apimo-checkbox-container"> 2168 2169 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="number_of_bedrooms" id="apimo-archive-number_of_bedrooms" <?php if (in_array("number_of_bedrooms", $archive['filter'])) { 2170 2171 echo 'checked'; 2172 2173 } ?>> <span class="check"></span> <label for="apimo-archive-number_of_bedrooms"><?php _e('Number of bedrooms', 'apimo'); ?></label> </div> 2174 2175 </div> 2176 2177 <div class="apimo-checkbox-container"> 2178 2179 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="price_range" id="apimo-archive-price_range" <?php if (in_array("price_range", $archive['filter'])) { 2180 2181 echo 'checked'; 2182 2183 } ?>> <span class="check"></span> <label for="apimo-archive-price_range"><?php _e('Price range', 'apimo'); ?></label> </div> 2184 2185 </div> 2186 2187 <div class="apimo-checkbox-container"> 2188 2189 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="property_areas" id="apimo-archive-property_areas" <?php if (in_array("property_areas", $archive['filter'])) { 2190 2191 echo 'checked'; 2192 2193 } ?>> <span class="check"></span> <label for="apimo-archive-property_areas"><?php _e('Areas range', 'apimo'); ?></label> </div> 2194 2195 </div> 2196 2197 <div class="apimo-checkbox-container"> 2198 2199 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="dates" id="apimo-archive-dates" <?php if (in_array("dates", $archive['filter'])) { 2200 2201 echo 'checked'; 2202 2203 } ?>> <span class="check"></span> <label for="apimo-archive-dates"><?php _e('Dates', 'apimo'); ?></label> </div> 2204 2205 </div> 2206 2207 <div class="apimo-checkbox-container"> 2208 2209 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][]" value="location" id="apimo-archive-location" <?php if (in_array("location", $archive['filter'])) { 2210 2211 echo 'checked'; 2212 2213 } ?>> <span class="check"></span> <label for="apimo-archive-location"><?php _e('Location (Region, City, District)', 'apimo'); ?></label> </div> 2214 2215 </div> 2216 2217 </div> 2218 2219 </div> 2220 2221 <div class="apimo-col-6"> 2222 2223 <div class="apimo-container"> 2224 2225 <div class="apimo-block-label"> 2226 2227 <h5><?php _e('Advance filter', 'apimo') ?></h5> 2228 2229 </div> 2230 2231 <div class="apimo-checkbox-container"> 2232 2233 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="garden" id="apimo-archive-garden" <?php if (in_array("garden", $archive['filter']['advance'])) { 2234 2235 echo 'checked'; 2236 2237 } ?>> <span class="check"></span> <label for="apimo-archive-garden"><?php _e('Garden', 'apimo'); ?></label> </div> 2238 2239 </div> 2240 2241 <div class="apimo-checkbox-container"> 2242 2243 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="terrace" id="apimo-archive-terrace" <?php if (in_array("terrace", $archive['filter']['advance'])) { 2244 2245 echo 'checked'; 2246 2247 } ?>> <span class="check"></span> <label for="apimo-archive-terrace"><?php _e('Terrace', 'apimo'); ?></label> </div> 2248 2249 </div> 2250 2251 <div class="apimo-checkbox-container"> 2252 2253 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="balcony" id="apimo-archive-balcony" <?php if (in_array("balcony", $archive['filter']['advance'])) { 2254 2255 echo 'checked'; 2256 2257 } ?>> <span class="check"></span> <label for="apimo-archive-balcony"><?php _e('Balcony', 'apimo'); ?></label> </div> 2258 2259 </div> 2260 2261 <div class="apimo-checkbox-container"> 2262 2263 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="garage_box" id="apimo-archive-garage_box" <?php if (in_array("garage_box", $archive['filter']['advance'])) { 2264 2265 echo 'checked'; 2266 2267 } ?>> <span class="check"></span> <label for="apimo-archive-garage_box"><?php _e('Garage or Box', 'apimo'); ?></label> </div> 2268 2269 </div> 2270 2271 <div class="apimo-checkbox-container"> 2272 2273 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="parking_space" id="apimo-archive-parking_space" <?php if (in_array("parking_space", $archive['filter']['advance'])) { 2274 2275 echo 'checked'; 2276 2277 } ?>> <span class="check"></span> <label for="apimo-archive-parking_space"><?php _e('Parking space (internal or external)', 'apimo'); ?></label> </div> 2278 2279 </div> 2280 2281 <div class="apimo-checkbox-container"> 2282 2283 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="cellar" id="apimo-archive-cellar" <?php if (in_array("cellar", $archive['filter']['advance'])) { 2284 2285 echo 'checked'; 2286 2287 } ?>> <span class="check"></span> <label for="apimo-archive-cellar"><?php _e('Cellar', 'apimo'); ?></label> </div> 2288 2289 </div> 2290 2291 <div class="apimo-checkbox-container"> 2292 2293 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="pool" id="apimo-archive-pool" <?php if (in_array("pool", $archive['filter']['advance'])) { 2294 2295 echo 'checked'; 2296 2297 } ?>> <span class="check"></span> <label for="apimo-archive-pool"><?php _e('Pool', 'apimo'); ?></label> </div> 2298 2299 </div> 2300 2301 <div class="apimo-checkbox-container"> 2302 2303 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[filter][advance][]" value="lift" id="apimo-archive-lift" <?php if (in_array("lift", $archive['filter']['advance'])) { 2304 2305 echo 'checked'; 2306 2307 } ?>> <span class="check"></span> <label for="apimo-archive-lift"><?php _e('Lift', 'apimo'); ?></label> </div> 2308 2309 </div> 2310 2311 </div> 2312 2313 </div> 2314 2315 </div> 2316 2317 </div> 2318 2319 </div> 2320 2321 <div class="apimo-col-3"> 2322 2323 <div class="apimo-block-info"> 2324 2325 <p><?php _e('Enable pagination and choose the number of elements:', 'apimo'); ?></p> 2326 2327 </div> 2328 2329 <div class="apimo-step-description mt-15"> <label class="apimo-field checkbox-toggle"> <label class="apimo-title"><strong><?php _e('Enable pagination', 'apimo'); ?></strong></label> 2330 2331 <div class="checkbox-toggle-container switch"> <input type="checkbox" name="archive[pagination_enable]" <?php if ($archive['pagination_enable']) { 2332 2333 echo 'checked'; 2334 2335 } ?> /> <span class="slider round"></span> </div> 2336 2337 </label> </div> 2338 2339 <div class="apimo-step-description mt-15"> <label class="apimo-field"> <label class="apimo-title"><?php _e('Number of post per page', 'apimo'); ?></label> <input type="number" name="archive[num_of_post]" value="<?php echo esc_html($archive['num_of_post']); ?>" /> </label> </div> 2340 2341 </div> 2342 2343 </div> 2344 2345 </div> 2346 2347 </div> 2348 2349 </div> 2350 2351 <div class="apimo-step-line"> 2352 2353 <div class="apimo-inner-header"> 2354 2355 <p><span class="point-circle">3</span><?php _e('Display options', 'apimo'); ?></p> 2356 2357 </div> 2358 2359 <div class="apimo-body-inner"> 2360 2361 <div class="apimo-row"> 2362 2363 <div class="apimo-col-6"> 2364 2365 <div class="apimo-block-label"> 2366 2367 <h5><?php _e('Meta fields - Apimo Cards'); ?></h5> 2368 2369 </div> 2370 2371 <div class="apimo-block-info"> 2372 2373 <p><?php _e('Choose the meta field to show in the properties cards:', 'apimo'); ?></p> 2374 2375 </div> 2376 2377 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 2378 2379 <div class="box-apimo-checkbox"> <input id="card_number_of_rooms" type="checkbox" name="archive[archive_display_option][]" value="number_of_rooms" <?php if (in_array('number_of_rooms', $archive['archive_display_option'])) { 2380 2381 echo 'checked'; 2382 2383 } ?> /> <span class="check"></span> <label for="card_number_of_rooms" class="apimo-title"><?php _e('Rooms', 'apimo'); ?></label> </div> 2384 2385 </label> <label class="apimo-field"> 2386 2387 <div class="box-apimo-checkbox"> <input id="card_bathroom" type="checkbox" name="archive[archive_display_option][]" value="bathroom" <?php if (in_array('bathroom', $archive['archive_display_option'])) { 2388 2389 echo 'checked'; 2390 2391 } ?> /> <span class="check"></span> <label for="card_bathroom" class="apimo-title"><?php _e('Bath', 'apimo'); ?></label> </div> 2392 2393 </label> <label class="apimo-field"> 2394 2395 <div class="box-apimo-checkbox"> <input id="card_areas" type="checkbox" name="archive[archive_display_option][]" value="areas" <?php if (in_array('areas', $archive['archive_display_option'])) { 2396 2397 echo 'checked'; 2398 2399 } ?> /> <span class="check"></span> <label for="card_areas" class="apimo-title"><?php _e('MQ Areas', 'apimo'); ?></label> </div> 2400 2401 </label> <label class="apimo-field"> 2402 2403 <div class="box-apimo-checkbox"> <input id="card_external_areas" type="checkbox" name="archive[archive_display_option][]" value="external_areas" <?php if (in_array('external_areas', $archive['archive_display_option'])) { 2404 2405 echo 'checked'; 2406 2407 } ?> /> <span class="check"></span> <label for="card_external_areas" class="apimo-title"><?php _e('External Areas', 'apimo'); ?></label> </div> 2408 2409 </label> </div> 2410 2411 </div> 2412 2413 <div class="apimo-col-6"> 2414 2415 <div class="apimo-block-label"> 2416 2417 <h5><?php _e('Meta fields "Area"'); ?></h5> 2418 2419 </div> 2420 2421 <div class="apimo-block-info"> 2422 2423 <p><?php _e('Choose the area type value to show in your website:', 'apimo'); ?></p> 2424 2425 </div> 2426 2427 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 2428 2429 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="weighted" id="area_type_weighted" <?php if ($archive['area_display_type'] == 'weighted' || $archive['area_display_type'] == '') { 2430 2431 echo 'checked'; 2432 2433 } ?> /> <span class="check"></span> <label for="area_type_weighted" class="apimo-title"><?php _e('Commercial area', 'apimo'); ?></label> </div> 2434 2435 </label> <label class="apimo-field"> 2436 2437 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="total" id="area_type_total" <?php if ($archive['area_display_type'] == 'total') { 2438 2439 echo 'checked'; 2440 2441 } ?> /> <span class="check"></span> <label for="area_type_total" class="apimo-title"><?php _e('Total area', 'apimo'); ?></label> </div> 2442 2443 </label> <label class="apimo-field"> 2444 2445 <div class="box-apimo-checkbox"> <input type="radio" name="archive[area_display_type]" value="value" id="area_type_value" <?php if ($archive['area_display_type'] == 'value') { 2446 2447 echo 'checked'; 2448 2449 } ?> /> <span class="check"></span> <label for="area_type_value" class="apimo-title"><?php _e('Net area', 'apimo'); ?></label> </div> 2450 2451 </label> </div> 2452 2453 </div> 2454 2455 <div class="apimo-col-6"> 2456 2457 <div class="apimo-block-label"> 2458 2459 <h5><?php _e('Hide Icon', 'apimo'); ?></h5> 2460 2461 </div> 2462 2463 <div class="apimo-block-info"> 2464 2465 <p><?php _e('Select this option for remove all the icon from the metas. This option will affect archive page and all shortcode.', 'apimo'); ?></p> 2466 2467 </div> 2468 2469 <div class="apimo-step-description checkbox-inline"> <label class="apimo-field"> 2470 2471 <div class="box-apimo-checkbox"> <input type="checkbox" name="archive[hideicon]" value="hideicon" id="hideicon" <?php if ($archive['hideicon'] == 'hideicon') { 2472 2473 echo 'checked'; 2474 2475 } ?> /> <span class="check"></span> <label for="hideicon" class="apimo-title"><?php _e('Yes, I want remove all the icon', 'apimo'); ?></label> </div> 2476 2477 </label> </div> 2478 2479 </div> 2480 2481 </div> 2482 2483 </div> 2484 2485 </div> 2486 2487 <div class="apimo-step-line"> 2488 2489 <div class="apimo-inner-header"> 2490 2491 <p><span class="point-circle">7</span><?php _e('Gallery Display Type', 'apimo'); ?></p> 2492 2493 </div> 2494 2495 <div class="apimo-body-inner"> 2496 2497 <div class="apimo-step-description"> <label class="apimo-field"> <label class="apimo-title"><?php _e('Lightbox', 'apimo'); ?></label> <input type="checkbox" name="archive[gallery_display_lighbox]" value="1" <?php if (isset($archive['gallery_display_lighbox']) && $archive['gallery_display_lighbox'] == '1') { 2498 2499 echo 'checked'; 2500 2501 } ?> /> </label> <label class="apimo-field"> <label class="apimo-title"><?php _e('Slider', 'apimo'); ?></label> <input type="checkbox" name="archive[gallery_display_slider]" value="1" <?php if (isset($archive['gallery_display_slider']) && $archive['gallery_display_slider'] == '1') { 2502 2503 echo 'checked'; 2504 2505 } ?> /> </label> </div> 2506 2507 </div> 2508 2509 </div> 2510 2511 </div> 2512 2513 2514 2515 <!-- Single Properties --> 2516 2517 <div class="apimo-block apimo_setting_section style_pagina"> 2518 2519 <div class="apimo-block-header"> 2520 2521 <h3><?php _e("Layout - Detail Page", 'apimo'); ?></h3> 2522 2523 </div> 2524 2525 <div class="apimo-block-body apimo-section-description"> 2526 2527 <div class="apimo-block-info"> 2528 2529 <p><?php _e('Choose the layout for the single properties page. You can override this option for each post', 'apimo'); ?></p> 2530 2531 </div> 2532 2533 <div class="apimo-section-description"> 2534 2535 <div class="apimo-radiogroup"> <label class="apimo-type-radio"> 2536 2537 <div class="apimo-radio-container"> <input type="radio" name="apimo_style_pagina" id="apimo-pagina_style_1" value="pagina_style_1" <?php if ($apimo_style_pagina == 'pagina_style_1') { 2538 2539 echo 'checked'; 2540 2541 } ?>> <label for="apimo-pagina_style_1"> 2542 2543 <p><?php _e("Style 1", 'apimo'); ?></p> 2544 2545 <div class="apimo-radio-image"> <img src="<?php echo esc_html($apimo_url . 'assets/images/Horizzontal.png'); ?>"> </div> 2546 2547 </label> </div> 2548 2549 </label> 2550 2551 <?php /* <label class="apimo-type-radio"> <div class="apimo-radio-container"> <input type="radio" name="apimo_style_pagina" id="apimo-pagina_style_2" value="pagina_style_2" <?php if ($apimo_style_pagina == 'pagina_style_2') { echo 'checked'; } ?>> <label for="apimo-pagina_style_2"> <p><?php _e("Style 2", 'apimo'); ?></p> <div class="apimo-radio-image"> <img src="<?php echo esc_url($apimo_url . 'assets/images/Vertical.png'); ?>"> </div> </label> </div> </label> */?> </div> 2552 2553 </div> 2554 2555 </div> 2556 2557 <div class="apimo-block-body apimo-section-description"> 2558 2559 <div class="apimo-block-info"> 2560 2561 <p><?php _e('Show Unavailable Services', 'apimo'); ?></p> 2562 2563 </div> 2564 2565 <div class="apimo-section-description"> 2566 2567 <div class="apimo-checkbox-container"> 2568 2569 <div class="box-apimo-checkbox"> <input type="checkbox" name="apimo_show_unavailable_service" value="1" id="apimo_show_unavailable_service" <?php checked($apimo_show_unavailable_service, 1); ?>> <span class="check"></span> <label for="apimo_show_unavailable_service"><?php _e('Show Unavailable Services', 'apimo'); ?></label> </div> 2570 2571 </div> 2572 2573 </div> 2574 2575 </div> 2576 2577 </div> 2578 2579 2197 2580 2198 2581 </div> <!-- Archive Shortcode --> -
apimo/trunk/apimo.php
r2986629 r2986633 7 7 * Description: Manage Real Estat Bussiness 8 8 9 * Version: 2. 19 * Version: 2.5.0 10 10 11 11 * Author: CodeByte Srl … … 190 190 191 191 $archive['gallery_display_slider'] = '1'; 192 $archive['hideicon'] = 'showicon'; 192 193 193 194 update_option('apimo_style_archive', $archive); … … 274 275 275 276 276 277 function apimo_settings_link($links) { 278 $settings_link = '<a href="admin.php?page=apimo">Settings</a>'; 279 array_unshift($links, $settings_link); 280 return $links; 281 } 282 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'apimo_settings_link'); 277 283 278 284 … … 588 594 function apimo_logs_callback() 589 595 590 { 591 596 { 597 global $apimo_dir; 592 598 include $apimo_dir . 'admin/logs.php'; 593 599 -
apimo/trunk/assets/css/admin.css
r2872252 r2986633 1824 1824 1825 1825 } 1826 1827 .apimo_welcome_block{ 1828 background: linear-gradient(92.21deg,#3e39d9 1.38%,#6560f0); /* Linear gradient background with the specified colors */ 1829 color: white; 1830 border: none; 1831 padding: 20px 30px; 1832 display: flex; 1833 justify-content: space-between; 1834 align-items: center; 1835 overflow: hidden; 1836 } 1837 .apimo_welcome_block .apimo_state .apimo_date{ 1838 font-size: 15px; 1839 } 1840 .apimo_welcome_block .apimo_state h4{ 1841 font-size: 25px; 1842 } 1843 .apimo_welcome_block .apimo_state .apimo_user{ 1844 color: #e4e4ed; 1845 } 1846 .apimo_welcome_block .apimo_state .apimo_message{ 1847 1848 } 1849 1850 .apimo_data{ 1851 display: flex; 1852 justify-content: space-between; 1853 align-items: center; 1854 } 1855 .apimo_data .apimo_card{ 1856 padding: 20px 25px; 1857 margin-top: 15px; 1858 background-color: #f2f1f9; 1859 width: 200px; 1860 margin-right: 20px; 1861 border-radius: 5px; 1862 } 1863 .apimo_data .apimo_card h5{ 1864 font-weight: 500; 1865 color: #4c4a68; 1866 text-transform: uppercase; 1867 font-size: 17px!important; 1868 margin: 0; 1869 margin-bottom: 10px; 1870 } 1871 .apimo_data .apimo_card span{ 1872 font-weight: 900; 1873 font-size: 24px!important; 1874 } 1875 .provider{ 1876 color: #6560f0; 1877 } 1878 .agencies{ 1879 color: #ef2929; 1880 } 1881 .properties{ 1882 color: #06b48a; 1883 } 1884 1885 1886 .apimo-agency{ 1887 padding: 10px 20px; 1888 border: 1px solid #dedede; 1889 margin: 5px 0; 1890 margin-left: 130px; 1891 } 1892 1893 1894 .shortcode_icon,.scheduled_icon { 1895 display: flex!important; 1896 justify-content: center!important; 1897 align-items: center!important; 1898 position: fixed; 1899 width: 50px; 1900 height: 50px; 1901 bottom: 40px; 1902 right: 15px; 1903 background: linear-gradient(92.21deg,#3e39d9 1.38%,#6560f0); 1904 color: #FFF; 1905 border-radius: 50px!important; 1906 text-align: center; 1907 font-size: 30px; 1908 box-shadow: 2px 2px 3px #999; 1909 z-index: 100; 1910 cursor: pointer; 1911 border: none!important; 1912 outline: none!important; 1913 } 1914 1915 .shortcode_icon img{ 1916 width: 20px; 1917 } 1918 1919 .scheduled_icon{ 1920 bottom: 100px!important; 1921 background: #000!important; 1922 } 1923 .scheduled_icon img{ 1924 width: 33px; 1925 } 1926 1927 #shortcodes{ 1928 font-family: Arial, Helvetica, sans-serif; 1929 border-collapse: collapse; 1930 width: 100%; 1931 margin-top: 20px; 1932 } 1933 1934 #shortcodes td, #shortcodes th { 1935 border: 1px solid #ddd; 1936 padding: 8px; 1937 } 1938 1939 #shortcodes tr:nth-child(even){background-color: #f2f2f2;} 1940 1941 #shortcodes tr:hover {background-color: #ddd;} 1942 1943 #shortcodes th { 1944 padding-top: 12px; 1945 padding-bottom: 12px; 1946 text-align: left; 1947 background-color: #534ee5; 1948 color: white; 1949 } 1950 1951 .button-danger{ 1952 background-color: red!important; 1953 border: none!important; 1954 outline: none!important; 1955 color: white!important; 1956 } 1957 1958 .highlighted { 1959 color: white!important; 1960 background-color: rgb(38, 165, 83); /* You can choose your desired highlight color */ 1961 transition: background-color 1s; /* Adjust the transition duration as needed */ 1962 } 1963 1964 .btn{ 1965 margin: 10px!important; 1966 } -
apimo/trunk/assets/js/admin.js
r2872252 r2986633 322 322 323 323 jQuery('.apimo_api_responce').html(response); 324 window.location.reload(); 324 325 325 326 }); … … 366 367 367 368 jQuery('.apimo-api-result').html(response); 369 window.location.reload(); 370 368 371 369 372 }); … … 789 792 } 790 793 794 if (jQuery('#shortcode_enable_post_limit').is(':checked')) { 795 796 // str += ' post_limit ="0"'; 797 798 str += ' post_limit="' + jQuery('#filter_post_limit').val() + '"'; 799 // if (!str.includes('no_of_post')) { 800 // console.log('makaynch'); 801 // str+=' no_of_post="-1"'; 802 // } 803 804 805 806 } 807 791 808 if (jQuery('#shortcode_enable_filter').is(':checked')) { 792 809 … … 966 983 967 984 }) 985 986 jQuery(document).on('change', '#shortcode_enable_post_limit', function () { 987 988 var id = jQuery(this).attr('id'); 989 990 if (jQuery(this).is(":checked")) { 991 992 jQuery('[data-id="' + id + '"]').slideDown() 993 994 } else { 995 996 jQuery('[data-id="' + id + '"]').slideUp() 997 998 } 999 1000 }) 1001 1002 // document.addEventListener('DOMContentLoaded', function () { 1003 // // Get the "Save" button element 1004 // const saveButton = document.querySelector('input[name="save"]'); 1005 1006 // // Get the <span> element where you want to display the values 1007 // const valuesSpan = document.getElementById('values'); 1008 1009 // // Add a click event listener to the "Save" button 1010 // saveButton.addEventListener('click', function (event) { 1011 // event.preventDefault(); // Prevent the form from submitting 1012 1013 // // Get references to the form elements 1014 // const titleInput = document.querySelector('input[name="shortcode_title"]'); 1015 // const descriptionTextarea = document.querySelector('textarea[name="shortcode_description"]'); 1016 // const shortcodeInput = document.querySelector('input[name="shortcode"]'); 1017 1018 // // Get the values from the form elements 1019 // const title = titleInput.value; 1020 // const description = descriptionTextarea.value; 1021 // const shortcode = shortcodeInput.value; 1022 1023 // // Display the values in the console 1024 // console.log('Title: ' + title); 1025 // console.log('Description: ' + description); 1026 // console.log('Shortcode: ' + shortcode); 1027 1028 // // Display the values in the <span> element 1029 // valuesSpan.value = 'Title: ' + title + 1030 // ' Description: ' + description + 1031 // ' Shortcode: ' + shortcode; 1032 // }); 1033 // }); 1034 1035 1036 // jQuery(document).on('click', '#save_shortcode', function (e) { 1037 1038 // e.preventDefault(); 1039 // // Prepare data to send 1040 // const data = { 1041 // action: "apimo_save_shortcode", 1042 // email: "[email protected]", 1043 // }; 1044 1045 // // alert(admin_urls.ajax); 1046 1047 // // Make an AJAX POST request 1048 // jQuery.ajax({ 1049 // type: "POST", 1050 // url: admin_urls.ajax, // Replace with your server endpoint URL 1051 // data: JSON.stringify(data), 1052 // contentType: "application/json", 1053 // success: function (response) { 1054 // // Handle the response 1055 // console.log(response); 1056 // } 1057 // }); 1058 1059 // }); 1060 jQuery(document).on('click', '#save_shortcode', function (e) { 1061 e.preventDefault(); 1062 var saveButton = jQuery(this); // Get a reference to the button 1063 saveButton.prop('disabled', true); 1064 1065 var shortcode_title = jQuery("#shortcode_title"); 1066 var shortcode_description = jQuery("#shortcode_description"); 1067 var shortcode = jQuery("#shortcode"); 1068 var data = { 1069 'action': 'apimo_save_shortcode', 1070 'title' : shortcode_title.val(), 1071 'description' : shortcode_description.val(), 1072 'shortcode' : shortcode.val() 1073 } 1074 1075 jQuery.post(admin_urls.ajax, data, function (response) { 1076 console.log(response); 1077 window.location.reload(); 1078 1079 }); 1080 }); 1081 1082 jQuery(document).on('click', '#delete_shortcode', function () { 1083 var button = jQuery(this); 1084 var shortcodeIndex = button.data('id'); 1085 1086 // Confirm with the user before deleting 1087 if (confirm("Are you sure you want to delete this shortcode?")) { 1088 var data = { 1089 'action': 'apimo_delete_shortcode', 1090 'shortcode_index': shortcodeIndex 1091 } 1092 1093 jQuery.post(admin_urls.ajax, data, function (response) { 1094 console.log(response); 1095 window.location.reload(); 1096 }); 1097 } 1098 }); 1099 1100 // jQuery(document).on('click', '#apimo_copy_shortcode', function (e) { 1101 // e.preventDefault(); 1102 // var button = jQuery(this); 1103 // var shortcodeIndex = button.data('id'); 1104 1105 // // Get the shortcode text to copy 1106 // var shortcodeText = jQuery('#shortcode_' + shortcodeIndex).text(); 1107 1108 // // Create a temporary textarea element to hold the text 1109 // var tempTextarea = document.createElement("textarea"); 1110 // tempTextarea.value = shortcodeText; 1111 // document.body.appendChild(tempTextarea); 1112 1113 // // Select and copy the text in the textarea 1114 // tempTextarea.select(); 1115 // document.execCommand("copy"); 1116 1117 // // Remove the temporary textarea 1118 // document.body.removeChild(tempTextarea); 1119 1120 // alert('Shortcode copied to clipboard: ' + shortcodeText); 1121 // }); 1122 1123 1124 1125 jQuery(document).on('click', '#apimo_copy_shortcode', function (e) { 1126 e.preventDefault(); 1127 var button = jQuery(this); 1128 var shortcodeIndex = button.data('id'); 1129 var shortcodeCell = jQuery('#shortcode_' + shortcodeIndex); 1130 1131 // Get the shortcode text to copy 1132 var shortcodeText = shortcodeCell.text(); 1133 1134 // Create a temporary textarea element to hold the text 1135 var tempTextarea = document.createElement("textarea"); 1136 tempTextarea.value = shortcodeText; 1137 document.body.appendChild(tempTextarea); 1138 1139 // Select and copy the text in the textarea 1140 tempTextarea.select(); 1141 document.execCommand("copy"); 1142 1143 // Add the highlight class 1144 shortcodeCell.addClass("highlighted"); 1145 1146 // Remove the temporary textarea 1147 document.body.removeChild(tempTextarea); 1148 1149 // Remove the highlight after a delay 1150 setTimeout(function () { 1151 shortcodeCell.removeClass("highlighted"); 1152 }, 2500); // Highlight for 1 second (adjust the duration as needed) 1153 1154 }); 1155 1156 1157 -
apimo/trunk/assets/js/frontend.js
r2872252 r2986633 1438 1438 1439 1439 var data = JSON.parse(response) 1440 // console.log(data.max_page); 1441 1440 1442 1441 1443 jQuery('.apimo-property-wrapper[data-unique-id="' + unique_id + '"] .apimo-row').html(data.loop_data); … … 1460 1462 1461 1463 1462 1463 1464 1465 1466 1467 1464 }); 1468 1465 -
apimo/trunk/includes/apimo_ajax.php
r2986629 r2986633 54 54 $is_valid = false; 55 55 $message = ''; 56 if ($data->agencies[0]) { 57 $agency_id = $data->agencies[0]->id; 58 $is_valid = true; 59 } 56 foreach ($data->agencies as $_agency) { 57 $key_data[] = array( 58 'key' => $api_key, 59 'company_id' => $company_id, 60 'agency_id' => $_agency->id, 61 'is_valid' => true, 62 'message' => $message 63 ); 64 } 65 66 60 67 } else { 61 68 $is_valid = false; 62 69 $message = $result->get_error_message(); 63 70 } 64 $key_data[] = array(65 'key' => $api_key,66 'company_id' => $company_id,67 'agency_id' => $agency_id,68 'is_valid' => $is_valid,69 'message' => $message70 );71 71 } 72 72 } … … 994 994 die(); 995 995 } 996 997 add_action('wp_ajax_apimo_save_shortcode', 'apimo_save_shortcode'); 998 add_action('wp_ajax_nopriv_apimo_save_shortcode', 'apimo_save_shortcode'); 999 1000 function apimo_save_shortcode() { 1001 // Get the existing shortcode array from the option 1002 $existing_shortcodes = get_option('apimo_shortcodes', array()); 1003 1004 // Calculate the next index 1005 // $next_index = count($existing_shortcodes); 1006 1007 // Add the new shortcode data to the array with the calculated index 1008 1009 $title = sanitize_text_field($_POST['title']); 1010 $description = sanitize_text_field($_POST['description']); 1011 $shortcode = sanitize_text_field($_POST['shortcode']); 1012 1013 $new_shortcode = array( 1014 'Title' => $title, 1015 'Description' => $description, 1016 'Shortcode' => $shortcode, 1017 ); 1018 1019 $existing_shortcodes[uniqid()] = $new_shortcode; 1020 1021 // Update the option with the updated array 1022 1023 update_option('apimo_shortcodes', $existing_shortcodes); 1024 1025 1026 1027 wp_die(); // Terminate the script 1028 } 1029 1030 add_action('wp_ajax_apimo_delete_shortcode', 'apimo_delete_shortcode'); 1031 add_action('wp_ajax_nopriv_apimo_delete_shortcode', 'apimo_delete_shortcode'); 1032 1033 function apimo_delete_shortcode() { 1034 $shortcodeIndex = $_POST['shortcode_index']; 1035 $shortcodes = get_option('apimo_shortcodes', array()); 1036 1037 if (isset($shortcodes[$shortcodeIndex])) { 1038 unset($shortcodes[$shortcodeIndex]); 1039 update_option('apimo_shortcodes', $shortcodes); 1040 1041 echo 'Shortcode deleted successfully.'; 1042 } else { 1043 echo 'Failed to delete the shortcode.'; 1044 } 1045 1046 wp_die(); // Terminate the script 1047 } 1048 1049 1050 -
apimo/trunk/includes/metabox.php
r2986629 r2986633 415 415 <?php 416 416 417 foreach ( UNIT_AREA as $area_id => $name) {417 foreach ($UNIT_AREA as $area_id => $name) { 418 418 419 419 ?> -
apimo/trunk/includes/shortcode.php
r2986629 r2986633 81 81 $no_of_post = 10; 82 82 } 83 84 $post_per_page = ''; 85 86 if(isset($attrs['post_limit'])){ 87 $post_per_page = $attrs['post_limit']; 88 }else{ 89 $post_per_page = $no_of_post; 90 } 91 83 92 $args = array( 84 93 'post_type' => 'property', 85 'posts_per_page' => $ no_of_post,94 'posts_per_page' => $post_per_page, 86 95 ); 96 87 97 88 98 … … 899 909 900 910 </div> 901 902 <section class="apimo-filters apimo-archive-filters" data-unique-id="<?php echo esc_attr($apimo_data_id); ?>"> 911 <?php 912 $filter_none = ''; 913 if(isset($attrs['post_limit'])){ 914 $filter_none = "style='display:none!important'"; 915 } 916 917 ?> 918 <section <?php echo $filter_none ?> class="apimo-filters apimo-archive-filters" data-unique-id="<?php echo esc_attr($apimo_data_id); ?>"> 903 919 904 920 <div class="apimo-filter-wrapper"> … … 990 1006 <span class="text"> 991 1007 992 <?php echo _e(' subtype', 'apimo'); ?>1008 <?php echo _e('Subtype', 'apimo'); ?> 993 1009 994 1010 </span> … … 1014 1030 <label class="apimo-archive-filter"> 1015 1031 1016 <?php _e(' subtype', 'apimo') ?>1032 <?php _e('Subtype', 'apimo') ?> 1017 1033 1018 1034 </label> … … 1020 1036 <select name="apimo_subtype_filter" data-id="apimo_subtype_filter" data-unique-id="<?php echo esc_attr($apimo_data_id); ?>" class="apimo_input apimo_filter_input apimo_input_select"> 1021 1037 1022 <option value=""><?php _e('Select subtype', 'apimo') ?></option>1038 <option value=""><?php _e('Select Subtype', 'apimo') ?></option> 1023 1039 1024 1040 <?php $terms_country = $terms = get_terms(array( … … 2750 2766 <div class="loader blasting-ripple apimo-loader" data-unique-id="<?php echo esc_attr($apimo_data_id); ?>"></div> 2751 2767 2752 <div data-unique-id="<?php echo esc_attr($apimo_data_id); ?>" class="Product-wrapper Grid-wrapper apimo-property-wrapper <?php if ($attrs['grid'] == 'horizontal') { 2753 2754 echo ' landscape-type'; 2755 2756 } ?>" data-type="shortcode" data-category_filter="<?php echo esc_attr($attrs['category_filter']) ?>" data-subtype_filter="<?php echo esc_attr($attrs['subtype_filter']) ?>" data-country="<?php echo esc_attr($attrs['country']) ?>" data-region="<?php echo esc_attr($attrs['region']) ?>" data-city="<?php echo esc_attr($attrs['city']) ?>" data-price_range_min="<?php echo esc_attr($attrs['price_range_min']) ?>" data-price_range_max="<?php echo esc_attr($attrs['price_range_max']) ?>" data-property_areas_min="<?php echo esc_attr($attrs['property_areas_min']) ?>" data-property_areas_max="<?php echo esc_attr($attrs['property_areas_max']) ?>" data-number_of_rooms="<?php echo esc_attr($attrs['number_of_rooms']) ?>" data-number_of_bedrooms="<?php echo esc_attr($attrs['number_of_bedrooms']) ?>" data-date_filter_type="<?php echo esc_attr($attrs['date_filter_type']) ?>" data-start_date="<?php echo esc_attr($attrs['start_date']) ?>" data-end_date="<?php echo esc_attr($attrs['end_date']) ?>" data-advance_area="<?php echo esc_attr($attrs['advance_area']) ?>" data-advance_service="<?php echo esc_attr($attrs['advance_service']) ?>" data-tax_apimo_property_standing="<?php echo esc_attr($attrs['tax_apimo_property_standing']) ?>" data-tax_apimo_property_condition="<?php echo esc_attr($attrs['tax_apimo_property_condition']) ?>" data-tax_apimo_heating_access="<?php echo esc_attr($attrs['tax_apimo_heating_access']) ?>" data-meta_apimo_bedrooms="<?php echo esc_attr($attrs['meta_apimo_bedrooms']) ?>" data-meta_apimo_construction_year="<?php echo esc_attr($attrs['meta_apimo_construction_year']) ?>" data-meta_apimo_renovation_year="<?php echo esc_attr($attrs['meta_apimo_renovation_year']) ?>" data-meta_apimo_residence_fees="<?php echo esc_attr($attrs['meta_apimo_residence_fees']) ?>" data-repository_tags="<?php echo esc_attr($attrs['repository_tags']) ?>" data-customised_tags="<?php echo esc_attr($attrs['customised_tags']) ?>" data-desktop="<?php echo esc_attr($attrs['desktop']) ?>" data-tablet="<?php echo esc_attr($attrs['tablet']) ?>" data-mobile="<?php echo esc_attr($attrs['mobile']) ?>"> 2757 2758 2759 2760 2761 2762 <div class="<?php if ($attrs['view'] == 'carousel') { 2763 2764 echo 'apimo_slick_slider'; 2765 2766 } else { 2767 2768 echo 'apimo-row'; 2769 2770 } ?>" data-slide-to-desktop="<?php echo esc_attr($attrs['desktop']); ?>" data-slide-to-mobile="<?php echo esc_attr($attrs['mobile']); ?>" data-slide-to-tablate="<?php echo esc_attr($attrs['tablate']); ?>" data_id="<?php echo esc_attr($shortcode_id); ?>"> 2768 <div 2769 data-unique-id="<?php echo esc_attr($apimo_data_id); ?>" 2770 class="Product-wrapper Grid-wrapper apimo-property-wrapper <?php if ($attrs['grid'] == 'horizontal') {echo ' landscape-type';} ?>" 2771 data-type="shortcode" 2772 data-category_filter="<?php echo isset($attrs['category_filter']) ? esc_attr($attrs['category_filter']) : ''; ?>" 2773 data-subtype_filter="<?php echo isset($attrs['subtype_filter']) ? esc_attr($attrs['subtype_filter']) : ''; ?>" 2774 data-country="<?php echo isset($attrs['country']) ? esc_attr($attrs['country']) : ''; ?>" 2775 data-region="<?php echo isset($attrs['region']) ? esc_attr($attrs['region']) : ''; ?>" 2776 data-city="<?php echo isset($attrs['city']) ? esc_attr($attrs['city']) : ''; ?>" 2777 data-price_range_min="<?php echo isset($attrs['price_range_min']) ? esc_attr($attrs['price_range_min']) : ''; ?>" 2778 data-price_range_max="<?php echo isset($attrs['price_range_max']) ? esc_attr($attrs['price_range_max']) : ''; ?>" 2779 data-property_areas_min="<?php echo isset($attrs['property_areas_min']) ? esc_attr($attrs['property_areas_min']) : ''; ?>" 2780 data-property_areas_max="<?php echo isset($attrs['property_areas_max']) ? esc_attr($attrs['property_areas_max']) : ''; ?>" 2781 data-number_of_rooms="<?php echo isset($attrs['number_of_rooms']) ? esc_attr($attrs['number_of_rooms']) : ''; ?>" 2782 data-number_of_bedrooms="<?php echo isset($attrs['number_of_bedrooms']) ? esc_attr($attrs['number_of_bedrooms']) : ''; ?>" 2783 data-date_filter_type="<?php echo isset($attrs['date_filter_type']) ? esc_attr($attrs['date_filter_type']) : ''; ?>" 2784 data-start_date="<?php echo isset($attrs['start_date']) ? esc_attr($attrs['start_date']) : ''; ?>" 2785 data-end_date="<?php echo isset($attrs['end_date']) ? esc_attr($attrs['end_date']) : ''; ?>" 2786 data-advance_area="<?php echo isset($attrs['advance_area']) ? esc_attr($attrs['advance_area']) : ''; ?>" 2787 data-advance_service="<?php echo isset($attrs['advance_service']) ? esc_attr($attrs['advance_service']) : ''; ?>" 2788 data-tax_apimo_property_standing="<?php echo isset($attrs['tax_apimo_property_standing']) ? esc_attr($attrs['tax_apimo_property_standing']) : ''; ?>" 2789 data-tax_apimo_property_condition="<?php echo isset($attrs['tax_apimo_property_condition']) ? esc_attr($attrs['tax_apimo_property_condition']) : ''; ?>" 2790 data-tax_apimo_heating_access="<?php echo isset($attrs['tax_apimo_heating_access']) ? esc_attr($attrs['tax_apimo_heating_access']) : ''; ?>" 2791 data-meta_apimo_bedrooms="<?php echo isset($attrs['meta_apimo_bedrooms']) ? esc_attr($attrs['meta_apimo_bedrooms']) : ''; ?>" 2792 data-meta_apimo_construction_year="<?php echo isset($attrs['meta_apimo_construction_year']) ? esc_attr($attrs['meta_apimo_construction_year']) : ''; ?>" 2793 data-meta_apimo_renovation_year="<?php echo isset($attrs['meta_apimo_renovation_year']) ? esc_attr($attrs['meta_apimo_renovation_year']) : ''; ?>" 2794 data-meta_apimo_residence_fees="<?php echo isset($attrs['meta_apimo_residence_fees']) ? esc_attr($attrs['meta_apimo_residence_fees']) : ''; ?>" 2795 data-repository_tags="<?php echo isset($attrs['repository_tags']) ? esc_attr($attrs['repository_tags']) : ''; ?>" 2796 data-customised_tags="<?php echo isset($attrs['customised_tags']) ? esc_attr($attrs['customised_tags']) : ''; ?>" 2797 data-desktop="<?php echo esc_attr($attrs['desktop']) ?>" 2798 data-tablet="<?php echo esc_attr($attrs['tablet']) ?>" 2799 data-mobile="<?php echo esc_attr($attrs['mobile']) ?>"> 2800 2801 2802 2803 2804 <?php #print_r($attrs);die(); ?> 2805 2806 <div 2807 class="<?php if ($attrs['view'] == 'carousel') { echo 'apimo_slick_slider';} else { echo 'apimo-row';} ?>" 2808 data-slide-to-desktop="<?php echo isset($attrs['desktop']) ? esc_attr($attrs['desktop']) : ''; ?>" 2809 data-slide-to-mobile="<?php echo isset($attrs['mobile']) ? esc_attr($attrs['mobile']) : ''; ?>" 2810 data-slide-to-tablate="<?php echo isset($attrs['tablet']) ? esc_attr($attrs['tablet']) : ''; ?>" 2811 data_id="<?php echo esc_attr($shortcode_id); ?>"> 2771 2812 2772 2813 <?php … … 2857 2898 2858 2899 </div> 2859 2860 <?php if ($attrs['no_of_post'] != '') : ?> 2861 2862 2863 2864 2865 2866 <div class="apimo-archive-pagination-div" data-type="shortcode" data-unique-id="<?php echo esc_attr($apimo_data_id); ?>" data-max-page="<?php echo esc_attr($apimo_query->max_num_pages); ?>" data-post-per-page="<?php echo esc_attr($attrs['no_of_post']); ?>" data-current-page="1"> 2867 2868 <?php endif; ?> 2900 <?php if (isset($attrs['no_of_post']) && $attrs['no_of_post'] !== '' && $attrs['no_of_post'] != -1) : ?> 2901 2902 <div <?php if (isset($attrs['post_limit'])) {echo 'style="display:none;"';} ?> 2903 class="apimo-archive-pagination-div" 2904 data-type="shortcode" 2905 data-unique-id="<?php echo esc_attr($apimo_data_id); ?>" 2906 data-max-page="<?php echo esc_attr($apimo_query->max_num_pages); ?>" 2907 data-post-per-page="<?php echo esc_attr($attrs['no_of_post']); ?>" 2908 data-current-page="1"> 2909 </div> 2910 <?php endif; ?> 2911 2912 2869 2913 2870 2914 -
apimo/trunk/languages/apimo-de_DE.po
r2986629 r2986633 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2022-01-28 17:20+0000\n" 6 "PO-Revision-Date: 202 2-04-25 08:08+0000\n"6 "PO-Revision-Date: 2023-10-04 12:14+0100\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: German\n" 9 9 "Language: de_DE\n" 10 "Plural-Forms: nplurals=2; plural=n != 1;\n"11 10 "MIME-Version: 1.0\n" 12 11 "Content-Type: text/plain; charset=UTF-8\n" 13 12 "Content-Transfer-Encoding: 8bit\n" 14 "X-Generator: Loco https://localise.biz/\n" 13 "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 "X-Generator: Poedit 3.4\n" 15 15 "X-Loco-Version: 2.5.8; wp-5.9\n" 16 "X-Domain: apimo "16 "X-Domain: apimo\n" 17 17 18 18 #: includes/posttype_and_taxonomy.php:1097 … … 1487 1487 #: templates/single_property_style_1.php:566 1488 1488 msgid "Energy performance" 1489 msgstr " "1489 msgstr "Energieleistung" 1490 1490 1491 1491 #: includes/posttype_and_taxonomy.php:759 … … 1685 1685 #: includes/posttype_and_taxonomy.php:259 1686 1686 msgid "Floor" 1687 msgstr " "1687 msgstr "Boden" 1688 1688 1689 1689 #: includes/posttype_and_taxonomy.php:268 1690 1690 msgid "Floors" 1691 msgstr "" 1692 1693 #: templates/single_property_style_1.php:359 1694 msgid "Flor" 1695 msgstr "" 1691 msgstr "Fußböden" 1696 1692 1697 1693 #: includes/posttype_and_taxonomy.php:812 … … 2798 2794 #: templates/template_archive_block.php:711 2799 2795 msgid "Private Negotiation" 2800 msgstr " "2796 msgstr "Private Verhandlung" 2801 2797 2802 2798 #: templates/single_property_style_1.php:155 2803 2799 msgid "Private negotiation" 2804 msgstr " "2800 msgstr "Private verhandlung" 2805 2801 2806 2802 #: includes/posttype_and_taxonomy.php:1490 … … 3198 3194 msgid "Serviced apartment" 3199 3195 msgstr "Betreute Wohnung" 3196 3197 #: templates/single_property_style_1.php:634 3198 msgid "Energy class" 3199 msgstr "Energieklasse" 3200 3200 3201 3201 #: templates/single_property_style_1.php:712 -
apimo/trunk/languages/apimo-en_GB.po
r2986629 r2986633 3138 3138 msgstr "" 3139 3139 3140 #: templates/single_property_style_1.php:634 3141 msgid "Energy class" 3142 msgstr "" 3143 3140 3144 #: templates/single_property_style_1.php:617 3141 3145 msgid "Services" -
apimo/trunk/languages/apimo-es_ES.po
r2986629 r2986633 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2022-01-28 17:20+0000\n" 6 "PO-Revision-Date: 202 2-04-25 08:08+0000\n"6 "PO-Revision-Date: 2023-10-04 12:15+0100\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: Spanish (Spain)\n" 9 9 "Language: es_ES\n" 10 "Plural-Forms: nplurals=2; plural=n != 1;\n"11 10 "MIME-Version: 1.0\n" 12 11 "Content-Type: text/plain; charset=UTF-8\n" 13 12 "Content-Transfer-Encoding: 8bit\n" 14 "X-Generator: Loco https://localise.biz/\n" 13 "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 "X-Generator: Poedit 3.4\n" 15 15 "X-Loco-Version: 2.5.8; wp-5.9\n" 16 "X-Domain: apimo "16 "X-Domain: apimo\n" 17 17 18 18 #: includes/posttype_and_taxonomy.php:1097 … … 1487 1487 #: templates/single_property_style_1.php:566 1488 1488 msgid "Energy performance" 1489 msgstr " "1489 msgstr "Rendimiento energético" 1490 1490 1491 1491 #: includes/posttype_and_taxonomy.php:759 … … 1685 1685 #: includes/posttype_and_taxonomy.php:259 1686 1686 msgid "Floor" 1687 msgstr " "1687 msgstr "Suelo" 1688 1688 1689 1689 #: includes/posttype_and_taxonomy.php:268 1690 1690 msgid "Floors" 1691 msgstr "" 1692 1693 #: templates/single_property_style_1.php:359 1694 msgid "Flor" 1695 msgstr "" 1691 msgstr "Suelos" 1696 1692 1697 1693 #: includes/posttype_and_taxonomy.php:812 … … 2798 2794 #: templates/template_archive_block.php:711 2799 2795 msgid "Private Negotiation" 2800 msgstr " "2796 msgstr "Negociación privada" 2801 2797 2802 2798 #: templates/single_property_style_1.php:155 2803 2799 msgid "Private negotiation" 2804 msgstr " "2800 msgstr "Negociación privada" 2805 2801 2806 2802 #: includes/posttype_and_taxonomy.php:1490 … … 3200 3196 msgid "Serviced apartment" 3201 3197 msgstr "" 3198 3199 #: templates/single_property_style_1.php:634 3200 msgid "Energy class" 3201 msgstr "Clase de energía" 3202 3202 3203 3203 #: templates/single_property_style_1.php:712 -
apimo/trunk/languages/apimo-fr_FR.po
r2986629 r2986633 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2022-01-28 17:20+0000\n" 6 "PO-Revision-Date: 202 2-07-01 16:05+0200\n"6 "PO-Revision-Date: 2023-10-18 09:52+0100\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: French (France)\n" … … 12 12 "Content-Transfer-Encoding: 8bit\n" 13 13 "Plural-Forms: nplurals=2; plural=n > 1;\n" 14 "X-Generator: Poedit 3. 1\n"14 "X-Generator: Poedit 3.4\n" 15 15 "X-Loco-Version: 2.5.8; wp-5.9\n" 16 16 "X-Domain: apimo\n" … … 839 839 #: templates/single_property_style_1.php:387 840 840 msgid "Bath" 841 msgstr " Bains"841 msgstr "Salles de bains" 842 842 843 843 #: includes/posttype_and_taxonomy.php:616 … … 1139 1139 #: templates/single_property_style_1.php:323 1140 1140 msgid "Conditions" 1141 msgstr " Condizioni"1141 msgstr "Etat" 1142 1142 1143 1143 #: includes/posttype_and_taxonomy.php:980 … … 1165 1165 #: templates/single_property_style_1.php:316 1166 1166 msgid "Construction year" 1167 msgstr "Ann o di costruzione"1167 msgstr "Année de construction" 1168 1168 1169 1169 #: includes/posttype_and_taxonomy.php:1203 … … 1691 1691 msgstr "Étages" 1692 1692 1693 #: templates/single_property_style_1.php:3591694 msgid "Flor"1695 msgstr "Étage"1696 1697 1693 #: includes/posttype_and_taxonomy.php:812 1698 1694 msgid "Flyboard" … … 1729 1725 #: includes/posttype_and_taxonomy.php:875 1730 1726 msgid "Free" 1731 msgstr "Lib ero"1727 msgstr "Libre" 1732 1728 1733 1729 #: includes/posttype_and_taxonomy.php:839 … … 2159 2155 #: apimo.php:291 2160 2156 msgid "Logs" 2161 msgstr " Troncs d’arbre"2157 msgstr "Les Journaux" 2162 2158 2163 2159 #: includes/metabox.php:119 … … 2802 2798 #: templates/single_property_style_1.php:155 2803 2799 msgid "Private negotiation" 2804 msgstr " "2800 msgstr "Prix sur demande" 2805 2801 2806 2802 #: includes/posttype_and_taxonomy.php:1490 … … 2831 2827 #: templates/single_property_style_1.php:339 2832 2828 msgid "Property standing" 2833 msgstr "Classe dell'immobile"2829 msgstr "Classe" 2834 2830 2835 2831 #: templates/archive-property.php:1350 … … 2993 2989 #: templates/template_archive_block.php:485 templates/archive-property.php:610 2994 2990 msgid "Rooms" 2995 msgstr " Locaux"2991 msgstr "Pièces" 2996 2992 2997 2993 #: includes/posttype_and_taxonomy.php:1003 … … 3200 3196 msgid "Serviced apartment" 3201 3197 msgstr "Appart'hôtel" 3198 3199 #: templates/single_property_style_1.php:634 3200 msgid "Energy class" 3201 msgstr "Classe énergétique" 3202 3202 3203 3203 #: templates/single_property_style_1.php:712 -
apimo/trunk/languages/apimo-it_IT.po
r2986629 r2986633 1691 1691 msgstr "Piani" 1692 1692 1693 #: templates/single_property_style_1.php:3591694 msgid "Flor"1695 msgstr "Piano"1696 1697 1693 #: includes/posttype_and_taxonomy.php:812 1698 1694 msgid "Flyboard" … … 2802 2798 #: templates/single_property_style_1.php:155 2803 2799 msgid "Private negotiation" 2804 msgstr " "2800 msgstr "Trattativa riservata" 2805 2801 2806 2802 #: includes/posttype_and_taxonomy.php:1490 … … 3198 3194 msgid "Serviced apartment" 3199 3195 msgstr "Residence" 3196 3197 #: templates/single_property_style_1.php:634 3198 msgid "Energy class" 3199 msgstr "Classe energetica" 3200 3200 3201 3201 #: templates/single_property_style_1.php:712 -
apimo/trunk/languages/apimo-ru_RU.po
r2986629 r2986633 1712 1712 #: includes/posttype_and_taxonomy.php:259 1713 1713 msgid "Floor" 1714 msgstr " "1714 msgstr "пол" 1715 1715 1716 1716 #: includes/posttype_and_taxonomy.php:268 1717 1717 msgid "Floors" 1718 msgstr "" 1719 1720 #: templates/single_property_style_1.php:326 1721 msgid "Flor" 1722 msgstr "" 1718 msgstr "полы" 1723 1719 1724 1720 #: includes/posttype_and_taxonomy.php:812 … … 2836 2832 #: templates/template_archive_block.php:184 2837 2833 msgid "Private Negotiation" 2838 msgstr " "2834 msgstr "Частные переговоры" 2839 2835 2840 2836 #: templates/single_property_style_1.php:137 2841 2837 msgid "Private negotiation" 2842 msgstr " "2838 msgstr "Частные переговоры" 2843 2839 2844 2840 #: includes/posttype_and_taxonomy.php:1490 … … 3263 3259 msgid "Serviced apartment" 3264 3260 msgstr "Апартаменты" 3261 3262 #: templates/single_property_style_1.php:634 3263 msgid "Energy class" 3264 msgstr "Класс энергопотребления" 3265 3265 3266 3266 #: templates/single_property_style_1.php:617 -
apimo/trunk/languages/apimo.pot
r2986629 r2986633 1692 1692 msgstr "" 1693 1693 1694 #: templates/single_property_style_1.php:3591695 msgid "Flor"1696 msgstr ""1697 1698 1694 #: includes/posttype_and_taxonomy.php:812 1699 1695 msgid "Flyboard" -
apimo/trunk/readme.txt
r2986629 r2986633 1 === Official apimo connector ===1 === Apimo connector === 2 2 Contributors: 3 3 Tags: real estate, property management, listings, clients, leads, showings, open houses, reports 4 Tested up to: 6. 1.15 Stable tag: 2. 14 Tested up to: 6.3.1 5 Stable tag: 2.5.0 6 6 License: GPLv2 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
apimo/trunk/templates/single-property.php
r2986629 r2986633 12 12 13 13 while(have_posts()){ 14 14 // die("hello world"); 15 15 the_post(); 16 16 … … 21 21 $metas = get_post_meta($post->ID); 22 22 23 23 // print_r($metas['apimo_template_type'][0]);die(); 24 24 25 25 $style = isset($metas['apimo_template_type'][0]) ? $metas['apimo_template_type'][0] : $single_settings; 26 26 27 $style = $metas['apimo_template_type'][0]?$metas['apimo_template_type'][0]:$single_settings;28 27 29 30 28 29 // die($style); 31 30 32 31 -
apimo/trunk/templates/single_property_style_1.php
r2986629 r2986633 20 20 // } else { 21 21 // $city_term = wp_get_post_terms(get_the_ID(), 'city'); 22 $city = $city_term[0]->name; 23 24 $zip_code = get_term_meta($city_term[0]->term_id, 'zip_code', true); 25 26 $city = $city . ' - ' . $zip_code; 22 $city = $zip_code = ''; 23 if (!empty($city_term)) { 24 $city = $city_term[0]->name; 25 $zip_code = get_term_meta($city_term[0]->term_id, 'zip_code', true); 26 $city = $city . ' - ' . $zip_code; 27 } 28 29 // die('aminechakker'.get_the_ID()); 30 // $city = $city_term[0]->name; 31 32 // $zip_code = get_term_meta($city_term[0]->term_id, 'zip_code', true); 33 34 // $city = $city . ' - ' . $zip_code; 27 35 // } 28 $type = wp_get_post_terms(get_the_ID(), 'apimo_type')[0]->name; 29 $subtype = wp_get_post_terms(get_the_ID(), 'apimo_subtype')[0]->name; 30 $flor = wp_get_post_terms(get_the_ID(), 'apimo_floor')[0]->name; 31 $condition = wp_get_post_terms(get_the_ID(), 'apimo_property_condition')[0]->name; 36 ##############33 37 // $type = wp_get_post_terms(get_the_ID(), 'apimo_type')[0]->name; 38 // $subtype = wp_get_post_terms(get_the_ID(), 'apimo_subtype')[0]->name; 39 // // $flor = wp_get_post_terms(get_the_ID(), 'apimo_floor')[0]->name; 40 41 // $terms = wp_get_post_terms(get_the_ID(), 'apimo_floor'); 42 43 // if (!empty($terms)) { 44 // $flor = $terms[0]->name; 45 // } 46 47 48 // $condition = wp_get_post_terms(get_the_ID(), 'apimo_property_condition')[0]->name; 49 // $construction_years = get_post_meta(get_the_ID(), 'apimo_construction_year', true); 50 $apimo_archive_settings = get_option('apimo_style_archive'); 51 // $external_areas = wp_get_post_terms(get_the_ID(), 'apimo_areas'); 52 $type = $subtype = $flor = $condition = $construction_years = ''; 53 $external_areas = []; 54 55 $type_terms = wp_get_post_terms(get_the_ID(), 'apimo_type'); 56 $subtype_terms = wp_get_post_terms(get_the_ID(), 'apimo_subtype'); 57 $condition_terms = wp_get_post_terms(get_the_ID(), 'apimo_property_condition'); 32 58 $construction_years = get_post_meta(get_the_ID(), 'apimo_construction_year', true); 33 $apimo_archive_settings = get_option('apimo_style_archive');34 59 $external_areas = wp_get_post_terms(get_the_ID(), 'apimo_areas'); 60 $floor_terms = wp_get_post_terms(get_the_ID(), 'apimo_floor'); 61 62 if (!empty($type_terms)) { 63 $type = $type_terms[0]->name; 64 } 65 66 if (!empty($subtype_terms)) { 67 $subtype = $subtype_terms[0]->name; 68 } 69 70 if (!empty($condition_terms)) { 71 $condition = $condition_terms[0]->name; 72 } 73 74 if (!empty($floor_terms)) { 75 $flor = $floor_terms[0]->name; 76 } 35 77 36 78 foreach ($external_areas as $key => $external_areas_val) { … … 78 120 <div class="apimo-propery-images apimo-display"> 79 121 <div class="apimo-image"> 80 <img src="<?php echo esc_url($thumbnail); ?>" class="single-apimo-img" alt=""> 122 <?php 123 124 if($thumbnail == ""){ 125 $src = plugin_dir_url(dirname(__FILE__)) . 'assets/images/noimage.png'; 126 }else{ 127 $src = $thumbnail; 128 } 129 130 ?> 131 <img src="<?php echo esc_url($src); ?>" class="single-apimo-img" alt=""> 81 132 </div> 82 133 <?php … … 392 443 393 444 <dl class="row"> 394 <dt class="term"><?php _e('Areas' ); ?>:</dt>445 <dt class="term"><?php _e('Areas','apimo'); ?>:</dt> 395 446 <dd class="description"> 396 447 <?php if ($metas['apimo_area_display_filter'][0]) { … … 406 457 <?php if ($flor) : ?> 407 458 <dl class="row"> 408 <dt class="term"><?php _e('Flo r','apimo'); ?>:</dt>459 <dt class="term"><?php _e('Floor','apimo'); ?>:</dt> 409 460 <dd class="description"><?php echo esc_html($flor); ?></dd> 410 461 </dl> … … 413 464 414 465 <dl class="row"> 415 <dt class="term"><?php _e('Price' ); ?>:</dt>466 <dt class="term"><?php _e('Price','apimo'); ?>:</dt> 416 467 <dd class="description"> 417 468 <?php if ($metas['apimo_price_hide'][0]) : ?> 418 <?php _e(' Trattativa riservata'); ?>469 <?php _e('Private negotiation','apimo'); ?> 419 470 <?php else : ?> 420 471 <?php if ($metas['apimo_price'][0]) { … … 514 565 515 566 $unserialized_data = maybe_unserialize($metas['apimo_regulations'][0]); 567 // print_r($unserialized_data);die(); 568 global $regulation_type; 516 569 if (is_array($unserialized_data)) { 517 570 foreach ($unserialized_data as $regulations) { 571 // global $regulation_type; 572 // echo $regulations->value . "<br>"; 518 573 if ($regulations->type == 13) { 519 574 $regulation_type = $regulations->value; 520 575 } 576 577 // $regulation_type = $regulations->value; 521 578 } 522 579 } 580 581 523 582 ?> 524 583 <div class="Pro-info"> 525 <h5 class="Pro-info-title"><?php _e(' Prestazione energetica', 'apimo'); ?></h5>584 <h5 class="Pro-info-title"><?php _e('Energy performance', 'apimo'); ?></h5> 526 585 <div class="detail-section__content"> 527 586 <div class="energy-class"> … … 573 632 <div class="apimo-col-12 apimo-col-lg-4"> 574 633 <div class="energy-box-color"> 575 <div class="energy-class__title"><h3><?php _e(' Classe energetica');?></h3></div>634 <div class="energy-class__title"><h3><?php _e('Energy class','apimo');?></h3></div> 576 635 <div class="energy-class__big"> 577 636 <!--G--> … … 588 647 } 589 648 } ?> 590 } 591 649 592 650 </div> 593 651 <div class="energy-box-info"> -
apimo/trunk/templates/template_archive_block.php
r2986629 r2986633 28 28 $external_areas = wp_get_post_terms(get_the_ID(), 'apimo_areas'); 29 29 30 $subtype = wp_get_post_terms(get_the_ID(), 'apimo_subtype')[0]->name; 30 $subtype = ""; 31 32 $subtypes = wp_get_post_terms(get_the_ID(), 'apimo_subtype'); 33 34 if(isset($subtypes[0])){ 35 $subtype = $subtypes[0]->name; 36 } 31 37 32 38 $apimo_archive_settings = get_option('apimo_style_archive'); … … 70 76 71 77 72 <img src="<?php echo esc_url($thumbnail); ?>" class="single-apimo-img" alt=" ">78 <img src="<?php echo esc_url($thumbnail); ?>" class="single-apimo-img" alt="ccc"> 73 79 74 80 … … 121 127 122 128 <div class="apimo-image-slide-wrapper"> 123 124 <img src="<?php echo esc_url($thumbnail); ?>" class="single-apimo-img" alt=""> 129 <?php 130 131 if($thumbnail == ""){ 132 $src = plugin_dir_url(dirname(__FILE__)) . 'assets/images/noimage.png'; 133 }else{ 134 $src = $thumbnail; 135 } 136 137 ?> 138 <img src="<?php echo esc_url($src); ?>" class="single-apimo-img" alt=""> 125 139 126 140 </div>
Note: See TracChangeset
for help on using the changeset viewer.