mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
radio snippet added.
This commit is contained in:
@@ -84,7 +84,10 @@ class e_form
|
|||||||
$this->_uc = e107::getUserClass();
|
$this->_uc = e107::getUserClass();
|
||||||
$this->setRequiredString('<span class="required text-warning"> *</span>');
|
$this->setRequiredString('<span class="required text-warning"> *</span>');
|
||||||
|
|
||||||
|
if(defset('THEME_VERSION') === 2.3)
|
||||||
|
{
|
||||||
|
$this->_snippets = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2743,11 +2746,16 @@ class e_form
|
|||||||
{
|
{
|
||||||
unset($options['id']);
|
unset($options['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($snippet = $this->getSnippet('radio'))
|
||||||
|
{
|
||||||
|
$options['label'] = $labelFound;
|
||||||
|
return $this->renderSnippet($snippet, $options, $name, $value);
|
||||||
|
}
|
||||||
|
|
||||||
// $options['class'] = 'inline';
|
// $options['class'] = 'inline';
|
||||||
$text = '';
|
$text = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// return print_a($options,true);
|
// return print_a($options,true);
|
||||||
if($labelFound) // Bootstrap compatible markup
|
if($labelFound) // Bootstrap compatible markup
|
||||||
{
|
{
|
||||||
|
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