- 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
+3 -3
View File
@@ -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;
}