'checkbox_button_set',
'heading' => esc_html__( 'Element Sticky Visibility', 'fusion-builder' ),
'description' => esc_html__( 'Choose to show or hide the element, based on the current mode (normal or sticky) of its parent container. You can choose more than one at a time.', 'fusion-builder' ),
'param_name' => 'sticky_display',
'default' => 'normal,sticky',
'value' => [
'normal' => esc_attr__( 'Normal', 'fusion-builder' ),
'sticky' => esc_attr__( 'Sticky', 'fusion-builder' ),
],
'icons' => [
'normal' => '',
'sticky' => '',
],
'dependency' => [
[
'element' => 'fusion_builder_container',
'param' => 'sticky',
'value' => 'on',
'operator' => '==',
],
],
],
];
}
/**
* Generates sticky visibility class.
*
* @static
* @access public
* @since 3.0
* @param string $sticky_display Sticky visibility selection.
* @return string
*/
public static function get_sticky_class( $sticky_display ) {
return '' !== $sticky_display && false === strpos( $sticky_display, ',' ) ? ' fusion-display-' . $sticky_display . '-only' : '';
}
}