mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Merge pull request #3445 from Jimmi08/patch-1
{COMMENT_BUTTON} - added class parameter #3444
This commit is contained in:
@@ -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 = '')
|
function sc_comment_button($parm = '')
|
||||||
{
|
{
|
||||||
$pref = e107::getPref('comments_sort');
|
$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);
|
$value = (varset($this->var['eaction']) == "edit" ? COMLAN_320 : COMLAN_9);
|
||||||
$pid = ($this->var['action'] == 'reply') ? $this->var['pid'] : 0;
|
$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(
|
$options = array(
|
||||||
'class' => 'button btn btn-primary e-comment-submit pull-right',
|
'class' => $class,
|
||||||
'data-pid' => $pid,
|
'data-pid' => $pid,
|
||||||
'data-sort' => $pref,
|
'data-sort' => $pref,
|
||||||
'data-target' => e_HTTP . 'comment.php',
|
'data-target' => e_HTTP . 'comment.php',
|
||||||
|
Reference in New Issue
Block a user