mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 00:27:45 +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
|
||||
|
Reference in New Issue
Block a user