1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Merge pull request #3447 from Jimmi08/patch-3

{COMMENT_INPUT} - added class parameters #3444
This commit is contained in:
Cameron 2018-09-24 16:18:48 -07:00 committed by GitHub
commit c69184848c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,15 +294,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 = '<div class="form-group">';
$text = '<div class="'.$class.'">';
if($parm == 'bbcode')
{