Last active
August 2, 2018 03:01
-
-
Save AdamSoucie/ca9fc978b75d56192eee2f066d21c2c8 to your computer and use it in GitHub Desktop.
Select Field with Toggle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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