revert: 回档到 b613e01,保留 code-style 规范文档
This commit is contained in:
@@ -383,14 +383,16 @@ function resetGeetestCaptcha() {
|
|||||||
<?php
|
<?php
|
||||||
$captcha_type = get_option('argon_captcha_type', 'math');
|
$captcha_type = get_option('argon_captcha_type', 'math');
|
||||||
if ($captcha_type === 'geetest') { ?>
|
if ($captcha_type === 'geetest') { ?>
|
||||||
<!-- Geetest 验证码容器 --><div id="geetest-captcha" class="mb-4"></div>
|
<!-- Geetest 验证码容器 -->
|
||||||
|
<div id="geetest-captcha" class="mb-4"></div>
|
||||||
<input type="hidden" id="geetest_lot_number" name="lot_number" value="">
|
<input type="hidden" id="geetest_lot_number" name="lot_number" value="">
|
||||||
<input type="hidden" id="geetest_captcha_output" name="captcha_output" value="">
|
<input type="hidden" id="geetest_captcha_output" name="captcha_output" value="">
|
||||||
<input type="hidden" id="geetest_pass_token" name="pass_token" value="">
|
<input type="hidden" id="geetest_pass_token" name="pass_token" value="">
|
||||||
<input type="hidden" id="geetest_gen_time" name="gen_time" value="">
|
<input type="hidden" id="geetest_gen_time" name="gen_time" value="">
|
||||||
<input type="hidden" id="argon_comment_nonce" value="<?php echo wp_create_nonce('argon_comment'); ?>">
|
<input type="hidden" id="argon_comment_nonce" value="<?php echo wp_create_nonce('argon_comment'); ?>">
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<!-- 原有的数学验证码 --><div class="input-group input-group-alternative mb-4 post-comment-captcha-container" captcha="<?php echo get_comment_captcha(get_comment_captcha_seed());?>">
|
<!-- 原有的数学验证码 -->
|
||||||
|
<div class="input-group input-group-alternative mb-4 post-comment-captcha-container" captcha="<?php echo get_comment_captcha(get_comment_captcha_seed());?>">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-key"></i></span>
|
<span class="input-group-text"><i class="fa fa-key"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
11
footer.php
11
footer.php
@@ -29,7 +29,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 加载主题核心 JS --><?php $assets_version = function_exists('argon_get_assets_version') ? argon_get_assets_version() : $GLOBALS['theme_version']; ?>
|
<!-- 加载主题核心 JS -->
|
||||||
|
<?php $assets_version = function_exists('argon_get_assets_version') ? argon_get_assets_version() : $GLOBALS['theme_version']; ?>
|
||||||
<script src="<?php echo $GLOBALS['assets_path']; ?>/argontheme.js?v=<?php echo $assets_version; ?>"></script>
|
<script src="<?php echo $GLOBALS['assets_path']; ?>/argontheme.js?v=<?php echo $assets_version; ?>"></script>
|
||||||
|
|
||||||
<?php if (get_option('argon_math_render') == 'mathjax3') { /*Mathjax V3*/?>
|
<?php if (get_option('argon_math_render') == 'mathjax3') { /*Mathjax V3*/?>
|
||||||
@@ -148,12 +149,16 @@
|
|||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (get_option('argon_enable_code_highlight') == 'true') { /*Highlight.js*/?>
|
<?php if (get_option('argon_enable_code_highlight') == 'true') { /*Highlight.js*/?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo $GLOBALS['assets_path']; ?>/assets/vendor/highlight/styles/<?php echo get_option('argon_code_theme') == '' ? 'vs2015' : get_option('argon_code_theme'); ?>.css">
|
<link rel="stylesheet" href="<?php echo $GLOBALS['assets_path']; ?>/assets/vendor/highlight/styles/<?php echo get_option('argon_code_theme') == '' ? 'vs2015' : get_option('argon_code_theme'); ?>.css">
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -162,6 +167,10 @@
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo get_option('argon_custom_html_foot'); ?>
|
<?php echo get_option('argon_custom_html_foot'); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* 友情链接页面
|
* 友情链接页面
|
||||||
* @package Argon
|
* @package Argon
|
||||||
@@ -468,7 +468,8 @@ $flink_slogan = get_option('argon_friend_link_slogan', __('海内存知己,天
|
|||||||
$flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换友链!如果您的网站已添加本站链接,填写友链页面地址可自动通过审核。', 'argon'));
|
$flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换友链!如果您的网站已添加本站链接,填写友链页面地址可自动通过审核。', 'argon'));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 头部卡片 --><div class="flinks-header-card" style="margin-bottom: 16px;">
|
<!-- 头部卡片 -->
|
||||||
|
<div class="flinks-header-card" style="margin-bottom: 16px;">
|
||||||
<div class="flinks-header-icon"><i class="fa fa-link"></i></div>
|
<div class="flinks-header-icon"><i class="fa fa-link"></i></div>
|
||||||
<h1 class="flinks-title"><?php _e('友情链接', 'argon'); ?></h1>
|
<h1 class="flinks-title"><?php _e('友情链接', 'argon'); ?></h1>
|
||||||
<p class="flinks-subtitle"><?php echo esc_html($flink_slogan); ?></p>
|
<p class="flinks-subtitle"><?php echo esc_html($flink_slogan); ?></p>
|
||||||
@@ -480,7 +481,8 @@ $flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 管理面板(仅管理员可见) --><?php if ($is_admin) : ?>
|
<!-- 管理面板(仅管理员可见) -->
|
||||||
|
<?php if ($is_admin) : ?>
|
||||||
<article class="post card shadow-sm bg-white border-0 flinks-admin-card" style="margin-bottom: 16px;" id="admin-panel">
|
<article class="post card shadow-sm bg-white border-0 flinks-admin-card" style="margin-bottom: 16px;" id="admin-panel">
|
||||||
<div class="flinks-admin-title"><i class="fa fa-cog"></i><?php _e('友链管理', 'argon'); ?> <button class="btn btn-sm btn-secondary" style="margin-left:auto;font-size:11px;" id="check-all-btn"><?php _e('检测所有友链', 'argon'); ?></button></div>
|
<div class="flinks-admin-title"><i class="fa fa-cog"></i><?php _e('友链管理', 'argon'); ?> <button class="btn btn-sm btn-secondary" style="margin-left:auto;font-size:11px;" id="check-all-btn"><?php _e('检测所有友链', 'argon'); ?></button></div>
|
||||||
|
|
||||||
@@ -538,7 +540,8 @@ $flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换
|
|||||||
</article>
|
</article>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 友链列表 --><?php if (!empty($links)) : ?>
|
<!-- 友链列表 -->
|
||||||
|
<?php if (!empty($links)) : ?>
|
||||||
<?php $color_index = 0; foreach ($links as $category => $category_links) : ?>
|
<?php $color_index = 0; foreach ($links as $category => $category_links) : ?>
|
||||||
<article class="post card shadow-sm bg-white border-0 flinks-category-card" style="margin-bottom: 16px;">
|
<article class="post card shadow-sm bg-white border-0 flinks-category-card" style="margin-bottom: 16px;">
|
||||||
<div class="flinks-category-header">
|
<div class="flinks-category-header">
|
||||||
@@ -604,7 +607,8 @@ $flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换
|
|||||||
</article>
|
</article>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 申请友链 --><?php if ($show_apply_form && !$is_admin) : ?>
|
<!-- 申请友链 -->
|
||||||
|
<?php if ($show_apply_form && !$is_admin) : ?>
|
||||||
<article class="post card shadow-sm bg-white border-0 flinks-apply-card" style="margin-bottom: 16px;" id="apply-section">
|
<article class="post card shadow-sm bg-white border-0 flinks-apply-card" style="margin-bottom: 16px;" id="apply-section">
|
||||||
<div class="flinks-apply-header" onclick="toggleApplyForm()">
|
<div class="flinks-apply-header" onclick="toggleApplyForm()">
|
||||||
<div class="flinks-apply-title"><i class="fa fa-plus-circle"></i><span><?php _e('申请友链', 'argon'); ?></span></div>
|
<div class="flinks-apply-title"><i class="fa fa-plus-circle"></i><span><?php _e('申请友链', 'argon'); ?></span></div>
|
||||||
@@ -674,7 +678,8 @@ $flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 验证码 --><?php if ($captcha_enabled) : ?>
|
<!-- 验证码 -->
|
||||||
|
<?php if ($captcha_enabled) : ?>
|
||||||
<div class="flinks-captcha">
|
<div class="flinks-captcha">
|
||||||
<?php if ($captcha_type === 'geetest') : ?>
|
<?php if ($captcha_type === 'geetest') : ?>
|
||||||
<div id="flink-geetest-captcha"></div>
|
<div id="flink-geetest-captcha"></div>
|
||||||
@@ -701,7 +706,8 @@ $flink_welcome = get_option('argon_friend_link_welcome', __('欢迎与我交换
|
|||||||
</article>
|
</article>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 编辑弹窗 --><?php if ($is_admin) : ?>
|
<!-- 编辑弹窗 -->
|
||||||
|
<?php if ($is_admin) : ?>
|
||||||
<div class="flink-modal-overlay" id="edit-modal">
|
<div class="flink-modal-overlay" id="edit-modal">
|
||||||
<div class="flink-modal">
|
<div class="flink-modal">
|
||||||
<div class="flink-modal-title">
|
<div class="flink-modal-title">
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ if (version_compare($argon_last_version, $GLOBALS['theme_version'], '<' )){
|
|||||||
update_option("argon_last_version", $GLOBALS['theme_version']);
|
update_option("argon_last_version", $GLOBALS['theme_version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//引入邮件模板系统
|
//引入邮件模板系统
|
||||||
require_once(get_template_directory() . '/email-templates/base.php');
|
require_once(get_template_directory() . '/email-templates/base.php');
|
||||||
require_once(get_template_directory() . '/email-templates/comment-notify.php');
|
require_once(get_template_directory() . '/email-templates/comment-notify.php');
|
||||||
@@ -4287,6 +4288,7 @@ function argon_enqueue_qrcode_script() {
|
|||||||
}
|
}
|
||||||
add_action('wp_enqueue_scripts', 'argon_enqueue_qrcode_script');
|
add_action('wp_enqueue_scripts', 'argon_enqueue_qrcode_script');
|
||||||
|
|
||||||
|
|
||||||
// 获取 Git 版本信息
|
// 获取 Git 版本信息
|
||||||
function argon_get_git_info() {
|
function argon_get_git_info() {
|
||||||
$theme_dir = get_template_directory();
|
$theme_dir = get_template_directory();
|
||||||
@@ -4351,6 +4353,7 @@ function argon_get_git_info() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ========== TODO 列表功能 ==========
|
// ========== TODO 列表功能 ==========
|
||||||
|
|
||||||
// 获取 TODO 列表
|
// 获取 TODO 列表
|
||||||
|
|||||||
49
header.php
49
header.php
@@ -196,6 +196,8 @@
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$seo_keywords = get_seo_keywords();
|
$seo_keywords = get_seo_keywords();
|
||||||
@@ -206,6 +208,8 @@
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (is_single() || is_page()){
|
if (is_single() || is_page()){
|
||||||
@@ -228,6 +232,8 @@
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta name="theme-color" content="<?php echo $themecolor; ?>">
|
<meta name="theme-color" content="<?php echo $themecolor; ?>">
|
||||||
|
|
||||||
<meta name="theme-color-rgb" content="<?php echo hex2str($themecolor); ?>">
|
<meta name="theme-color-rgb" content="<?php echo hex2str($themecolor); ?>">
|
||||||
@@ -236,12 +242,20 @@
|
|||||||
|
|
||||||
<meta name="argon-enable-custom-theme-color" content="<?php echo (get_option('argon_show_customize_theme_color_picker') != 'false' ? 'true' : 'false'); ?>">
|
<meta name="argon-enable-custom-theme-color" content="<?php echo (get_option('argon_show_customize_theme_color_picker') != 'false' ? 'true' : 'false'); ?>">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta name="theme-card-radius" content="<?php echo $cardradius; ?>">
|
<meta name="theme-card-radius" content="<?php echo $cardradius; ?>">
|
||||||
|
|
||||||
<meta name="theme-card-radius-origin" content="<?php echo $cardradius_origin; ?>">
|
<meta name="theme-card-radius-origin" content="<?php echo $cardradius_origin; ?>">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta name="theme-version" content="<?php echo $GLOBALS['theme_version']; ?>">
|
<meta name="theme-version" content="<?php echo $GLOBALS['theme_version']; ?>">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||||
|
|
||||||
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
|
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
|
||||||
@@ -279,7 +293,8 @@
|
|||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
|
|
||||||
<?php if (function_exists('argon_is_force_refresh_enabled') && argon_is_force_refresh_enabled()): ?>
|
<?php if (function_exists('argon_is_force_refresh_enabled') && argon_is_force_refresh_enabled()): ?>
|
||||||
<!-- 强制刷新缓存 - 清除浏览器和 Service Worker 缓存 --><script>
|
<!-- 强制刷新缓存 - 清除浏览器和 Service Worker 缓存 -->
|
||||||
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
var forceRefreshKey = 'argon_force_refresh_version';
|
var forceRefreshKey = 'argon_force_refresh_version';
|
||||||
var currentVersion = '<?php echo get_option('argon_force_refresh_enabled_time', 0); ?>';
|
var currentVersion = '<?php echo get_option('argon_force_refresh_enabled_time', 0); ?>';
|
||||||
@@ -322,7 +337,8 @@
|
|||||||
</script>
|
</script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 移动端资源加载修复 - 确保 CSS 完全应用 --><script>
|
<!-- 移动端资源加载修复 - 确保 CSS 完全应用 -->
|
||||||
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
// 检测移动端并强制重新计算样式
|
// 检测移动端并强制重新计算样式
|
||||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||||
@@ -354,7 +370,8 @@
|
|||||||
window.argonUserRole = '<?php echo current_user_can('administrator') ? 'administrator' : (is_user_logged_in() ? 'user' : 'guest'); ?>';
|
window.argonUserRole = '<?php echo current_user_can('administrator') ? 'administrator' : (is_user_logged_in() ? 'user' : 'guest'); ?>';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Argon 修复补丁 - 必须在 wp_head() 之后立即执行 --><script src="<?php echo get_template_directory_uri(); ?>/assets/js/argon.min.js?ver=<?php echo $assets_version; ?>"></script>
|
<!-- Argon 修复补丁 - 必须在 wp_head() 之后立即执行 -->
|
||||||
|
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/argon.min.js?ver=<?php echo $assets_version; ?>"></script>
|
||||||
|
|
||||||
<?php $GLOBALS['wp_path'] = get_option('argon_wp_path') == '' ? '/' : get_option('argon_wp_path'); ?>
|
<?php $GLOBALS['wp_path'] = get_option('argon_wp_path') == '' ? '/' : get_option('argon_wp_path'); ?>
|
||||||
|
|
||||||
@@ -548,6 +565,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function toggleAmoledDarkMode(){
|
function toggleAmoledDarkMode(){
|
||||||
|
|
||||||
document.documentElement.classList.toggle("amoled-dark");
|
document.documentElement.classList.toggle("amoled-dark");
|
||||||
@@ -586,6 +605,8 @@ function toggleAmoledDarkMode(){
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (get_option('argon_enable_smoothscroll_type') == '2') { /*平滑滚动*/?>
|
<?php if (get_option('argon_enable_smoothscroll_type') == '2') { /*平滑滚动*/?>
|
||||||
|
|
||||||
<script src="<?php echo $GLOBALS['assets_path']; ?>/assets/vendor/smoothscroll/smoothscroll2.js"></script>
|
<script src="<?php echo $GLOBALS['assets_path']; ?>/assets/vendor/smoothscroll/smoothscroll2.js"></script>
|
||||||
@@ -606,8 +627,12 @@ function toggleAmoledDarkMode(){
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php echo get_option('argon_custom_html_head'); ?>
|
<?php echo get_option('argon_custom_html_head'); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style id="themecolor_css">
|
<style id="themecolor_css">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -745,6 +770,8 @@ if ($animation_style == 'apple') {
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
|
|
||||||
<?php /*wp_body_open();*/ ?>
|
<?php /*wp_body_open();*/ ?>
|
||||||
@@ -1037,7 +1064,9 @@ if ($animation_style == 'apple') {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Banner--><section id="banner" class="banner section section-lg section-shaped">
|
<!--Banner-->
|
||||||
|
|
||||||
|
<section id="banner" class="banner section section-lg section-shaped">
|
||||||
|
|
||||||
<div class="shape <?php echo get_option('argon_banner_background_hide_shapes') == 'true' ? '' : 'shape-style-1' ?> <?php echo get_option('argon_banner_background_color_type') == '' ? 'shape-primary' : get_option('argon_banner_background_color_type'); ?>">
|
<div class="shape <?php echo get_option('argon_banner_background_hide_shapes') == 'true' ? '' : 'shape-style-1' ?> <?php echo get_option('argon_banner_background_color_type') == '' ? 'shape-primary' : get_option('argon_banner_background_color_type'); ?>">
|
||||||
|
|
||||||
@@ -1061,6 +1090,8 @@ if ($animation_style == 'apple') {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$banner_title = get_option('argon_banner_title') == '' ? get_bloginfo('name') : get_option('argon_banner_title');
|
$banner_title = get_option('argon_banner_title') == '' ? get_bloginfo('name') : get_option('argon_banner_title');
|
||||||
@@ -1113,6 +1144,8 @@ if ($animation_style == 'apple') {
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (apply_filters('argon_page_background_url', get_option('argon_page_background_url')) != '') { ?>
|
<?php if (apply_filters('argon_page_background_url', get_option('argon_page_background_url')) != '') { ?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -1253,7 +1286,8 @@ if ($animation_style == 'apple') {
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<!-- 毛玻璃效果 - 独立于背景图片设置(无背景图时也生效) --><?php
|
<!-- 毛玻璃效果 - 独立于背景图片设置(无背景图时也生效) -->
|
||||||
|
<?php
|
||||||
$card_blur_standalone = intval(get_option('argon_card_blur', '20'));
|
$card_blur_standalone = intval(get_option('argon_card_blur', '20'));
|
||||||
$card_saturate_standalone = intval(get_option('argon_card_saturate', '180'));
|
$card_saturate_standalone = intval(get_option('argon_card_saturate', '180'));
|
||||||
$post_bg_opacity_standalone = get_option('argon_post_background_opacity', '0.7');
|
$post_bg_opacity_standalone = get_option('argon_post_background_opacity', '0.7');
|
||||||
@@ -1294,6 +1328,7 @@ if (apply_filters('argon_page_background_url', get_option('argon_page_background
|
|||||||
</style>
|
</style>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if (get_option('argon_show_toolbar_mask') == 'true') { ?>
|
<?php if (get_option('argon_show_toolbar_mask') == 'true') { ?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -1330,6 +1365,8 @@ if (apply_filters('argon_page_background_url', get_option('argon_page_background
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="float_action_buttons" class="float-action-buttons fabtns-unloaded">
|
<div id="float_action_buttons" class="float-action-buttons fabtns-unloaded">
|
||||||
|
|
||||||
<button id="fabtn_toggle_sides" class="btn btn-icon btn-neutral fabtn shadow-sm" type="button" aria-hidden="true" tooltip-move-to-left="<?php _e('移至左侧', 'argon'); ?>" tooltip-move-to-right="<?php _e('移至右侧', 'argon'); ?>">
|
<button id="fabtn_toggle_sides" class="btn btn-icon btn-neutral fabtn shadow-sm" type="button" aria-hidden="true" tooltip-move-to-left="<?php _e('移至左侧', 'argon'); ?>" tooltip-move-to-right="<?php _e('移至右侧', 'argon'); ?>">
|
||||||
@@ -1476,5 +1513,7 @@ if (apply_filters('argon_page_background_url', get_option('argon_page_background
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="content" class="site-content">
|
<div id="content" class="site-content">
|
||||||
|
|
||||||
|
|||||||
120
settings.php
120
settings.php
@@ -90,7 +90,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<!-- ========== 1. 基础设置 ========== --><tr><th class="subtitle"><h2 id="section-basic"><?php _e("基础设置", 'argon');?></h2></th></tr>
|
<!-- ========== 1. 基础设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-basic"><?php _e("基础设置", 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-theme-color"><?php _e("主题色", 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-theme-color"><?php _e("主题色", 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -186,6 +187,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $argon_show_customize_theme_color_picker = get_option('argon_show_customize_theme_color_picker');?>
|
<?php $argon_show_customize_theme_color_picker = get_option('argon_show_customize_theme_color_picker');?>
|
||||||
|
|
||||||
<div style="margin-top: 15px;">
|
<div style="margin-top: 15px;">
|
||||||
@@ -288,7 +291,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 2. 外观样式 ========== --><tr><th class="subtitle"><h2 id="section-appearance"><?php _e('外观样式', 'argon');?></h2></th></tr>
|
<!-- ========== 2. 外观样式 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-appearance"><?php _e('外观样式', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-card-style"><?php _e('卡片样式', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-card-style"><?php _e('卡片样式', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -376,7 +380,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 3. 页面布局 ========== --><tr><th class="subtitle"><h2 id="section-layout"><?php _e('页面布局', 'argon');?></h2></th></tr>
|
<!-- ========== 3. 页面布局 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-layout"><?php _e('页面布局', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-page-layout"><?php _e('整体布局', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-page-layout"><?php _e('整体布局', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -707,7 +712,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 4. 顶栏设置 ========== --><tr><th class="subtitle"><h2 id="section-toolbar"><?php _e('顶栏设置', 'argon');?></h2></th></tr>
|
<!-- ========== 4. 顶栏设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-toolbar"><?php _e('顶栏设置', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-toolbar-basic"><?php _e('基本设置', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-toolbar-basic"><?php _e('基本设置', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -947,7 +953,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 5. Banner 设置 ========== --><tr><th class="subtitle"><h2 id="section-banner"><?php _e('Banner 设置', 'argon');?></h2></th></tr>
|
<!-- ========== 5. Banner 设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-banner"><?php _e('Banner 设置', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-banner-content"><?php _e('Banner 内容', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-banner-content"><?php _e('Banner 内容', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -1163,7 +1170,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 6. 页面背景 ========== --><tr><th class="subtitle"><h2 id="section-background"><?php _e('页面背景', 'argon');?></h2></th></tr>
|
<!-- ========== 6. 页面背景 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-background"><?php _e('页面背景', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-background-image"><?php _e('背景图片', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-background-image"><?php _e('背景图片', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -1202,8 +1210,10 @@ function themeoptions_page(){
|
|||||||
<td colspan="2" style="padding: 20px 10px;">
|
<td colspan="2" style="padding: 20px 10px;">
|
||||||
|
|
||||||
<div style="display: flex; gap: 40px; align-items: flex-start;">
|
<div style="display: flex; gap: 40px; align-items: flex-start;">
|
||||||
<!-- 左侧:设置项 --><div style="flex: 1; max-width: 450px;">
|
<!-- 左侧:设置项 -->
|
||||||
<!-- 背景不透明度 --><div style="margin-bottom: 20px;">
|
<div style="flex: 1; max-width: 450px;">
|
||||||
|
<!-- 背景不透明度 -->
|
||||||
|
<div style="margin-bottom: 20px;">
|
||||||
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('背景不透明度', 'argon');?></label>
|
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('背景不透明度', 'argon');?></label>
|
||||||
<div style="display: flex; align-items: center; gap: 12px;">
|
<div style="display: flex; align-items: center; gap: 12px;">
|
||||||
<input type="range" name="argon_page_background_opacity" id="argon_page_bg_opacity_slider" min="0" max="1" step="0.01" value="<?php echo (get_option('argon_page_background_opacity') == '' ? '1' : get_option('argon_page_background_opacity')); ?>" style="flex: 1; cursor: pointer; height: 6px;">
|
<input type="range" name="argon_page_background_opacity" id="argon_page_bg_opacity_slider" min="0" max="1" step="0.01" value="<?php echo (get_option('argon_page_background_opacity') == '' ? '1' : get_option('argon_page_background_opacity')); ?>" style="flex: 1; cursor: pointer; height: 6px;">
|
||||||
@@ -1212,7 +1222,8 @@ function themeoptions_page(){
|
|||||||
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('控制页面背景图片的不透明度', 'argon');?></p>
|
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('控制页面背景图片的不透明度', 'argon');?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 卡片透明度 --><div style="margin-bottom: 20px;">
|
<!-- 卡片透明度 -->
|
||||||
|
<div style="margin-bottom: 20px;">
|
||||||
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('卡片透明度', 'argon');?></label>
|
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('卡片透明度', 'argon');?></label>
|
||||||
<div style="display: flex; align-items: center; gap: 12px;">
|
<div style="display: flex; align-items: center; gap: 12px;">
|
||||||
<input type="range" name="argon_post_background_opacity" id="argon_post_bg_opacity_slider" min="0" max="1" step="0.01" value="<?php echo (get_option('argon_post_background_opacity') == '' ? '0.7' : get_option('argon_post_background_opacity')); ?>" style="flex: 1; cursor: pointer; height: 6px;">
|
<input type="range" name="argon_post_background_opacity" id="argon_post_bg_opacity_slider" min="0" max="1" step="0.01" value="<?php echo (get_option('argon_post_background_opacity') == '' ? '0.7' : get_option('argon_post_background_opacity')); ?>" style="flex: 1; cursor: pointer; height: 6px;">
|
||||||
@@ -1221,7 +1232,8 @@ function themeoptions_page(){
|
|||||||
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('控制文章、评论等卡片的背景透明度,推荐 0.7', 'argon');?></p>
|
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('控制文章、评论等卡片的背景透明度,推荐 0.7', 'argon');?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 毛玻璃模糊 --><div style="margin-bottom: 20px;">
|
<!-- 毛玻璃模糊 -->
|
||||||
|
<div style="margin-bottom: 20px;">
|
||||||
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('毛玻璃模糊', 'argon');?></label>
|
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('毛玻璃模糊', 'argon');?></label>
|
||||||
<div style="display: flex; align-items: center; gap: 12px;">
|
<div style="display: flex; align-items: center; gap: 12px;">
|
||||||
<input type="range" name="argon_card_blur" min="0" max="30" step="1" value="<?php echo (get_option('argon_card_blur', '20')); ?>" id="argon_card_blur_slider" style="flex: 1; cursor: pointer; height: 6px;">
|
<input type="range" name="argon_card_blur" min="0" max="30" step="1" value="<?php echo (get_option('argon_card_blur', '20')); ?>" id="argon_card_blur_slider" style="flex: 1; cursor: pointer; height: 6px;">
|
||||||
@@ -1230,7 +1242,8 @@ function themeoptions_page(){
|
|||||||
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('为卡片添加毛玻璃模糊效果,推荐 20px', 'argon');?></p>
|
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('为卡片添加毛玻璃模糊效果,推荐 20px', 'argon');?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 毛玻璃饱和度 --><div style="margin-bottom: 10px;">
|
<!-- 毛玻璃饱和度 -->
|
||||||
|
<div style="margin-bottom: 10px;">
|
||||||
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('毛玻璃饱和度', 'argon');?></label>
|
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('毛玻璃饱和度', 'argon');?></label>
|
||||||
<div style="display: flex; align-items: center; gap: 12px;">
|
<div style="display: flex; align-items: center; gap: 12px;">
|
||||||
<input type="range" name="argon_card_saturate" min="100" max="250" step="10" value="<?php echo (get_option('argon_card_saturate', '180')); ?>" id="argon_card_saturate_slider" style="flex: 1; cursor: pointer; height: 6px;">
|
<input type="range" name="argon_card_saturate" min="100" max="250" step="10" value="<?php echo (get_option('argon_card_saturate', '180')); ?>" id="argon_card_saturate_slider" style="flex: 1; cursor: pointer; height: 6px;">
|
||||||
@@ -1240,7 +1253,8 @@ function themeoptions_page(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 右侧:实时预览 --><div style="flex-shrink: 0;">
|
<!-- 右侧:实时预览 -->
|
||||||
|
<div style="flex-shrink: 0;">
|
||||||
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('效果预览', 'argon');?></label>
|
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #1d2327;"><?php _e('效果预览', 'argon');?></label>
|
||||||
<?php $page_bg_url = get_option('argon_page_background_url'); ?>
|
<?php $page_bg_url = get_option('argon_page_background_url'); ?>
|
||||||
<div id="effect_preview_box" style="position: relative; width: 200px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); background: #f4f5f7;">
|
<div id="effect_preview_box" style="position: relative; width: 200px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); background: #f4f5f7;">
|
||||||
@@ -1330,7 +1344,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 7. 侧边栏 ========== --><tr><th class="subtitle"><h2 id="section-sidebar"><?php _e('侧边栏', 'argon');?></h2></th></tr>
|
<!-- ========== 7. 侧边栏 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-sidebar"><?php _e('侧边栏', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-author-info"><?php _e('作者信息', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-author-info"><?php _e('作者信息', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -1480,7 +1495,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 8. 浮动按钮与页脚 ========== --><tr><th class="subtitle"><h2 id="section-fab-footer"><?php _e('浮动按钮与页脚', 'argon');?></h2></th></tr>
|
<!-- ========== 8. 浮动按钮与页脚 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-fab-footer"><?php _e('浮动按钮与页脚', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-fab"><?php _e('浮动操作按钮', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-fab"><?php _e('浮动操作按钮', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -1552,7 +1568,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 9. 高级设置 ========== --><tr><th class="subtitle"><h2 id="section-advanced"><?php _e('高级设置', 'argon');?></h2></th></tr>
|
<!-- ========== 9. 高级设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-advanced"><?php _e('高级设置', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-seo">SEO</h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-seo">SEO</h3></th></tr>
|
||||||
|
|
||||||
@@ -1584,7 +1601,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 10. 文章显示 ========== --><tr><th class="subtitle"><h2 id="section-post-display"><?php _e('文章显示', 'argon');?></h2></th></tr>
|
<!-- ========== 10. 文章显示 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-post-display"><?php _e('文章显示', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-post-meta"><?php _e('Meta 信息', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-post-meta"><?php _e('Meta 信息', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -1860,7 +1878,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 11. 文章功能 ========== --><tr><th class="subtitle"><h2 id="section-post-features"><?php _e('文章功能', 'argon');?></h2></th></tr>
|
<!-- ========== 11. 文章功能 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-post-features"><?php _e('文章功能', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-footnote"><?php _e('脚注引用', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-footnote"><?php _e('脚注引用', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -2198,7 +2217,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 12. 特殊页面 ========== --><tr><th class="subtitle"><h2 id="section-special-pages"><?php _e('特殊页面', 'argon');?></h2></th></tr>
|
<!-- ========== 12. 特殊页面 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-special-pages"><?php _e('特殊页面', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-archive"><?php _e('归档页面', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-archive"><?php _e('归档页面', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -2270,7 +2290,8 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 13. 功能增强 ========== --><tr><th class="subtitle"><h2 id="section-enhancements"><?php _e('功能增强', 'argon');?></h2></th></tr>
|
<!-- ========== 13. 功能增强 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-enhancements"><?php _e('功能增强', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-code-highlight"><?php _e('代码高亮', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-code-highlight"><?php _e('代码高亮', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -2975,7 +2996,8 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 14. 评论设置 ========== --><tr><th class="subtitle"><h2 id="section-comment"><?php _e('评论设置', 'argon');?></h2></th></tr>
|
<!-- ========== 14. 评论设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-comment"><?php _e('评论设置', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-comment-pagination"><?php _e('评论分页', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-comment-pagination"><?php _e('评论分页', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -3101,7 +3123,8 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 15. 验证码与安全 ========== --><tr><th class="subtitle"><h2 id="section-security"><?php _e('验证码与安全', 'argon');?></h2></th></tr>
|
<!-- ========== 15. 验证码与安全 ========== -->
|
||||||
|
<tr><th class="subtitle"><h2 id="section-security"><?php _e('验证码与安全', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
<tr><th class="subtitle"><h3 id="subsection-captcha"><?php _e('验证码设置', 'argon');?></h3></th></tr>
|
<tr><th class="subtitle"><h3 id="subsection-captcha"><?php _e('验证码设置', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
@@ -3209,6 +3232,8 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
var apiServer = $('input[name="argon_geetest_api_server"]').val().trim();
|
var apiServer = $('input[name="argon_geetest_api_server"]').val().trim();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!captchaId || !captchaKey) {
|
if (!captchaId || !captchaKey) {
|
||||||
|
|
||||||
alert('<?php _e('使用极验验证码时,验证码 ID 和 Key 为必填项', 'argon'); ?>');
|
alert('<?php _e('使用极验验证码时,验证码 ID 和 Key 为必填项', 'argon'); ?>');
|
||||||
@@ -3217,6 +3242,8 @@ if (!captchaId || !captchaKey) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 验证API服务器URL格式
|
// 验证API服务器URL格式
|
||||||
|
|
||||||
if (apiServer && !apiServer.match(/^https?:\/\/.+/)) {
|
if (apiServer && !apiServer.match(/^https?:\/\/.+/)) {
|
||||||
@@ -3233,6 +3260,8 @@ if (!captchaId || !captchaKey) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('select[name="argon_captcha_type"]').change(function() {
|
$('select[name="argon_captcha_type"]').change(function() {
|
||||||
|
|
||||||
if ($(this).val() === 'geetest') {
|
if ($(this).val() === 'geetest') {
|
||||||
@@ -3247,6 +3276,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 表单提交时验证
|
// 表单提交时验证
|
||||||
|
|
||||||
$('form').submit(function(e) {
|
$('form').submit(function(e) {
|
||||||
@@ -3427,7 +3458,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 返回评论系统 ========== --><tr><th class="subtitle"><h3 id="subsection-comment-features"><?php _e('评论功能', 'argon');?></h3></th></tr>
|
<!-- ========== 返回评论系统 ========== -->
|
||||||
|
<tr><th class="subtitle"><h3 id="subsection-comment-features"><?php _e('评论功能', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@@ -3995,7 +4027,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- ========== 邮件模板设置 ========== --><tr><th class="subtitle"><h3 id="subsection-email-template"><?php _e('邮件模板', 'argon');?></h3></th></tr>
|
<!-- ========== 邮件模板设置 ========== -->
|
||||||
|
<tr><th class="subtitle"><h3 id="subsection-email-template"><?php _e('邮件模板', 'argon');?></h3></th></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><label><?php _e('邮件主题色', 'argon');?></label></th>
|
<th><label><?php _e('邮件主题色', 'argon');?></label></th>
|
||||||
@@ -4135,7 +4168,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 邮件预览弹窗 --><div id="argon_email_preview_modal" style="display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100000;">
|
<!-- 邮件预览弹窗 -->
|
||||||
|
<div id="argon_email_preview_modal" style="display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100000;">
|
||||||
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 8px; width: 90%; max-width: 700px; max-height: 90vh; overflow: auto;">
|
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 8px; width: 90%; max-width: 700px; max-height: 90vh; overflow: auto;">
|
||||||
<div style="padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;">
|
<div style="padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;">
|
||||||
<strong><?php _e('邮件预览', 'argon');?></strong>
|
<strong><?php _e('邮件预览', 'argon');?></strong>
|
||||||
@@ -4619,6 +4653,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
<p class="description"><?php _e('启用后,当主题文件被更新时,将自动清理所有缓存并显示更新通知。', 'argon');?></p>
|
<p class="description"><?php _e('启用后,当主题文件被更新时,将自动清理所有缓存并显示更新通知。', 'argon');?></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $argon_hot_reload_auto_refresh = get_option('argon_hot_reload_auto_refresh', 'false'); ?>
|
<?php $argon_hot_reload_auto_refresh = get_option('argon_hot_reload_auto_refresh', 'false'); ?>
|
||||||
|
|
||||||
<label style="display:block;margin-top:10px;">
|
<label style="display:block;margin-top:10px;">
|
||||||
@@ -4631,6 +4667,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
<p class="description" style="margin-left:24px;"><?php _e('推荐开启。用户访问时如检测到主题版本变化,将自动刷新页面以加载最新功能。', 'argon');?></p>
|
<p class="description" style="margin-left:24px;"><?php _e('推荐开启。用户访问时如检测到主题版本变化,将自动刷新页面以加载最新功能。', 'argon');?></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $argon_hot_reload_frontend_notice = get_option('argon_hot_reload_frontend_notice', 'false'); ?>
|
<?php $argon_hot_reload_frontend_notice = get_option('argon_hot_reload_frontend_notice', 'false'); ?>
|
||||||
|
|
||||||
<label style="display:block;margin-top:10px;">
|
<label style="display:block;margin-top:10px;">
|
||||||
@@ -4641,6 +4679,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin-top:15px;">
|
<div style="margin-top:15px;">
|
||||||
|
|
||||||
<button type="button" class="button" id="argon_clear_cache_btn"><?php _e('手动清理缓存', 'argon');?></button>
|
<button type="button" class="button" id="argon_clear_cache_btn"><?php _e('手动清理缓存', 'argon');?></button>
|
||||||
@@ -4754,6 +4794,8 @@ $('select[name="argon_captcha_type"]').change(function() {
|
|||||||
|
|
||||||
var countdownTimer = null;
|
var countdownTimer = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function updateCountdown() {
|
function updateCountdown() {
|
||||||
|
|
||||||
if (remainingSeconds <= 0) {
|
if (remainingSeconds <= 0) {
|
||||||
@@ -4778,6 +4820,8 @@ function updateCountdown() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function updateUI() {
|
function updateUI() {
|
||||||
|
|
||||||
var statusDiv = $('#argon_force_refresh_status');
|
var statusDiv = $('#argon_force_refresh_status');
|
||||||
@@ -4786,6 +4830,8 @@ function updateUI() {
|
|||||||
|
|
||||||
var btn = $('#argon_force_refresh_btn');
|
var btn = $('#argon_force_refresh_btn');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (isEnabled) {
|
if (isEnabled) {
|
||||||
|
|
||||||
statusDiv.css({'background': '#d4edda', 'border': '1px solid #c3e6cb'});
|
statusDiv.css({'background': '#d4edda', 'border': '1px solid #c3e6cb'});
|
||||||
@@ -4824,6 +4870,8 @@ if (isEnabled) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 初始化倒计时
|
// 初始化倒计时
|
||||||
|
|
||||||
if (isEnabled && remainingSeconds > 0) {
|
if (isEnabled && remainingSeconds > 0) {
|
||||||
@@ -4832,14 +4880,20 @@ if (isEnabled) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#argon_force_refresh_btn').on('click', function() {
|
$('#argon_force_refresh_btn').on('click', function() {
|
||||||
|
|
||||||
var btn = $(this);
|
var btn = $(this);
|
||||||
|
|
||||||
btn.prop('disabled', true);
|
btn.prop('disabled', true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var action = isEnabled ? 'argon_disable_force_refresh' : 'argon_enable_force_refresh';
|
var action = isEnabled ? 'argon_disable_force_refresh' : 'argon_enable_force_refresh';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.post(ajaxurl, {
|
$.post(ajaxurl, {
|
||||||
|
|
||||||
action: action,
|
action: action,
|
||||||
@@ -4902,6 +4956,8 @@ $.post(ajaxurl, {
|
|||||||
|
|
||||||
<p class="description"><?php _e('启用后,管理员可在前台看到调试按钮,点击打开控制台查看错误信息。普通用户遇到错误时会显示红色通知提示联系管理员。', 'argon');?></p>
|
<p class="description"><?php _e('启用后,管理员可在前台看到调试按钮,点击打开控制台查看错误信息。普通用户遇到错误时会显示红色通知提示联系管理员。', 'argon');?></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $muted_errors = get_option('argon_muted_errors', array()); ?>
|
<?php $muted_errors = get_option('argon_muted_errors', array()); ?>
|
||||||
|
|
||||||
<?php if (!empty($muted_errors)): ?>
|
<?php if (!empty($muted_errors)): ?>
|
||||||
@@ -5334,6 +5390,8 @@ $.post(ajaxurl, {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.form-table > tbody > tr:first-child > th{
|
.form-table > tbody > tr:first-child > th{
|
||||||
|
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
@@ -5348,6 +5406,8 @@ $.post(ajaxurl, {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.form-table-mathrender > tbody > tr > th > label > div {
|
.form-table-mathrender > tbody > tr > th > label > div {
|
||||||
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
@@ -5372,6 +5432,8 @@ $.post(ajaxurl, {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#main_form > .form-table{
|
#main_form > .form-table{
|
||||||
|
|
||||||
max-width: calc(100% - 180px);
|
max-width: calc(100% - 180px);
|
||||||
@@ -5938,6 +6000,8 @@ function argon_update_themeoptions(){
|
|||||||
|
|
||||||
argon_update_option('argon_show_comment_parent_info');
|
argon_update_option('argon_show_comment_parent_info');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//LazyLoad 相关
|
//LazyLoad 相关
|
||||||
|
|
||||||
argon_update_option('argon_enable_lazyload');
|
argon_update_option('argon_enable_lazyload');
|
||||||
@@ -5948,6 +6012,8 @@ function argon_update_themeoptions(){
|
|||||||
|
|
||||||
argon_update_option('argon_lazyload_loading_style');
|
argon_update_option('argon_lazyload_loading_style');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//图片缩放预览相关
|
//图片缩放预览相关
|
||||||
|
|
||||||
argon_update_option('argon_enable_fancybox');
|
argon_update_option('argon_enable_fancybox');
|
||||||
@@ -5960,6 +6026,8 @@ function argon_update_themeoptions(){
|
|||||||
|
|
||||||
argon_update_option('argon_zoomify_scale');
|
argon_update_option('argon_zoomify_scale');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//数学公式相关配置项
|
//数学公式相关配置项
|
||||||
|
|
||||||
argon_update_option('argon_math_render');
|
argon_update_option('argon_math_render');
|
||||||
@@ -5970,12 +6038,16 @@ function argon_update_themeoptions(){
|
|||||||
|
|
||||||
argon_update_option('argon_katex_cdn_url');
|
argon_update_option('argon_katex_cdn_url');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//页头页尾脚本
|
//页头页尾脚本
|
||||||
|
|
||||||
argon_update_option_allow_tags('argon_custom_html_head');
|
argon_update_option_allow_tags('argon_custom_html_head');
|
||||||
|
|
||||||
argon_update_option_allow_tags('argon_custom_html_foot');
|
argon_update_option_allow_tags('argon_custom_html_foot');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//公告
|
//公告
|
||||||
|
|
||||||
argon_update_option_allow_tags('argon_sidebar_announcement');
|
argon_update_option_allow_tags('argon_sidebar_announcement');
|
||||||
|
|||||||
47
sidebar.php
47
sidebar.php
@@ -15,8 +15,10 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
|
|
||||||
<aside id="leftbar" class="<?php echo $leftbar_class; ?>" role="complementary">
|
<aside id="leftbar" class="<?php echo $leftbar_class; ?>" role="complementary">
|
||||||
|
|
||||||
<!-- 移动端侧边栏 - 重新设计的布局 --><div id="leftbar_mobile_nav" class="leftbar-mobile-nav">
|
<!-- 移动端侧边栏 - 重新设计的布局 -->
|
||||||
<!-- 顶部用户信息区 --><div class="leftbar-mobile-profile">
|
<div id="leftbar_mobile_nav" class="leftbar-mobile-nav">
|
||||||
|
<!-- 顶部用户信息区 -->
|
||||||
|
<div class="leftbar-mobile-profile">
|
||||||
<div class="leftbar-mobile-close" id="leftbar_close_btn">
|
<div class="leftbar-mobile-close" id="leftbar_close_btn">
|
||||||
<i class="fa fa-times"></i>
|
<i class="fa fa-times"></i>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +48,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
<div class="leftbar-mobile-user-desc"><?php echo esc_html($author_desc); ?></div>
|
<div class="leftbar-mobile-user-desc"><?php echo esc_html($author_desc); ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- 统计数据 --><div class="leftbar-mobile-stats">
|
<!-- 统计数据 -->
|
||||||
|
<div class="leftbar-mobile-stats">
|
||||||
<div class="leftbar-mobile-stat">
|
<div class="leftbar-mobile-stat">
|
||||||
<span class="stat-num"><?php echo wp_count_posts()->publish; ?></span>
|
<span class="stat-num"><?php echo wp_count_posts()->publish; ?></span>
|
||||||
<span class="stat-label"><?php _e('文章', 'argon'); ?></span>
|
<span class="stat-label"><?php _e('文章', 'argon'); ?></span>
|
||||||
@@ -62,14 +65,16 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 搜索框 --><div class="leftbar-mobile-search">
|
<!-- 搜索框 -->
|
||||||
|
<div class="leftbar-mobile-search">
|
||||||
<div class="leftbar-mobile-search-inner">
|
<div class="leftbar-mobile-search-inner">
|
||||||
<i class="fa fa-search"></i>
|
<i class="fa fa-search"></i>
|
||||||
<input type="text" id="leftbar_mobile_search_input" placeholder="<?php _e('搜索...', 'argon'); ?>" autocomplete="off">
|
<input type="text" id="leftbar_mobile_search_input" placeholder="<?php _e('搜索...', 'argon'); ?>" autocomplete="off">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 导航菜单 --><?php if ( has_nav_menu('toolbar_menu') ) : ?>
|
<!-- 导航菜单 -->
|
||||||
|
<?php if ( has_nav_menu('toolbar_menu') ) : ?>
|
||||||
<div class="leftbar-mobile-menu-section">
|
<div class="leftbar-mobile-menu-section">
|
||||||
<div class="leftbar-mobile-section-title"><?php _e('导航', 'argon'); ?></div>
|
<div class="leftbar-mobile-section-title"><?php _e('导航', 'argon'); ?></div>
|
||||||
<ul class="leftbar-mobile-menu">
|
<ul class="leftbar-mobile-menu">
|
||||||
@@ -112,7 +117,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 侧边栏菜单 --><?php if ( has_nav_menu('leftbar_menu') ) : ?>
|
<!-- 侧边栏菜单 -->
|
||||||
|
<?php if ( has_nav_menu('leftbar_menu') ) : ?>
|
||||||
<div class="leftbar-mobile-menu-section">
|
<div class="leftbar-mobile-menu-section">
|
||||||
<div class="leftbar-mobile-section-title"><?php _e('更多', 'argon'); ?></div>
|
<div class="leftbar-mobile-section-title"><?php _e('更多', 'argon'); ?></div>
|
||||||
<ul class="leftbar-mobile-menu">
|
<ul class="leftbar-mobile-menu">
|
||||||
@@ -129,7 +135,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 文章目录折叠面板 (仅在文章页显示) --><?php if (have_catalog()) : ?>
|
<!-- 文章目录折叠面板 (仅在文章页显示) -->
|
||||||
|
<?php if (have_catalog()) : ?>
|
||||||
<div class="leftbar-mobile-collapse-section">
|
<div class="leftbar-mobile-collapse-section">
|
||||||
<div class="leftbar-mobile-collapse-header" id="mobile_catalog_toggle">
|
<div class="leftbar-mobile-collapse-header" id="mobile_catalog_toggle">
|
||||||
<div class="collapse-header-left">
|
<div class="collapse-header-left">
|
||||||
@@ -144,7 +151,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- TODO折叠面板 --><?php if (get_option('argon_show_todo_list', 'true') == 'true') : ?>
|
<!-- TODO折叠面板 -->
|
||||||
|
<?php if (get_option('argon_show_todo_list', 'true') == 'true') : ?>
|
||||||
<?php
|
<?php
|
||||||
$mobile_todos = argon_get_todo_list();
|
$mobile_todos = argon_get_todo_list();
|
||||||
$mobile_is_author = current_user_can('publish_posts');
|
$mobile_is_author = current_user_can('publish_posts');
|
||||||
@@ -251,7 +259,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</script>
|
</script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 顶栏自定义链接 --><?php
|
<!-- 顶栏自定义链接 -->
|
||||||
|
<?php
|
||||||
$toolbar_links_left = get_option('argon_toolbar_links_left', '');
|
$toolbar_links_left = get_option('argon_toolbar_links_left', '');
|
||||||
$toolbar_links_right = get_option('argon_toolbar_links_right', '');
|
$toolbar_links_right = get_option('argon_toolbar_links_right', '');
|
||||||
$has_custom_links = !empty(trim($toolbar_links_left)) || !empty(trim($toolbar_links_right));
|
$has_custom_links = !empty(trim($toolbar_links_left)) || !empty(trim($toolbar_links_right));
|
||||||
@@ -298,7 +307,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 底部操作区 --><div class="leftbar-mobile-footer">
|
<!-- 底部操作区 -->
|
||||||
|
<div class="leftbar-mobile-footer">
|
||||||
<div class="leftbar-mobile-actions">
|
<div class="leftbar-mobile-actions">
|
||||||
<button class="leftbar-mobile-action" onclick="toggleDarkmode()">
|
<button class="leftbar-mobile-action" onclick="toggleDarkmode()">
|
||||||
<i class="fa fa-moon-o"></i>
|
<i class="fa fa-moon-o"></i>
|
||||||
@@ -316,7 +326,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 桌面端原有侧边栏内容 --><div class="leftbar-desktop-content">
|
<!-- 桌面端原有侧边栏内容 -->
|
||||||
|
<div class="leftbar-desktop-content">
|
||||||
<?php if (get_option('argon_sidebar_announcement') != '') { ?>
|
<?php if (get_option('argon_sidebar_announcement') != '') { ?>
|
||||||
|
|
||||||
<div id="leftbar_announcement" class="card bg-white shadow-sm border-0">
|
<div id="leftbar_announcement" class="card bg-white shadow-sm border-0">
|
||||||
@@ -339,6 +350,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
|
|
||||||
<span class="leftbar-banner-title text-white"><?php echo get_option('argon_sidebar_banner_title') == '' ? bloginfo('name') : get_option('argon_sidebar_banner_title'); ?></span>
|
<span class="leftbar-banner-title text-white"><?php echo get_option('argon_sidebar_banner_title') == '' ? bloginfo('name') : get_option('argon_sidebar_banner_title'); ?></span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sidebar_subtitle = get_option('argon_sidebar_banner_subtitle');
|
$sidebar_subtitle = get_option('argon_sidebar_banner_subtitle');
|
||||||
@@ -357,8 +370,12 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
|
|
||||||
<?php } /*顶栏标题*/?>
|
<?php } /*顶栏标题*/?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*侧栏上部菜单*/
|
/*侧栏上部菜单*/
|
||||||
@@ -644,6 +661,8 @@ $author_desc = get_option('argon_sidebar_author_description');
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( has_nav_menu('leftbar_author_links') ){
|
if ( has_nav_menu('leftbar_author_links') ){
|
||||||
|
|
||||||
echo "<div class='site-author-links'>";
|
echo "<div class='site-author-links'>";
|
||||||
@@ -700,6 +719,8 @@ if ( has_nav_menu('leftbar_author_links') ){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( has_nav_menu('leftbar_friend_links') ){
|
if ( has_nav_menu('leftbar_friend_links') ){
|
||||||
|
|
||||||
echo "<div class='site-friend-links'>
|
echo "<div class='site-friend-links'>
|
||||||
@@ -1157,7 +1178,9 @@ if ( has_nav_menu('leftbar_friend_links') ){
|
|||||||
</script>
|
</script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!-- .leftbar-desktop-content --></aside>
|
</div><!-- .leftbar-desktop-content -->
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
<div class="modal fade" id="blog_categories" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
|
<div class="modal fade" id="blog_categories" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
|
||||||
|
|
||||||
|
|||||||
18
single.php
18
single.php
@@ -1,9 +1,15 @@
|
|||||||
<?php get_header(); ?>
|
<?php get_header(); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="page-information-card-container"></div>
|
<div class="page-information-card-container"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="primary" class="content-area">
|
<div id="primary" class="content-area">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main" role="main">
|
||||||
@@ -14,8 +20,12 @@
|
|||||||
|
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
get_template_part( 'template-parts/content', 'single' );
|
get_template_part( 'template-parts/content', 'single' );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 文章操作按钮(分享和评论)
|
// 文章操作按钮(分享和评论)
|
||||||
get_template_part( 'template-parts/post-actions' );
|
get_template_part( 'template-parts/post-actions' );
|
||||||
|
|
||||||
@@ -23,6 +33,8 @@ get_template_part( 'template-parts/content', 'single' );
|
|||||||
comments_template();
|
comments_template();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( is_singular( 'post' ) ) {
|
if ( is_singular( 'post' ) ) {
|
||||||
|
|
||||||
if (get_previous_post() || get_next_post()){
|
if (get_previous_post() || get_next_post()){
|
||||||
@@ -55,6 +67,8 @@ if ( is_singular( 'post' ) ) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$relatedPosts = get_option('argon_related_post', 'disabled');
|
$relatedPosts = get_option('argon_related_post', 'disabled');
|
||||||
|
|
||||||
if ($relatedPosts != "disabled"){
|
if ($relatedPosts != "disabled"){
|
||||||
@@ -187,9 +201,13 @@ $relatedPosts = get_option('argon_related_post', 'disabled');
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
endwhile;
|
endwhile;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user