mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 12:41:51 +02:00
Merge pull request #3445 from Jimmi08/patch-1
{COMMENT_BUTTON} - added class parameter #3444
This commit is contained in:
commit
e830812e2b
@ -217,7 +217,8 @@ class comment_shortcodes extends e_shortcode
|
||||
* */
|
||||
}
|
||||
|
||||
|
||||
/* example {COMMENT_BUTTON} */
|
||||
/* example {COMMENT_BUTTON: class=btn btn-default pull-right} */
|
||||
function sc_comment_button($parm = '')
|
||||
{
|
||||
$pref = e107::getPref('comments_sort');
|
||||
@ -228,8 +229,10 @@ class comment_shortcodes extends e_shortcode
|
||||
$value = (varset($this->var['eaction']) == "edit" ? COMLAN_320 : COMLAN_9);
|
||||
$pid = ($this->var['action'] == 'reply') ? $this->var['pid'] : 0;
|
||||
|
||||
$class = "e-comment-submit ";
|
||||
$class .= (!empty($parm['class'])) ? $parm['class'] : 'button btn btn-primary e-comment-submit pull-right';
|
||||
$options = array(
|
||||
'class' => 'button btn btn-primary e-comment-submit pull-right',
|
||||
'class' => $class,
|
||||
'data-pid' => $pid,
|
||||
'data-sort' => $pref,
|
||||
'data-target' => e_HTTP . 'comment.php',
|
||||
|
Loading…
x
Reference in New Issue
Block a user