$attribute_value ) {
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
} else {
$custom_attributes = array( 'step="' . sprintf( "%.12f", 1 / pow( 10, 12 ) ) . '"', 'min="0"' );
}
$custom_attributes_button = array();
if ( ! empty( $value['custom_attributes_button'] ) && is_array( $value['custom_attributes_button'] ) ) {
foreach ( $value['custom_attributes_button'] as $attribute => $attribute_value ) {
$custom_attributes_button[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
}
$tip = '';
$description = '';
$exchange_rate_server = wcj_get_currency_exchange_rate_server_name( $value['custom_attributes_button']['currency_from'], $value['custom_attributes_button']['currency_to'] );
$value_title = sprintf( __( 'Grab raw %s rate from %s.', 'woocommerce-jetpack' ), $value['value'], $exchange_rate_server ) .
' ' . __( 'Doesn\'t apply rounding, offset etc.', 'woocommerce-jetpack' );
?>
|
|
/>
/>
|
|
|
$attribute_value ) {
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
}
// Description handling
$field_description = WC_Admin_Settings::get_field_description( $value );
extract( $field_description );
// Option value
$option_value = WC_Admin_Settings::get_option( $value['id'], $value['default'] );
// Output
?>
|
|
/> $attribute_value ) {
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
}
// Description handling
$field_description = WC_Admin_Settings::get_field_description( $value );
extract( $field_description );
// Option value
$option_value = WC_Admin_Settings::get_option( $value['id'], $value['default'] );
// Output
?>
|
' . $value['desc'] . '';
$tooltip_html = ( isset( $value['desc_tip'] ) && '' != $value['desc_tip'] ) ?
'' : '';
// Output
?>
|
|
|
|
|
|
' : '';
?>
|
|
|
' : '';
$description = ' ' . $value['desc'] . '';
$save_button = apply_filters( 'booster_option', '',
' ' );
// Custom attribute handling
$custom_attributes = array();
if ( ! empty( $value['custom_attributes'] ) && is_array( $value['custom_attributes'] ) ) {
foreach ( $value['custom_attributes'] as $attribute => $attribute_value ) {
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
}
// Output
?>
|
|
/>
|