* using wp_is_mobile instead of MobileDetect library

This commit is contained in:
Mykyta Synelnikov
2024-12-17 21:53:18 +02:00
parent a6904639f3
commit 1ba3809344
7 changed files with 20 additions and 1353 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ if ( ! defined( 'ABSPATH' ) ) {
</a>
</div>
<?php if ( UM()->mobile()->isMobile() ) { ?>
<?php if ( wp_is_mobile() ) { ?>
<div class="um-account-meta-img-b uimob800-show" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>">
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
@@ -114,7 +114,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<li>
<a data-tab="<?php echo esc_attr( $id )?>" href="<?php echo esc_url( UM()->account()->tab_link( $id ) ); ?>" class="um-account-link <?php if ( $id == UM()->account()->current_tab ) echo 'current'; ?>">
<?php if ( UM()->mobile()->isMobile() ) { ?>
<?php if ( wp_is_mobile() ) { ?>
<span class="um-account-icontip uimob800-show" title="<?php echo esc_attr( $info['title'] ); ?>">
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
</span>