mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 05:33:36 +09:00
- fixed tooltip "a" tag CSS;
- fixed get_template function '/' to DIRECTORY_SEPARATOR; - changed loading posts.php template;
This commit is contained in:
@@ -4,8 +4,7 @@ if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
||||
//Only for AJAX loading posts
|
||||
if ( ! empty( $posts ) ) {
|
||||
foreach ( $posts as $post ) {
|
||||
UM()->shortcodes()->set_args = array( 'post' => $post );
|
||||
UM()->shortcodes()->load_template( 'profile/posts-single' );
|
||||
UM()->get_template( 'profile/posts-single.php', '', array( 'post' => $post ), true );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -13,8 +12,7 @@ if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
||||
<div class="um-ajax-items">
|
||||
|
||||
<?php foreach ( $posts as $post ) {
|
||||
UM()->shortcodes()->set_args = array( 'post' => $post );
|
||||
UM()->shortcodes()->load_template( 'profile/posts-single' );
|
||||
UM()->get_template( 'profile/posts-single.php', '', array( 'post' => $post ), true );
|
||||
}
|
||||
|
||||
if ( $count_posts > 10 ) { ?>
|
||||
|
||||
Reference in New Issue
Block a user