mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
radio snippet added.
This commit is contained in:
parent
10482b8a89
commit
7d04bc5c6a
@ -84,7 +84,10 @@ class e_form
|
||||
$this->_uc = e107::getUserClass();
|
||||
$this->setRequiredString('<span class="required text-warning"> *</span>');
|
||||
|
||||
|
||||
if(defset('THEME_VERSION') === 2.3)
|
||||
{
|
||||
$this->_snippets = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2743,10 +2746,15 @@ class e_form
|
||||
{
|
||||
unset($options['id']);
|
||||
}
|
||||
|
||||
if($snippet = $this->getSnippet('radio'))
|
||||
{
|
||||
$options['label'] = $labelFound;
|
||||
return $this->renderSnippet($snippet, $options, $name, $value);
|
||||
}
|
||||
|
||||
// $options['class'] = 'inline';
|
||||
$text = '';
|
||||
|
||||
|
||||
|
||||
// return print_a($options,true);
|
||||
if($labelFound) // Bootstrap compatible markup
|
||||
|
@ -1136,7 +1136,7 @@ class e_theme
|
||||
|
||||
if($legacy === true)
|
||||
{
|
||||
$version = 1.0;
|
||||
$version = 1.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
4
e107_themes/bootstrap3/snippets/form_radio.html
Normal file
4
e107_themes/bootstrap3/snippets/form_radio.html
Normal file
@ -0,0 +1,4 @@
|
||||
<label class="radio-inline form-check-inline">
|
||||
<input class="form-check-input" type="radio" {attributes} />
|
||||
<span>{label}</span>
|
||||
</label>
|
Loading…
x
Reference in New Issue
Block a user