Example #1
0
    /**
     * list comment-reply
     */
    public static function list_noti_comment_reply($noti)
    {
        if ($noti['type'] !== 'comment-reply') {
            return false;
        }
        $comment = theme_notification::get_comment($noti['comment-id']);
        ?>
		<div class="media">
			<div class="media-left">
				<a href="<?php 
        echo comment_author_url($noti['comment-id']);
        ?>
">
					<img src="<?php 
        echo theme_functions::$avatar_placeholder;
        ?>
" data-src="<?php 
        echo theme_cache::get_avatar_url($comment->user_id);
        ?>
" class="avatar media-object" alt="avatar" width="60" height="60">
				</a>
			</div>
			<div class="media-body">
				<h4 class="media-heading">
					<span class="label label-default"><i class="fa fa-comments-o"></i> <?php 
        echo ___('Comment reply');
        ?>
</span> 
					<?php 
        echo sprintf(___('Your comment has a reply by %1$s in %2$s.'), get_comment_author_link($noti['comment-id']), '<a href="' . theme_cache::get_permalink($comment->comment_post_ID) . '#comment-' . $noti['comment-id'] . '">
							' . theme_cache::get_the_title($comment->comment_post_ID) . '
						</a>');
        ?>
				</h4>
				<div class="excerpt"><?php 
        comment_text($noti['comment-id']);
        ?>
</div>
			</div><!-- /.media-body -->
		</div><!-- /.media -->
		<?php 
    }