tweak user account icon to point to signup for logged out users

This commit is contained in:
2025-05-09 22:34:44 +05:00
parent c2a5941481
commit 900cf276b2

View File

@ -69,6 +69,10 @@ $checkout_url = add_query_arg(
<a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>"> <a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account"> <img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
</a> </a>
<?php elseif (!is_user_logged_in()): ?>
<a href="<?= esc_url(wp_registration_url()); ?>">
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
</a>
<?php endif; ?> <?php endif; ?>
<a class="join-us-cta btn btn--solid" href="#join-club-cta">Junta-te ao clube</a> <a class="join-us-cta btn btn--solid" href="#join-club-cta">Junta-te ao clube</a>
</nav> </nav>