__( 'Advanced', 'fl-builder' ), 'sections' => array( 'margins' => array( 'title' => __( 'Spacing', 'fl-builder' ), 'fields' => array( 'margin' => array( 'type' => 'dimension', 'label' => __( 'Margins', 'fl-builder' ), 'slider' => true, 'units' => array( 'px', '%', ), 'preview' => array( 'type' => 'css', 'selector' => '.fl-module-content', 'property' => 'margin', ), 'responsive' => array( 'default_unit' => array( 'default' => $global_settings->module_margins_unit, 'large' => $global_settings->module_margins_large_unit, 'medium' => $global_settings->module_margins_medium_unit, 'responsive' => $global_settings->module_margins_responsive_unit, ), 'placeholder' => array( 'default' => array( 'top' => empty( $global_settings->module_margins_top ) ? '' : $global_settings->module_margins_top, 'right' => empty( $global_settings->module_margins_right ) ? '' : $global_settings->module_margins_right, 'bottom' => empty( $global_settings->module_margins_bottom ) ? '' : $global_settings->module_margins_bottom, 'left' => empty( $global_settings->module_margins_left ) ? '' : $global_settings->module_margins_left, ), 'large' => FLBuilderModel::get_node_spacing_breakpoint_placeholders( 'module', 'margins', 'large' ), 'medium' => FLBuilderModel::get_node_spacing_breakpoint_placeholders( 'module', 'margins', 'medium' ), 'responsive' => FLBuilderModel::get_node_spacing_breakpoint_placeholders( 'module', 'margins', 'responsive' ), ), ), ), ), ), 'visibility' => array( 'title' => __( 'Visibility', 'fl-builder' ), 'fields' => array( 'responsive_display' => array( 'type' => 'select', 'label' => __( 'Breakpoint', 'fl-builder' ), 'options' => array( '' => __( 'All', 'fl-builder' ), 'xl' => __( 'Extra Large Devices Only', 'fl-builder' ), 'desktop' => __( 'Extra Large & Large Devices Only', 'fl-builder' ), 'desktop-medium' => __( 'Extra Large, Large & Medium Devices Only', 'fl-builder' ), 'large' => __( 'Large Devices Only', 'fl-builder' ), 'large-medium' => __( 'Large & Medium Devices Only', 'fl-builder' ), 'medium' => __( 'Medium Devices Only', 'fl-builder' ), 'medium-mobile' => __( 'Medium & Small Devices Only', 'fl-builder' ), 'mobile' => __( 'Small Devices Only', 'fl-builder' ), ), 'preview' => array( 'type' => 'none', ), ), 'visibility_display' => array( 'type' => 'select', 'label' => __( 'Display', 'fl-builder' ), 'options' => array( '' => __( 'Always', 'fl-builder' ), 'logged_out' => __( 'Logged Out User', 'fl-builder' ), 'logged_in' => __( 'Logged In User', 'fl-builder' ), '0' => __( 'Never', 'fl-builder' ), ), 'toggle' => array( 'logged_in' => array( 'fields' => array( 'visibility_user_capability' ), ), ), 'preview' => array( 'type' => 'none', ), ), 'visibility_user_capability' => array( 'type' => 'text', 'label' => __( 'User Capability', 'fl-builder' ), /* translators: %s: wporg docs link */ 'description' => sprintf( __( 'Optional. Set the capability required for users to view this module.', 'fl-builder' ), ' href="http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table" target="_blank"' ), 'preview' => array( 'type' => 'none', ), ), ), ), 'animation' => array( 'title' => __( 'Animation', 'fl-builder' ), 'fields' => array( 'animation' => array( 'type' => 'animation', 'label' => __( 'Animation', 'fl-builder' ), 'preview' => array( 'type' => 'animation', 'selector' => '{node}', ), ), ), ), 'css_selectors' => array( 'title' => __( 'HTML Element', 'fl-builder' ), 'fields' => array( 'container_element' => array( 'type' => 'select', 'label' => __( 'Container Element', 'fl-builder' ), 'default' => 'div', /** * Filter to add/remove container types. * @see fl_builder_node_container_element_options */ 'options' => apply_filters( 'fl_builder_node_container_element_options', array( 'div' => '<div>', 'section' => '<section>', 'article' => '<article>', 'aside' => '<aside>', 'main' => '<main>', 'header' => '<header>', 'footer' => '<footer>', ) ), 'help' => __( 'Optional. Choose an appropriate HTML5 content sectioning element to use for this module to improve accessibility and machine-readability.', 'fl-builder' ), 'preview' => array( 'type' => 'none', ), ), 'id' => array( 'type' => 'text', 'label' => __( 'ID', 'fl-builder' ), 'help' => __( "A unique ID that will be applied to this module's HTML. Must start with a letter and only contain dashes, underscores, letters or numbers. No spaces.", 'fl-builder' ), 'preview' => array( 'type' => 'none', ), ), 'class' => array( 'type' => 'text', 'label' => __( 'Class', 'fl-builder' ), 'help' => __( "A class that will be applied to this module's HTML. Must start with a letter and only contain dashes, underscores, letters or numbers. Separate multiple classes with spaces.", 'fl-builder' ), 'preview' => array( 'type' => 'none', ), ), 'node_label' => array( 'type' => 'text', 'label' => __( 'Label', 'fl-builder' ), 'help' => __( 'A label that will applied and used in the UI for easy identification.', 'fl-builder' ), 'sanitize' => 'strip_tags', 'preview' => array( 'type' => 'none', ), ), ), ), 'export_import' => array( 'title' => __( 'Export/Import', 'fl-builder' ), 'fields' => array( 'export' => array( 'type' => 'raw', 'label' => __( 'Export', 'fl-builder' ), 'preview' => 'none', 'content' => '', ), 'import' => array( 'type' => 'raw', 'label' => __( 'Import', 'fl-builder' ), 'preview' => 'none', 'content' => '
', ), ), ), ), ));