You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK one pesky bug is messing with me , I managed to get all options exactly as needed just the typography option style select is messing with me and gives me 2 selected options ,
this is what I have
$values = json_decode($values['thzstyle'],true); // this one is 100% identical like DB options
foreach ( fw_extract_only_options($options) as $option_id => $option ) {
if ( ! isset( $values[ $option_id ] ) ) {
continue;
}
/**
* We detect if option is using booleans by sending it a boolean input value
* If it returns a boolean, then it works with booleans
*/
if ( ! is_bool(
fw()->backend->option_type( $option['type'] )->get_value_from_input( $option, true )
)
) {
continue;
}
if ( is_bool( $values[ $option_id ] ) ) {
// value is already boolean, does not need to fix
continue;
}
$values[ $option_id ] = ( $values[ $option_id ] === 'true' );
}
$html = fw()->backend->render_options( $options, $values, $data );
echo $html;
OK one pesky bug is messing with me , I managed to get all options exactly as needed just the typography option style select is messing with me and gives me 2 selected options ,
this is what I have
But I get this
http://prntscr.com/6j9jmq
this is the option array printed
what am I missing ? value not a string or? if I do this in typography option
instead of
but that messes up the js selection on load. must be variable type. but how if the arrays are identical.
darn , it is , my array style is integer instead of string
http://prntscr.com/6j9pl0
Source #387 (comment)
The text was updated successfully, but these errors were encountered: