mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
radio snippet added.
This commit is contained in:
@@ -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>
|
Reference in New Issue
Block a user