diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php index 0abe2ca3d..170e6ba92 100644 --- a/e107_core/shortcodes/batch/comment_shortcodes.php +++ b/e107_core/shortcodes/batch/comment_shortcodes.php @@ -242,7 +242,8 @@ class comment_shortcodes extends e_shortcode } } - + /* example {AUTHOR_INPUT} */ + /* example {AUTHOR_INPUT: inputclass=form-control&class=form-group} */ function sc_author_input($parm = '') { if($this->mode == 'edit') @@ -251,8 +252,11 @@ class comment_shortcodes extends e_shortcode { $form = e107::getForm(); + $inputclass = (!empty($parm['inputclass'])) ? $parm['inputclass'] : 'comment author form-control'; + $class = (!empty($parm['class'])) ? $parm['class'] : 'form-group'; + $options = array( - 'class' => 'comment author form-control', + 'class' => $inputclass, 'placeholder' => COMLAN_16, 'size' => 61, ); @@ -263,7 +267,7 @@ class comment_shortcodes extends e_shortcode $options['disabled'] = 'disabled'; } - $text = '