14 gravityview()->log->debug(
'search-field-multiselect.php - No choices for field' );
30 <div
class=
"gv-search-box gv-search-field-multiselect">
32 <label
for=
"search-box-<?php echo esc_attr( $search_field['name'] ); ?>"><?php echo esc_html(
$search_field[
'label'] ); ?></label>
35 <select name=
"<?php echo esc_attr( $search_field['name'] ); ?>[]" id=
"search-box-<?php echo esc_attr( $search_field['name'] ); ?>" multiple>
39 <option value=
"<?php echo esc_attr( $choice['value'] ); ?>" <?php
gv_selected( $choice[
'value'],
$search_field[
'value'],
true ); ?>><?php echo esc_html( $choice[
'text'] ); ?></option>
static getInstance( $passed_post=NULL)
if(empty( $search_field['choices'])) $gf_field
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.
gravityview()
The main GravityView wrapper function.
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
gv_selected( $value, $current, $echo=true, $type='selected')
Similar to the WordPress selected(), checked(), and disabled() functions, except it allows arrays to ...