diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 1820e404c..295448743 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -176,6 +176,55 @@ class e_form $options['size'] = 7; return $this->text($name, $value, $maxlength, $options); } + + /** + * Render Bootstrap Tabs + * @param $array + * @param $options + * @example + * $array = array( + * 'home' => array('caption' => 'Home', 'text' => 'some tab content' ), + * 'other' => array('caption' => 'Other', 'text' => 'second tab content' ) + * ); + */ + function tabs($array,$options = array()) + { + + $text =' + +
'; + + $text .= ' + +