1
0
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:
Cameron 2020-12-28 10:29:17 -08:00
parent 10482b8a89
commit 7d04bc5c6a
3 changed files with 16 additions and 4 deletions

View File

@ -84,7 +84,10 @@ class e_form
$this->_uc = e107::getUserClass();
$this->setRequiredString('<span class="required text-warning">&nbsp;*</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

View File

@ -1136,7 +1136,7 @@ class e_theme
if($legacy === true)
{
$version = 1.0;
$version = 1.0;
}
else
{

View File

@ -0,0 +1,4 @@
<label class="radio-inline form-check-inline">
<input class="form-check-input" type="radio" {attributes} />
<span>{label}</span>
</label>