%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
/**
* Select field
*
* Setup attributes example:
*
* 'select_field_name' => array(
* 'type' => 'select',
* 'label' => esc_html__( 'Select Field', 'fl-builder' ),
* 'default' => 'option-1',
* 'className' => '',
* 'multi-select' => false,
* 'options' => array(
* 'option-1' => esc_html__( 'Option 1', 'fl-builder' ),
* 'option-2' => array(
* 'label' => esc_html__( 'Premium Option 2', 'fl-builder' ),
* 'premium' => true,
* ),
* 'optgroup-1' => array(
* 'label' => esc_html__( 'Optgroup 1', 'fl-builder' ),
* 'options' => array( *
* 'option-3' => esc_html__( 'Option 3', 'fl-builder' ),
* 'option-4' => array(
* 'label' => esc_html__( 'Premium Option 4', 'fl-builder' ),
* 'premium' => true,
* ),
* ),
* 'premium' => false,
* ),
* ),
* 'toggle' => array(
* 'option-1' => array(
* 'fields' => array( 'my_field_1', 'my_field_2' ),
* 'sections' => array( 'my_section' ),
* 'tabs' => array( 'my_tab' ),
* ),
* 'option-2' => array(),
* ),
* 'hide' => '', @todo Write example setup attribute value
* 'trigger' => '', @todo Write example setup attribute value
* );
*
*/
?>
<#
var atts = '',
field = data.field,
name = data.name,
value = data.value;
// Multiselect?
if ( field['multi-select'] ) {
atts += ' multiple';
name += '[]';
}
// Class
if ( field.className ) {
atts += ' class="' + field.className + '"';
}
// Toggle data
if ( field.toggle ) {
atts += " data-toggle='" + JSON.stringify( field.toggle ) + "'";
}
// Hide data
if ( field.hide ) {
atts += " data-hide='" + JSON.stringify( field.hide ) + "'";
}
// Trigger data
if ( field.trigger ) {
atts += " data-trigger='" + JSON.stringify( field.trigger ) + "'";
}
// Referenced Option Sets - See FLBuilderConfig.optionSets
if ( ( Array.isArray( field.options ) && field.options.length === 1 ) || 'string' === typeof field.options ) {
var optionSetName = Array.isArray( field.options ) ? field.options[0] : field.options ;
if ( 'undefined' !== typeof optionSetName ) {
var optionSet = FLBuilderConfig.optionSets[optionSetName];
if ( 'undefined' !== typeof optionSet ) {
field.options = optionSet;
}
}
}
// Saved data
if ( field.saved_data ) {
templates = FLBuilderConfig.contentItems.template;
var dataOption = [],
savedOpt = _.filter(templates, function(item) {
return field.saved_data === item.content && 'user' === item.type;
});
if ( savedOpt ) {
_.each(savedOpt, function(option){
dataOption[option.postId] = option.name;
});
}
if ( dataOption.length === 0 ) {
if ( 'row' === field.saved_data ) {
dataOption[''] = '<?php _e( 'No Rows Found', 'fl-builder' ); ?>';
}
if ( 'column' === field.saved_data ) {
dataOption[''] = '<?php _e( 'No Columns Found', 'fl-builder' ); ?>';
}
if ( 'module' === field.saved_data ) {
dataOption[''] = '<?php _e( 'No Modules Found', 'fl-builder' ); ?>';
}
if ( 'layout' === field.saved_data ) {
dataOption[''] = '<?php _e( 'No Layout Templates Found', 'fl-builder' ); ?>';
}
}
field.options = dataOption;
}
#>
<select name="{{name}}"{{{atts}}}>
<# if ( data.device && 'default' !== data.device ) { #>
<option value=""></option>
<# } #>
<#
// Loop through the options
for ( var optionKey in field.options ) {
var optionVal = field.options[ optionKey ];
// Do not display premium options if using lite plugin version
if ( 'object' === typeof optionVal && optionVal.premium && true === FLBuilderConfig.lite ) {
continue;
}
if ( 'object' === typeof optionVal && optionVal.label && optionVal.options ) {
#>
<optgroup label="{{optionVal.label}}">
<#
for ( var groupKey in optionVal.options ) {
var groupVal = optionVal.options[ groupKey ],
selected = '';
// Do not display premium optgroup options if using lite plugin version
if ( 'object' === typeof groupVal && groupVal.premium && true === FLBuilderConfig.lite ) {
continue;
}
// Is selected?
if ( 'object' === typeof value && jQuery.inArray( groupKey, value ) != -1 ) {
// Multi select
selected = ' selected="selected"';
} else if ( groupKey == value ) {
// Single select
selected = ' selected="selected"';
}
// Option label
var label = 'object' === typeof groupVal ? groupVal.label : groupVal;
// Output option
#>
<option value="{{groupKey}}"{{{selected}}}>{{{label}}}</option>
<#
}
#>
</optgroup>
<#
} else {
// Is selected?
var selected = '';
if ( 'object' === typeof value && jQuery.inArray( optionKey, value ) != -1 ) {
// Multi select
selected = ' selected="selected"';
} else if ( optionKey == value ) {
// Single select
selected = ' selected="selected"';
}
// Option label
var label = 'object' === typeof optionVal ? optionVal.label : optionVal;
// Output option
#>
<option value="{{optionKey}}"{{{selected}}}>{{{label}}}</option>
<#
}
}
#>
</select>
Zerion Mini Shell 1.0
Reliable Trucking and Freight Services - CALZONA LLC
Skip to content
Transporting
Goods From Coast to Coast
A Trusted Provider of Exceptional Delivery Services
Transporting
Goods From Coast to Coast
A Trusted Provider of Exceptional Delivery Services
Rely on Us for
All Your Trucking Needs
Located in Fort Myers, Florida, CALZONA LLC is an exceptional intermodal freight service that has roots in the trucking industry. Our team works hard to provide you with superior services.
Rest easy knowing that we train all our employees to make sure that transfers are done seamlessly so that there is no time wasted during the delivery process. With our experienced drivers transporting your goods, we can efficiently send your packages and get them to their recipients on time and in the condition you sent them in.
We are searching for seasoned drivers to deliver freight safely and promptly. Our team will be a vital part of reaching an exceptional level of service. Become a part of our crew now to help us build excellence.
For additional information about our company and what we offer, contact us today. We look forward to hearing from you.
Scroll To Top