PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.2.3
JetFormBuilder — Dynamic Blocks Form Builder v3.2.3
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / compatibility / jet-engine / blocks / map-tools.php
jetformbuilder / compatibility / jet-engine / blocks Last commit date
map-field.php 2 years ago map-tools.php 2 years ago
map-tools.php
58 lines
1 <?php
2
3
4 namespace JFB_Compatibility\Jet_Engine\Blocks;
5
6 // If this file is called directly, abort.
7 if ( ! defined( 'WPINC' ) ) {
8 die;
9 }
10
11 class Map_Tools {
12
13 const STRING = 'location_string';
14 const ARRAY = 'location_array';
15 const ADDRESS = 'location_address';
16
17 public static function get_formats(): array {
18 return array(
19 array(
20 'value' => self::STRING,
21 'label' => __( 'String', 'jet-form-builder' ),
22 'title' => __( 'String with location Lat and Lng separated by coma', 'jet-form-builder' ),
23 ),
24 array(
25 'value' => self::ARRAY,
26 'label' => __( 'Array', 'jet-form-builder' ),
27 'title' => __( 'Array with location Lat and Lng', 'jet-form-builder' ),
28 ),
29 array(
30 'value' => self::ADDRESS,
31 'label' => __( 'Address', 'jet-form-builder' ),
32 'title' => __( 'Location Address', 'jet-form-builder' ),
33 ),
34 );
35 }
36
37 public static function is_supported(): bool {
38 return (
39 function_exists( 'jet_engine' ) &&
40 version_compare( jet_engine()->get_version(), '3.0.3', '>=' ) &&
41 jet_engine()->modules->is_module_active( 'maps-listings' )
42 );
43 }
44
45 public static function get_help_message(): string {
46 return sprintf(
47 /* translators: %1$s - link to the JetEngine page, %2$s - link to the Map Listing tutorial */
48 __(
49 'The Map Field type requires both the <a href="%1$s">JetEngine</a> (3.0.3) plugin and its <a href="%2$s">Map Listing</a> feature to be activated.',
50 'jet-form-builder'
51 ),
52 'https://crocoblock.com/plugins/jetengine/',
53 'https://crocoblock.com/knowledge-base/articles/jetengine-maps-listing-overview/'
54 );
55 }
56
57 }
58