File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
layouts/joomla/form/field/radio Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 4545$ alt = preg_replace ('/[^a-zA-Z0-9_\-]/ ' , '_ ' , $ name );
4646$ isBtnGroup = strpos (trim ($ class ), 'btn-group ' ) !== false ;
4747$ isBtnYesNo = strpos (trim ($ class ), 'btn-group-yesno ' ) !== false ;
48- $ divClass = $ isBtnGroup ? 'btn-group ' : '' ;
4948$ classToggle = $ isBtnGroup ? 'btn-check ' : 'form-check-input ' ;
5049$ btnClass = $ isBtnGroup ? 'btn btn-outline-secondary ' : 'form-check-label ' ;
5150$ blockStart = $ isBtnGroup ? '' : '<div class="form-check"> ' ;
5251$ blockEnd = $ isBtnGroup ? '' : '</div> ' ;
5352
5453// Add the attributes of the fieldset in an array
5554$ attribs = ['class=" ' . trim (
56- $ divClass . ' radio ' . ($ readonly || $ disabled ? ' disabled ' : '' ) . ($ readonly ? ' readonly ' : '' )
55+ $ class . ' radio ' . ($ readonly || $ disabled ? ' disabled ' : '' ) . ($ readonly ? ' readonly ' : '' )
5756 ) . '" ' ,];
5857
5958if (!empty ($ disabled ))
You can’t perform that action at this time.
0 commit comments