2015-02-04 20:31:39 +02:00
|
|
|
<?php $ultimatemember->shortcodes->loop = $ultimatemember->query->make('post_type=comment&number=10&offset=0&author_email=' . um_user('user_email') ); ?>
|
2015-02-01 01:30:04 +02:00
|
|
|
|
2015-02-04 20:31:39 +02:00
|
|
|
<?php if ( $ultimatemember->shortcodes->loop ) { ?>
|
2015-02-01 01:30:04 +02:00
|
|
|
|
2015-02-04 20:31:39 +02:00
|
|
|
<?php $ultimatemember->shortcodes->load_template('profile/comments-single'); ?>
|
2015-02-01 01:30:04 +02:00
|
|
|
|
|
|
|
|
<div class="um-ajax-items">
|
|
|
|
|
|
|
|
|
|
<!--Ajax output-->
|
|
|
|
|
|
2015-02-04 20:31:39 +02:00
|
|
|
<?php if ( count($ultimatemember->shortcodes->loop) >= 10 ) { ?>
|
2015-02-01 01:30:04 +02:00
|
|
|
|
|
|
|
|
<div class="um-load-items">
|
2015-02-02 02:10:06 +02:00
|
|
|
<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','ultimatemember'); ?></a>
|
2015-02-01 01:30:04 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
|
2015-02-02 02:10:06 +02:00
|
|
|
<?php ( um_is_myprofile() ) ? _e('You have not made any comments.','ultimatemember') : _e('This user has not made any comments.','ultimatemember'); ?>
|
2015-02-01 01:30:04 +02:00
|
|
|
|
|
|
|
|
<?php } ?>
|