- 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>';
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 (!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>';
if ( ! UM()->mobile()->isMobile() ) {
if ( !isset( $this->disable_tooltips ) ) {
$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>';
}