5) { $cols = 6; } if ($l > 10) { $cols = 4; } if ($l > 15) { $cols = 3; } if ($l > 25) { $cols = 2; } $rows = ceil(count($node_options) / $cols); // Default behaviour if (!isset($display_as_radiobuttons)) { $display_as_radiobuttons = true; } // Display as checkboxes is a feature for advanced search only if (!isset($display_as_checkbox)) { $display_as_checkbox = false; } // Display as dropdown is a feature for advanced search only, if set in field options if (!isset($display_as_dropdown)) { $display_as_dropdown = false; } // Autoupdate is set only on search forms, otherwise it should be false if (!isset($autoupdate)) { $autoupdate = false; } if (!isset($help_js)) { $help_js = ''; } if ($display_as_radiobuttons) { $active_nodes = array_column(array_filter($field['node_options'], 'node_is_active'), 'ref'); $field_ref_escaped = escape($field['ref']); ?> $cols) { $col = 1; $row++; ?>
onChange="AutoSave('');" onChange="UpdateResultCount();" >
$cols) { $col = 1; $row++; ?>
checked onClick="UpdateResultCount();" >