PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.8
JetFormBuilder — Dynamic Blocks Form Builder v3.0.8
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 / includes / compatibility / jet-engine / blocks / map-tools.php
jetformbuilder / includes / compatibility / jet-engine / blocks Last commit date
map-field.php 3 years ago map-tools.php 3 years ago
map-tools.php
52 lines
1 <?php
2
3
4 namespace Jet_Form_Builder\Compatibility\Jet_Engine\Blocks;
5
6 class Map_Tools {
7
8 const STRING = 'location_string';
9 const ARRAY = 'location_array';
10 const ADDRESS = 'location_address';
11
12 public static function get_formats(): array {
13 return array(
14 array(
15 'value' => self::STRING,
16 'label' => __( 'String', 'jet-form-builder' ),
17 'title' => __( 'String with location Lat and Lng separated by coma', 'jet-form-builder' ),
18 ),
19 array(
20 'value' => self::ARRAY,
21 'label' => __( 'Array', 'jet-form-builder' ),
22 'title' => __( 'Array with location Lat and Lng', 'jet-form-builder' ),
23 ),
24 array(
25 'value' => self::ADDRESS,
26 'label' => __( 'Address', 'jet-form-builder' ),
27 'title' => __( 'Location Address', 'jet-form-builder' ),
28 ),
29 );
30 }
31
32 public static function is_supported(): bool {
33 return (
34 function_exists( 'jet_engine' ) &&
35 version_compare( jet_engine()->get_version(), '3.0.3', '>=' ) &&
36 jet_engine()->modules->is_module_active( 'maps-listings' )
37 );
38 }
39
40 public static function get_help_message(): string {
41 return sprintf(
42 __(
43 '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.',
44 'jet-form-builder'
45 ),
46 'https://crocoblock.com/plugins/jetengine/',
47 'https://crocoblock.com/knowledge-base/articles/jetengine-maps-listing-overview/'
48 );
49 }
50
51 }
52