- fixed tooltip "a" tag CSS;

- fixed get_template function '/' to DIRECTORY_SEPARATOR;
- changed loading posts.php template;
This commit is contained in:
nikitasinelnikov
2019-10-17 16:20:48 +03:00
parent 39eb76474e
commit 250b0836c4
5 changed files with 16 additions and 16 deletions
+2 -4
View File
@@ -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 ) { ?>