/** * A boolean radiolist that uses bootstrap * * @param unknown_type $name * @param unknown_type $attribs * @param unknown_type $selected * @param unknown_type $yes * @param unknown_type $no * @param unknown_type $id * @return string */ public static function btbooleanlist($name, $attribs = null, $selected = null, $yes = 'JYES', $no = 'JNO', $id = false) { JHTML::_('script', 'bootstrapped-advanced-ui.js', 'media/com_tienda/js/'); JHTML::_('stylesheet', 'bootstrapped-advanced-ui.css', 'media/com_tienda/css/'); $arr = array(JHtml::_('select.option', '0', JText::_($no)), JHtml::_('select.option', '1', JText::_($yes))); $html = '<div class="control-group"><div class="controls"><fieldset id="' . $name . '" class="radio btn-group">'; $html .= TiendaSelect::btradiolist($arr, $name, $attribs, 'value', 'text', (int) $selected, $id); $html .= '</fieldset></div></div>'; return $html; }