diff options
author | redmatrix <git@macgirvin.com> | 2016-02-04 19:06:11 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-04 19:06:11 -0800 |
commit | bfeb89075f5e9d3a966c35fd1d0ec56e637a1522 (patch) | |
tree | c233b5bfbcf5cafa245c2b9f8993a3d81fbfbfb9 | |
parent | 721f61a71d854ceeba17e216cbe5f5bfd4887508 (diff) | |
download | volse-hubzilla-bfeb89075f5e9d3a966c35fd1d0ec56e637a1522.tar.gz volse-hubzilla-bfeb89075f5e9d3a966c35fd1d0ec56e637a1522.tar.bz2 volse-hubzilla-bfeb89075f5e9d3a966c35fd1d0ec56e637a1522.zip |
comment buttons hook
-rw-r--r-- | include/ItemObject.php | 6 | ||||
-rwxr-xr-x | view/tpl/comment_item.tpl | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 1b7b2ce78..4bc280e73 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -681,6 +681,11 @@ class Item extends BaseObject { $qc = ((local_channel()) ? get_pconfig(local_channel(),'system','qcomment') : null); $qcomment = (($qc) ? explode("\n",$qc) : null); + $arr = array('comment_buttons' => ''); + call_hooks('comment_buttons',$arr); + $comment_buttons = $arr['comment_buttons']; + + $comment_box = replace_macros($template,array( '$return_path' => '', '$threaded' => $this->is_threaded(), @@ -689,6 +694,7 @@ class Item extends BaseObject { '$id' => $this->get_id(), '$parent' => $this->get_id(), '$qcomment' => $qcomment, + '$comment_buttons' => $comment_buttons, '$profile_uid' => $conv->get_profile_owner(), '$mylink' => $observer['xchan_url'], '$mytitle' => t('This is you'), diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index 49c6af764..0c0cb984c 100755 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -57,6 +57,7 @@ </button> </div> {{/if}} + {{$comment_buttons}} </div> <div class="btn-group pull-right" id="comment-edit-submit-wrapper-{{$id}}"> {{if $preview}} |