From 439c57f3c503abc8dd531bdbf3c31e9b52111526 Mon Sep 17 00:00:00 2001 From: Jimako Date: Fri, 21 Sep 2018 22:31:21 +0200 Subject: [PATCH] {COMMENT_INPUT} - added class parameters #3444 --- e107_core/shortcodes/batch/comment_shortcodes.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php index 5a71895df..a253f1e68 100644 --- a/e107_core/shortcodes/batch/comment_shortcodes.php +++ b/e107_core/shortcodes/batch/comment_shortcodes.php @@ -287,15 +287,19 @@ class comment_shortcodes extends e_shortcode return e107::getRate()->renderLike("comments",$this->var['comment_id'],$curVal); } - + /* example {COMMENT_INPUT} */ + /* example {COMMENT_INPUT: inputclass=form-control&class=form-group} */ function sc_comment_input($parm = '') { + + $inputclass = (!empty($parm['inputclass'])) ? $parm['inputclass'] : 'comment-input form-control'; + $class = (!empty($parm['class'])) ? $parm['class'] : 'form-group'; $options = array( - 'class' => 'comment-input form-control', + 'class' => $inputclass, 'placeholder' => COMLAN_403, ); - $text = '
'; + $text = '
'; if($parm == 'bbcode') {