<# if ( 'undefined' !== typeof param.label && 'custom' !== param.type ) { #>
{{{ param.label }}}
<# if ( 'undefined' !== typeof param.description && 1 < param.description.length && 1 < param.label.length ) { #>
- {{ fusionBuilderText.fusion_panel_desciption_toggle }}
<# }; #>
<# if ( 'undefined' !== typeof param.to_default && '' !== param.to_default && param.to_default ) { #>
<# } #>
<# if( 'undefined' !== typeof param.description && 'undefined' !== typeof param.default && 'PO' === option_type && 'undefined' !== param.to_default && '' !== param.to_default && ( 'color-alpha' === param.type || 'slider' === param.type ) ) { #>
-
<# } #>
<# if ( 'undefined' !== typeof param.preview ) { #>
<#
dataType = 'undefined' !== typeof param.preview.type ? param.preview.type : '';
dataSelector = 'undefined' !== typeof param.preview.selector ? param.preview.selector : '';
dataToggle = 'undefined' !== typeof param.preview.toggle ? param.preview.toggle : '';
dataAppend = 'undefined' !== typeof param.preview.append ? param.preview.append : '';
#>
<# }; #>
<# if ( hasResponsive ) { #>
- {{ fusionBuilderText.fusion_panel_responsive_toggle }}
<# } #>
<# if ( hasState ) {
const statesIcons = {
'default': 'default-state',
'hover': 'hover_state',
'active': 'active-state',
'completed': 'completed-state',
};
#>
-
{{ fusionBuilderText.fusion_panel_state_toggle }}
-
<#
_.each( param.states, function( state, key ) {
#>
-
<#
} );
#>
<# } #>
<# if ( supportsGlobalTypography ) { #>
<# } #>
<# }; #>
<# if ( 'undefined' !== typeof param.description ) { #>
<# if ( 'custom' !== param.type ) { #>
>{{{ param.description }}}
<# } else { #>
>
{{{ param.description }}}
<# } #>
<# }; #>
'textfield',
'dimension' => 'textfield',
'slider' => 'range',
'color-alpha' => 'colorpickeralpha',
'color' => 'colorpicker',
'radio-buttonset' => 'radio_button_set',
'checkbox-buttonset' => 'checkbox_button_set',
'spacing' => 'dimension',
'dimensions' => 'dimension',
'border_radius' => 'dimension',
'media' => 'upload_object',
'media_url' => 'upload',
'media_id' => 'upload_id',
'radio-image' => 'radio_image_set',
'preset' => 'radio_image_set',
'radio' => 'select',
];
foreach ( $field_replacement as $redux => $option ) {
$fields[] = [
$redux,
FUSION_LIBRARY_PATH . '/inc/fusion-app/templates/options/' . str_replace( '_', '-', $option ) . '.php',
];
}
$fields = apply_filters( 'avada_app_panel_fields', $fields );
?>
<# if ( '' === param.type ) { #>
<# }; #>
<# if ( '' === param.type ) { #>
<# } #>
<# } ); #>