- fix rtl direction for tooltips

This commit is contained in:
andrewshuba
2019-07-24 17:10:30 +03:00
parent b5c12c5545
commit c69debe31b
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -482,15 +482,15 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$output .= '<label for="' . $key . UM()->form()->form_suffix . '">' . __( $label, 'ultimate-member' ) . '</label>'; $output .= '<label for="' . $key . UM()->form()->form_suffix . '">' . __( $label, 'ultimate-member' ) . '</label>';
if (isset( $data['help'] ) && !empty( $data['help'] ) && $this->viewing == false && !strstr( $key, 'confirm_user_pass' )) { if ( isset( $data['help'] ) && !empty( $data['help'] ) && $this->viewing == false && !strstr( $key, 'confirm_user_pass' ) ) {
if (!UM()->mobile()->isMobile()) { if ( ! UM()->mobile()->isMobile() ) {
if (!isset( $this->disable_tooltips )) { if ( !isset( $this->disable_tooltips ) ) {
$output .= '<span class="um-tip um-tip-w" title="' . __( $data['help'], 'ultimate-member' ) . '"><i class="um-icon-help-circled"></i></span>'; $output .= '<span class="um-tip um-tip-' . ( is_rtl() ? 'e' : 'w' ) . '" title="' . __( $data['help'], 'ultimate-member' ) . '"><i class="um-icon-help-circled"></i></span>';
} }
} }
if (UM()->mobile()->isMobile() || isset( $this->disable_tooltips )) { if ( UM()->mobile()->isMobile() || isset( $this->disable_tooltips ) ) {
$output .= '<span class="um-tip-text">' . __( $data['help'], 'ultimate-member' ) . '</span>'; $output .= '<span class="um-tip-text">' . __( $data['help'], 'ultimate-member' ) . '</span>';
} }
+2 -2
View File
@@ -67,7 +67,7 @@
<?php } else { ?> <?php } else { ?>
<div class="um-account-meta-img-b uimob800-show um-tip-w" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>"> <div class="um-account-meta-img-b uimob800-show um-tip-<?php echo ( is_rtl() ? 'e' : 'w' ); ?>" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>">
<a href="<?php echo esc_url( um_user_profile_url() ); ?>"> <a href="<?php echo esc_url( um_user_profile_url() ); ?>">
<?php echo get_avatar( um_user('ID'), 120 ); ?> <?php echo get_avatar( um_user('ID'), 120 ); ?>
</a> </a>
@@ -99,7 +99,7 @@
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i> <i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
</span> </span>
<?php } else { ?> <?php } else { ?>
<span class="um-account-icontip uimob800-show um-tip-w" title="<?php echo esc_attr( $info['title'] ); ?>"> <span class="um-account-icontip uimob800-show um-tip-<?php echo ( is_rtl() ? 'e' : 'w' ); ?>" title="<?php echo esc_attr( $info['title'] ); ?>">
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i> <i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
</span> </span>
<?php } ?> <?php } ?>