Merge pull request 'fix(badges): always show badge modal entry when feature is enabled' (#374) from feat/badges-zibll-modal into main
Reviewed-on: CYL/wordpress-theme-aksrt#374
This commit is contained in:
commit
417d2d3a32
1 file changed
+5
-5
@@ -86,11 +86,11 @@ extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uc-header__actions">
|
<div class="uc-header__actions">
|
||||||
<?php if (function_exists('aksrt_user_has_visible_badges') && aksrt_user_has_visible_badges((int) $user_id)) : ?>
|
<?php if (class_exists('\AKSRT\User\Badges') && \AKSRT\User\Badges::enabled()) : ?>
|
||||||
<button type="button" class="btn-ghost btn-sm" data-aksrt-badges-open>
|
<button type="button" class="btn-ghost btn-sm" data-aksrt-badges-open>
|
||||||
<i class="fas fa-award" aria-hidden="true"></i> <?php esc_html_e('我的徽章', 'aksrt'); ?>
|
<i class="fas fa-award" aria-hidden="true"></i> <?php esc_html_e('我的徽章', 'aksrt'); ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (!empty($messages_url)) : ?>
|
<?php if (!empty($messages_url)) : ?>
|
||||||
<a href="<?php echo esc_url($messages_url); ?>" class="btn-ghost btn-sm">
|
<a href="<?php echo esc_url($messages_url); ?>" class="btn-ghost btn-sm">
|
||||||
|
|||||||
Reference in new issue
Block a user