HEX
Server: nginx/1.26.1
System: Linux 850a3e23ecee 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64
User: (1000)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/flatsome/template-parts/header/partials/element-account-mobile.php
<?php
/**
 * Mobile account element.
 *
 * @package          Flatsome\Templates
 * @flatsome-version 3.19.0
 */

if ( ! is_woocommerce_activated() ) {
	return;
}

$icon_style = get_theme_mod( 'account_icon_style' );
$is_button  = $icon_style && $icon_style !== 'image' && $icon_style !== 'plain';

$link_atts = [
	'href'       => esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ),
	'class'      => [ 'account-link-mobile', get_flatsome_icon_class( $icon_style, 'small' ) ],
	'title'      => esc_attr__( 'My account', 'woocommerce' ),
	'aria-label' => esc_attr__( 'My account', 'woocommerce' ),
];
?>

<li class="account-item has-icon">
	<?php if ( $is_button ) echo '<div class="header-button">'; ?>
	<a <?php echo flatsome_html_atts( $link_atts ); ?>>
		<?php echo get_flatsome_icon( 'icon-user' ); ?>
	</a>
	<?php if ( $is_button ) echo '</div>'; ?>
</li>