mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06: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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user