feat(users): add inline promotion center
This commit is contained in:
1 parent
aa958c7d01
commit
d138c05f77
11 files changed
+76
-88
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* User center sidebar: creation and promotion center pair.
|
||||
* User center sidebar: creation and revenue center pair.
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
@@ -11,9 +11,9 @@ $creation_url = (string) ($new_post_url ?? '');
|
||||
if ($creation_url === '') {
|
||||
$creation_url = isset($dashboard_tabs['posts']) ? aksrt_get_user_center_tab_url('posts') : '';
|
||||
}
|
||||
$promotion_url = (string) ($revenue_url ?? '');
|
||||
$revenue_url = (string) ($revenue_url ?? '');
|
||||
|
||||
if ($creation_url === '' && $promotion_url === '') {
|
||||
if ($creation_url === '' && $revenue_url === '') {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
@@ -25,10 +25,10 @@ if ($creation_url === '' && $promotion_url === '') {
|
||||
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($promotion_url !== '') : ?>
|
||||
<a class="uc-center-card uc-center-card--promotion" href="<?php echo esc_url($promotion_url); ?>">
|
||||
<span class="uc-center-card__icon"><i class="fas fa-bullhorn" aria-hidden="true"></i></span>
|
||||
<span><strong><?php esc_html_e('推广中心', 'aksrt'); ?></strong><small><?php esc_html_e('返佣与收益', 'aksrt'); ?></small></span>
|
||||
<?php if ($revenue_url !== '') : ?>
|
||||
<a class="uc-center-card uc-center-card--promotion" href="<?php echo esc_url($revenue_url); ?>">
|
||||
<span class="uc-center-card__icon"><i class="fas fa-chart-line" aria-hidden="true"></i></span>
|
||||
<span><strong><?php esc_html_e('收益中心', 'aksrt'); ?></strong><small><?php esc_html_e('返佣与收益', 'aksrt'); ?></small></span>
|
||||
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in new issue
Block a user