';
if( !empty( $details['default-option'] ) && $details['default-option'] )
$element .= '';
$field_name = Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details );
$options = '';
if( !empty( $details['options'] ) ){
$i = 0;
foreach( $details['options'] as $option ){
if( strpos( $option, '%' ) === false ){
$label = $option;
if( !empty( $details['values'] ) )
$value_attr = $details['values'][$i];
else
$value_attr = $option;
}
else{
$option_parts = explode( '%', $option );
if( !empty( $option_parts ) ){
if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){
$label = $option_parts[1];
if( !empty( $details['values'] ) )
$value_attr = $details['values'][$i];
else
$value_attr = $option_parts[2];
}
}
}
$optionOutput = '';
$options .= apply_filters( "wck_select_{$meta}_{$field_name}_option_{$i}", $optionOutput, $i);
$i++;
}
}
$element .= apply_filters( "wck_select_{$meta}_{$field_name}_options", $options );
$element .= '';
?>