Version 1.0.35

This commit is contained in:
ultimatemember
2015-02-01 01:30:04 +02:00
parent df37a3164f
commit 539ebf10d7
41 changed files with 938 additions and 226 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php $loop = $ultimatemember->query->make('post_type=comment&number=10&offset=0&author_email=' . um_user('user_email') ); ?>
<?php if ( $loop ) { ?>
<?php include_once um_path . 'templates/profile/comments-single.php'; ?>
<div class="um-ajax-items">
<!--Ajax output-->
<?php if ( count($loop) >= 10 ) { ?>
<div class="um-load-items">
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php echo um_user('user_email'); ?>"><?php _e('load more comments','um-bbpress'); ?></a>
</div>
<?php } ?>
</div>
<?php } else { ?>
<?php ( um_is_myprofile() ) ? _e('You have not made any comments.') : _e('This user has not made any comments.'); ?>
<?php } ?>