Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/mapster-wp-maps/admin/api/class-mapster-wordpress-maps-api.php
+++ b/mapster-wp-maps/admin/api/class-mapster-wordpress-maps-api.php
@@ -300,6 +300,8 @@
$response = array();
$idsArray = json_decode( $params['ids'] );
$catsArray = json_decode( $params['categories'] );
+ $customArray = json_decode( $params['custom'] );
+ $customCatsArray = json_decode( $params['custom_cats'] );
if ( mapster_can_be_looped( $idsArray ) ) {
foreach ( $idsArray as $id ) {
$thisResponse = mapster_getOnlyValues( $id );
@@ -335,6 +337,45 @@
}
}
}
+ // Check for custom additions
+ if ( mapster_can_be_looped( $customArray ) ) {
+ foreach ( $customArray as $id ) {
+ $thisResponse = mapster_getOnlyValues( $id );
+ $customData = mapster_organizeCustomData( $thisResponse );
+ if ( $customData ) {
+ array_push( $response, $customData );
+ }
+ }
+ }
+ if ( mapster_can_be_looped( $customCatsArray ) ) {
+ if ( count( $customCatsArray ) > 0 ) {
+ foreach ( $customCatsArray as $customCat ) {
+ $term = get_term( $customCat );
+ $args = array(
+ 'post_type' => "any",
+ 'tax_query' => array(array(
+ "taxonomy" => $term->taxonomy,
+ "field" => "term_id",
+ "terms" => $customCat,
+ "include_children" => false,
+ )),
+ 'post_status' => 'publish',
+ 'posts_per_page' => -1,
+ );
+ $the_query = new WP_Query($args);
+ if ( $the_query->have_posts() ) {
+ while ( $the_query->have_posts() ) {
+ $the_query->the_post();
+ $thisResponse = mapster_getOnlyValues( get_the_ID() );
+ $customData = mapster_organizeCustomData( $thisResponse );
+ if ( $customData ) {
+ array_push( $response, $customData );
+ }
+ }
+ }
+ }
+ }
+ }
ob_get_clean();
return $response;
}
@@ -514,28 +555,34 @@
}
// Check for category additions
$categories = get_field( 'add_by_category', $post_id );
+ $customCategories = get_field( 'add_by_custom_category', $post_id );
+ $tax_queries = array(
+ "relation" => "OR",
+ );
+ $all_posts = array();
+ $post_ids_added = array();
if ( mapster_can_be_looped( $categories ) ) {
if ( count( $categories ) > 0 ) {
- $all_posts = array();
- $post_ids_added = array();
+ if ( mapster_can_be_looped( $categories ) ) {
+ array_push( $tax_queries, array(
+ "taxonomy" => "wp-map-category",
+ "field" => "term_id",
+ "terms" => $categories,
+ "include_children" => false,
+ ) );
+ }
+ }
+ }
+ if ( mapster_can_be_looped( $tax_queries ) ) {
+ if ( count( $tax_queries ) > 1 ) {
if ( get_field( 'submission_administration_show_all_languages_on_one_map', $post_id, true ) && is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) ) {
$current_lang = apply_filters( 'wpml_current_language', NULL );
$languages = apply_filters( 'wpml_active_languages', NULL, 'orderby=id&order=desc' );
foreach ( $languages as $language ) {
do_action( 'wpml_switch_language', $language["language_code"] );
$args = array(
- 'post_type' => array(
- 'mapster-wp-user-sub',
- 'mapster-wp-location',
- 'mapster-wp-polygon',
- 'mapster-wp-line'
- ),
- 'tax_query' => array(array(
- "taxonomy" => "wp-map-category",
- "field" => "term_id",
- "terms" => $categories,
- "include_children" => false,
- )),
+ 'post_type' => "any",
+ 'tax_query' => $tax_queries,
'post_status' => 'publish',
'posts_per_page' => -1,
);
@@ -556,18 +603,8 @@
do_action( 'wpml_switch_language', $current_lang["language_code"] );
} else {
$args = array(
- 'post_type' => array(
- 'mapster-wp-user-sub',
- 'mapster-wp-location',
- 'mapster-wp-polygon',
- 'mapster-wp-line'
- ),
- 'tax_query' => array(array(
- "taxonomy" => "wp-map-category",
- "field" => "term_id",
- "terms" => $categories,
- "include_children" => false,
- )),
+ 'post_type' => "any",
+ 'tax_query' => $tax_queries,
'post_status' => 'publish',
'posts_per_page' => -1,
);
@@ -583,38 +620,45 @@
}
}
foreach ( $all_posts as $post ) {
- if ( $post['post_type'] == 'mapster-wp-location' || $post['post_type'] == 'mapster-wp-user-sub' ) {
- $dataToAdd = mapster_getOnlyValues( $post['post_id'] );
- if ( isset( $dataToAdd['data']['popup_style'] ) ) {
- if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
- array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
- array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ $initialData = mapster_getOnlyValues( $post['post_id'] );
+ $dataToAdd = mapster_organizeCustomData( $initialData );
+ if ( $dataToAdd ) {
+ if ( isset( $dataToAdd['data']['location'] ) ) {
+ if ( isset( $dataToAdd['data']['popup_style'] ) ) {
+ if ( $dataToAdd['data']['popup_style'] ) {
+ if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
+ array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
+ array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ }
+ $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ }
}
- $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ array_push( $minimized_location_data, $dataToAdd );
}
- array_push( $minimized_location_data, $dataToAdd );
- }
- if ( $post['post_type'] == 'mapster-wp-line' ) {
- $dataToAdd = mapster_getOnlyValues( $post['post_id'] );
- if ( isset( $dataToAdd['data']['popup_style'] ) ) {
- if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
- array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
- array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ if ( isset( $dataToAdd['data']['line'] ) ) {
+ if ( isset( $dataToAdd['data']['popup_style'] ) ) {
+ if ( $dataToAdd['data']['popup_style'] ) {
+ if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
+ array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
+ array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ }
+ $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ }
}
- $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ array_push( $minimized_line_data, $dataToAdd );
}
- array_push( $minimized_line_data, $dataToAdd );
- }
- if ( $post['post_type'] == 'mapster-wp-polygon' ) {
- $dataToAdd = mapster_getOnlyValues( $post['post_id'] );
- if ( isset( $dataToAdd['data']['popup_style'] ) ) {
- if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
- array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
- array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ if ( isset( $dataToAdd['data']['polygon'] ) ) {
+ if ( isset( $dataToAdd['data']['popup_style'] ) ) {
+ if ( $dataToAdd['data']['popup_style'] ) {
+ if ( !in_array( $dataToAdd['data']['popup_style']['id'], $popup_styles_added ) ) {
+ array_push( $popup_styles, $dataToAdd['data']['popup_style'] );
+ array_push( $popup_styles_added, $dataToAdd['data']['popup_style']['id'] );
+ }
+ $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ }
}
- $dataToAdd['data']['popup_style'] = $dataToAdd['data']['popup_style']['id'];
+ array_push( $minimized_polygon_data, $dataToAdd );
}
- array_push( $minimized_polygon_data, $dataToAdd );
}
}
}
@@ -625,8 +669,15 @@
}
}
ob_get_clean();
- // return array("test" => $testdata);
// return json_decode('');
+ // $ch = curl_init();
+ // curl_setopt($ch, CURLOPT_URL, "https://www.ecobouchon.fr/wp-json/mapster-wp-maps/map?id=16025");
+ // curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ // curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
+ // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
+ // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+ // $response = curl_exec($ch);
+ // return json_decode($response);
$toReturn = array(
'id' => $post_id,
'cats' => $categories,
@@ -646,6 +697,43 @@
}
+function mapster_organizeCustomData( $dataToAdd ) {
+ $customDataToAdd = $dataToAdd;
+ if ( isset( $dataToAdd['data'] ) ) {
+ $geographic_data_key = false;
+ if ( mapster_can_be_looped( $dataToAdd['data'] ) ) {
+ foreach ( $dataToAdd['data'] as $key => $data_field ) {
+ if ( is_array( $data_field ) && array_key_exists( 'type', $data_field ) ) {
+ if ( isset( $data_field['type'] ) && isset( $data_field['coordinates'] ) ) {
+ $geographic_data_key = $key;
+ }
+ }
+ }
+ if ( isset( $dataToAdd['data'][$geographic_data_key] ) && isset( $dataToAdd['data'][$geographic_data_key]['type'] ) ) {
+ if ( str_contains( $dataToAdd['data'][$geographic_data_key]['type'], "Point" ) ) {
+ $customDataToAdd['data']['location'] = $dataToAdd['data'][$geographic_data_key];
+ }
+ if ( str_contains( $dataToAdd['data'][$geographic_data_key]['type'], "Line" ) ) {
+ $customDataToAdd['data']['line'] = $dataToAdd['data'][$geographic_data_key];
+ }
+ if ( str_contains( $dataToAdd['data'][$geographic_data_key]['type'], "Polygon" ) ) {
+ $customDataToAdd['data']['polygon'] = $dataToAdd['data'][$geographic_data_key];
+ }
+ if ( $geographic_data_key !== "location" && $geographic_data_key !== "line" && $geographic_data_key !== "polygon" ) {
+ unset($customDataToAdd['data'][$geographic_data_key]);
+ }
+ } else {
+ return false;
+ }
+ } else {
+ return false;
+ }
+ } else {
+ return false;
+ }
+ return $customDataToAdd;
+}
+
function dynamic_popup_replace( $data ) {
return $data;
}
@@ -681,6 +769,7 @@
}
}
}
+ $new_text = preg_replace( '/\\n/', "n", $new_text );
return $new_text;
}
@@ -870,14 +959,14 @@
function mapster_getTermList( $object_id ) {
$terms = get_the_terms( $object_id, 'wp-map-category' );
- foreach ( $terms as $term ) {
- if ( metadata_exists( 'term', $term->term_id, 'term_order' ) ) {
- $term->term_order = get_term_meta( $term->term_id, 'term_order' );
- }
- }
$termsToReturn = array();
if ( mapster_can_be_looped( $terms ) ) {
foreach ( $terms as $term ) {
+ if ( metadata_exists( 'term', $term->term_id, 'term_order' ) ) {
+ $term->term_order = get_term_meta( $term->term_id, 'term_order' );
+ }
+ }
+ foreach ( $terms as $term ) {
$translated_term = $term;
if ( is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) ) {
$term_id = apply_filters(
@@ -937,14 +1026,14 @@
if ( $single_feature_data['data'][$key]['featured_image'] ) {
$newImageData = array();
$newImageData['id'] = $single_feature_data['data'][$key]['featured_image']['id'];
- $image_thumbnail_size = ( $single_feature_data['data']['popup_style']['image_thumbnail_size'] ? $single_feature_data['data']['popup_style']['image_thumbnail_size'] : 'medium' );
+ $image_thumbnail_size = ( isset( $single_feature_data['data']['popup_style']['image_thumbnail_size'] ) ? $single_feature_data['data']['popup_style']['image_thumbnail_size'] : 'medium' );
$newImageData['url'] = wp_get_attachment_image_url( $newImageData['id'], $image_thumbnail_size );
$single_feature_data['data'][$key]['featured_image'] = $newImageData;
}
}
if ( $key == 'images' ) {
foreach ( $field_object_data[$key]['value'] as $image ) {
- $image_thumbnail_size = ( $single_feature_data['data']['popup_style']['image_thumbnail_size'] ? $single_feature_data['data']['popup_style']['image_thumbnail_size'] : 'medium' );
+ $image_thumbnail_size = ( isset( $single_feature_data['data']['popup_style']['image_thumbnail_size'] ) ? $single_feature_data['data']['popup_style']['image_thumbnail_size'] : 'medium' );
$thisAttachment = wp_get_attachment_image_src( $image['id'], $image_thumbnail_size );
array_push( $single_feature_data['data']['popup']['images'], $thisAttachment[0] );
}
@@ -958,6 +1047,12 @@
$newImageData['width'] = $single_feature_data['data'][$key]['icon_properties']['icon-image']['width'];
$single_feature_data['data'][$key]['icon_properties']['icon-image'] = $newImageData;
}
+ // $hoverImageData = array();
+ // if($single_feature_data['data'][$key]['icon_properties']['hover_effects']['hover_image']) {
+ // $hoverImageData['id'] = $single_feature_data['data'][$key]['icon_properties']['hover_effects']['hover_image']['id'];
+ // $hoverImageData['url'] = $single_feature_data['data'][$key]['icon_properties']['hover_effects']['hover_image']['url'];
+ // $single_feature_data['data'][$key]['icon_properties']['hover_effects']['hover_image'] = $hoverImageData;
+ // }
}
}
}
--- a/mapster-wp-maps/admin/class-mapster-wordpress-maps-admin.php
+++ b/mapster-wp-maps/admin/class-mapster-wordpress-maps-admin.php
@@ -185,7 +185,9 @@
$elevation_chart_enabled = get_field( 'elevation_line_chart_enable_elevation_chart', $post->ID );
$store_locator_enabled = false;
if ( get_field( 'list', $post->ID ) && isset( get_field( 'list', $post->ID )['store_locator_options'] ) ) {
- $store_locator_enabled = get_field( 'list', $post->ID )['store_locator_options']['enable'];
+ if ( is_array( get_field( 'list', $post->ID ) ) && !empty( get_field( 'list', $post->ID )['store_locator_options']['enable'] ) ) {
+ $store_locator_enabled = get_field( 'list', $post->ID )['store_locator_options']['enable'];
+ }
}
$last_dependency = 'jquery';
if ( MAPSTER_LOCAL_TESTING ) {
@@ -374,7 +376,7 @@
);
wp_register_style(
'mapster_map_geocoder_css',
- plugin_dir_url( __FILE__ ) . "../admin/css/vendor/mapbox-gl-geocoder-4.7.2.css",
+ plugin_dir_url( __FILE__ ) . "../admin/css/vendor/mapbox-gl-geocoder-5.0.3.css",
array(),
$this->version
);
@@ -431,6 +433,13 @@
$last_dependency = 'mapster_map_' . $map_provider;
}
wp_enqueue_script(
+ 'mapster_map_purify_js',
+ plugin_dir_url( __FILE__ ) . "../admin/js/vendor/purify.min.js",
+ array($last_dependency),
+ $this->version
+ );
+ $last_dependency = 'mapster_map_purify_js';
+ wp_enqueue_script(
'mapster_map_sortable_js',
plugin_dir_url( __FILE__ ) . "../admin/js/vendor/sortable.min.js",
array($last_dependency),
@@ -482,7 +491,7 @@
wp_enqueue_style( "mapster_map_geocoder_css" );
wp_enqueue_script(
'mapster_map_geocoder_js',
- plugin_dir_url( __FILE__ ) . "../admin/js/vendor/mapbox-gl-geocoder-4.7.2.js",
+ plugin_dir_url( __FILE__ ) . "../admin/js/vendor/mapbox-gl-geocoder-5.0.3.js",
array($last_dependency),
$this->version
);
@@ -762,6 +771,7 @@
'menu_position' => 15,
'supports' => array(
'title',
+ 'thumbnail',
'editor',
'excerpt',
'custom-fields'
@@ -797,6 +807,7 @@
'menu_position' => 15,
'supports' => array(
'title',
+ 'thumbnail',
'editor',
'excerpt',
'custom-fields'
@@ -832,6 +843,7 @@
'menu_position' => 15,
'supports' => array(
'title',
+ 'thumbnail',
'editor',
'excerpt',
'custom-fields'
@@ -902,11 +914,6 @@
if ( $user_submission ) {
}
}
- $set = get_option( 'post_type_rules_flushed_mapster_wp_maps' );
- if ( $set !== true ) {
- flush_rewrite_rules( false );
- update_option( 'post_type_rules_flushed_mapster_wp_maps', true );
- }
}
/**
@@ -1001,7 +1008,9 @@
add_meta_box(
'mapster-wp-maps-preview',
$i18n->get_mapster_strings()['admin']['Map Preview'],
- 'my_meta_box_callback',
+ function () {
+ echo '<div id="mapster-wp-maps-map" style="width: 100%; height: 400px;"></div>';
+ },
'mapster-wp-map',
'normal',
'core',
@@ -1009,10 +1018,6 @@
'__block_editor_compatible_meta_box' => true,
)
);
- function my_meta_box_callback() {
- echo '<div id="mapster-wp-maps-map" style="width: 100%; height: 400px;"></div>';
- }
-
}
/**
@@ -1309,4 +1314,156 @@
}
}
+ /**
+ * Ensuring default custom fields show
+ *
+ * @since 1.0.0
+ */
+ function acf_mapster_show_default_custom_fields() {
+ return false;
+ }
+
+ /**
+ * Custom field validation for ACF
+ *
+ * @since 1.0.0
+ */
+ function mapster_acf_custom_validation(
+ $valid,
+ $value,
+ $field,
+ $input
+ ) {
+ // title is required if field_deal1dealdiscount has a value
+ if ( isset( $_POST['acf']['field_616a60c610c96'] ) && $_POST['acf']['field_616a60c610c96'] == true ) {
+ // the other field has a value
+ // check value of this field
+ if ( empty( $value ) ) {
+ $valid = 'A Popup Template is required because you have enabled a Popup.';
+ }
+ }
+ return $valid;
+ }
+
+ /**
+ * Custom field validation for ACF URLs
+ *
+ * @since 1.0.0
+ */
+ function mapster_acf_custom_validation_urls(
+ $valid,
+ $value,
+ $field,
+ $input
+ ) {
+ // If already invalid from another check, bail out
+ if ( $valid !== true ) {
+ return $valid;
+ }
+ $value = trim( $value );
+ // Allow plain numbers (phone-style input)
+ if ( preg_match( '/^\+?[0-9\s\-\(\)]+$/', $value ) ) {
+ return $valid;
+ // passes
+ }
+ // Allowed URL protocols
+ $allowed_protocols = [
+ 'http',
+ 'https',
+ 'mailto',
+ 'tel'
+ ];
+ $safe_value = esc_url_raw( $value, $allowed_protocols );
+ // If esc_url_raw() stripped it, the protocol wasn’t allowed
+ if ( $safe_value !== $value ) {
+ return 'Invalid link: only http, https, mailto, tel, or a plain phone number are allowed.';
+ }
+ return $valid;
+ }
+
+ /**
+ * Custom field sanitization for ACF Preview Fields
+ *
+ * @since 1.0.0
+ */
+ function mapster_acf_custom_sanitization_previews( $value ) {
+ $allowed_tags = [
+ 'a' => [
+ 'href' => true,
+ 'title' => true,
+ 'target' => true,
+ 'rel' => true,
+ ],
+ 'p' => [],
+ 'br' => [],
+ 'strong' => [],
+ 'em' => [],
+ 'b' => [],
+ 'i' => [],
+ 'ul' => [],
+ 'ol' => [],
+ 'li' => [],
+ 'img' => [
+ 'src' => true,
+ 'alt' => true,
+ 'title' => true,
+ 'width' => true,
+ 'height' => true,
+ ],
+ 'span' => [
+ 'class' => true,
+ 'style' => true,
+ ],
+ 'div' => [
+ 'class' => true,
+ 'style' => true,
+ ],
+ 'h1' => [],
+ 'h2' => [],
+ 'h3' => [],
+ 'h4' => [],
+ 'h5' => [],
+ 'h6' => [],
+ ];
+ return wp_kses( $value, $allowed_tags );
+ }
+
+ /**
+ * Custom field sanitization for ACF Preview Fields
+ *
+ * @since 1.0.0
+ */
+ function mapster_override_taxonomy_query( $args, $field, $post_id ) {
+ // Instead of a single taxonomy, fetch all public taxonomies
+ $taxonomies = get_taxonomies( [
+ 'public' => true,
+ ], 'names' );
+ unset($taxonomies['wp-map-category']);
+ $args['taxonomy'] = $taxonomies;
+ return $args;
+ }
+
+ /**
+ * Custom field sanitization for ACF Preview Fields
+ *
+ * @since 1.0.0
+ */
+ function mapster_results_taxonomy_query(
+ $title,
+ $term,
+ $field,
+ $post_id
+ ) {
+ // Instead of injecting <strong>, prepend group key used by Select2
+ $taxonomy = get_taxonomy( $term->taxonomy );
+ if ( $taxonomy ) {
+ // ACF Select2 supports optgroup-style grouping when result items have "group" keys
+ $title = $term->name;
+ // plain name
+ $term->group = $taxonomy->labels->singular_name;
+ // tell ACF to group by taxonomy
+ }
+ return $title;
+ }
+
}
--- a/mapster-wp-maps/admin/includes/acf-map-fields.php
+++ b/mapster-wp-maps/admin/includes/acf-map-fields.php
@@ -1,15159 +1,15927 @@
<?php
if( function_exists('acf_add_local_field_group') ):
+ add_action( 'acf/include_fields', function() {
+ if ( ! function_exists( 'acf_add_local_field_group' ) ) {
+ return;
+ }
+
acf_add_local_field_group( array(
- 'key' => 'group_6206d24255958',
- 'title' => 'Additional Details',
- 'fields' => array(
- array(
- 'key' => 'field_6206d36b2ce8f',
- 'label' => 'Store Locator Fields',
- 'name' => 'store_locator_fields',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => 'See more about this addon at <a target="_blank" href="https://wpmaps.mapster.me">Mapster Addons</a>.',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 1,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
+ 'key' => 'group_6206d24255958',
+ 'title' => 'Additional Details',
+ 'fields' => array(
+ array(
+ 'key' => 'field_6206d36b2ce8f',
+ 'label' => 'Store Locator Fields',
+ 'name' => 'store_locator_fields',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => 'See more about the Store Locator <a target="_blank" href="https://wpmaps-docs.mapster.me/maps/lists/store-locator">in our documentation</a>.',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'allow_in_bindings' => 1,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
+ 'ui' => 1,
+ ),
+ array(
+ 'key' => 'field_6206d4336615e',
+ 'label' => 'Address',
+ 'name' => 'address',
+ 'aria-label' => '',
+ 'type' => 'text',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d36b2ce8f',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
),
- array(
- 'key' => 'field_6206d4336615e',
- 'label' => 'Address',
- 'name' => 'address',
- 'aria-label' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d36b2ce8f',
- 'operator' => '==',
- 'value' => '1',
- ),
+ 'wrapper' => array(
+ 'width' => '55',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'default_value' => '',
+ 'placeholder' => '',
+ 'prepend' => '',
+ 'append' => '',
+ 'maxlength' => '',
+ ),
+ array(
+ 'key' => 'field_6206d4ec9e2be',
+ 'label' => 'Phone Number',
+ 'name' => 'phone_number',
+ 'aria-label' => '',
+ 'type' => 'text',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d36b2ce8f',
+ 'operator' => '==',
+ 'value' => '1',
),
),
- 'wrapper' => array(
- 'width' => '55',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
),
- array(
- 'key' => 'field_6206d4ec9e2be',
- 'label' => 'Phone Number',
- 'name' => 'phone_number',
- 'aria-label' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d36b2ce8f',
- 'operator' => '==',
- 'value' => '1',
- ),
+ 'wrapper' => array(
+ 'width' => '55',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'default_value' => '',
+ 'placeholder' => '',
+ 'prepend' => '',
+ 'append' => '',
+ 'maxlength' => '',
+ ),
+ array(
+ 'key' => 'field_62e179de58126',
+ 'label' => 'Website',
+ 'name' => 'website',
+ 'aria-label' => '',
+ 'type' => 'url',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d36b2ce8f',
+ 'operator' => '==',
+ 'value' => '1',
),
),
- 'wrapper' => array(
- 'width' => '55',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
),
- array(
- 'key' => 'field_62e179de58126',
- 'label' => 'Website',
- 'name' => 'website',
- 'aria-label' => '',
- 'type' => 'url',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
+ 'wrapper' => array(
+ 'width' => '55',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'default_value' => '',
+ 'placeholder' => '',
+ ),
+ array(
+ 'key' => 'field_6206d24a504fc',
+ 'label' => 'Hours',
+ 'name' => 'hours',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
array(
- array(
- 'field' => 'field_6206d36b2ce8f',
- 'operator' => '==',
- 'value' => '1',
+ 'field' => 'field_6206d36b2ce8f',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '55',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d45207365',
+ 'label' => 'Show Hours',
+ 'name' => 'show_hours',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 1,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
+ ),
+ array(
+ 'key' => 'field_6206d27c504fd',
+ 'label' => 'Monday',
+ 'name' => 'monday',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d45207365',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d28f504ff',
+ 'label' => 'Open',
+ 'name' => 'open',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_6206d2ae50500',
+ 'label' => 'Close',
+ 'name' => 'close',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_622fbdddca829',
+ 'label' => 'Closed',
+ 'name' => 'closed',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 0,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
),
),
),
- 'wrapper' => array(
- 'width' => '55',
- 'class' => '',
- 'id' => '',
+ array(
+ 'key' => 'field_6206d2ba50501',
+ 'label' => 'Tuesday',
+ 'name' => 'tuesday',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d45207365',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d2ba50502',
+ 'label' => 'Open',
+ 'name' => 'open',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_6206d2ba50503',
+ 'label' => 'Close',
+ 'name' => 'close',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_622fbe07ca82a',
+ 'label' => 'Closed',
+ 'name' => 'closed',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 0,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
+ ),
+ ),
),
- 'default_value' => '',
- 'placeholder' => '',
- ),
- array(
- 'key' => 'field_6206d24a504fc',
- 'label' => 'Hours',
- 'name' => 'hours',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d36b2ce8f',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '55',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d45207365',
- 'label' => 'Show Hours',
- 'name' => 'show_hours',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 1,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- array(
- 'key' => 'field_6206d27c504fd',
- 'label' => 'Monday',
- 'name' => 'monday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d28f504ff',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2ae50500',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbdddca829',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2ba50501',
- 'label' => 'Tuesday',
- 'name' => 'tuesday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2ba50502',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2ba50503',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe07ca82a',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2c050504',
- 'label' => 'Wednesday',
- 'name' => 'wednesday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2c050505',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2c050506',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe12ca82b',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2cd50508',
- 'label' => 'Thursday',
- 'name' => 'thursday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2cd50509',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2cd5050a',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe1bca82c',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2d35050b',
- 'label' => 'Friday',
- 'name' => 'friday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2d35050c',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2d35050d',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe25ca82d',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2d85050e',
- 'label' => 'Saturday',
- 'name' => 'saturday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2d85050f',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2d850510',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe2fca82e',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
- ),
- ),
- array(
- 'key' => 'field_6206d2df50511',
- 'label' => 'Sunday',
- 'name' => 'sunday',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d45207365',
- 'operator' => '==',
- 'value' => '1',
- ),
- ),
- ),
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_6206d2df50512',
- 'label' => 'Open',
- 'name' => 'open',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_6206d2df50513',
- 'label' => 'Close',
- 'name' => 'close',
- 'aria-label' => '',
- 'type' => 'time_picker',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'display_format' => 'g:i a',
- 'return_format' => 'g:i a',
- ),
- array(
- 'key' => 'field_622fbe38ca82f',
- 'label' => 'Closed',
- 'name' => 'closed',
- 'aria-label' => '',
- 'type' => 'true_false',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '33',
- 'class' => '',
- 'id' => '',
- ),
- 'message' => '',
- 'default_value' => 0,
- 'ui' => 0,
- 'ui_on_text' => '',
- 'ui_off_text' => '',
- ),
+ array(
+ 'key' => 'field_6206d2c050504',
+ 'label' => 'Wednesday',
+ 'name' => 'wednesday',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d45207365',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d2c050505',
+ 'label' => 'Open',
+ 'name' => 'open',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_6206d2c050506',
+ 'label' => 'Close',
+ 'name' => 'close',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_622fbe12ca82b',
+ 'label' => 'Closed',
+ 'name' => 'closed',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 0,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
),
),
),
- ),
- array(
- 'key' => 'field_6206d2ef50514',
- 'label' => 'Social Media',
- 'name' => 'social_media',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => array(
- array(
- array(
- 'field' => 'field_6206d36b2ce8f',
- 'operator' => '==',
- 'value' => '1',
+ array(
+ 'key' => 'field_6206d2cd50508',
+ 'label' => 'Thursday',
+ 'name' => 'thursday',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d45207365',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d2cd50509',
+ 'label' => 'Open',
+ 'name' => 'open',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_6206d2cd5050a',
+ 'label' => 'Close',
+ 'name' => 'close',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_622fbe1bca82c',
+ 'label' => 'Closed',
+ 'name' => 'closed',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 0,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
),
),
),
- 'wrapper' => array(
- 'width' => '55',
- 'class' => '',
- 'id' => '',
+ array(
+ 'key' => 'field_6206d2d35050b',
+ 'label' => 'Friday',
+ 'name' => 'friday',
+ 'aria-label' => '',
+ 'type' => 'group',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => array(
+ array(
+ array(
+ 'field' => 'field_6206d45207365',
+ 'operator' => '==',
+ 'value' => '1',
+ ),
+ ),
+ ),
+ 'wrapper' => array(
+ 'width' => '',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'layout' => 'block',
+ 'sub_fields' => array(
+ array(
+ 'key' => 'field_6206d2d35050c',
+ 'label' => 'Open',
+ 'name' => 'open',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_6206d2d35050d',
+ 'label' => 'Close',
+ 'name' => 'close',
+ 'aria-label' => '',
+ 'type' => 'time_picker',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'display_format' => 'g:i a',
+ 'return_format' => 'g:i a',
+ ),
+ array(
+ 'key' => 'field_622fbe25ca82d',
+ 'label' => 'Closed',
+ 'name' => 'closed',
+ 'aria-label' => '',
+ 'type' => 'true_false',
+ 'instructions' => '',
+ 'required' => 0,
+ 'conditional_logic' => 0,
+ 'wrapper' => array(
+ 'width' => '33',
+ 'class' => '',
+ 'id' => '',
+ ),
+ 'message' => '',
+ 'default_value' => 0,
+ 'ui' => 0,
+ 'ui_on_text' => '',
+ 'ui_off_text' => '',
+ ),
+ ),
),
- 'layo