A few additional fields for Beaver Builder modules. Each field has a prefix of zestsms- to avoid conflict if the BB crew adds these fields later. Please see example-module.php
Feel free to modify or send a pull request.
Place the fields directory inside your plugin (recommended) or theme and include the following code before your module:
define('ZESTSMS_FIELDS_DIR', realpath(dirname(__FILE__)) . '/fields/');
define('ZESTSMS_FIELDS_URL', realpath(dirname(__FILE__)) . '/fields/');
$bb_plugin_fields = array(
'datepicker/zestsms-datepicker.php'
,'geocomplete/zestsms-geocomplete.php'
,'pdf/zestsms-pdf.php'
,'timepicker/zestsms-timepicker.php'
,'timespan/zestsms-timespan.php'
,'wp-dropdown/zestsms-wp-dropdown.php'
);
function zestsms_load_custom_bb_files() {
global $bb_plugin_fields;
if(class_exists('FLBuilder') && is_array($bb_plugin_fields)) {
foreach($bb_plugin_fields as $field) { echo ZESTSMS_FIELDS_DIR . $field . ' ';
if(file_exists( ZESTSMS_FIELDS_DIR . $field)) {
require_once ZESTSMS_FIELDS_DIR . $field;
}
}
}
}
add_action( 'init', 'zestsms_load_custom_bb_files' );
Display a jquery-ui datepicker field.

Displays a geocomplete field and includes a hidden field which stores the lat/lang coordinates (useful for custom google map modules).

Creates an upload field to upload a PDF (copied from the photo module).

Allows the user to input time with jquery-timepicker.

Allows the user to input 2 times to create a timespan.

Show a dropdown of a post type (default: page) using wp_dropdown_pages which also indents child pages. You can pass any additional arguments found in the codex (see example-module.php)

Create a field with select2. Pass your own options or allow the user to create options on the go which are stored for later -- useful repeater fields.
