导入 AKSRT 主题开发源码
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* 外链跳转中间页
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$target_url = (string) get_query_var('aksrt_go_target_url', '');
|
||||
$target_domain = (string) get_query_var('aksrt_go_target_domain', '');
|
||||
$target_protocol = (string) get_query_var('aksrt_go_target_protocol', 'https');
|
||||
|
||||
if ($target_url === '') {
|
||||
wp_safe_redirect(home_url('/'));
|
||||
exit;
|
||||
}
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="main-content" class="container page-content-default aksrt-go-page" tabindex="-1">
|
||||
<div class="content-wrap">
|
||||
<div class="content-layout content-layout--no-sidebar">
|
||||
<div class="content-layout__primary">
|
||||
<article class="theme-box box-body radius8 main-shadow aksrt-go-card">
|
||||
<div class="text-center muted-3-color em09"><?php esc_html_e('安全跳转提醒', 'aksrt'); ?></div>
|
||||
<h1 class="article-title text-center"><?php esc_html_e('即将离开本站', 'aksrt'); ?></h1>
|
||||
<div class="posts-copyright aksrt-go-card__target">
|
||||
<div>
|
||||
<span>🔗</span>
|
||||
<text><?php echo esc_html($target_protocol . '://' . $target_domain); ?></text>
|
||||
</div>
|
||||
<div class="muted-2-color em09 aksrt-go-card__url"><?php echo esc_html($target_url); ?></div>
|
||||
</div>
|
||||
<div class="theme-box box-body separator em09 muted-3-color aksrt-go-card__tips">
|
||||
<?php esc_html_e('外部链接内容不受本站控制,请确认目标地址可信后再继续访问。', 'aksrt'); ?>
|
||||
</div>
|
||||
<div class="text-center post-actions aksrt-go-card__actions">
|
||||
<a href="<?php echo esc_url($target_url); ?>" class="action action-share" target="_blank" rel="nofollow noopener noreferrer">
|
||||
<i class="fas fa-arrow-up-right-from-square" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('继续访问', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<a href="javascript:history.back()" class="action action-favorite">
|
||||
<i class="fas fa-arrow-left" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('返回上一页', 'aksrt'); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user