feat(pay): free-login gate in access policy plus service/demo helpers
This commit is contained in:
@@ -185,12 +185,18 @@ $currency = class_exists('AKSRT_Settings') ? AKSRT_Settings::get_currency_name()
|
||||
<i class="fas fa-download" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('资源下载', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php if (!empty($meta['demo_url'])) : ?>
|
||||
<?php
|
||||
if (function_exists('aksrt_get_demo_link_html')) {
|
||||
echo aksrt_get_demo_link_html($post_id); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
} elseif (!empty($meta['demo_url'])) {
|
||||
?>
|
||||
<a target="_blank" rel="nofollow" href="<?php echo esc_url((string) $meta['demo_url']); ?>" class="resource-download-box__btn btn-outline resource-download-box__btn--demo">
|
||||
<i class="fas fa-external-link-alt" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('在线演示', 'aksrt'); ?></span>
|
||||
<span><?php esc_html_e('查看演示', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<ul class="resource-download-box__list">
|
||||
@@ -276,22 +282,21 @@ $currency = class_exists('AKSRT_Settings') ? AKSRT_Settings::get_currency_name()
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="resource-download-box__guarantees">
|
||||
<span class="resource-download-box__guarantee">
|
||||
<i class="fas fa-shield-alt" aria-hidden="true"></i>
|
||||
<?php esc_html_e('安全检测', 'aksrt'); ?>
|
||||
</span>
|
||||
<span class="resource-download-box__guarantee">
|
||||
<i class="fas fa-crown" aria-hidden="true"></i>
|
||||
<?php esc_html_e('支持 VIP 权益', 'aksrt'); ?>
|
||||
</span>
|
||||
<span class="resource-download-box__guarantee">
|
||||
<i class="fas fa-coins" aria-hidden="true"></i>
|
||||
<?php esc_html_e('支持积分结算', 'aksrt'); ?>
|
||||
</span>
|
||||
<div class="resource-download-box__guarantees">
|
||||
<?php
|
||||
if (function_exists('aksrt_get_pay_service_html')) {
|
||||
echo aksrt_get_pay_service_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
} else {
|
||||
?>
|
||||
<span class="resource-download-box__guarantee"><i class="fas fa-shield-alt" aria-hidden="true"></i> <?php esc_html_e('安全检测', 'aksrt'); ?></span>
|
||||
<span class="resource-download-box__guarantee"><i class="fas fa-crown" aria-hidden="true"></i> <?php esc_html_e('支持 VIP 权益', 'aksrt'); ?></span>
|
||||
<span class="resource-download-box__guarantee"><i class="fas fa-coins" aria-hidden="true"></i> <?php esc_html_e('支持积分结算', 'aksrt'); ?></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($is_need_login) : ?>
|
||||
<p class="resource-download-box__hint resource-download-box__hint--login">
|
||||
|
||||
Reference in New Issue
Block a user