public final function add_controls(Element_Base $element, $user_args)
{
$this->_init_args($user_args);
// Filter witch controls to display
$filtered_controls = $this->_filter_controls();
// Add prefixes to all control conditions
$filtered_controls = $this->_add_conditions_prefix($filtered_controls);
foreach ($filtered_controls as $control_id => $control_args) {
// Add the global group args to the control
$control_args = $this->_add_group_args_to_control($control_id, $control_args);
// Register the control
$id = $this->get_controls_prefix() . $control_id;
if (!empty($control_args['responsive'])) {
unset($control_args['responsive']);
$element->add_responsive_control($id, $control_args);
} else {
$element->add_control($id, $control_args);
}
}
}