| @@ -146,20 +146,61 @@ | ||
| 146 | 146 | 'field_type' => 'CHECKBOX', |
| 147 | 147 | 'rules' => '', |
| 148 | 148 | ), |
| 149 | 149 | array( |
| 150 | + 'field' => 'wdk_mobile_bottom_show_menu_disable', | |
| 151 | + 'field_label' => __('Mobile bottom navbar, hide menu button', 'wpdirectorykit'), | |
| 152 | + 'hint' => __('Menu button only works, when using menu from ElementInvader addons plugins', 'wpdirectorykit'), | |
| 153 | + 'field_type' => 'CHECKBOX', | |
| 154 | + 'rules' => '', | |
| 155 | + ), | |
| 156 | + array( | |
| 150 | 157 | 'field' => 'wdk_field_search_suggestion_disable', |
| 151 | 158 | 'field_label' => __('Smart Search Suggestion Disable', 'wpdirectorykit'), |
| 152 | 159 | 'field_type' => 'CHECKBOX', |
| 153 | 160 | 'rules' => '', |
| 154 | 161 | ), |
| 162 | + | |
| 163 | + array( | |
| 164 | + 'field' => 'wdk_disable_custom_muber_format', | |
| 165 | + 'field_label' => __('Remove images from media when listing is removed', 'wpdirectorykit'), | |
| 166 | + 'hint' => __('Disable the custom number format and use the default WordPress number formatting.', 'wpdirectorykit'), | |
| 167 | + 'field_type' => 'CHECKBOX', | |
| 168 | + 'rules' => '', | |
| 169 | + ), | |
| 170 | + array( | |
| 171 | + 'field' => 'wdk_disable_outline_on_focus', | |
| 172 | + 'field_label' => __('Disable outline on focus', 'wpdirectorykit'), | |
| 173 | + 'hint' => __('Removes the outline style from form elements when they are focused.', 'wpdirectorykit'), | |
| 174 | + 'field_type' => 'CHECKBOX', | |
| 175 | + 'rules' => '', | |
| 176 | + ), | |
| 177 | + | |
| 155 | 178 | ); |
| 156 | 179 | |
| 180 | + $this->fields_list_tabs['templates'] [] = array( | |
| 181 | + 'field' => 'wdk_multilingual_float_language_picker', | |
| 182 | + 'field_label' => __('Float Language Picker', 'wpdirectorykit'), | |
| 183 | + 'field_type' => 'CHECKBOX', | |
| 184 | + /* translators: 1: Tag with link open, 2: close link tag. */ | |
| 185 | + 'hint' => wdk_sprintf(__('Multilingual float language picker required %1$s WDK Multilingual addon%2$s','wpdirectorykit'),'<a target="_blank" href="https://wpdirectorykit.com/plugins.html">','</a>'), | |
| 186 | + 'rules' => '', | |
| 187 | + ); | |
| 188 | + | |
| 157 | 189 | /* Fields */ |
| 158 | 190 | $this->fields_list_tabs['fields'] = array( |
| 159 | 191 | array('field' => 'wdk_seo_keywords', 'field_label' => __('SEO Listing Page Keywords', 'wpdirectorykit'), 'hint' => __('Set field for meta tag keywords', 'wpdirectorykit'), 'field_type' => 'DROPDOWN', 'values' => $fields_list, 'rules' => ''), |
| 160 | 192 | array('field' => 'wdk_seo_description', 'field_label' => __('SEO Listing Page Description', 'wpdirectorykit'), 'hint' => __('Set field for meta tag description', 'wpdirectorykit'), 'field_type' => 'DROPDOWN', 'values' => $fields_list, 'rules' => ''), |
| 161 | 193 | |
| 194 | + array( | |
| 195 | + 'field' => 'wdk_seo_listing_title', | |
| 196 | + 'field_label' => __('SEO Title', 'wpdirectorykit'), | |
| 197 | + 'field_type' => 'SEO_INPUTBOX', | |
| 198 | + /* translators: 1: Example field title placeholders. */ | |
| 199 | + 'hint' => wdk_sprintf(__('Example: %1$s', 'wpdirectorykit'), '{field_title} - {field_location} - {field_33}'), | |
| 200 | + 'rules' => '', | |
| 201 | + ), | |
| 202 | + | |
| 162 | 203 | array( |
| 163 | 204 | 'field' => 'wdk_multi_locations_search_field_type', |
| 164 | 205 | 'field_label' => __('Location field Search', 'wpdirectorykit'), |
| 165 | 206 | 'field_type' => 'RADIO', |
| @@ -230,15 +271,21 @@ | ||
| 230 | 271 | |
| 231 | 272 | |
| 232 | 273 | array('field' => 'wdk_is_category_enabled', 'field_label' => __('Enable Categories', 'wpdirectorykit'), 'hint' => __('If you don\'t need categories features you can disable that here', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), |
| 233 | 274 | array('field' => 'wdk_is_location_enabled', 'field_label' => __('Enable Locations', 'wpdirectorykit'), 'hint' => __('If you don\'t need location features you can disable that here', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => '', 'class' => ''), |
| 234 | - array('field' => 'wdk_is_address_enabled', 'field_label' => __('Enable Address', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 235 | - array('field' => 'wdk_is_featured_enabled', 'field_label' => __('Enable Field and Feature Featured Listing', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 236 | - array('field' => 'wdk_is_rank_enabled', 'field_label' => __('Enable Field and Feature Rank Listing', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 237 | - array('field' => 'wdk_is_user_editor_enabled', 'field_label' => __('Enable Field and Feature Agent Listing', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 238 | - array('field' => 'wdk_is_post_content_enable', 'field_label' => __('Enable Field and Feature Post Content Listing', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 239 | - array('field' => 'wdk_is_alt_agent_enabled', 'field_label' => __('Enable Field and Feature Agent Listing', 'wpdirectorykit'), 'hint' => __('Select regular page which ill be used for listing preview page on frontend, you can create new one also for this purpose', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 275 | + array('field' => 'wdk_is_address_enabled', 'field_label' => __('Enable Address', 'wpdirectorykit'), 'hint' => __('Enable this option to display the address field on the listing submission page', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 276 | + array('field' => 'wdk_is_featured_enabled', 'field_label' => __('Enable Field and Feature Featured Listing', 'wpdirectorykit'), 'hint' => __('Enable this option to allow marking listings as Featured on the submission page.', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 277 | + array('field' => 'wdk_is_rank_enabled', 'field_label' => __('Enable Field and Feature Rank Listing', 'wpdirectorykit'), 'hint' => __('Enable this option to allow assigning a rank to listings on the submission page.', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 278 | + array('field' => 'wdk_is_user_editor_enabled', 'field_label' => __('Enable Field and Feature Agent Listing', 'wpdirectorykit'), 'hint' => __('Enable this option to allow selecting an agent for the listing.', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 279 | + array('field' => 'wdk_is_post_content_enable', 'field_label' => __('Enable Field and Feature Post Content Listing', 'wpdirectorykit'), 'hint' => __('Enable this option to show the post content field on the submission page.', 'wpdirectorykit'), 'field_type' => 'CHECKBOX', 'rules' => ''), | |
| 240 | 280 | array( |
| 281 | + 'field' => 'wdk_is_alt_agent_enabled', | |
| 282 | + 'field_label' => __('Enable Alternate Agent for Listing', 'wpdirectorykit'), | |
| 283 | + 'hint' => __('Enable this option to allow assigning an alternate agent to the listing.', 'wpdirectorykit'), | |
| 284 | + 'field_type' => 'CHECKBOX', | |
| 285 | + 'rules' => '', | |
| 286 | + ), | |
| 287 | + array( | |
| 241 | 288 | 'field' => 'wdk_sub_listings_enable', |
| 242 | 289 | 'field_label' => __('Related Listings', 'wpdirectorykit'), |
| 243 | 290 | 'field_type' => 'CHECKBOX', |
| 244 | 291 | 'rules' => '', |
| @@ -248,8 +295,76 @@ | ||
| 248 | 295 | 'field_label' => __('Listing Images required', 'wpdirectorykit'), |
| 249 | 296 | 'field_type' => 'CHECKBOX', |
| 250 | 297 | 'rules' => '', |
| 251 | 298 | ), |
| 299 | + array( | |
| 300 | + 'field' => 'wdk_enable_filter_zero_decimal', | |
| 301 | + 'field_label' => __('Enable filter zero decimal', 'wpdirectorykit'), | |
| 302 | + 'field_type' => 'CHECKBOX', | |
| 303 | + 'rules' => '', | |
| 304 | + ), | |
| 305 | + array( | |
| 306 | + 'field' => 'wdk_disable_custom_muber_format', | |
| 307 | + 'field_label' => __('Disable the custom number format', 'wpdirectorykit'), | |
| 308 | + 'hint' => __('Disable the custom number format and use the default WordPress number formatting.', 'wpdirectorykit'), | |
| 309 | + 'field_type' => 'CHECKBOX', | |
| 310 | + 'rules' => '', | |
| 311 | + ), | |
| 312 | + array( | |
| 313 | + 'field' => 'wdk_number_format_decimal_point', | |
| 314 | + 'field_label' => __('Number Decimal Places', 'wpdirectorykit'), | |
| 315 | + 'hint' => __('Default based on language selected in WordPress', 'wpdirectorykit'), | |
| 316 | + 'field_type' => 'DROPDOWN', | |
| 317 | + 'empty_default' => esc_attr((!empty(get_option('wdk_number_format_decimal_point')) ? get_option('wdk_number_format_decimal_point') : get_option('decimal_point', ','))), | |
| 318 | + 'values' => array( | |
| 319 | + '.' => __('Dot (.)', 'wpdirectorykit'), | |
| 320 | + "'" => __('Quote (\')', 'wpdirectorykit'), | |
| 321 | + ',' => __('Comma (,)', 'wpdirectorykit'), | |
| 322 | + ' ' => __('Space', 'wpdirectorykit'), | |
| 323 | + ), | |
| 324 | + 'rules' => '' | |
| 325 | + ), | |
| 326 | + array( | |
| 327 | + 'field' => 'wdk_number_format_thousands_sep', | |
| 328 | + 'field_label' => __('Number Format Thousands sep', 'wpdirectorykit'), | |
| 329 | + 'hint' => __('Default based on language selected in WordPress', 'wpdirectorykit'), | |
| 330 | + 'field_type' => 'DROPDOWN', | |
| 331 | + 'empty_default' => esc_attr((!empty(get_option('wdk_number_format_thousands_sep')) ? get_option('wdk_number_format_thousands_sep') : get_option('thousands_separator', ','))), | |
| 332 | + 'rules' => '', | |
| 333 | + 'values' => array( | |
| 334 | + '.' => __('Dot (.)', 'wpdirectorykit'), | |
| 335 | + ',' => __('Comma (,)', 'wpdirectorykit'), | |
| 336 | + "'" => __('Quote (\')', 'wpdirectorykit'), | |
| 337 | + ' ' => __('Space', 'wpdirectorykit'), | |
| 338 | + ), | |
| 339 | + ), | |
| 340 | + array( | |
| 341 | + 'field' => 'wdk_number_format_decimals', | |
| 342 | + 'field_label' => __('Number Format Decimal count', 'wpdirectorykit'), | |
| 343 | + 'hint' => __('Default based on language selected in WordPress', 'wpdirectorykit'), | |
| 344 | + 'field_type' => 'NUMBER', | |
| 345 | + 'min' => '0', | |
| 346 | + 'max' => '5', | |
| 347 | + 'step' => '1', | |
| 348 | + 'rules' => '', | |
| 349 | + 'empty_default' => esc_attr(get_option('wdk_number_format_decimals', get_option('wdk_number_format_decimals', get_option('woocommerce_price_num_decimals', 2)))), | |
| 350 | + ), | |
| 351 | + array( | |
| 352 | + 'field' => 'wdk_number_format_decimals', | |
| 353 | + 'field_label' => __('Current Number Format', 'wpdirectorykit'), | |
| 354 | + 'hint' => __('Example price format based on WordPress language or above configuration (1234567.89)', 'wpdirectorykit'), | |
| 355 | + 'field_type' => 'RAW', | |
| 356 | + 'rules' => '', | |
| 357 | + 'raw' => '<span id="wdk_example_price_format" class="label label-info" style="font-size:14px">'.wdk_number_format_i18n(1234567.89).'</span>', | |
| 358 | + ), | |
| 359 | + array( | |
| 360 | + 'field' => 'wdk_custom_listings_link_field', | |
| 361 | + 'field_label' => __('Custom Field, like extern link for listing preview', 'wpdirectorykit'), | |
| 362 | + 'hint' => __('Value for this field, replace listing preview link if not empty', 'wpdirectorykit'), | |
| 363 | + 'field_type' => 'DROPDOWN', | |
| 364 | + 'values' => $fields_list_inputs, | |
| 365 | + 'rules' => '', | |
| 366 | + ), | |
| 252 | 367 | ); |
| 253 | 368 | |
| 254 | 369 | /* Api-s */ |
| 255 | 370 | $this->fields_list_tabs['apis'] = array( |
| @@ -255,9 +370,14 @@ | ||
| 255 | 370 | $this->fields_list_tabs['apis'] = array( |
| 256 | 371 | array( |
| 257 | 372 | 'field' => 'wdk_recaptcha_site_key', |
| 258 | 373 | 'field_label' => __('Recaptcha site key', 'wpdirectorykit'), |
| 259 | - 'hint' => __('Please add Recaptcha site and Secret keys for enable recaptcha Add Google Recaptcha site key (use V2 recaptcha key)', 'wpdirectorykit').'. '.wdk_sprintf(__('Get key %1$s here %2$s','wpdirectorykit'),'<a target="_blank" href="https://www.google.com/recaptcha/admin">','</a>'), | |
| 374 | + 'hint' => __('Please add Recaptcha site and Secret keys for enable recaptcha Add Google Recaptcha site key (use V2 recaptcha key)', 'wpdirectorykit') . '. ' . wdk_sprintf( | |
| 375 | + /* translators: 1: Tag with link open, 2: close link tag. */ | |
| 376 | + __('Get key %1$s here %2$s', 'wpdirectorykit'), | |
| 377 | + '<a target="_blank" href="https://www.google.com/recaptcha/admin">', | |
| 378 | + '</a>' | |
| 379 | + ), | |
| 260 | 380 | 'field_type' => 'INPUTBOX', |
| 261 | 381 | 'rules' => '', |
| 262 | 382 | ), |
| 263 | 383 | array( |
| @@ -267,11 +387,35 @@ | ||
| 267 | 387 | 'field_type' => 'INPUTBOX', |
| 268 | 388 | 'rules' => '', |
| 269 | 389 | ), |
| 270 | 390 | array( |
| 391 | + 'field' => 'wdk_recaptcha_site_key_v3', | |
| 392 | + 'field_label' => __('Recaptcha site key v3', 'wpdirectorykit'), | |
| 393 | + 'hint' => __('Please add Recaptcha site and Secret keys for enable recaptcha Add Google Recaptcha site key (use V3 recaptcha key)', 'wpdirectorykit') . '. ' . wdk_sprintf( | |
| 394 | + /* translators: 1: Tag with link open, 2: close link tag. */ | |
| 395 | + __('Get key %1$s here %2$s', 'wpdirectorykit'), | |
| 396 | + '<a target="_blank" href="https://www.google.com/recaptcha/admin">', | |
| 397 | + '</a>' | |
| 398 | + ), | |
| 399 | + 'field_type' => 'INPUTBOX', | |
| 400 | + 'rules' => '', | |
| 401 | + ), | |
| 402 | + array( | |
| 403 | + 'field' => 'wdk_recaptcha_secret_key_v3', | |
| 404 | + 'field_label' => __('Recaptcha site secret key v3', 'wpdirectorykit'), | |
| 405 | + 'hint' => __('Add Google Recaptcha secret key', 'wpdirectorykit'), | |
| 406 | + 'field_type' => 'INPUTBOX', | |
| 407 | + 'rules' => '', | |
| 408 | + ), | |
| 409 | + array( | |
| 271 | 410 | 'field' => 'wdk_geo_google_api_key', |
| 272 | 411 | 'field_label' => __('Google API Key', 'wpdirectorykit'), |
| 273 | - 'hint' => __('Google API Key, for address to gps coordinates conversion', 'wpdirectorykit').'. '.wdk_sprintf(__('Get key %1$s here %2$s','wpdirectorykit'),'<a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">','</a>'), | |
| 412 | + 'hint' => __('Google API Key, for address to gps coordinates conversion', 'wpdirectorykit') . '. ' . wdk_sprintf( | |
| 413 | + /* translators: 1: Tag with link open, 2: close link tag. */ | |
| 414 | + __('Get key %1$s here %2$s', 'wpdirectorykit'), | |
| 415 | + '<a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">', | |
| 416 | + '</a>' | |
| 417 | + ), | |
| 274 | 418 | 'field_type' => 'INPUTBOX', |
| 275 | 419 | 'rules' => '', |
| 276 | 420 | ), |
| 277 | 421 | array( |
| @@ -330,8 +474,22 @@ | ||
| 330 | 474 | 'field_type' => 'INPUTBOX', |
| 331 | 475 | 'rules' => '', |
| 332 | 476 | ), |
| 333 | 477 | array( |
| 478 | + 'field' => 'wdk_disable_toolbar_on_content_editor', | |
| 479 | + 'field_label' => __('Disable toolbar on content editor', 'wpdirectorykit'), | |
| 480 | + 'field_type' => 'CHECKBOX', | |
| 481 | + 'rules' => '', | |
| 482 | + ), | |
| 483 | + | |
| 484 | + array( | |
| 485 | + 'field' => 'wdk_remove_direct_listing_images', | |
| 486 | + 'field_label' => __('Remove images from media when listing is removed', 'wpdirectorykit'), | |
| 487 | + 'hint' => __('Enable this option to remove attached images from the media library automatically when a listing is deleted.', 'wpdirectorykit'), | |
| 488 | + 'field_type' => 'CHECKBOX', | |
| 489 | + 'rules' => '', | |
| 490 | + ), | |
| 491 | + array( | |
| 334 | 492 | 'field' => 'wdk_experimental_features', |
| 335 | 493 | 'field_label' => __('Experimental features', 'wpdirectorykit'), |
| 336 | 494 | 'hint' => '', |
| 337 | 495 | 'field_type' => 'CHECKBOX', |
| @@ -357,40 +515,92 @@ | ||
| 357 | 515 | ); |
| 358 | 516 | } |
| 359 | 517 | |
| 360 | 518 | /* Templates */ |
| 361 | - if(get_option('wdk_experimental_features')) { | |
| 362 | - $this->fields_list_tabs['experimental'] = array( | |
| 363 | - array( | |
| 364 | - 'field' => 'wdk_experimental_search_popup', | |
| 365 | - 'field_label' => __('Search Popup', 'wpdirectorykit'), | |
| 366 | - 'hint' => __('Element open search form in popup', 'wpdirectorykit'), | |
| 367 | - 'field_type' => 'CHECKBOX', | |
| 368 | - 'rules' => '', | |
| 369 | - ), | |
| 370 | - array( | |
| 371 | - 'field' => 'wdk_experimental_listing_card_elementor_layout', | |
| 372 | - 'field_label' => __('Listing Card', 'wpdirectorykit'), | |
| 373 | - 'hint' => __('Allow Listing card layout in elementor', 'wpdirectorykit'), | |
| 374 | - 'field_type' => 'CHECKBOX', | |
| 375 | - 'rules' => '', | |
| 376 | - ), | |
| 377 | - array( | |
| 378 | - 'field' => 'wdk_experimental_listing_popup', | |
| 379 | - 'field_label' => __('Listing Preview Popup', 'wpdirectorykit'), | |
| 380 | - 'hint' => __('Open Listing preview in popup', 'wpdirectorykit'), | |
| 381 | - 'field_type' => 'CHECKBOX', | |
| 382 | - 'rules' => '', | |
| 383 | - ), | |
| 384 | - array( | |
| 385 | - 'field' => 'wdk_experimental_ajax_results', | |
| 386 | - 'field_label' => __('Ajax results listings', 'wpdirectorykit'), | |
| 387 | - 'hint' => __('Allow ajax load listings for map, results container. Reload results with pagination/search form. After activate settings, also action "Reload content with ajax" in elementor options', 'wpdirectorykit'), | |
| 388 | - 'field_type' => 'CHECKBOX', | |
| 389 | - 'rules' => '', | |
| 390 | - ), | |
| 391 | - ); | |
| 392 | - } | |
| 519 | + $this->fields_list_tabs['experimental'] = array( | |
| 520 | + array( | |
| 521 | + 'field' => 'wdk_experimental_search_popup', | |
| 522 | + 'field_label' => __('Search Popup', 'wpdirectorykit'), | |
| 523 | + 'hint' => __('Element open search form in popup', 'wpdirectorykit'), | |
| 524 | + 'field_type' => 'CHECKBOX', | |
| 525 | + 'rules' => '', | |
| 526 | + ), | |
| 527 | + array( | |
| 528 | + 'field' => 'wdk_experimental_listing_card_elementor_layout', | |
| 529 | + 'field_label' => __('Listing Card', 'wpdirectorykit'), | |
| 530 | + 'hint' => __('Allow Listing card layout in elementor', 'wpdirectorykit'), | |
| 531 | + 'field_type' => 'CHECKBOX', | |
| 532 | + 'rules' => '', | |
| 533 | + ), | |
| 534 | + array( | |
| 535 | + 'field' => 'wdk_experimental_listing_popup', | |
| 536 | + 'field_label' => __('Listing Preview Popup', 'wpdirectorykit'), | |
| 537 | + 'hint' => __('Open Listing preview in popup', 'wpdirectorykit'), | |
| 538 | + 'field_type' => 'CHECKBOX', | |
| 539 | + 'rules' => '', | |
| 540 | + ), | |
| 541 | + array( | |
| 542 | + 'field' => 'wdk_experimental_ajax_results', | |
| 543 | + 'field_label' => __('Ajax results listings', 'wpdirectorykit'), | |
| 544 | + 'hint' => __('Allow ajax load listings for map, results container. Reload results with pagination/search form. After activate settings, also action "Reload content with ajax" in elementor options', 'wpdirectorykit'), | |
| 545 | + 'field_type' => 'CHECKBOX', | |
| 546 | + 'rules' => '', | |
| 547 | + ), | |
| 548 | + ); | |
| 549 | + | |
| 550 | + /* Autosuggestion */ | |
| 551 | + $this->fields_list_tabs['autosuggestion'] = array( | |
| 552 | + array( | |
| 553 | + 'field' => 'wdk_autosuggestion_google_api_key', | |
| 554 | + 'field_label' => __('Google Api Key', 'wpdirectorykit'), | |
| 555 | + 'field_type' => 'INPUTBOX', | |
| 556 | + 'rules' => '', | |
| 557 | + ), | |
| 558 | + array( | |
| 559 | + 'field' => 'wdk_autosuggestion_google_cities', | |
| 560 | + 'field_label' => __('Autosuggestion Google Cities', 'wpdirectorykit'), | |
| 561 | + 'field_type' => 'TEXTAREA', | |
| 562 | + 'rules' => '', | |
| 563 | + 'hint' => __('Put selectors separate by comma, like .field_1,.field_3 (required Google Api Key)', 'wpdirectorykit'), | |
| 564 | + ), | |
| 565 | + array( | |
| 566 | + 'field' => 'wdk_autosuggestion_google_countries', | |
| 567 | + 'field_label' => __('Autosuggestion Google Countries', 'wpdirectorykit'), | |
| 568 | + 'field_type' => 'TEXTAREA', | |
| 569 | + 'rules' => '', | |
| 570 | + 'hint' => __('Put selectors separate by comma, like .field_1,.field_3 (required Google Api Key)', 'wpdirectorykit'), | |
| 571 | + ), | |
| 572 | + | |
| 573 | + array( | |
| 574 | + 'field' => 'wdk_autosuggestion_rapidapi_api_key', | |
| 575 | + 'field_label' => __('Rapidapi', 'wpdirectorykit'), | |
| 576 | + 'field_type' => 'INPUTBOX', | |
| 577 | + 'rules' => '', | |
| 578 | + /* translators: 1: Tag with link open, 2: close link tag. */ | |
| 579 | + 'hint' => wdk_sprintf(__('Please add Rapid Api Key, Get key %1$s here %2$s, then activate GeoDB Cities API','wpdirectorykit'),'<a target="_blank" href="https://rapidapi.com/products/pricing/">','</a>'), | |
| 580 | + ), | |
| 581 | + array( | |
| 582 | + 'field' => 'wdk_autosuggestion_rapidapi_cities', | |
| 583 | + 'field_label' => __('Autosuggestion Rapid Api Cities', 'wpdirectorykit'), | |
| 584 | + 'field_type' => 'TEXTAREA', | |
| 585 | + 'rules' => '', | |
| 586 | + 'hint' => __('Put selectors separate by comma, like .field_1,.field_3 (required Rapid Api Key)', 'wpdirectorykit'), | |
| 587 | + ), | |
| 588 | + array( | |
| 589 | + 'field' => 'wdk_autosuggestion_rapidapi_countries', | |
| 590 | + 'field_label' => __('Autosuggestion Rapid Api Countries', 'wpdirectorykit'), | |
| 591 | + 'field_type' => 'TEXTAREA', | |
| 592 | + 'rules' => '', | |
| 593 | + 'hint' => __('Put selectors separate by comma, like .field_1,.field_3 (required Rapid Api Key)', 'wpdirectorykit'), | |
| 594 | + ), | |
| 595 | + array( | |
| 596 | + 'field' => 'wdk_autosuggestion_countriesapi_countries', | |
| 597 | + 'field_label' => __('Autosuggestion REST Countries API Countries', 'wpdirectorykit'), | |
| 598 | + 'field_type' => 'TEXTAREA', | |
| 599 | + 'rules' => '', | |
| 600 | + 'hint' => __('Put selectors separate by comma, like .field_1,.field_3', 'wpdirectorykit'), | |
| 601 | + ), | |
| 602 | + ); | |
| 393 | 603 | |
| 394 | 604 | foreach ($this->fields_list_tabs as $tab_fields) { |
| 395 | 605 | foreach ($tab_fields as $field) { |
| 396 | 606 | $this->fields_list[] = $field; |