1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

New Events: user_page_item_viewed, user_comment_deleted

News Comment Count now moving up/down accordingly.
This commit is contained in:
Cameron
2016-12-22 10:00:37 -08:00
parent ba9c73ad58
commit 2cb6de6666
6 changed files with 55 additions and 12 deletions

View File

@@ -194,8 +194,11 @@ class comment_shortcodes extends e_shortcode
return;
}
// TODO put into a <ul> drop-down format.
$text = "<a href='#' data-target='".e_HTTP."comment.php' id='e-comment-delete-".$this->var['comment_id']."' class='e-comment-delete btn btn-default btn-mini btn-xs'>".LAN_DELETE."</a> ";
// TODO put into a <ul> drop-down format.
e107::getDebug()->log($this->var);
$text = "<a href='#' data-target='".e_HTTP."comment.php' id='e-comment-delete-".$this->var['comment_id']."' data-type='".$this->var['comment_type']."' data-itemid='".$this->var['comment_item_id']."' class='e-comment-delete btn btn-default btn-mini btn-xs'>".LAN_DELETE."</a> ";
if($this->var['comment_blocked'] == 2) // pending approval.
{