Skip to content

Instantly share code, notes, and snippets.

@AdamSoucie
Last active August 2, 2018 03:01
Show Gist options
  • Save AdamSoucie/ca9fc978b75d56192eee2f066d21c2c8 to your computer and use it in GitHub Desktop.
Save AdamSoucie/ca9fc978b75d56192eee2f066d21c2c8 to your computer and use it in GitHub Desktop.
Select Field with Toggle
'fields' => array(
'module_layout' => array(
'type' => 'select',
'label' => __( 'Module Layout', 'wds-beaver-builder' ),
'default' => 'fifty-image-text',
'options' => array(
'fifty-image-text' => __( 'Image/Text', 'wds-beaver-builder' ),
'fifty-text-image' => __( 'Text/Image', 'wds-beaver-builder' ),
'fifty-text-text' => __( 'Text/Text', 'wds-beaver-builder' ),
),
'toggle' => array(
'fifty-image-text' => array(
'sections' => array( 'image_text_fields' ),
),
'fifty-text-image' => array(
'sections' => array( 'text_image_fields' ),
),
'fifty-text-text' => array(
'sections' => array( 'text_text_fields' ),
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment