mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed tooltip "a" tag CSS;
- fixed get_template function '/' to DIRECTORY_SEPARATOR; - changed loading posts.php template;
This commit is contained in:
@@ -166,6 +166,10 @@ a.um-delete{ color: #a00; }
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
.ui-tooltip.um_tooltip a {
|
||||
color: #eeeeee !important;
|
||||
}
|
||||
|
||||
.um_tooltip.dashicons,
|
||||
.um_tooltip.dashicons:before {
|
||||
height:22px;
|
||||
|
||||
@@ -178,7 +178,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
|
||||
$path = '';
|
||||
if ( $basename ) {
|
||||
$array = explode( '/', trim( $basename, '/' ) );
|
||||
$array = explode( DIRECTORY_SEPARATOR, trim( $basename, DIRECTORY_SEPARATOR ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
function locate_template( $template_name, $path = '' ) {
|
||||
// check if there is template at theme folder
|
||||
$template = locate_template( array(
|
||||
trailingslashit( 'ultimate-member/' . $path ) . $template_name
|
||||
trailingslashit( 'ultimate-member' . DIRECTORY_SEPARATOR . $path ) . $template_name
|
||||
) );
|
||||
|
||||
if ( ! $template ) {
|
||||
@@ -295,7 +295,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
} else {
|
||||
$template = trailingslashit( um_path );
|
||||
}
|
||||
$template .= 'templates/' . $template_name;
|
||||
$template .= 'templates' . DIRECTORY_SEPARATOR . $template_name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -63,8 +63,7 @@ if ( ! class_exists( 'um\core\User_posts' ) ) {
|
||||
|
||||
$count_posts = (int) count_user_posts( um_get_requested_user(), 'post', true );
|
||||
|
||||
UM()->shortcodes()->set_args = array( 'posts' => $posts, 'count_posts' => $count_posts );
|
||||
UM()->shortcodes()->load_template( 'profile/posts' );
|
||||
UM()->get_template( 'profile/posts', '', array( 'posts' => $posts, 'count_posts' => $count_posts ), true );
|
||||
}
|
||||
|
||||
|
||||
@@ -118,8 +117,7 @@ if ( ! class_exists( 'um\core\User_posts' ) ) {
|
||||
$args = apply_filters( 'um_profile_query_make_posts', $args );
|
||||
$posts = get_posts( $args );
|
||||
|
||||
UM()->shortcodes()->set_args = array( 'posts' => $posts );
|
||||
UM()->shortcodes()->load_template( 'profile/posts' );
|
||||
UM()->get_template( 'profile/posts', '', array( 'posts' => $posts ), true );
|
||||
wp_die();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Ultimate Member\n"
|
||||
"POT-Creation-Date: 2019-10-17 11:23+0300\n"
|
||||
"PO-Revision-Date: 2019-10-17 11:23+0300\n"
|
||||
"POT-Creation-Date: 2019-10-17 16:12+0300\n"
|
||||
"PO-Revision-Date: 2019-10-17 16:12+0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: en_US\n"
|
||||
@@ -7822,15 +7822,15 @@ msgstr ""
|
||||
msgid "1 comment"
|
||||
msgstr ""
|
||||
|
||||
#: templates/profile/posts.php:25
|
||||
#: templates/profile/posts.php:23
|
||||
msgid "load more posts"
|
||||
msgstr ""
|
||||
|
||||
#: templates/profile/posts.php:37
|
||||
#: templates/profile/posts.php:35
|
||||
msgid "You have not created any posts."
|
||||
msgstr ""
|
||||
|
||||
#: templates/profile/posts.php:39
|
||||
#: templates/profile/posts.php:37
|
||||
msgid "This user has not created any posts."
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -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